PageSourceSearch

https://bcgame.top/assets/index-DQAlBCBV.js

js bcgame.top collected 2026-09-30 14:34:09 UTC 3,194 bytes, 1 lines download raw bytes

1var R=Object.defineProperty;var p=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var g=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&g(e,n,t[n]);if(p)for(var n of p(t))N.call(t,n)&&g(e,n,t[n]);return e};var f=(e,t,n)=>new Promise((r,i)=>{var I=l=>{try{h(n.next(l))}catch(w){i(w)}},M=l=>{try{h(n.throw(l))}catch(w){i(w)}},h=l=>l.done?r(l.value):Promise.resolve(l.value).then(I,M);h((n=n.apply(e,t)).next())});import{n as D,aa as F,ab as S}from"./index-D5gHkNn-.js";import{W as c}from"./index-CgokGjYA.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(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(t){}})();const[o,a]=F({info:null,playResult:null,loading:!1,hasFetched:!1,error:null,isGameEnded:!1}),[E,T]=D(Date.now());let d=null,s=0;function _(){var e,t,n,r;return Math.max((t=(e=o.info)==null?void 0:e.spinExpireTime)!=null?t:0,(r=(n=o.info)==null?void 0:n.depositExpireTime)!=null?r:0)}function b(){d!==null&&(clearTimeout(d),d=null)}function u(){if(b(),s<=0)return;const e=_(),t=Date.now();!e||t>=e||(d=setTimeout(()=>{T(Date.now()),u()},1e3-t%1e3))}function v(){s+=1,s===1&&(T(Date.now()),u())}function x(){s=Math.max(0,s-1),s===0&&b()}function P(){return v(),S(x),E}const B=3e3;let m=null,k=0;function C(){return f(this,null,function*(){m=null,k=Date.now(),yield c.invalidateWelcomeCashbackInfo();try{const e=yield c.getWelcomeCashBackInfo();return a({info:e,hasFetched:!0,error:null}),u(),e}catch(e){return a({error:e}),null}})}const H={state:o,now:E,hydrateInfo(e){a({info:e,loading:!1,hasFetched:!0,error:null}),u()},reset(){a({info:null,playResult:null,loading:!1,hasFetched:!1,error:null,isGameEnded:!1}),u()},fetchInfo(){return f(this,null,function*(){a("loading",!0);try{const e=yield c.getWelcomeCashBackInfo();return a({info:e,loading:!1,hasFetched:!0,error:null}),u(),e}catch(e){return a({error:e,loading:!1,hasFetched:!0}),null}})},refreshInfo(e){if(m&&clearTimeout(m),!(e!=null&&e.throttle))return C();m=setTimeout(()=>{C()},Math.max(0,B-(Date.now()-k)))},updateInfo(e){o.info&&a("info",t=>y(y({},t),e))},isCompleted(){return o.info&&o.info.completedCount>=o.info.totalCount&&o.info.totalCount>0||o.isGameEnded},play(){return f(this,null,function*(){try{return yield c.playWelcomeCashBack()}catch(e){return a("error",e),null}})},commitPlayResult(e){a("playResult",e)},claim(){return f(this,null,function*(){try{const e=yield c.claimWelcomeCashback();return{ok:e.every(t=>t.code===0),results:e}}catch(e){return a({error:e}),{ok:!1,results:[],error:e}}})},updateIsGameEnded(e){a("isGameEnded",e)}};export{H as default,P as useWelcomeNowClock,H as welcomeStore};

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.