PageSourceSearch

https://bcgame2.com/assets/index-CzzIFvRI.js

js bcgame2.com collected 2026-09-30 21:07:17 UTC 16,753 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BonusTooltip-8mhH-L_g.js","assets/index-D5gHkNn-.js","assets/index-CgokGjYA.js","assets/index-BYeZ17PB.css","assets/SelectLayer-DNDcmq-S.js","assets/IconInform-Bge4kVGE.js","assets/IconSetting-BZnnADlK.js","assets/sortBy-C9ZGrp3y.js","assets/_baseFlatten-DJPbrYMw.js","assets/_Uint8Array-BppLmJZG.js","assets/isArray-nZdZwHOM.js","assets/keys-viFk6_Ky.js","assets/_baseOrderBy-ZDoPZew3.js","assets/_arrayMap-YS0pntYB.js","assets/_baseIteratee-D4hIwuxp.js","assets/_baseIsEqual-DbdOTjNu.js","assets/toString-DalSYDCT.js","assets/identity-CmuQ__9q.js","assets/_baseEach-C6vKidSp.js","assets/_baseFor-vgskedhn.js","assets/_baseRest-DX3mDxkY.js","assets/_defineProperty-BmxFgRtx.js","assets/_isIterateeCall-BNANrijX.js","assets/groupBy-o9dU6x5E.js","assets/_baseAssignValue-o_ri7SY9.js","assets/debounce-DQxIeQJR.js","assets/partition-DO01vzxU.js","assets/IconSwap-DZ8R8LX3.js","assets/orderBy-BZlAgsPd.js","assets/tg-four-deposit-CwVNANvK.js","assets/deposit-offer-service-JuzE4tGx.js","assets/tgBonusArrivedHint-JkZ5ikm6.js","assets/IconAdd-B0HPvJsz.js","assets/SelectLayerMX-lTUuhskf.js","assets/claimable-item-detail-9qAyVQox.js","assets/bonus-pop-Is5QW4hg.js","assets/rewards-service-DYBySR1j.js","assets/reward-item-q9RBqHHI.js","assets/utils-B6EQjC9R.js","assets/deposit-offer-NppqYLW7.js","assets/currency-format-C1vGw7hj.js","assets/bonus-currency-amount-3-UNEK2E.js","assets/icon-currency-bkyt7YmO.js","assets/types-CLD5yRyu.js","assets/index-VWm3UnMx.js","assets/mx-tracking-vsJ0B6Hw.js","assets/live-wager-Dq0iryvB.js","assets/wager-bar-yRJa5d7i.js","assets/IconCheck-DWh7N1NT.js","assets/IconNbgameplaybonus-ZWRony0h.js"])))=>i.map(i=>d[i]);
2import{b4 as ie,n as v,b as L,L as U,G as k,a as B,aC as F,cg as H,cb as de,bJ as fe,aF as X,o as b,M as V,f as r,N as ge,ch as me,K as G,t as C,Q as pe,bp as oe,p as M,j as T,q as E,S as A,aa as we,z as J,ag as x,m as Z,b9 as ee,ax as O,ab as W,as as q,ar as R,O as te,a7 as ve,ae as j,a5 as _e,an as se,bc as Q,aP as Ae,e as Y,F as Se,aQ as Ce,s as ae,ai as $e,E as Be,av as le,X as xe,W as Te,u as D,c4 as ke,ay as ne,_ as re,ci as Ne,a4 as Ee,T as Re}from"./index-D5gHkNn-.js";import{f as y,K as De}from"./index-CgokGjYA.js";import{trackArrivalShow as Me,trackArrivalClick as Le}from"./tg-four-deposit-CwVNANvK.js";import{d as Oe,t as ue}from"./tgBonusArrivedHint-JkZ5ikm6.js";import{I as Pe}from"./IconAdd-B0HPvJsz.js";(function(){try{var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e.SENTRY_RELEASE={id:"8c3b9aa2b95acaad15d7da0cf7f36f5b8cfcd6d1"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(o){for(var t=1;t<arguments.length;t++){var d=arguments[t];if(d!=null)for(var s in d)d.hasOwnProperty(s)&&(o[s]=d[s])}return o})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(o){}})();var We=C('<div class="absolute left-0 top-1 w-full text-center font-extrabold text-brand">');function Ie(){let e=!1;const o=ie(),t=()=>G[B.setting.currencyName],[d,s]=v([]),g=me(c=>s(i=>[...i,c]),300);L.on("wallet-add-amount",c=>{c.error?e=!1:c.currencyName?(g([new U(c.unclaimedAmount||0),c.currencyName,""]),setTimeout(()=>{e=!1},500)):e=!0}),k(c=>{const i=t(),a=B.setting.currencyBonusType,n={game:i.groupAmount.free_amount,sport:i.groupAmount.sports,default:i.generalAmount},l=n[a]||n.default;if(c&&c[0]===i.currencyName&&c[2]===a&&F(o)&&!H.isResolve(l))if(e)e=!1;else{const h=l.minus(c[1]);h.gt(1e-8)&&g([h,i.currencyName,a])}return[i.currencyName,l,a]});const p=de((c,i)=>{let a;return k(()=>{i()&&fe.fromTo(a,{y:24,opacity:1},{y:0,opacity:0,duration:1.5,ease:"power3.in",onComplete(){s(n=>n.filter(l=>l!==F(c)))}})}),(()=>{var n=We(),l=a;return typeof l=="function"?X(l,n):a=n,b(n,()=>V.printCurrency(c()[0],c()[1])),n})()});return r(ge,{get each(){return d()},children:p})}const be=pe(()=>{const[e,o]=v(oe());return k(()=>{oe()&&o(!0)}),e});var ze=C("<div><div>");const he=["","game","sport"],K=pe(()=>{const[e,o]=we({"":!1,game:!1,sport:!1});let t=!1;const d=()=>G[B.setting.currencyName];return L.on("wallet-add-amount",s=>{s.error?t=!1:s.currencyName?setTimeout(()=>t=!1,500):t=!0}),k(s=>{const g=d(),p={currency:g.currencyName,"":g.generalAmount,game:g.groupAmount.free_amount,sport:g.groupAmount.sports};if(be()&&s&&s.currency===p.currency)if(t)t=!1;else{const i=B.setting.currencyBonusType;for(const a of he){const n=p[a];a!==i&&!H.isResolve(n)&&n.minus(s[a]).gt(1e-8)&&o(a,!0)}}return p}),{grew:e,clearAll:()=>o({"":!1,game:!1,sport:!1})}});function je(e){k(()=>{e.visible&&!e.visible()&&K.clearAll()});const o=()=>{var t;return(t=e.pulse)!=null&&t.call(e)?!0:e.type!==void 0?K.grew[e.type]:he.some(d=>K.grew[d])};return r(A,{get when(){return o()},get children(){var t=ze(),d=t.firstChild;return M(s=>{var c;var g=T("h-2 w-2",(c=e.class)!=null?c:"ml-1"),p=T("h-full w-full rounded-full bg-brand",e.type!==void 0&&"animate-quest-breathe-sm");return g!==s.e&&E(t,s.e=g),p!==s.t&&E(d,s.t=p),s},{e:void 0,t:void 0}),t}})}function Fe(e){return e.isNegative()?new U(0):e}var Ge=C('<div><i class="absolute -top-4 left-1/2 -ml-1 border-8 border-transparent border-b-layer5"></i><div class=text-center>');function Ye(e){let o;const t=J(),d=x(()=>Z(t.pathname)),[s,g]=v(!0),p=["/racing","/lottery","/trading"];ee(()=>{t.pathname&&g(!0)}),O(()=>{const i=L.on("gameBonusSupport",a=>{g(a)});W(i)});const c=x(()=>{const i=d(),a=B.setting.currencyBonusType;return p.some(n=>i.startsWith(n))?a?3:0:i.startsWith("/sports")||i.startsWith("/bti")?a==="game"?2:0:i.startsWith("/game")?a==="sport"?1:a==="game"&&!s()?3:0:0});return r(A,{get when(){return c()},children:i=>{const[a,n]=v(!1);return O(()=>{if(o){const l=o.getBoundingClientRect();n(l.right>window.innerWidth)}}),(()=>{var l=Ge(),m=l.firstChild,h=m.nextSibling,w=o;return typeof w=="function"?X(w,l):o=l,b(h,r(q,{get fallback(){return y("Bonu
2s balance is not allowed to bet on this game, please switch to  deposit balance to continue playing.")},get children(){return[r(R,{get when(){return c()===1},get children(){return y("Sports bonus balance is not allowed to bet on this game, please switch to deposit balance or casino bonus balance to continue playing.")}}),r(R,{get when(){return c()===2},get children(){return y("Casino bonus balance is not allowed to bet on this game, please switch to deposit balance or sports bonus balance to continue playing.")}})]}})),b(l,r(te,{class:"mx-auto mt-3 w-36",type:"brand",onClick:$=>{$.stopPropagation(),e.switch()},get children(){return y("Switch")}}),null),M(()=>E(l,T("absolute top-14 w-72 rounded-lg bg-layer5 p-4",a()?"right-0":"right-1/2 -mr-36"))),l})()}})}var qe=C('<div class="absolute start-0 top-14 z-10 w-max max-w-[calc(100vw-4rem)] rounded-xl bg-layer5 px-4 py-3 text-base font-semibold text-primary"><i class="absolute -top-4 start-1/2 -ms-2 border-8 border-transparent border-b-layer5">');function Qe(e){return k(()=>{e.open&&Oe()}),k(()=>{const o=ue();o!==null&&Me(o)}),r(A,{get when(){return ue()},children:o=>(()=>{var t=qe();return t.firstChild,t.$$click=()=>Le(o()),b(t,()=>y("Your bonus has arrived ⋅ tap to check"),null),t})()})}ve(["click"]);const Ve=["/racing","/lottery","/trading"];function Xe(e){return Ve.some(o=>e.startsWith(o))?"none":e.startsWith("/sports")||e.startsWith("/bti")?"sport":e.startsWith("/game")?"game":"all"}var Ke=C('<div><i class="absolute -top-4 left-1/2 -ml-1 border-8 border-transparent border-b-layer5"></i><div>');function Ue(e){let o;const t=J(),d=x(()=>Z(t.pathname)),s=x(()=>{const a=e.current(),n=a.generalAmount.gt(0),l=a.groupAmount.sports.gt(0);return n&&l?"both":n?"":l?"sport":null}),g=x(()=>{const a=e.current(),n=a.generalAmount.gt(0),l=a.groupAmount.free_amount.gt(0);return n&&l?"both":n?"":l?"game":null}),[p,c]=v(!0);ee(()=>{t.pathname&&c(!0)}),O(()=>{const a=L.on("gameBonusSupport",n=>{c(n)});W(a)});const i=x(()=>{const a=B.setting.currencyBonusType;switch(Xe(d())){case"none":return a?3:0;case"sport":return a==="game"?2:0;case"game":return a==="sport"?1:a==="game"&&!p()?3:0;default:return 0}});return r(A,{get when(){return i()},children:a=>{const[n,l]=v(!1);return O(()=>{if(o){const m=o.getBoundingClientRect();l(m.right>window.innerWidth)}}),(()=>{var m=Ke(),h=m.firstChild,w=h.nextSibling,$=o;return typeof $=="function"?X($,m):o=m,b(w,r(q,{get fallback(){return y("Bonus balance is not allowed to bet on this game, please switch to  deposit balance to continue playing.")},get children(){return[r(R,{get when(){return i()===1},get children(){return r(q,{get fallback(){return y("Sports bonus balance is not allowed to bet on this game, please switch to deposit balance or Casino bonus balance to continue playing.")},get children(){return[r(R,{get when(){return g()===""},get children(){return y("Sports bonus balance is not allowed to bet on this game, please switch to deposit balance to continue playing.")}}),r(R,{get when(){return g()==="game"},get children(){return y("Sports bonus balance is not allowed to bet on this game, please switch to Casino bonus balance to continue playing.")}})]}})}}),r(R,{get when(){return i()===2},get children(){return r(q,{get fallback(){return y("Casino bonus balance is not allowed to bet on Sports, please switch to deposit balance or Sports bonus balance to continue playing.")},get children(){return[r(R,{get when(){return s()===""},get children(){return y("Casino bonus balance is not allowed to bet on Sports, please switch to deposit balance to continue playing.")}}),r(R,{get when(){return s()==="sport"},get children(){return y("Casino bonus balance is not allowed to bet on Sports, please switch to Sports bonus balance to continue playing.")}})]}})}})]}})),b(m,r(te,{class:"mx-auto mt-3 w-36",type:"brand",onClick:N=>{if(N.stopPropagation(),i()===2){const u=s();if(u===""||u==="sport"){j("setting","currencyBonusType",u);return}}if(i()===1){const u=g();if(u===""||u==="game"){j("setting","currencyBonusType",u);return}}if(i()===3){j("setting","currencyBonusType","");return}e.switch()},get children(){return y("Switch")}}),null),M(()=>E(m,T("absolute top-14 w-72 rounded-lg bg-layer4 p-4",n()?"right-0":"right-1/2 -mr-36"))),m})()}})}
2var He=C('<div class="absolute left-0 top-1 flex w-full justify-center"><span class="rounded-md border-2 border-brand bg-brand/10 px-1 py-0.5 text-sm font-extrabold">+ <span class=text-brand>');function Je(){let e=!1;const o=ie(),t=()=>G[B.setting.currencyName],[d,s]=v([]),g=me(n=>s(l=>[...l,n]),1300),p=()=>typeof document=="undefined"||document.visibilityState==="visible",c=n=>{p()&&g(n)};L.on("wallet-add-amount",n=>{n.error?e=!1:n.currencyName?(c([new U(n.unclaimedAmount||0),n.currencyName,""]),setTimeout(()=>{e=!1},500)):e=!0});let i;k((n=new Map)=>{const l=t(),m=l.currencyName,h={"":l.generalAmount,game:l.groupAmount.free_amount,sport:l.groupAmount.sports},w=m!==i;i=m;const $=F(o),N=e&&$;N&&(e=!1);const u=be(),S=w||N||!u;for(const _ of Object.keys(h)){const f=h[_],P=`${m}:${_}`,I=n.get(P);if(n.set(P,f),S||I===void 0||!$||H.isResolve(f))continue;const z=f.minus(I);z.gt(1e-8)&&c([z,m,_])}return n});const a=de((n,l)=>{let m;return k(()=>{l()&&fe.fromTo(m,{y:36,opacity:1},{y:0,opacity:0,duration:1.5,ease:"power3.in",onComplete(){s(h=>h.filter(w=>w!==F(n)))}})}),(()=>{var h=He(),w=h.firstChild,$=w.firstChild,N=$.nextSibling,u=m;return typeof u=="function"?X(u,h):m=h,b(w,()=>V.printCurrency(n()[0],n()[1]),N),b(N,()=>n()[2]?" Bonus":""),h})()});return r(ge,{get each(){return d()},children:a})}var ye=C("<span>"),Ze=C('<div class="ml-1 h-2 w-2 rounded-full bg-[#FC3C3C]">'),et=C("<div>"),tt=C("<span>(<!>)"),nt=C('<div><div class="mr-1 flex flex-auto cursor-pointer select-none items-center"><img alt>'),rt=C("<div class=min-h-[30rem]>");const ot=ne(()=>re(()=>import("./BonusTooltip-8mhH-L_g.js"),__vite__mapDeps([0,1,2,3]))),ce=ne(()=>re(()=>import("./SelectLayer-DNDcmq-S.js"),__vite__mapDeps([4,1,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,3]))),st=ne(()=>re(()=>import("./SelectLayerMX-lTUuhskf.js"),__vite__mapDeps([33,1,2,34,35,36,30,37,38,39,40,41,42,43,44,45,46,47,48,49,29,31,32,3]))),at=3e3;function lt(e){const o=t=>(()=>{var d=ye();return b(d,(()=>{var s=D(()=>!!e.hideAmount());return()=>s()?V.getAlias(e.current().currencyName):V.printCurrency(Fe(t()),e.current().currencyName)})(),null),b(d,r(A,{get when(){return!1},get children(){return r(je,{get visible(){return e.visible},get pulse(){return e.pulse}})}}),null),M(()=>E(d,T(!1))),d})();return(()=>{var t=et();return b(t,r(A,{get when(){return B.setting.currencyBonusType},get fallback(){return o(()=>e.current().generalAmount)},children:d=>[D(()=>o(()=>d()==="sport"?e.current().groupAmount.sports:e.current().groupAmount.free_amount)),(()=>{var s=tt(),g=s.firstChild,p=g.nextSibling;return p.nextSibling,b(s,(()=>{var c=D(()=>!1);return()=>c()?D(()=>d()==="sport")()?y("Sports Bonus"):y("Casino Bonus"):y("Bonus")})(),p),M(()=>E(s,T("text-xs font-semibold text-secondary","ml-0.5"))),s})()]}),null),b(t,r(A,{get when(){return D(()=>!!Ne.store.showRedDot)()&&!0},get children(){return Ze()}}),null),M(()=>E(t,T("flex w-0 flex-auto truncate font-extrabold","items-center"))),t})()}function ut(){const e=J(),[o,t]=v(!1),d=_e(),s=x(()=>G[B.setting.currencyName]),g=v(!1),p=v(null),c=x(se([p[0],o],([u,S],_,f)=>_&&u!==_[0]?u:S&&f!=null?f:null)),i=v(0),a=x(se([i[0],o],([u,S],_,f)=>_&&u!==_[0]?!0:S&&f!=null?f:!1)),n=v("balance"),l=De();O(()=>{const u=Q("new-user-deposit-bonus-notice",f=>{s().amount.eq(0)&&Ae(()=>{j("setting","currencyName",f.currency),j("setting","currencyBonusType",f.bonusType),g[1](!0)})}),S=Q("bonus-money-unlocked",f=>p[1](f)),_=Q("free-bet-and-spin-receive",()=>{l.refetch(),i[1](f=>f+1)});W(S),W(_),W(()=>{u()})}),O(()=>{const u=()=>{ce.preload()};typeof requestIdleCallback=="function"?requestIdleCallback(u):setTimeout(u,at)}),ee(()=>{s()===void 0&&F(()=>{throw new Error(`Currency Init (${B.setting.currencyName}, ${B.setting.localeCurrencyName}), [${Object.values(G).map(u=>u.currencyName).join(",")}]`)})});const m=x(()=>Z(e.pathname)),[h,w]=v(Y.mobile&&m().startsWith("/enter-game/"));k(()=>{Y.mobile&&(m().startsWith("/enter-game/")?w(!0):w(!1))}),L.on("hideAmount",u=>{w(u)}),L.on("open-currency-layer",()=>{n[1]("balance"),t(!0)});const[$,N]=v();return Se($,"click",u=>{u.stopPropagation(),t(!1),d("/deposit")}),r(ke,{get class(){return T("currency-select mt-1",!1,"!pb-0 [&_.pop-content]:pb-0")},get title(){return D(()=>!1)()?" ":y("Select Currency")},get visible(){return o()},setVisible:t,get layer(){return D(()=>!1)()?r(le,{get fallback(){return rt()},get children(){return r(st,{bonus:g,onClose:()=>t(!1),onReopen:()=>t(!0),visible:o,unlockedNotice:c,freeplayPulse:a,tab:n})}}):r(ce,{bonus:g,onClose:()=>t(!1),onReopen:()=>t(!0),visible:o})},get children(){var u=nt(),S=u.firstChild,_=S.firstChild;return b(S,r(lt,{current:s,hideAmount:h,visible:o,pulse:a}),null),b(S,r(Ce,{class:"size-4 -rotate-90 fill-secondary"}),null),b(S,r(A,{get when(){return!1},get fallback(){return r(Ie,{})},get children(){return r(Je,{})}}),null),b(u,r(A,{get when(){return!$e.isOfflineAgent},get children(){return r(te,{ref:N,class:"not-full ml-auto h-8 flex-none rounded-md !bg-brand bg-none shadow-none",type:"brand",get children(){return r(A,{get when(){return h()||!Y.mobile||ae.bcke},get fallback(){return r(Pe,{class:"size-4"})},get children(){var f=ye();return b(f,()=>y("Deposit")),f}})}})}}),null),b(u,r(A,{get when(){return!1},get fallback(){return r(Ye,{current:s,switch:()=>t(!0)})},get children(){return r(Ue,{current:s,switch:()=>{n[1]("balance"),t(!0)}})}}),null),b(u,r(Qe,{get open(){return o()}}),null),b(u,r(Be,{fallback:null,get children(){return r(le,{get children(){return r(ct,{})}})}}),null),M(f=>{var P=T("relative flex h-10 w-52 rounded-lg border-2 p-0.5 sm:w-[16.5rem]",Y.mobile?"border-third bg-alw_white dark:bg-layer3":"border-input bg-layer3"),I=T("flex flex-none",ae.bcke?"mx-0.5 size-4":"mx-1 size-6"),z=xe.coinIcon(s().currencyName);return P!==f.e&&E(u,f.e=P),I!==f.t&&E(_,f.t=I),z!==f.a&&Te(_,"src",f.a=z),f},{e:void 0,t:void 0,a:void 0}),u}})}function ct(){const[e]=Ee,o=()=>{const t=e();return t&&t.depositBonusType==="MONTHLY"&&t.expiredTime>0&&t.needHint};return r(A,{get when(){return D(()=>!!o())()&&e()},children:t=>{const[d,s]=Re(v(!0),{name:"show-deposit-bonus"}),g=()=>{s(!1)};return O(()=>{const p=Q("recharge-bonus-notice",c=>{g()});W(p)}),r(A,{get when(){return d()},get children(){return r(ot,{close:g})}})}})}const pt=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));
2export{je as B,ut as S,Fe as c,pt as i,Xe as p,be as w};

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.