PageSourceSearch

https://wildroll.com/build/assets/SettingsPage-CmItWB4i.js

js wildroll.com collected 2026-10-07 22:06:37 UTC 13,773 bytes, 1 lines download raw bytes

1import{x as $,j as e,i as P,hB as re,hC as ae,e as ne,f as oe,eJ as ie,r as b,L as ce,b as le,o as Q,B as J,v as R,aF as D,a as H,d as O,d8 as ue,ho as X,hp as Z,hu as M,hD as de,Q as E,hm as fe,g6 as ge,hs as xe,ht as me,hE as he,eP as pe,hr as be,fr as je,k as _e,n as W,hF as ye,cT as ee,A as q,G as we,h as F,hG as ve,gL as Ne,dV as Se,ak as Pe,hH as K,H as U,e0 as V,b4 as ke,hj as Le,hI as Ae,gY as Re,O as Te,hJ as Be}from"./main-YLCDy-WP.js";import{u as te,P as G,A as se,r as Ce,a as Ee,b as Ge}from"./ProvablyFairPage-CLFVxCrO.js";const ze=()=>"Active Balance",qe=()=>"Aktives Gleichgewicht",Oe=()=>"Équilibre actif",Me=()=>"Saldo attivo",Fe=()=>"Aktiv saldo",$e=()=>"Aktif Denge",De=()=>"التوازن النشط",He=()=>"Активный баланс",Ke=()=>"Keseimbangan Aktif",Ue=()=>"Baki Aktif",Ve=(a={},s={})=>{const t=s.locale??$();return t==="en"?ze():t==="de"?qe():t==="fr"?Oe():t==="it"?Me():t==="no"?Fe():t==="tr"?$e():t==="ar"?De():t==="ru"?He():t==="id"?Ke():t==="ms"?Ue():"active_balance"},Ye=()=>"Action required",Ie=()=>"Handlungsbedarf erforderlich",Qe=()=>"Action requise",Je=()=>"Azione richiesta",Xe=()=>"Handling kreves",Ze=()=>"Gerekli işlem",We=()=>"الإجراء المطلوب",et=()=>"Требуется действие",tt=()=>"Tindakan yang diperlukan",st=()=>"Tindakan diperlukan",rt=(a={},s={})=>{const t=s.locale??$();return t==="en"?Ye():t==="de"?Ie():t==="fr"?Qe():t==="it"?Je():t==="no"?Xe():t==="tr"?Ze():t==="ar"?We():t==="ru"?et():t==="id"?tt():t==="ms"?st():"action_required"};function at({...a}){return e.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...a})}function nt({className:a,...s}){return e.jsx("ol",{"data-slot":"breadcrumb-list",className:P("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",a),...s})}function ot({className:a,...s}){return e.jsx("li",{"data-slot":"breadcrumb-item",className:P("inline-flex items-center gap-1.5",a),...s})}function it({asChild:a,className:s,...t}){const n=a?re:"a";return e.jsx(n,{"data-slot":"breadcrumb-link",className:P("hover:text-foreground transition-colors",s),...t})}function Y({className:a,...s}){return e.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:P("text-foreground font-normal",a),...s})}function ct({children:a,className:s,...t}){return e.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:P("[&>svg]:size-3.5",s),...t,children:a??"–"})}const lt=["gameCategorySlug","categorySlug"],ut={gameCategorySlug:ie,categorySlug:oe};function dt({variant:a}){var f;const{pageTitle:s}=te(),t=ae(),n=ne(),r=a==null?void 0:a.autoBuild;let o;if(a&&!r)o=a.items;else{o=[...t.flatMap(d=>{const l=d.handle;return l!=null&&l.label?[{label:typeof l.label=="function"?l.label(d):l.label,to:l.to??void 0}]:[]})];const u=lt.find(d=>n[d]),i=u?n[u]:null;i&&u&&o.push({label:ut[u](i),to:void 0}),s&&!i&&((f=o[o.length-1])==null?void 0:f.label)!==s&&o.push({label:s,to:void 0})}return o.length?e.jsx(at,{className:"text-muted-foreground",children:e.jsx(nt,{children:o.map((c,u)=>{const i=u===o.length-1,d=!c.to;return e.jsxs(b.Fragment,{children:[e.jsx(ot,{className:P(i&&"flex-1 overflow-hidden"),children:i?e.jsx(Y,{className:"truncate",children:c.label}):d?e.jsx(Y,{className:"opacity-50",children:c.label}):e.jsx(it,{asChild:!0,children:e.jsx(ce,{to:c.to??"/",children:c.label})})}),i?null:e.jsx(ct,{})]},`${c.label}-${u}`)})})}):null}function z({title:a,Icon:s,description:t,className:n,navigationItems:r,withoutBreadcrumb:o=!1,breadcrumbVariant:f,rightSide:c,hidden:u,showGoBackButton:i=!1,goBackTo:d,showHeaderTitle:l=!0,...y}){const m=le(),p=Q(),{setPageTitle:j}=te(),x=r==null?void 0:r.find(v=>m.pathname===v.url||m.pathname.startsWith(`${v.url}/`)),h=a??(x==null?void 0:x.title)??"",k=s??(x==null?void 0:x.icon);return b.useEffect(()=>{j(h||null)},[h,j]),u?null:e.jsxs("div",{className:"flex flex-col-reverse md:flex-row md:items-center md:justify-between gap-y-1 max-w-7xl w-full mx-auto",children:[h&&l&&e.jsxs("div",{className:P("flex flex-wrap-reverse flex-row items-center justify-between gap-4",n),...y,children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex flex-row gap-4 items-center",children:[i&&e.jsx(J,{size:"xl",variant:"ghost",className:"border border-muted-light-foreground h-auto hidden md:flex",onClick:()=>p(d||-1),children:e.jsx(R.chevronLeft,{className:"size-4"})}),e.jsxs("h3",{className:"font-semibold text-xl md:text-2xl text-foreground flex flex-row items-center gap-2",children:[k&&e.jsx(k,{className:"size-6 lg:size-8 shrink-0"})," ",h]})]}),!!t&&e.jsx("p",{className:"text-muted-foreground",children:t})]}),c&&c]}),!o&&e.jsx(dt,{variant:f})]})}function yt(){const[a]=D(),s=a.get("ctx");return{context:s,isTelegramContext:s==="tma"}}function ft(){const{isAuthenticated:a}=H(),[s]=D(),t={search:s.get("s")},{data:n,isLoading:r}=O({queryKey:[E.recentGames,t],queryFn:()=>de(t),enabled:a,staleTime:0,refetchOnMount:"always"});return e.jsxs(G,{children:[e.jsx(z,{showGoBackButton:!0,title:ue()}),a?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex items-center gap-2 mb-9",children:e.jsx(X,{})}),e.jsx(Z,{games:n,isLoadingGames:r,placeholderCount:M.pageSize})]}):e.jsx(se,{})]})}const wt=Object.freeze(Object.defineProperty({__proto__:null,default:ft},Symbol.toStringTag,{value:"Module"}));function gt(){var N,B;const[a,s]=D(),t=a.get("s")??void 0,n=a.get("sort")??void 0,[r,o]=b.useState([]),{data:f}=O({queryKey:[E.gameProviders],queryFn:()=>pe()}),[c,u]=b.useState(null),{data:i,fetchNextPage:d,hasNextPage:l,isFetchingNextPage:y,isLoading:m}=fe({queryKey:[E.games,t,r,n],queryFn:({pageParam:g})=>he({search:t,provider:r,sort:n,pageIndex:g,pageSize:M.pageSize}),initialPageParam:0,getNextPageParam:g=>{const w=g.meta.currentPage,S=g.meta.lastPage;return w>=S?void 0:w}}),p=(i==null?void 0:i.pages.flatMap(g=>g.data))??[],j=((N=i==null?void 0:i.pages[0])==null?void 0:N.meta.total)??0,x=!m&&!!((B=i==null?void 0:i.pages)!=null&&B.length)&&!j,{data:h,isLoading:k}=O({queryKey:[E.recommendedGames],queryFn:()=>be({pageSize:8}),enabled:x}),v=x&&!!(h!=null&&h.length),L=v?h:p,A=()=>{d()},T=(g,w)=>{const S=new URLSearchParams(a);w?S.set(g,w):S.delete(g),s(S,{replace:!0})},_=g=>{o(w=>w.includes(g)?w.filter(S=>S!==g):[...w,g])};return e.jsxs(G,{children:[e.jsx(z,{showGoBackButton:!0,title:ge()}),e.jsxs("div",{className:"flex items-center gap-2 mb-9",children:[e.jsx(X,{}),e.jsx(xe,{providerList:f,openDropdown:c,setOpenDropdown:u,providers:r,setProviders:o,toggleProvider:_}),e.jsx(me,{openDropdown:c,setOpenDropdown:u,sort:n,onSortChange:g=>T("sort",g)})]}),e.jsx(Z,{games:L,isLoadingGames:m||x&&k,hasMore:l,showNoResults:v,title:v?Ce():void 0,onLoadMore:A,isLoadingMore:y,totalGames:j,placeholderCount:M.pageSize})]})}const vt=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),I=async a=>{const s=a?{currency:a}:{};return je.get("/api/v1/sportsbook/config",{params:s,withCredentials:!0}).then(t=>t.data).catch(t=>{var n,r,o,f,c;throw{status:((n=t==null?void 0:t.response)==null?void 0:n.status)||500,message:((o=(r=t==null?void 0:t.response)==null?void 0:r.data)==null?void 0:o.message)||"Failed to fetch sportsbook config",errors:((c=(f=t==null?void 0:t.response)==null?void 0:f.data)==null?void 0:c.errors)||null}})},xt="https://wildroll.sptpub.com/bt-renderer.min.js";function mt(a){return new Promise((s,t)=>{if(document.querySelector(`script[src="${a}"]`)){s();return}const n=document.createElement("script");n.src=a,n.onload=()=>s(),n.onerror=()=>t(new Error(`Failed to load script: ${a}`)),document.head.appendChild(n)})}function ht(){const a=H();Q();const s=_e(),{showModal:t}=W(),n=b.useRef(null),{selectedCurrencySetting:r}=ye(),{isAuthenticated:o,isLoading:f}=a,[c,u]=b.useState(null),[i,d]=b.useState(!1),[l,y]=b.useState(0),m=$(),p=b.useRef(null),j=b.useRef(null),x=m===Ne?"/sports":`/${m}
1/sports`,h=[o?"auth:1":"auth:0",`cur:${r??""}`,`loc:${m}`,`mob:${s?1:0}`,`refresh:${l}`].join("|"),k=async()=>{try{return(await I(r)).token??null}catch{return null}};b.useEffect(()=>{mt(xt).then(()=>{d(!0),u(null)}).catch(()=>u("Failed to load sportsbook. Please refresh the page."))},[]),b.useEffect(()=>{var A,T;if(!window.BTRenderer||!n.current||f||!i||j.current===h)return;j.current=h;let L=!1;try{(T=(A=p.current)==null?void 0:A.kill)==null||T.call(A)}catch{}return p.current=null,I(o?r:void 0).then(_=>{if(L||!n.current||!window.BTRenderer)return;const N=new window.BTRenderer;N.initialize({brand_id:_.brand_id,token:_.token,lang:m,target:n.current,basename:x,betSlipOffsetRight:s?0:100,betSlipOffsetBottom:s?70:0,betSlipOffsetTop:72,stickyTop:0,themeName:"wildroll",onTokenExpired:k,onLogin:()=>t(q,{tab:"login"}),onRegister:()=>t(q,{tab:"register"}),onRecharge:()=>{t(o?ee:q,o?void 0:{tab:"login"})},onSessionRefresh:()=>{y(B=>B+1)}}),p.current=N,u(null)}).catch(_=>{L||(console.error("Failed to initialize sportsbook renderer:",_),u("Failed to initialize sportsbook. Please refresh the page."))}),()=>{var _,N;L=!0;try{(N=(_=p.current)==null?void 0:_.kill)==null||N.call(_)}catch{}p.current=null}},[h,j,s,i,f,o,r]);const v=f||!i;return e.jsxs(G,{withoutArticle:!0,className:"max-w-none py-2 lg:py-4 lg:px-8",innerClassName:"gap-0",children:[e.jsx(z,{title:we(),hidden:!0,withoutBreadcrumb:!0}),c&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-destructive",children:[e.jsx(R.alertTriangle,{className:"w-12 h-12 mb-4"}),e.jsx("p",{className:"text-lg",children:c})]}),v&&!c&&e.jsx("div",{className:"flex flex-col items-center justify-center",children:e.jsx(F,{className:"w-full min-h-[calc(100svh-80px)]"})}),!c&&e.jsx(ve,{className:"md:hidden rounded-none border-x-0"}),e.jsx("div",{id:"betby",ref:n,className:"min-h-[calc(100svh-80px)]",style:{display:c?"none":"block"}})]})}const Nt=Object.freeze(Object.defineProperty({__proto__:null,default:ht},Symbol.toStringTag,{value:"Module"}));function pt(){const{pageContent:a,isLoadingContent:s}=Ee();return e.jsx(Ge,{pageContent:a,isLoadingContent:s})}const St=Object.freeze(Object.defineProperty({__proto__:null,default:pt},Symbol.toStringTag,{value:"Module"})),C={DEPOSIT:"deposit",WITHDRAW:"withdraw"};function bt(){var c,u,i,d;const a=H(),{user:s,isAuthenticated:t}=a,{isLoadingBalances:n,selectedWalletItem:r}=Se({auth:a}),{showModal:o}=W(),f=l=>y=>{switch(y.preventDefault(),l){case C.DEPOSIT:o(ee);break;case C.WITHDRAW:o(Be);break;default:throw new Error("Invalid modal type")}};return Pe(s==null?void 0:s.username,{initialsOnly:!0}),t?e.jsxs(G,{innerClassName:"gap-10 lg:gap-15",children:[e.jsxs("div",{className:"flex flex-col gap-y-3",children:[e.jsx(z,{navigationItems:K,showHeaderTitle:!1}),e.jsxs("div",{className:"flex flex-col gap-y-6",children:[e.jsxs("div",{className:"bg-muted flex flex-col gap-y-6 lg:flex-row gap-x-4 justify-between items-center w-full rounded-2xl p-4 lg:p-6",children:[e.jsx("div",{className:"flex flex-row items-center gap-x-4 lg:gap-x-6 w-full",children:e.jsxs("div",{className:"flex flex-1 flex-col gap-y-1",children:[e.jsx("h3",{className:"text-xs text-muted-foreground font-semibold leading-4",children:Ve()}),n?e.jsxs("div",{className:"flex flex-row gap-x-3",children:[e.jsx(F,{className:"w-6 h-6 bg-muted-light-foreground rounded-full shrink-0"}),e.jsx(F,{className:"w-full h-6 bg-muted-light-foreground rounded-lg"})]}):e.jsxs("div",{className:"flex flex-row items-center gap-x-3 font-title text-white",children:[!(r!=null&&r.representationCurrency)&&e.jsx(e.Fragment,{children:e.jsx("span",{children:(r==null?void 0:r.currency.Icon)&&e.jsx(r.currency.Icon,{className:"size-6"})})}),e.jsxs("span",{className:"text-responsive-lg font-semibold leading-7 lg:leading-10",children:[(c=r==null?void 0:r.representationCurrency)==null?void 0:c.symbol," ",U(r==null?void 0:r.representationBalance,(u=r==null?void 0:r.representationCurrency)==null?void 0:u.code,!0)||U(r==null?void 0:r.balance,(i=r==null?void 0:r.currency)==null?void 0:i.code,!0)," ",!(r!=null&&r.representationCurrency)&&((d=r==null?void 0:r.currency)==null?void 0:d.code)
1]})]})]})}),e.jsxs("div",{className:"flex flex-row justify-center items-center gap-3 w-full lg:w-auto",children:[e.jsxs(V,{to:".",activeVariant:"none",onClick:f(C.DEPOSIT),variant:"brand",shadow:"brand",size:"xl",className:"text-base text-white font-semibold gap-x-1.5 leading-5",children:[e.jsx(R.arrowDown,{className:"size-5"}),ke()]}),e.jsxs(V,{to:".",activeVariant:"none",onClick:f(C.WITHDRAW),variant:"default",size:"xl",shadow:"inset",className:"text-base text-white font-semibold gap-x-1.5 leading-5",children:[e.jsx(R.arrowUp,{className:"size-5"}),Le()]})]})]}),e.jsx("div",{className:"flex flex-row items-center gap-x-2.5 overflow-x-auto no-scrollbar",children:K.map(l=>{const y=!Ae({path:"/settings/*"},l.url),m=l.url==="/settings/verification",p=s&&(s==null?void 0:s.required_kyc_level)>(s==null?void 0:s.kyc_level),j=m&&p;return e.jsx(Re,{to:l.url,children:({isActive:x})=>e.jsxs(J,{variant:"dark",size:"sm",activeVariant:"light","data-active":x,className:"p-2 rounded-md gap-x-2",children:[l.icon&&e.jsx(l.icon,{className:"text-brand size-6"}),l.title,y&&e.jsx(R.externalLink,{className:"size-4 text-muted-foreground shrink-0"}),!!l.badge&&!m&&e.jsx("span",{className:"text-tiny bg-brand text-white px-0.75 py-0.25 rounded-sm whitespace-nowrap",children:l.badge}),j&&e.jsx("span",{className:"text-tiny bg-brand text-white px-0.75 py-0.25 rounded-sm whitespace-nowrap",children:rt()})]})},l.title)})})]})]}),e.jsx(Te,{})]}):e.jsx(se,{})}const Pt=Object.freeze(Object.defineProperty({__proto__:null,default:bt},Symbol.toStringTag,{value:"Module"}));export{vt as A,St as B,z as P,wt as R,Nt as S,Pt as a,yt as u};

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.