1import{d as r,bx as Qe,a as P,n,N as Fe,o as ae,$ as m,a0 as g,t as v,H as z,z as je,bf as ie,ai as o,M as p,b as k,S as Ke,Q as se,h as He,aH as Ge,P as Je}from"./index-ar9xbcSY.js";import{e as l}from"./get_device_info-IO9WA2IE.js";import{u as Ve,a as Ye}from"./quest-service-Dv4ojTV4.js";import{a as qe}from"./currency-format-BTivFjAo.js";import{r as oe,m as Xe}from"./unlock-popup-seen-TtWpCTi3.js";import{u as Ze}from"./use-quest-claim-mfyU0sTW.js";import"./rewards-service-BeytiP6E.js";import"./deposit-offer-service-CAwbak21.js";import"./claimable-item-detail-BUPR2DFH.js";import"./bonus-pop-ByxC2cPz.js";import"./reward-item-BxntwN76.js";import"./utils-Dl3jimtp.js";import"./deposit-offer-Bd9gnfin.js";import"./bonus-currency-amount-B3pGqTI_.js";import"./icon-currency-CtC4RDLn.js";import"./types-zzpnyBZM.js";(function(){try{var t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};t.SENTRY_RELEASE={id:"4c044884f0915f049febf76443b1f40078b960ba"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(a){for(var s=1;s<arguments.length;s++){var c=arguments[s];if(c!=null)for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}return a})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(a){}})();var et=v('<span class="flex items-center gap-0.5 whitespace-nowrap">1<!>(<img alt=BCD class=size-3.5>) = 1USD( $ )');function tt(t){return oe(t,P.setting)==="BCD"}function nt(){return(()=>{var t=et(),a=t.firstChild,s=a.nextSibling,c=s.nextSibling,d=c.nextSibling;return n(t,()=>Fe.getAlias("BCD"),s),ae(()=>m(d,"src",g.coinIcon("BCD"))),t})()}function lt(t){return r(Qe,{get title(){return r(nt,{})},get children(){return t.children}})}const it="/assets/left-k-gdUiJB.png",st="/assets/right-DTX776Jy.png";var at=v('<div aria-hidden=true class="pointer-events-none absolute left-0 top-3 z-0 w-full overflow-visible"style="aspect-ratio:430 / 398"><img alt class="welcome-cashback-confetti welcome-cashback-confetti--left absolute left-[3.95%] top-[-2.24%] h-[44.49%] w-[22.47%]"><img alt class="welcome-cashback-confetti welcome-cashback-confetti--right absolute left-[75.29%] top-[-1.7%] h-[46.72%] w-[20%]">');function ot(){return(()=>{var t=at(),a=t.firstChild,s=a.nextSibling;return m(a,"src",it),m(s,"src",st),t})()}var rt=v('<button type=button class="text-brand underline">'),ct=v('<div class="relative flex flex-col gap-2 pb-6"><section class="relative flex flex-col items-center gap-3 px-5 pb-7 pt-2.5"><div class="pointer-events-none absolute left-1/2 top-5 z-0 h-12 w-44 -translate-x-1/2 rounded-full bg-brand/20 blur-2xl"></div><div class="relative z-[1] flex items-center gap-3 text-brand"><img alt="reward currency"class="size-10 flex-none"><span class="text-[3.125rem] font-[700] leading-none"></span></div><p class="relative z-[1] flex items-center gap-2 text-sm font-semibold text-secondary"></p></section>
1<section class="flex flex-col gap-4 rounded-xl border border-fourth/5 bg-layer2 p-4"><h2 class="font-bold text-base font-[700] text-secondary"></h2><div class="flex flex-col gap-2.5"><div><div class="flex items-center justify-between text-sm font-semibold text-secondary"><span></span><span>%</span></div><div class="flex h-6 items-center"><div class="h-2 w-full overflow-hidden rounded-lg bg-layer4_alt"><div class="h-full rounded-lg bg-brand transition-[width] duration-300"></div></div></div><div class="flex items-center justify-between text-xs font-semibold leading-4 text-tertiary"><span class="flex min-w-0 items-center gap-1"><span class="size-1.5 flex-none rounded-full bg-brand"></span><span></span><img alt class="size-3 flex-none"><span></span></span><span class="flex min-w-0 items-center gap-1"><span class="size-1.5 flex-none rounded-full bg-tertiary"></span><span></span><img alt class="size-3 flex-none"><span></span></span></div></div><div class="h-px bg-fourth/5"></div></div><div class="flex items-center justify-between rounded-xl bg-layer1 p-3"><div class="flex min-w-0 flex-col gap-1"><span class="w-fit rounded-lg bg-white_alpha10 px-1 py-1 text-xs font-semibold leading-4 text-tertiary"></span><span class="font-bold text-white flex items-center gap-1 text-xl leading-6"><img alt class="size-4 flex-none"><span class="font-[700] text-primary"></span></span></div></div></section><section class="mt-1 flex flex-col gap-1"><h2 class="flex h-8 items-center px-1 text-sm font-extrabold text-tertiary"></h2><div class="rounded-xl border border-fourth/5 bg-layer2 p-4"><div class="flex gap-3"><div class="flex w-2 flex-none flex-col items-center pt-1.5"><span class="size-2 flex-none rounded-full bg-brand"></span><span class="mt-1.5 w-0.5 flex-1 bg-third"></span></div><div class="min-w-0 flex-1 pb-4"><h3 class="text-white text-base font-semibold leading-5"></h3><p class="mt-1 text-sm font-semibold text-tertiary"></p></div></div><div class="flex gap-3"><div class="flex w-2 flex-none flex-col items-center pt-1.5"><span class="size-2 flex-none rounded-full bg-brand"></span></div><div class="min-w-0 flex-1"><h3 class="text-white text-base font-semibold leading-5"></h3><p class="mt-1 text-sm font-semibold text-tertiary"></p></div></div></div></section><div class=pt-2>');const S={exp:"bc_tgapp_newbie_unlock_exp",claimClick:"bc_tgapp_newbie_unlock_claim_click",gowagerClick:"bc_tgapp_newbie_gowager_click"};let A=!1;function dt(t){return t!=null&&t.first.rewards?Object.values(t.first.rewards).flat():[]}function ut(t){const a=je(),s=Ve(),c=Ye(),d=()=>Promise.all([s.refetch(),c.refetch()]),{claim:re}=Ze(d);ie(()=>{s.refetch()});const ce=o(()=>{var e;return(e=s.data.welcomeCashback)==null?void 0:e.first.item}),C=o(()=>dt(s.data.welcomeCashback)),y=o(()=>{const e=ce();return e!=null&&e.depositCompleted&&new p(e.bonusAmount||0).gt(0)?e:void 0}),u=()=>{var e;return((e=y())==null?void 0:e.bonusCurrency)||t.currency},de=()=>oe(u(),P.setting),$=()=>{var e;return((e=y())==null?void 0:e.bonusAmount)||t.amount},x=()=>{var e;return((e=y())==null?void 0:e.lockedBonusAmount)||t.amount},b=o(()=>{const e=new p($()||0).sub(x()||0);return e.isNegative()?"0":e.toString()}),w=o(()=>{const e=new p($()||0);return e.lte(0)?0:Math.min(Math.max(new p(b()).div(e).mul(100).toNumber(),0),100)}),h=()=>C().some(e=>e.canClaim),ue=o(()=>C().filter(e=>e.canClaim).flatMap(e=>e.items).reduce((e,f)=>e.add(new p(f.amount||0)),new p(0)).toString()),fe=o(()=>_($())),me=o(()=>_(b())),pe=o(()=>_(x())),be=o(()=>_(h()?ue():b()));function _(e){const f=qe(u(),e,de());return P.setting.enableLocaleCurrency?f.full:f.amount}ie(()=>{k.emit("track",{event:S.exp,data:{unlock_progress_pct:w(),unlocked_amount:b(),locked_amount:x()}})});const ge=()=>{h()&&(k.emit("track",{event:S.claimClick,data:{unlocked_amount:b()}}),re(C(),l("Welcome Cashback")),z.pop())},xe=()=>{k.emit("track",{event:S.gowagerClick,data:{locked_amount:x()}}),z.pop(),a("/casino")};return r(Je,{type:"bottomsheet",class:"!bg-layer1",get decoration(){return r(ot,{})},get children(){var e=ct(),f=e.firstChild,he=f.firstChild,M=he.nextSibling,B=M.firstChild,_e=B.nextSibling,D=M.nextSibling,E=f.nextSibling,N=E.firstChild,U=N.nextSibling,ve=U.firstChild,W=ve.firstChild,O=W.firstChild,I=O.nextSibling,Ce=I.firstChild,L=W.nextSibling,ye=L.firstChild,$e=ye.firstChild,we=L.nextSibling,R=we.firstChild,ke=R.firstChild,T=ke.nextSibling,Q=T.nextSibling,Se=Q.nextSibling,Ae=R.nextSibling,Pe=Ae.firstChild,F=Pe.nextSibling,j=F.nextSibling,ze=j.nextSibling,K=U.nextSibling,Me=K.firstChild,H=Me.firstChild,Be=H.nextSibling,G=Be.firstChild,De=G.nextSibling,J=E.nextSibling,V=J.firstChild,Ee=V.nextSibling,Y=Ee.firstChild,Ne=Y.f
1irstChild,Ue=Ne.nextSibling,q=Ue.firstChild,We=q.nextSibling,Oe=Y.nextSibling,Ie=Oe.firstChild,Le=Ie.nextSibling,X=Le.firstChild,Re=X.nextSibling,Te=J.nextSibling;return n(_e,fe),n(D,()=>l("Congratulations! Cashback unlocked"),null),n(D,r(Ke,{get when(){return tt(u())},get children(){return r(lt,{get children(){var i=rt();return n(i,()=>l("About __ENV_BCD__")),i}})}}),null),n(N,()=>l("Wager to unlock in real time.")),n(O,()=>l("Unlock Progress")),n(I,()=>w().toFixed(2),Ce),n(T,()=>l("Unlocked:")),n(Se,me),n(F,()=>l("Locked:")),n(ze,pe),n(H,()=>l("UNLOCKED")),n(De,be),n(K,r(se,{type:"brand",get disabled(){return!h()},get class(){return He("h-8 w-[4.75rem] px-2.5 text-sm font-semibold",!h()&&"opacity-40")},onClick:ge,get children(){return l("Claim")}}),null),n(V,()=>l("HOW YOU EARN")),n(q,()=>l("Wager")),n(We,()=>l("Every wager unlocks your rakeback in real time. Only real money, non-PvP wagers count.")),n(X,()=>l("Claim")),n(Re,()=>l("Claim your unlocked rakeback to balance anytime.")),n(Te,r(se,{type:"brand",class:"h-12 w-full text-base font-extrabold leading-6",onClick:xe,get children(){return l("Go wager")}})),ae(i=>{var Z=g.coinIcon(u()),ee=`${w()}%`,te=g.coinIcon(u()),ne=g.coinIcon(u()),le=g.coinIcon(u());return Z!==i.e&&m(B,"src",i.e=Z),ee!==i.t&&Ge($e,"width",i.t=ee),te!==i.a&&m(Q,"src",i.a=te),ne!==i.o&&m(j,"src",i.o=ne),le!==i.i&&m(G,"src",i.i=le),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e}})}function Pt(t){A||(A=!0,Xe(t.userId),z.push(()=>r(ut,{get amount(){return t.amount},get currency(){return t.currency}})).finally(()=>{A=!1}))}export{Pt as openWelcomeCashbackDepositSuccessPop};
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.