decord/source/modules/quests/native/QuestDock/QuestDockContentExpanded.tsx

89 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 14215
// Function ID: 14216
// Dependencies: [19, 17, 5033, 14122, 21, 4189, 14204, 14123, 4050, 4599, 7679, 14216, 14217, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 14215
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { QuestDockMode } from "QuestsExperimentLocations";
import QUEST_DOCK_COLLAPSED_HEIGHT from "QUEST_DOCK_COLLAPSED_HEIGHT";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
let metroImportAll;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
({ QUEST_DOCK_MODE_CHANGE_PHYSICS: c5, QUEST_DOCK_EXPANDED_HEIGHT: closure_6 } = QUEST_DOCK_COLLAPSED_HEIGHT);
({ jsx: error, jsxs: metroImportAll } = jsxProd);
let obj = { wrapper: null };
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(require("get ActivityIndicator").StyleSheet.absoluteFillObject);
2026-07-29 08:29:29 +00:00
obj.bottom = undefined;
obj.display = "flex";
obj.zIndex = 1;
obj[0] = obj;
let closure_9 = createCacheKey.createStyles(obj);
2026-07-20 16:05:17 +00:00
let closure_10 = { 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)}]};}" };
const memoResult = importAllResult.memo(function QuestDockContentExpanded() {
2026-07-23 10:11:24 +00:00
const quest = importAllResult.useContext(questDockWrapperSpecs(windowDimensions[6])).quest;
const context = importAllResult.useContext(activeQuestDockMode(windowDimensions[7]).QuestDockGestureContext);
activeQuestDockMode = context.activeQuestDockMode;
questDockWrapperSpecs = context.questDockWrapperSpecs;
windowDimensions = context.windowDimensions;
2026-07-20 16:05:17 +00:00
const userStatus = quest.userStatus;
let enrolledAt;
2026-07-29 08:29:29 +00:00
if (userStatus != null) {
2026-07-20 16:05:17 +00:00
enrolledAt = userStatus.enrolledAt;
}
2026-07-29 08:29:29 +00:00
let tmp7 = null != enrolledAt;
let tmp3 = callback2();
const fn = function o() {
2026-07-20 16:05:17 +00:00
let tmp;
2026-07-23 10:11:24 +00:00
if (!closure_3) {
tmp = outer1_6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = { height: tmp, width: windowDimensions.get().width, opacity: null, transform: null };
2026-07-20 16:05:17 +00:00
let num = 0;
2026-07-23 10:11:24 +00:00
if (activeQuestDockMode.get() === outer1_4.EXPANDED) {
2026-07-20 16:05:17 +00:00
num = 1;
}
2026-07-29 08:29:29 +00:00
obj[2] = activeQuestDockMode(windowDimensions[9]).withSpring(num, outer1_5);
obj = { translateX: null };
const obj2 = windowDimensions;
const obj3 = activeQuestDockMode(windowDimensions[9]);
const tmp2 = activeQuestDockMode;
const tmp3 = windowDimensions;
obj[0] = activeQuestDockMode(windowDimensions[9]).withSpring((questDockWrapperSpecs.get().width - obj2.get().width) / 2, outer1_5);
2026-07-20 16:05:17 +00:00
const items = [obj];
2026-07-29 08:29:29 +00:00
obj[3] = items;
2026-07-20 16:05:17 +00:00
return obj;
};
2026-07-29 08:29:29 +00:00
let obj = { isEnrolled: tmp7, QUEST_DOCK_EXPANDED_HEIGHT: closure_6, windowDimensions, withSpring: tmp4(tmp2[9]).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS: closure_5, questDockWrapperSpecs };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 17161265612101;
fn.__initData = closure_10;
2026-07-29 08:29:29 +00:00
const animatedStyle = activeQuestDockMode(windowDimensions[8]).useAnimatedStyle(fn);
obj = { style: items, children: null };
items = [tmp3.wrapper, animatedStyle];
let tmp11 = !tmp7;
const tmp4Result = activeQuestDockMode(windowDimensions[8]);
const tmp9 = closure_8;
if (!tmp7) {
tmp11 = callback(tmp(tmp2[11]), {});
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items1 = [tmp11, ];
if (tmp7) {
const obj1 = { quest: null };
obj1[0] = quest;
tmp7 = callback(tmp(tmp2[12]), obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[1] = tmp7;
obj[1] = items1;
return tmp9(questDockWrapperSpecs(windowDimensions[10]), obj);
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("QuestsExperimentLocations").fileFinishedImporting("modules/quests/native/QuestDock/QuestDockContentExpanded.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;