decord/source/modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

73 lines
3.2 KiB
TypeScript

// Module ID: 15298
// Function ID: 15299
// Name: QuestDockContentCollapsed
// Dependencies: [19, 17, 5532, 15207, 21, 4640, 15208, 4376, 5061, 7187, 2]
// Module 15298 (QuestDockContentCollapsed)
import spring from "spring" /* 5061 */;
import noop from "module_19" /* 19 */;
require = fn;
const QuestDockMode = fn(5532).QuestDockMode;
const QUEST_DOCK_MODE_CHANGE_PHYSICS = fn(15207).QUEST_DOCK_MODE_CHANGE_PHYSICS;
const jsx = fn(21).jsx;
const createStyles = fn(4640);
let obj = { questDockContentCollapsed: null };
const obj3 = {};
const merged = Object.assign(fn(17).StyleSheet.absoluteFillObject);
obj3.bottom = undefined;
obj3.zIndex = 2;
obj.questDockContentCollapsed = obj3;
let closure_7 = createStyles.createStyles(obj);
const __initData = { 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)};}" };
const __initData2 = { code: "function QuestDockContentCollapsedTsx2(){const{activeQuestDockMode,QuestDockMode,hideOnExpand}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?'auto':'none'};}" };
const size = fn(2);
const result = size.fileFinishedImporting("modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx");
export default noop.memo(function QuestDockContentCollapsed(children) {
let hideOnExpand = children.hideOnExpand;
let tmp = undefined === hideOnExpand;
if (!tmp) {
tmp = hideOnExpand;
}
hideOnExpand = tmp;
const activeQuestDockMode = noop.useContext(hideOnExpand(15208).QuestDockGestureContext).activeQuestDockMode;
const tmp2 = closure_7();
const fn = function l() {
let num = 1;
if (activeQuestDockMode.get() !== QuestDockMode.COLLAPSED) {
num = 1;
if (hideOnExpand) {
num = 0;
}
}
return { opacity: spring.withSpring(num, closure_5) };
};
let obj = hideOnExpand(4376);
fn.__closure = { withSpring: hideOnExpand(5061).withSpring, activeQuestDockMode, QuestDockMode, hideOnExpand: tmp, QUEST_DOCK_MODE_CHANGE_PHYSICS };
fn.__workletHash = 13361221764426;
fn.__initData = __initData;
const animatedStyle = obj.useAnimatedStyle(fn);
const obj2 = { withSpring: hideOnExpand(5061).withSpring, activeQuestDockMode, QuestDockMode, hideOnExpand: tmp, QUEST_DOCK_MODE_CHANGE_PHYSICS };
class C {
constructor() {
pointerEvents = "auto";
if (activeQuestDockMode.get() !== QuestDockMode.COLLAPSED) {
tmp = hideOnExpand;
pointerEvents = "auto";
if (hideOnExpand) {
pointerEvents = "none";
}
}
return { pointerEvents };
}
}
C.__closure = { activeQuestDockMode, QuestDockMode, hideOnExpand: tmp };
C.__workletHash = 14339269503421;
C.__initData = __initData2;
const animatedProps = hideOnExpand(4376).useAnimatedProps(C);
const obj4 = { style: null, animatedProps, children: children.children };
const items = [tmp2.questDockContentCollapsed, animatedStyle];
obj4.style = items;
return jsx(activeQuestDockMode(7187), { style: null, animatedProps, children: children.children });
});