1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8f110a6a-0169-6b3d-1d75-9290544c8142")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,404282,e=>{"use strict";var t=e.i(749139),r=e.i(158081);let a=e=>(0,t.getAssetUrl)(`/img/cashout/thumbnails/${e}`),n={revolut:a("revolut.png"),stake:a("stake.png"),stash:a("stash.png"),bitcoin:a("bitcoin.png"),litecoin:a("litecoin.png"),dogecoin:a("dogecoin.png"),solana:a("solana.png")},s=(e,t,r="png")=>`/img/cashout/marks/${e}-${t}.${r}`,i=e=>({sm:s(e,"sm"),bg:s(e,"bg"),xl:s(e,"xl")}),o={[r.WithdrawCurrency.Bch]:i("bitcoin-cash"),[r.WithdrawCurrency.Btc]:i("bitcoin"),[r.WithdrawCurrency.Doge]:i("dogecoin"),[r.WithdrawCurrency.Eos]:i("eos"),[r.WithdrawCurrency.Eth]:i("ethereum"),[r.WithdrawCurrency.Ltc]:i("litecoin"),[r.WithdrawCurrency.Sol]:i("solana"),[r.WithdrawCurrency.Trx]:i("tron"),[r.WithdrawCurrency.Usdc]:i("usdc"),[r.WithdrawCurrency.Xrp]:i("ripple")},u=[r.WithdrawCurrency.Bch,r.WithdrawCurrency.Btc,r.WithdrawCurrency.Doge,r.WithdrawCurrency.Eos,r.WithdrawCurrency.Eth,r.WithdrawCurrency.Ltc,r.WithdrawCurrency.Sol,r.WithdrawCurrency.Trx,r.WithdrawCurrency.Usdc,r.WithdrawCurrency.Usdt,r.WithdrawCurrency.Xrp],l={[r.WithdrawCurrency.Bch]:"Bitcoin Cash",[r.WithdrawCurrency.Btc]:"Bitcoin",[r.WithdrawCurrency.Doge]:"Dogecoin",[r.WithdrawCurrency.Eos]:"EOS",[r.WithdrawCurrency.Eth]:"Ethereum",[r.WithdrawCurrency.Ltc]:"Litecoin",[r.WithdrawCurrency.Sol]:"Solana",[r.WithdrawCurrency.Trx]:"TRON",[r.WithdrawCurrency.Usdc]:"USD Coin",[r.WithdrawCurrency.Usdt]:"Tether",[r.WithdrawCurrency.Xrp]:"XRP"},d={[r.WithdrawCurrency.Bch]:"bitcoinCash",[r.WithdrawCurrency.Btc]:"bitcoin",[r.WithdrawCurrency.Doge]:"dogecoin",[r.WithdrawCurrency.Eos]:"eos",[r.WithdrawCurrency.Eth]:"ethereum",[r.WithdrawCurrency.Ltc]:"litecoin",[r.WithdrawCurrency.Sol]:"solana",[r.WithdrawCurrency.Trx]:"tron",[r.WithdrawCurrency.Usdc]:"usdCoin",[r.WithdrawCurrency.Usdt]:"tether",[r.WithdrawCurrency.Xrp]:"xrp"},c=e=>(0,t.getAssetUrl)(`/img/crypto-icons/${e}`),f={[r.WithdrawCurrency.Bch]:c("bitcoin-cash.png"),[r.WithdrawCurrency.Btc]:c("bitcoin.png"),[r.WithdrawCurrency.Doge]:c("dogecoin.png"),[r.WithdrawCurrency.Eos]:c("eos.png"),[r.WithdrawCurrency.Eth]:c("ethereum.png"),[r.WithdrawCurrency.Ltc]:c("litecoin.png"),[r.WithdrawCurrency.Sol]:c("solana.png"),[r.WithdrawCurrency.Trx]:c("tron.png"),[r.WithdrawCurrency.Usdc]:c("usdc.png"),[r.WithdrawCurrency.Xrp]:c("ripple.png")},m={[r.WithdrawType.Amazon]:i("amazon"),[r.WithdrawType.Apple]:i("apple"),[r.WithdrawType.CultureLand]:i("culture-land"),[r.WithdrawType.CuSouthKorea]:i("cu"),[r.WithdrawType.Dunkin]:i("dunkin"),[r.WithdrawType.EdiyaCoffee]:i("ediya-coffee"),[r.WithdrawType.Emart]:i("emart"),[r.WithdrawType.GooglePlay]:i("google-play"),[r.WithdrawType.Gs25]:i("gs25"),[r.WithdrawType.LotteMart]:i("lottemart"),[r.WithdrawType.Mastercard]:i("mastercard"),[r.WithdrawType.McdonaldsKrw]:i("mcdonald's"),[r.WithdrawType.NaverPay]:i("n-pay"),[r.WithdrawType.OliveYoung]:i("olive-young"),[r.WithdrawType.Paypal]:i("paypal"),[r.WithdrawType.Revolut]:i("revolut"),[r.WithdrawType.Stake]:i("stake"),[r.WithdrawType.StarbucksSouthKorea]:i("starbucks"),[r.WithdrawType.Stash]:i("stash"),[r.WithdrawType.TheCoffeeBean]:i("coffee-bean"),[r.WithdrawType.TousLeJours]:i("tous-les-jours"),[r.WithdrawType.Uber]:i("uber"),[r.WithdrawType.UberEats]:i("uber-eats"),[r.WithdrawType.Venmo]:i("venmo"),[r.WithdrawType.Visa]:i("visa"),[r.WithdrawType.GongCha]:i("gon-cha"),[r.WithdrawType.Ach]:i("bank"),[r.WithdrawType.Swift]:i("bank"),[r.WithdrawType.Iban]:i("bank"),[r.WithdrawType.Giftee]:i("giftee")},S={"Razer Gold":(0,t.getAssetUrl)("/img/site-notifications/razer gold.png"),Itochu:(0,t.getAssetUrl)("/img/site-notifications/itochu.png"),Dunkin:"/img/cashout/withdraws/Dunkin.png","Ediya Coffee":"/img/cashout/withdraws/Ediya Coffee.png",Emart:"/img/cashout/withdraws/Emart.png","Lotte Mart":"/img/cashout/withdraws/Lotte Mart.png","Naver Pay":"/img/cashout/withdraws/Naver Pay.png","The Coffee Bean":"/img/cashout/withdraws/The Coffee Bean.png"};e.s(["CASHOUT_METHOD_LOGOS",0,n,"CRYPTOCURRENCY_LOGO_SOURCES",0,o,"CRYPTO_CURRENCY_DISPLAY_NAMES",0,l,"CRYPTO_CURRENCY_ICONS",0,f,"CRYPTO_CURRENCY_METHOD_I18N_KEYS",0,d,"CRYPTO_WITHDRAW_CURRENCIES",0,u,"GIFTCARD_BRAND_ICON_MAP",0,S,"PAYMENT_PROVIDER_LOGO_SOURCES",0,m])},610288,e=>{"use strict";var t=e.i(137322),r=e.i(400996),a=e.i(158081),n=e.i(404282);let s=new Set(n.CRYPTO_WITHDRAW_CURRENCIES),i=e=>s.has(e),o={[a.WithdrawCurrency.Btc]:r.Currency.BITCOIN,[a.WithdrawCurrency.Bch]:r.Currency.BITCOINCASH,[a.WithdrawCurrency.Doge]:r.Currency.DOGECOIN,[a.WithdrawCurrency.Eos]:r.Currency.EOS,[a.WithdrawCurrency.Eth]:r.Currency.ETHER,[a.WithdrawCurrency.Ltc]:r.Currency.LITECOIN,[a.WithdrawCurrency.Xrp]:r.Currency.RIPPLE,[a.WithdrawCurrency.Sol]:r.Currency.SOL,[a.WithdrawCurrency.Usdt]:r.Currency.TETHER,[a.WithdrawCurrency.Trx]:r.Currency.TRON,[a.WithdrawCurrency.Usdc]:r.Currency.USDC,[a.WithdrawCurrency.StakeCash]:r.Currency.STAKECASH,[a.WithdrawCurrency.Usd]:r.Currency.USD,[a.WithdrawCurrency.Eur]:r.Currency.EUR,[a.WithdrawCurrency.Gbp]:r.Currency.GBP,[a.WithdrawCurrency.Cad]:r.Currency.CAD,[a.WithdrawCurrency.Aud]:r.Currency.AUD,[a.WithdrawCurrency.Chf]:r.Currency.CHF,[a.WithdrawCurrency.Krw]:r.Currency.KRW,[a.WithdrawCurrency.Jpy]:r.Currency.JPY,[a.WithdrawCurrency.Pln]:r.Currency.PLN,[a.WithdrawCurrency.Sek]:r.Currency.SEK},u={};
2for(let[e,t]of Object.entries(o)){let r=i(e)?n.CRYPTO_CURRENCY_ICONS[e]:void 0;r&&t&&(u[t]=r)}let l=e=>i(e)?{id:e.toLowerCase(),name:n.CRYPTO_CURRENCY_DISPLAY_NAMES[e]}:"stakecash"===String(e).trim().toLowerCase().replace(/\s+/g,"")?{id:"stakecash",name:"Stake Cash"}:{id:String(e).toLowerCase(),name:String(e)},d=e=>l(e).name,c=new Set([a.WithdrawProvider.Tango,a.WithdrawProvider.TangoUs,a.WithdrawProvider.Tremendous]),f=new Set([a.WithdrawType.Paypal,a.WithdrawType.Venmo]),m=(e,{isInstantApproval:t=!1}={})=>{let r={key:t?"processing":"inReview",tone:"pending"};return[a.ApprovalStatus.InReview,a.ApprovalStatus.Pending].includes(e.approvalStatus)?r:e.approvalStatus===a.ApprovalStatus.Rejected||e.sentStatus===a.WithdrawSentStatus.Failed?{key:"failed",tone:"failed"}:e.withdrawType===a.WithdrawType.Crypto&&e.currency?{key:"sentToWallet",tone:"success"}:c.has(e.withdrawProvider)||f.has(e.withdrawType)?{key:"sentToEmail",tone:"success"}:e.sentStatus&&[a.WithdrawSentStatus.Sent,a.WithdrawSentStatus.Initiated].includes(e.sentStatus)?{key:"paid",tone:"success"}:r},S=e=>e?.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(""),p={[a.WithdrawCurrency.Btc]:"bitcoin/address",[a.WithdrawCurrency.Bch]:"bitcoin-cash/address",[a.WithdrawCurrency.Eth]:"ethereum/address",[a.WithdrawCurrency.Ltc]:"litecoin/address",[a.WithdrawCurrency.Doge]:"dogecoin/address",[a.WithdrawCurrency.Usdc]:"ethereum/address",[a.WithdrawCurrency.Xrp]:"ripple/account",[a.WithdrawCurrency.Sol]:"solana/account",[a.WithdrawCurrency.Trx]:"tron/account",[a.WithdrawCurrency.Eos]:"eos/account"},g=(e,t)=>e.type===a.WithdrawType.Crypto?t&&i(e.currency)?t(`withdrawals.method.${n.CRYPTO_CURRENCY_METHOD_I18N_KEYS[e.currency]}`):d(e.currency):[a.WithdrawType.Iban,a.WithdrawType.Swift].includes(e.type)?t?t("withdrawals.method.bankTransfer"):"Bank Transfer":e.data?.giftCardBrand?e.data.giftCardBrand:S(e.type)||"-",y="/img/cashout/withdraws/",A={Bitcoin:"Bitcoin.svg",Ethereum:"Ethereum.svg",Dogecoin:"Dogecoin.svg",Litecoin:"Litecoin.svg",Coinbase:"Bitcoin.svg",PayPal:"Paypal.svg",Mastercard:"Mastercard.png",Csgo:"CSGO.svg",Ach:"ACH.svg",CultureLand:"Culture-Land.svg",CuSouthKorea:"CU-South-Korea.svg",Faucetpay:"FaucetPay.svg",GinzaSembikiya:"Ginza Sembikiya.svg",Gs25:"GS25.svg",JustEat:"JustEat.svg",LeagueOfLegends:"League-of-Legends.svg",McdonaldsKrw:"McDonalds KRW.svg",OliveYoung:"Olive Young.svg",Psn:"PSN.svg",StarbucksSouthKorea:"Starbucks-South-Korea.svg",UberEats:"UberEats.svg","Bank Transfer":"Bank Transfer.svg"},w=e=>{let t=A[e];return t?y+t:void 0};e.s(["formatWithdrawalAmount",0,(e,r)=>r?(0,t.isSupportedFiatCurrency)(r.currency)?e({amount:r.amount??0,originalCurrency:r.currency,targetCurrency:r.currency}).value:e({amount:r.amountInCoins}).value:"-","getCryptoCurrencyDisplay",0,l,"getCryptoCurrencyDisplayName",0,d,"getLegacyWithdrawMethodLogo",0,e=>{let t=g(e),r=w(t);return r?r:t?.startsWith("Gift Card")?`${y}${e?.data?.cardCode}.svg`:e.data?.giftCardBrand?e.data.giftCardBrand.includes("Dots.eco")?`${y}Dotseco.png`:n.GIFTCARD_BRAND_ICON_MAP[e.data.giftCardBrand]??`${y}${e.data.giftCardBrand}.svg`:t?`${y}${S(t)}.svg`:void 0},"getPaymentMethodLogoSrc",0,({withdrawalType:e,withdrawalCurrency:t,size:r="bg"})=>(e&&n.PAYMENT_PROVIDER_LOGO_SOURCES[e]?.[r])??(t&&n.CRYPTOCURRENCY_LOGO_SOURCES[t]?.[r])??void 0,"getWithdrawLogoOverride",0,w,"getWithdrawMethodName",0,g,"getWithdrawalLink",0,e=>{let{key:t}=m(e);if("sentToWallet"===t){var r,a;let t,n=e.address?(r=e.currency,a=e.address,(t=p[r])&&a?`https://blockchair.com/${t}/${a}`:null):null;return n?{kind:"blockchain",href:n}:null}return"sentToEmail"===t?{kind:"inbox",email:e.email}:null},"getWithdrawalStatus",0,m,"isCryptoWithdrawCurrency",0,i,"toCurrencyV2",0,e=>{if((0,t.isSupportedFiatCurrency)(e))return e;let a=o[e];return a||(Object.values(r.Currency).includes(e)?e:r.Currency.USD)}])},42241,e=>{"use strict";var t=e.i(271645),r=e.i(266027),a=e.i(304868),n=e.i(489665),s=e.i(892251);let i=` 3 query GetPersonalizedDeal($name: String!) { 4 getPersonalizedDeal(name: $name) { 5 __typename 6 ... on TimeLimitedPersonalizedDealObject { 7 gainId 8 name 9 startAt 10 finishAt 11 } 12 } 13 } 14`;var o=e.i(899432),u=e.i(205975);e.s(["useAffiliateVariableReward",0,({variableRewardSettings:e})=>{let{data:l,isPending:d}=function(e){let{isLoggedIn:t}=(0,n.default)();return(0,r.useQuery)({queryKey:[a.QueryKeys.GRAPHQL_GET_PERSONALIZED_DEAL,e],queryFn:()=>s.default.graphql.request(i,{name:e}),enabled:t&&void 0,staleTime:3e4,refetchOnWindowFocus:!0,refetchOnReconnect:"always"})}("raf-variable-rewards"),{firstCashoutReward:c}=(0,u.useAffiliateSystemV2Variant)(),f=(0,t.useMemo)(()=>{let e=l?.data?.getPersonalizedDeal?.finishAt;if(e){let t=new Date().getTime();return new Date(e).getTime()<=t}return!1},[l?.data?.getPersonalizedDeal?.finishAt]),m=(0,t.useMemo)(()=>{let e=l?.data?.getPersonalizedDeal?.startAt;if(e){let t=new Date().getTime();return new Date(e).getTime()<t}return!1},[l?.data?.getPersonalizedDeal?.startAt]),S=e?.enabled??!1,p=!d&&S&&m&&!f,g=(0,t.useMemo)(()=>e?.variantType===o.RafVariableRewardsVariantType.VARIABLE?{total:e.rewardCoins+c,prevTotal:e.prevRewardCoins+c}:e?.variantType===o.RafVariableRewardsVariantType.RANDOM?{total:e.rewardCoins+c,maxTotal:1e5,minTotal:13500}:void 0,[c,e?.prevRewardCoins,e?.rewardCoins,e?.variantType]);return(0,t.useMemo)(()=>({prevRewardCoins:e?.prevRewardCoins??0,rewardCoins:e?.rewardCoins??0,displayRewardCoinsRange:e?.displayRewardCoinsRange,cashoutCoins:c,enabled:p,totalRewardInCoins:g?.total??0,maxTotalRewardInCoins:g?.maxTotal,minTotalRewardInCoins:g?.minTotal,variant:e?.variant??o.RafVariableRewardsVariant.CONTROL,prevTotalRewardInCoins:g?.prevTotal??0,personalizedDeal:{cooldownDays:e?.personalizedDeal?.cooldownDays??0,durationDays:e?.personalizedDeal?.durationDays??0},variantType:e?.variantType,numberAffiliatesThreshold:e?.numberAffiliatesThreshold??0,followUpBonusCoinsPerFriends:e?.followUpBonusCoinsPerFriends??{},startAt:l?.data?.getPersonalizedDeal?.startAt,finishAt:l?.data?.getPersonalizedDeal?.finishAt,isLoading:d}),[e,c,p,g,l,d])}],42241)},205975,e=>{"use strict";var t=e.i(899432),r=e.i(718628),a=e.i(39918);e.i(870515);var n=e.i(212651);e.s(["useAffiliateSystemV2Variant",0,()=>{let e=(0,r.useFeatureFlags)(e=>e.affiliateSystemV2),s=e?.firstCashoutReward??0,i=e?.firstOfferCompletedReward??0,{userCurrency:o}=(0,n.useUserCurrencyInfo)(),u=a.AFFILIATES_FRIEND_REWARD_PER_CURRENCY_DOUBLED[o]??a.AFFILIATES_FRIEND_REWARD;return{enabled:e?.enabled??!1,variant:e?.variant??t.AffiliatesV21Variant.CONTROL,firstCashoutReward:s,firstOfferCompletedReward:i,totalReward:s+i,friendSignupBonus:u}}])},983055,e=>{"use strict";let t=e.i(533156).default;e.s(["default",0,t])},261578,e=>{"use strict";var t=e.i(843476),r=e.i(964913);e.i(858314);var a=e.i(967608);e.i(441024);var n=e.i(746006),s=e.i(983055),i=e.i(570318);let o={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem"},u=e=>"string"==typeof e?(0,i.resolveColorToken)(e):e;function l(e){return null==e?void 0:"number"==typeof e?`${e}px`:"string"==typeof e?o[e]??e:void 0}function d(e){if(null!=e&&"object"==typeof e){let t=l(e.base);return{base:t,md:l(e.md)??t}}let t=l(e);return{base:t,md:t}}let c={bg:"background",backgroundColor:"background",color:"color",m:"margin",mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",p:"padding",borderRadius:"borderRadius",backdropFilter:"backdropFilter",fontSize:"fontSize",fontWeight:"fontWeight",textAlign:"textAlign",textTransform:"textTransform",whiteSpace:"whiteSpace",wordBreak:"wordBreak",textDecoration:"textDecoration",w:"width",width:"width",minWidth:"minWidth"},f=new Set(["background","color"]);function m(e){let t={};return e&&Object.keys(e).forEach(r=>{let a=c[r],n=e[r];a&&(null==n||"object"!=typeof n)&&(t[a]=f.has(a)?u(n):n)}),t}e.s(["default",0,function({label:e,children:o,maxWidth:l,centered:c,placement:f="top",bodyProps:S,contentProps:p,labelProps:g,backgroundColor:y,triggerClassName:A}){let w=(0,s.default)(),h=d(l),C=null!=h.base||null!=h.md,T=p?.ml!=null?d(p.ml):null,E={padding:"12px 16px",borderRadius:"8px",background:u(y)??(0,i.resolveColorToken)("core.greyBlue.300"),color:"var(--color-core-greyBlue-50)",fontSize:"inherit",fontWeight:"inherit",...c?{textAlign:"center"}:null,...m(S)};C&&(E["--pt-mw-base"]=h.base??h.md,E["--pt-mw-md"]=h.md??h.base),T&&(E["--pt-ml-base"]=T.base??"0",E["--pt-ml-md"]=T.md??T.base??"0");let _=(0,r.cn)(C?"pt-maxw":"max-w-none",T&&"pt-ml"),b=(0,t.jsx)("p",{className:"m-0 p-0",style:{color:"inherit",...m(g)},children:e});return w?(0,t.jsx)(n.Popover,{trigger:o,triggerClassName:A,placement:f,className:_,style:E,children:b}):(0,t.jsx)(a.Tooltip,{label:b,placement:f,className:_,contentProps:{style:E},triggerClassName:A,children:o})}])},212977,e=>{"use strict";function t(e,r={}
14){return e.toLocaleString("en-US",r)}e.s(["coinsToUsd",0,function(e){return e/1e3},"formatCoins",0,function(e){return`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,",")},"formatDollar",0,function(e,r={}){return t(e,{style:"currency",currency:"USD",...r})},"formatDollarDigit",0,function(e,r=!1,a=0,n=2){return t(e,{style:"currency",currency:"USD",minimumFractionDigits:a,maximumFractionDigits:r?0:n})},"formatNumber",0,t,"pluralize",0,function(e,t,r="s"){return`${e} ${t}${1!==e?r:""}`},"removeLastDigitIfThreeDecimals",0,function(e){let t=e.match(/([0-9]*\.?[0-9]+)/);if(!t)return e;let r=t[0];if(r.match(/\.(\d{3})$/)){let t=r.slice(0,-1);return e.replace(r,t)}return e},"round",0,function(e,t=100){return Math.round((e+Number.EPSILON)*t)/t},"toNumber",0,function(e){return"string"==typeof e?Number(e.replace(/[^0-9.]/g,"")):e},"usdToCoins",0,function(e){return 1e3*e}])},410573,e=>{"use strict";var t=e.i(271645);let r=new Set,a=null,n=0;function s(){n=Date.now(),r.forEach(e=>{try{e(n)}catch{}})}let i=["pageshow","focus"];function o(){"visible"===document.visibilityState&&s()}e.s(["useCountdown",0,(e,u)=>{let l=(0,t.useRef)(e),d=u?.autoStop??!0,c=u?.finishIfTargetInPast??!1,f=u?.initialTargetTime;(0,t.useEffect)(()=>{l.current=e},[e]);let[m,S]=(0,t.useState)(()=>null!=f&&f>Date.now()?f-Date.now():void 0),[p,g]=(0,t.useState)(()=>null!=f&&f>Date.now()?f:void 0),[y,A]=(0,t.useState)(()=>null!=f&&f>Date.now()),[w,h]=(0,t.useState)(!1),C=(0,t.useCallback)(e=>{if(c&&e<=Date.now()){g(void 0),S(void 0),A(!0),h(!0),l.current?.();return}c&&h(!1),g(e),S(e-Date.now())},[c]),T=(0,t.useCallback)(()=>{g(void 0),S(void 0),h(!0)},[]);return(0,t.useEffect)(()=>{var e;if(void 0===p)return;let t=()=>{};return e=()=>{let e=p-Date.now();S(e>0?e:0),A(!0),e<=0&&(t(),l.current?.(),d&&T())},r.add(e),null===a&&(n=Date.now(),a=setInterval(s,1e3),document.addEventListener("visibilitychange",o),i.forEach(e=>window.addEventListener(e,o))),t=()=>{r.delete(e),0===r.size&&null!==a&&(clearInterval(a),a=null,document.removeEventListener("visibilitychange",o),i.forEach(e=>window.removeEventListener(e,o)))}},[p,d,T]),{...((e,t,r)=>{if(!e)return{days:"",hours:"",minutes:"",seconds:"",fullSeconds:""};let a=t=>Math.floor(e%(24*(t||1)*36e5)/36e5),n=(t?Math.ceil:Math.floor)(e/864e5),s=a(),i=a(Math.ceil(e/864e5)),o=Math.floor(e%36e5/6e4),u=Math.floor(e%6e4/1e3),l=Math.ceil(e/1e3),d=String(n),c=String(i),f=String(s),m=String(o),S=String(u);return r?{days:d,daysInHours:c,hours:f,minutes:m,seconds:S,fullSeconds:l}:{days:d,daysInHours:c.padStart(2,"0"),hours:f.padStart(2,"0"),minutes:m.padStart(2,"0"),seconds:S.padStart(2,"0"),fullSeconds:l}})(m,u?.roundUpDays,u?.showRawValues),start:C,hasStarted:y,hasFinished:w,stop:T}}],410573)},858314,967608,e=>{"use strict";var t=e.i(843476),r=e.i(186336),a=e.i(964913);let n={start:"start",end:"end"};e.s(["Tooltip",0,function({label:e,children:s,placement:i="top",hasArrow:o=!1,open:u,defaultOpen:l,onOpenChange:d,openDelay:c=0,closeDelay:f,isDisabled:m=!1,className:S,arrowClassName:p,triggerClassName:g,sideOffset:y=8,contentProps:A,"aria-label":w}){if(m||null==e||""===e)return(0,t.jsx)(t.Fragment,{children:s});let{side:h,align:C}=function(e){let[t,r]=e.split("-");return{side:t,align:r?n[r]:"center"}}(i);return(0,t.jsx)(r.Provider,{delayDuration:c,skipDelayDuration:0,children:(0,t.jsxs)(r.Root,{open:u,defaultOpen:l,onOpenChange:d,delayDuration:c,disableHoverableContent:0===f,children:[(0,t.jsx)(r.Trigger,{asChild:!0,children:(0,t.jsx)("span",{className:(0,a.cn)("inline-flex",g),children:s})}),(0,t.jsx)(r.Portal,{children:(0,t.jsxs)(r.Content,{side:h,align:C,sideOffset:y,"aria-label":w,className:(0,a.cn)("z-1800 max-w-[200px] rounded-[6px] bg-core-greyBlue-300 px-[12px] py-[10px]","text-xs font-medium text-core-greyBlue-50","shadow-[0px_0px_16px_var(--color-core-greyBlue-A-30)]",S),...A,children:[e,o&&(0,t.jsx)(r.Arrow,{className:(0,a.cn)("fill-core-greyBlue-300",p)})]})})]})})}],967608),e.s([],858314)},510840,e=>{"use strict";var t=e.i(843476),r=e.i(990332),a=e.i(526917);e.s(["T",0,function(e){let{typography:n,trans:s}=function(e){let{t,i18nKey:r,values:a,count:n,context:s,components:i,tOptions:o,shouldUne
14scape:u,...l}=e;return{typography:{as:"span",...l},trans:{t,i18nKey:r,values:a,count:n,context:s,components:i,tOptions:o,shouldUnescape:u}}}(e);return(0,t.jsx)(r.Typography,{...n,children:(0,t.jsx)(a.Trans,{...s})})}],510840)},45839,e=>{"use strict";var t=e.i(843476),r=e.i(350144);e.s(["default",0,e=>(0,t.jsx)(r.default,{viewBox:"0 0 13 24",fill:"none",...e,children:(0,t.jsx)("path",{d:"M2 1.89453L10.8421 11.9998L2 22.1051",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})])},210534,e=>{"use strict";e.s(["ANDROID_APP_URL",0,"https://play.google.com/store/apps/details?id=com.freecash.app2","ANDROID_APP_URL_OFFERS",0,"https://freecash.go.link/12UPO","ANDROID_APP_URL_QUEST",0,"https://freecash.go.link/fSFwq","IOS_APP_URL_APP_TO_QUEST_CAMPAIGN",0,"https://freecashios.go.link/?adj_t=1v3ngmz0_1voet78n&adj_campaign=FC_APP_TO_QUEST_2_11_2025"])},270822,e=>{"use strict";e.s(["canClaimStreakV2",0,function(e){let t=e?.data?.getCurrentStreakProgress;return!!t&&!1===t.isClaimed&&!!t.claimUntil&&t.claimUntil>new Date().toISOString()}])},149419,e=>{"use strict";var t=e.i(266027),r=e.i(304868),a=e.i(892251);e.i(890526);let n=(0,e.i(840731).graphql)(` 15 query findOffersByQuery( 16 $held: Float 17 $isChargeback: Boolean 18 $isScheduled: Boolean 19 $limit: Int 20 $order: Ordering 21 $page: Int 22 $sort: String 23 $type: OfferCompleteTypeEnum 24 $wall: String 25 $unique: Boolean 26 $showZeroPayoutOffers: Boolean 27 ) { 28 findOffersByQuery( 29 held: $held 30 isChargeback: $isChargeback 31 isScheduled: $isScheduled 32 limit: $limit 33 order: $order 34 page: $page 35 sort: $sort 36 type: $type 37 wall: $wall 38 unique: $unique 39 showZeroPayoutOffers: $showZeroPayoutOffers 40 ) { 41 items { 42 surveyId 43 offerName 44 coins 45 offerCoins 46 status 47 providerName 48 chargebackId 49 dateToRelease 50 date 51 icon 52 wall 53 slug 54 isSharable { 55 status 56 reason 57 } 58 } 59 meta { 60 totalAmount 61 ...OfferInfoDtoMetaFields 62 } 63 } 64 } 65`);e.s(["default",0,function(e,s={}){return(0,t.useQuery)({queryKey:[r.QueryKeys.GRAPHQL_FIND_OFFERS_BY_QUERY,e],queryFn:async()=>{let t=await a.default.graphql.request(n,e);
65return t.data?.findOffersByQuery},retry:!1,...s})}])},158587,476193,124358,e=>{"use strict";var t=e.i(201122),r=e.i(8470);function a(e,a){return(0,t.addMilliseconds)(e,a*r.millisecondsInHour)}e.s(["addHours",0,a],476193);var n=e.i(935704),s=e.i(435684);function i(e){let t=(0,s.toDate)(e);return t.setMilliseconds(0),t}var o=e.i(158081);e.i(212977);var u=e.i(68119),l=e.i(292822),d=e.i(404282),c=e.i(610288);let f={EARNINGS:"earnings",STARTED_OFFERS:"offers-in-progress",WITHDRAWALS:"withdrawals",BONUS_CODE:"bonus-code",SECURITY:"security"},m={...f,SURVEYS_IN_PROGRESS:"surveys-in-progress",CHARGEBACKS:"chargebacks",YOUR_OFFER_TICKETS:"your-offer-tickets"},S=[f.WITHDRAWALS,f.BONUS_CODE];e.s(["DEEP_LINK_SECTIONS",0,S,"EARNINGS_SUB_TABS",0,["offers","instant-cashback","surveys","rewards","referrals","your-offer-tickets"],"MY_PROFILE_DESKTOP_SECTION",0,m,"MY_PROFILE_SECTION",0,f],124358);let p={paid:"rewardStatus.paid",pending:"rewardStatus.pending",done:"rewardStatus.done",declined:"rewardStatus.declined",removed:"rewardStatus.removed","charged back":"rewardStatus.chargedBack",chargedback:"rewardStatus.chargedBack"},g=(e,t)=>{if(!e)return e??"";let r=p[e.trim().toLowerCase()];return r?t(r):e},y=(e,t)=>{let r=Math.max((0,n.differenceInHours)(e,new Date),1);return r>=24?t("modal.withdrawableText",{count:Math.ceil(r/24)}):t("modal.withdrawableTextInHours",{count:r})},A=(e,t)=>e.type===o.WithdrawType.Crypto?e.currency:[o.WithdrawType.Iban,o.WithdrawType.Swift].includes(e.type)?t?.("_offers:bankTransfer")??"Bank Transfer":e.data?.giftCardBrand?e.data.giftCardBrand:w(e.type)||"-";function w(e){return e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join("")}let h={"Razer Gold":(0,l.getAssetUrl)("/img/site-notifications/razer gold.png"),Itochu:(0,l.getAssetUrl)("/img/site-notifications/itochu.png"),Dunkin:"/img/cashout/withdraws/Dunkin.png","Ediya Coffee":"/img/cashout/withdraws/Ediya Coffee.png",Emart:"/img/cashout/withdraws/Emart.png","Lotte Mart":"/img/cashout/withdraws/Lotte Mart.png","Naver Pay":"/img/cashout/withdraws/Naver Pay.png","The Coffee Bean":"/img/cashout/withdraws/The Coffee Bean.png"};e.s(["calculateRewardStatus",0,(e,t)=>{if(e){if(0===e.coins)return t("rewardStatus.done");if(e.dateToRelease){let r=a(new Date(e.dateToRelease),1);if(i(r)>i(new Date))return y(r,t)}return g(e.status,t)}},"calculateRewardStatusForOfferObject",0,(e,t)=>{if(e?.coins===0)return t("rewardStatus.done");if(e?.releaseAt){let r=a(new Date(e.releaseAt),1);if(i(r)>i(new Date))return y(r,t)}return t(e?.isChargebacked?"rewardStatus.chargedBack":e?.isHeld?"rewardStatus.pending":"rewardStatus.paid")},"getDeepLinkedSectionFromHash",0,function(e){let t=e.replace("#","");return S.includes(t)?t:null},"getInstantCashbackGiftCardImageWithFallback",0,e=>e.giftCard?.assets?.logoImageUrl||"/public/img/profile/offerIcon.png","getOfferImageWithFallback",0,e=>{if(e)return e.icon?e.icon:"survey"===e.type?"/public/img/profile/surveyIcon.png":"/public/img/profile/offerIcon.png"},"getOfferObjectImageWithFallback",0,e=>{if(e)return e.thumbnail?e.thumbnail:"/public/img/profile/offerIcon.png"},"getWithdrawIcon",0,e=>{if(e.type===o.WithdrawType.Giftee)return d.PAYMENT_PROVIDER_LOGO_SOURCES[o.WithdrawType.Giftee].bg;let t=A(e);switch(t){case o.WithdrawCurrency.Btc:case o.WithdrawType.Coinbase:return"/img/cashout/withdraws/Bitcoin.svg";case o.WithdrawCurrency.Eth:return"/img/cashout/withdraws/Ethereum.svg";case o.WithdrawCurrency.Doge:return"/img/cashout/withdraws/Dogecoin.svg";case o.WithdrawCurrency.Ltc:return"/img/cashout/withdraws/Litecoin.svg";case o.WithdrawType.Stake:return"/img/cashout/withdraws/Stake.svg";case o.WithdrawType.Paypal:case u.PayPal:return"/img/cashout/withdraws/Paypal.svg";case u.Mastercard:return"/img/cashout/withdraws/Mastercard.png";case o.WithdrawType.Visa:return"/img/cashout/withdraws/Visa.svg";case o.WithdrawType.Csgo:return"/img/cashout/withdraws/CSGO.svg";case o.WithdrawType.Airtm:return"/img/cashout/withdraws/Airtm.svg";default:{if([o.WithdrawType.Iban,o.WithdrawType.Swift].includes(e.type))return"/img/cashout/withdraws/Bank Transfer.svg";if(t.startsWith("Gift Card"))return`/img/cashout/withdraws/${e?.data?.cardCode}.svg`;if(e.data?.giftCardBrand){if(e.data.giftCardBrand.includes("Dots.eco"))return"/img/cashout/withdraws/Dotseco.png";return h[e.data.giftCardBrand]??`/img/cashout/withdraws/${e.data.giftCardBrand}.svg`}let r="Coinbase"===t?void 0:(0,c.getWithdrawLogoOverride)(t);if(r)return r;return`/img/cashout/withdraws/${w(t)}.svg`}}},"getWithdrawTransactionId",0,e=>e?e.txId:null,"getWithdrawType",0,A,"isMyProfileDesktopSection",0,function(e){return Object.values(m).includes(e)},"isMyProfileSection",0,function(e){return Object.values(f).includes(e)},"surveyTitleGenerator",0,e=>{switch(e){case"FREECASH_SURVEYS":return"FREECASH SURVEYS";case"BIT_LABS":return"BIT LABS";
65case"YOUR_SURVEYS":return"YOUR SURVEYS";case"PRIME_SURVEYS":return"PRIME SURVEYS";case"ALMEDIA_SURVEY":return"ALMEDIA SURVEYS";default:return e}},"translateRewardStatus",0,g],158587)},139858,e=>{"use strict";var t=e.i(304868),r=e.i(266027),a=e.i(212977),n=e.i(892251),s=e.i(271645);e.s(["useAffiliatesInfo",0,({enabled:e=!0}={})=>{let{data:i,isPending:o,isFetched:u}=(0,r.useQuery)({queryKey:[t.QueryKeys.GRAPHQL_GET_AFFILIATE_INFO],queryFn:async()=>{let e=await n.default.affiliates.getAffiliatesInfo(),t=e.data?.userAffiliateInfo.totalEarning||0,r=e.data?.userAffiliateInfo.pendingEarnings||0,s=(0,a.usdToCoins)(t),i=(0,a.usdToCoins)(r);return{totalReferrals:e.data?.userAffiliateInfo.totalReferrals||0,totalEarning:s,pendingEarning:i,commission:e.data?.userAffiliateInfo.commission||0}},enabled:e});return(0,s.useMemo)(()=>({...i,isLoading:o,isFetched:u}),[i,o,u])}])},777566,e=>{"use strict";var t=e.i(991820);e.s(["trackVipChatClicked",0,()=>{(0,t.trackAmplitudeEvent)("vip_chat_clicked")},"trackVipLandingPageOpened",0,()=>{(0,t.trackAmplitudeEvent)("vip_landing_page_opened")}])},800238,768031,601266,e=>{"use strict";var t=e.i(843476),r=e.i(350144);e.s(["default",0,e=>(0,t.jsxs)(r.default,{width:"16px",height:"18px",viewBox:"0 0 16 18",...e,children:[(0,t.jsx)("path",{d:"M1.54877 5.90796H1.50331C0.920504 5.90796 0.445312 6.38546 0.445312 6.96774V11.5818C0.445312 12.1664 0.920504 12.6424 1.50331 12.6424H1.54955C2.13235 12.6424 2.60755 12.1649 2.60755 11.5818V6.9677C2.60677 6.38546 2.13084 5.90796 1.54877 5.90796Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M3.1138 13.3628C3.1138 13.8988 3.55108 14.3353 4.08614 14.3353H5.1252V16.8276C5.1252 17.4129 5.6019 17.8889 6.1832 17.8889H6.22866C6.81224 17.8889 7.28817 17.4121 7.28817 16.8276V14.3353H8.74027V16.8276C8.74027 17.4129 9.21848 17.8889 9.79978 17.8889H9.8445C10.428 17.8889 10.9032 17.4121 10.9032 16.8276V14.3353H11.943C12.4773 14.3353 12.9146 13.8988 12.9146 13.3628V6.07724H3.1138V13.3628Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M10.4553 1.65899L11.2806 0.382874C11.3337 0.302386 11.3102 0.192336 11.2291 0.139933C11.1488 0.0867914 11.0389 0.108822 10.9866 0.191562L10.131 1.51174C9.48905 1.24832 8.7721 1.10029 8.01495 1.10029C7.25707 1.10029 6.54163 1.24832 5.89822 1.51174L5.04411 0.191562C4.99183 0.108822 4.88115 0.0867914 4.80006 0.139933C4.71897 0.192301 4.69547 0.302386 4.74852 0.382874L5.5746 1.65899C4.08536 2.39006 3.08119 3.76792 3.08119 5.34845C3.08119 5.44562 3.08727 5.54128 3.0956 5.63616H12.9351C12.9434 5.54128 12.9487 5.44562 12.9487 5.34845C12.9487 3.76792 11.9438 2.39006 10.4553 1.65899ZM5.73376 3.94403C5.47229 3.94403 5.26008 3.73297 5.26008 3.47032C5.26008 3.20767 5.47229 2.99736 5.73376 2.99736C5.99674 2.99736 6.20744 3.20764 6.20744 3.47032C6.20744 3.73301 5.99523 3.94403 5.73376 3.94403ZM10.2954 3.94403C10.0339 3.94403 9.82173 3.73297 9.82173 3.47032C9.82173 3.20767 10.0339 2.99736 10.2954 2.99736C10.5576 2.99736 10.7683 3.20764 10.7683 3.47032C10.7683 3.73297 10.5576 3.94403 10.2954 3.94403Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M14.5251 5.90796H14.4811C13.8983 5.90796 13.4216 6.38546 13.4216 6.96774V11.5818C13.4216 12.1664 13.8991 12.6424 14.4811 12.6424H14.5259C15.1094 12.6424 15.5839 12.1649 15.5839 11.5818V6.9677C15.5839 6.38546 15.1079 5.90796 14.5251 5.90796Z",fill:"currentColor"})]})],800238),e.s(["default",0,e=>(0,t.jsx)(r.default,{width:"20px",height:"18px",viewBox:"0 0 20 18",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.833008 3.01709C0.833008 1.719 1.88289 0.666687 3.17797 0.666687H16.8214C18.1165 0.666687 19.1663 1.719 19.1663 3.01709V11.564C19.1663 12.8621 18.1165 13.9144 16.8214 13.9144H12.7399L13.8058 16.0511H14.2632C14.6164 16.0511 14.9028 16.3381 14.9028 16.6922C14.9028 17.0462 14.6164 17.3332 14.2632 17.3332H13.4243C13.4208 17.3333 13.4172 17.3333 13.4136 17.3334C13.4083 17.3334 13.4029 17.3333 13.3977 17.3332H6.60168C6.5928 17.3334 6.58388 17.3334 6.57497 17.3332H5.73611C5.38291 17.3332 5.09657 17.0462 5.09657 16.6922C5.09657 16.3381 5.38291 16.0511 5.73611 16.0511H6.19356L7.25945 13.9144H3.17797C1.88289 13.9144 0.833008 12.8621 0.833008 11.564V3.01709ZM17.8873 10.0683H2.11208V3.01709C2.11208 2.42704 2.58929 1.94873 3.17797 1.94873H16.8214C17.4101 1.94873 17.8873 2.42704 17.8873 3.01709V10.0683ZM8.68948 13.9144L7.62361 16.0511H12.3758L11.3099 13.9144H8.68948Z",fill:"currentColor"})})],768031),e.s(["default",0,e=>(0,t.jsxs)(r.default,{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("path",{d:"M5.54542 17.8889C2.89955 17.8736 0.710938 12.4725 0.710938 9.72185C0.710938 5.22865 4.0816 4.24497 5.38063 4.24497C5.96604 4.24497 6.59115 4.47487 7.1425 4.67831C7.52806 4.82022 7.92681 4.96671 8.14858 4.96671C8.28132 4.96671 8.59413 4.84209 8.87031 4.73275C9.45931 4.49827 10.1922 4.20685 11.0457 4.20685H11.0508C11.6881 4.20685 13.6203 4.34671 14.7821 6.09129L15.0542 6.50022L14.6625 6.79574C14.1031 7.21789 13.0822 7.98796 13.0822 9.51334C13.0822 11.32 14.2383 12.0148 14.7938 12.3489C15.0389 12.4964 15.2927 12.6485 15.2927 12.9812C15.2927 13.1983 13.5593 17.8619 11.0421 17.8619C10.4262 17.8619 9.9908 17.6768 9.60677 17.5135C9.21819 17.3482 8.88299 17.2058 8.3291 17.2058C8.04833 17.2058 7.6933 17.3386 7.31743 17.4795C6.80378 17.6712 6.2224 17.8889 5.56271 17.8889H5.54542Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M11.3124 0.111084C11.3779 2.47483 9.68746 4.1147 7.99899 4.01185C7.72076 2.12549 9.68726 0.111084 11.3124 0.111084Z",fill:"currentColor"})]})],601266)},225422,e=>{"use strict";var t=e.i(304868),r=e.i(892251),a=e.i(413107),n=e.i(954616),s=e.i(266027),i=e.i(912598),o=e.i(271645);let u=`
66 query GetClaimableUserAffiliateRewards { 67 getClaimableUserAffiliateRewards { 68 id 69 coins 70 rewardType 71 meta { 72 ... on UserAffiliateRewardCoinsMetaObject { 73 coins 74 __typename 75 } 76 ... on UserAffiliateRewardJackpotCaseMetaObject { 77 slotId 78 slotName 79 amount 80 __typename 81 } 82 } 83 } 84 }`,l=` 85 query GetClaimedUserAffiliateRewards { 86 getClaimedUserAffiliateRewards { 87 id 88 coins 89 } 90 }`,d=` 91 mutation ClaimUserAffiliateReward($id: Float!) { 92 claimUserAffiliateReward(id: $id) { 93 id 94 } 95 }`;e.s(["useUserAffiliateRewardsV2",0,({enabled:e=!0,onClaimSuccess:c=()=>{},onClaimError:f=()=>{}}={})=>{let m=(0,i.useQueryClient)(),{toast:S}=(0,a.useToast)(),{data:p}=(0,s.useQuery)({queryKey:[t.QueryKeys.GRAPHQL_GET_CLAIMABLE_USER_AFFILIATE_REWARDS],queryFn:async()=>{let e=await r.default.graphql.request(u);return e.data?.getClaimableUserAffiliateRewards},enabled:e}),{data:g}=(0,s.useQuery)({queryKey:[t.QueryKeys.GRAPHQL_GET_CLAIMED_USER_AFFILIATE_REWARDS],queryFn:()=>r.default.graphql.request(l).then(e=>!!e.data?.getClaimedUserAffiliateRewards?.length),enabled:e}),{mutate:y,isPending:A}=(0,n.useMutation)({mutationFn:e=>r.default.graphql.request(d,{id:e}),onSuccess:()=>{m.invalidateQueries({queryKey:[t.QueryKeys.GRAPHQL_GET_CLAIMABLE_USER_AFFILIATE_REWARDS]}),m.invalidateQueries({queryKey:[t.QueryKeys.GRAPHQL_GET_CLAIMED_USER_AFFILIATE_REWARDS]}),S({title:"User affiliate reward claimed",status:"success"}),c()},onError:f}),w=(0,o.useCallback)(e=>p?.find(t=>t.id===e)||null,[p]),h=!!p?.length;return{claimableRewards:p,isClaiming:A,hasClaimableRewards:h,hasClaimedRewards:g,getReward:w,claimUserAffiliateCoinsReward:t=>{e&&y(t)}}}])},517440,e=>{"use strict";var t=e.i(271645),r=e.i(410573);e.s(["usePersonalizedDealTimer",0,({enabled:e,finishAt:a})=>{let{days:n,hours:s,minutes:i,seconds:o,start:u,hasStarted:l,hasFinished:d}=(0,r.useCountdown)(void 0,{autoStop:!0});return(0,t.useEffect)(()=>{e&&a&&u(new Date(a).getTime())},[u,a,e]),{days:n,hours:s,minutes:i,seconds:o,hasStarted:l,hasFinished:d}}])},76061,e=>{"use strict";var t=e.i(271645);e.s(["default",0,function(e,r=3e3){let a=(0,t.useRef)(e);(0,t.useEffect)(()=>{a.current=e},[e]),(0,t.useEffect)(()=>{let e=setTimeout(()=>{a.current()},r);return()=>{a.current(),clearTimeout(e)}},[r])}])},655427,72494,e=>{"use strict";var t=e.i(709483),r=e.i(899432),a=e.i(225422),n=e.i(675985),s=e.i(42241),i=e.i(139858);e.i(430386);var o=e.i(879894),u=e.i(733969),l=e.i(171783),d=e.i(158081),c=e.i(271645);e.s(["useAffiliatesQuest",0,({enabled:e,affiliatesVersion:f,rewardsV2Variant:m,reward:S,variableRewardSettings:p,hideQuest:g})=>{let y=(0,s.useAffiliateVariableReward)({variableRewardSettings:p}),{pendingEarning:A,isFetched:w}=(0,i.useAffiliatesInfo)({enabled:e&&"v2"===f}),{userProfileInfo:h,isFetched:C}=(0,u.default)(),{data:T,isFetched:E}=(0,l.default)({page:1,limit:1,rewardCategory:d.UserRewardCategory.AffiliateAppinstall},{enabled:e&&"v2"===f}),_=Number(T?.items.length||0)>0,b=Number(A||0)>0,v=(({variant:e})=>{let{isLoggedIn:t}=(0,n.default)(),s=e!==r.AffiliateRewardsV2Variant.CONTROL&&t,{hasClaimableRewards:i,hasClaimedRewards:o}=(0,a.useUserAffiliateRewardsV2)({enabled:s});return s&&!1===i&&!1===o})({variant:"v2"===f||0===S?r.AffiliateRewardsV2Variant.CONTROL:m})||w&&E&&!_&&!b,R=C&&h?.canRefer,I=(0,c.useMemo)(()=>({canShow:v,enabled:e,canRefer:R,variableRewardDealFinishAt:y.finishAt,variableRewardDealEnabled:y.enabled}),[v,e,R,y.enabled,y.finishAt]),{hasChanged:P,storeSnapshot:O}=(0,o.useQuestSnapshot)({data:I,localStorageKey:t.BrowserStorageKeys.QUEST_AFFILIATES_SNAPSHOT});return{needsAttention:P,markAsSeen:O,isEnabled:(e&&v||y.enabled)&&R&&!g,variableRewardPersonalizedDeal:y}}],655427);var f=e.i(843476),m=e.i(630868),S=e.i(821581),p=e.i(463837),g=e.i(915497),y=e.i(754169);let A={color:"core.greyBlue.50",content:(0,f.jsx)(p.Icon,{icon:y.ArrowRightIcon,size:"sm",color:"inherit"})};e.s(["claimTap",0,function(e){return t=>{t.preventDefault(),e?.(t)}},"default",0,function({id:e,reward:t,title:r,titleColor:a="core.greyBlue.50",titleTruncate:n,tone:s="green",trailing:i,arrow:o=!0,expiry:u,progress:l,needsAttention:d,onClick:p,ref:y}){let{t:w}=(0,m.useTranslationTyped)("_common-logged"),h=(0,c.useId)();return(0,f.jsx)(S.Clickable,{onClick:p,children:(0,f.jsx)(g.OfferTask,{id:`${e}-${h}`,ref:y,p:"xs",radius:"semi",bg:"core.greyBlue.500",tone:s,reward:t,title:{color:a,...void 0===n?{}:{truncate:n},value:r},trailing:i??(o?A:void 0),expiry:u,progress:l,attention:d?{label:w("newTag")}:void 0})})}],72494)},752464,869731,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(912598),n=e.i(898892);e.i(430386);var s=e.i(735038),i=e.i(379370),o=e.i(785750),u=e.i(220057),l=e.i(988228);function d(e,t){return"number"==typeof e&&Number.isFinite(e)?e:t}function c(e,t){let r,a;return e.sortKeys??(r=t?.expiresAt?.[e.name],a=t?.seenAt?.[e.name],{expiresKey:d(r,1/0),seenKey:-d(a,0)||0,tieBreaker:e.id})}let f={seenAt:{},expiresAt:{}},m=f;function S(e){var t;return e&&"object"==typeof e&&(void 0===e.seenAt||"object"==typeof e.seenAt)&&(void 0===e.expiresAt||"object"==typeof e.expiresAt)?(t={seenAt:e.seenAt??{},expiresAt:e.expiresAt??{}})===m||(0,n.default)(t,m)?m:m=t:f}function p(){let e=(0,a.useQueryClient)(),{data:t,isLoading:n,isFetched:d,isError:m}=(0,i.useQuestSortDataState)(),p=!n&&!!d,g=!!m,y=p||g,A=(0,r.useCallback)(()=>{var r;return r=e.getQueryData(o.QUEST_SORT_DATA_QUERY_KEY)??t,p||g?g?S((0,u.readLegacySortData)()):r?S(r):S((0,u.readLegacySortData)()):f},[g,p,e,t]),w=(0,r.useCallback)(()=>A(),[A]),h=(0,r.useSyncExternalStore)(l.subscribeQuestSnapshot,w,w),[C,T]=(0,r.useState)(null);null===C&&y&&T(h);let E=C??h,_=(0,r.useCallback)(t=>{e.setQueryData(o.QUEST_SORT_DATA_QUERY_KEY,t),(0,l.emitQuestSnapshotChange)(),(0,s.enqueueQuestSortData)(t)},[e]),b=(0,r.useCallback)(e=>[...e].sort((e,t)=>
95{var r,a;return r=c(e,E),a=c(t,E),r.expiresKey!==a.expiresKey?r.expiresKey-a.expiresKey:r.seenKey!==a.seenKey?r.seenKey-a.seenKey:r.tieBreaker-a.tieBreaker}),[E]),v=(0,r.useCallback)(e=>{if(!y)return;let t=A();_({...t,seenAt:{...t.seenAt,[e]:Date.now()}})},[y,A,_]),R=(0,r.useCallback)((e,t)=>{if(!y)return;let r=A();_({...r,expiresAt:{...r.expiresAt,[e]:t}})},[y,A,_]);return(0,r.useMemo)(()=>({registerQuestSeenNow:v,registerQuestExpiredAt:R,sortQuests:b,getSortData:A}),[v,R,b,A])}e.s(["useUserQuestsSorter",0,p],869731);let g=(0,r.createContext)(null);e.s(["QuestSorterProvider",0,function({children:e}){let a=p(),[n]=(0,r.useState)(()=>new Set),s=(0,r.useMemo)(()=>({...a,seenRegistrationAttempted:n}),[a,n]);return(0,t.jsx)(g.Provider,{value:s,children:e})},"useQuestSorterContext",0,function(){let e=(0,r.useContext)(g);if(!e)throw Error("useQuestSorterContext must be used within QuestSorterProvider");return e}],752464)},864308,922196,817309,404367,7539,10996,590987,188969,882128,80419,562055,33836,704172,870789,386648,414714,388586,324205,845126,800306,274248,611843,24541,128920,384809,81655,349711,378534,659372,e=>{"use strict";e.s(["AffiliatesTaskEntry",()=>y],864308);var t,r,a=e.i(843476),n=e.i(517440),s=e.i(838751),i=e.i(899432),o=e.i(655427),u=e.i(762198),l=e.i(630868),d=e.i(72494),c=e.i(271645),f=e.i(210845),m=e.i(752464);e.i(847134);var S=((t={}).OFFER_BUNDLE_QUEST="Install 3 apps",t.OFFER_BUNDLE_V2_QUEST="Install 3 apps V2",t.STREAK_QUEST="Streak",t.STREAK_V2_QUEST="Streak V2",t.BONUS_LADDER_QUEST="Bonus ladder",t.FIRST_PURCHASE_REWARD_QUEST="Incentive IAP boost quest",t.BIG_TICKET_IAP_POPUP_QUEST="Big Ticket IAP Popup",t.REACTIVATION_INSTALLS_POPUP_QUEST="Reactivation installs popup",t.AFFILIATES_QUEST="Affiliates",t.WORDLE_QUEST="Wordle",t.PUSH_NOTIFICATION_QUEST="Push notification",t.BRAZE_WEB_PUSH_QUEST="Braze Web Push",t.IOS_SHORTCUT_QUEST="iOS Shortcut Quest",t.ANDROID_SHORTCUT_QUEST="Android Shortcut",t.ANDROID_FIRST_LOGIN_QUEST="Android App First Login Quest",t.FIRST_ARCADE_CASE_QUEST="First Arcade Case Quest",t.STAKE_FAUCET_QUEST="Stake Faucet Quest",t.STAKE_OFFER_QUEST="Stake Offer Quest",t.STAKE_DEPOSIT_QUEST="Stake Deposit 20 To Get 50",t.MINIGAMES_QUEST="Play mini-games, get lottery tickets!",t.BONUS_REWARDS_QUEST="Bonus Rewards",t.SOCIAL_MEDIA_FOLLOW_QUEST="Follow us on Social Media",t.COLLECT_PHONE_NUMBER_QUEST="Collect Phone Number from Old Users",t.IOS_INSTALL_APP_QUEST="Login on the Freecash App",t.LOTTERY_REWARDED_AD_QUEST="Lottery Rewarded Ad Quest",t.IOS_STREAK_WIDGET_QUEST="IOS Homepage Widget",t.ANDROID_STREAK_WIDGET_QUEST="Android Homepage Widget",t.VIP_COMMUNITY_QUEST="VIP Community Facebook Group",t.CASHBACK_ACTIVATION_JOURNEY="Cashback Activation Journey",t.GIFT_CARD_ACTIVATION_JOURNEY="Gift Card Activation Journey",t.PRICE_COMPARISON_ACTIVATION_JOURNEY="Price Comparison Activation Journey",t.FRIEND_STREAK_QUEST="Complete 7-day Streak with a friend",t.AD_REVENUE_GAMES_QUEST="Play 3 Ad Revenue Games",t);e.s(["QuestName",()=>S],922196);var p=e.i(205975),g=e.i(910238);let y=({affiliatesVersion:e,rewardsV2Variant:t,reward:r,variableRewardSettings:y})=>{let{t:A}=(0,l.useTranslationTyped)("_rewards"),{trigger:w}=(0,s.useAsyncPopup)(),h=(0,g.useCurrencyText)(),{friendSignupBonus:C,firstCashoutReward:T,firstOfferCompletedReward:E}=(0,p.useAffiliateSystemV2Variant)(),{needsAttention:_,variableRewardPersonalizedDeal:b}=(0,o.useAffiliatesQuest)({enabled:!0,affiliatesVersion:e,reward:r,rewardsV2Variant:t,variableRewardSettings:y}),v=b?.variantType===i.RafVariableRewardsVariantType.RANDOM,R=(0,m.useQuestSorterContext)(),I=b?.enabled&&b.finishAt?new Date(b.finishAt).getTime():void 0;(0,c.useEffect)(()=>{void 0!==I&&R.registerQuestExpiredAt(S.AFFILIATES_QUEST,I)},[I,R]);let{days:P,hours:O,minutes:k,seconds:Q}=(0,n.usePersonalizedDealTimer)({enabled:b?.enabled??!1,finishAt:b?.finishAt}),N=(0,c.useMemo)(()=>+P>0?A("quests.affiliates.daysLeft",{days:P}):+O>0?`${O}:${k}`:0==+O&&+k>0?`${k}:${Q}`:void 0,[P,O,k,Q]),U=()=>{"v1"===e?w({name:s.AllowedAsyncPopupName.AFFILIATE_REWARDS_V2_INVITATION,args:{variant:t,coins:r,source:u.AffiliateRe
95wardsV2PopupSource.QUEST}}):w({name:s.AllowedAsyncPopupName.AFFILIATES_V21_INVITATION,args:{source:f.AffiliateShareSource.QUEST,variant:i.AffiliatesV21Variant.TREATMENT,firstCashoutReward:T,firstOfferInstallReward:E,friendReward:C,variableRewardPersonalizedDeal:b}})};if(b.enabled){let e=String(h({amount:v?b?.maxTotalRewardInCoins||0:b?.totalRewardInCoins||0}).value);return(0,a.jsx)(d.default,{id:"affiliates-task-entry-deal",reward:{value:v?`${A("quests.affiliates.upTo")} ${e}`:e,variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:"core.yellow.500",bg:"core.yellow.25-A10"},title:A("quests.affiliates.inviteFriend"),titleTruncate:"ellipsis",arrow:!1,trailing:N?{color:"core.neutral.0",label:N}:void 0,onClick:U})}return(0,a.jsx)(d.default,{id:"affiliates-task-entry",reward:{value:String(h({amount:r}).value)},title:A("quests.affiliates.title"),titleTruncate:"ellipsis",needsAttention:_,onClick:U})};var A=e.i(718628),w=e.i(600054);e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),{needsAttention:t}=(0,w.default)({enabled:!0}),r=(0,A.useFeatureFlags)(e=>e.quests?.androidFirstLoginQuest?.coins),n=(0,s.useAsyncPopup)(),i=(0,g.useCurrencyText)(),o=e("quests.androidFirstLogin.title");return(0,a.jsx)(d.default,{id:"android-first-login-task-entry",reward:{value:String(i({amount:r??0}).value)},title:o,titleTruncate:"ellipsis",needsAttention:t,onClick:()=>{n.trigger({name:s.AllowedAsyncPopupName.ANDROID_FIRST_LOGIN_QUEST_INTERMEDIATE_POPUP})}})}],817309),e.s(["default",()=>I],7539);var h=e.i(410573),C=e.i(709483);e.i(430386);var T=e.i(879894),E=e.i(148182);function _(e){let{isQuestVisible:t}=(0,E.default)({experimentSettings:e}),r=(0,c.useMemo)(()=>({isEnabled:t,offerBundleId:e?.offerBundleId}),[e?.offerBundleId,t]),{hasChanged:a,storeSnapshot:n}=(0,T.useQuestSnapshot)({data:r,localStorageKey:C.BrowserStorageKeys.QUEST_BIG_TICKET_IAP_POPUP_SNAPSHOT});return{needsAttention:a&&t,markAsSeen:n,isEnabled:t}}e.s(["default",0,_],404367);var b=e.i(655145),v=e.i(212977),R=e.i(110266);function I(){let e=(0,A.useFeatureFlags)(e=>e.quests?.bigTicketIAPPopupSettings),{needsAttention:t}=_(e),{endTime:r,isExpired:n,refetchOfferBundle:o,rewardAmount:u,rewardsLeft:f,minimumPurchaseTarget:p}=(0,E.default)({experimentSettings:e}),{hours:y,minutes:w,seconds:C,start:T,hasStarted:I}=(0,h.useCountdown)(()=>{}),P=(0,m.useQuestSorterContext)(),O=(0,s.useAsyncPopup)(),{t:k}=(0,l.useTranslationTyped)("_rewards"),{format:Q}=(0,b.default)(),N=(0,g.useCurrencyText)();(0,c.useEffect)(()=>{"number"==typeof r&&(T(r),P.registerQuestExpiredAt(S.BIG_TICKET_IAP_POPUP_QUEST,r))},[r,T,P]),(0,c.useEffect)(()=>{o()},[o]);let U=e?.variant===i.BigTicketIAPPopupVariant.LIMITED_AMOUNT,x=e?.variant===i.BigTicketIAPPopupVariant.COUNTDOWN,D=k("quests.bigTicketIAPPopup.title",{minPurchaseAmount:Q((0,v.usdToCoins)(p),!1,!1,!0,2)});return(0,a.jsx)(d.default,{id:"big-ticket-iap-popup-task-entry",reward:{value:String(N({amount:u}).value)},title:D,arrow:!1,expiry:!n&&I&&x?{value:[y&&"00"!==y?y:null,w,C].filter(Boolean).join(":"),icon:R.HourglassIcon,color:"core.greyBlue.50",bg:"core.greyBlue.800"}:void 0,trailing:!n&&U?{color:"core.neutral.0",label:k("quests.bigTicketIAPPopup.rewardsLeft",{rewardsLeft:f})}:void 0,needsAttention:t,onClick:()=>{O.trigger({name:s.AllowedAsyncPopupName.BIG_TICKET_IAP_POPUP})}})}var P=e.i(964913),O=e.i(79075);e.i(870515);var k=e.i(212651),Q=e.i(763518),N=e.i(344298);let U=({bonusRewardsByOfferId:e,isCollapsible:t})=>{let{userCurrency:r}=(0,k.useUserCurrencyInfo)(),{t:n}=(0,l.useTranslationTyped)("_rewards"),s=(0,g.useCurrencyText)();return(0,a.jsx)("div",{className:(0,P.cn)("flex w-full flex-col gap-[8px]",t?"mt-[8px]":"mt-0"),children:Object.values(e).map((e,t)=>{let{offer:i,tasks:o}=e;return o.map(e=>(0,a.jsx)(d.default,{id:`bonus-rewards-${e.id}`,reward:{value:String(s({amount:Number(e.coins??0)}).value)},title:n("quests.bonusRewardsQuest.taskTitle",{amount:(0,O.formatCurrencyAmount)(Math.ceil(e.amountRemaining),r,!0),offerName:i.name}),titleTruncate:"ellipsis",trailing:{content:(0,a.jsx)(N.Button,{size:"xs",onClick:(0,d.claimTap)(()=>{window.onReactOfferClick?.({offer:(0,Q.convertToOfferData)(i),source:"quests-bonus-rewards",position:t,isClickedWithoutOpen:!0})}),children:n("quests.bonusRewardsQuest.play")})}},e.id))})})};e.s(["default",0,U],10996);var x=e.i(463837),D=e.i(919261);e.s(["default",0,function({isExpanded:e,bonusRewardsByOfferId:t,isCollapsible:r}){let{t:n}=(0,l.useTranslationTyped)("_rewards"),s=(0,g.useCurrencyText)(),i=(0,c.useMemo)(()=>Object.values(t).reduce((e,t)=>
95e+t.tasks.reduce((e,t)=>e+Number(t.coins??0),0),0),[t]);return r?(0,a.jsx)(d.default,{id:"bonus-rewards-task-entry",reward:{value:String(s({amount:i}).value)},title:n("quests.bonusRewardsQuest.heading"),titleTruncate:"ellipsis",trailing:{content:(0,a.jsx)("div",{className:"flex items-center justify-center",style:{transform:void 0!==e?`rotate(${180*!!e}deg)`:"",transition:"transform 0.3s ease-in-out"},children:(0,a.jsx)(x.Icon,{icon:D.ArrowDownIcon,size:"sm",color:"inherit"})})}}):(0,a.jsx)(U,{bonusRewardsByOfferId:t,isCollapsible:r})}],590987);var B=e.i(590853);e.s(["default",0,function({type:e,bonus:t,needsAttention:r}){let{t:n}=(0,l.useTranslationTyped)("_rewards"),i=(0,s.useAsyncPopup)(),o=(0,B.formatCurrency)({amount:t.amount,targetCurrency:t.currency}),u=n("cashback"===e?"quests.cashbackActivationJourney.title":"quests.giftCardActivationJourney.title",{count:t.milestoneNumber,ordinal:!0});return(0,a.jsx)(d.default,{id:`activation-journey-${e}-task-entry`,reward:{value:String(o.value)},title:u,titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{i.trigger({name:s.AllowedAsyncPopupName.ACTIVATION_JOURNEY_PROMOTION_POPUP,args:{type:e}})}})}],188969);var W=e.i(633135),F=e.i(767751),M=e.i(677948),L=e.i(681307);let K=L.z.object({lastSeenBundleKey:L.z.string().optional()}),j=(0,M.createModalStateHook)("adRevenueGamesQuest",K);var V=e.i(82183);e.s(["default",0,function({needsAttention:e,latestStartedGameId:t,rewardCoins:r,progress:n,offerBundleId:s,userOfferBundleId:i,bundleType:o}){let{t:u}=(0,l.useTranslationTyped)("_rewards"),f=(0,W.default)(),m=(0,g.useCurrencyText)(),{data:S,isFetched:p,save:y}=j(),A=(0,c.useRef)(null),w=function({offerBundleId:e,userOfferBundleId:t}){return null!=t?`instance:${t}`:null!=e?`bundle:${e}`:null}({offerBundleId:s,userOfferBundleId:i});(0,c.useEffect)(()=>{p&&w&&S?.lastSeenBundleKey!==w&&A.current!==w&&(A.current=w,(0,F.trackAdRevenueQuestViewed)({offerBundleId:s,userOfferBundleId:i,bundleType:o,rewardCoins:r,targetOfferId:t}),y({lastSeenBundleKey:w}))},[p,w,S?.lastSeenBundleKey,y,s,i,o,r,t]);let h=r>0?{value:String(m({amount:r}).value)}:{value:"",leftIcon:V.GameControllerIcon};return(0,a.jsx)(d.default,{id:"ad-revenue-games-task-entry",reward:h,title:u("quests.adRevenueGames.entryTitle"),titleTruncate:"ellipsis",tone:"cyan",trailing:n?{color:"core.greyBlue.25",label:`${n.completed}/${n.target}`}:void 0,needsAttention:e,onClick:()=>{(0,F.trackAdRevenueQuestClicked)({offerBundleId:s,userOfferBundleId:i,bundleType:o,rewardCoins:r,targetOfferId:t});let e=t?`?offerId=${t}&rewardGroup=PLAY`:"";f("my-offers",`/my-offers${e}`)}})}],882128);var H=e.i(489665),q=e.i(304868),G=e.i(892251),$=e.i(266027),Y=e.i(169329),z=e.i(94442);let Z=(0,z.parse)(` 96 query getStreakConfiguration { 97 getStreakConfiguration { 98 daysToEarn 99 coinsByDay { 100 day 101 coins 102 } 103 minCoinsToEarn 104 day7MaxCoins 105 day7SlotName 106 day7PossibleAmounts 107 } 108 } 109`),J=(0,z.parse)(` 110 query getUserStreak { 111 getUserStreak { 112 coins 113 day 114 claimed 115 } 116 } 117`);function X({enabled:e=!0}={}){let{isLoggedIn:t}=(0,H.default)(),{data:r,refetch:a}=(0,$.useQuery)({queryKey:[q.QueryKeys.GRAPHQL_GET_STREAK_CONFIGURATION],queryFn:async()=>{let e=await G.default.graphql.request((0,Y.printDocument)(Z));return e.data?.getStreakConfiguration},retry:!1,enabled:t&&e});return{data:r,refetch:a}}(0,z.parse)(` 118 query { 119 me { 120 todayEarnings 121 } 122 } 123`),e.s(["default",0,X],80419);let ee=` 124 query { 125 me { 126 todayEarnings 127 } 128 } 129`;function et({enabled:e=!0}={}){let{isLoggedIn:t}=(0,H.default)(),{data:r,isPending:a,refetch:n,isFetched:s}=(0,$.useQuery)({queryKey:[q.QueryKeys.GRAPHQL_GET_TODAY_EARNINGS],queryFn:()=>G.default.graphql.request(ee),enabled:t&&e,retry:!1});return{isLoading:a,refetch:n,data:r?.data?.me?.todayEarnings||0,isFetched:s}}function er({enabled:e=!0}={}){let{isLoggedIn:t}=(0,H.default)(),{data:r,refetch:a}=(0,$.useQuery)({queryKey:[q.QueryKeys.GRAPHQL_GET_USER_STREAK],queryFn:async()=>{let e=await G.default.graphql.request((0,Y.printDocument)(J));return e.data?.getUserStreak},retry:!1,enabled:t&&e});return{data:r,refetch:a}}e.s(["default",0,et],562055),e.s(["default",0,er],33836);var ea=((r={}).NotStarted="notStarted",r.Started="started",r.Completed="completed",r.RewardClaimed="rewardClaimed",r);function en(e){if(e?.length)return[...e].sort((e,t)=>
129e.day-t.day)[e.length-1]}function es(e,t,r){let a=en(e);return a?a.claimed?ea.RewardClaimed:t&&t<r?ea.Started:t>=r&&!a.claimed?ea.Completed:ea.NotStarted:ea.NotStarted}function ei({enabled:e=!0}={}){let{data:t}=X({enabled:e}),{data:r}=et({enabled:e}),{data:a}=er({enabled:e}),n=t?.minCoinsToEarn||1e3,s=(0,c.useMemo)(()=>en(a),[a]),i=(0,c.useMemo)(()=>es(a,r,n),[a,r,n]),o=function(e){if(!e.enabled)return!1;let t=e.streakConfig?.minCoinsToEarn||1e3;return es(e.userStreak,e.earnedToday,t)===ea.Completed}({enabled:e,streakConfig:t,userStreak:a,earnedToday:r}),u=i!==ea.Completed,l=t?.coinsByDay,d=l?.find(e=>e.day===s?.day)?.coins||l?.length&&l[0].coins,f=(0,c.useMemo)(()=>({canClaim:!u&&r>=n}),[u,r,n]),{hasChanged:m,storeSnapshot:S}=(0,T.useQuestSnapshot)({data:f,localStorageKey:C.BrowserStorageKeys.QUEST_STREAK_SNAPSHOT});return{needsAttention:o&&m&&r>=n,markAsSeen:S,isEnabled:o,status:i,currentReward:d||0}}e.s(["SevenDayStreakStatus",()=>ea],704172),e.s(["default",0,ei],870789),e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),{currentReward:t,needsAttention:r}=ei({enabled:!0}),n=(0,W.default)(),s=(0,g.useCurrencyText)(),i=e("quests.streakQuest.title");return(0,a.jsx)(d.default,{id:"claim-streak-task-entry",reward:{value:String(s({amount:t}).value)},title:i,titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{n("rewards","/rewards?tab=streak7Days")}})}],386648);var eo=e.i(367037),eu=e.i(270822);function el({enabled:e}){let{data:t}=(0,eo.default)({enabled:e}),r=!!(0,eu.canClaimStreakV2)(t),a=(0,c.useMemo)(()=>({canClaim:r}),[r]),{hasChanged:n,storeSnapshot:s}=(0,T.useQuestSnapshot)({data:a,localStorageKey:C.BrowserStorageKeys.QUEST_STREAK_V2_SNAPSHOT});return{needsAttention:e&&n&&r,markAsSeen:s,isEnabled:e&&r}}e.s(["default",0,el],414714);var ed=e.i(191480);e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),{needsAttention:t}=el({enabled:!0}),{setIsOpen:r}=(0,ed.default)(),n=(0,g.useCurrencyText)(),{data:s}=(0,eo.default)(),i=e("quests.streakV2Quest.upTo",{reward:n({amount:7===(s?.data?.getCurrentStreakProgress?.streakProgressDays??1)?1e6:1e4}).value}),o=e("quests.streakV2Quest.title");return(0,a.jsx)(d.default,{id:"claim-streak-v2-task-entry",reward:{value:i},title:o,titleTruncate:"ellipsis",needsAttention:t,onClick:()=>{r(!0)}})}],388586);var ec=e.i(948420),ef=e.i(367440),em=e.i(742072),eS=e.i(133577),ep=e.i(158081),eg=e.i(912598);let ey=new Map,eA=new Map;function ew({enabled:e=!0}={}){let t=(0,eg.useQueryClient)(),r=!0===(0,A.useFeatureFlags)(ec.getFriendStreakSurfaceEnabled),a=(0,A.useFeatureFlags)(ec.getFriendStreakOfferBundleId),n=!0===(0,A.useFeatureFlags)(ec.getFriendStreakEnableQuest),s=r&&e&&!!a&&n,i=!0===(0,A.useFeatureFlags)(ec.getFriendStreakQuestRowEnabled),{data:o,refetch:u}=(0,em.default)({id:a,enabled:s});(0,c.useEffect)(()=>{if(!s)return;let e=o?.id,r=o?.status;if(!e||!a||e!==a||r!==ep.OfferBundleDisplayStatus.NotStarted){e&&(ey.delete(e),eA.delete(e));return}ey.get(e)||eA.get(e)||(eA.set(e,!0),ey.set(e,!0),(0,ef.startOfferBundle)({offerBundleId:e}).then(()=>{(0,T.resetQuestSnapshot)(t,C.BrowserStorageKeys.QUEST_FRIEND_STREAK_SNAPSHOT),u()}).catch(t=>{console.error(t),ey.delete(e),eA.delete(e)}).finally(()=>{eA.delete(e)}))},[o,a,t,u,s]);let l=(0,c.useMemo)(()=>{let e=o?.requirements?.find(e=>"FRIEND_STREAK_DAY_REACHED"===e.type),t=e?.value;return"number"==typeof t&&Number.isFinite(t)&&t>0?t:7},[o?.requirements]),d=o?.amount??0,{friends:f}=(0,eS.default)({enabled:s}),m=(0,c.useMemo)(()=>f.length?Math.min(l,f.reduce((e,t)=>Math.max(e,t.streakDays),0)):0,[f,l]),S=o?.status===ep.OfferBundleDisplayStatus.NotStarted||o?.status===ep.OfferBundleDisplayStatus.Started,p=s&&i&&!!o&&S,g=(0,c.useMemo)(()=>({currentDay:m,targetDays:l}),[m,l]),{hasChanged:y,storeSnapshot:w}=(0,T.useQuestSnapshot)({data:g,localStorageKey:C.BrowserStorageKeys.QUEST_FRIEND_STREAK_SNAPSHOT});return{isEnabled:p,currentDay:m,targetDays:l,rewardCoins:d,needsAttention:!!(p&&y),markAsSeen:w}}e.s(["default",0,ew],324205),e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),{currentDay:t,targetDays:r,rewardCoins:n,needsAttention:s}=ew(),{setIsOpen:i}=(0,ed.default)(),o=(0,g.useCurrencyText)(),u=e("streakV2.friendsTab.row.streakDaysProgress",{count:t,current:t,target:r});return(0,a.jsx)(d.default,{id:"friend-streak-task-entry",reward:{value:String(o({amount:n}).value)},title:e("quests.friendStreakQuest.title"),titleTruncate:"ellipsis",trailing:{label:u},progress:{value:t,max:r,segmented:!0,color:"core.freecashGreen.500",trackColor:"core.freecashGreen.25-A10",placement:"bottom"},needsAttention:s,onClick:()=>i(!0,{activeTab:"friends"})})}],845126);var eh=e.i(741077);let eC=new Map,eT=new Map,eE=({enabled:e,offerBundleId:t})=>{let r=(0,eg.useQueryClient)(),{data:a,refetch:n}=(0,em.default)({enabled:e&&!!t,id:t});(0,c.useEffect)(()=>{let e=a?.id,s=a?.status;if(!e||!t||e!==t||s!==ep.OfferBundleDisplayStatus.NotStarted){e&&(eC.delete(e),eT.delete(e));return}eC.get(e)||eT.get(e)||(eT.set(e,!0),eC.set(e,!0),(0,ef.startOfferBundle)({offerBundleId:e}).then(()=>{(0,T.resetQuestSnapshot)(r,C.BrowserStorageKeys.QUEST_FIRST_ARCADE_CASE_SNAPSHOT),n()}).catch(t=>{console.error(t),eC.delete(e),eT.delete(e)}).finally(()=>{eT.delete(e)}))},[a,t,r,n]);let s=e&&(0,eh.isOfferBundleStarted)(a),i=(0,c.useMemo)(()=>({isEnabled:s,offerBundleId:t}),[s,t]),{hasChanged:o,storeSnapshot:u}=(0,T.useQuestSnapshot)({data:i,localStorageKey:C.BrowserStorageKeys.QUEST_FIRST_ARCADE_CASE_SNAPSHOT});return{needsAttention:s&&o,markAsSeen:u,isEnabled:s}};e.s(["useFirstArcadeCaseQuest",0,eE],800306),e.s(["default",0,function({coins:e}){let t=(0,A.useFeatureFlags)(e=>
129e.quests?.firstArcadeCaseQuest?.offerBundleId),r=(0,eg.useQueryClient)(),{t:n}=(0,l.useTranslationTyped)("_rewards"),i=(0,g.useCurrencyText)();(0,c.useEffect)(()=>{r.invalidateQueries({queryKey:[q.QueryKeys.GRAPHQL_GET_OFFER_BUNDLE]})},[r]);let{needsAttention:o}=eE({enabled:!0,offerBundleId:t}),u=(0,s.useAsyncPopup)(),f=n("quests.firstArcadeCase.title");return(0,a.jsx)(d.default,{id:"first-arcade-case-task-entry",reward:{value:String(i({amount:e}).value)},title:f,titleTruncate:"ellipsis",needsAttention:o,onClick:()=>{u.trigger({name:s.AllowedAsyncPopupName.FIRST_ARCADE_CASE_QUEST_POPUP,args:{rewardAmountInCoins:e}})}})}],274248);var e_=e.i(665985),eb=e.i(915179),ev=e.i(978135),eR=e.i(255923),eI=e.i(56792);function eP({enabled:e}){let{items:t}=(0,ev.default)({offerState:eI.OfferProgressStateEnum.InProgress,source:ep.OfferClickSource.IapIncentiveModal,enabled:e}),r=(0,c.useMemo)(()=>{let e=(0,eb.getEligibleOffers)(t);return(0,eR.fromOfferObject)(e)},[t]),a=(0,c.useMemo)(()=>({hasInProgressOffers:e&&Number(r?.length)>0}),[e,r]),{hasChanged:n,storeSnapshot:s}=(0,T.useQuestSnapshot)({data:a,localStorageKey:C.BrowserStorageKeys.QUEST_FIRST_PURCHASE_REWARD_SNAPSHOT}),i=(0,e_.getBoostIncrementDisplay)(r?.[0]?.boost?.level);return{needsAttention:n&&e,markAsSeen:s,isEnabled:e&&r?.length>0,increment:i,offers:r}}e.s(["default",0,eP],611843),e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),{increment:t,needsAttention:r,offers:n}=eP({enabled:!0}),i=(0,s.useAsyncPopup)(),o=t.includes("%")?`+${t}`:`${t}`,u=e("quests.firstPurchaseReward.title");return(0,a.jsx)(d.default,{id:"first-purchase-reward-task-entry",reward:{value:o},title:u,titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{i.trigger({name:s.AllowedAsyncPopupName.IAP_INCENTIVE_POPUP,args:{offers:n}})}})}],24541);var eO=e.i(403718),ek=e.i(791881),eQ=e.i(171783);function eN({enabled:e}){let{data:t,isFetched:r}=(0,eQ.default)({page:1,limit:1,order:ep.Ordering.Desc,sort:"id",rewardCategory:ep.UserRewardCategory.AndroidShortcut},{enabled:e}),a=Number(t?.items.length??0)>0,{hasChanged:n,storeSnapshot:s}=(0,T.useQuestSnapshot)({localStorageKey:C.BrowserStorageKeys.QUEST_ANDROID_SHORTCUT_SNAPSHOT,data:{enabled:e}}),i=e&&!a&&r;return{isEnabled:i,needsAttention:i&&n,markAsSeen:s}}e.s(["default",0,eN],128920),e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),t=(0,A.useFeatureFlags)(e=>e.quests?.androidShortcutQuest?.rewardCoins),{needsAttention:r}=eN({enabled:!0}),n=(0,s.useAsyncPopup)(),i=(0,g.useCurrencyText)(),o=async()=>{((0,eO.default)("Attempt to install Freecash to homescreen",{Source:"Quest"}),await (0,ek.waitForAndroidInstallability)(ek.INSTALL_READY_TIMEOUT_MS,"Quest"))?await (0,ek.promptAndroidInstall)("Quest"):n.trigger({name:s.AllowedAsyncPopupName.ANDROID_SHORTCUT_NUDGE,args:{source:"Quest"}})};return(0,a.jsx)(d.default,{id:"android-shortcut-task-entry",reward:{value:String(i({amount:t??0}).value)},title:e("quests.androidShortcutQuest.entry.title"),titleTruncate:"ellipsis",trailing:{content:(0,a.jsx)(N.Button,{size:"xs",onClick:(0,d.claimTap)(o),children:e("quests.androidShortcutQuest.entry.cta")})},needsAttention:r})}],384809);var eU=e.i(663308);e.s(["default",0,function(){let{t:e}=(0,l.useTranslationTyped)("_rewards"),t=(0,A.useFeatureFlags)(e=>e.quests?.iosShortcutQuest),{needsAttention:r}=(0,eU.default)({enabled:!0}),n=(0,s.useAsyncPopup)(),i=(0,g.useCurrencyText)(),o=t?.designVersion==="B";return(0,a.jsx)(d.default,{id:"ios-shortcut-task-entry",reward:{value:String(i({amount:t?.coins??0}).value)},title:e("quests.iosShortcutQuest.entry.title","Add Freecash to home screen"),titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{o?n.trigger({name:s.AllowedAsyncPopupName.ADD_TO_HOME_SCREEN_POPUP_V2,args:{rewardCoins:t?.coins,showTitleWithAmount:t?.showTitleWithAmount??!1}}):n.trigger({name:s.AllowedAsyncPopupName.IOS_SHORTCUT_QUEST})}})}],81655);var ex=e.i(962694);e.s(["default",0,function({needsAttention:e}){let{t}=(0,l.useTranslationTyped)("_rewards"),r=(0,A.useFeatureFlags)(e=>e.quests?.streakWidgetQuest?.coins),{isAndroidAppWebView:n}=(0,ex.useAppWebViewMode)(),i=(0,s.useAsyncPopup)(),o=(0,g.useCurrencyText)(),u=t(n?"quests.androidStreakWidgetQuest.entry.title":"quests.iosStreakWidgetQuest.entry.title");return(0,a.jsx)(d.default,{id:"streak-widget-task-entry",reward:{value:String(o({amount:r??100}).value)},title:u,titleTruncate:"ellipsis",needsAttention:e,onClick:()=>{i.trigger({name:s.AllowedAsyncPopupName.ADD_STREAK_WIDGET_POPUP})}})}],349711);var eD=e.i(780387),eB=e.i(876132);function eW({showDelayInMinutes:e=0}={}){let{offersCompleted:t,bundleToDisplay:r,reward:a,minCompleted:n,maxCompletionMinutes:s,canShow:i}=(0,eB.useUserOfferBundle)({showDelayInMinutes:e}),o=i&&!!r,u=(0,c.useMemo)(()=>({offersCompletedCount:Math.min(r?.minCompleted||0,t?.length||0),bundleToDisplay:r?.id||-1}),[t,r]),{hasChanged:l,storeSnapshot:d}=(0,T.useQuestSnapshot)({data:u,localStorageKey:C.BrowserStorageKeys.QUEST_OFFER_BUNDLE_SNAPSHOT});return{needsAttention:l&&o,markAsSeen:d,isEnabled:o,userOffers:t,reward:a,minCompleted:n,maxCompletionMinutes:s}}e.s(["default",0,eW],378534),e.s(["default",0,function({hasArrow:e=!0}){let{maxCompletionMinutes:t,minCompleted:r,userOffers:n,reward:s,needsAttention:i}
129=eW(),{t:o}=(0,l.useTranslationTyped)("_rewards"),u=(0,g.useCurrencyText)();return(0,a.jsx)(d.default,{id:"offer-bundle-task-entry",reward:{value:String(u({amount:s}).value)},title:o("quests.offerBundleQuest.title",{minCompleted:r,maxCompletionMinutes:t}),arrow:e,needsAttention:i,ref:()=>{let e=`Progress: ${Math.min(r,n.length)}/${r}, Coins Reward: ${s}`;eD.default.setUserProperties("User Interface Elements",{"Offer Bundle Quest":e})}})}],659372)},657865,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(780387),n=e.i(752464),s=e.i(76061),i=e.i(821581);let o=({children:e,...r})=>(0,t.jsx)(i.Clickable,{...r,children:e});e.s(["QuestItemContainer",0,o,"default",0,function({task:e,onClick:i,isExpanded:u}){let l=(0,r.useMemo)(()=>e.render(),[e]),{seenRegistrationAttempted:d,getSortData:c,registerQuestSeenNow:f}=(0,n.useQuestSorterContext)();return(0,r.useEffect)(()=>{!function(e,t,r,a){if(t.has(e))return;let n=r();if("number"==typeof n.seenAt?.[e])return t.add(e);a(e);let s=r();"number"==typeof s.seenAt?.[e]&&t.add(e)}(e.name,d,c,f)},[e.name,d,c,f]),(0,s.default)(()=>{e?.needsAttention&&e?.markAsSeen?.()}),(0,t.jsx)(o,{onClick:()=>{a.default.customEvent("Quest Clicked",{"Quest Name":e.name}),(e.popupRender||e.isCollapsible)&&i(e)},children:(0,r.cloneElement)(l,{isExpanded:u})},e.id)}],657865)},847134,e=>{"use strict";e.s(["default",()=>tk,"useUserQuestsBase",()=>tQ],847134);var t=e.i(843476),r=e.i(271645),a=e.i(489665),n=e.i(962694),s=e.i(345425),i=e.i(899432),o=e.i(718628),u=e.i(864308),l=e.i(817309),d=e.i(7539),c=e.i(10996),f=e.i(590987),m=e.i(188969),S=e.i(882128),p=e.i(386648),g=e.i(388586),y=e.i(845126),A=e.i(274248),w=e.i(24541),h=e.i(384809),C=e.i(81655),T=e.i(349711),E=e.i(659372);e.i(870515);var _=e.i(910633),b=e.i(510840),v=e.i(630868),R=e.i(363516),I=e.i(657865),P=e.i(378534);function O(){let{reward:e,maxCompletionMinutes:r,minCompleted:a}=(0,P.default)(),{t:n}=(0,v.useTranslationTyped)("_rewards"),s=(0,_.useCurrencyValues)({rewards:e,totalMinutes:String(a*r),minCompleted:String(a),maxCompletionMinutes:String(r)});return(0,t.jsxs)("div",{className:"flex flex-col p-6 gap-[10px]",children:[(0,t.jsx)(I.QuestItemContainer,{children:(0,t.jsx)(E.default,{hasArrow:!1})}),(0,t.jsx)("div",{className:"my-[10px] rounded-[8px] bg-core-greyBlue-500 p-[10px]",children:(0,t.jsx)(b.T,{t:n,i18nKey:"quests.offerBundleQuest.popupTitle",values:s})}),(0,t.jsx)(R.OfferBundleProgression,{})]})}var k=e.i(780387),Q=e.i(72494),N=e.i(709483);e.i(430386);var U=e.i(879894),x=e.i(496460);function D({offerBundleId:e}={}){let{offersCompleted:t,unclaimedBundle:a,bundleToDisplay:n,reward:s,minCompleted:i,maxCompletionMinutes:o,numberOfInstalled:u}=(0,x.useUserOfferBundle)({offerBundleId:e}),l=!!n,d=(0,r.useMemo)(()=>({offersCompletedCount:u,bundleToDisplay:n?.id||-1}),[u,n]),{hasChanged:c,storeSnapshot:f}=(0,U.useQuestSnapshot)({data:d,localStorageKey:N.BrowserStorageKeys.QUEST_OFFER_BUNDLE_V2_SNAPSHOT});return{needsAttention:c&&l,markAsSeen:f,isEnabled:l,userOffers:t,numberOfInstalled:u,reward:s,minCompleted:i,maxCompletionMinutes:o,unclaimedBundle:a}}var B=e.i(910238);function W({hasArrow:e=!0,offerBundleId:r}){let{maxCompletionMinutes:a,minCompleted:n,numberOfInstalled:s,reward:i,needsAttention:o}=D({offerBundleId:r}),{t:u}=(0,v.useTranslationTyped)("_rewards"),l=(0,B.useCurrencyText)();return(0,t.jsx)(Q.default,{id:"offer-bundle-v2-task-entry",reward:{value:String(l({amount:i}).value)},title:u("quests.offerBundleQuest.title",{minCompleted:n,maxCompletionMinutes:a}),arrow:e,needsAttention:o,ref:()=>{let e=`Progress: ${Math.min(n,s)}/${n}, Coins Reward: ${i}`;k.default.setUserProperties("User Interface Elements",{"Offer Bundle Quest V2":e})}})}var F=e.i(844334),M=e.i(103252),L=e.i(158081),K=e.i(912598),j=e.i(304868);function V({offerBundleId:e}){console.log("[OfferBundleV2TaskPopupContent] offerBundleId:",e);let a=(0,K.useQueryClient)(),{numberOfInstalled:n,reward:s,rewardType:i,maxCompletionMinutes:o,minCompleted:u,unclaimedBundle:l,userOfferBundleId:d,bundleStatus:c}=(0,x.useUserOfferBundle)({offerBundleId:e,queryOptions:{refetchOnMount:"always",refetchOnReconnect:"always"}}),[f,m]=(0,r.useState)(c===L.OfferBundleDisplayStatus.Claimed),[S,p]=(0,r.useState)(c===L.OfferBundleDisplayStatus.Claimed),{claim:g,
129isClaiming:y}=(0,F.useClaimOfferBundle)({minCompleted:u,onClaimStart:()=>m(!0),onClaimSuccess:()=>{p(!0),a.invalidateQueries({queryKey:[j.QueryKeys.GRAPHQL_GET_OFFER_BUNDLE,{id:e}]})},onClaimError:()=>m(!1)});return(0,t.jsx)("div",{className:"flex flex-col p-6 gap-[16px]",children:(0,t.jsx)(M.default,{offerBundleId:e,reward:s,rewardType:i,maxCompletionMinutes:o,minCompleted:u,numberOfInstalled:n,unclaimedBundle:l,hasClaimed:f,isClaiming:y,onClaim:()=>{d&&g(d)},showSuccessBanner:S})})}var H=e.i(590853),q=e.i(838751);function G({bonus:e,needsAttention:r}){let{t:a}=(0,v.useTranslationTyped)("_rewards"),n=(0,q.useAsyncPopup)(),s=(0,H.formatCurrency)({amount:e.amount,targetCurrency:e.currency}),i=a("quests.priceComparisonActivationJourney.title");return(0,t.jsx)(Q.default,{id:"price-comparison-quest-task-entry",reward:{value:String(s.value)},title:i,titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{n.trigger({name:q.AllowedAsyncPopupName.PRICE_COMPARISON_QUEST_POPUP})}})}var $=e.i(386955),Y=e.i(769464);let z=new Map([["bold",r.createElement(r.Fragment,null,r.createElement("path",{d:"M225.29,165.93C216.61,151,212,129.57,212,104a84,84,0,0,0-168,0c0,25.58-4.59,47-13.27,61.93A20.08,20.08,0,0,0,30.66,186,19.77,19.77,0,0,0,48,196H84.18a44,44,0,0,0,87.64,0H208a19.77,19.77,0,0,0,17.31-10A20.08,20.08,0,0,0,225.29,165.93ZM128,212a20,20,0,0,1-19.6-16h39.2A20,20,0,0,1,128,212ZM54.66,172C63.51,154,68,131.14,68,104a60,60,0,0,1,120,0c0,27.13,4.48,50,13.33,68Z"}))],["duotone",r.createElement(r.Fragment,null,r.createElement("path",{d:"M208,192H48a8,8,0,0,1-6.88-12C47.71,168.6,56,139.81,56,104a72,72,0,0,1,144,0c0,35.82,8.3,64.6,14.9,76A8,8,0,0,1,208,192Z",opacity:"0.2"}),r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["fill",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216Z"}))],["light",r.createElement(r.Fragment,null,r.createElement("path",{d:"M220.07,176.94C214.41,167.2,206,139.73,206,104a78,78,0,1,0-156,0c0,35.74-8.42,63.2-14.08,72.94A14,14,0,0,0,48,198H90.48a38,38,0,0,0,75,0H208a14,14,0,0,0,12.06-21.06ZM128,218a26,26,0,0,1-25.29-20h50.58A26,26,0,0,1,128,218Zm81.71-33a1.9,1.9,0,0,1-1.7,1H48a1.9,1.9,0,0,1-1.7-1,2,2,0,0,1,0-2C53.87,170,62,139.69,62,104a66,66,0,1,1,132,0c0,35.68,8.14,65.95,15.71,79A2,2,0,0,1,209.71,185Z"}))],["regular",r.createElement(r.Fragment,null,r.createElement("path",{d:"M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"}))],["thin",r.createElement(r.Fragment,null,r.createElement("path",{d:"M218.35,178C212.58,168,204,140.13,204,104a76,76,0,1,0-152,0c0,36.13-8.59,64-14.36,73.95A12,12,0,0,0,48,196H92.23a36,36,0,0,0,71.54,0H208A12,12,0,0,0,218.35,178ZM128,220a28,28,0,0,1-27.71-24h55.42A28,28,0,0,1,128,220Zm83.45-34a3.91,3.91,0,0,1-3.44,2H48a3.91,3.91,0,0,1-3.44-2,4,4,0,0,1,0-4C52,169.17,60,139.32,60,104a68,68,0,1,1,136,0c0,35.31,8,65.17,15.44,78A4,4,0,0,1,211.45,186Z"}))]]),Z=r.forwardRef((e,t)=>r.createElement(Y.default,{ref:t,...e,weights:z}));Z.displayName="BellIcon";let J=({needsAttention:e})=>{let{t:r}=(0,v.useTranslationTyped)("_rewards"),{triggerPushPermissionPrompt:a}=(0,$.default)();return(0,t.jsx)(Q.default,{id:"push-notification-task-entry",tone:"neutral",reward:{value:"",leftIcon:Z},title:r("quests.pushNotification.enable"),titleTruncate:"ellipsis",needsAttention:e,onClick:()=>{a({phase:3,force:!0})}})};var X=e.i(584677);let ee=({needsAttention:e,reward:r})=>{let{t:a}=(0,v.useTranslationTyped)("_rewards"),{trigger:n}=(0,q.useAsyncPopup)(),s=(0,B.useCurrencyText)(),i=async()=>{"Notification"in window&&(0,X.isLaunchedFromIosHomeScreen)()&&await Notification.requestPermission(),n({name:q.AllowedAsyncPopupName.BRAZE_WEB_PUSH_PROMPT})};return(0,t.jsx)(Q.default,{id:"braze-web-push-task-entry",reward:{value:String(s({amount:r}).value)},title:a("quests.brazeWebPush.enable"),titleTruncate:"ellipsis",needsAttention:e,onClick:i})};var et=e.i(410573),er=e.i(873049),ea=e.i(94649),en=e.i(255923),es=e.i(742072);function ei(e){let t=e?.offerBundleId,{offers:a}=(0,en.useGetEarnPageOffers)({enabled:e?.enabled===!0,categories:[L.OfferCategory.Game,L.OfferCategory.Other]}),{data:n}=(0,es.default)({id:t,enabled:!!t}),s=(0,ea.isReactivationQuestVisible)({enabled:e?.enabled===!0,bundle:n,offers:a,popupType:e?.popupType,disableNonCPI:e?.disableNonCPI}),i=(0,r.useMemo)(()=>({isEnabled:s,offerBundleId:e?.offerBundleId}),[e,s]),{hasChanged:o,storeSnapshot:u}=(0,U.useQuestSnapshot)({data:i,localStorageKey:N.BrowserStorageKeys.QUEST_REACTIVATION_INSTALLS_POPUP_SNAPSHOT});return{needsAttention:o&&s,markAsSeen:u,isEnabled:s,offerBundleData:n}}var eo=e.i(922196),eu=e.i(752464),el=e.i(110266);function ed(){let{t:e}=(0,v.useTranslationTyped)("_rewards"),a=(0,o.useFeatureFlags)(e=>e.quests?.reactivationPopupSettings),{needsAttention:n,offerBundleData:s}=ei(a),i=(0,q.useAsyncPopup)(),u=(0,K.useQueryClient)(),l=(0,B.useCurrencyText)(),[d,c]=(0,er.default)({offerBundleData:s}),{hours:f,minutes:m,seconds:S,start:p,hasStarted:g}=(0,et.useCountdown)(),y=(0,eu.useQuestSorterContext)(),A=a?.hideTimer===!1&&c;(0,r.useEffect)(()=>
129{u.invalidateQueries({queryKey:[j.QueryKeys.GRAPHQL_GET_OFFER_BUNDLE]})},[u]),(0,r.useEffect)(()=>{"number"==typeof d&&y.registerQuestExpiredAt(eo.QuestName.REACTIVATION_INSTALLS_POPUP_QUEST,d)},[d,y]),(0,r.useEffect)(()=>{A&&"number"==typeof d&&p(d)},[A,d,p]);let w=g?`${f}:${m}:${S}`:"--:--:--";return(0,t.jsx)(Q.default,{id:"reactivation-installs-popup-task-entry",reward:{value:String(l({amount:s?.amount??0}).value)},title:e("quests.reactivationInstallsPopup.title"),titleTruncate:"ellipsis",arrow:!(A&&d),expiry:A&&d?{value:w,icon:el.HourglassIcon,color:"core.greyBlue.50",bg:"core.greyBlue.800"}:void 0,needsAttention:n,onClick:()=>{i.trigger({name:q.AllowedAsyncPopupName.REACTIVATION_INSTALLS_POPUP})}})}var ec=e.i(181944),ef=e.i(892251),em=e.i(679180),eS=e.i(413107),ep=e.i(382574),eg=e.i(266027);let ey=`query { 130 canPlayWordle { 131 canPlay 132 nextAvailableAt 133 } 134}`;function eA(e={}){return(0,eg.useQuery)({queryKey:[j.QueryKeys.GRAPHQL_WORDLE_CAN_PLAY],queryFn:()=>ef.default.graphql.request(ey),...e})}function ew({enabled:e,coins:t}){let{data:a}=eA({enabled:e}),n=(0,r.useMemo)(()=>({canPlay:a?.data?.canPlayWordle?.canPlay===!0}),[a?.data?.canPlayWordle?.canPlay]),{hasChanged:s,storeSnapshot:i}=(0,U.useQuestSnapshot)({data:n,localStorageKey:N.BrowserStorageKeys.QUEST_WORDLE_SNAPSHOTS});return{isEnabled:e,markAsSeen:i,needsAttention:e&&s&&n.canPlay,canPlayWordle:!!a?.data?.canPlayWordle?.canPlay,nextAvailableAt:a?.data?.canPlayWordle?.nextAvailableAt,reward:t}}var eh=e.i(954616);let eC=`mutation { 135 playWordle 136}`;function eT(){let e=(0,K.useQueryClient)(),{toast:n,isActive:s}=(0,eS.useToast)(),{isLoggedIn:i}=(0,a.default)(),{data:o}=eA({enabled:i}),{t:u}=(0,ep.default)("_rewards"),{mutate:l}=(0,eh.useMutation)({mutationFn:()=>ef.default.graphql.requestOnce([j.QueryKeys.GRAPHQL_MUTATION_PLAY_WORDLE],eC),onSuccess:e=>{let t="wordle-reward";e.errors?.length||s(t)||(!0===e.data.playWordle?n({id:t,description:u("quests.wordle.toastSuccess"),status:"success"}):n({id:t,description:u("quests.wordle.toastError"),status:"info"}),(0,ec.removeLocalStorage)("gameState"))}});return(0,r.useEffect)(()=>{let t=()=>{let e=function(){try{let e=(0,ec.getLocalStorage)("gameState");if(!e)return null;let t=JSON.parse(e);if(t?.solution&&t?.gameStatus)return t;return null}catch(e){return null}}();e?.gameStatus==="WIN"&&l()};return t(),window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t),e.invalidateQueries({queryKey:[j.QueryKeys.GRAPHQL_WORDLE_CAN_PLAY]})}},[l,e]),(0,t.jsxs)("div",{className:"w-full h-[80vh] flex flex-col justify-center items-center",children:[o?.data?.canPlayWordle.canPlay===!1&&(0,t.jsx)("div",{className:"px-[20px]",children:(0,t.jsx)(em.default,{colorScheme:"blue",children:(0,t.jsx)("p",{className:"m-0 text-[12px]",children:u("quests.wordle.alreadyClaimed")})})}),(0,t.jsx)("iframe",{src:"/public/wordle.html",width:"100%",height:"100%",style:{border:"none",pointerEvents:"auto"},title:"Wordle Game",sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer"})]})}function eE(){let{canPlayWordle:e,nextAvailableAt:a,reward:n,needsAttention:s}=ew({enabled:!0,coins:(0,o.useFeatureFlags)(e=>e.quests?.wordleSettings?.coins)||0}),{hasStarted:i,start:u,hours:l,minutes:d,seconds:c}=(0,et.useCountdown)(),{t:f}=(0,v.useTranslationTyped)("_rewards"),m=(0,eu.useQuestSorterContext)(),S=(0,B.useCurrencyText)(),p=!e&&i?f("quests.wordle.wordleAvailableIn",{time:`${l}:${d}:${c}`}):f("quests.wordle.playWordle");return(0,r.useEffect)(()=>{if(a){let e=new Date(a).getTime();u(e),m.registerQuestExpiredAt(eo.QuestName.WORDLE_QUEST,e)}},[a,m]),(0,t.jsx)(Q.default,{id:"wordle-task-entry",reward:{value:String(S({amount:n}).value)},title:p,titleTruncate:"ellipsis",needsAttention:s})}var e_=e.i(655427),eb=e.i(600054),ev=e.i(404367),eR=e.i(978135),eI=e.i(56792),eP=e.i(813680);e.i(490482);var eO=e.i(320163),ek=e.i(490220),eQ=e.i(488202);let eN={cashback:N.BrowserStorageKeys.QUEST_CASHBACK_ACTIVATION_SNAPSHOT,giftCard:N.BrowserStorageKeys.QUEST_GIFT_CARD_ACTIVATION_SNAPSHOT,priceComparison:N.BrowserStorageKeys.QUEST_PRICE_COMPARISON_ACTIVATION_SNAPSHOT};function eU({domain:e,enabled:t}){let{isLoggedIn:r}=(0,a.default)(),{data:n}=(0,ek.useActivationJourneys)({enabled:t&&r,fetchConfig:eQ.dealsFetchConfig}),s=eN[e],i=n?.[e],o=i&&i.status===eO.ActivationJourneyStatus.ACTIVE&&i.showOnQuestPage?i.milestones.findIndex(e=>e.status===eO.MilestoneStatus.NOT_STARTED):-1,u=i&&o>=0?{amount:i.milestones[o].reward,currency:i.bonusCurrency,milestoneNumber:o+1}:null,l=u?`${u.amount}_${u.currency}`:"",{hasChanged:d,storeSnapshot:c}=(0,U.useQuestSnapshot)({data:l,localStorageKey:s,enabled:!!u});return{isEnabled:t&&!!u,bonus:u,needsAttention:!!u&&d,markAsSeen:c}}e.i(155252);var ex=e.i(351351),eD=e.i(560408),eB=e.i(122434),eW=e.i(749927);function eF(e){let t=e.start?.lastActivity??e.start?.startedAt,r=t?new Date(t).getTime():NaN;return Number.isFinite(r)?r:0}e.i(803280);var eM=e.i(912353),eL=e.i(800306),eK=e.i(611843),ej=e.i(128920),eV=e.i(663308),eH=e.i(171783),eq=e.i(187979),eG=e.i(812651),e$=e.i(243418),eY=e.i(870789),ez=e.i(414714),eZ=e.i(324205),eJ=e.i(869731);e.i(912869);let eX=()=>{let e=(0,o.useFeatureFlags)(e=>e.vipCommunityProduct),t=!!e?.enabled,{coins:r,landingPageUrl:a}=e??{},{data:n,isFetched:s}=(0,eH.default)({page:1,limit:1,order:L.Ordering.Desc,sort:"id",rewardCategory:L.UserRewardCategory.EmeraldFbGroup},{enabled:t}),i=(0,eq.hasCompletedRewardQuest)(n);return{isEnabled:t&&!i&&s,needsAttention:!i,coins:r??0,landingPageUrl:a??""}};var e0=e.i(777566),e1=e.i(344298);let e2=()=>{let{t:e}=(0,ep.default)("_rewards"),{needsAttention:r,landingPageUrl:a,coins:n}=eX(),s=(0,B.useCurrencyText)(),i=()=>{a&&((0,e0.trackVipLandingPageOpened)(),window.open(a,"_blank","noopener,noreferrer"))};return(0,t.jsx)(Q.default,{id:"vip-community-task-entry",reward:{value:String(s({amount:n??0}).value)},title:e("vipCommunity.quest.entryTitle"),titleTruncate:"ellipsis",trailing:{content:(0,t.jsx)(e1.Button,{size:"xs",onClick:(0,Q.claimTap)(i),children:e("vipCommunity.quest.cta")})},needsAttention:r,onClick:i})};var e8=e.i(168935);function e3({coins:e}){let{t:r}=(0,v.useTranslationTyped)("_rewards"),{needsAttention:a}=(0,e8.default)({enabled:!0}),n=(0,q.useAsyncPopup)(),s=(0,B.useCurrencyText)(),i=r("minigames.iosInstallAppQuest.title");return(0,t.jsx)(Q.default,{id:"ios-app-install-task-entry",reward:{value:String(s({amount:e}).value)},title:i,titleTruncate:"ellipsis",needsAttention:a,onClick:()=>{n.trigger({name:q.AllowedAsyncPopupName.IOS_INSTALL_APP_QUEST_POPUP,onOpen:()=>k.default.installQuest("IOS quest showed"),args:{coins:e}})}})}let e4=()=>{try{let e=(0,ec.getLocalStorage)(N.BrowserStorageKeys.QUEST_REWARDED_AD_COOLDOWN_END);if(!e)return 0;let t=Math.ceil((Number(e)-Date.now())/1e3);return t>0?t:0}catch{return 0}};var e6=e.i(254333),e7=e.i(338381),e9=e.i(714929);function e5({ticketAmount:e}){let a,n,{t:s}=(0,v.useTranslationTyped)("_rewards"),[i,o]=(0,r.useState)(()=>e4()),u=(0,r.useRef)(null),l=(0,r.useRef)(!1),d=i>0,c=async()=>
136{if(l.current)return;if(l.current=!0,!await (0,e7.requestRewardedAd)({placement:e6.AD_PLACEMENT_KEYS.QUEST,surface:"quest_tab",ticketAmount:e,isCoolingDown:d})){l.current=!1;return}let t=Date.now()+3e5;(0,ec.setLocalStorage)(N.BrowserStorageKeys.QUEST_REWARDED_AD_COOLDOWN_END,String(t)),o(300)};return(0,r.useEffect)(()=>{if(!d){(0,ec.removeLocalStorage)(N.BrowserStorageKeys.QUEST_REWARDED_AD_COOLDOWN_END),l.current=!1;return}return u.current=setInterval(()=>{o(e=>e<=1?(u.current&&clearInterval(u.current),u.current=null,0):e-1)},1e3),()=>{u.current&&(clearInterval(u.current),u.current=null)}},[d]),(0,t.jsx)(Q.default,{id:"lottery-rewarded-ad-task-entry",reward:{value:String(e),variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:"core.blue.300",bg:"core.blue.25-A10",rightIcon:e9.TicketIcon},title:s("quests.lotteryRewardedAd.watchVideo"),titleTruncate:"ellipsis",titleColor:d?"core.greyBlue.100":"core.greyBlue.50",arrow:!1,expiry:d?{value:(a=Math.floor(i/3600),n=Math.floor(i%3600/60),`${a.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}:${(i%60).toString().padStart(2,"0")}`),icon:el.HourglassIcon,color:"core.blue.300",bg:"core.greyBlue.800"}:void 0,trailing:d?void 0:{content:(0,t.jsx)(e1.Button,{size:"xs",onClick:e=>{e.preventDefault(),c()},children:s("quests.lotteryRewardedAd.watch")})},needsAttention:!d})}var te=e.i(633135);let tt=({activeMinigames:e,lottery:r})=>{let a=(0,te.default)(),{t:n,i18n:s}=(0,v.useTranslationTyped)("_rewards"),i=e=>a("my-offers",`/my-offers?tab=MiniGames&activeMinigame=${e.name}`);return(0,t.jsx)("div",{className:"flex flex-col gap-[8px] mt-[8px]",children:e.map(e=>(0,t.jsx)(Q.default,{id:`minigame-${e.name}`,onClick:()=>i(e),reward:{value:String(e?.rewardAmount*(r?.maxMultiplier||1)||0),variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:"core.blue.300",bg:"core.blue.25-A10",rightIcon:e9.TicketIcon},title:`${n("quests.minigamesQuest.play")} ${s.t(`_rewards:minigames.${e.name}.name`,{defaultValue:e.name})}`,titleTruncate:"ellipsis",trailing:{content:(0,t.jsx)(e1.Button,{size:"xs",onClick:(0,Q.claimTap)(()=>i(e)),children:n("quests.minigamesQuest.play")})}},e.name))})};var tr=e.i(919261),ta=e.i(463837);function tn({activeMinigames:e,lottery:r,isExpanded:a}){let{t:n}=(0,v.useTranslationTyped)("_rewards"),s=e.reduce((e,t)=>e+t.rewardAmount,0)*(r?.maxMultiplier||1);return(0,t.jsx)(Q.default,{id:"minigames-task-entry",reward:{value:String(s),variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:"core.blue.300",bg:"core.blue.25-A10",rightIcon:e9.TicketIcon},title:n("quests.minigamesQuest.titleUpdated"),titleTruncate:"ellipsis",trailing:{content:(0,t.jsx)("div",{className:"flex items-center justify-center",style:{transform:void 0!==a?`rotate(${180*!!a}deg)`:"",transition:"transform 0.3s ease-in-out"},children:(0,t.jsx)(ta.Icon,{icon:tr.ArrowDownIcon,size:"sm",color:"inherit"})})}})}var ts=e.i(733969);function ti({enabled:e,coins:t}){var a;let{userProfileInfo:n,isFetched:s}=(0,ts.default)(),i=s&&(a=n?.smsConsentProvided,e&&!a),o=(0,r.useMemo)(()=>({isSmsConsentProvided:n?.smsConsentProvided}),[n?.smsConsentProvided]),{hasChanged:u,storeSnapshot:l}=(0,U.useQuestSnapshot)({data:o,localStorageKey:N.BrowserStorageKeys.QUEST_PHONE_NUMBER_V2_SNAPSHOT});return{needsAttention:u&&!!i,markAsSeen:l,isEnabled:i,coins:t}}function to({coins:e}){let{t:r}=(0,v.useTranslationTyped)("_rewards"),{needsAttention:a}=ti({enabled:!0,coins:e}),n=(0,q.useAsyncPopup)(),s=(0,B.useCurrencyText)(),i=r("quests.PhoneNumberQuestV2.title");return(0,t.jsx)(Q.default,{id:"phone-number-v2-task-entry",reward:{value:String(s({amount:e}).value)},title:i,titleTruncate:"ellipsis",needsAttention:a,onClick:()=>{n.trigger({name:q.AllowedAsyncPopupName.PHONE_NUMBER_POPUP_V2,args:{coins:e,source:"quest"}})}})}var tu=e.i(542579),tl=e.i(53197),td=e.i(962796),tc=e.i(786903);function tf(e,t,r){let a=`quests.socialMediaFollow.platform.${t}.${r}`,n=`${a}V2`;return e.exists(`_rewards:${n}`)?n:a}let tm=({platform:e,existingRewards:a})=>{let{t:n,i18n:s}=(0,v.useTranslationTyped)("_rewards"),i=(0,tc.normalizeSocialPlatformKey)(e.offerName),{data:o,save:u}=(0,td.useSocialMediaFollowClicksState)(),l=(0,tu.default)(),d=!!a?.find(e=>e.offerName&&(0,tc.normalizeSocialPlatformKey)(e.offerName)===i),{hours:c,minutes:f,seconds:m,start:S,hasStarted:p,hasFinished:g}=(0,et.useCountdown)(()=>{},{autoStop:!0,finishIfTargetInPast:!0}),y=p&&!g,A=g&&!d,w=d||y||A;(0,r.useEffect)(()=>{let e=(0,td.getPlatformClick)(o,i);void 0!==e&&S(e+tl.THIRTY_MINUTES_MS)},[S,i,o]);let h=(0,r.useCallback)(({platform:e})=>{let t=Date.now();(0,td.setPlatformClick)(u,o,i,t),S(t+tl.THIRTY_MINUTES_MS),k.default.customEvent("Social media follow quest clicked",{quest_id:`follow_${i}`,timestamp:new Date,country:l});let r=window.open(e.href,"_blank","noopener");r&&(r.opener=null)},[l,i,S,u,o]),C=tf(s,i,y?"verification":"label"),T=tf(s,i,"action"),E=[c&&"00"!==c?c:null,f,m].filter(
136Boolean).join(":");return(0,t.jsx)(Q.default,{id:`social-media-follow-${i}`,reward:{value:String(e?.rewardAmount||0),variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:w?"core.greyBlue.50":"core.blue.300",bg:w?"core.greyBlue.25-A10":"core.blue.25-A10",rightIcon:e9.TicketIcon},title:s.t(`_rewards:${C}`,{defaultValue:y?"Checking visit...":"Visit"}),titleTruncate:"ellipsis",titleColor:w?"core.greyBlue.100":"core.greyBlue.50",arrow:!1,expiry:y?{value:E,icon:el.HourglassIcon,color:"core.greyBlue.50",bg:"core.greyBlue.800"}:void 0,trailing:y?void 0:{content:(0,t.jsx)(e1.Button,{size:"xs",isDisabled:w,onClick:(0,Q.claimTap)(()=>h({platform:e})),children:d?n("quests.socialMediaFollow.claimed"):A?n("quests.socialMediaFollow.rewardPending"):s.t(`_rewards:${T}`,{defaultValue:"Follow"})})}})},tS=({socialPlatforms:e,existingRewards:r})=>(0,t.jsx)("div",{className:"flex flex-col gap-[8px] mt-[8px]",children:e.map(e=>(0,t.jsx)(tm,{platform:e,existingRewards:r},e.offerName))});function tp({isExpanded:e,socialPlatforms:r,existingRewards:a}){let{t:n}=(0,v.useTranslationTyped)("_rewards"),s=r.filter(e=>!a?.some(t=>
136t.offerName&&(0,tc.normalizeSocialPlatformKey)(e.offerName)===(0,tc.normalizeSocialPlatformKey)(t.offerName))).reduce((e,t)=>e+t.rewardAmount,0);return(0,t.jsx)(Q.default,{id:"social-media-follow-task-entry",reward:{value:String(s),variant:"subtle",radius:"semi",weight:"medium",spacing:"md",textColor:"core.blue.300",bg:"core.blue.25-A10",rightIcon:e9.TicketIcon},title:n("quests.socialMediaFollow.titleV2"),titleTruncate:"ellipsis",trailing:{content:(0,t.jsx)("div",{className:"flex items-center justify-center",style:{transform:void 0!==e?`rotate(${180*!!e}deg)`:"",transition:"transform 0.3s ease-in-out"},children:(0,t.jsx)(ta.Icon,{icon:tr.ArrowDownIcon,size:"sm",color:"inherit"})})}})}var tg=e.i(212977),ty=e.i(275415),tA=e.i(452298),tw=e.i(457391);function th({enabled:e=!1}){let{data:t}=(0,tw.default)({slug:ty.STAKE_US_RELAUNCH_OFFER},{enabled:e}),a=(0,r.useMemo)(()=>(0,tA.isStakeDepositQuestVisible)(e,t),[e,t]),n=(0,r.useMemo)(()=>({isEnabled:a}),[a]),{hasChanged:s,storeSnapshot:i}=(0,U.useQuestSnapshot)({data:n,localStorageKey:N.BrowserStorageKeys.QUEST_STAKE_DEPOSIT_SNAPSHOT});return{needsAttention:a&&s,markAsSeen:i,isEnabled:a}}function tC({coins:e}){let{t:r}=(0,v.useTranslationTyped)("_rewards"),{needsAttention:a}=th({enabled:!0}),n=(0,q.useAsyncPopup)(),s=(0,B.useCurrencyText)(),i=r("quests.stakeDepositQuest.title",{usdAmount:(0,tg.formatDollar)(20,{maximumFractionDigits:0})});return(0,t.jsx)(Q.default,{id:"stake-deposit-task-entry",reward:{value:String(s({amount:e}).value)},title:i,titleTruncate:"ellipsis",needsAttention:a,onClick:()=>{n.trigger({name:q.AllowedAsyncPopupName.STAKE_DEPOSIT_QUEST_POPUP,args:{rewardCoins:e,depositUsdAmount:20}})}})}var tT=e.i(593881);let tE=({enabled:e,isIosAppWebView:t})=>{let{isIosAppWebView:a}=(0,e$.useIosAppV2UiMode)(),n=e&&!(t??a),{isStakeComEnabled:s,isStakeUsEnabled:i}=(0,tT.useStakeFaucetStatus)(n),o=(0,r.useMemo)(()=>({isStakeComEnabled:s,isStakeUsEnabled:i}),[s,i]),{hasChanged:u,storeSnapshot:l}=(0,U.useQuestSnapshot)({data:o,localStorageKey:N.BrowserStorageKeys.QUEST_STAKE_FAUCET_SNAPSHOT}),d=n&&(s||i);return{needsAttention:d&&u,markAsSeen:l,isEnabled:d,stakeComCoins:250,stakeUsCoins:250}};function t_(){let{needsAttention:e,stakeComCoins:r,stakeUsCoins:a}=tE({enabled:!0}),n=Math.max(r,a),s=(0,q.useAsyncPopup)(),i=(0,B.useCurrencyText)(),{t:o}=(0,v.useTranslationTyped)("_rewards"),u=o("quests.stakeFaucetQuest.title",{amount:i({amount:n}).value});return(0,t.jsx)(Q.default,{id:"stake-faucet-task-entry",reward:{value:String(i({amount:n}).value)},title:u,titleTruncate:"ellipsis",needsAttention:e,onClick:()=>{s.trigger({name:q.AllowedAsyncPopupName.STAKE_FAUCET_QUEST_POPUP,args:{stakeComCoins:r,stakeUsCoins:a}})}})}var tb=e.i(447869);let tv=({enabled:e})=>{let{currentStep:t,isStakeUsRelaunchEnabled:a,variant:n,registerCoinReward:s,stakeRewardCoins:i,freecashRewardCoins:o,bonusOfferMaxCoins:u,registerPromoOfferLink:l,hasInFreecashRewards:d}=(0,tb.useStakePromotionStep)(),c=e&&!!d&&t===tb.StakePromotionStep.Register,f=(0,r.useMemo)(()=>({isEnabled:c,isStakeUsRelaunchEnabled:a,isRegistrationStep:t===tb.StakePromotionStep.Register}),[t,a,c]),{hasChanged:m,storeSnapshot:S}=(0,U.useQuestSnapshot)({data:f,localStorageKey:N.BrowserStorageKeys.QUEST_STAKE_OFFER_SNAPSHOT});return{needsAttention:c&&m,markAsSeen:S,isEnabled:c,coins:s,variant:n,registerCoinReward:s,stakeRewardCoins:i,freecashRewardCoins:o,bonusOfferMaxCoins:u,registerPromoOfferLink:l,isStakeUsRelaunchEnabled:a}};function tR(){let{t:e}=(0,v.useTranslationTyped)("_rewards"),{needsAttention:r,variant:a,registerCoinReward:n,stakeRewardCoins:s,freecashRewardCoins:i,bonusOfferMaxCoins:o,registerPromoOfferLink:u,isStakeUsRelaunchEnabled:l}=tv({enabled:!0}),d=(0,q.useAsyncPopup)(),c=(0,B.useCurrencyText)(),f=e("quests.stakeOfferQuest.title");return(0,t.jsx)(Q.default,{id:"stake-offer-task-entry",reward:{value:String(c({amount:n}).value)},title:f,titleTruncate:"ellipsis",needsAttention:r,onClick:()=>{d.trigger({name:q.AllowedAsyncPopupName.STAKE_US_SIGNUP_V3,args:{offerLink:u,coinAmount:n,stakeRewardCoins:s,freecashRewardCoins:i,bonusOfferMaxCoins:o,isStakeUsRelaunchEnabled:l,variant:a}})}})}var tI=e.i(779527),tP=e.i(698253);let tO=[{offerName:L.FollowSocialOfferNameEnum.Instagram,href:"https://www.instagram.com/freecash_com",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.X,href:"https://twitter.com/freecashcom",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.Tiktok,href:"https://www.tiktok.com/@joinfreecash_",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.Discord,href:"https://discord.gg/ddnWVZt",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.Facebook,href:"https://www.facebook.com/people/Freecash/61556014861974/",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.FacebookGroup,href:"https://www.facebook.com/groups/freecashofficial",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.FacebookPage,href:"https://www.facebook.com/people/Freecash/61556014861974/",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.Reddit,href:"https://www.reddit.com/r/FreeCash/",rewardAmount:5},{offerName:L.FollowSocialOfferNameEnum.Youtube,href:"https://www.youtube.com/channel/UCJ3XenTJaY3y4_Ot8jsc2gA",rewardAmount:5}];function tk(e={}){let t=(0,eJ.useUserQuestsSorter)();return tQ({...e,questSorter:e.questSorter??t})}function tQ({isIosAppWebView:e,serverIsIosAppWebView:_,hideAffiliatesQuest:b,questSorter:v}){let R=(0,o.useFeatureFlags)(e=>e.quests),I=(0,o.useFeatureFlags)(e=>e.brazeWebPushSettings?.triggerFromQuest),k=(0,o.useFeatureFlags)(e=>e.brazeWebPushSettings?.coins),Q=(0,o.useFeatureFlags)(e=>e.offerLottery?.enabled),x=(0,o.useFeatureFlags)(e=>e.lotteryAdRewardTickets?.quest),B=(0,o.useFeatureFlags)(e=>e.cashbackIntegrationVariant),F=(0,o.useFeatureFlags)(e=>e.cashbackGiftCardSettings?.enabled),M=(0,o.useFeatureFlags)(e=>e.priceComparison?.enabled),K=(0,o.useFeatureFlags)(e=>e.playRewardsTaskAdRevenue),{isLoggedIn:j}=(0,a.default)(),{sortQuests:H}=v,{isAndroidAppWebView:q}=(0,n.useAppWebViewMode)(),Y=(0,r.useMemo)(()=>(0,s.isWebShortcut)()||(0,X.isLaunchedFromHomeScreen)(),[]),z=(0,P.default)({showDelayInMinutes:R?.offerBundleQuest?.widgetShowDelay||0}),Z=D({offerBundleId:R?.offerBundleQuest?.offerBundleId}),et=(0,eY.default)({enabled:!R?.streakV2?.enable}),er=(0,ez.default)({enabled:R?.streakV2?.enable===!0}),ea=(0,eZ.default)(),en=(0,eK.default)({enabled:R?.increaseRewardsFirstPurchase?.enabled||!1}),es=ei(R?.reactivationPopupSettings),eu=(0,ev.default)(R?.bigTicketIAPPopupSettings),el=(0,e_.useAffiliatesQuest)({enabled:j&&!!R?.affiliatesQuest?.enabled,affiliatesVersion:R?.affiliatesQuest?.affiliatesVersion||"v1",rewardsV2Variant:R?.affiliatesQuest?.rewardsV2Variant||i.AffiliateRe
136wardsV2Variant.CONTROL,reward:R?.affiliatesQuest?.reward||0,variableRewardSettings:R?.rafVariableRewards,hideQuest:b}),ec=ti({enabled:j&&!!R?.collectPhoneNumberQuest?.enabled,coins:R?.collectPhoneNumberQuest?.coins||0}),ef=ew({enabled:j&&!!R?.wordleSettings?.enable,coins:R?.wordleSettings?.coins||0}),em=(({enabled:e})=>{let{currentTrigger:t,featureEnabled:a}=(0,$.default)(),n=!0===a&&(void 0!==t?t===L.PushPromptTrigger.Quest:e),s=(0,r.useMemo)(()=>({canShow:n}),[n]),{hasChanged:i,storeSnapshot:o}=(0,U.useQuestSnapshot)({data:s,localStorageKey:N.BrowserStorageKeys.QUEST_PUSH_NOTIFICATION_SNAPSHOT});return{needsAttention:i,markAsSeen:o,isEnabled:n}})({enabled:j&&(e||(0,s.isAndroidApp)())}),eS=(({enabled:e,coins:t})=>{let{isIosAppWebView:a}=(0,e$.useIosAppV2UiMode)(),[n,i]=(0,r.useState)(!1);(0,r.useEffect)(()=>{i(!0)},[]);let o=!(0,s.isAndroidApp)()&&!a&&((0,eG.isAndroid)()||(0,X.isLaunchedFromIosHomeScreen)()),u=n&&e&&o&&"Notification"in window,{data:l,isFetched:d,isError:c}=(0,eH.default)({page:1,limit:1,order:L.Ordering.Desc,sort:"id",rewardCategory:L.UserRewardCategory.NotificationActivation},{enabled:u}),f=Number(l?.items.length??0)>0,m=u&&d&&!c&&!f,S=(0,r.useMemo)(()=>({canShow:m,coins:t}),[m,t]),{hasChanged:p,storeSnapshot:g}=(0,U.useQuestSnapshot)({data:S,localStorageKey:N.BrowserStorageKeys.QUEST_BRAZE_WEB_PUSH_SNAPSHOT});return{isEnabled:m,needsAttention:p,markAsSeen:g,currentCoins:t}})({enabled:j&&!!I,coins:k??100}),ep=(0,eV.default)({enabled:!!R?.iosShortcutQuest?.enabled&&R?.iosShortcutQuest?.showQuest&&R?.iosShortcutQuest?.mode!=="install"&&!Y}),eg=(0,ej.default)({enabled:!!R?.androidShortcutQuest?.enabled&&!!R?.androidShortcutQuest?.triggerFromQuest&&!Y}),ey=(0,e8.default)({enabled:!!R?.iosShortcutQuest?.enabled&&!!R?.iosShortcutQuest?.showQuest&&!!R?.iosShortcutQuest?.coins&&R?.iosShortcutQuest?.mode==="install"&&!e&&(0,eG.isIos)()}),eA=(0,eb.default)({enabled:!!R?.androidFirstLoginQuest?.enabled}),eh=(0,eL.useFirstArcadeCaseQuest)({enabled:!!R?.firstArcadeCaseQuest?.enabled,offerBundleId:R?.firstArcadeCaseQuest?.offerBundleId}),eC=tE({enabled:!!R?.stakeFaucetQuest?.enabled,isIosAppWebView:_}),eO=tv({enabled:!!R?.stakeOfferQuest?.enabled}),ek=th({enabled:!!R?.stakeDeposit20Get50Quest?.enabled}),eQ=(({enabled:e,minigamesSettings:t})=>{var r;let{minigames:a}=(0,tI.default)({minigamesSettings:t}),{data:n}=(0,tP.default)({enabled:e}),s=(r=t?.gamesEnabled,a&&r?a.filter(e=>e?.name&&r[e.name]).filter(e=>e.userMinigameProgressStatus===L.MinigameProgressStatus.VariantAssigned||e.userMinigameProgressStatus===L.MinigameProgressStatus.InProgress||null===e.userMinigameProgressStatus):[]);return{isEnabled:e&&s?.length,minigames:a,activeMinigames:s,lotteryData:n?.data?.offerLottery}})({enabled:!!R?.minigamesSettings?.showQuests&&!!Q,minigamesSettings:R?.minigamesSettings}),eN=(({enabled:e})=>{let{items:t}=(0,eR.default)({offerState:eI.OfferProgressStateEnum.InProgress,enabled:e,source:L.OfferClickSource.QuestsBonusRewards}),{bonusRewardsByOfferId:a,bonusRewardsCount:n}=(0,r.useMemo)(()=>(0,eP.processBonusRewards)(t),[t]),s=(0,r.useMemo)(()=>e&&n>0,[e,n]),i=(0,r.useMemo)(()=>({isEnabled:s,bonusRewardsCount:n,offerIds:Object.keys(a).sort()}),[s,n,a]),{hasChanged:o,storeSnapshot:u}=(0,U.useQuestSnapshot)({data:i,localStorageKey:N.BrowserStorageKeys.QUEST_BONUS_REWARDS_SNAPSHOT});return{needsAttention:o,markAsSeen:u,isEnabled:s,isCollapsible:n>1,bonusRewardsByOfferId:a}})({enabled:!!R?.bonusRewardsQuest?.enabled}),eJ=(({enabled:e,socialMediaQuests:t})=>{let{data:r,isFetched:a}=(0,eH.default)({rewardCategory:L.UserRewardCategory.SocialFollowReward},{enabled:e}),{hasChanged:n,storeSnapshot:s}=(0,U.useQuestSnapshot)({data:{enabled:e},localStorageKey:N.BrowserStorageKeys.QUEST_SOCIAL_MEDIA_FOLLOW_SNAPSHOT}),i=a&&(0,eq.isSocialMediaFollowVisible)({enabled:e,socialMediaQuests:t,existingRewards:r});return{enabled:i,needsAttention:n&&i,markAsSeen:s,socialPlatforms:t.map(e=>{let t=tO.find(t=>(0,tc.normalizeSocialPlatformKey)(t.offerName)===(0,tc.normalizeSocialPlatformKey)(e.socialMediaPlatform));if(t)return{...t,rewardAmount:e.ticketsCount}}).filter(e=>!!e),existingRewards:r?.items}})({enabled:!!j&&!!R?.socialMediaFollowQuest?.enabled,socialMediaQuests:R?.socialMediaFollowQuest?.socialMediaQuests||[]}),e0=function({enabled:e=!1}){let{isActive:t}=(0,n.useAppWebViewMode)(),{data:r,isSuccess:a}=(0,eH.default)({page:1,limit:1,order:L.Ordering.Desc,sort:"id",rewardCategory:L.UserRewardCategory.HomescreenWidget},{enabled:e&&t,refetchOnMount:"always"}),s=(0,eq.hasCompletedRewardQuest)(r),{hasChanged:i,storeSnapshot:o}=(0,U.useQuestSnapshot)({localStorageKey:N.BrowserStorageKeys.QUEST_STREAK_WIDGET_SNAPSHOT,data:{enabled:e}}),u=e&&t&&!s&&a;return{isEnabled:u,needsAttention:u&&i,markAsSeen:o}}({enabled:!!R?.streakWidgetQuest?.enabled}),e1=function({enabled:e}){let{isAppWebView:t}=(0,n.useAppWebViewMode)(),[a,s]=(0,r.useState)(()=>e4());(0,r.useEffect)(()=>{let e=()=>s(e4());e();let t=setInterval(e,1e3);return()=>clearInterval(t)},[]);let i=e&&t&&void 0!==window.ReactNativeWebView,{hasChanged:o,storeSnapshot:u}=(0,U.useQuestSnapshot)({localStorageKey:N.BrowserStorageKeys.QUEST_LOTTERY_AD_REWARD_SNAPSHOT,data:{enabled:e}});return{needsAttention:i&&!(a>0)&&o,markAsSeen:u,isEnabled:i,cooldownSeconds:300}}({enabled:!!x}),e6=function({enabled:e=!1}){let{startedGames:t,isFetched:r,dataUpdatedAt:a}=(0,eB.useAdRevenueStartedGames)({enabled:e,filterByDevice:!1}),n=t.filter(e=>e.start?.status===L.OfferClickStatus.PartiallyCompleted&&(0,ex.hasActivePlayRewardGroupTask)(e,a)).reduce((e,t)=>
136!e||eF(t)>eF(e)?t:e,void 0),s=n?.id,{status:i,isClaimed:o,progress:u,rewardCoins:l,offerBundleId:d,userOfferBundleId:c,isRecurringBundle:f,isFetched:m}=(0,eW.usePlayRewardsBundle)({enabled:e&&!!n,autoStart:!1}),{isEligibleOffer:S,hasEnoughGames:p}=(0,eD.useAdRevenueEligibleGames)({offerTags:n?.tags,offerStartStatus:n?.start?.status,currentOfferId:n?.id,active:e&&!!n}),{hasChanged:g,storeSnapshot:y}=(0,U.useQuestSnapshot)({localStorageKey:N.BrowserStorageKeys.QUEST_AD_REVENUE_GAMES_SNAPSHOT,data:{enabled:e}}),A=e&&r&&!!n&&S&&p&&m&&!!i&&!o;return{isEnabled:A,needsAttention:A&&g,markAsSeen:y,latestStartedGameId:s,rewardCoins:l,progress:u,offerBundleId:d,userOfferBundleId:c,bundleType:f?"recurring":"one-time"}}({enabled:!!j&&K?.enabled===!0}),e7=eX(),e9=eU({domain:"cashback",enabled:(0,eM.isCashbackIntegrationEnabled)(B)}),te=eU({domain:"giftCard",enabled:!!F}),tr=eU({domain:"priceComparison",enabled:!!M}),ta=(0,r.useMemo)(()=>{if(!j)return[];let r=[];return z.isEnabled&&R?.offerBundleQuest?.questEnabled===!0&&R?.offerBundleQuest?.designVersion===1&&!e&&r.push({id:1,name:eo.QuestName.OFFER_BUNDLE_QUEST,render:()=>(0,t.jsx)(E.default,{}),popupRender:()=>(0,t.jsx)(O,{}),markAsSeen:z.markAsSeen,needsAttention:z.needsAttention}),et.isEnabled&&r.push({id:2,name:eo.QuestName.STREAK_QUEST,render:()=>(0,t.jsx)(p.default,{}),markAsSeen:et.markAsSeen,needsAttention:et.needsAttention}),en.isEnabled&&r.push({id:4,name:eo.QuestName.FIRST_PURCHASE_REWARD_QUEST,render:()=>(0,t.jsx)(w.default,{}),markAsSeen:en.markAsSeen,needsAttention:en.needsAttention}),el.isEnabled&&r.push({id:7,name:eo.QuestName.AFFILIATES_QUEST,render:()=>(0,t.jsx)(u.AffiliatesTaskEntry,{affiliatesVersion:R?.affiliatesQuest?.affiliatesVersion||"v2",rewardsV2Variant:R?.affiliatesQuest?.rewardsV2Variant||i.AffiliateRewardsV2Variant.CONTROL,reward:R?.affiliatesQuest?.reward||100,variableRewardSettings:R?.rafVariableRewards}),markAsSeen:el.markAsSeen,needsAttention:el.needsAttention}),em.isEnabled&&r.push({id:10,name:eo.QuestName.PUSH_NOTIFICATION_QUEST,render:()=>(0,t.jsx)(J,{needsAttention:em.needsAttention}),markAsSeen:em.markAsSeen,needsAttention:em.needsAttention}),ef.isEnabled&&r.push({id:11,name:eo.QuestName.WORDLE_QUEST,render:()=>(0,t.jsx)(eE,{}),popupRender:()=>(0,t.jsx)(eT,{}),markAsSeen:ef.markAsSeen,needsAttention:ef.needsAttention}),er.isEnabled&&r.push({id:12,name:eo.QuestName.STREAK_V2_QUEST,render:()=>(0,t.jsx)(g.default,{}),markAsSeen:er.markAsSeen,needsAttention:er.needsAttention}),ea.isEnabled&&r.push({id:41,name:eo.QuestName.FRIEND_STREAK_QUEST,render:()=>(0,t.jsx)(y.default,{}),markAsSeen:ea.markAsSeen,needsAttention:ea.needsAttention}),es.isEnabled&&r.push({id:14,name:eo.QuestName.REACTIVATION_INSTALLS_POPUP_QUEST,render:()=>(0,t.jsx)(ed,{}),markAsSeen:es.markAsSeen,needsAttention:es.needsAttention}),ep?.isEnabled&&r.push({id:16,name:eo.QuestName.IOS_SHORTCUT_QUEST,render:()=>(0,t.jsx)(C.default,{}),needsAttention:ep.needsAttention,markAsSeen:ep.markAsSeen}),eA?.isEnabled&&r.push({id:17,name:eo.QuestName.ANDROID_FIRST_LOGIN_QUEST,render:()=>(0,t.jsx)(l.default,{}),needsAttention:eA.needsAttention,markAsSeen:eA.markAsSeen}),eh?.isEnabled&&r.push({id:18,name:eo.QuestName.FIRST_ARCADE_CASE_QUEST,render:()=>(0,t.jsx)(A.default,{coins:R?.firstArcadeCaseQuest?.rewardCoins||0}),needsAttention:eh.needsAttention,markAsSeen:eh.markAsSeen}),eu.isEnabled&&r.push({id:19,name:eo.QuestName.BIG_TICKET_IAP_POPUP_QUEST,render:()=>(0,t.jsx)(d.default,{}),needsAttention:eu.needsAttention,markAsSeen:eu.markAsSeen}),eC.isEnabled&&r.push({id:20,name:eo.QuestName.STAKE_FAUCET_QUEST,render:()=>(0,t.jsx)(t_,{}),needsAttention:eC.needsAttention,markAsSeen:eC.markAsSeen}),eO.isEnabled&&r.push({id:21,name:eo.QuestName.STAKE_OFFER_QUEST,render:()=>(0,t.jsx)(tR,{}),needsAttention:eO.needsAttention,markAsSeen:eO.markAsSeen}),ek.isEnabled&&r.push({id:22,name:eo.QuestName.STAKE_DEPOSIT_QUEST,render:()=>(0,t.jsx)(tC,{coins:R?.stakeDeposit20Get50Quest?.coins??0}),needsAttention:ek.needsAttention,markAsSeen:ek.markAsSeen}),eQ.isEnabled&&r.push({id:23,name:eo.QuestName.MINIGAMES_QUEST,render:()=>(0,t.jsx)(tn,{activeMinigames:eQ?.activeMinigames,lottery:eQ?.lotteryData}),needsAttention:!1,isCollapsible:!0,collapsibleContentRender:()=>(0,t.jsx)(tt,{activeMinigames:eQ?.activeMinigames,lottery:eQ?.lotteryData})}),eN.isEnabled&&r.push({id:24,name:eo.QuestName.BONUS_REWARDS_QUEST,render:()=>(0,t.jsx)(f.default,{...eN}),needsAttention:eN.needsAttention,markAsSeen:eN.markAsSeen,...eN.isCollapsible&&{isCollapsible:!0,collapsibleContentRender:()=>(0,t.jsx)(c.default,{...eN})}}
136),eJ.enabled&&r.push({id:27,name:eo.QuestName.SOCIAL_MEDIA_FOLLOW_QUEST,render:()=>(0,t.jsx)(tp,{socialPlatforms:eJ?.socialPlatforms||[],existingRewards:eJ?.existingRewards}),needsAttention:eJ.needsAttention,markAsSeen:eJ.markAsSeen,isCollapsible:!0,collapsibleContentRender:()=>(0,t.jsx)(tS,{socialPlatforms:eJ.socialPlatforms,existingRewards:eJ.existingRewards})}),ec.isEnabled&&r.push({id:28,name:eo.QuestName.COLLECT_PHONE_NUMBER_QUEST,render:()=>(0,t.jsx)(to,{coins:ec.coins}),needsAttention:ec.needsAttention,markAsSeen:ec.markAsSeen}),Z.isEnabled&&R?.offerBundleQuest?.questEnabled===!0&&R?.offerBundleQuest?.designVersion===2&&r.push({id:29,name:eo.QuestName.OFFER_BUNDLE_V2_QUEST,render:()=>(0,t.jsx)(W,{offerBundleId:R?.offerBundleQuest?.offerBundleId}),popupRender:()=>(0,t.jsx)(V,{offerBundleId:R?.offerBundleQuest?.offerBundleId}),markAsSeen:Z.markAsSeen,needsAttention:Z.needsAttention}),ey?.isEnabled&&r.push({id:31,name:eo.QuestName.IOS_INSTALL_APP_QUEST,render:()=>(0,t.jsx)(e3,{coins:R?.iosShortcutQuest?.coins??0}),needsAttention:ey.needsAttention,markAsSeen:ey.markAsSeen}),e1?.isEnabled&&r.push({id:32,name:eo.QuestName.LOTTERY_REWARDED_AD_QUEST,render:()=>(0,t.jsx)(e5,{ticketAmount:x??0}),needsAttention:e1.needsAttention??!1,markAsSeen:e1.markAsSeen}),e0?.isEnabled&&r.push({id:33,name:q?eo.QuestName.ANDROID_STREAK_WIDGET_QUEST:eo.QuestName.IOS_STREAK_WIDGET_QUEST,render:()=>(0,t.jsx)(T.default,{needsAttention:e0.needsAttention}),needsAttention:e0.needsAttention,markAsSeen:e0.markAsSeen}),eg?.isEnabled&&!ep?.isEnabled&&r.push({id:34,name:eo.QuestName.ANDROID_SHORTCUT_QUEST,render:()=>(0,t.jsx)(h.default,{}),needsAttention:eg.needsAttention,markAsSeen:eg.markAsSeen}),e7.isEnabled&&r.push({id:35,name:eo.QuestName.VIP_COMMUNITY_QUEST,render:()=>(0,t.jsx)(e2,{}),needsAttention:!1}),eS.isEnabled&&r.push({id:36,name:eo.QuestName.BRAZE_WEB_PUSH_QUEST,render:()=>(0,t.jsx)(ee,{needsAttention:eS.needsAttention,reward:eS.currentCoins}),markAsSeen:eS.markAsSeen,needsAttention:eS.needsAttention}),e9.isEnabled&&e9.bonus&&r.push({id:37,name:eo.QuestName.CASHBACK_ACTIVATION_JOURNEY,render:()=>(0,t.jsx)(m.default,{type:"cashback",bonus:e9.bonus,needsAttention:e9.needsAttention}),needsAttention:e9.needsAttention,markAsSeen:e9.markAsSeen}),te.isEnabled&&te.bonus&&r.push({id:38,name:eo.QuestName.GIFT_CARD_ACTIVATION_JOURNEY,render:()=>(0,t.jsx)(m.default,{type:"giftCard",bonus:te.bonus,needsAttention:te.needsAttention}),needsAttention:te.needsAttention,markAsSeen:te.markAsSeen}),tr.isEnabled&&tr.bonus&&r.push({id:39,name:eo.QuestName.PRICE_COMPARISON_ACTIVATION_JOURNEY,render:()=>(0,t.jsx)(G,{bonus:tr.bonus,needsAttention:tr.needsAttention}),needsAttention:tr.needsAttention,markAsSeen:tr.markAsSeen}),e6.isEnabled&&r.push({id:42,name:eo.QuestName.AD_REVENUE_GAMES_QUEST,render:()=>(0,t.jsx)(S.default,{needsAttention:e6.needsAttention,latestStartedGameId:e6.latestStartedGameId,rewardCoins:e6.rewardCoins,progress:e6.progress,offerBundleId:e6.offerBundleId,userOfferBundleId:e6.userOfferBundleId,bundleType:e6.bundleType}),needsAttention:e6.needsAttention,markAsSeen:e6.markAsSeen}),H(r)},[j,e,q,z,Z,et,en,el,em,eS,ef,es,er,ea,ep,ey,eg,eA,eh,eC,eu,eO,ek,eQ,eN,R,x,H,eJ,ec,e1,e0,e9,te,tr,e7,e6]),ts=(0,r.useMemo)(()=>j?ta.reduce((e,t)=>t.needsAttention?e+1:e,0):0,[ta,j]);return{quests:ta,totalNeedsAttention:ts,firstPurchaseRewardQuest:en,affiliateQuest:el}}}]); 137 138//# debugId=8f110a6a-0169-6b3d-1d75-9290544c8142
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.