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

84 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14467
// Function ID: 14468
2026-07-20 16:05:17 +00:00
// Name: BountiesModalEndedCtaButtons
2026-08-24 06:08:38 +00:00
// Dependencies: [21, 4668, 712, 10726, 4119, 4671, 4674, 14462, 4750, 10728, 7507, 6758, 7518, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14467 (BountiesModalEndedCtaButtons)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
let closure_5 = createCacheKey.createStyles(() => {
let obj = { container: null };
2026-08-24 06:08:38 +00:00
obj = { gap: ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
});
let closure_6 = { code: "function BountiesModalEndedCtaButtonsTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}" };
2026-08-24 06:08:38 +00:00
let result = set.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
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-08-24 06:08:38 +00:00
let obj = bounty(10726);
2026-07-20 16:05:17 +00:00
callback = obj.useGetQuestImpressionId();
2026-08-24 06:08:38 +00:00
obj1 = bounty(4119);
2026-07-20 16:05:17 +00:00
const fn = function y() {
2026-08-24 06:08:38 +00:00
let obj = bounty(closure_1_2[5]);
2026-07-20 16:05:17 +00:00
let num = 0;
if (visible) {
num = 1;
}
2026-08-24 06:08:38 +00:00
obj = { opacity: obj.withTiming(num, bounty(closure_1_2[6]).timingStandard) };
2026-07-20 16:05:17 +00:00
return obj;
};
2026-08-24 06:08:38 +00:00
obj = { withTiming: bounty(4671).withTiming, visible, timingStandard: bounty(4674).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-08-24 06:08:38 +00:00
bounty(14462);
2026-07-20 16:05:17 +00:00
if (visible) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.container, animatedStyle];
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj1 = { variant: "primary-overlay", text: null, size: "lg", disabled: null, onPress: null };
obj1[1] = tmp6.buttonLabel;
obj1[3] = flag;
obj1[4] = function onPress() {
2026-08-24 06:08:38 +00:00
let obj = bounty(closure_1_2[9]);
obj = { adContentId: bounty.id, adCreativeType: bounty(closure_1_2[10]).AdCreativeType.BOUNTY, cta: bounty.cta };
obj = { content: bounty(closure_1_2[11]).QuestContent.VIDEO_MODAL_END_CARD, ctaContent: bounty(closure_1_2[12]).QuestContentCTA.OPEN_GAME_LINK, impressionId: callback(), sourceQuestContent: closure_2 };
2026-07-29 08:29:29 +00:00
const result = obj.openAdGameLinkDirectly(obj, obj);
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
const items1 = [callback(tmp2(4750).Button, obj1), ];
2026-07-29 08:29:29 +00:00
let tmp9Result = null;
2026-07-20 16:05:17 +00:00
if (showCloseButton) {
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "secondary-overlay", text: null, size: "lg", disabled: null, onPress: null };
const intl = tmp2(1236).intl;
obj2[1] = intl.string(tmp2(1236).t.cpT0Cq);
obj2[3] = flag;
obj2[4] = bounty.onClose;
2026-08-24 06:08:38 +00:00
tmp9Result = tmp9(tmp2(4750).Button, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[1] = tmp9Result;
obj[1] = items1;
2026-08-24 06:08:38 +00:00
visible = closure_4(visible(4119).View, obj);
2026-07-29 08:29:29 +00:00
const tmp7 = closure_4;
tmp9 = callback;
2026-07-20 16:05:17 +00:00
}
return visible;
};