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

73 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14605
// Function ID: 14606
// 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 14605
import importAllResult from "noop" /* 19 */;
import { QuestDockMode } from "QuestsExperimentLocations" /* 6753 */;
import { QUEST_DOCK_MODE_CHANGE_PHYSICS as closure_5 } from "QUEST_DOCK_COLLAPSED_HEIGHT" /* 14515 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
let obj = { questDockContentCollapsed: 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.zIndex = 2;
obj[0] = obj;
2026-07-31 08:44:05 +00:00
let closure_7 = createCacheKey.createStyles(obj);
let closure_8 = { code: "function QuestDockContentCollapsedTsx1(){const{withSpring,activeQuestDockMode,QuestDockMode,hideOnExpand,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}" };
let closure_9 = { code: "function QuestDockContentCollapsedTsx2(){const{activeQuestDockMode,QuestDockMode,hideOnExpand}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?'auto':'none'};}" };
const memoResult = importAllResult.memo(function QuestDockContentCollapsed(children) {
2026-08-24 06:08:38 +00:00
let hideOnExpand = children.hideOnExpand;
2026-07-31 08:44:05 +00:00
let tmp = undefined === hideOnExpand;
if (!tmp) {
tmp = hideOnExpand;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
hideOnExpand = tmp;
const activeQuestDockMode = importAllResult.useContext(hideOnExpand(14516).QuestDockGestureContext).activeQuestDockMode;
let obj = hideOnExpand(4119);
2026-07-31 08:44:05 +00:00
const fn = function l() {
2026-08-24 06:08:38 +00:00
let obj = hideOnExpand(closure_1_2[8]);
2026-07-20 16:05:17 +00:00
let num = 1;
2026-08-24 06:08:38 +00:00
if (activeQuestDockMode.get() !== closure_1_4.COLLAPSED) {
2026-07-20 16:05:17 +00:00
num = 1;
2026-08-24 06:08:38 +00:00
if (hideOnExpand) {
2026-07-20 16:05:17 +00:00
num = 0;
}
}
2026-08-24 06:08:38 +00:00
obj = { opacity: obj.withSpring(num, closure_1_5) };
2026-07-20 16:05:17 +00:00
return obj;
};
2026-08-24 06:08:38 +00:00
obj = { withSpring: hideOnExpand(4749).withSpring, activeQuestDockMode, QuestDockMode, hideOnExpand: tmp, QUEST_DOCK_MODE_CHANGE_PHYSICS: closure_5 };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 13361221764426;
2026-07-31 08:44:05 +00:00
fn.__initData = closure_8;
const animatedStyle = obj.useAnimatedStyle(fn);
const tmp2 = callback();
class C {
constructor() {
2026-07-29 08:29:29 +00:00
pointerEvents = "auto";
2026-08-24 06:08:38 +00:00
if (activeQuestDockMode.get() !== closure_1_4.COLLAPSED) {
tmp = hideOnExpand;
2026-07-31 08:44:05 +00:00
pointerEvents = "auto";
2026-08-24 06:08:38 +00:00
if (hideOnExpand) {
2026-07-31 08:44:05 +00:00
pointerEvents = "none";
}
2026-07-20 16:05:17 +00:00
}
2026-07-31 08:44:05 +00:00
return { pointerEvents };
2026-07-20 16:05:17 +00:00
}
}
2026-07-31 08:44:05 +00:00
C.__closure = { activeQuestDockMode, QuestDockMode, hideOnExpand: tmp };
C.__workletHash = 14339269503421;
C.__initData = closure_9;
2026-08-24 06:08:38 +00:00
const animatedProps = hideOnExpand(4119).useAnimatedProps(C);
2026-07-31 08:44:05 +00:00
const style = [tmp2.questDockContentCollapsed, animatedStyle];
2026-08-24 06:08:38 +00:00
return jsx(activeQuestDockMode(8164), { style, animatedProps, 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/QuestDockContentCollapsed.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;