/* Metro module 10496; source: modules/user_profile/native/ActionSheetBackdropToast.tsx; dependencies: [31, 27, 6276, 33, 477, 4501, 697, 1585, 1478, 5314, 4017, 4504, 4573, 2] */ function _fun81195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10682:6, offset: 0x01e9db22, size: 384 bytes, params: 8, frame: 22 var object4; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_4 = value.View; const StyleSheet = value.StyleSheet; const env0_5 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_START_HEIGHT_RATIO; const env0_6 = (require(33) /* metro dependency 33 */).jsx; const env0_7 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS(); value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object4 = {}; const object5 = {}; copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined); object5['flex'] = 1; object5['alignItems'] = 'center'; object5['justifyContent'] = 'center'; object4.container = object5; const object6 = {'position': 'absolute', 'bottom': 16, 'backgroundColor': null, 'borderRadius': null, 'paddingTop': 6, 'paddingBottom': 8, 'paddingHorizontal': 16}; const MOBILE_TOAST_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TOAST_BACKGROUND_DEFAULT; object6.backgroundColor = MOBILE_TOAST_BACKGROUND_DEFAULT; object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; object4.toast = object6; const env0_8 = Reflect.apply(createStyles, value, [object4]); object4 = {code: 'function ActionSheetBackdropToastTsx1(){const{isInIOS,isExpanded,maxDynamicContentSize,TOAST_BOTTOM_MARGIN,nonExpandedHeight,ACTION_SHEET_START_HEIGHT_RATIO,TOAST_BOTTOM_GAP,positionDelta,TOAST_ANIMATION_Y_DELTA,opacity}=this.__closure;return{bottom:(isInIOS?isExpanded?maxDynamicContentSize+TOAST_BOTTOM_MARGIN:nonExpandedHeight+TOAST_BOTTOM_MARGIN:isExpanded?maxDynamicContentSize+TOAST_BOTTOM_MARGIN:ACTION_SHEET_START_HEIGHT_RATIO*maxDynamicContentSize+TOAST_BOTTOM_GAP)+ +(1-positionDelta.get())*TOAST_ANIMATION_Y_DELTA,opacity:opacity.get()};}'}; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/ActionSheetBackdropToast.tsx'); exports.ActionSheetBackdropToast = ActionSheetBackdropToast; } function ActionSheetBackdropToast({text, isExpanded}) { // fn#81196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10682:1190, offset: 0x01e9dca2, size: 488 bytes, params: 2, frame: 28 const styles = useStyles(); const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top; const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height; const value2 = height * ACTION_SHEET_START_HEIGHT_RATIO; const NAV_BAR_HEIGHT_MULTILINE = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT_MULTILINE; const value3 = height - NAV_BAR_HEIGHT_MULTILINE - top; const value4 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0); const env0_3 = value4; const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0); env0_3.useEffect(_fun81197, [value4, value5]); const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; const closure = ActionSheetBackdropToastX; closure.__closure = {isInIOS: env0_7, isExpanded: isExpanded, maxDynamicContentSize: value3, TOAST_BOTTOM_MARGIN: 24, nonExpandedHeight: value2, ACTION_SHEET_START_HEIGHT_RATIO: ACTION_SHEET_START_HEIGHT_RATIO, TOAST_BOTTOM_GAP: 46, positionDelta: value4, TOAST_ANIMATION_Y_DELTA: 15, opacity: value5}; closure.__workletHash = 9630436597435; closure.__initData = env0_9; const value6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); const items3 = [styles.container]; const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; const items2 = [styles.toast, value6]; const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {text} ); } function _fun81197() { // fn#81197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10682:1377, offset: 0x01e9de8a, size: 253 bytes, params: 1, frame: 25 let binding = env0_3; let set = binding.set; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const withDelay = reanimatedRexportModule.withDelay; const timingModule = require(4504) /* metro dependency 4504: timing */; let withTiming = timingModule.withTiming; let object2 = {duration: 200}; const Easing = reanimatedRexportModule.Easing; const Easing2 = reanimatedRexportModule.Easing; object2.easing = Easing.in(Easing2.ease); Reflect.apply(set, binding, [Reflect.apply(withDelay, reanimatedRexportModule, [100, Reflect.apply(withTiming, timingModule, [1, object2])])]); binding = env0_4; set = binding.set; const value = timingModule; withTiming = value.withTiming; object2 = {duration: 300}; const Easing3 = reanimatedRexportModule.Easing; object2.easing = Easing.in(Easing3.linear); Reflect.apply(set, binding, [Reflect.apply(withTiming, value, [1, object2])]); return _fun81198; } function ActionSheetBackdropToastX() { // fn#81199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10682:1794, owner: ActionSheetBackdropToast.x, offset: 0x01e9e036, size: 140 bytes, params: 1, frame: 13 const object2 = {}; const value = environment.__proto__; const binding = env1_7; const isExpandedBinding = isExpanded; object2.bottom = (binding ? isExpandedBinding ? env0_2 + 24 : env0_1 + 24 : isExpandedBinding ? env0_2 + 24 : ACTION_SHEET_START_HEIGHT_RATIO * env0_2 + 46) + 15 * (1 - env0_3.get()); object2.opacity = env0_4.get(); return object2; } function _fun81198() { // fn#81198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10682:1594, offset: 0x01e9df87, size: 175 bytes, params: 1, frame: 22 let value = environment.__proto__; let binding = env1_3; let set = binding.set; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const withDelay = reanimatedRexportModule.withDelay; const timingModule = require(4504) /* metro dependency 4504: timing */; let withTiming = timingModule.withTiming; Reflect.apply(set, binding, [Reflect.apply(withDelay, reanimatedRexportModule, [200, Reflect.apply(withTiming, timingModule, [0])])]); binding = env1_4; set = binding.set; value = timingModule; withTiming = value.withTiming; const Easing = reanimatedRexportModule.Easing; const out = Easing.out; const Easing2 = reanimatedRexportModule.Easing; Reflect.apply(set, binding, [Reflect.apply(withTiming, value, [0, {duration: 200, easing: Reflect.apply(out, Easing, [Easing2.exp])}])]); }