/* Metro module 6316; source: unknown; dependencies: [65, 57, 31, 27, 6285, 1610] */ import Module00057 from './module-00057.js'; /* Metro dependency 57 */ import Module00065 from './module-00065.js'; /* Metro dependency 65 */ import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */ import * as moduleValue2 from './module-01610.js'; /* Metro dependency 1610 */ import * as UseBottomSheetInternalModule from './module-06285-useBottomSheetInternal.js'; /* Metro dependency 6285 */ function _fun49759(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6494:6, offset: 0x01207528, size: 194 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const env0_4 = value.useMemo; const env0_5 = value.useState; value = require(27) /* metro dependency 27 */; const env0_6 = value.Platform; const env0_7 = value.StyleSheet; object = {code: 'function pnpm_useBottomSheetContentContainerStyleTs1(){const{animatedFooterHeight}=this.__closure;return animatedFooterHeight.get();}'}; object = {code: "function pnpm_useBottomSheetContentContainerStyleTs2(result,previousFooterHeight){const{enableFooterMarginAdjustment,runOnJS,setFooterHeight,Platform,animatedContentHeight}=this.__closure;if(!enableFooterMarginAdjustment){return;}runOnJS(setFooterHeight)(result);if(Platform.OS==='web'){if(result&&!previousFooterHeight){const contentHeight=animatedContentHeight.get();animatedContentHeight.set(contentHeight+result);}}}"}; exports.useBottomSheetContentContainerStyle = useBottomSheetContentContainerStyle; function useBottomSheetContentContainerStyle(a0, a1) { // fn#49760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6494:804, offset: 0x012075ea, size: 334 bytes, params: 3, frame: 26 const env0_0 = a0; const env0_1 = a1; const [property, property2] = Module00057(useState(0), 2); const {animatedFooterHeight, animatedContentHeight} = (UseBottomSheetInternalModule).useBottomSheetInternal(); let object = [a1]; object = [property, a0, useMemo(_fun49761, object)]; const value6 = useMemo(_fun49762, object); const useAnimatedReaction = moduleValue2.useAnimatedReaction; const closure = function() { return animatedFooterHeight.get(); }; closure.__closure = {animatedFooterHeight: animatedFooterHeight}; closure.__workletHash = 10172145694310; closure.__initData = env0_8; const pnpm_useBottomSheetContentContainerStyleTs22 = pnpm_useBottomSheetContentContainerStyleTs2; object = {enableFooterMarginAdjustment: a0}; object.runOnJS = moduleValue2.runOnJS; object.setFooterHeight = property2; object.Platform = Platform; object.animatedContentHeight = animatedContentHeight; pnpm_useBottomSheetContentContainerStyleTs22.__closure = object; pnpm_useBottomSheetContentContainerStyleTs22.__workletHash = 1149497927090; pnpm_useBottomSheetContentContainerStyleTs22.__initData = env0_9; Reflect.apply(useAnimatedReaction, moduleValue2, [closure, pnpm_useBottomSheetContentContainerStyleTs22, [animatedFooterHeight, animatedContentHeight, a0]]); return value6; function _fun49761() { // fn#49761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6494:983, offset: 0x01207738, size: 89 bytes, params: 1, frame: 17 return require ? global.Array.isArray(require) ? StyleSheet.compose.apply(StyleSheet, env1_2(require)) : require : {}; } function _fun49762() { // fn#49762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6494:1061, offset: 0x01207791, size: 165 bytes, params: 1, frame: 9 var value2; const binding = env0_0; const binding2 = env0_5; if (binding) { value2 = 0; return [env0_5, {paddingBottom: (binding2 ? typeof env0_5 !== 'object' ? value2 : env0_5.paddingBottom === undefined ? env0_5.paddingVertical === undefined ? env0_5.padding !== undefined && typeof env0_5.padding === 'number' ? env0_5.padding : value2 : typeof env0_5.paddingVertical === 'number' ? env0_5.paddingVertical : env0_5.padding !== undefined && typeof env0_5.padding === 'number' ? env0_5.padding : value2 : typeof env0_5.paddingBottom === 'number' ? env0_5.paddingBottom : env0_5.paddingVertical === undefined ? env0_5.padding !== undefined && typeof env0_5.padding === 'number' ? env0_5.padding : value2 : typeof env0_5.paddingVertical === 'number' ? env0_5.paddingVertical : env0_5.padding !== undefined && typeof env0_5.padding === 'number' ? env0_5.padding : value2 : value2) + Module00065, overflow: 'visible'}]; } return binding2; } function pnpm_useBottomSheetContentContainerStyleTs2(a0, a1) { // fn#49764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6494:1541, owner: useBottomSheetContentContainerStyle.pnpm_useBottomSheetContentContainerStyleTs2, offset: 0x01207836, size: 61 bytes, params: 3, frame: 12 var value2; if (env0_0) { value2 = environment.__proto__; (require(1610) /* metro dependency 1610 */).runOnJS(Module00057)(a0); } } } } global.__d(_fun49759, 6316, [65, 57, 31, 27, 6285, 1610]) /* metro module 6316, dependencies: [65, 57, 31, 27, 6285, 1610] */;