/* Metro module 13661; source: modules/quests/native/QuestDock/QuestDockContentExpanded.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13662, 13663, 2] */ function _fun104327(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:6, offset: 0x02291c5a, size: 328 bytes, params: 8, frame: 23 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = importAll(31) /* metro dependency 31 */; const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet; const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode; const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */; const env0_5 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS; const env0_6 = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT; const value3 = require(33) /* metro dependency 33 */; const env0_7 = value3.jsx; const env0_8 = value3.jsxs; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; const object3 = {}; copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined); object3['bottom'] = undefined; object3['display'] = 'flex'; object3['zIndex'] = 1; const env0_9 = Reflect.apply(createStyles, createStylesModule, [{wrapper: object3}]); object = {code: 'function QuestDockContentExpandedTsx1(){const{isEnrolled,QUEST_DOCK_EXPANDED_HEIGHT,windowDimensions,withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,questDockWrapperSpecs}=this.__closure;return{height:isEnrolled?undefined:QUEST_DOCK_EXPANDED_HEIGHT,width:windowDimensions.get().width,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring((questDockWrapperSpecs.get().width-windowDimensions.get().width)/2,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'}; value = value.memo(QuestDockContentExpanded); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentExpanded.tsx'); exports.default = value; } function QuestDockContentExpanded() { // fn#104328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:933, offset: 0x02291da2, size: 436 bytes, params: 1, frame: 24 var r5; var value; const binding = env0_3; let useContext = binding.useContext; const value2 = undefined; const quest = Reflect.apply(useContext, binding, [importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest; const styles = useStyles(); useContext = binding.useContext; const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext; const {activeQuestDockMode, questDockWrapperSpecs, windowDimensions} = Reflect.apply(useContext, binding, [QuestDockGestureContext]); const userStatus = quest.userStatus; const value4 = (userStatus == null ? value2 : userStatus.enrolledAt) != null; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle; const closure = QuestDockContentExpandedN; const object2 = {isEnrolled: value4}; object2.QUEST_DOCK_EXPANDED_HEIGHT = QUEST_DOCK_EXPANDED_HEIGHT; object2.windowDimensions = windowDimensions; object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring; object2.activeQuestDockMode = activeQuestDockMode; object2.QuestDockMode = QuestDockMode; object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS; object2.questDockWrapperSpecs = questDockWrapperSpecs; closure.__closure = object2; closure.__workletHash = 17161265612101; closure.__initData = env0_10; const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]); const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */; const items2 = [styles.wrapper, value5]; const r7 = !value4 && ((Component) => )(importDefault(13662) /* metro dependency 13662: QuestDockUnenrolledBody */); if (value4) { value = importDefault(13663) /* metro dependency 13663: QuestDockEnrolledBody */; value = ((Component) => )(value); r5 = value; } else { r5 = value4; } return ( {r7} {r5} ); } function QuestDockContentExpandedN() { // fn#104329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:1216, owner: QuestDockContentExpanded.n, offset: 0x02291f56, size: 219 bytes, params: 1, frame: 19 const object2 = {}; const QUEST_DOCK_EXPANDED_HEIGHT2 = result ? undefined : QUEST_DOCK_EXPANDED_HEIGHT; object2.height = QUEST_DOCK_EXPANDED_HEIGHT2; let windowDimensionsBinding = windowDimensions; let get = windowDimensionsBinding.get; let width = Reflect.apply(get, windowDimensionsBinding, []).width; object2.width = width; const springModule = require(4577) /* metro dependency 4577: spring */; let withSpring = springModule.withSpring; const value5 = activeQuestDockMode.get(); const EXPANDED = QuestDockMode.EXPANDED; object2.opacity = Reflect.apply(withSpring, springModule, [value5 !== EXPANDED ? 0 : 1, QUEST_DOCK_MODE_CHANGE_PHYSICS]); const moduleValue2 = springModule; withSpring = moduleValue2.withSpring; const questDockWrapperSpecsBinding = questDockWrapperSpecs; get = questDockWrapperSpecsBinding.get; width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width; windowDimensionsBinding = windowDimensions; get = windowDimensionsBinding.get; object2.transform = [{translateX: Reflect.apply(withSpring, moduleValue2, [(width - Reflect.apply(get, windowDimensionsBinding, []).width) / 2, QUEST_DOCK_MODE_CHANGE_PHYSICS])}]; return object2; }