decord/source/modules/quests/native/VideoQuestModal/VideoQuestModalReward.tsx

75 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 14390
// Function ID: 14391
// Dependencies: [19, 21, 4303, 14366, 10459, 11165, 4712, 712, 14371, 4299, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 14390
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
({ jsx: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles({ questName: { textAlign: "center" } });
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function VideoQuestModalReward(withQuestName) {
let onTextBlockLayout;
let withRewardTileAnimation;
withQuestName = withQuestName.withQuestName;
let tmp = undefined === withQuestName;
if (!tmp) {
tmp = withQuestName;
}
const withRewardAvailableCopy = withQuestName.withRewardAvailableCopy;
2026-07-29 08:29:29 +00:00
let tmp9Result = undefined === withRewardAvailableCopy || withRewardAvailableCopy;
2026-07-20 16:05:17 +00:00
const size = withQuestName.size;
let str = "lg";
if (undefined !== size) {
str = size;
}
({ withRewardTileAnimation, onTextBlockLayout } = withQuestName);
2026-08-08 06:10:11 +00:00
let obj = quest(14366);
2026-07-23 10:11:24 +00:00
quest = obj.useVideoQuestModalContext().quest;
2026-08-08 06:10:11 +00:00
let obj1 = quest(10459);
2026-07-20 16:05:17 +00:00
const items = [quest.id];
const questTaskDetails = obj1.useQuestTaskDetails(quest);
const callback = importAllResult.useCallback(() => {
2026-07-23 10:11:24 +00:00
let obj = quest(outer1_2[5]);
2026-07-20 16:05:17 +00:00
obj = { questId: quest.id };
const result = obj.openRewardDetailsBottomSheet(obj);
}, items);
2026-07-29 08:29:29 +00:00
obj = { justify: "center", align: "center", spacing: null, style: null, children: null };
obj[2] = importDefault(712).space.PX_24;
obj[3] = withQuestName.style;
2026-07-20 16:05:17 +00:00
obj = { hasConfetti: true, quest, size: str, progress: questTaskDetails.percentComplete, onPress: callback, withAnimation: withRewardTileAnimation };
2026-08-08 06:10:11 +00:00
const items1 = [callback(importDefault(14371), obj), ];
2026-07-29 08:29:29 +00:00
obj1 = { align: "center", spacing: null, onLayout: null, children: null };
obj1[1] = importDefault(712).space.PX_4;
obj1[2] = onTextBlockLayout;
2026-07-20 16:05:17 +00:00
if (tmp) {
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "heading-lg/semibold", color: "text-strong", style: null, children: null };
obj2[2] = tmp7.questName;
const intl = tmp3(1236).intl;
const obj3 = { questName: null };
obj3[0] = quest.config.messages.questName;
obj2[3] = intl.formatToPlainString(tmp3(1236).t.EAYZAr, obj3);
2026-08-08 06:10:11 +00:00
tmp = tmp9(tmp3(4299).Text, obj2);
2026-07-20 16:05:17 +00:00
}
const items2 = [tmp, ];
2026-07-29 08:29:29 +00:00
if (tmp9Result) {
const obj4 = { variant: "heading-sm/medium", color: "text-subtle", children: null };
const intl2 = tmp3(1236).intl;
obj4[2] = intl2.string(tmp3(1236).t["1Wvve2"]);
2026-08-08 06:10:11 +00:00
tmp9Result = tmp9(tmp3(4299).Text, obj4);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2[1] = tmp9Result;
obj1[3] = items2;
2026-08-08 06:10:11 +00:00
items1[1] = closure_5(quest(4712).Stack, obj1);
2026-07-29 08:29:29 +00:00
obj[4] = items1;
2026-08-08 06:10:11 +00:00
return closure_5(quest(4712).Stack, obj);
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
let result = require("createCacheKey").fileFinishedImporting("modules/quests/native/VideoQuestModal/VideoQuestModalReward.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;