decord/source/modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

70 lines
3.3 KiB
TypeScript

// Module ID: 15194
// Function ID: 15195
// Dependencies: [19, 17, 1085, 21, 4560, 15105, 15095, 15116, 5447, 7728, 4495, 4411, 15094, 15195, 4556, 1114, 5587, 15199, 15200, 15153, 2]
// Module 15194
import useThemeDefault from "useTheme" /* 4495 */;
import _modDef15153 from "module_15153" /* 15153 */;
import importAllResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { ThemeTypes } from "sum" /* 1085 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
let c3 = importAllResult;
({ jsx: closure_6, jsxs: error } = jsxProd);
let closure_8 = createCacheKey.createStyles({ primaryContent: { alignItems: "center", flexDirection: "row" }, wreathImage: { height: 35, marginRight: 4, width: 35 }, logo: { marginTop: 2 }, getRewardLabel: { opacity: 0.7 } });
const memoResult = importAllResult.memo(function QuestDockUnenrolledHeader() {
let obj = questCreative(15105);
const questDockQuest = obj.useQuestDockQuest();
obj1 = questCreative(15105);
questCreative = obj1.useQuestCreative(questDockQuest);
let obj2 = questCreative(15095);
const items = [questCreative];
const callback = importAllResult.useCallback(() => {
let obj = closure_1_1(closure_1_2[7]);
obj = { creative: questCreative, isTargetedDisclosure: true, trackingCtx: null };
obj = { content: questCreative(closure_1_2[8]).QuestContent.QUEST_BAR_MOBILE, ctaContent: questCreative(closure_1_2[9]).QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE, sourceQuestContent: questCreative(closure_1_2[8]).QuestContent.QUEST_BAR_MOBILE };
obj[2] = obj;
obj.showModal(obj);
}, items);
const actionSheetPressHandler = obj2.useActionSheetPressHandler(questCreative);
let obj3 = questCreative(4411);
if (obj3.isThemeDark(tmp8)) {
let LIGHT = tmp9.DARK;
let tmp10 = tmp9;
} else {
LIGHT = tmp9.LIGHT;
tmp10 = tmp9;
}
const tmp11 = callback();
tmp8 = useThemeDefault();
const questGameLogotypeAssetUrl = questCreative(15094).useQuestGameLogotypeAssetUrl(questDockQuest);
const questBarHeroBlurhash = questDockQuest.config.assets.questBarHeroBlurhash;
let tmp7Result = tmp7(15195);
obj = { blurHash: questBarHeroBlurhash, collapsedContent: null, withPressableDisclosure: true, onDisclosurePress: null, onSubmenuPress: null, children: null };
obj = { style: tmp11.getRewardLabel, variant: "text-sm/medium", color: "interactive-text-active", children: null };
const intl = tmp(1114).intl;
obj[3] = intl.string(questCreative(1114).t["3mgEQf"]);
obj[1] = closure_6(questCreative(4556).Text, obj);
obj[3] = callback;
obj[4] = actionSheetPressHandler;
obj1 = { style: tmp11.primaryContent, children: null };
tmp7Result = tmp7(5587);
if (LIGHT === tmp10.DARK) {
let tmp7Result1 = tmp7(15199);
} else {
tmp7Result1 = tmp7(15200);
}
obj2 = { source: tmp7Result1, resizeMode: "contain", style: tmp11.wreathImage };
const items1 = [closure_6(tmp7Result, obj2), ];
obj3 = { assetUrl: questGameLogotypeAssetUrl, height: 36, maxWidth: 120, style: tmp11.logo };
items1[1] = closure_6(_modDef15153, obj3);
obj1[1] = items1;
obj[5] = closure_7(View, obj1);
return closure_6(tmp7Result, obj);
});
const result = require("set").fileFinishedImporting("modules/quests/native/QuestDock/QuestDockUnenrolledHeader.tsx");
export default memoResult;