1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e59f4098-6bbf-49e0-a11f-f81561204089",t._sentryDebugIdIdentifier="sentry-dbid-e59f4098-6bbf-49e0-a11f-f81561204089")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80348],{13368:(t,e,n)=>{t.exports=n.p+"static/media/deposit4.29a0a8ea.svg"},23817:(t,e,n)=>{t.exports=n.p+"static/media/profile2.5a760e32.svg"},28672:(t,e,n)=>{t.exports=n.p+"static/media/withdraw.d1d3e84a.svg"},70068:(t,e,n)=>{t.exports=n.p+"static/media/transaction.bfdfa8ca.svg"},76200:(t,e,n)=>{t.exports=n.p+"static/media/balance.afa62794.svg"},80317:(t,e,n)=>{n.d(e,{A:()=>b});var a=n(54568);n(7620);var s=n(82175),l=n(79748),o=n(42613),i=n(86029),c=n(35694),r=n(76200),d=n(13368),u=n(28672),x=n(70068),h=n(74292),p=n(23817);function b(t){let{closeModal:e,activeKey:n}=t,{t:b}=(0,i.Bd)(),g=(0,o.wA)();(0,l.useRouter)();let f=t=>{e(),g(t(!0))},m=[{key:"balance",icon:r,labelKey:"accountSettings.balance.pageTitle",onClick:()=>f(c.gp)},{key:"deposit",icon:d,labelKey:"accountSettings.balance.deposit",onClick:()=>f(c.yM)},{key:"withdraw",icon:u,labelKey:"accountSettings.balance.withdraw",onClick:()=>f(c.mP)},{key:"transactions",icon:x,labelKey:"accountSettings.transactions.title",onClick:()=>f(c.lM)},{key:"history",icon:h,labelKey:"accountSettings.wallet.betHistory",onClick:()=>f(c.Ld)},{key:"settings",icon:p,labelKey:"accountSettings.globalSettings.accountInfo",onClick:()=>f(c.ZC)}];return(0,a.jsx)("div",{className:"overflow-x-auto scrollbar-none",children:(0,a.jsx)("div",{className:"flex items-center gap-2 w-max py-1",children:m.map(t=>{let e=t.key===n;return(0,a.jsxs)("button",{type:"button",onClick:e?void 0:t.onClick,"aria-current":e?"page":void 0,className:"flex shrink-0 items-center gap-2 h-9 px-3 rounded-full whitespace-nowrap border transition-colors duration-150 cursor-pointer ".concat(e?"wallet-v2-tab-active border-transparent":"bg-surface-deep border-white/[0.07] hover:bg-white/5"),children:[(0,a.jsx)(s.default,{src:t.icon,alt:"",width:18,height:18,className:"w-5 h-5"}),(0,a.jsx)("span",{className:"font-jost text-body font-semibold ".concat(e?"text-content-bright":""),children:b(t.labelKey)})]},t.key)})})})}},80348:(t,e,n)=>{n.r(e),n.d(e,{default:()=>A});var a=n(54568);n(7620);var s=n(82175),l=n(42613),o=n(37103),i=n(86029),c=n(92253),r=n(80317),d=n(50128),u=n(79265),x=n(35694),h=n(6031),p=n(18582),b=n(93170),g=n(36983),f=n(97964),m=n(70068),y=n(44168),w=n(98749);let v={pending:"bg-yellow-500/20 text-yellow-300",approved:"bg-blue-500/20 text-blue-300",processing:"bg-blue-500/20 text-blue-300",completed:"bg-green-500/20 text-green-300",success:"bg-green-500/20 text-green-300",cancelled:"bg-white/10 text-white/60",failed:"bg-red-500/20 text-red-300"},j=t=>{let e=String(t||"").toLowerCase();return"bonus"===e||"grant"===e?"bonus":e.startsWith("with")?"withdraw":"deposit"},N=y.nj,S=t=>{let{status:e,rowType:n,held:s=!1,addressExpired:l=!1}=t,{t:o}=(0,i.Bd)(),c=(0,h.QN)(e,n),r=s?"bg-highlight/20 text-highlight":v[c]||"bg-white/10 text-white/80",d=s?o("accountSettings.transactions.heldPill"):l?o("accountSettings.transactions.addressExpiredPill"):(0,h.gC)(o,e,n);return(0,a.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-caption font-semibold font-jost ".concat(r),children:d})},k=t=>{var e,n;let{row:s,onCancel:l,cancellingId:o}=t,{t:c,i18n:r}=(0,i.Bd)(),{approxOrNull:d}=(0,w.A)(),u=j(null==s?void 0:s.type),x=N(null==s?void 0:s.amount),f=d(null==s?void 0:s.amountUsd),m=(null==s||null==(e=s.currency)?void 0:e.symbol)||"",v=null==s||null==(n=s.currency)?void 0:n.icon,k="deposit"===u||"bonus"===u,C="withdraw"===j(null==s?void 0:s.type)&&"pending"===String((null==s?void 0:s.status)||"").toLowerCase(),A="bonus"===u&&(null==s?void 0:s.unit)==="count",_="bonus"===u&&(null==s?void 0:s.method)?(0,h.iV)(c,s.method):null,K="bonus"===u?_:(null==s?void 0:s.method)?(0,h.r_)(c,s.method,u):null,M=(0,p.Xs)(s),D=(0,b.a)(s);return(0,a.jsxs)("div",{className:"flex flex-col gap-2 w-full border-b border-white/[0.07] py-2.5 last:border-b-0",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[v?(0,a.jsx)("img",{src:v,alt:m,className:"w-5 h-5 rounded-full object-contain shrink-0"}):(0,a.jsx)("span",{className:"flex items-center justify-center w-5 h-5 rounded-full bg-surface-3 shrink-0","aria-hidden":!0}),(0,a.jsxs)("span",{className:"flex flex-col min-w-0",children:[(0,a.jsx)("span",{className:"font-jost text-body font-semibold text-content-strong truncate",children:c("accountSettings.transactions.rowType.".concat(u))}),K?(0,a.jsx)("span",{className:"font-jost text-caption text-white/50 truncate",children:K}):null]})]}),(0,a.jsxs)("span",{className:"flex flex-col items-end shrink-0",children:[(0,a.jsx)("span",{className:"font-jost text-body font-semibold ".concat(k?"text-green-300":"text-white"),children:A?null!=x?c(1===Math.abs(Number(s.amount))?"accountSettings.transactions.freeSpinAmount":"accountSettings.transactions.freeSpinsAmount",{count:x}):"â":null!=x?(0,y.S$)("".concat(k?"+":"-").concat(x),m):"â"}),null==f||A?null:(0,a.jsx)("span",{className:"font-jost text-caption text-white/50",children:f}),M?(0,a.jsx)("span",{className:"font-jost text-caption text-white/50 text-right",children:c("accountSettings.transactions.providerFeeLine",M)}):null,D?(0,a.jsx)("span",{className:"font-jost text-caption text-highlight text-right",children:c("accountSettings.deposit.heldAmount",D)}):null,(null==D?void 0:D.shortfall)?(0,a.jsx)("span",{className:"font-jost text-caption text-white/60 text-right",children:c("accountSettings.deposit.heldHint",D)}):null]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"font-jost text-caption text-content-secondary whitespace-nowrap",children:(0,h.p9)(null==s?void 0:s.createdAt,r.language)}),(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[C?(0,a.jsx)("button",{type:"button",disabled:o===(null==s?void 0:s._id),onClick:()=>null==l?void 0:l(s),className:"font-jost text-caption font-semibold px-3 py-1 rounded-control border border-white/20 text-red-300 hover:border-red-400/40 hover:bg-red-500/10 transition-colors duration-150 disabled:opacity-50 cursor-pointer",children:c(o===(null==s?void 0:s._id)?"accountSettings.transactions.cancelling":"accountSettings.transactions.cancel")}):null,(0,a.jsx)(S,{status:null==s?void 0:s.status,rowType:u,held:!!D,addressExpired:(0,g.GK)(s)})]})]})]})},C=t=>{let{closeModal:e}=t,{t:n}=(0,i.Bd)(),o=(0,l.wA)(),{type:h,onTypeChange:p,currencyId:b,onCurrencyChange:g,range:f,onRangeChange:y,currencies:w,results:v,count:j,loading:N,error:S,partialBonuses:C,truncated:A,reach
1ableCount:_,page:K,setPage:M,totalPages:D,requestCancel:I,cancelTarget:B,confirmCancel:E,dismissCancel:L,cancellingId:T,refetch:P}=(0,u.qw)(),z=[{value:"all",label:n("accountSettings.transactions.type.all")},{value:"deposit",label:n("accountSettings.transactions.type.deposit")},{value:"withdraw",label:n("accountSettings.transactions.type.withdraw")},{value:"bonus",label:n("accountSettings.transactions.type.bonus")}],G=[{value:null,label:n("accountSettings.transactions.filterAllAssets")},...w.map(t=>({value:null==t?void 0:t._id,label:"".concat((null==t?void 0:t.symbol)||"").concat((null==t?void 0:t.network)?" (".concat(t.network,")"):""),iconUrl:null==t?void 0:t.icon}))],H=[{value:"all",label:n("accountSettings.transactions.time.all")},{value:"24h",label:n("accountSettings.transactions.time.24h")},{value:"7d",label:n("accountSettings.transactions.time.7d")},{value:"30d",label:n("accountSettings.transactions.time.30d")}];return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(r.A,{closeModal:e,activeKey:"transactions"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex w-full gap-3 h-[2.75rem]",children:[(0,a.jsx)(c.A,{options:z,value:h,onChange:p,widthClass:"w-1/2"}),(0,a.jsx)(c.A,{options:G,value:b,onChange:g,widthClass:"w-1/2"})]}),(0,a.jsx)("div",{className:"flex w-full h-[2.75rem]",children:(0,a.jsx)(c.A,{options:H,value:f,onChange:y,widthClass:"w-full"})})]}),C?(0,a.jsx)("div",{className:"rounded-control border border-yellow-500/30 bg-yellow-500/10 px-4 py-2 font-open-sans text-caption text-yellow-200",children:n("accountSettings.transactions.partialBonusesNote")}):null,A?(0,a.jsx)("div",{className:"rounded-control border border-white/20 bg-white/[0.06] px-4 py-2 font-open-sans text-caption text-content-strong",children:n("accountSettings.transactions.truncatedNote",{shown:_,total:j})}):null,(0,a.jsx)("div",{className:"flex flex-col rounded-card bg-surface-2 border border-white/[0.07] px-4",children:N?(0,a.jsx)("div",{className:"flex flex-col gap-2 py-4",children:Array.from({length:5}).map((t,e)=>(0,a.jsx)("div",{className:"h-[3rem] w-full rounded-control tournament-skeleton"},e))}):S?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 py-10 text-center",children:[(0,a.jsx)("span",{className:"font-jost text-body font-semibold text-content-strong",children:n("accountSettings.transactions.error")}),(0,a.jsx)("button",{type:"button",onClick:P,className:"btn-action h-8 px-4 text-caption",children:n("accountSettings.transactions.retry")})]}):0===v.length?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-10 text-center",children:[(0,a.jsx)("span",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-surface-3 mb-2","aria-hidden":!0,children:(0,a.jsx)(s.default,{src:m,alt:"",width:26,height:26,className:"w-7 h-7 opacity-70"})}),(0,a.jsx)("span",{className:"font-jost text-body font-semibold text-content-strong",children:n("accountSettings.transactions.empty")}),(0,a.jsx)("span",{className:"font-jost text-caption text-content-secondary",children:n("accountSettings.transactions.emptySubtitle")}),(0,a.jsx)("button",{type:"button",onClick:()=>{e(),o((0,x.yM)(!0))},className:"btn-action h-8 px-4 text-caption mt-2",children:n("accountSettings.balance.deposit")})]}):(0,a.jsxs)("div",{className:"flex flex-col",children:[v.map(t=>(0,a.jsx)(k,{row:t,onCancel:I,cancellingId:T},null==t?void 0:t._id)),j>0?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3 py-3",children:[(0,a.jsx)("button",{type:"button",disabled:K<=1,onClick:()=>M(t=>Math.max(1,t-1)),className:"flex items-center justify-center w-9 h-9 rounded-control border border-white/20 hover:border-accent-glow/40 hover:bg-white/5 transition-colors duration-150 disabled:opacity-40 font-jost text-body font-semibold","aria-label":n("accountSettings.history.pagination.prev"),children:"â¹"}),(0,a.jsx)("span",{className:"font-jost text-body text-white/70",children:n("accountSettings.history.pagination.page",{page:K,total:D})}),(0,a.jsx)("button",{type:"button",disabled:K>=D,onClick:()=>M(t=>Math.min(D,t+1)),className:"flex items-center justify-center w-9 h-9 rounded-control border border-white/20 hover:border-accent-glow/40 hover:bg-white/5 transition-colors duration-150 disabled:opacity-40 font-jost text-body font-semibold","aria-label":n("accountSettings.history.pagination.next"),children:"âº"})]}):null]})}),(0,a.jsx)(d.A,{row:B,onConfirm:E,onDismiss:L})]})};function A(t){let{open:e,closeModal:n}=t,{t:l}=(0,i.Bd)();return(0,a.jsxs)(o.lG,{open:e,onClose:n,className:"relative z-[1000]",children:[(0,a.jsx)(o.Xi,{transition:!0,className:"fixed inset-0 bg-black/50 backdrop-blur-sm transition-opacity data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in"}),(0,a.jsx)("div",{role:"presentation",className:"fixed inset-0 z-[1000] flex items-end justify-center lg:items-center lg:px-4 lg:py-6 overflow-y-auto overscroll-y-contain",onMouseDown:t=>t.stopPropagation(),children:(0,a.jsx)(o.Lj,{transition:!0,className:"relative flex w-full justify-center transform transition-all lg:max-w-[48.25rem] data-closed:translate-y-full data-closed:opacity-0 lg:data-closed:translate-y-0 lg:data-closed:scale-95 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in",children:(0,a.jsxs)("div",{className:"account-sheet-v1 wallet-v2 wallet-v2-mobile w-full rounded-t-2xl rounded-b-none lg:rou
1nded-2xl max-h-[92dvh] overflow-y-auto p-5 lg:p-6",children:[(0,a.jsx)("div",{className:"lg:hidden mx-auto mb-3 h-1 w-10 rounded-full bg-white/25","aria-hidden":!0}),(0,a.jsxs)("div",{className:"relative flex h-10 items-center justify-center",children:[(0,a.jsx)("span",{className:"font-jost text-title font-semibold text-white",children:l("accountSettings.transactions.title")}),(0,a.jsx)("button",{type:"button",onClick:n,className:"absolute right-0 flex items-center justify-center cursor-pointer w-10 h-10 rounded-control bg-surface-3 border-[0.714px] border-edge transition-colors duration-150 hover:bg-surface-hover",children:(0,a.jsx)(s.default,{src:f,alt:l("aria.closeDialog"),width:15,height:15})})]}),(0,a.jsx)("div",{className:"h-4","aria-hidden":!0}),e?(0,a.jsx)(C,{closeModal:n}):null]})})})]})}}}]);
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.