2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 14108
|
|
|
|
|
// Function ID: 108494
|
|
|
|
|
// Dependencies: [31, 33, 4131, 14084, 10428, 10898, 4542, 689, 14089, 4127, 1212, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 14108
|
2026-07-23 10:11:24 +00:00
|
|
|
import importAllResult from "result";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let closure_4;
|
|
|
|
|
let closure_5;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
({ jsx: closure_4, jsxs: closure_5 } = jsxProd);
|
|
|
|
|
let closure_6 = _createForOfIteratorHelperLoose.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;
|
|
|
|
|
let tmp2 = undefined === withRewardAvailableCopy || withRewardAvailableCopy;
|
|
|
|
|
const size = withQuestName.size;
|
|
|
|
|
let str = "lg";
|
|
|
|
|
if (undefined !== size) {
|
|
|
|
|
str = size;
|
|
|
|
|
}
|
|
|
|
|
({ withRewardTileAnimation, onTextBlockLayout } = withQuestName);
|
2026-07-27 11:26:19 +00:00
|
|
|
let obj = quest(14084);
|
2026-07-23 10:11:24 +00:00
|
|
|
quest = obj.useVideoQuestModalContext().quest;
|
2026-07-27 11:26:19 +00:00
|
|
|
let obj1 = quest(10428);
|
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-23 10:11:24 +00:00
|
|
|
obj = { justify: "center", align: "center", spacing: importDefault(689).space.PX_24, style: withQuestName.style };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { hasConfetti: true, quest, size: str, progress: questTaskDetails.percentComplete, onPress: callback, withAnimation: withRewardTileAnimation };
|
2026-07-27 11:26:19 +00:00
|
|
|
const items1 = [callback(importDefault(14089), obj), ];
|
2026-07-23 10:11:24 +00:00
|
|
|
obj1 = { align: "center", spacing: importDefault(689).space.PX_4, onLayout: onTextBlockLayout };
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj2 = { variant: "heading-lg/semibold", color: "text-strong", style: tmp5.questName };
|
|
|
|
|
const intl = quest(1212).intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj3 = { questName: quest.config.messages.questName };
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2.children = intl.formatToPlainString(quest(1212).t.EAYZAr, obj3);
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp = callback(quest(4127).Text, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items2 = [tmp, ];
|
|
|
|
|
if (tmp2) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj4 = { variant: "heading-sm/medium", color: "text-subtle" };
|
|
|
|
|
const intl2 = quest(1212).intl;
|
|
|
|
|
obj4.children = intl2.string(quest(1212).t["1Wvve2"]);
|
2026-07-25 08:10:48 +00:00
|
|
|
tmp2 = callback(quest(4127).Text, obj4);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
items2[1] = tmp2;
|
|
|
|
|
obj1.children = items2;
|
2026-07-25 08:10:48 +00:00
|
|
|
items1[1] = closure_5(quest(4542).Stack, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
2026-07-25 08:10:48 +00:00
|
|
|
return closure_5(quest(4542).Stack, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
2026-07-23 10:11:24 +00:00
|
|
|
let result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/quests/native/VideoQuestModal/VideoQuestModalReward.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default memoResult;
|