/* Metro module 13651; source: modules/quests/native/QuestDock/QuestDock.tsx; dependencies: [5, 57, 31, 27, 13570, 6528, 13572, 661, 7553, 482, 33, 4501, 697, 13650, 13573, 13576, 13569, 4559, 4017, 8621, 1585, 5176, 3860, 13652, 4577, 13571, 4581, 4556, 13653, 8141, 1244, 13654, 13661, 13664, 13665, 4562, 9483, 6531, 13666, 566, 9479, 13568, 7701, 683, 4826, 4831, 7120, 9484, 10183, 3868, 2] */ import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */ import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */ import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */ import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */ import UseStateFromSharedValue from '../../../reanimated/native/useStateFromSharedValue.tsx'; /* Metro dependency 8621 */ import QuestDockStore from './QuestDockStore.tsx'; /* Metro dependency 13570 */ import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */ import UseQuestDockAnimatedBorderRadius from './useQuestDockAnimatedBorderRadius.tsx'; /* Metro dependency 13652 */ import QuestDockGestureDetector from './QuestDockGestureDetector.tsx'; /* Metro dependency 13653 */ 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 ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */ import * as ConstantsModule2 from '../../../../Constants.tsx'; /* Metro dependency 661 */ import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */ import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */ import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as AccessibilityViewNativeModule from '../../../../design/components/AccessibilityView/AccessibilityView.native.tsx'; /* Metro dependency 4556 */ import * as UseIsScreenReaderEnabledNativeModule from '../../../a11y/native/useIsScreenReaderEnabled.native.tsx'; /* Metro dependency 4559 */ import * as BackdropNativeModule from '../../../../design/components/Backdrop/native/Backdrop.native.tsx'; /* Metro dependency 4562 */ import * as SpringModule from '../../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */ import * as SpringPresetsModule from '../../../../design/animation/reanimated/spring/springPresets.tsx'; /* Metro dependency 4581 */ import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */ import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */ import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */ import * as YouBarConstantsModule from '../../../main_tabs_v2/native/YouBarConstants.tsx'; /* Metro dependency 7553 */ import * as ClientThemesOverridesModule from '../../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */ import * as QuestsEligibilityModule from '../../lib/QuestsEligibility.tsx'; /* Metro dependency 9479 */ import * as QuestHooksModule from '../../hooks/QuestHooks.tsx'; /* Metro dependency 9483 */ import * as QuestActionCreatorsModule from '../../QuestActionCreators.tsx'; /* Metro dependency 9484 */ import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */ import * as QuestDockHooksModule from './QuestDockHooks.tsx'; /* Metro dependency 13569 */ import * as QuestDockUtilsModule from './QuestDockUtils.tsx'; /* Metro dependency 13571 */ import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */ import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */ import * as QuestDockExternalCoordinationContextModule from './QuestDockExternalCoordinationContext.tsx'; /* Metro dependency 13576 */ function _fun104239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6, offset: 0x0228b863, size: 979 bytes, params: 8, frame: 33 const env0_0 = require; const QuestDockWithEntranceAnimation2 = QuestDockWithEntranceAnimation; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const StyleSheet = ReactNativeModule.StyleSheet; const createStyles = CreateStylesModule.createStyles; object = {wrapper: {'position': 'absolute', 'left': '50%', 'bottom': 0, 'zIndex': 1}}; const object2 = {}; copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined); object2['zIndex'] = 1; object.accessibilityWrapper = object2; const QUEST_DOCK_BORDER_RADIUS = (Native).modules.mobile.QUEST_DOCK_BORDER_RADIUS; object.questDockWrapper = {'position': 'absolute', 'bottom': 0, 'left': '50%', 'overflow': 'hidden', 'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'zIndex': 1, borderRadius: QUEST_DOCK_BORDER_RADIUS}; const object4 = {}; copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined); object4['justifyContent'] = 'flex-end'; object4['zIndex'] = 4; object.questDockContentWrapper = object4; const object5 = {}; copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined); object5['bottom'] = undefined; object5['right'] = undefined; object5['borderWidth'] = 1; const BORDER_MUTED = (Native).colors.BORDER_MUTED; object5['borderColor'] = BORDER_MUTED; object5['zIndex'] = 5; object.questDockHeaderBorder = object5; const object6 = {}; copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined); object6['zIndex'] = 6; object.nestedPressable = object6; const env0_23 = Reflect.apply(createStyles, CreateStylesModule, [object]); object = {code: 'function QuestDockTsx1(){const{restingQuestDockMode,QuestDockMode}=this.__closure;return restingQuestDockMode.get()===QuestDockMode.EXPANDED;}'}; object = {code: 'function QuestDockTsx2(){const{appThemedBackgroundColor,withSpring,activeQuestDockMode,QuestDockMode,youBarEnabled,questDockBorderRadius,bottomBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_MODE_CHANGE_PHYSICS,roundToNearestPixel}=this.__closure;return{backgroundColor:appThemedBackgroundColor,borderBottomRightRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),borderBottomLeftRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:questDockWrapperSpecs.get().height,width:questDockWrapperSpecs.get().width,opacity:withSpring(1,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring(questDockWrapperSpecs.get().x+roundToNearestPixel(questDockWrapperSpecs.get().width/2)*-1,QUEST_DOCK_MODE_CHANGE_PHYSICS)},{translateY:withSpring(questDockWrapperSpecs.get().y,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'}; object = {code: 'function QuestDockTsx3(){const{withSpring,interpolate,isPressed,activeQuestDockMode,QuestDockMode,youBarEnabled,springStandard}=this.__closure;return{transform:[{scale:withSpring(interpolate(isPressed.get(),[1,0],[activeQuestDockMode.get()===QuestDockMode.EXPANDED||youBarEnabled?1:0.98,1]),springStandard)}]};}'}; object = {code: 'function QuestDockTsx4(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,windowDimensions}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),height:windowDimensions.get().height};}'}; object = {code: "function QuestDockTsx5(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"}; object = {code: 'function QuestDockTsx6(){const{questDockWrapperSpecs,windowDimensions,safeAreaTop}=this.__closure;const specs=questDockWrapperSpecs.get();const windowHeight=windowDimensions.get().height;return windowHeight-safeAreaTop-specs.height;}'}; object = {code: 'function QuestDockTsx7(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.CLOSED||activeQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'}; object = {code: 'function QuestDockTsx8(){const{isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,bottomBorderRadius,withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_COLLAPSED_HEIGHT,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,borderBottomRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:activeQuestDockMode.get()===QuestDockMode.EXPANDED?isEnrolled?questDockWrapperSpecs.get().height:QUEST_DOCK_COLLAPSED_HEIGHT:questDockWrapperSpecs.get().height,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED&&!isEnrolled?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}],borderBottomWidth:youBarEnabled?bottomBorderRadius.get()>0?1:0:1};}'}; const env0_32 = CreateStylesModule.createStyles(function() { return {wrapperAnimated: {'position': 'absolute', 'bottom': 0, 'padding': 0, 'width': '100%'}}; }); object = {}; const SUBTLE_SPRING = (SpringPresetsModule).SUBTLE_SPRING; copyDataProperties(object, SUBTLE_SPRING, undefined); object['overshootClamping'] = true; object['damping'] = 54; object = {code: "function QuestDockTsx9(){const{withSpring,isRendered,ENTRANCE_ANIMATION_SPING_CONFIG,componentDimensions}=this.__closure;return{opacity:withSpring(isRendered?1:0,ENTRANCE_ANIMATION_SPING_CONFIG,'animate-always'),transform:[{translateY:withSpring(isRendered?0:componentDimensions.height,ENTRANCE_ANIMATION_SPING_CONFIG)}]};}"}; value = value.memo(QuestDockWithQuestContext); (FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDock.tsx'); exports.default = value; exports.QuestDockWithEntranceAnimation = QuestDockWithEntranceAnimation2; function QuestDockWithGestureAnimation({appThemedBackgroundColor}) { // fn#104240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:5687, offset: 0x0228bc36, size: 2445 bytes, params: 2, frame: 50 let binding = setRestingQuestDockMode2; let useContext = binding.useContext; const quest = Reflect.apply(useContext, binding, [QuestDockContext]).quest; const styles = useStyles(); binding = setRestingQuestDockMode2; useContext = binding.useContext; const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext; const {questDockWrapperSpecs, activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]); binding = setRestingQuestDockMode2; useContext = binding.useContext; const QuestDockExternalCoordinationContext = (QuestDockExternalCoordinationContextModule).QuestDockExternalCoordinationContext; const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding, [QuestDockExternalCoordinationContext]); var setRestingQuestDockMode2 = setRestingQuestDockMode; const value5 = setRestingQuestDockMode2.useId(); const value6 = setRestingQuestDockMode2.useCallback(function() { setRestingQuestDockMode(QuestDockMode.COLLAPSED); }, [setRestingQuestDockMode]); (QuestDockHooksModule).useQuestDockModeAnimatedReaction(); (QuestDockHooksModule).useQuestDockDismissalReset(); const value7 = (UseIsScreenReaderEnabledNativeModule).useIsScreenReaderEnabled(); let useDerivedValue = ReanimatedRexportModule.useDerivedValue; let closure = QuestDockWithGestureAnimationK; closure.__closure = {restingQuestDockMode: restingQuestDockMode, QuestDockMode: QuestDockMode}; closure.__workletHash = 2415817673061; closure.__initData = env0_24; const value9 = (UseStateFromSharedValue)(Reflect.apply(useDerivedValue, ReanimatedRexportModule, [closure])); const top = (UseSafeAreaInsetsNative)().top; const value10 = (YouBarExperimentModule).useYouBarEnabled('QuestDock'); const value11 = useYouBarTotalHeight(); const userStatus = quest.userStatus; const value12 = userStatus?.enrolledAt != null; const useToken = UseTokenModule.useToken; const QUEST_DOCK_BORDER_RADIUS = (Native).modules.mobile.QUEST_DOCK_BORDER_RADIUS; const value13 = Reflect.apply(useToken, UseTokenModule, [QUEST_DOCK_BORDER_RADIUS]); const value14 = (UseQuestDockAnimatedBorderRadius)(value13); let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockWithGestureAnimationW; object = {appThemedBackgroundColor: appThemedBackgroundColor}; object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object.activeQuestDockMode = activeQuestDockMode; object.QuestDockMode = QuestDockMode; object.youBarEnabled = value10; object.questDockBorderRadius = value13; object.bottomBorderRadius = value14; object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED; object.questDockWrapperSpecs = questDockWrapperSpecs; object.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS; object.roundToNearestPixel = (require(13571) /* metro dependency 13571: QuestDockUtils */).roundToNearestPixel; closure.__closure = object; closure.__workletHash = 8564067641719; closure.__initData = env0_25; const value15 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const value16 = ReanimatedRexportModule.useSharedValue(0); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockWithGestureAnimationX; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, interpolate: ReanimatedRexportModule.interpolate, isPressed: value16, activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, youBarEnabled: value10, springStandard: (require(4581) /* metro dependency 4581: springPresets */).springStandard}; closure.__workletHash = 13804511468631; closure.__initData = env0_26; const value17 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const value18 = setRestingQuestDockMode2.useCallback(function() { setRestingQuestDockMode(QuestDockMode.EXPANDED); }, [setRestingQuestDockMode]); const value19 = setRestingQuestDockMode2.useCallback(_fun104246, [value16]); const value20 = setRestingQuestDockMode2.useCallback(_fun104247, [value16]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = function() { var object = {}; var moduleValue = require(dependencyMap[24]); object.opacity = moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1, QUEST_DOCK_MODE_CHANGE_PHYSICS); object.height = windowDimensions.get().height; return object; }; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS, windowDimensions: windowDimensions}; closure.__workletHash = 6178969276321; closure.__initData = env0_27; const value21 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps; closure = QuestDockWithGestureAnimationF; closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode}; closure.__workletHash = 5416180055289; closure.__initData = env0_28; const value22 = Reflect.apply(useAnimatedProps, ReanimatedRexportModule, [closure]); useDerivedValue = ReanimatedRexportModule.useDerivedValue; closure = QuestDockWithGestureAnimationV; closure.__closure = {questDockWrapperSpecs: questDockWrapperSpecs, windowDimensions: windowDimensions, safeAreaTop: top}; closure.__workletHash = 8073454569923; closure.__initData = env0_29; const value24 = (UseStateFromSharedValue)(Reflect.apply(useDerivedValue, ReanimatedRexportModule, [closure])); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = function() { var moduleValue = require(dependencyMap[24]); return {opacity: moduleValue.withSpring(activeQuestDockMode.get() === QuestDockMode.CLOSED ? 0 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 1 : 0, QUEST_DOCK_MODE_CHANGE_PHYSICS)}; }; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS}; closure.__workletHash = 6468803634518; closure.__initData = env0_30; const value25 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockWithGestureAnimationZ; object = {isEnrolled: value12, activeQuestDockMode: activeQuestDockMode}; object.QuestDockMode = QuestDockMode; object.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII; object.questDockBorderRadius = value13; object.youBarEnabled = value10; object.bottomBorderRadius = value14; object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED; object.questDockWrapperSpecs = questDockWrapperSpecs; object.QUEST_DOCK_COLLAPSED_HEIGHT = QUEST_DOCK_COLLAPSED_HEIGHT; object.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED; closure.__closure = object; closure.__workletHash = 14482794021030; closure.__initData = env0_31; const value26 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const jsxRuntimeEnv0_22Binding = jsxRuntimeEnv0_22; const value27 = 'auto'; const AccessibilityViewAnimated = (AccessibilityViewNativeModule).AccessibilityViewAnimated; const r5 = value7 ? value9 : !!value7; const defaultImport3 = ReanimatedNativeView; const defaultImport3Props = {style: [styles.questDockWrapper, {bottom: value11 - 1}, value15], layout: (require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition}; const pressableBindingProps = {style: styles.nestedPressable, onPressIn: value19, onPressOut: value20, onPress: value18, pointerEvents: value9 ? 'none' : value27, accessibilityRole: 'button'}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; pressableBindingProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rjVPdM); pressableBindingProps.accessibilityHint = value9 ? '' : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.n0MlOB); const items2 = [ , ]; items2[1] = ( ); items2[2] = ( {((Component) => )(importDefault(13654) /* metro dependency 13654: QuestDockContentCollapsed */)} {((Component) => )(importDefault(13661) /* metro dependency 13661: QuestDockContentExpanded */)} {!value12 && ((Component) => )(importDefault(13664) /* metro dependency 13664: QuestDockUnenrolledBackground */)} ); items2[3] = ((Component) => )(importDefault(13665) /* metro dependency 13665: QuestDockDragHandle */); const view = ( {((Component) => {items2})(defaultImport3)} ); const defaultImport10 = ReanimatedNativeView; const Backdrop = (BackdropNativeModule).Backdrop; return ( <> {view} {((Component) => )(defaultImport10)} ); function QuestDockWithGestureAnimationK() { // fn#104242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6263, owner: QuestDockWithGestureAnimation.K, offset: 0x0228c5e0, size: 35 bytes, params: 1, frame: 9 const value = restingQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; return value === EXPANDED; } function QuestDockWithGestureAnimationW() { // fn#104243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6644, owner: QuestDockWithGestureAnimation.W, offset: 0x0228c603, size: 446 bytes, params: 1, frame: 24 const object = {}; object.backgroundColor = appThemedBackgroundColor; let withSpring = SpringModule.withSpring; const activeQuestDockModeBinding = activeQuestDockMode; let get = activeQuestDockModeBinding.get; const value3 = Reflect.apply(get, activeQuestDockModeBinding, []); let COLLAPSED = QuestDockMode.COLLAPSED; object.borderBottomRightRadius = Reflect.apply(withSpring, SpringModule, [value3 !== COLLAPSED || ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]); withSpring = SpringModule.withSpring; const value5 = activeQuestDockMode.get(); COLLAPSED = QuestDockMode.COLLAPSED; object.borderBottomLeftRadius = Reflect.apply(withSpring, SpringModule, [value5 !== COLLAPSED || ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]); const questDockWrapperSpecsBinding = questDockWrapperSpecs; get = questDockWrapperSpecsBinding.get; object.height = Reflect.apply(get, questDockWrapperSpecsBinding, []).height; get = questDockWrapperSpecsBinding.get; object.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width; object.opacity = SpringModule.withSpring(1, QUEST_DOCK_MODE_CHANGE_PHYSICS); let value = SpringModule; withSpring = value.withSpring; get = questDockWrapperSpecsBinding.get; const x = Reflect.apply(get, questDockWrapperSpecsBinding, []).x; const roundToNearestPixel = QuestDockUtilsModule.roundToNearestPixel; get = questDockWrapperSpecsBinding.get; const items2 = [{translateX: Reflect.apply(withSpring, value, [x + -1 * Reflect.apply(roundToNearestPixel, QuestDockUtilsModule, [Reflect.apply(get, questDockWrapperSpecsBinding, []).width / 2]), QUEST_DOCK_MODE_CHANGE_PHYSICS])}]; value = SpringModule; withSpring = value.withSpring; get = questDockWrapperSpecsBinding.get; items2[1] = {translateY: Reflect.apply(withSpring, value, [Reflect.apply(get, questDockWrapperSpecsBinding, []).y, QUEST_DOCK_MODE_CHANGE_PHYSICS])}; object.transform = items2; return object; } function QuestDockWithGestureAnimationX() { // fn#104244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7499, owner: QuestDockWithGestureAnimation.X, offset: 0x0228c7c1, size: 198 bytes, params: 1, frame: 22 const object2 = {}; const withSpring = SpringModule.withSpring; const interpolate = ReanimatedRexportModule.interpolate; const value3 = QuestConstantsModule.QuestsExperimentLocations.get(); const value4 = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; object2.scale = Reflect.apply(withSpring, SpringModule, [Reflect.apply(interpolate, ReanimatedRexportModule, [value3, [1, 0], [value4 === EXPANDED || ReactNativeModule.Pressable ? 1 : 0.98, 1]]), (require(4581) /* metro dependency 4581: springPresets */).springStandard]); return {transform: [object2]}; } function _fun104246() { // fn#104246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7939, offset: 0x0228c8a4, size: 24 bytes, params: 1, frame: 11 QuestConstantsModule.QuestsExperimentLocations.set(1); } function _fun104247() { // fn#104247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7980, offset: 0x0228c8bc, size: 23 bytes, params: 1, frame: 11 QuestConstantsModule.QuestsExperimentLocations.set(0); } function QuestDockWithGestureAnimationF() { // fn#104249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8338, owner: QuestDockWithGestureAnimation.F, offset: 0x0228c93c, size: 50 bytes, params: 1, frame: 11 const value = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'}; } function QuestDockWithGestureAnimationV() { // fn#104250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8527, owner: QuestDockWithGestureAnimation.V, offset: 0x0228c96e, size: 53 bytes, params: 1, frame: 11 const questDockWrapperSpecsBinding = questDockWrapperSpecs; let get = questDockWrapperSpecsBinding.get; const value2 = Reflect.apply(get, questDockWrapperSpecsBinding, []); const windowDimensionsBinding = windowDimensions; get = windowDimensionsBinding.get; return Reflect.apply(get, windowDimensionsBinding, []).height - top - value2.height; } function QuestDockWithGestureAnimationZ() { // fn#104252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:9043, owner: QuestDockWithGestureAnimation.z, offset: 0x0228ca11, size: 743 bytes, params: 1, frame: 23 var r1; var r6; var value2; var value3; var value4; var value5; var value6; var value7; var value9; var value10; var moduleValue2; var moduleValue3; const object = {}; if (result) { r1 = env0_9; } else { value2 = activeQuestDockMode.get(); value3 = environment.__proto__; r1 = value2 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII; } object.borderTopLeftRadius = r1; if (result) { r1 = env0_9; } else { value4 = activeQuestDockMode.get(); value5 = environment.__proto__; r1 = value4 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII; } object.borderTopRightRadius = r1; if (result) { r1 = ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9; } else { value6 = activeQuestDockMode.get(); value7 = environment.__proto__; r1 = value6 !== QuestDockMode.EXPANDED ? ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII; } object.borderBottomLeftRadius = r1; if (result) { r1 = ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9; } else { value9 = activeQuestDockMode.get(); value10 = environment.__proto__; r1 = value9 !== QuestDockMode.EXPANDED ? ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII; } object.borderBottomRightRadius = r1; const withSpring = SpringModule.withSpring; const value13 = activeQuestDockMode.get(); let EXPANDED = QuestDockMode.EXPANDED; const value14 = 1; object.opacity = Reflect.apply(withSpring, SpringModule, [value13 !== EXPANDED ? value14 : 0, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]); const value16 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; object.height = value16 === EXPANDED ? result ? questDockWrapperSpecs.get().height : QUEST_DOCK_COLLAPSED_HEIGHT : questDockWrapperSpecs.get().height; const value17 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; object.width = value17 !== EXPANDED || result ? questDockWrapperSpecs.get().width : questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED; resultBinding = result; const value19 = 0; if (resultBinding) { r1 = value19; } else { moduleValue2 = SpringModule; r1 = moduleValue2.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } const items2 = [{translateX: r1}]; if (result) { r6 = value19; } else { moduleValue3 = SpringModule; r6 = moduleValue3.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } items2[1] = {translateY: r6}; object.transform = items2; object.borderBottomWidth = ReactNativeModule.Pressable ? QuestConstantsModule.QuestDockMode.get() > value19 ? value14 : value19 : value14; return object; } } function QuestDockModeChangeTracker({mode, questId}) { // fn#104253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11130, offset: 0x0228ccf8, size: 120 bytes, params: 2, frame: 17 const useQuestBarOrDockModeChangeTracking = QuestHooksModule.useQuestBarOrDockModeChangeTracking; const object = {mode: mode}; const QuestContent = (QuestTypesModule).QuestContent; let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object.questContent = QUEST_BAR_MOBILE; object.questId = questId; QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object.sourceQuestContent = QUEST_BAR_MOBILE; Reflect.apply(useQuestBarOrDockModeChangeTracking, QuestHooksModule, [object]); return null; } function QuestBarRenderedTriggerPointWrapper() { // fn#104254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11381, offset: 0x0228cd70, size: 35 bytes, params: 1, frame: 13 env0_5.useEffect(function() { var QuestBarRenderedTriggerPoint = require(dependencyMap[38]).QuestBarRenderedTriggerPoint; QuestBarRenderedTriggerPoint.trigger(); }, []); return null; } function QuestDockWithEntranceAnimation() { // fn#104256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12018, offset: 0x0228cdbe, size: 969 bytes, params: 1, frame: 30 var r0; var View; var QuestContentImpressionTrackerNative; var object2; const QuestContent = (QuestTypesModule).QuestContent; var QUEST_BAR_MOBILE; let binding = env0_5; const value2 = undefined; const {isRendered, isVisibleToUser, quest} = binding.useContext(QuestDockContext); let env0_2 = property2(env0_5.useState(function() { return global.performance.now(); }), 1)[0]; const env0_3 = env0_5.useRef(false); const styles = useStyles(); const value7 = property2(env0_5.useState({'width': 0, 'height': 0}), 2); var property = value7[0]; var property2 = property; var env0_5 = value7[1]; const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestDockStore], function() { return QuestDockStore.prevRestingQuestDockMode; }); const isEligibleForQuests = (QuestsEligibilityModule).getIsEligibleForQuests(); const value9 = (QuestHooksModule).useQuestBarImpressionSurvey(quest); const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; const QuestDockWithEntranceAnimationC2 = QuestDockWithEntranceAnimationC; QuestDockWithEntranceAnimationC2.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, isRendered: isRendered, ENTRANCE_ANIMATION_SPING_CONFIG: env0_33, componentDimensions: property}; QuestDockWithEntranceAnimationC2.__workletHash = 15545726338295; QuestDockWithEntranceAnimationC2.__initData = env0_34; const value10 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [QuestDockWithEntranceAnimationC2]); binding = env0_5; const value11 = null; var [property, env0_8] = property2(binding.useState(value11), 2); const useQuestDockHeroAsset = QuestHooksNativeModule.useQuestDockHeroAsset; const staticUrl = Reflect.apply(useQuestDockHeroAsset, QuestHooksNativeModule, [quest]).staticUrl; const value14 = QuestHooksNativeModule.useQuestGameLogotypeAssetUrl(quest); const userStatus = quest.userStatus; const result = value11 != (value11 == userStatus ? value2 : userStatus.enrolledAt); const value15 = (ClientThemesOverridesModule).useGradientBottom(); const useToken = UseTokenModule.useToken; const BACKGROUND_SURFACE_HIGH = (Native).colors.BACKGROUND_SURFACE_HIGH; const value16 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_SURFACE_HIGH]); const backgroundColor = value11 == value15 ? value2 : value15.backgroundColor; const env0_12 = value11 == backgroundColor ? value16 : backgroundColor; env0_5.useEffect(function() { var env0_0 = _fun104261; var env0_1 = _fun104262; var env0_2 = _fun104265; _fun104269(); }, [staticUrl, value14, quest.id]); env0_5.useEffect(_fun104270, [property, quest.id]); let r2 = value11 == quest || !isEligibleForQuests; r2 = !r2 ? !property : r2; env0_5.useEffect(_fun104271, [r2]); if (r2) { r0 = value11; } else { View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View; var viewProps = {pointerEvents: 'box-none', style: [styles.wrapperAnimated, value10], onLayout: onLayout_104273}; QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative; object2 = {overrideVisibility: isVisibleToUser}; QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object2.questContent = QUEST_BAR_MOBILE; object2.questOrQuests = quest; object2.onImpression = value9; QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object2.sourceQuestContent = QUEST_BAR_MOBILE; r0 = ( {children_104274} ); } return r0; function QuestDockWithEntranceAnimationC() { // fn#104259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12445, owner: QuestDockWithEntranceAnimation.c, offset: 0x0228d196, size: 139 bytes, params: 1, frame: 21 const object = {}; const withSpring = SpringModule.withSpring; const isRenderedBinding = isRendered; const value3 = 0; object.opacity = Reflect.apply(withSpring, SpringModule, [isRenderedBinding ? 1 : value3, env1_33, 'animate-always']); object.transform = [{translateY: SpringModule.withSpring(isRendered ? value3 : Module00057.height, env1_33)}]; return object; } function _fun104260() { // fn#104260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13068, offset: 0x0228d221, size: 53 bytes, params: 1, frame: 9 const prefetchWithErrorReporting = function(a0) { return _prefetchWithErrorReporting.apply(this, arguments); }; (function() { return _preloadQuestDockAssets.apply(this, arguments); })(); function prefetchWithErrorReporting(a0) { // fn#104261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13073, offset: 0x00c3b2ba, size: 30 bytes, params: 2, frame: 13 return _prefetchWithErrorReporting.apply(this, arguments); } function _prefetchWithErrorReporting() { // fn#104262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13169, offset: 0x0228d256, size: 53 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__.__proto__; return env2_3(_fun104264).apply(this, arguments); function* _fun104264(a0) { // fn#104264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13246, offset: 0x0228d296, size: 146 bytes, params: 2, frame: 16 var binding; var prefetch; var value3; var value4; var value5; var error; var value6; var track; var QUEST_ASSET_LOADING_FAILURE; var QUESTS_BAR_MOBILE; var id; if (false) { return undefined; } value = environment.__proto__.__proto__.__proto__.__proto__; try { binding = env4_8; } catch (error) { binding = env4_1; value6 = binding(env4_2[43]); track = value6.track; QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE; QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE; value = environment.__proto__.__proto__.__proto__; id = importDefault.id; Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id, asset_id: a0}]); return false; } try { prefetch = binding.prefetch; } catch (error) { binding = env4_1; value6 = binding(env4_2[43]); track = value6.track; QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE; QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE; value = environment.__proto__.__proto__.__proto__; id = importDefault.id; Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id, asset_id: a0}]); return false; } try { value3 = Reflect.apply(prefetch, binding, [a0]); } catch (error) { binding = env4_1; value6 = binding(env4_2[43]); track = value6.track; QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE; QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE; value = environment.__proto__.__proto__.__proto__; id = importDefault.id; Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id, asset_id: a0}]); return false; } yield value3; try { value4 = undefined; value5 = false; } catch (error) { binding = env4_1; value6 = binding(env4_2[43]); track = value6.track; QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE; QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE; value = environment.__proto__.__proto__.__proto__; id = importDefault.id; Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id, asset_id: a0}]); return false; } if (value5) { return value4; } return true; } } function _preloadQuestDockAssets() { // fn#104265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13439, offset: 0x0228d328, size: 53 bytes, params: 1, frame: 13 var environment; const value = environment.__proto__.__proto__; return env2_3(_fun104267).apply(this, arguments); function* _fun104267() { // fn#104267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13508, offset: 0x0228d368, size: 160 bytes, params: 1, frame: 16 var environment; var push; var value3; var value4; if (true) { var items2 = []; value = environment.__proto__.__proto__.__proto__; if (QuestDockStore != null) { push = items2.push; value3 = environment.__proto__.__proto__; Reflect.apply(push, items2, [isRendered(QuestDockStore)]); } if (QuestDockMode != null) { push = items2.push; value4 = environment.__proto__.__proto__; Reflect.apply(push, items2, [isRendered(QuestDockMode)]); } var Promise = global.Promise; yield Promise.all(items2); var value5 = undefined; if (false) { return value5; } Image(value5.every(function(a0) { return a0 === true; })); } } } function preloadQuestDockAssets() { // fn#104269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13701, offset: 0x00d6b059, size: 30 bytes, params: 1, frame: 13 return _preloadQuestDockAssets.apply(this, arguments); } } function _fun104270() { // fn#104270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13818, offset: 0x0228d408, size: 219 bytes, params: 1, frame: 19 var value2; var defaultImport; var increment; var object; var items2; var value; if (ReactNativeModule.Pressable === false) { value2 = environment.__proto__; defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */; increment = defaultImport.increment; object = {}; object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_CONTENT_RENDERING_FAILURE; value = 'quest_id:' + quest.id; items2 = [value]; value = require(7120) /* metro dependency 7120: AnalyticsTypes */; value = value.getQuestContentName((require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_BAR_MOBILE); items2[1] = 'quest_content:' + value; items2[2] = 'reason:asset_loading_error'; object.tags = items2; Reflect.apply(increment, defaultImport, [object]); } } function _fun104271() { // fn#104271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14109, offset: 0x0228d4e3, size: 64 bytes, params: 1, frame: 12 var environment; const value = environment.__proto__; (QuestActionCreatorsModule).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: !QuestDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}); return _fun104272; function _fun104272() { // fn#104272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14188, offset: 0x0228d523, size: 47 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__; (QuestActionCreatorsModule).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: false}); } } function QuestDockWithEntranceAnimationOnLayout(a0) { // fn#104273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14361, owner: QuestDockWithEntranceAnimation.onLayout, offset: 0x0228d552, size: 277 bytes, params: 2, frame: 19 var Math; var value4; var value5; var defaultImport; var distribution; const binding = env0_5; let object = {}; object.height = a0.nativeEvent.layout.height; object.width = a0.nativeEvent.layout.width; binding(object); if (!env0_3.current) { env0_3.current = true; Math = global.Math; if (Math.random() < 0.1) { Math = global.Math; value4 = Math.round(global.performance.now() - env0_2); value5 = environment.__proto__; defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */; distribution = defaultImport.distribution; object = {}; object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_BAR_MOBILE_TIME_TO_FIRST_PAINT; object.tags = ['quest_id:' + quest.id]; Reflect.apply(distribution, defaultImport, [object, value4]); } } } function QuestDockWithEntranceAnimationChildren() { // fn#104274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14871, owner: QuestDockWithEntranceAnimation.children, offset: 0x0228d667, size: 224 bytes, params: 1, frame: 24 const jsxRuntimeEnv1_22Binding = jsxRuntimeEnv1_22; const id = quest.id; const prevRestingQuestDockModeBinding = prevRestingQuestDockMode; const value3 = undefined; const items2 = [ , ]; items2[1] = ; const QuestDockGestureContextProvider = (QuestDockGestureContextModule).QuestDockGestureContextProvider; const ThemeContextProvider = (NativeModule).ThemeContextProvider; const DARK = result ? value3 : ThemeTypes.DARK; items2[2] = ( ); return ( <> {items2} ); } } function QuestDockWithQuestContext() { // fn#104276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:15188, offset: 0x0228d75e, size: 166 bytes, params: 1, frame: 19 const value2 = (QuestHooksNativeModule).useMobileQuestDock(); const value3 = (QuestHooksNativeModule).useIsMobileQuestDockRenderedBase(value2); const value4 = (QuestHooksNativeModule).useIsMobileQuestDockVisibleToUser(value2, value3); const value5 = null; if (value5 == value2) { return value5; } else { const Provider = (importDefault(13650) /* metro dependency 13650: QuestDockContext */).Provider; return ( ); } } } global.__d(_fun104239, 13651, [5, 57, 31, 27, 13570, 6528, 13572, 661, 7553, 482, 33, 4501, 697, 13650, 13573, 13576, 13569, 4559, 4017, 8621, 1585, 5176, 3860, 13652, 4577, 13571, 4581, 4556, 13653, 8141, 1244, 13654, 13661, 13664, 13665, 4562, 9483, 6531, 13666, 566, 9479, 13568, 7701, 683, 4826, 4831, 7120, 9484, 10183, 3868, 2]) /* metro module 13651, dependencies: [5, 57, 31, 27, 13570, 6528, 13572, 661, 7553, 482, 33, 4501, 697, 13650, 13573, 13576, 13569, 4559, 4017, 8621, 1585, 5176, 3860, 13652, 4577, 13571, 4581, 4556, 13653, 8141, 1244, 13654, 13661, 13664, 13665, 4562, 9483, 6531, 13666, 566, 9479, 13568, 7701, 683, 4826, 4831, 7120, 9484, 10183, 3868, 2] */;