PageSourceSearch

https://lobby.hyperlucky.com/DCV8WZwY.js

js hyperlucky.com collected 2026-10-07 00:43:50 UTC 2,819 bytes, 2 lines download raw bytes

1import{a4 as j,bc as S,c5 as D,b,a1 as T,R as p,h as v,c6 as w,K as B,j as e,p as k,O as N,D as O,c7 as P,aH as E,c8 as R,Q as F,U as M,V as q,c9 as z,s as c,ca as U,ay as G}from"./BzwVwSBE.js";import{W as H}from"./CyUqhs60.js";const Q="/assets/wallet-low-balance-CLABfbQk.webp",Y=(l,o,r,i)=>{const d=l.filter(s=>s.id!==o);return(i!=null?d.filter(s=>s.displayBalance!=null&&s.displayBalance>i):d.filter(s=>s.balance>r)).sort((s,m)=>(m.displayBalance??0)-(s.displayBalance??0))},V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BalanceWarningPopup_mq01U0BF"}}],loc:{source:{body:""}}},K=c("div")({name:"Container",class:"chuwz1w",propsAsIs:!1}),X=c("div")({name:"ContentInner",class:"c81cemz",propsAsIs:!1}),J=c("img")({name:"WarningImage",class:"w14oppjw",propsAsIs:!1}),Z=c("p")({name:"Message",class:"mig5hgq",propsAsIs:!1}),$=c("p")({name:"SelectWalletTitle",class:"s1tygsuw",propsAsIs:!1}),ee=c("div")({name:"WalletItems",class:"w1lqduvw",propsAsIs:!1}),ne=({lastBetAmount:l,lastBetDisplayAmount:o})=>{const r=j(),{open:i}=S(),{onClose:d}=D(),{availableWallets:y=[],activeWallet:s}=b(),m=T(),L=p.useMemo(()=>({query:V,variables:{}}),[]),[C]=v(L),a=C.data?.root,f=p.useMemo(()=>Y(y,s?.id,l,o),[y,s?.id,l,o]),t=f.length>0,[u,W]=p.useState(null);p.useEffect(()=>{W(null)},[s?.id]);const{changeActiveWallet:I}=w({onError:m,onCompleted:()=>{B.success(a?.WALLET_CHANGED_SUCCESSFULLY||"Wallet changed successfully"),d(!1)}});if(C.fetching)return e.jsx(k,{});const x=t?a?.LOW_BALANCE_WITH_WALLET_MESSAGE:a?.LOW_BALANCE_MESSAGE,h=()=>{i("balance-warning-deposit-clicked")},_=async()=>{u&&await I({currency:G(u.currency)})};return e.jsx(K,{children:e.jsxs(N,{title:a?.LOW_BALANCE_TITLE||"Low balance",children:[e.jsx(O,{spacing:"small",children:e.jsxs(X,{children:[e.jsx(J,{src:Q,alt:"","aria-hidden":"true"}),e.jsx(Z,{children:x}),t&&e.jsxs(e.Fragment,{children:[e.jsx($,{children:a?.SELECT_WALLET||"Select wallet"}),e.jsx(ee,{children:f.map(n=>{const A=P(n.currency),g=U(n.currency);return e.jsx(H,{cryptoIcon:g?e.jsx(g.Icon,{size:24}):null,ticker:A,cryptoNetwork:g?.name??A,onClick:()=>W(n),state:u?.id===n.id?"active":"default",cryptoAmount:E({amount:n.balance,currency:n.currency,locales:r}),fiatAmount:E({amount:n.displayBalance,currency:n.displayCurrency??void 0,locales:r})},n.id)})})]}),e.jsx(R,{children:a?.CRYPTO_CONVERSION_DISCLAIMER||"Crypto conversion isn’t always instant and may differ from the in-game balance."})]})}),e.jsx(F,{children:e.jsxs(M,{"data-layout":"rows",children:[e.jsx(q,{type:"button",onClick:t?_:h,disabled:t&&!u,children:t?a?.CASHIER_CHANGE_WALLET_TEXT||"Change wallet":a?.DEPOSIT||"Deposit"}),t&&e.jsx(z,{type:"button",onClick:h,children:a?.DEPOSIT||"Deposit"})]})})]})})};export{ne as default};
2//# sourceMappingURL=DCV8WZwY.js.map

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.