/* Metro module 6275; source: design/components/Sheet/native/BottomSheet.native.tsx; dependencies: [57, 31, 27, 6276, 33, 4501, 697, 4020, 1585, 4559, 5314, 6277, 4589, 676, 4017, 6513, 3875, 6514, 4594, 6515, 6516, 5462, 1478, 4003, 477, 6517, 3868, 2] */ function _fun49571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:6, offset: 0x011fd6a7, size: 452 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const value2 = require(27) /* metro dependency 27 */; const env0_5 = value2.StyleSheet; const env0_6 = value2.View; value2.Platform; const actionSheetConstantsModule = require(6276) /* metro dependency 6276: ActionSheetConstants */; const env0_7 = actionSheetConstantsModule.ACTION_SHEET_START_HEIGHT_RATIO; const env0_8 = actionSheetConstantsModule.ACTION_SHEET_MAX_WIDTH; const env0_9 = actionSheetConstantsModule.ACTION_SHEET_SPRING_CONFIG; const env0_10 = actionSheetConstantsModule.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION; const env0_11 = actionSheetConstantsModule.ACTION_SHEET_GRADIENT_BORDER_WIDTH; const env0_12 = actionSheetConstantsModule.ACTION_SHEET_GRADIENT_BORDER_RADIUS; const env0_13 = actionSheetConstantsModule.ACTION_SHEET_BORDER_RADIUS; const env0_14 = actionSheetConstantsModule.ACTION_SHEET_INNER_BORDER_RADIUS; const env0_15 = actionSheetConstantsModule.ACTION_SHEET_MINIMUM_BOTTOM_PADDING; const value4 = require(33) /* metro dependency 33 */; const env0_16 = value4.jsx; const env0_17 = value4.jsxs; const env0_18 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun49574); const env0_19 = value.forwardRef(_fun49575); const env0_20 = value.forwardRef(_fun49579); object = {code: 'function BottomSheetNativeTsx1(){const{animatedIndex}=this.__closure;return animatedIndex.get()<=-1;}'}; object = {code: 'function BottomSheetNativeTsx2(){const{animatedIsVisuallyClosed}=this.__closure;return animatedIsVisuallyClosed.get();}'}; object = {code: "function BottomSheetNativeTsx3(isVisuallyClosed){const{transitionState,runOnJS,onLeave}=this.__closure;if(isVisuallyClosed&&transitionState==='exiting'){runOnJS(onLeave)();}}"}; value = value.forwardRef(_fun49582); (require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Sheet/native/BottomSheet.native.tsx'); exports.BottomSheet = value; } function Background_49572(a0) { // fn#49572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:3029, offset: 0x011fd86b, size: 33 bytes, params: 2, frame: 13 return ; } function GradientBackground(a0) { // fn#49573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:3071, offset: 0x011fd88c, size: 79 bytes, params: 2, frame: 17 const styles = useStyles(false); return ( ); } function _fun49574(a0) { // fn#49574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:551, offset: 0x011fd8db, size: 436 bytes, params: 2, frame: 23 let value = a1; const value2 = a2; const value3 = undefined; const r9 = value !== value3 ? value : 0; const r8 = value2 !== value3 ? value2 : false; const object4 = {}; const object5 = {}; value = 'hidden'; object5.overflow = value; object5.borderTopLeftRadius = ACTION_SHEET_BORDER_RADIUS; object5.borderTopRightRadius = ACTION_SHEET_BORDER_RADIUS; let MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND; object5.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND; object4.background = object5; object4.wrapper = {'overflow': 'hidden', 'flex': 1}; const object6 = {overflow: value}; object6.marginTop = ACTION_SHEET_GRADIENT_BORDER_WIDTH; object6.marginHorizontal = ACTION_SHEET_GRADIENT_BORDER_WIDTH; object6.borderTopLeftRadius = ACTION_SHEET_GRADIENT_BORDER_RADIUS; object6.borderTopRightRadius = ACTION_SHEET_GRADIENT_BORDER_RADIUS; MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND; object6.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND; object4.wrapperWithBorder = object6; const ACTION_SHEET_BORDER_RADIUS2 = a0 ? ACTION_SHEET_BORDER_RADIUS : value3; const ACTION_SHEET_BORDER_RADIUS3 = a0 ? ACTION_SHEET_BORDER_RADIUS : value3; object4.content = {borderTopLeftRadius: ACTION_SHEET_BORDER_RADIUS2, borderTopRightRadius: ACTION_SHEET_BORDER_RADIUS3, overflow: a0 ? value : value3, marginBottom: r8 ? 0 : r9 + 4, flex: 1}; const fabricUtilsModule = require(4020) /* metro dependency 4020: FabricUtils */; object4.gradient = {height: '100%', overflow: fabricUtilsModule.isIosFabric() ? value : value3, borderTopLeftRadius: ACTION_SHEET_INNER_BORDER_RADIUS, borderTopRightRadius: ACTION_SHEET_INNER_BORDER_RADIUS}; const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG; object4.handleIndicator = {backgroundColor: BACKGROUND_MOD_STRONG}; const object8 = {}; copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined); const MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT; object8['backgroundColor'] = MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT; object4.backgroundOverlay = object8; object4.header = {marginBottom: 16}; object4.body = {flex: 1}; return object4; } function _fun49575(a0, a1) { // fn#49575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:1411, offset: 0x011fda8f, size: 573 bytes, params: 3, frame: 30 const startHeight = a0.startHeight; a0.hasEverExpanded; const height = a0.windowDimensions.height; const wrapperStyle = a0.wrapperStyle; const scrollViewStyle = a0.scrollViewStyle; const startExpanded = a0.startExpanded; const onChange = a0.onChange; const onExpand = a0.onExpand; const keyboardShouldPersistTaps = a0.keyboardShouldPersistTaps; const children = a0.children; const maxDynamicContentSize = a0.maxDynamicContentSize; const object2 = {'startHeight': 0, 'hasEverExpanded': 0, 'windowDimensions': 0, 'wrapperStyle': 0, 'scrollViewStyle': 0, 'startExpanded': 0, 'onChange': 0, 'onExpand': 0, 'keyboardShouldPersistTaps': 0, 'children': 0, 'maxDynamicContentSize': 0}; silentSetPrototypeOf(object2, null, undefined); const value = copyDataProperties({}, a0, object2, undefined); const env0_4 = undefined; const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top; const value3 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled(); const r1 = startHeight ?? height * ACTION_SHEET_START_HEIGHT_RATIO; const env0_3 = r1; const r14 = maxDynamicContentSize ?? height - (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT_MULTILINE - top; let binding = env0_4; const useState = binding.useState; const value7 = env0_3(Reflect.apply(useState, binding, [value3 || startExpanded ? [] : [r1]]), 2); const property = value7[0]; binding = value7[1]; binding.useEffect(_fun49576, [value3]); const value8 = binding.useCallback(_fun49577, [r1]); const value9 = binding.useCallback(function(a0, a1, a2) { if (onChange != null) { onChange(a0, a1, a2); } if (a0 === 0) { if (onExpand != null) { onExpand(); } } }, [onChange, onExpand]); const defaultImport = importDefault(6277) /* metro dependency 6277 */; const defaultImportProps = {...value}; defaultImportProps['enableDynamicSizing'] = true; defaultImportProps['snapPoints'] = property; defaultImportProps['maxDynamicContentSize'] = r14; defaultImportProps['ref'] = a1; defaultImportProps['onChange'] = value9; const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView; return ((Component) => {children})(defaultImport); } function _fun49579(a0, a1) { // fn#49579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:2235, offset: 0x011fdd5a, size: 637 bytes, params: 3, frame: 33 var r6; const VerticalGradient = (require(676) /* metro dependency 676: ConstantsIOS */).VerticalGradient; const startHeight = a0.startHeight; const contentHeight = a0.contentHeight; const maxHeight = a0.maxHeight; const hasEverExpanded = a0.hasEverExpanded; const height = a0.windowDimensions.height; const wrapperStyle = a0.wrapperStyle; const onChange = a0.onChange; const onExpand = a0.onExpand; const children = a0.children; const borderGradient = a0.borderGradient; const extraContent = a0.extraContent; const object2 = {'startHeight': 0, 'contentHeight': 0, 'maxHeight': 0, 'hasEverExpanded': 0, 'windowDimensions': 0, 'wrapperStyle': 0, 'onChange': 0, 'onExpand': 0, 'children': 0, 'borderGradient': 0, 'extraContent': 0}; silentSetPrototypeOf(object2, null, undefined); let value = copyDataProperties({}, a0, object2, undefined); const styles = useStyles(false); const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top; const value3 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled(); const r1 = startHeight ?? height * ACTION_SHEET_START_HEIGHT_RATIO; const env0_4 = r1; let r17 = maxHeight ?? contentHeight; r17 = r17 ?? height - (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT_MULTILINE - top; const binding = env0_4; const value6 = binding.useMemo(_fun49580, [hasEverExpanded, value3, r17, r1]); const value8 = binding.useCallback(_fun49581, [onChange, onExpand, value6.length - 1]); const view = {children}; const defaultImport = importDefault(6277) /* metro dependency 6277 */; const defaultImportProps = {...value}; defaultImportProps['ref'] = a1; defaultImportProps['enableDynamicSizing'] = false; defaultImportProps['contentHeight'] = contentHeight; defaultImportProps['snapPoints'] = value6; defaultImportProps['onChange'] = value8; if (borderGradient == null) { r6 = view; } else { value = importDefault(4589) /* metro dependency 4589 */; value = ((Component) => {view})(value); r6 = value; } return ((Component) => {r6}{extraContent})(defaultImport); } function _fun49582(a0, a1) { // fn#49582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:3625, offset: 0x011fe060, size: 1714 bytes, params: 3, frame: 56 let scrollable = a0.scrollable; const value = undefined; scrollable = !(scrollable === value) && scrollable; const startHeight = a0.startHeight; const maxHeight = a0.maxHeight; const containerHeight = a0.containerHeight; let startExpanded = a0.startExpanded; startExpanded = !(startExpanded === value) && startExpanded; const backdropOpacity = a0.backdropOpacity; const backdropChildren = a0.backdropChildren; const header = a0.header; const handleComponent = a0.handleComponent; let handleDisabled = a0.handleDisabled; handleDisabled = !(handleDisabled === value) && handleDisabled; const dismissAccessibilityLabel = a0.dismissAccessibilityLabel; const footer = a0.footer; const env0_3 = footer; const onExpand = a0.onExpand; const env0_4 = onExpand; const onDismiss = a0.onDismiss; const keyboardShouldPersistTaps = a0.keyboardShouldPersistTaps; const children = a0.children; const backgroundStyles = a0.backgroundStyles; const contentStyles = a0.contentStyles; const bodyStyles = a0.bodyStyles; const borderGradient = a0.borderGradient; const showGradient = a0.showGradient; const extraContent = a0.extraContent; const contentHeight = a0.contentHeight; let object2 = {'scrollable': 0, 'startHeight': 0, 'maxHeight': 0, 'containerHeight': 0, 'startExpanded': 0, 'backdropOpacity': 0, 'backdropChildren': 0, 'header': 0, 'handleComponent': 0, 'handleDisabled': 0, 'dismissAccessibilityLabel': 0, 'footer': 0, 'onExpand': 0, 'onDismiss': 0, 'keyboardShouldPersistTaps': 0, 'children': 0, 'backgroundStyles': 0, 'contentStyles': 0, 'bodyStyles': 0, 'borderGradient': 0, 'showGradient': 0, 'extraContent': 0, 'contentHeight': 0}; const value5 = null; silentSetPrototypeOf(object2, value5, undefined); const value6 = copyDataProperties({}, a0, object2, undefined); let binding = env0_4; let useContext = binding.useContext; const {transitionState, close, onLeave, registerDismissHandler} = Reflect.apply(useContext, binding, [importDefault(6513) /* metro dependency 6513: ActionSheetContext */]); const {top, bottom} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)(); const Math = global.Math; const styles = useStyles(handleDisabled, Math.max(bottom, ACTION_SHEET_MINIMUM_BOTTOM_PADDING), scrollable); const value10 = binding.useRef(value5); const [property, env0_11] = env0_3(binding.useState(startExpanded), 2); const env0_12 = binding.useRef(false); const env0_13 = binding.useRef(true); useContext = binding.useContext; const AccessibilityPreferencesContext = (require(3875) /* metro dependency 3875: AccessibilityPreferencesContext */).AccessibilityPreferencesContext; const r17 = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled ? ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION : ACTION_SHEET_SPRING_CONFIG; binding = env0_4; binding.useLayoutEffect(function() { registerDismissHandler(onDismiss); }, [onDismiss, registerDismissHandler]); (require(6514) /* metro dependency 6514: BottomSheetHandle */).useBottomSheetImperativeHandle(a1, value10); binding.useEffect(_fun49584, [transitionState, close]); (require(4594) /* metro dependency 4594: useMountEffect */).useUnmountEffect(_fun49585); const value13 = binding.useCallback(_fun49586, [close]); const value14 = binding.useCallback(_fun49587, [onExpand]); const animatedIndex = value6.animatedIndex; const r12 = value5 == animatedIndex ? (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(-1) : animatedIndex; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useDerivedValue = reanimatedRexportModule.useDerivedValue; let closure = he_49588; closure.__closure = {animatedIndex: r12}; closure.__workletHash = 4341912681188; closure.__initData = env0_21; const value16 = Reflect.apply(useDerivedValue, reanimatedRexportModule, [closure]); const moduleValue5 = reanimatedRexportModule; const useAnimatedReaction = moduleValue5.useAnimatedReaction; closure = Se_49589; closure.__closure = {animatedIsVisuallyClosed: value16}; closure.__workletHash = 6995719052506; closure.__initData = env0_22; const closure2 = _e; object2 = {transitionState: transitionState}; object2.runOnJS = reanimatedRexportModule.runOnJS; object2.onLeave = onLeave; closure2.__closure = object2; closure2.__workletHash = 77590951197; closure2.__initData = env0_23; Reflect.apply(useAnimatedReaction, moduleValue5, [closure, closure2]); const value17 = binding.useCallback(_fun49591, [dismissAccessibilityLabel]); const value18 = binding.useCallback(_fun49593, [backdropOpacity, backdropChildren]); const value19 = binding.useCallback(_fun49594, [footer]); const value20 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)({ignoreKeyboard: true}); const value21 = useConstrainedContainerStyle(value20); const r5 = scrollable ? env0_20 : env0_19; const value22 = (importDefault(4003) /* metro dependency 4003: useColorThemeBackground */)(); const backgroundComponent = value6.backgroundComponent; const r14 = value5 != backgroundComponent ? backgroundComponent : showGradient ? GradientBackground : Background_49572; const r5Props2 = {ref: value10, accessible: !(require(477) /* metro dependency 477: PlatformUtils */).isIOS() && value, accessibilityRole: 'none', accessibilityLabel: '', startHeight: startHeight, contentHeight: contentHeight, maxHeight: maxHeight, containerHeight: containerHeight, startExpanded: startExpanded, hasEverExpanded: property, windowDimensions: value20, wrapperStyle: [styles.wrapper, value5 != borderGradient && styles.wrapperWithBorder], onExpand: value14, enablePanDownToClose: true, containerStyle: value21, backgroundStyle: [styles.background, backgroundStyles], topInset: top, keyboardBehavior: scrollable ? 'extend' : 'interactive', keyboardBlurBehavior: 'restore', keyboardShouldPersistTaps: keyboardShouldPersistTaps, animationConfigs: r17}; const ReduceMotion = reanimatedRexportModule.ReduceMotion; const Never = ReduceMotion.Never; r5Props2.overrideReduceMotion = Never; r5Props2.handleIndicatorStyle = styles.handleIndicator; r5Props2.handleComponent = handleDisabled ? value5 : value5 == handleComponent ? value17 : handleComponent; r5Props2.backdropComponent = value18; r5Props2.backgroundComponent = r14; r5Props2.renderFooter = value19; r5Props2.animatedIndex = r12; r5Props2.onAnimate = value13; r5Props2.onClose = onLeave; r5Props2.borderGradient = borderGradient; r5Props2.extraContent = extraContent; const LayerScope = (require(6517) /* metro dependency 6517: LayerScopeNative */).LayerScope; const value29 = ((Component) => {value5 != header && {header}}{children})(r5); if (showGradient) { const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider; return ( {value29} ); } else { return value29; } } function _fun49576() { // fn#49576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:1809, offset: 0x011fdccc, size: 29 bytes, params: 1, frame: 11 if (env0_2) { env0_4([]); } } function _fun49577({nativeEvent}) { // fn#49577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:1851, offset: 0x011fdce9, size: 50 bytes, params: 2, frame: 11 if (nativeEvent.layout.height < env0_3) { env0_4([]); } } function _fun49580() { // fn#49580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:2582, offset: 0x011fdfd7, size: 72 bytes, params: 1, frame: 13 const items2 = []; if (!env0_3 && !hasEverExpanded && env0_4 < env0_5) { items2.push(env0_4); } items2.push(env0_5); return items2; } function _fun49581(a0, a1, a2) { // fn#49581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:2680, offset: 0x011fe01f, size: 65 bytes, params: 4, frame: 17 if (onChange != null) { onChange(a0, a1, a2); } if (a0 === env0_6) { if (onExpand != null) { onExpand(); } } } function _fun49584() { // fn#49584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:4455, offset: 0x011fe726, size: 108 bytes, params: 1, frame: 10 var current; if (!(transitionState !== 'exiting' || env0_12.current)) { env0_13.current = false; current = env0_10.current; if (current != null) { current.forceClose(); } } if (transitionState === 'visible' && env0_12.current) { close(); } } function _fun49585() { // fn#49585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:4613, offset: 0x011fe792, size: 47 bytes, params: 1, frame: 10 if (env0_13.current) { if (onDismiss != null) { onDismiss(); } } onLeave(); } function _fun49586(a0, a1, a2, a3, a4) { // fn#49586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:4683, offset: 0x011fe7c1, size: 140 bytes, params: 6, frame: 14 var current; const ANIMATION_SOURCE = (require(6277) /* metro dependency 6277 */).ANIMATION_SOURCE; const KEYBOARD = ANIMATION_SOURCE.KEYBOARD; if (a4 !== KEYBOARD) { if (a1 !== -1) { if (a1 > -1) { current = env0_12.current; if (current) { current = env0_10.current; if (current != null) { current.forceClose(); } } } } else { current = env0_12.current; if (current) { if (a1 > -1) { current = env0_12.current; if (current) { current = env0_10.current; if (current != null) { current.forceClose(); } } } } else { env0_12.current = true; close(); } } } } function _fun49587() { // fn#49587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:4875, offset: 0x011fe84d, size: 36 bytes, params: 1, frame: 12 env0_11(true); if (onExpand != null) { onExpand(); } } function he_49588() { // fn#49588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5043, offset: 0x011fe871, size: 28 bytes, params: 1, frame: 9 return env0_14.get() <= -1; } function Se_49589() { // fn#49589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5176, offset: 0x011fe88d, size: 18 bytes, params: 1, frame: 9 return env0_15.get(); } function _e(a0) { // fn#49590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5286, offset: 0x011fe89f, size: 74 bytes, params: 2, frame: 12 let value = a0; if (value && transitionState === 'exiting') { value = environment.__proto__; value = require(4017) /* metro dependency 4017: ReanimatedRexport */; value.runOnJS(onLeave)(); } } function _fun49591() { // fn#49591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5477, offset: 0x011fe8e9, size: 67 bytes, params: 1, frame: 14 const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar; return ; } function _fun49593({style, animatedIndex}) { // fn#49593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5613, offset: 0x011fe94c, size: 137 bytes, params: 2, frame: 18 const items2 = [StyleSheet.absoluteFill, style]; const BottomSheetBackdrop = (require(6516) /* metro dependency 6516: BottomSheetBackdropNative */).BottomSheetBackdrop; return ( {backdropChildren} ); } function _fun49594(a0) { // fn#49594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5773, offset: 0x011fe9d5, size: 121 bytes, params: 2, frame: 18 const value = environment.__proto__; const BottomSheetFooter = (require(6277) /* metro dependency 6277 */).BottomSheetFooter; return ( {footer ?? ((NavScrim) => )((require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim)} ); } function useConstrainedContainerStyle({width}) { // fn#49595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5898, offset: 0x011fea4e, size: 47 bytes, params: 2, frame: 14 return env1_4.useMemo(_fun49596, [width]); } function onPress_49592() { // fn#49592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5543, offset: 0x011fe92c, size: 32 bytes, params: 1, frame: 9 const current = env1_10.current; if (current != null) { current.close(); } } function _fun49596() { // fn#49596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6453:5965, offset: 0x011fea7d, size: 55 bytes, params: 1, frame: 14 const Math = global.Math; const max = Math.max; const widthBinding = width; const value = environment.__proto__.__proto__; return {marginHorizontal: Reflect.apply(max, Math, [widthBinding - ACTION_SHEET_MAX_WIDTH, 0]) / 2}; }