/* Metro module 10345; source: modules/user_profile/native/useSegmentedPagesHeight.tsx; dependencies: [57, 31, 4017, 2] */ function _fun80192(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10531:6, offset: 0x01e70ab6, size: 162 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(57) /* metro dependency 57 */; const env0_3 = importAll(31) /* metro dependency 31 */; object = {code: 'function useSegmentedPagesHeightTsx1(){const{pageHeights,visiblePageRange}=this.__closure;var _heights$lo,_heights$hi;const heights=pageHeights.get();const[lo,hi]=visiblePageRange.get();const height=Math.max((_heights$lo=heights[lo])!==null&&_heights$lo!==void 0?_heights$lo:0,(_heights$hi=heights[hi])!==null&&_heights$hi!==void 0?_heights$hi:0);return height>0?{height:height}:{};}'}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/useSegmentedPagesHeight.tsx'); exports.usePageHeights = usePageHeights; exports.usePagesHeightStyle = usePagesHeightStyle; } function usePageHeights() { // fn#80193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10531:621, offset: 0x01e70b58, size: 108 bytes, params: 1, frame: 15 const value2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue([]); const binding = env0_3; const env0_1 = binding.useRef([]); const useCallback = binding.useCallback; let object = [value2]; object = {pageHeights: value2, handlePageContentSize: Reflect.apply(useCallback, binding, [_fun80194, object])}; return object; } function usePagesHeightStyle({visiblePageRange}, a1) { // fn#80195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10531:861, offset: 0x01e70c1e, size: 111 bytes, params: 3, frame: 15 const env0_0 = a1; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; const closure = usePagesHeightStyleU; closure.__closure = {pageHeights: a1, visiblePageRange: visiblePageRange}; closure.__workletHash = 15297270890226; closure.__initData = env0_4; return Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); } function _fun80194(a0, a1, a2) { // fn#80194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10531:712, offset: 0x01e70bc4, size: 90 bytes, params: 4, frame: 16 var current; var binding; var binding2; var set; var items2; if (!(a2 <= 0 || env0_1.current[a0] === a2)) { binding = env0_1; current = binding.current; current[a0] = a2; binding2 = env0_0; set = binding2.set; current = binding.current; items2 = []; arraySpread(items2, current, 0, a0); Reflect.apply(set, binding2, [items2]); } } function usePagesHeightStyleU() { // fn#80196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10531:958, owner: usePagesHeightStyle.u, offset: 0x01e70c8d, size: 132 bytes, params: 1, frame: 18 const value2 = require.get(); let value = visiblePageRange.get(); value = env1_2(value, 2); const value4 = 0; let property = value[value4]; const property2 = value[1]; const Math = global.Math; const max = Math.max; property = value2[property]; value = Reflect.apply(max, Math, [property ?? value4, value2[property2] ?? value4]); return value > value4 ? {height: value} : {}; }