decord/source/modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx
2026-08-24 06:08:38 +00:00

83 lines
3.1 KiB
TypeScript

// Module ID: 14467
// Function ID: 14468
// Name: BountiesModalEndedCtaButtons
// Dependencies: [21, 4668, 712, 10726, 4119, 4671, 4674, 14462, 4750, 10728, 7507, 6758, 7518, 1236, 2]
// Exports: default
// Module 14467 (BountiesModalEndedCtaButtons)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
({ jsx: c3, jsxs: c4 } = jsxProd);
let closure_5 = createCacheKey.createStyles(() => {
let obj = { container: null };
obj = { gap: ThemesDefault.space.PX_8 };
obj[0] = obj;
return obj;
});
let closure_6 = { code: "function BountiesModalEndedCtaButtonsTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}" };
let result = set.fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx");
export default function BountiesModalEndedCtaButtons(bounty) {
bounty = bounty.bounty;
let visible = bounty.visible;
({ sourceQuestContent: dependencyMap, showCloseButton } = bounty);
if (showCloseButton === undefined) {
showCloseButton = true;
}
let flag = bounty.disabled;
if (flag === undefined) {
flag = false;
}
let callback;
let obj = bounty(10726);
callback = obj.useGetQuestImpressionId();
obj1 = bounty(4119);
const fn = function y() {
let obj = bounty(closure_1_2[5]);
let num = 0;
if (visible) {
num = 1;
}
obj = { opacity: obj.withTiming(num, bounty(closure_1_2[6]).timingStandard) };
return obj;
};
obj = { withTiming: bounty(4671).withTiming, visible, timingStandard: bounty(4674).timingStandard };
fn.__closure = obj;
fn.__workletHash = 11417131685254;
fn.__initData = closure_6;
const animatedStyle = obj1.useAnimatedStyle(fn);
bounty(14462);
if (visible) {
obj = { style: null, children: null };
const items = [tmp.container, animatedStyle];
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() {
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 };
const result = obj.openAdGameLinkDirectly(obj, obj);
};
const items1 = [callback(tmp2(4750).Button, obj1), ];
let tmp9Result = null;
if (showCloseButton) {
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;
tmp9Result = tmp9(tmp2(4750).Button, obj2);
}
items1[1] = tmp9Result;
obj[1] = items1;
visible = closure_4(visible(4119).View, obj);
const tmp7 = closure_4;
tmp9 = callback;
}
return visible;
};