decord/source/modules/quests/native/BountiesModal/BountiesModal.tsx

41 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14428
// Function ID: 14429
// Dependencies: [19, 6753, 21, 10750, 14429, 14482, 11003, 11154, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 14428
import importAllResult from "noop" /* 19 */;
import { QuestsExperimentLocations } from "QuestsExperimentLocations" /* 6753 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
const bounty_main = "bounty_main";
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function BountiesModal(bountyId) {
bountyId = bountyId.bountyId;
const sourceQuestContent = bountyId.sourceQuestContent;
2026-07-29 08:29:29 +00:00
let verticalScrollEnabled;
2026-07-23 10:11:24 +00:00
let obj = bountyId(verticalScrollEnabled[3]);
verticalScrollEnabled = obj.useBountiesExperience(QuestsExperimentLocations.VIDEO_MODAL_MOBILE).verticalScrollEnabled;
2026-07-20 16:05:17 +00:00
const items = [bountyId, sourceQuestContent, verticalScrollEnabled];
2026-07-23 10:11:24 +00:00
const memo = importAllResult.useMemo(() => ({
2026-08-24 06:08:38 +00:00
[closure_1_6]: {
2026-07-20 16:05:17 +00:00
fullscreen: true,
headerLeft() {
return null;
},
render() {
2026-08-24 06:08:38 +00:00
return closure_1_5(closure_1_1(closure_2 ? closure_1_2[4] : closure_1_2[5]), { bountyId: closure_0, sourceQuestContent: closure_1 });
2026-07-20 16:05:17 +00:00
}
}
}), items);
const layoutEffect = importAllResult.useLayoutEffect(() => {
2026-08-12 06:57:52 +00:00
bountyId(verticalScrollEnabled[6]).applyOrientationLock("PORTRAIT");
return bountyId(verticalScrollEnabled[6]).restoreDefaultOrientationLock;
2026-07-20 16:05:17 +00:00
}, []);
2026-07-29 08:29:29 +00:00
obj = { hideTitle: true, initialRouteName: bounty_main, screens: memo, viewStyle: { backgroundColor: "#000000" } };
return jsx(bountyId(verticalScrollEnabled[7]).Modal, { hideTitle: true, initialRouteName: bounty_main, screens: memo, viewStyle: { backgroundColor: "#000000" } });
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModal.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;