// Module ID: 14166 // Function ID: 14167 // Name: BountiesModalEndedCtaButtons // Dependencies: [21, 4255, 712, 10375, 4116, 4256, 4259, 14161, 4665, 10377, 7082, 5118, 7081, 1236, 2] // Exports: default // Module 14166 (BountiesModalEndedCtaButtons) import jsxProd from "jsxProd"; import createCacheKey from "createCacheKey"; let c3; let c4; ({ jsx: c3, jsxs: c4 } = jsxProd); let closure_5 = createCacheKey.createStyles(() => { let obj = { container: null }; obj = { gap: importDefault(712).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 = require("Themes").fileFinishedImporting("modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx"); export default function BountiesModalEndedCtaButtons(bounty) { let dependencyMap; let showCloseButton; 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(10375); callback = obj.useGetQuestImpressionId(); let obj1 = bounty(4116); const fn = function y() { let obj = bounty(outer1_2[5]); let num = 0; if (visible) { num = 1; } obj = { opacity: obj.withTiming(num, bounty(outer1_2[6]).timingStandard) }; return obj; }; obj = { withTiming: bounty(4256).withTiming, visible, timingStandard: bounty(4259).timingStandard }; fn.__closure = obj; fn.__workletHash = 11417131685254; fn.__initData = closure_6; const animatedStyle = obj1.useAnimatedStyle(fn); bounty(14161); 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(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 }; const result = obj.openAdGameLinkDirectly(obj, obj); }; const items1 = [callback(tmp2(4665).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(4665).Button, obj2); } items1[1] = tmp9Result; obj[1] = items1; visible = closure_4(visible(4116).View, obj); const tmp7 = closure_4; tmp9 = callback; } return visible; };