decord/source/modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx
2026-08-25 06:04:03 +00:00

46 lines
2.7 KiB
TypeScript

// Module ID: 14639
// Function ID: 14640
// Dependencies: [32, 19, 17, 21, 4380, 14567, 10531, 11333, 5271, 14581, 4376, 2]
// Module 14639
import Text from "Text" /* 4376 */;
import QuestsVisibleMessagesChangedSource from "QuestsVisibleMessagesChangedSource" /* 5271 */;
import useQuests from "useQuests" /* 10531 */;
import _getQuestsInstructionsToWinReward from "_getQuestsInstructionsToWinReward" /* 11333 */;
import getDeliveredQuest from "getDeliveredQuest" /* 14567 */;
import QUEST_PROGRESS_DIAMETER_BY_SIZEDefault from "QUEST_PROGRESS_DIAMETER_BY_SIZE" /* 14581 */;
import closure_3 from "_slicedToArray" /* 32 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4380 */;
import importAllResult from "noop" /* 19 */;
require = arg1;
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ wrapper: { alignItems: "center", display: "flex", flexDirection: "row", flexGrow: 1, flexShrink: 1, gap: 8, justifyContent: "center", padding: 8 }, progressIndicatorWrapper: { flexGrow: 0, flexShrink: 0 }, copy: { flexGrow: 1, flexShrink: 1 } });
const memoResult = importAllResult.memo(function QuestDockEnrolledHeader() {
let obj = getDeliveredQuest;
const questCreative = obj.useQuestCreative();
const tmp2 = callback4();
obj1 = useQuests;
const questTaskDetails = obj1.useQuestTaskDetails(questCreative);
let obj2 = useQuests;
let obj3 = _getQuestsInstructionsToWinReward;
const questBarTitle = obj3.useQuestBarTitle(questCreative);
obj = { quest: questCreative, isExpanded: false, activeScreen: callback(obj2.useTaskPlatformScreen(questCreative, questTaskDetails), 1)[0], sourceQuestContent: QuestsVisibleMessagesChangedSource.QuestContent.QUEST_BAR_MOBILE };
obj = { style: tmp2.wrapper, children: null };
obj1 = { style: tmp2.progressIndicatorWrapper, children: null };
const questBarSubtitle = _getQuestsInstructionsToWinReward.useQuestBarSubtitle(obj);
obj2 = { quest: questCreative, size: "x-sm", progress: questTaskDetails.percentComplete, loading: false, hasConfetti: true };
obj1[1] = callback2(QUEST_PROGRESS_DIAMETER_BY_SIZEDefault, obj2);
const items = [callback2(View, obj1), ];
obj3 = { style: tmp2.copy, children: null };
const items1 = [callback2(Text.Text, { variant: "heading-md/semibold", color: "mobile-text-heading-primary", children: questBarTitle }), callback2(Text.Text, { variant: "text-sm/medium", color: "text-muted", children: questBarSubtitle })];
obj3[1] = items1;
items[1] = callback3(View, obj3);
obj[1] = items;
return callback3(View, obj);
});
const result = require("set").fileFinishedImporting("modules/quests/native/QuestDock/QuestDockEnrolledHeader.tsx");
export default memoResult;