/* Metro module 13655; source: modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx; dependencies: [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580, 6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573, 1244, 5278, 10139, 8638, 2] */ 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 FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */ import ReanimatedNativeView from '../../../core/native/ReanimatedNativeView.tsx'; /* Metro dependency 8141 */ import QuestDisclosureModalActionCreators from '../QuestDisclosureModal/QuestDisclosureModalActionCreators.tsx'; /* Metro dependency 13580 */ import QuestDockContext from './QuestDockContext.tsx'; /* Metro dependency 13650 */ import UseQuestDockAnimatedBorderRadius from './useQuestDockAnimatedBorderRadius.tsx'; /* Metro dependency 13652 */ 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 PlatformUtilsModule from '../../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */ import * as ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */ import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */ 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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as YouBarExperimentModule from '../../../main_tabs_v2/YouBarExperiment.tsx'; /* Metro dependency 5176 */ import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */ import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */ import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */ import * as AnalyticsTypesModule from '../../lib/analytics/AnalyticsTypes.tsx'; /* Metro dependency 7120 */ import * as MoreHorizontalIconModule from '../../../../design/components/Icon/native/redesign/generated/MoreHorizontalIcon.tsx'; /* Metro dependency 8638 */ import * as CircleQuestionIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleQuestionIcon.tsx'; /* Metro dependency 10139 */ import * as QuestHooksNativeModule from '../QuestHooks.native.tsx'; /* Metro dependency 13568 */ import * as QuestDockHooksModule from './QuestDockHooks.tsx'; /* Metro dependency 13569 */ import * as QuestDockConstantsModule from './QuestDockConstants.tsx'; /* Metro dependency 13572 */ import * as QuestDockGestureContextModule from './QuestDockGestureContext.tsx'; /* Metro dependency 13573 */ function _fun104295(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6, offset: 0x0228f0a7, size: 725 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const QUEST_DOCK_COLLAPSED_HEIGHT = QuestDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT; const createStyles = CreateStylesModule.createStyles; object = {}; object.questDockHeader = {'alignItems': 'center', 'justifyContent': 'space-between', 'flexDirection': 'row', 'height': null, 'overflow': 'hidden', 'paddingRight': 16, 'paddingLeft': 8, 'position': 'absolute', 'zIndex': 2, height: QUEST_DOCK_COLLAPSED_HEIGHT}; object.wreathImage = {'height': 35, 'marginRight': 4, 'width': 35}; object.questDockHeaderPrimary = {'alignItems': 'center', 'flexDirection': 'row'}; object.logo = {marginTop: 2}; object.questDockHeaderSecondary = {'flexGrow': 0, 'flexShrink': 0}; object.questDockHeaderContentCollapsed = {'justifyContent': 'center', 'position': 'absolute', 'bottom': 0, 'top': 0, 'right': 0}; object.questDockHeaderContentExpanded = {'alignItems': 'center', 'flexDirection': 'row', 'gap': 8}; object.questDockHeaderActionDisclosures = {'alignItems': 'center', 'display': 'flex', 'flexDirection': 'row', 'gap': 4}; object.questDockHeaderActionDisclosuresIcon = {'height': 14, 'width': 14}; const TEXT_DEFAULT = (Native).colors.TEXT_DEFAULT; object.questDockHeaderActionSeparator = {'backgroundColor': null, 'opacity': 0.2, 'height': 18, 'width': 1.5, backgroundColor: TEXT_DEFAULT}; object.questDockHeaderTertiaryContent = {opacity: 0.7}; const env0_16 = Reflect.apply(createStyles, CreateStylesModule, [object]); object = {code: 'function questDockHeaderLayoutAnimation_QuestDockUnenrolledHeaderTsx1(values){const{withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{initialValues:{originX:values.currentOriginX,originY:values.currentOriginY,width:values.currentWidth,height:values.currentHeight},animations:{originX:withSpring(values.targetOriginX,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),originY:withSpring(values.targetOriginY,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:withSpring(values.targetHeight,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),width:withSpring(values.targetWidth,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}};}'}; const env0_18 = _fun104296(); object = {code: 'function QuestDockUnenrolledHeaderTsx2(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}]};}'}; object = {code: 'function QuestDockUnenrolledHeaderTsx3(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'}; object = {code: 'function QuestDockUnenrolledHeaderTsx4(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED*-1:0};}'}; object = {code: 'function QuestDockUnenrolledHeaderTsx5(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)};}'}; object = {code: 'function QuestDockUnenrolledHeaderTsx6(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}=this.__closure;return{right:activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED};}'}; object = {code: "function QuestDockUnenrolledHeaderTsx7(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"}; object = {code: 'function QuestDockUnenrolledHeaderTsx8(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,withSpring,questDockAnimatedBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs}=this.__closure;return{borderRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,borderBottomRightRadius:activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?withSpring(questDockAnimatedBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED):questDockBorderRadius,width:questDockWrapperSpecs.get().width};}'}; value = value.memo(QuestDockUnenrolledHeader); (FileImportTrackerModule).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx'); exports.default = value; function _fun104296() { // fn#104296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:1958, offset: 0x0228f37c, size: 88 bytes, params: 1, frame: 14 const questDockHeaderLayoutAnimation2 = questDockHeaderLayoutAnimation; const object = {}; object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED; questDockHeaderLayoutAnimation2.__closure = object; questDockHeaderLayoutAnimation2.__workletHash = 6787168806966; questDockHeaderLayoutAnimation2.__initData = env0_17; return questDockHeaderLayoutAnimation2; function questDockHeaderLayoutAnimation({currentOriginX, currentOriginY, currentWidth, currentHeight, targetOriginX, targetOriginY, targetHeight, targetWidth}) { // fn#104297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:2004, offset: 0x0228f3d4, size: 205 bytes, params: 2, frame: 20 const object = {}; object.initialValues = {originX: currentOriginX, originY: currentOriginY, width: currentWidth, height: currentHeight}; const object3 = {}; const value = environment.__proto__; object3.originX = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginX, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); object3.originY = (require(4577) /* metro dependency 4577: spring */).withSpring(targetOriginY, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); object3.height = (require(4577) /* metro dependency 4577: spring */).withSpring(targetHeight, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); object3.width = (require(4577) /* metro dependency 4577: spring */).withSpring(targetWidth, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); object.animations = object3; return object; } } function QuestDockUnenrolledHeader() { // fn#104298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6344, offset: 0x0228f4a1, size: 2221 bytes, params: 1, frame: 42 let binding = env0_4; let useContext = binding.useContext; const quest = Reflect.apply(useContext, binding, [QuestDockContext]).quest; useContext = binding.useContext; const QuestDockGestureContext = (QuestDockGestureContextModule).QuestDockGestureContext; const {activeQuestDockMode, questDockWrapperSpecs} = Reflect.apply(useContext, binding, [QuestDockGestureContext]); const [property, env0_3] = env0_3Binding(binding.useState(false), 2); let closure = _fun104299; binding.useEffect(closure, []); const value5 = (QuestDockHooksModule).useActionSheetPressHandler(quest); const value6 = binding.useCallback(_fun104301, [quest]); const r19 = (require(4002) /* metro dependency 4002: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)()) ? ThemeTypes.DARK : ThemeTypes.LIGHT; const value8 = (YouBarExperimentModule).useYouBarEnabled('QuestDockUnenrolledHeader'); const useToken = UseTokenModule.useToken; const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS; const value9 = Reflect.apply(useToken, UseTokenModule, [QUEST_DOCK_BORDER_RADIUS]); const value10 = (UseQuestDockAnimatedBorderRadius)(value9); let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockUnenrolledHeaderB; object = {activeQuestDockMode: activeQuestDockMode}; object.QuestDockMode = QuestDockMode; object.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII; object.questDockBorderRadius = value9; object.youBarEnabled = value8; object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object.questDockAnimatedBorderRadius = value10; object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED; object.questDockWrapperSpecs = questDockWrapperSpecs; object.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED; closure.__closure = object; closure.__workletHash = 961167275812; closure.__initData = env0_19; const value11 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = function() { var moduleValue = require(dependencyMap[9]); return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 1 : 0, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}; }; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}; closure.__workletHash = 15527972438968; closure.__initData = env0_20; const value12 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockUnenrolledHeaderK; closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}; closure.__workletHash = 7866036039040; closure.__initData = env0_21; const value13 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = function() { var moduleValue = require(dependencyMap[9]); return {opacity: moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}; }; closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED: QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED}; closure.__workletHash = 11647269239934; closure.__initData = env0_22; const value14 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockUnenrolledHeaderG; closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}; closure.__workletHash = 14794727045076; closure.__initData = env0_23; const value15 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps; closure = QuestDockUnenrolledHeaderF; closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode}; closure.__workletHash = 6738114933032; closure.__initData = env0_24; const value16 = Reflect.apply(useAnimatedProps, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = QuestDockUnenrolledHeaderB_104308; object = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, QUEST_DOCK_CONTENT_BORDER_RADII: QUEST_DOCK_CONTENT_BORDER_RADII, questDockBorderRadius: value9, youBarEnabled: value8}; object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object.questDockAnimatedBorderRadius = value10; object.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED; object.questDockWrapperSpecs = questDockWrapperSpecs; closure.__closure = object; closure.__workletHash = 6128777581416; closure.__initData = env0_25; const value17 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const styles = useStyles(); const value18 = (QuestHooksNativeModule).useQuestGameLogotypeAssetUrl(quest); const questBarHeroBlurhash = quest.config.assets.questBarHeroBlurhash; object = {style: [styles.questDockHeader, value11], layout: env0_18}; const items2 = [ (PlatformUtilsModule.isAndroid() || property) && questBarHeroBlurhash != null ? ((Component) => )(importDefault(13656) /* metro dependency 13656: QuestDockBlurredHeaderPlaceholder */) : ((Component) => )(importDefault(13631) /* metro dependency 13631: QuestDockBlurredContentBackground */), ]; const DARK = ThemeTypes.DARK; items2[1] = ( {((Component) => )(importDefault(13622) /* metro dependency 13622: QuestGameLogotype */)} ); const defaultImport8 = ReanimatedNativeView; const items4 = [styles.questDockHeaderContentCollapsed, value13]; binding = env0_18; const defaultImport9 = ReanimatedNativeView; const Text = (TextModule).Text; let questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent; const intl = (IndexNativeModule).intl; const defaultImport82 = ((Component) => {((Component) => {intl.string((IndexNativeModule).t['3mgEQf'])})(defaultImport9)})(defaultImport8); const defaultImport10 = ReanimatedNativeView; const defaultImport11 = ReanimatedNativeView; const items6 = [styles.questDockHeaderContentExpanded, value14]; const PressableOpacity = (PressablesModule).PressableOpacity; const items7 = [styles.questDockHeaderActionDisclosures]; items7[1] = styles.questDockHeaderTertiaryContent; const jsxRuntimeEnv0_15Binding = jsxRuntimeEnv0_15; let value = ( {intl.string((IndexNativeModule).t.o6FLcF)} ); const CircleQuestionIcon = (CircleQuestionIconModule).CircleQuestionIcon; let INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE; value = ( <> {value} ); const items9 = [value]; items9[1] = ; questDockHeaderTertiaryContent = styles.questDockHeaderTertiaryContent; const MoreHorizontalIcon = (MoreHorizontalIconModule).MoreHorizontalIcon; INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE; items9[2] = ( ); items2[2] = ( {defaultImport82} {((Component) => {((Component) => {items9})(defaultImport11)})(defaultImport10)} ); return ( {items2} ); function _fun104299() { // fn#104299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6568, offset: 0x0228fd4e, size: 104 bytes, params: 1, frame: 14 var environment; var then; var binding; let value = environment.__proto__; if (PlatformUtilsModule.isIOS()) { value = AccessibilityInfo.isReduceTransparencyEnabled(); then = value.then; binding = env0_3; Reflect.apply(then, value, [binding]); var env0_0 = AccessibilityInfo.addEventListener('reduceTransparencyChanged', binding); return _fun104300; } function _fun104300() { // fn#104300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6696, offset: 0x00cef11e, size: 19 bytes, params: 1, frame: 9 return env0_0.remove(); } } function _fun104301() { // fn#104301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:6794, offset: 0x0228fdb6, size: 153 bytes, params: 1, frame: 17 const defaultImport = QuestDisclosureModalActionCreators; const showModal = defaultImport.showModal; const object = {}; object.quest = quest; object.isTargetedDisclosure = true; const object2 = {}; const QuestContent = (QuestTypesModule).QuestContent; let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object2.content = QUEST_BAR_MOBILE; const QuestContentCTA = (AnalyticsTypesModule).QuestContentCTA; const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE; object2.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE; QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE; object2.sourceQuestContent = QUEST_BAR_MOBILE; object.trackingCtx = object2; Reflect.apply(showModal, defaultImport, [object]); } function QuestDockUnenrolledHeaderB() { // fn#104302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:7270, owner: QuestDockUnenrolledHeader.B, offset: 0x0228fe4f, size: 545 bytes, params: 1, frame: 21 var r1; var moduleValue; var moduleValue2; const object = {}; const value2 = activeQuestDockMode.get(); let EXPANDED = QuestDockMode.EXPANDED; object.borderTopLeftRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo; const value4 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; object.borderTopRightRadius = value4 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo; const value5 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; if (value5 === EXPANDED) { r1 = QUEST_DOCK_CONTENT_BORDER_RADII; } else if (env0_4) { moduleValue = require(4577) /* metro dependency 4577: spring */; r1 = moduleValue.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } else { r1 = ReactNativeModule.AccessibilityInfo; } object.borderBottomLeftRadius = r1; const value8 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; if (value8 === EXPANDED) { r1 = QUEST_DOCK_CONTENT_BORDER_RADII; } else if (env0_4) { moduleValue2 = require(4577) /* metro dependency 4577: spring */; r1 = moduleValue2.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } else { r1 = ReactNativeModule.AccessibilityInfo; } object.borderBottomRightRadius = r1; const value11 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; object.width = value11 === EXPANDED ? questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED : questDockWrapperSpecs.get().width; const springModule = require(4577) /* metro dependency 4577: spring */; let withSpring = springModule.withSpring; const value13 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; const value14 = 0; const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2 = value13 !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED; const items2 = [{translateX: Reflect.apply(withSpring, springModule, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED2, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}]; const moduleValue4 = springModule; withSpring = moduleValue4.withSpring; const value = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; const QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3 = value !== EXPANDED ? value14 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED; items2[1] = {translateY: Reflect.apply(withSpring, moduleValue4, [QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED3, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED])}; object.transform = items2; return object; } function QuestDockUnenrolledHeaderK() { // fn#104304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8365, owner: QuestDockUnenrolledHeader.K, offset: 0x022900c3, size: 57 bytes, params: 1, frame: 12 const value = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; return {right: value !== EXPANDED ? 0 : -1 * QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED}; } function QuestDockUnenrolledHeaderG() { // fn#104306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:8853, owner: QuestDockUnenrolledHeader.G, offset: 0x0229014f, size: 47 bytes, params: 1, frame: 12 const value = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; const QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2 = value === EXPANDED ? 0 : QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED; return {right: QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED2}; } function QuestDockUnenrolledHeaderF() { // fn#104307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9071, owner: QuestDockUnenrolledHeader.f, offset: 0x0229017e, size: 50 bytes, params: 1, frame: 11 const value = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'}; } function QuestDockUnenrolledHeaderB_104308() { // fn#104308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13852:9261, owner: QuestDockUnenrolledHeader.b, offset: 0x022901b0, size: 275 bytes, params: 1, frame: 17 var r2; var moduleValue; var moduleValue2; const object = {}; const activeQuestDockModeBinding = activeQuestDockMode; let get = activeQuestDockModeBinding.get; const value2 = Reflect.apply(get, activeQuestDockModeBinding, []); let EXPANDED = QuestDockMode.EXPANDED; object.borderRadius = value2 === EXPANDED ? QUEST_DOCK_CONTENT_BORDER_RADII : ReactNativeModule.AccessibilityInfo; const value4 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; if (value4 === EXPANDED) { r2 = QUEST_DOCK_CONTENT_BORDER_RADII; } else if (env0_4) { moduleValue = require(4577) /* metro dependency 4577: spring */; r2 = moduleValue.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } else { r2 = ReactNativeModule.AccessibilityInfo; } object.borderBottomLeftRadius = r2; const value7 = activeQuestDockMode.get(); EXPANDED = QuestDockMode.EXPANDED; if (value7 === EXPANDED) { r2 = QUEST_DOCK_CONTENT_BORDER_RADII; } else if (env0_4) { moduleValue2 = require(4577) /* metro dependency 4577: spring */; r2 = moduleValue2.withSpring(ReactNativeModule.View.get(), QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED); } else { r2 = ReactNativeModule.AccessibilityInfo; } object.borderBottomRightRadius = r2; const questDockWrapperSpecsBinding = questDockWrapperSpecs; get = questDockWrapperSpecsBinding.get; object.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width; return object; } } } global.__d(_fun104295, 13655, [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580, 6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573, 1244, 5278, 10139, 8638, 2]) /* metro module 13655, dependencies: [57, 31, 27, 6528, 13572, 482, 33, 4501, 697, 4577, 13650, 13573, 478, 13569, 13580, 6531, 7120, 4048, 4002, 5176, 3860, 13652, 4017, 13568, 8141, 13656, 13631, 5475, 13658, 13659, 13622, 4573, 1244, 5278, 10139, 8638, 2] */;