PageSourceSearch

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

js bcgame2.com collected 2026-09-30 21:07:25 UTC 4,788 bytes, 1 lines download raw bytes

1var J=Object.defineProperty,P=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable;var O=(n,a,t)=>a in n?J(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t,v=(n,a)=>{for(var t in a||(a={}))X.call(a,t)&&O(n,t,a[t]);if(U)for(var t of U(a))Y.call(a,t)&&O(n,t,a[t]);return n},C=(n,a)=>P(n,W(a));var x=(n,a,t)=>new Promise((s,r)=>{var c=o=>{try{p(t.next(o))}catch(h){r(h)}},f=o=>{try{p(t.throw(o))}catch(h){r(h)}},p=o=>o.done?s(o.value):Promise.resolve(o.value).then(c,f);p((t=t.apply(n,a)).next())});import{n as w,ag as A,a as _,M as L,L as y,o as i,p as $,q as I,j as E,W as V,X as q,G,an as K,f as u,S as g,u as k,E as Q,O as Z,t as m,Q as ee,H as te,g as z,bc as ae,b as T,Y as j}from"./index-D5gHkNn-.js";import{f as d}from"./index-CgokGjYA.js";import{C as ne}from"./index-DhsijTVe.js";(function(){try{var n=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};n.SENTRY_RELEASE={id:"8c3b9aa2b95acaad15d7da0cf7f36f5b8cfcd6d1"},n._sentryModuleMetadata=n._sentryModuleMetadata||{},n._sentryModuleMetadata[new n.Error().stack]=(function(a){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(s!=null)for(var r in s)s.hasOwnProperty(r)&&(a[r]=s[r])}return a})({},n._sentryModuleMetadata[new n.Error().stack],{"_sentryBundlerPluginAppKey:playsmart-ai":!0})}catch(a){}})();var re=m('<div><span class="text-xs text-secondary">'),le=m('<div class="flex items-center"><div class=size-4><img class="size-4 max-w-none"alt="coin icon"></div><span class="ml-1 text-sm text-primary">'),oe=m('<span class="relative flex h-full w-full items-center justify-center text-xs text-primary_brand">'),se=m('<div class="relative flex h-[44px] w-full min-w-48 items-center justify-between gap-2 rounded-lg border-[1px] border-solid border-input bg-input_bright p-1 pl-2 sm:w-fit"><div class="flex cursor-pointer flex-col">'),ce=m('<div><div class="mt-3 flex w-full flex-col gap-2">'),ie=m('<div class="h-[0.5px] w-full border-[0.5px] border-solid border-third [&amp;:nth-last-child(2)]:hidden">');const R="BC",S={end:!0,currency:R,unclaimedAmount:"0"},[ue,{refetch:de}]=ee(()=>{const[n,a]=w(0),[t,{refetch:s,mutate:r}]=te(()=>["/activity/taco-back-he/bonus/",{login:_.login}],p=>x(null,[p],function*([c,f]){return f.login?yield z().get(c):S}),{initialValue:S});return ae("taco-back-he-add",c=>{c.updatedTime>n()&&(a(c.updatedTime),r(C(v({},t()),{unclaimedAmount:c.updatedBalance})))}),[t,{refetch:()=>{r(C(v({},t()),{unclaimedAmount:"0"})),s()}}]});function ge(n){const a=n.mode||"button",[t,s]=w(!1),[r,c]=w(S),[f,p]=w(!1),o=A(()=>_.setting.enableLocaleCurrency?_.setting.localeCurrencyName:R),h=A(()=>L.convertCurrency(new y(r().unclaimedAmount),r().currency,o()).toFixed(o().includes("FIAT")?2:7,y.ROUND_DOWN)),b=A(()=>r().unclaimedAmount==="0"),M=()=>x(null,null,function*(){const e=Date.now();try{T.emit("wallet-add-amount",{key:e});const l=L.convertCurrency(new y(r().unclaimedAmount),r().currency,R).toDecimalPlaces(7,y.ROUND_DOWN).toString();j(d("Tacoback Credited. __amount__ BC has been added to your balance.",{amount:l})),yield z().get("/activity/taco-back-he/bonus/claim/"),T.emit("wallet-add-amount",{currencyName:r().currency,unclaimedAmount:r().unclaimedAmount,key:e}),de()}catch(l){j(l),T.emit("wallet-add-amount",{key:e,error:!0})}}),N=(()=>{var e=re(),l=e.firstChild;return i(l,()=>d("Tacoback Available")),$(()=>I(e,E("flex items-center"))),e})(),D=(()=>{var e=le(),l=e.firstChild,F=l.firstChild,H=l.nextSibling;return i(H,h),$(()=>V(F,"src",q.coinIcon(o()))),e})(),B=()=>u(g,{when:a==="button",get fallback(){return u(ne,{get class(){return E("absolute bottom-2 right-3 top-5 m-auto !w-18 sm:bottom-1 sm:top-4")},type:"brand",get disabled(){return b()},onClick:M,get children(){return k(()=>!!b())()?d("Claimed"):d("Claim")}})},get children(){return u(Z,{type:"brand",size:"s",class:"w-1/2 min-w-15 sm:w-fit",get disabled(){return b()},onClick:M,get children(){var e=oe();return i(e,(()=>{var l=k(()=>!!b());return()=>l()?d("Claimed"):d("Claim")})()),e}})}});return G(K(()=>ue(),e=>{e&&(+e.unclaimedAmount>0&&s(!0),e.end===!1&&p(!0),c(e))})),u(Q,{fallback:null,get children(){return u(g,{get when(){return k(()=>!!(_.login&&f()))()&&!0},get children(){return u(g,{when:a!=="notification",get fallback(){return[(()=>{var e=ce(),l=e.firstChild;return i(l,N,null),i(l,D,null),i(e,u(g,{get when(){return t()},get children(){return B()}}),null),$(()=>I(e,E("relative w-full"))),e})(),ie()]},get children(){var e=se(),l=e.firstChild;return i(l,N,null),i(l,D,null),i(e,u(g,{get when(){return t()},get children(){return B()}}),null),e}})}})}})}
1export{ge as default};

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.