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

63 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14606
// Function ID: 14607
// Dependencies: [19, 17, 6753, 14515, 21, 4668, 14516, 4119, 4749, 8164, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 14606
import importAllResult from "noop" /* 19 */;
import { QuestDockMode } from "QuestsExperimentLocations" /* 6753 */;
import QUEST_DOCK_COLLAPSED_HEIGHT from "QUEST_DOCK_COLLAPSED_HEIGHT" /* 14515 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
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);
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;
2026-07-31 08:44:05 +00:00
let closure_8 = createCacheKey.createStyles(obj);
let closure_9 = { code: "function QuestDockContentExpandedTsx1(){const{expandedHeight,QUEST_DOCK_EXPANDED_HEIGHT,windowDimensions,withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,questDockWrapperSpecs}=this.__closure;return{height:expandedHeight==='content'?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(children) {
const expandedHeight = children.expandedHeight;
const context = windowDimensions.useContext(expandedHeight(questDockWrapperSpecs[6]).QuestDockGestureContext);
const activeQuestDockMode = context.activeQuestDockMode;
2026-07-23 10:11:24 +00:00
questDockWrapperSpecs = context.questDockWrapperSpecs;
windowDimensions = context.windowDimensions;
2026-07-31 08:44:05 +00:00
let obj = expandedHeight(questDockWrapperSpecs[7]);
const fn = function s() {
2026-07-20 16:05:17 +00:00
let tmp;
2026-07-31 08:44:05 +00:00
if ("content" !== expandedHeight) {
2026-08-24 06:08:38 +00:00
tmp = closure_1_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-08-24 06:08:38 +00:00
if (activeQuestDockMode.get() === closure_1_4.EXPANDED) {
2026-07-20 16:05:17 +00:00
num = 1;
}
2026-08-24 06:08:38 +00:00
obj[2] = expandedHeight(questDockWrapperSpecs[8]).withSpring(num, closure_1_5);
2026-07-29 08:29:29 +00:00
obj = { translateX: null };
const obj2 = windowDimensions;
2026-07-31 08:44:05 +00:00
const obj3 = expandedHeight(questDockWrapperSpecs[8]);
const tmp2 = expandedHeight;
const tmp3 = questDockWrapperSpecs;
2026-08-24 06:08:38 +00:00
obj[0] = expandedHeight(questDockWrapperSpecs[8]).withSpring((questDockWrapperSpecs.get().width - obj2.get().width) / 2, closure_1_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-31 08:44:05 +00:00
obj = { expandedHeight, QUEST_DOCK_EXPANDED_HEIGHT: closure_6, windowDimensions, withSpring: expandedHeight(questDockWrapperSpecs[8]).withSpring, activeQuestDockMode, QuestDockMode, QUEST_DOCK_MODE_CHANGE_PHYSICS: closure_5, questDockWrapperSpecs };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
2026-07-31 08:44:05 +00:00
fn.__workletHash = 2568599305841;
fn.__initData = closure_9;
const animatedStyle = obj.useAnimatedStyle(fn);
const style = [callback().wrapper, animatedStyle];
return jsx(activeQuestDockMode(questDockWrapperSpecs[9]), { style, children: children.children });
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/quests/native/QuestDock/QuestDockContentExpanded.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;