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

88 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14006
// Function ID: 107180
2026-07-20 16:05:17 +00:00
// Name: BountiesModalEndedCtaButtons
2026-07-27 11:26:19 +00:00
// Dependencies: [33, 4131, 689, 10432, 3992, 4132, 4135, 14001, 4544, 10436, 5960, 4982, 5959, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 14006 (BountiesModalEndedCtaButtons)
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_3;
let closure_4;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
let closure_5 = _createForOfIteratorHelperLoose.createStyles(() => {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { gap: importDefault(689).space.PX_8 };
2026-07-20 16:05:17 +00:00
obj.container = obj;
return obj;
});
let closure_6 = { code: "function BountiesModalEndedCtaButtonsTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}" };
2026-07-23 10:11:24 +00:00
let result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx");
2026-07-20 16:05:17 +00:00
export default function BountiesModalEndedCtaButtons(bounty) {
2026-07-23 10:11:24 +00:00
let dependencyMap;
2026-07-20 16:05:17 +00:00
let showCloseButton;
2026-07-23 10:11:24 +00:00
bounty = bounty.bounty;
2026-07-20 16:05:17 +00:00
let visible = bounty.visible;
2026-07-23 10:11:24 +00:00
({ sourceQuestContent: dependencyMap, showCloseButton } = bounty);
2026-07-20 16:05:17 +00:00
if (showCloseButton === undefined) {
showCloseButton = true;
}
let flag = bounty.disabled;
if (flag === undefined) {
flag = false;
}
let callback;
2026-07-27 11:26:19 +00:00
let obj = bounty(10432);
2026-07-20 16:05:17 +00:00
callback = obj.useGetQuestImpressionId();
2026-07-25 08:10:48 +00:00
let obj1 = bounty(3992);
2026-07-20 16:05:17 +00:00
const fn = function y() {
const obj = {};
let num = 0;
if (visible) {
num = 1;
}
2026-07-23 10:11:24 +00:00
obj.opacity = bounty(outer1_2[5]).withTiming(num, bounty(outer1_2[6]).timingStandard);
2026-07-20 16:05:17 +00:00
return obj;
};
2026-07-25 08:10:48 +00:00
obj = { withTiming: bounty(4132).withTiming, visible, timingStandard: bounty(4135).timingStandard };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 11417131685254;
fn.__initData = closure_6;
const animatedStyle = obj1.useAnimatedStyle(fn);
2026-07-27 11:26:19 +00:00
bounty(14001);
2026-07-20 16:05:17 +00:00
if (visible) {
obj = {};
const items = [tmp.container, animatedStyle];
obj.style = items;
obj1 = {
2026-07-23 10:11:24 +00:00
variant: "primary-overlay",
2026-07-20 16:05:17 +00:00
text: tmp4.buttonLabel,
2026-07-23 10:11:24 +00:00
size: "lg",
2026-07-20 16:05:17 +00:00
disabled: flag,
onPress() {
2026-07-23 10:11:24 +00:00
let obj = bounty(outer1_2[9]);
obj = { adContentId: bounty.id, adCreativeType: bounty(outer1_2[10]).AdCreativeType.BOUNTY, cta: bounty.cta };
obj = { content: bounty(outer1_2[11]).QuestContent.VIDEO_MODAL_END_CARD, ctaContent: bounty(outer1_2[12]).QuestContentCTA.OPEN_GAME_LINK, impressionId: callback(), sourceQuestContent: closure_2 };
2026-07-20 16:05:17 +00:00
const result = obj.openAdGameLinkDirectly(obj, obj);
}
};
2026-07-25 08:10:48 +00:00
const items1 = [callback(bounty(4544).Button, obj1), ];
2026-07-20 16:05:17 +00:00
let tmp10 = null;
if (showCloseButton) {
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "secondary-overlay", text: null, size: "lg" };
const intl = bounty(1212).intl;
obj2.text = intl.string(bounty(1212).t.cpT0Cq);
2026-07-20 16:05:17 +00:00
obj2.disabled = flag;
obj2.onPress = bounty.onClose;
2026-07-25 08:10:48 +00:00
tmp10 = callback(bounty(4544).Button, obj2);
2026-07-20 16:05:17 +00:00
}
items1[1] = tmp10;
obj.children = items1;
2026-07-25 08:10:48 +00:00
visible = closure_4(visible(3992).View, obj);
2026-07-20 16:05:17 +00:00
const tmp5 = closure_4;
}
return visible;
};