PageSourceSearch

https://bcgame.top/assets/lucky-draw-popup-BK4ysLVt.js

js bcgame.top collected 2026-09-30 14:32:48 UTC 5,479 bytes, 1 lines download raw bytes

1import{y as L,a5 as G,a8 as J,G as T,ax as R,x as Y,J as C,ab as I,aF as j,W as x,o as l,f as a,b1 as Q,O as P,av as N,S as v,M as E,L as M,N as H,p as V,E as O,z as U,a as k,u as X,m as Z,t as h,n as z,bk as B,a7 as ee,s as te,v as ae}from"./index-D5gHkNn-.js";import{g as _}from"./prize-assets-DFGvOyhJ.js";import{f}from"./index-CgokGjYA.js";import{a as re,D as ne,b as A,c as le,d as oe}from"./store-CbLsPlo8.js";import{t as se,a as ie,b as ce}from"./tracking-BLN9Li8H.js";import"./vip-service-KVoGc22m.js";import"./index-BZcJr2o1.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(r){for(var g=1;g<arguments.length;g++){var o=arguments[g];if(o!=null)for(var s in o)o.hasOwnProperty(s)&&(r[s]=o[s])}return r})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(r){}})();var ue=h('<section class="draw-intro pop-center outline-none"tabindex=-1 role=dialog aria-modal=true><div class="draw-intro-hero relative shrink-0"></div><div class="draw-intro-body shrink-0 rounded-b-3xl bg-layer1 px-4 pb-8 pt-8 text-center"><h2 class="text-2xl font-extrabold uppercase leading-8 text-primary">'),de=h('<div class="mt-4 text-secondary"><p>'),fe=h('<div class="h-32 animate-pulse rounded-lg bg-layer3">'),ge=h('<p class="mt-1 text-sm leading-5 text-secondary"><strong class="font-extrabold text-warning_brighter"></strong> <!> · '),me=h('<div class="mt-7 grid grid-cols-4 items-stretch gap-2">'),he=h('<div class="flex min-w-0 flex-col items-center rounded-md border border-fourth/5 bg-layer3_alt px-1 pb-2 pt-1"><img alt class="aspect-square w-full shrink-0 object-contain"><p class="text-xxs w-full whitespace-pre-line break-words font-semibold leading-3 text-primary">'),pe=h("<span class=block>");function we(){const e=le(),[r,g]=z(!0);I(()=>g(!1));const o=`${k.userId}-lucky-draw-popup-shown`,[s,y]=z(!!localStorage.getItem(o)),p=()=>r()&&!e.isError&&!!e.data&&oe(e.data,Date.now())==="active";return T(()=>{!p()||s()||B.once(W,{canShow:p,onShow:()=>{p()&&(localStorage.setItem(o,"1"),y(!0),ce())}})}),null}function be(e){const r=U();return a(v,{get when(){return X(()=>!!(k.login&&!k._isStale&&Z(r.pathname)==="/"))()&&k.userId},keyed:!0,get children(){return a(O,{fallback:null,get children(){return a(N,{get children(){return a(we,{})}})}})}})}function ye(e){return R(()=>{var r;return(r=e.onShow)==null?void 0:r.call(e)}),null}function W(e){const r=L(G),g=J(),o=document.activeElement,s=()=>C.pop(y);T(()=>{e.canShow&&!e.canShow()&&s()});function y(){const S=re(),q=()=>{var i;return(i=S.data)==null?void 0:i.find(m=>m.prizeCode==="rm_600k")},K=()=>{var i,m,w,b;return[{image:(i=_("rm_600k"))==null?void 0:i.image,name:f("Real Money"),reward:q()},{image:(m=_("gold_1oz"))==null?void 0:m.image,name:f("1oz Gold Bar")},{image:(w=_("iphone_duo"))==null?void 0:w.image,name:f("iPhone Duo(1TB)")},{image:(b=_("fs_100x10"))==null?void 0:b.image,name:f("Free Spins")}]};return(()=>{var i=ue(),m=i.firstChild,w=m.nextSibling,b=w.firstChild;return i.$$keydown=t=>{var n;if(t.key==="Escape"&&(t.preventDefault(),s()),t.key==="Tab"){const u=t.currentTarget.querySelectorAll("button:not(:disabled)"),d=u[0],c=u[u.length-1];document.activeElement===t.currentTarget?(t.preventDefault(),(n=t.shiftKey?c:d)==null||n.focus()):t.shiftKey&&document.activeElement===d?(t.preventDefault(),c==null||c.focus()):!t.shiftKey&&document.activeElement===c&&(t.preventDefault(),d==null||d.focus())}},j(t=>queueMicrotask(()=>t.focus()),i),x(i,"aria-labelledby",g),l(m,a(P,{class:"draw-intro-close absolute right-3 z-10 size-6 rounded bg-white_alpha20 p-0",get"aria-label"(){return f("Close")},onClick:()=>{s(),se()},get children(){return a(Q,{class:"size-4 fill-alw_white"})}})),x(b,"id",g),l(b,()=>f("Million Card Draw")),l(w,a(O,{fallback:()=>(()=>{var t=de(),n=t.firstChild;return l(n,()=>f("Unable to load the event. Please try again.")),t})(),get children(){return a(N,{get fallback(){return fe()},get children(){return a(v,{get when(){return S.data},children:t=>[a(ye,{get onShow(){return e.onShow}}),(()=>{var n=ge(),u=n.firstChild,d=u.nextSibling,c=d.nextSibling;return c.nextSibling,l(u,()=>E.printCurrency(new M(ne),A,{precision:12,minDecimals:0})),l(n,()=>f("Prize Pool"),c),l(n,()=>f("100% Win"),null),n})(),(()=>{var n=me();return l(n,a(H,{get each(){return K()},children:u=>(()=>{var d=he(),c=d.firstChild,$=c.nextSibling;return l($,a(v,{get when(){return u.reward},children:F=>(()=>{var D=pe();return l(D,()=>E.printCurrency(new M(F().unitPriceUsd),A,{precision:3,minDecimals:0})),D})()}),null),l($,()=>u.name,null),V(()=>x(c,"src",u.image)),d})()})),n})()]})}})}}),null),l(w,a(P,{class:"mt-7 h-10 w-full rounded-lg bg-brand px-4 text-base font-extrabold text-primary_brand",onClick:()=>{s(),r("/events/lucky-draw"),ie()},get children(){return f("Join Now")}}),null),i})()}let p=!1;return R(()=>
1{if(e.canShow&&!e.canShow()){e.onDestroy();return}Y.add(()=>{if(!p){if(e.canShow&&!e.canShow()){e.onDestroy();return}return C.push(y,{onClose:e.onDestroy})}})}),I(()=>{p=!0,s(),o==null||o.focus()}),null}ee(["keydown"]);const Ce={trigger:e=>{L(()=>U()),!te.bcgh&&ae().then(()=>e(!1))},when:!0};function Pe(e){B.once(e?W:be)}export{Pe as default,Ce as event};

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.