/* 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] */ import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */ import UseWindowDimensionsNative from '../../../../modules/screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */ import UseSafeAreaInsetsNative from '../../../../modules/safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */ import UseColorThemeBackground from '../../../../modules/client_themes/native/useColorThemeBackground.tsx'; /* Metro dependency 4003 */ import Module06277 from '../../../../by-id/module-06277.js'; /* Metro dependency 6277 */ import ActionSheetContext from '../../../../modules/action_sheet/native/ActionSheetContext.tsx'; /* Metro dependency 6513 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as ConstantsIOSModule from '../../../../ConstantsIOS.tsx'; /* Metro dependency 676 */ import * as AccessibilityPreferencesContextModule from '../../../../external/discord_common/js/packages/design/components/AccessibilityPreferencesContext/AccessibilityPreferencesContext.tsx'; /* Metro dependency 3875 */ import * as FabricUtilsModule from '../../../../utils/native/FabricUtils.tsx'; /* Metro dependency 4020 */ import * as CreateStylesModule from '../../Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as UseIsScreenReaderEnabledNativeModule from '../../../../modules/a11y/native/useIsScreenReaderEnabled.native.tsx'; /* Metro dependency 4559 */ import * as UseMountEffectModule from '../../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */ import * as ActionSheetConstantsModule from '../../../../modules/action_sheet/native/ActionSheetConstants.tsx'; /* Metro dependency 6276 */ import * as Module06277Module from '../../../../by-id/module-06277.js'; /* Metro dependency 6277 */ import * as BottomSheetHandleModule from './BottomSheetHandle.tsx'; /* Metro dependency 6514 */ import * as ActionSheetHeaderBarNativeModule from './ActionSheetHeaderBar.native.tsx'; /* Metro dependency 6515 */ import * as BottomSheetBackdropNativeModule from './BottomSheetBackdrop.native.tsx'; /* Metro dependency 6516 */ import * as LayerScopeNativeModule from '../../Layers/native/LayerScope.native.tsx'; /* Metro dependency 6517 */ 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}); let value = ReactModule; ReactNativeModule.Platform; const env0_18 = (CreateStylesModule).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); (FileImportTrackerModule).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 object = {}; const object2 = {}; value = 'hidden'; object2.overflow = value; object2.borderTopLeftRadius = ACTION_SHEET_BORDER_RADIUS; object2.borderTopRightRadius = ACTION_SHEET_BORDER_RADIUS; let MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND; object2.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND; object.background = object2; object.wrapper = {'overflow': 'hidden', 'flex': 1}; const object3 = {overflow: value}; object3.marginTop = ACTION_SHEET_GRADIENT_BORDER_WIDTH; object3.marginHorizontal = ACTION_SHEET_GRADIENT_BORDER_WIDTH; object3.borderTopLeftRadius = ACTION_SHEET_GRADIENT_BORDER_RADIUS; object3.borderTopRightRadius = ACTION_SHEET_GRADIENT_BORDER_RADIUS; MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND; object3.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND; object.wrapperWithBorder = object3; const ACTION_SHEET_BORDER_RADIUS2 = a0 ? ACTION_SHEET_BORDER_RADIUS : value3; const ACTION_SHEET_BORDER_RADIUS3 = a0 ? ACTION_SHEET_BORDER_RADIUS : value3; object.content = {borderTopLeftRadius: ACTION_SHEET_BORDER_RADIUS2, borderTopRightRadius: ACTION_SHEET_BORDER_RADIUS3, overflow: a0 ? value : value3, marginBottom: r8 ? 0 : r9 + 4, flex: 1}; object.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; object.handleIndicator = {backgroundColor: BACKGROUND_MOD_STRONG}; const object7 = {}; copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined); const MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT; object7['backgroundColor'] = MOBILE_ACTIONSHEET_GRADIENT_BACKGROUND_DEFAULT; object.backgroundOverlay = object7; object.header = {marginBottom: 16}; object.body = {flex: 1}; return object; } 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 object = {'startHeight': 0, 'hasEverExpanded': 0, 'windowDimensions': 0, 'wrapperStyle': 0, 'scrollViewStyle': 0, 'startExpanded': 0, 'onChange': 0, 'onExpand': 0, 'keyboardShouldPersistTaps': 0, 'children': 0, 'maxDynamicContentSize': 0}; silentSetPrototypeOf(object, null, undefined); const value = copyDataProperties({}, a0, object, undefined); const env0_4 = undefined; const top = (UseSafeAreaInsetsNative)().top; const value3 = (UseIsScreenReaderEnabledNativeModule).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 = Module06277; const defaultImportProps = {...value}; defaultImportProps['enableDynamicSizing'] = true; defaultImportProps['snapPoints'] = property; defaultImportProps['maxDynamicContentSize'] = r14; defaultImportProps['ref'] = a1; defaultImportProps['onChange'] = value9; const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView; return ((Component) => {children})(defaultImport); 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 _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 = (ConstantsIOSModule).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 object = {'startHeight': 0, 'contentHeight': 0, 'maxHeight': 0, 'hasEverExpanded': 0, 'windowDimensions': 0, 'wrapperStyle': 0, 'onChange': 0, 'onExpand': 0, 'children': 0, 'borderGradient': 0, 'extraContent': 0}; silentSetPrototypeOf(object, null, undefined); let value = copyDataProperties({}, a0, object, undefined); const styles = useStyles(false); const top = (UseSafeAreaInsetsNative)().top; const value3 = (UseIsScreenReaderEnabledNativeModule).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 = Module06277; 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 _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 (!Module00057 && !hasEverExpanded && env0_4 < ReactNativeModule.StyleSheet) { items2.push(env0_4); } items2.push(ReactNativeModule.StyleSheet); 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 === ReactNativeModule.View) { if (onExpand != null) { onExpand(); } } } } 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 footer2 = footer; const onExpand = a0.onExpand; const onExpand2 = 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 object = {'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(object, value5, undefined); const value6 = copyDataProperties({}, a0, object, undefined); let binding = onExpand2; let useContext = binding.useContext; const {transitionState, close, onLeave, registerDismissHandler} = Reflect.apply(useContext, binding, [ActionSheetContext]); const {top, bottom} = (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] = footer2(binding.useState(startExpanded), 2); const env0_12 = binding.useRef(false); const env0_13 = binding.useRef(true); useContext = binding.useContext; const AccessibilityPreferencesContext = (AccessibilityPreferencesContextModule).AccessibilityPreferencesContext; const r17 = Reflect.apply(useContext, binding, [AccessibilityPreferencesContext]).reducedMotion.enabled ? ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION : ACTION_SHEET_SPRING_CONFIG; binding = onExpand2; binding.useLayoutEffect(function() { registerDismissHandler(onDismiss); }, [onDismiss, registerDismissHandler]); (BottomSheetHandleModule).useBottomSheetImperativeHandle(a1, value10); binding.useEffect(_fun49584, [transitionState, close]); (UseMountEffectModule).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; 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; closure.__closure = {animatedIsVisuallyClosed: value16}; closure.__workletHash = 6995719052506; closure.__initData = env0_22; const _e2 = _e; object = {transitionState: transitionState}; object.runOnJS = reanimatedRexportModule.runOnJS; object.onLeave = onLeave; _e2.__closure = object; _e2.__workletHash = 77590951197; _e2.__initData = env0_23; Reflect.apply(useAnimatedReaction, moduleValue5, [closure, _e2]); const value17 = binding.useCallback(_fun49591, [dismissAccessibilityLabel]); const value18 = binding.useCallback(_fun49593, [backdropOpacity, backdropChildren]); const value19 = binding.useCallback(_fun49594, [footer]); const value20 = (UseWindowDimensionsNative)({ignoreKeyboard: true}); const value21 = useConstrainedContainerStyle(value20); const r5 = scrollable ? env0_20 : env0_19; const value22 = (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 = (LayerScopeNativeModule).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 _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 = ActionSheetConstantsModule.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION.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 = (Module06277Module).ANIMATION_SOURCE; const KEYBOARD = ANIMATION_SOURCE.KEYBOARD; if (a4 !== KEYBOARD) { if (a1 !== -1) { if (a1 > -1) { current = env0_12.current; if (current) { current = ActionSheetConstantsModule.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION.current; if (current != null) { current.forceClose(); } } } } else { current = env0_12.current; if (current) { if (a1 > -1) { current = env0_12.current; if (current) { current = ActionSheetConstantsModule.ACTION_SHEET_SPRING_CONFIG_REDUCED_MOTION.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() { // 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 ActionSheetConstantsModule.ACTION_SHEET_INNER_BORDER_RADIUS.get() <= -1; } function Se() { // 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 ActionSheetConstantsModule.ACTION_SHEET_MINIMUM_BOTTOM_PADDING.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 = (ActionSheetHeaderBarNativeModule).ActionSheetHeaderBar; return ; 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 _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 = (BottomSheetBackdropNativeModule).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 = (Module06277Module).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 _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}; } } } } global.__d(_fun49571, 6275, [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]) /* metro module 6275, 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] */;