1import{f as r,bx as je,a as P,o as n,M as Fe,p as ae,W as m,X as g,t as v,J as M,a5 as Qe,ax as ie,ag as o,L as p,b as k,S as Ke,O as se,j as Ge,aG as Je,P as Ve}from"./index-D5gHkNn-.js";import{f as l}from"./index-CgokGjYA.js";import{u as Xe,a as Ye}from"./quest-service-Cn-gc7-c.js";import{a as qe}from"./currency-format-C1vGw7hj.js";import{r as oe,m as He}from"./unlock-popup-seen-C9MGXc8G.js";import{u as Ze}from"./use-quest-claim-CUPfaYTZ.js";import"./rewards-service-DYBySR1j.js";import"./deposit-offer-service-JuzE4tGx.js";import"./claimable-item-detail-9qAyVQox.js";import"./bonus-pop-Is5QW4hg.js";import"./reward-item-q9RBqHHI.js";import"./utils-B6EQjC9R.js";import"./deposit-offer-NppqYLW7.js";import"./bonus-currency-amount-3-UNEK2E.js";import"./icon-currency-bkyt7YmO.js";import"./types-CLD5yRyu.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:"8c3b9aa2b95acaad15d7da0cf7f36f5b8cfcd6d1"},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(je,{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=Qe(),s=Xe(),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")),M.pop())},xe=()=>{k.emit("track",{event:S.gowagerClick,data:{locked_amount:x()}}),M.pop(),a("/casino")};return r(Ve,{type:"bottomsheet",class:"!bg-layer1",get decoration(){return r(ot,{})},get children(){var e=ct(),f=e.firstChild,he=f.firstChild,z=he.nextSibling,B=z.firstChild,_e=B.nextSibling,D=z.nextSibling,E=f.nextSibling,W=E.firstChild,O=W.nextSibling,ve=O.firstChild,U=ve.firstChild,L=U.firstChild,N=L.nextSibling,Ce=N.firstChild,I=U.nextSibling,ye=I.firstChild,$e=ye.firstChild,we=I.nextSibling,R=we.firstChild,ke=R.firstChild,T=ke.nextSibling,j=T.nextSibling,Se=j.nextSibling,Ae=R.nextSibling,Pe=Ae.firstChild,F=Pe.nextSibling,Q=F.nextSibling,Me=Q.nextSibling,K=O.nextSibling,ze=K.firstChild,G=ze.firstChild,Be=G.nextSibling,J=Be.firstChild,De=J.nextSibling,V=E.nextSibling,X=V.firstChild,Ee=X.nextSibling,Y=Ee.firstChild,We=Y.firstChild,Oe=We.nextSibling,q=Oe.firstChild,Ue=q.nextSibling,Le=Y.nextSibling,Ne=Le.f
1irstChild,Ie=Ne.nextSibling,H=Ie.firstChild,Re=H.nextSibling,Te=V.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(W,()=>l("Wager to unlock in real time.")),n(L,()=>l("Unlock Progress")),n(N,()=>w().toFixed(2),Ce),n(T,()=>l("Unlocked:")),n(Se,me),n(F,()=>l("Locked:")),n(Me,pe),n(G,()=>l("UNLOCKED")),n(De,be),n(K,r(se,{type:"brand",get disabled(){return!h()},get class(){return Ge("h-8 w-[4.75rem] px-2.5 text-sm font-semibold",!h()&&"opacity-40")},onClick:ge,get children(){return l("Claim")}}),null),n(X,()=>l("HOW YOU EARN")),n(q,()=>l("Wager")),n(Ue,()=>l("Every wager unlocks your rakeback in real time. Only real money, non-PvP wagers count.")),n(H,()=>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&&Je($e,"width",i.t=ee),te!==i.a&&m(j,"src",i.a=te),ne!==i.o&&m(Q,"src",i.o=ne),le!==i.i&&m(J,"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,He(t.userId),M.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.