PageSourceSearch

https://zbahis770.com/assets/20261009-201932-index-CDsZ40ls.js

js zbahis770.com collected 2026-10-10 02:45:16 UTC 112,459 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/20261009-201932-index-Cw8uLHXj.js","assets/20261009-201932-vendor-react-DzY6WoAQ.js","assets/20261009-201932-vendor-motion-DXsI0vlH.js","assets/20261009-201932-index-DsjWYDxh.js","assets/20261009-201932-vendor-router-B_gkKZh4.js","assets/20261009-201932-vendor-redux-CPgwxLyR.js","assets/20261009-201932-vendor-i18n-qIl5llvk.js","assets/20261009-201932-vendor-mui-Swn62Cst.js","assets/20261009-201932-vendor-dates-C3iSVezX.js","assets/20261009-201932-vendor-swiper-Cdr2d1bJ.js","assets/20261009-201932-vendor-swiper-7xtdLFPF.css","assets/20261009-201932-index-CUKPADZs.css","assets/20261009-201932-index-CWDZ0Gi8.js","assets/20261009-201932-calendar-week-BM5hHwuY.js","assets/20261009-201932-index-DsqxoF88.js","assets/20261009-201932-auth-Bd8ycBSJ.js","assets/20261009-201932-index-_rdyz1g6.js","assets/20261009-201932-use-site-config-D57xiIPo.js","assets/20261009-201932-format-currency-BoKiigRc.js","assets/20261009-201932-clock-D39dBgYj.js","assets/20261009-201932-info-1-DafNQG7I.js","assets/20261009-201932-get-currency-icon-BhE0VAPH.js","assets/20261009-201932-use-tester-page-visibility-DR2Li3gs.js","assets/20261009-201932-ticket-D-oTPxRw.js","assets/20261009-201932-calendar-3-CRcGJEAE.js","assets/20261009-201932-index-DkgGHgy2.js","assets/20261009-201932-format-date-for-ui-CtFiOnQh.js","assets/20261009-201932-index-DcHAY4RI.js","assets/20261009-201932-copy-sArxI9hk.js","assets/20261009-201932-tick-icon-7zcem6pK.js","assets/20261009-201932-refresh-2-D7OnRXt7.js","assets/20261009-201932-use-is-below-breakpoint-BlwQixr9.js","assets/20261009-201932-DateRangeField-BXxSbbFz.js","assets/20261009-201932-chevron-arrow-down-1-q9ng4e03.js","assets/20261009-201932-helpers-zk96foMJ.js","assets/20261009-201932-decimal-CM8iy9ld.js","assets/20261009-201932-SkeletonTableLoader-DVmlwMIR.js","assets/20261009-201932-chevron-arrow-down-BEDsLASE.js","assets/20261009-201932-rc-table-rtl-BCMTD3gR.js","assets/20261009-201932-rc-table-rtl-MzOkTNnz.css","assets/20261009-201932-arrow-left-CpG068Nq.js","assets/20261009-201932-index-AftPzbmO.js"])))=>i.map(i=>d[i]);
2import{u as L,T as ce,_ as pt}from"./20261009-201932-vendor-i18n-qIl5llvk.js";import{j as e,r as a}from"./20261009-201932-vendor-react-DzY6WoAQ.js";import{u as X,A as ie,m as S,L as es}from"./20261009-201932-vendor-motion-DXsI0vlH.js";import{b as ts,u as Ye}from"./20261009-201932-vendor-redux-CPgwxLyR.js";import{C as Ze}from"./20261009-201932-index-CWDZ0Gi8.js";import{S as ss,C as as}from"./20261009-201932-calendar-week-BM5hHwuY.js";import{u as ns}from"./20261009-201932-auth-Bd8ycBSJ.js";import{u as rs}from"./20261009-201932-use-site-config-D57xiIPo.js";import{c as u,P as xt,ae as ht,cZ as is,c_ as ls,l as os,c$ as Qe,d0 as cs,d1 as ds,d2 as ms,g as us,k as ps}from"./20261009-201932-index-DsjWYDxh.js";import{f as ft}from"./20261009-201932-format-currency-BoKiigRc.js";import{S as xs}from"./20261009-201932-clock-D39dBgYj.js";import{S as hs}from"./20261009-201932-info-1-DafNQG7I.js";import{g as qe}from"./20261009-201932-get-currency-icon-BhE0VAPH.js";import{S as z,B as V,Q as fs,R as gs,U as ys,k as bs,M as _s,j as js,N as ws}from"./20261009-201932-vendor-mui-Swn62Cst.js";import{b as gt,N as vs}from"./20261009-201932-vendor-router-B_gkKZh4.js";import{u as Ns}from"./20261009-201932-use-tester-page-visibility-DR2Li3gs.js";import{S as Ve,a as Ue}from"./20261009-201932-vendor-swiper-Cdr2d1bJ.js";import{S as me}from"./20261009-201932-ticket-D-oTPxRw.js";import{S as yt}from"./20261009-201932-calendar-3-CRcGJEAE.js";import{E as bt}from"./20261009-201932-index-DkgGHgy2.js";import{f as we}from"./20261009-201932-format-date-for-ui-CtFiOnQh.js";import{C as Cs}from"./20261009-201932-index-DcHAY4RI.js";import{S as ks}from"./20261009-201932-refresh-2-D7OnRXt7.js";import{u as Es}from"./20261009-201932-use-is-below-breakpoint-BlwQixr9.js";import{d as Q}from"./20261009-201932-vendor-dates-C3iSVezX.js";import{D as Ss}from"./20261009-201932-DateRangeField-BXxSbbFz.js";import{S as Fs}from"./20261009-201932-chevron-arrow-down-1-q9ng4e03.js";import{F as ye,a as Ls}from"./20261009-201932-helpers-zk96foMJ.js";
2import"./20261009-201932-index-_rdyz1g6.js";import"./20261009-201932-decimal-CM8iy9ld.js";import{S as As}from"./20261009-201932-SkeletonTableLoader-DVmlwMIR.js";import{S as Ts}from"./20261009-201932-chevron-arrow-down-BEDsLASE.js";import{I as Rs}from"./20261009-201932-rc-table-rtl-BCMTD3gR.js";import{S as Bs}from"./20261009-201932-arrow-left-CpG068Nq.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="1c03e60c-76fe-4d82-ac73-af8994b0d7d1",t._sentryDebugIdIdentifier="sentry-dbid-1c03e60c-76fe-4d82-ac73-af8994b0d7d1")}catch{}})();const P="rounded-lg bg-background-paper!",Ms={768:{slidesPerView:2,spaceBetween:20},1120:{slidesPerView:3,spaceBetween:20}},w=({className:t,width:s,height:n=12})=>e.jsx(z,{variant:"rectangular",width:s,height:n,className:u(P,t)}),Ne=()=>e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[e.jsx(w,{width:132,height:28,className:"rounded-md!"}),e.jsx(w,{width:88,height:28,className:"bg-(--mui-palette-primary-main)!/20 rounded-md!"})]}),Ds=()=>e.jsx("div",{className:"-mx-4 px-4 md:mx-0 md:px-0",children:e.jsxs("div",{className:"flex w-max items-center gap-2 md:w-full md:justify-between",children:[e.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:3}).map((t,s)=>e.jsx(w,{width:s===0?92:76,height:42,className:"rounded-xl!"},s))}),e.jsx("span",{"aria-hidden":!0,className:"mx-0.5 hidden h-7 shrink-0 items-center self-center md:flex",children:e.jsx("span",{className:"h-full w-px border-s border-dotted border-shade-dark-11/70"})}),e.jsx(w,{width:68,height:42,className:"rounded-xl!"})]})}),_t=()=>e.jsxs("div",{className:"flex overflow-hidden rounded-xl border border-shade-dark-11 bg-shade-dark-2",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-3 p-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx(w,{width:72,height:18,className:"rounded-md!"}),e.jsx(w,{width:56,height:22,className:"rounded-full!"})]}),e.jsx("div",{className:"flex items-center gap-1.5 [direction:ltr]!",children:Array.from({length:6}).map((t,s)=>e.jsx(z,{variant:"circular",width:28,height:28,className:P},s))}),e.jsx(w,{width:"55%",height:12,className:"rounded-md!"})]}),e.jsxs("div",{className:"relative w-16 shrink-0 border-s border-dashed border-shade-dark-11/40 bg-background/40 p-2",children:[e.jsx(w,{width:"100%",height:10,className:"rounded-sm!"}),e.jsx(w,{width:"80%",height:10,className:"mt-2 rounded-sm!"})]})]}),Is=()=>e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col space-y-2.5 md:flex-row md:items-center md:justify-between",children:[e.jsx(Ne,{}),e.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border border-shade-dark-11 bg-shade-dark-2/45 px-4 py-2.5 md:mt-0",children:[e.jsx(z,{variant:"circular",width:16,height:16,className:P}),e.jsx(w,{width:72,height:10,className:"rounded-md!"}),e.jsx(w,{width:96,height:14,className:"rounded-md!"})]})]}),e.jsx("div",{className:"space-y-3 lg:hidden",children:Array.from({length:2}).map((t,s)=>e.jsx(_t,{},s))}),e.jsxs("div",{className:"hidden overflow-hidden rounded-lg border border-shade-dark-11 lg:block",children:[e.jsx("div",{className:"flex items-center gap-4 border-b border-(--mui-palette-border-secondary) bg-(--mui-palette-dark-secondary) px-6 py-4",children:Array.from({length:5}).map((t,s)=>e.jsx(w,{width:s===2?96:72,height:12,className:"rounded-md!"},s))}),Array.from({length:3}).map((t,s)=>e.jsx("div",{className:"flex items-center gap-4 border-b border-shade-dark-11/30 px-6 py-4 last:border-b-0",children:Array.from({length:5}).map((n,r)=>e.jsx(w,{width:r===2?120:72,height:14,className:"rounded-md!"},r))},s))]})]}),zs=()=>e.jsxs("section",{className:"space-y-4.5",children:[e.jsx(Ne,{}),e.jsx("div",{className:"grid gap-3.5 md:grid-cols-3",children:Array.from({length:3}).map((t,s)=>e.jsxs("article",{className:"flex flex-col gap-2.5 rounded-xl border border-shade-dark-11 bg-shade-dark-2 p-6",children:[e.jsx(w,{width:"70%",height:18,className:"rounded-md!"}),e.jsx(w,{width:"100%",height:12,className:"rounded-md!"}),e.jsx(w,{width:"92%",height:12,className:"rounded-md!"}),e.jsx(w,{width:"80%",height:12,className:"rounded-md!"})]},s))})]}),Os=()=>e.jsxs("section",{className:"space-y-4",children:[e.jsx(Ne,{}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[Array.from({length:3}).map((t,s)=>e.jsx(w,{width:s===0?112:96,height:40,className:"rounded-xl!"},s)),e.jsx(w,{width:120,height:40,className:"rounded-xl!"})]}),e.jsx("div",{className:"rounded-2xl border border-shade-dark-11 bg-shade-dark-2 p-4 sm:p-5",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(w,{width:128,height:10,className:"rounded-md!"}),e.jsx("div",{className:"flex items-center gap-1.5 [direction:ltr]!",children:Array.from({length:6}).map((t,s)=>e.jsx(z,{variant:"circular",width:32,height:32,className:P},s))})]}),e.jsx(w,{width:140,height:36,className:"rounded-full!"})]})}),e.jsxs("div",{className:"hidden overflow-hidden rounded-lg border border-shade-dark-11 lg:block",children:[e.jsx("div",{className:"flex items-center gap-4 border-b border-(--mui-palette-border-secondary) bg-(--mui-palette-dark-secondary) px-6 py-4",children:Array.from({length:6}).map((t,s)=>e.jsx(w,{width:80,height:12,className:"rounded-md!"},s))}),Array.from({length:4}).map((t,s)=>e.jsx("div",{className:"flex items-center gap-4 border-b border-shade-dark-11/30 px-6 py-4 last:border-b-0",children:Array.from({length:6}).map((n,r)=>e.jsx(w,{width:r===3?112:72,height:14,className:"rounded-md!"},r))},s))]}),e.jsx("div",{className:"space-y-3 lg:hidden",children:Array.from({length:2}).map((t,s)=>e.jsx(_t,{},s))})]}),Ps=()=>e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx(Ne,{}),e.jsxs("div",{className:"hidden items-center gap-2 sm:flex",children:[e.jsx(z,{variant:"circular",width:36,height:36,className:P}),e.jsx(z,{variant:"circular",width:36,height:36,className:P})]})]}),e.jsx("div",{className:"flex gap-3 overflow-hidden",children:Array.from({length:4}).map((t,s)=>e.jsxs("article",{className:"w-[min(100%,240px)] shrink-0 rounded-2xl border border-shade-dark-11 bg-shade-dark-2 p-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(z,{variant:"circular",width:24,height:24,className:P}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsx(w,{width:"75%",height:14,className:"rounded-md!"}),e.jsx(w,{width:"45%",height:12,className:"rounded-md!"})]})]}),e.jsx(w,{width:"100%",height:12,className:"mt-3 rounded-md!"}),e.jsx("div",{className:"mt-3 flex items-center gap-1.5 [direction:ltr]!",children:Array.from({length:6}).map((n,r)=>e.jsx(z,{variant:"circular",width:24,height:24,className:P},r))}),e.jsx(w,{width:"60%",height:16,className:"bg-(--mui-palette-primary-main)!/20 mt-3 rounded-md!"})]},s))})]}),Vs=({attachNavTop:t=!1})=>e.jsx("article",{className:u("flex h-full w-full flex-col overflow-hidden rounded-2xl border border-shade-dark-11 bg-shade-dark-2",t&&"max-md:rounded-t-none max-md:border-t-0"),children:e.jsxs("div",{className:"flex flex-1 flex-col gap-3 p-5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx(w,{width:72,height:24,className:"rounded-full!"}),e.jsx(w,{width:64,height:24,className:"rounded-lg!"})]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-shade-dark-11 bg-shade-dark-2/70",children:e.jsxs("div",{className:"flex items-start gap-3.5 p-3.5",children:[e.jsx(z,{variant:"rectangular",width:48,height:48,className:u(P,"shrink-0 rounded-2xl!")}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-2 pt-0.5",children:[e.jsx(w,{width:"48%",height:10,className:"rounded-md!"}),e.jsx(w,{width:72,height:22,className:"rounded-md!"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[e.jsx(w,{width:88,height:24,className:"rounded-full!"}),e.jsx(w,{width:112,height:24,className:"rounded-full!"})]})]})]})}),e.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-shade-dark-11 bg-shade-dark-2/70 py-4 ps-5 pe-4",children:[e.jsx("span",{"aria-hidden":!0,
2className:"absolute inset-y-3 inset-s-0 w-1 rounded-full bg-shade-dark-11/40"}),e.jsxs("div",{className:"flex items-center gap-3.5",children:[e.jsx(z,{variant:"rectangular",width:44,height:44,className:u(P,"shrink-0 rounded-xl!")}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[e.jsx(w,{width:96,height:10,className:"rounded-md!"}),e.jsx(w,{width:"55%",height:28,className:"rounded-md!"})]})]})]}),e.jsx(z,{variant:"rectangular",height:1,className:u(P,"w-full rounded-none! opacity-60")}),e.jsxs("div",{className:"flex flex-1 flex-col gap-3",children:[e.jsxs("div",{className:"rounded-xl border border-(--mui-palette-primary-main)/20 bg-background-paper/70 px-4 py-3.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(z,{variant:"circular",width:8,height:8,className:P}),e.jsx(w,{width:112,height:10,className:"rounded-md!"})]}),e.jsx("div",{className:"mt-3 flex items-start justify-center gap-1.5 [direction:ltr]!",children:Array.from({length:4}).map((s,n)=>e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx(w,{width:28,height:24,className:"rounded-md!"}),e.jsx(w,{width:12,height:8,className:"rounded-sm!"})]},n))})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(z,{variant:"rectangular",height:44,className:"bg-(--mui-palette-primary-main)!/20 rounded-full! sm:h-12!"}),e.jsx("div",{className:"flex justify-center px-1",children:e.jsx(w,{width:"70%",height:10,className:"rounded-md!"})}),e.jsx(z,{variant:"rectangular",height:1,className:u(P,"w-full rounded-none! opacity-60")}),e.jsxs("div",{className:"flex min-h-14 flex-col items-center justify-center gap-2 py-1",children:[e.jsx(w,{width:128,height:10,className:"rounded-md!"}),e.jsx("div",{className:"flex items-center gap-1.5 [direction:ltr]!",children:Array.from({length:6}).map((s,n)=>e.jsx(z,{variant:"circular",width:32,height:32,className:P},n))})]})]})]})]})}),Us=()=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("section",{"aria-busy":"true","aria-label":"Loading lottery types",className:"relative w-full",children:[e.jsxs("div",{className:"relative md:hidden",children:[e.jsxs("div",{className:"relative z-10 flex items-center justify-between gap-3 rounded-t-2xl border border-b-0 border-shade-dark-11 bg-background-paper/90 px-2.5 py-2.5",children:[e.jsx(z,{variant:"circular",width:26,height:26,className:P}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(w,{width:20,height:6,className:"rounded-full!"}),e.jsx(w,{width:6,height:6,className:"rounded-full!"}),e.jsx(w,{width:6,height:6,className:"rounded-full!"})]}),e.jsx(z,{variant:"circular",width:26,height:26,className:P})]}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full z-20 h-6 bg-linear-to-b from-background-paper/95 via-background-paper/45 to-transparent"})]}),e.jsxs("div",{className:"relative -mt-px md:mt-0",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-4 bg-linear-to-b from-background-paper/80 to-transparent md:hidden"}),e.jsx(Ve,{spaceBetween:16,slidesPerView:1,breakpoints:Ms,watchOverflow:!0,className:"app-swiper lottery-overview-swiper w-full overflow-visible! [&_.swiper-slide]:box-border [&_.swiper-slide]:h-auto! [&_.swiper-wrapper]:items-stretch",children:Array.from({length:3}).map((t,s)=>e.jsx(Ue,{className:"h-auto!",children:e.jsx("div",{className:"h-full w-full",children:e.jsx(Vs,{attachNavTop:!0})})},s))})]})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsx(Ds,{}),e.jsxs("div",{className:"space-y-8",children:[e.jsx(Is,{}),e.jsx(zs,{}),e.jsx(Os,{}),e.jsx(Ps,{})]})]})]}),Ks=t=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,viewBox:"0 0 15 17",fill:"currentColor",style:{color:"#69E444"},...t},a.createElement("path",{d:"M13.4825 3.77479C12.1719 4.38876 11.2885 4.31486 10.5264 3.53034C9.84507 2.83678 9.80464 1.93856 10.434 0.761782C10.1741 0.477536 9.93163 0.204657 9.74688 0C6.7619 2.92206 3.84613 5.78157 0.976562 8.58992C1.19597 8.85713 1.43269 9.14133 1.6521 9.40855C2.86459 8.74908 3.71333 8.77183 4.46391 9.45404C5.26647 10.1874 5.35307 11.097 4.73528 12.4329C5.00087 12.6774 5.26647 12.9275 5.47433 13.1208C8.40742 10.2329 11.3116 7.37904 14.2274 4.51383C14.0022 4.28644 13.7423 4.03062 13.4825 3.77479ZM5.33575 9.22095C5.19141 9.23801 4.87962 8.93667 4.86808 8.76045C4.85653 8.56148 5.09903 8.35114 5.35307 7.9532C5.61289 8.34545 5.8785 8.56717 5.84962 8.74908C5.82652 8.93667 5.53784 9.19252 5.33575 9.22095ZM7.11408 8.75477C6.94088 7.72579 6.38077 7.16869 5.24914 7.08907C5.73418 6.69682 6.19024 6.49216 6.36352 6.14541C6.53095 5.82137 6.3981 5.3552 6.47896 4.86061C7.22374 5.53712 8.00903 5.67356 8.93856 5.24719C8.45354 6.18521 8.62682 6.91285 9.35428 7.6235C8.35543 7.54388 7.58177 7.78266 7.11408 8.75477ZM9.80464 5.11075C9.55058 4.7924 9.25039 4.57637 9.26772 4.40014C9.29074 4.19548 9.60256 4.03062 9.78731 3.84301C9.96629 4.0363 10.2492 4.20116 10.2897 4.41719C10.3243 4.57637 10.0414 4.7924 9.80464 5.11075Z",fill:"currentColor"}),a.createElement("path",{d:"M4.59014 16.0196C4.37651 15.7979 4.12246 15.5364 3.88574 15.292C4.52085 13.9218 4.45734 13.1089 3.67211 12.3926C2.86379 11.6536 2.02081 11.6137 0.8141 12.2618C0.565829 12.0004 0.317559 11.7332 0 11.3977C0.635117 10.8292 1.24135 10.1982 1.93421 9.67523C2.74253 9.05557 3.66634 9.1408 4.33609 9.78321C4.97698 10.3972 5.00007 11.3011 4.3996 12.1539C4.36496 12.2051 4.33032 12.2618 4.23794 12.4154C4.65943 12.7792 5.104 13.1544 5.57168 13.5523C7.86961 11.267 10.2022 8.94183 12.581 6.57693C12.9332 6.90663 13.1815 7.13972 13.424 7.36713C10.4678 10.2608 7.54632 13.1203 4.59014 16.0196Z",fill:"currentColor"})),Gs=(t,s,n)=>{if(!s||t.length===0)return null;const r=s.phone_number_verified===!0,i=s.email_validated===!0,l=s.kyc_validated===!0,c=!!n?.isPhoneProviderEnabled,m=!!n?.isEmailProviderEnabled;return t.includes("phone")&&c&&!r?"phone":t.includes("email")&&m&&!i?"email":t.includes("kyc")&&!l?"kyc":null},Hs=t=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("g",{clipPath:"url(#clip0_lottery_calendar_daily)"}
2,a.createElement("path",{d:"M14.4 1.6H13.6V0.8C13.6 0.32 13.28 0 12.8 0C12.32 0 12 0.32 12 0.8V1.6H4V0.8C4 0.32 3.68 0 3.2 0C2.72 0 2.4 0.32 2.4 0.8V1.6H0.8C0.4 1.6 0 1.92 0 2.4V13.6C0 14.08 0.4 14.4 0.8 14.4H5.68C5.12 13.44 4.8 12.32 4.8 11.2C4.8 7.68 7.68 4.8 11.2 4.8C12.72 4.8 14.08 5.36 15.2 6.24V2.4C15.2 2 14.8 1.6 14.4 1.6Z",fill:"currentColor"}),a.createElement("path",{d:"M11.2004 6.39844C8.56039 6.39844 6.40039 8.55844 6.40039 11.1984C6.40039 13.8384 8.56039 15.9984 11.2004 15.9984C13.8404 15.9984 16.0004 13.8384 16.0004 11.1984C16.0004 8.55844 13.8404 6.39844 11.2004 6.39844ZM12.8004 11.9984H11.2004C10.7204 11.9984 10.4004 11.6784 10.4004 11.1984V8.79844C10.4004 8.31844 10.7204 7.99844 11.2004 7.99844C11.6804 7.99844 12.0004 8.31844 12.0004 8.79844V10.3984H12.8004C13.2804 10.3984 13.6004 10.7184 13.6004 11.1984C13.6004 11.6784 13.2804 11.9984 12.8004 11.9984Z",fill:"currentColor"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_lottery_calendar_daily"},a.createElement("rect",{width:16,height:16,fill:"white"})))),ee=6,jt=Ks,wt=hs,ue={quick:"lottery_type_quick",daily:"lottery_type_daily",weekly:"lottery_type_weekly"},vt={scheduled:"lottery_status_scheduled",selling:"lottery_status_selling",closed:"lottery_status_closed",drawn:"lottery_status_drawn",settled:"lottery_status_settled"},Nt={active:"lottery_ticket_active",won:"won",lost:"lost",refunded:"lottery_ticket_refunded"},Ct=t=>t==="drawn"||t==="settled",kt={headerDelay:.42,tabPanelDelay:.88},Et=t=>(t??0)/100,q=(t,s,n)=>ft(Et(t),{currency:s,hideFraction:n?.hideFraction??n?.compact===!0}),ve=t=>t.trim().toUpperCase(),Ke=t=>{if(t==null||t==="")return NaN;if(typeof t=="object"&&t!==null&&"$numberDecimal"in t)return Number.parseFloat(String(t.$numberDecimal).replace(/,/g,""));const s=Number.parseFloat(String(t).replace(/,/g,""));return Number.isFinite(s)?s:NaN},Ge=(t,s)=>{const n=ve(s);for(const r of Object.keys(t)){const i=t[r];if(ve(i.currency)===n)return i}},$s=(t,s,n)=>{const r=s.trim();if(!r||!Number.isFinite(n))return!1;const i=Ge(t,r);if(!i)return!1;const l=Ke(i.balance);return Number.isFinite(l)?l>=n:!1},Ys=t=>{const s={};for(const n of t){const r=n.currency?.trim();r&&(s[r]={_id:n.id??"",balance:n.balance,currency:r,created_at:n.created_at??"",is_locked:!1,locked_at:null,player_id:"",type:n.type==="bonus"?"bonus":"main",updated_at:"",v:0})}return s},Zs=(t,s)=>{if(!s)return{state:"none"};const n=Ge(t,s);if(!n)return{state:"no_wallet",currency:s};const r=Ke(n.balance);return Number.isFinite(r)?{state:"balance",currency:s,formatted:ft(r,{currency:s})}:{state:"no_wallet",currency:s}},br=t=>{if(!t?.trim())return!1;const s=t.trim().toLowerCase();return s.includes("insufficient")||s.includes("not enough balance")||s.includes("insufficient_balance")},St=t=>new RegExp(`^\\d{${ee}}$`).test(t),Ft=t=>{const s=t?.trim();return s&&St(s)?s:null},Qs=()=>Math.floor(Math.random()*10),We=()=>Array.from({length:ee},Qs).join(""),_r=t=>{let s=We(),n=0;for(;t.has(s)&&n<200;)s=We(),n+=1;return s},jr=t=>`${t}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,Lt=({number:t,matchedPositions:s,matchCount:n})=>{if(s?.length===t.length)return s;const r=n??0;return Array.from({length:t.length},(i,l)=>l<r)},qs=t=>{const n=Lt(t).findIndex(r=>!r);return n===-1?t.number.length:n},Ws=t=>{const{number:s,winningNumber:n,hasResult:r=!0}=t;if(!r)return Array.from({length:s.length},()=>"pending");const i=Lt(t),l=qs(t);return s.split("").map((c,m)=>i[m]&&m<l?"matched":m===l?"break":m>l&&(i[m]||n&&n[m]===c)?"ghost":"miss")},He=t=>t?.round??t?.next_round??null,Xs=t=>{const s=[];return t?.require_phone_verification&&s.push("phone"),t?.require_email_verification&&s.push("email"),t?.require_kyc_verification&&s.push("kyc"),s},Ce=t=>Math.round(Number(t?.config?.ticket_price??0)*100),Js=(t,s)=>t?.remaining_limit!=null?t.remaining_limit:s?.config?.per_user_limit??0,At=(t,s,n)=>{const i=Ce(s)>0,l=!!(t?.selling&&s?.status==="selling"&&i),c=n&&l&&Js(t,s)<=0;return{canBuy:l,hasValidPrice:i,isLimitReached:c,isBuyDisabled:!l||c,canPurchase:l&&!c}},ea=(t,s,n=Date.now())=>{if(!s)return{target:null,phase:"none"};const r=i=>!!i&&new Date(i).getTime()>n;return s.status==="selling"?r(s.sales_close_at)?{target:s.sales_close_at,phase:"sales_closing"}:r(s.ends_at)?{target:s.ends_at,phase:"draw"}:{target:null,phase:"none"}:s.status==="scheduled"?r(s.starts_at)?{target:s.starts_at,phase:"round_start"}:r(s.sales_close_at)?{target:s.sales_close_at,phase:"round_start"}:{target:null,phase:"none"}:s.status==="closed"&&r(s.ends_at)?{target:s.ends_at,phase:"draw"}:r(t?.next_round?.starts_at)?{target:t?.next_round?.starts_at??null,phase:"round_start"}:{target:null,phase:"none"}},ta=/number|conflict|taken|unavailable|duplicate/i,wr=t=>{const s=new Set,n=(i,l)=>{if(!(l>4)){if(typeof i=="string"){St(i)&&s.add(i);return}
2Array.isArray(i)&&i.forEach(c=>n(c,l+1))}},r=(i,l)=>{l>4||!i||typeof i!="object"||Object.entries(i).forEach(([c,m])=>{c!=="received"&&(ta.test(c)&&n(m,l),r(m,l+1))})};return r(t,0),[...s]},Tt=(t,s)=>s?{duration:0,delay:0}:{type:"spring",stiffness:380,damping:32,mass:.82,delay:t},sa={hidden:{},visible:{}},aa=t=>({hidden:{opacity:t?1:0,y:t?0:18,scale:t?1:.96},visible:{opacity:1,y:0,scale:1,transition:Tt(kt.headerDelay,t)}}),na=t=>({hidden:{opacity:t?1:0,y:t?0:24,filter:t?"blur(0px)":"blur(8px)",scale:t?1:.98},visible:{opacity:1,y:0,filter:"blur(0px)",scale:1,transition:Tt(kt.tabPanelDelay,t)}}),ra=t=>t?{duration:0}:{type:"spring",stiffness:420,damping:34,mass:.78},be={selling:{dot:"bg-(--mui-palette-success-main)",badge:"border border-(--mui-palette-success-main)/35 bg-(--mui-palette-success-main)/10 text-(--mui-palette-success-light)"},scheduled:{dot:"bg-(--mui-palette-primary-main)",badge:"border border-(--mui-palette-primary-main)/35 bg-(--mui-palette-primary-main)/10 text-(--mui-palette-primary-main)"},closed:{dot:"bg-(--mui-palette-warning-main)",badge:"border border-(--mui-palette-warning-main)/35 bg-(--mui-palette-warning-main)/10 text-(--mui-palette-warning-main)"},drawn:{dot:"bg-(--mui-palette-info-main)",badge:"border border-(--mui-palette-info-main)/35 bg-(--mui-palette-info-main)/10 text-(--mui-palette-info-light)"},settled:{dot:"bg-shade-light-4",badge:"border border-shade-dark-11 bg-shade-dark-3 text-shade-light-6"}},ia={quick:xs,daily:Hs,weekly:ss},$e=t=>ia[t]??jt;function la(t,s){return!t?.trim()||!s.trim()?!1:ve(t)===ve(s)}function oa(t,s){const n=Ge(t,s);if(!n)return 0;const r=Ke(n.balance);return Number.isFinite(r)?r:0}function ca(t,s,n,r){return la(n,s)?$s(t,s,r)?"none":"insufficient":"unsupported_currency"}const da=t=>t?{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:{duration:.15}}:{initial:{opacity:0,scale:.96,y:12},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:-12},transition:{duration:.38,ease:[.22,1,.36,1]}},ma=(t,s)=>({hidden:{},visible:{transition:{staggerChildren:t?0:.08,delayChildren:t?0:.1+s*.05}}}),de=t=>({hidden:{opacity:t?1:0,y:t?0:18,filter:t?"blur(0px)":"blur(6px)"},visible:{opacity:1,y:0,filter:"blur(0px)",transition:{duration:t?0:.5,ease:[.22,1,.36,1]}}}),ua=t=>t?{}:{whileHover:{y:-6,scale:1.012,transition:{type:"spring",stiffness:420,damping:28,mass:.82}},whileTap:{scale:.992,transition:{duration:.12}}},pa=t=>t?{initial:!1,animate:{},transition:{duration:0}}:{initial:{opacity:0,y:16,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{type:"spring",stiffness:400,damping:32,delay:.52}},xa=t=>({hidden:{},visible:{transition:{staggerChildren:t?0:.11,delayChildren:t?0:.06}}}),ha=t=>({hidden:{opacity:t?1:0,y:t?0:24,filter:t?"blur(0px)":"blur(8px)"},visible:{opacity:1,y:0,filter:"blur(0px)",transition:{type:"spring",stiffness:360,damping:30,mass:.85}}}),fa=({open:t,onClose:s,onDeposit:n,issue:r,roundCurrency:i,selectedCurrency:l,requiredFormatted:c,walletDisplay:m})=>{const{t:o}=L(),d=()=>{n(),s()};return e.jsx(xt,{open:t,onClose:s,modalType:"simple",classes:{content:"bg-background-paper p-0! md:p-5!"},content:e.jsxs("div",{className:"flex flex-col gap-4 px-1 text-start",children:[e.jsx("h3",{className:"text-center text-lg font-extrabold text-shade-light-9",children:o("shop_low_balance_modal_title")}),r==="unsupported_currency"?e.jsxs("div",{className:"rounded-xl border border-(--mui-palette-warning-main)/35 bg-(--mui-palette-warning-main)/10 px-4 py-3.5",children:[e.jsx("p",{className:"text-sm leading-6 text-shade-light-9",children:o("lottery_unsupported_currency_message",{selected:l??"—",supported:i})}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-[11px] font-bold tracking-[0.12em] text-shade-light-6 uppercase",children:o("lottery_supported_currency")}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-shade-dark-11 bg-shade-dark-2 px-2.5 py-1 text-xs font-bold text-shade-light-9",children:[qe(i,{className:"size-4 shrink-0"}),i]})]})]}):null,e.jsxs("div",{className:"rounded-xl border border-shade-dark-11 bg-shade-dark-7/50 p-4",children:[e.jsx("p",{className:"text-[11px] font-bold tracking-[0.12em] text-shade-light-6 uppercase",children:o("lottery_required_amount_label")}),e.jsx("div",{className:"mt-2 flex flex-wrap items-baseline gap-x-3 gap-y-1",children:e.jsx("span",{className:"text-2xl font-extrabold tracking-tight text-(--mui-palette-primary-main)",children:c})}),i&&m.state!=="none"?e.jsxs("div",{className:"mt-4 border-t border-shade-dark-11/70 pt-4",children:[e.jsx("p",{className:"text-[11px] font-bold tracking-[0.12em] text-shade-light-6 uppercase",children:o("shop_low_balance_your_balance_title")}),m.state==="no_wallet"?e.jsx("p",{className:"mt-1.5 text-sm text-shade-light-6",children:o("shop_low_balance_no_wallet",{currency:m.currency})}):e.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2",children:[qe(m.currency,{className:"size-5 shrink-0"}),e.jsx("span",{className:"text-base font-extrabold text-shade-light-9",children:m.formatted}),e.jsxs("span",{className:"text-xs font-semibold text-shade-light-6",children:["(",m.currency,")"]})]})]}):null]}),e.jsx("p",{className:"text-center text-sm text-shade-light-6",children:o(r==="unsupported_currency"?"lottery_unsupported_currency_deposit_hint":"lottery_low_balance_deposit_hint")}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row-reverse sm:justify-center",children:[e.jsx(V,{variant:"contained",color:"primary",className:"w-full sm:min-w-32",onClick:d,children:o("deposit")}),e.jsx(V,{variant:"outlined",color:"primary",className:"w-full sm:min-w-32",onClick:s,children:o("close")})]})]})})},ga="/profile/security/upload-documents",ya=t=>t==="phone"?"lottery_verification_type_phone":t==="email"?"lottery_verification_type_email":"lottery_verification_type_kyc",ba=({open:t,onClose:s,blockReason:n})=>{const{t:r}=L(),i=gt(),l=()=>{if(s(),n==="kyc"){i(ga);return}i("/profile/details")};return e.jsx(xt,{open:t,onClose:s,modalType:"simple",classes:{content:"bg-background-paper p-0! md:p-5!"},content:e.jsxs("div",{className:"flex flex-col gap-4 px-1 text-start",children:[e.jsx("h3",{className:"text-center text-lg font-extrabold text-shade-light-9",children:r("lottery_verification_modal_title")}),e.jsx("p",{className:"text-center text-sm leading-6 text-shade-light-6",children:r("lottery_verification_modal_body",{type:r(ya(n)),status:r(n==="kyc"?"completed":"verified")})}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row-reverse sm:justify-center",children:[e.jsx(V,{variant:"contained",color:"primary",className:"w-full sm:min-w-32",onClick:l,children:r("verify_now")}),e.jsx(V,{variant:"outlined",color:"primary",className:"w-full sm:min-w-32",onClick:s,children:r("close")})]})]})})},_a=5e3,ja=6e4,wa=["lotteryOverview","lotteryTickets","lotteryWinners"],va=()=>{const{t}=L(),s=ts(),{selectedCurrency:n}=ht(),r=a.useRef(void 0),[i,l]=a.useState(!1),[c,m]=a.useState(null),[o,d]=a.use
2State("tickets"),{disabled:p,comingSoon:f,accessDenied:x,isPending:_}=Ns("lottery"),{data:y,isLoading:g,isError:k,refetch:E}=is(void 0,{pollingInterval:i?_a:0,refetchOnMountOrArgChange:!0,refetchOnReconnect:!0,skip:p}),v=y?.data,j=a.useMemo(()=>v?.tabs??[],[v?.tabs]),b=j.length>0,h=a.useMemo(()=>c&&j.some(C=>C.lottery_type===c)?c:j.find(C=>C.selling)?.lottery_type??j[0]?.lottery_type??"quick",[c,j]);a.useEffect(()=>{b&&m(h)},[b,h]),a.useEffect(()=>{if(p||!n)return;const C=r.current;if(C===void 0){r.current=n;return}C!==n&&(r.current=n,s(ls.util.invalidateTags([...wa])))},[p,s,n]);const A=a.useMemo(()=>j.map(C=>`${C.lottery_type}:${C.round?.id??"-"}:${C.round?.status??"-"}`).join("| "),[j]),R=a.useRef(null),O=a.useCallback(()=>{i||(R.current=A,l(!0),E())},[i,E,A]);a.useEffect(()=>{if(!i)return;if(R.current!==null&&A!==R.current){l(!1);return}const C=setTimeout(()=>l(!1),ja);return()=>clearTimeout(C)},[i,A]);const[U,K]=a.useState(0);a.useEffect(()=>{if(!v?.server_time)return;const C=new Date(v.server_time).getTime();Number.isNaN(C)||K(Date.now()-C)},[v?.server_time]);const D=a.useCallback(()=>Date.now()-U,[U]),F=a.useCallback(C=>{if(!C)return null;const G=new Date(C).getTime();return Number.isNaN(G)?null:new Date(G+U).toISOString()},[U]),B=a.useCallback(C=>j.find(G=>G.lottery_type===C),[j]),T=a.useCallback(C=>{const G=C?B(C):void 0;return{buyTab:G,buyRound:G?He(G):null}},[B]),I=o==="rules",W=a.useMemo(()=>j.map(C=>{const G=$e(C.lottery_type);return{value:C.lottery_type,label:t(ue[C.lottery_type]),icon:a.createElement(G,{"aria-hidden":!0,className:"size-4 shrink-0"})}}),[j,t]),J=a.useMemo(()=>{const C=wt;return[{value:"rules",label:t("rules"),icon:a.createElement(C,{"aria-hidden":!0,className:"size-4 shrink-0"})}]},[t]),$=a.useCallback(C=>{m(C),d("tickets")},[]),se=a.useCallback(()=>d("rules"),[]),le=a.useCallback(C=>{d("tickets"),C&&m(C)},[]);return{tabs:j,isLoading:g,isError:k,isInitialLoading:g&&!b||_,hasTabs:b,showUnavailable:!g&&(k||!b),lotteryType:h,contentTab:o,isRulesTab:I,selectedLotteryFilter:I?"":h,selectedRulesFilter:I?"rules":"",lotteryTypeFilterOptions:W,rulesFilterOptions:J,selectLotteryTypeTab:$,openRulesTab:se,openTicketsTab:le,getBuyContext:T,handleRoundExpired:O,serverNow:D,toClientTime:F,disabled:p,comingSoon:f,accessDenied:x}},Na="/profile/financial/deposit",Ca=({currency:t,requiredCents:s})=>{const n=gt(),{selectedCurrency:r,balances:i}=ht(),l=a.useMemo(()=>Ys(i),[i]),c=a.useCallback((x,_)=>ca(l,x,r,Et(_)),[l,r]),m=a.useMemo(()=>c(t,s),[t,c,s]),o=a.useMemo(()=>Math.round(oa(l,t)*100),[l,t]),d=a.useMemo(()=>t?Zs(l,t):{state:"none"},[l,t]),p=a.useMemo(()=>t?q(s,t,{compact:!0}):"",[t,s]),f=a.useCallback(()=>n(Na),[n]);return{issue:m,canPay:m==="none",selectedCurrency:r,walletBalanceCents:o,walletDisplay:d,requiredFormatted:p,evaluate:c,goToDeposit:f}},Rt=t=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},a.createElement("rect",{width:16,height:16,transform:"matrix(0 1 -1 0 16 0)",fill:"url(#pattern0_3788_16048)"}),a.createElement("rect",{width:16,height:16,transform:"matrix(0 1 -1 0 16 0)",fill:"url(#pattern1_3788_16048)"}),a.createElement("defs",null,a.createElement("pattern",{id:"pattern0_3788_16048",patternContentUnits:"objectBoundingBox",width:1,height:1},a.createElement("use",{xlinkHref:"#image0_3788_16048",transform:"scale(0.03125)"})),a.createElement("pattern",{id:"pattern1_3788_16048",patternContentUnits:"objectBoundingBox",width:1,height:1},a.createElement("use",{xlinkHref:"#image1_3788_16048",transform:"scale(0.0625)"})),a.createElement("image",{id:"image0_3788_16048",width:32,height:32,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAADFBMVEX////X4e3X4e3X4e2KZehVAAAAA3RSTlMAIN95ni85AAAAP0lEQVQYGb3BQQEAIQgAwcUHJShDIjIYgTr0IYjH2cEZXlgJuoHVYBuQgnA+4VIMS22GtiVDKpxfFJc1lyZPHE9tDLhmvC/nAAAAAElFTkSuQmCC"}),a.createElement("image",{id:"image1_3788_16048",width:16,height:16,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX////X4e3X4e1R042dAAAAA3RSTlMAMN8zXD1oAAAAJUlEQVQIW2NgwAUYHRgdGBgnsDkwMKRIAvmSKUCCbQJYBqcmBgCDNwMrwzWyvAAAAABJRU5ErkJggg=="}))),ka=({swiperRef:t,inline:s})=>{const{t:n,i18n:r}=L(),i=r.dir()==="rtl";return e.jsx("button",{type:"button",onClick:()=>t.current?.slidePrev(),"aria-label":n("previous"),className:`swiper-nav-arrow swiper-nav-arrow--prev${s?"swiper-nav-arrow--inline":""}`,children:e.jsx(Rt,{className:`h-4 w-4 md:h-5 md:w-5 ${i?"rotate-180":""}`})})},Ea=({swiperRef:t,inline:s})=>{const{t:n,i18n:r}=L(),i=r.dir()==="rtl";return e.jsx("button",{type:"button",onClick:()=>t.current?.slideNext(),"aria-label":n("next"),className:`swiper-nav-arrow swiper-nav-arrow--next${s?"swiper-nav-arrow--inline":""}`,children:e.jsx(Rt,{className:u("h-4 w-4 md:h-5 md:w-5",{"rotate-180":!i})})})},Sa=["fa","ar","ur","ku"],Bt=t=>Sa.includes(t),Fa=t=>Bt(t)?"rtl":"ltr",ke=t=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M27.5063 16.2253C27.4597 16.2405 27.4121 16.2532 27.3635 16.2634L27.2834 16.2803C26.915 16.3584 26.5381 16.2883 26.2224 16.083C25.9065 15.8777 25.6894 15.5618 25.6113 15.1931C25.448 14.4238 25.7873 13.6282 26.4553 13.2134L29.9067 11.0703C30.5889 10.6467 30.9355 9.83423 30.7688 9.04883L30.656 8.51685C30.4372 7.48535 29.4199 6.82398 28.3882 7.04273C27.8879 7.14844 27.46 7.44312 27.1814 7.87134C26.9031 8.29981 26.8081 8.81079 26.9141 9.31055L27.
20071 9.74951C27.072 10.0554 27.3735 10.2515 27.6794 10.1865C27.8276 10.1555 27.9546 10.0679 28.0371 9.94092C28.1199 9.81396 28.1479 9.66235 28.1164 9.5144C28.0483 9.19287 28.2532 8.87769 28.5752 8.80884C28.8967 8.74072 29.2124 8.94605 29.2805 9.26733C29.4817 10.2151 28.875 11.1497 27.9263 11.3508C27.4673 11.4482 26.9978 11.3608 26.6042 11.1052C26.2107 10.8494 25.9404 10.4556 25.843 9.99658L25.75 9.55762C25.5781 8.74707 25.7322 7.91773 26.1836 7.2229C26.6355 6.52808 27.3306 6.05103 28.1413 5.87891C29.8147 5.52393 31.4651 6.59668 31.8201 8.27027L31.9328 8.802C32.2031 10.0764 31.6411 11.3943 30.5344 12.0815L27.0832 14.2246C26.8396 14.376 26.7158 14.666 26.7754 14.9465C26.7917 15.0242 26.8423 15.0669 26.8708 15.0857C26.8994 15.1042 26.9592 15.1328 27.0369 15.1164L27.1169 15.0994C27.1941 15.083 27.2371 15.0325 27.2556 15.0039C27.2742 14.9753 27.303 14.9158 27.2866 14.8381C27.2183 14.5166 27.4238 14.2007 27.7451 14.1326C28.0664 14.0644 28.3823 14.2698 28.4504 14.5911C28.5288 14.9597 28.4587 15.3367 28.2534 15.6526C28.0752 15.9265 27.8135 16.1262 27.5063 16.2253Z",fill:"url(#paint0_radial_2135_313)"}),a.createElement("path",{d:"M4.49368 16.2253C4.54031 16.2405 4.58791 16.2532 4.6365 16.2634L4.71658 16.2803C5.08498 16.3584 5.46194 16.2883 5.77761 16.083C6.09353 15.8777 6.31057 15.5618 6.38869 15.1931C6.55202 14.4238 6.21267 13.6282 5.5447 13.2134L2.09329 11.0703C1.41092 10.6467 1.06448 9.83423 1.23123 9.04883L1.34402 8.51685C1.56277 7.48535 2.5801 6.82398 3.61184 7.04273C4.11184 7.14844 4.54006 7.44312 4.81863 7.87134C5.09695 8.29981 5.19192 8.81079 5.08596 9.31055L4.99294 9.74951C4.928 10.0554 4.62649 10.2515 4.32058 10.1865C4.17239 10.1555 4.04543 10.0679 3.96292 9.94092C3.88015 9.81396 3.85208 9.66235 3.88357 9.5144C3.95168 9.19287 3.74661 8.87769 3.42483 8.80884C3.1033 8.74072 2.78762 8.94605 2.71951 9.26733C2.51834 10.2151 3.12503 11.1497 4.07351 11.3508C4.53274 11.4482 5.00222 11.3608 5.39577 11.1052C5.78933 10.8494 6.05959 10.4556 6.157 9.99658L6.25002 9.55762C6.4219 8.74707 6.26784 7.91773 5.81618 7.2229C5.36452 6.52808 4.66921 6.05103 3.85867 5.87891C2.18533 5.52393 0.534941 6.59668 0.179961 8.27027L0.0671686 8.80176C-0.203095 10.0762 0.358916 11.394 1.4656 12.0813L4.91702 14.2244C5.16042 14.3757 5.2842 14.6658 5.22463 14.9463C5.20828 15.0239 5.15774 15.0669 5.12917 15.0854C5.10061 15.104 5.04104 15.1328 4.96316 15.1162L4.88308 15.0994C4.80593 15.0828 4.76296 15.0325 4.74441 15.0037C4.72561 14.9751 4.69705 14.9155 4.7134 14.8379C4.78152 14.5164 4.5762 14.2004 4.25491 14.1323C3.93337 14.0642 3.6177 14.2695 3.54934 14.5911C3.47122 14.9595 3.54129 15.3364 3.74661 15.6523C3.92483 15.9265 4.18655 16.1262 4.49368 16.2253Z",fill:"url(#paint1_radial_2135_313)"}),a.createElement("path",{d:"M25.75 9.55737L25.843 9.99633C25.9404 10.4556 26.2107 10.8491 26.6042 11.105C26.9978 11.3606 27.4673 11.448 27.9262 11.3506C28.875 11.1494 29.4817 10.2148 29.2805 9.26733C29.2124 8.9458 28.8964 8.74048 28.5752 8.80859C28.2534 8.87744 28.0483 9.19287 28.1164 9.51416C28.1479 9.66235 28.1198 9.81372 28.0371 9.94091C27.9546 10.0679 27.8276 10.1555 27.6794 10.1865C27.3735 10.2512 27.072 10.0552 27.007 9.74951L26.914 9.31054C26.8259 8.89526 26.8772 8.47241 27.0564 8.09546L26.1836 7.22266C25.7321 7.91748 25.5781 8.74682 25.75 9.55737Z",fill:"url(#paint2_linear_2135_313)"}),a.createElement("path",{d:"M28.2534 15.6523C28.4587 15.3364 28.5288 14.9595 28.4506 14.5908C28.3823 14.2695 28.0666 14.0642 27.7451 14.1323C27.424 14.2004 27.2182 14.5164 27.2866 14.8379C27.3029 14.9155 27.2744 14.9751 27.2558 15.0037C27.2373 15.0322 27.1943 15.0828 27.1169 15.0991L27.0368 15.1162C26.9592 15.1326 26.8996 15.104 26.871 15.0854C26.8422 15.0669 26.7919 15.0239 26.7753 14.9463C26.726 14.7131 26.8034 14.4739 26.9707 14.3125L26.1293 13.4714C25.6823 13.9131 25.4775 14.5618 25.6113 15.1931C25.6897 15.5618 25.9067 15.8777 26.2224 16.083C26.5383 16.2883 26.9152 16.3584 27.2834 16.2803L27.3635 16.2634C27.4123 16.2529 27.4599 16.2402 27.5065 16.2253C27.8134 16.1262 28.0751 15.9265 28.2534 15.6523Z",fill:"url(#paint3_linear_2135_313)"}),a.createElement("path",{d:"M23.4988 27.8013C23.4988 26.7463 20.1413 25.8911 16 25.8911C11.8586 25.8911 8.50122 26.7463 8.50122 27.8013C8.50122 28.8562 11.8586 29.7114 16 29.7114C20.1413 29.7114 23.4988 28.8562 23.4988 27.8013Z",fill:"url(#paint4_radial_2135_313)"}),a.createElement("path",{d:"M22.1682 28.8877C20.8144 29.3852 18.5571 29.7112 16 29.7112C15.5325 29.7112 15.0749 29.7004 14.6311 29.6794L12.0352 27.0835C11.9927 27.0496 11.9604 27.0149 11.9402 26.979C11.936 26.9724 11.9324 26.9663 11.9294 26.9597C11.9263 26.9531 11.9241 26.9465 11.9216 26.9402C11.9199 26.9353 11.918 26.9299 11.9167 26.9246C11.9
2126 26.9102 11.9109 26.8953 11.9109 26.8804C11.9109 26.8684 11.9126 26.8557 11.915 26.8437H11.9109L11.9158 26.8408C11.9414 26.7295 12.0764 26.6238 12.2996 26.5281C12.3469 26.5078 12.3948 26.4875 12.4419 26.4666C12.5293 26.4282 12.6165 26.3887 12.7026 26.3481C12.7097 26.345 12.717 26.3416 12.7236 26.3386C12.8499 26.2788 12.9749 26.217 13.0986 26.1533C13.1689 26.1169 13.2383 26.0789 13.3076 26.0405C13.324 26.0312 13.3406 26.0225 13.3569 26.0132H13.3582C14.1797 25.9343 15.0701 25.8914 16 25.8914C16.9299 25.8914 17.8203 25.9343 18.6418 26.0132C18.9841 26.2063 19.3391 26.3733 19.7004 26.5281C19.7991 26.5706 19.8808 26.6147 19.9438 26.6609L19.9443 26.6638L22.1682 28.8877Z",fill:"url(#paint5_linear_2135_313)"}),a.createElement("path",{d:"M26.0703 6.74682L25.4416 4.16064H6.55832L5.92966 6.74682C5.43747 8.7705 5.38742 10.832 5.73874 12.8083C6.43551 16.7268 9.29904 19.79 12.9555 20.9006C14.1479 21.2627 14.9663 22.3581 14.9663 23.6045V23.605C14.9663 24.5246 14.4741 25.374 13.6762 25.8313L13.4111 25.9834C13.0527 26.1887 12.6792 26.365 12.2998 26.5278C12.0764 26.6235 11.9414 26.7292 11.9155 26.8408L11.9106 26.8437H11.9152C11.9126 26.8557 11.9106 26.8679 11.9106 26.8801C11.9106 27.3371 13.7417 27.7075 16 27.7075C18.2583 27.7075 20.0893 27.3371 20.0893 26.8801C20.0893 26.8679 20.0874 26.8557 20.0847 26.8437H20.0893L20.0844 26.8408C20.0585 26.7292 19.9233 26.6235 19.7001 26.5278C19.3205 26.365 18.947 26.1887 18.5886 25.9834L18.3237 25.8313C17.5258 25.374 17.0336 24.5246 17.0336 23.605C17.0336 22.3576 17.8535 21.2627 19.0471 20.9004C22.6882 19.7947 25.5461 16.7544 26.2526 12.8569C26.4089 11.9946 26.4887 11.1162 26.4887 10.2314C26.4887 9.0725 26.3517 7.90332 26.0703 6.74682Z",fill:"url(#paint6_linear_2135_313)"}),a.createElement("path",{d:"M26.0703 6.74682L25.4416 4.16064H6.55832L5.92966 6.74682C5.43747 8.7705 5.38742 10.832 5.73874 12.8083C6.43551 16.7268 9.29904 19.79 12.9555 20.9006C13.5156 21.0705 13.9931 21.4026 14.342 21.8357L17.3584 24.852C17.1496 24.4768 17.0336 24.0493 17.0336 23.605C17.0336 22.3576 17.8535 21.2627 19.0471 20.9004C22.6882 19.7947 25.5461 16.7544 26.2526 12.8569C26.4089 11.9946 26.4887 11.1162 26.4887 10.2314C26.4887 9.0725 26.3517 7.90332 26.0703 6.74682Z",fill:"url(#paint7_linear_2135_313)"}),a.createElement("path",{d:"M26.4887 10.2314C26.4887 11.1162 26.4089 11.9946 26.2527 12.8569C25.3581 17.7915 21.0154 21.3523 16.0002 21.3523C10.9668 21.3523 6.61987 17.7641 5.73902 12.8081C5.3877 10.832 5.4375 8.7705 5.92969 6.74682L6.55835 4.1604H25.4419L26.0703 6.74682C26.3518 7.90332 26.4887 9.0725 26.4887 10.2314Z",fill:"url(#paint8_radial_2135_313)"}),a.createElement("path",{d:"M25.4411 4.16015C25.4411 3.10522 21.2141 2.25 16 2.25C10.7859 2.25 6.55884 3.10522 6.55884 4.16015C6.55884 5.21508 10.7859 6.07031 16 6.07031C21.2141 6.07031 25.4411 5.21508 25.4411 4.16015Z",fill:"url(#paint9_linear_2135_313)"}),a.createElement("path",{d:"M24.5346 4.00024C24.5346 3.21265 20.7136 2.57397 16 2.57397C11.2864 2.57397 7.46533 3.21265 7.46533 4.00024C7.46533 4.78784 11.2864 5.42627 16 5.42627C20.7136 5.42627 24.5346 4.78784 24.5346 4.00024Z",fill:"url(#paint10_linear_2135_313)"}),a.createElement("path",{d:"M25.114 16.2368C23.4973 18.8591 20.7258 20.6794 17.5561 21.1118L15.4197 19.0073C15.4082 19.001 15.397 18.9953 15.3855 18.9885C15.2209 18.8896 15.1392 18.7571 15.1392 18.5903V11.8291L13.8271 10.5354C13.7163 10.3948 13.6606 10.241 13.6606 10.0742C13.6606 9.80346 13.7722 9.59009 13.9944 9.43384L15.6477 7.87134C15.7642 7.75684 15.9072 7.69946 16.0769 7.69946C16.2681 7.69946 16.4397 7.74878 16.5935 7.84766L25.114 16.2368Z",fill:"url(#paint11_linear_2135_313)"}),a.createElement("path",{d:"M13.5867 10.1235C13.5867 9.85034 13.697 9.63501 13.9175 9.47754L15.5559 7.9021C15.6714 7.78662 15.8132 7.72876 15.9814 7.72876C16.1704 7.72876 16.3411 7.77881 16.4934 7.87842C16.6455 7.97852 16.7219 8.1123 16.7219 8.28027V18.7097C16.7219 18.8779 16.6377 19.0119 16.4697 19.1116C16.3018 19.2114 16.1074 19.2612 15.887 19.2612C15.6558 19.2612 15.4587 19.2114 15.2961 19.1116C15.1331 19.0119 15.0518 18.8779 15.0518 18.7097V9.95019L14.5005 10.6433C14.3953 10.7485 14.2798 10.8008 14.1538 10.8008C13.9963 10.8008 13.8623 10.73 13.752 10.5881C13.6418 10.4465 13.5867 10.2915 13.5867 10.1235Z",fill:"#FFB211"}),a.createElement("defs",null,a.createElement("radialGradient",{id:"paint0_radial_2135_313",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(25.1861 9.39857) rotate(-17.8787) scale(6.71565)"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:.4308,stopColor:"#FFE346"}),a.createElement("stop",{offset:.636,stopColor:"#FFDC3E"}),a.createElement("stop",{offset:.7935,stopColor:"#FFD031"}),a.createElement("stop",{offset:.9257,stopColor:"#FFBF1F"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("radialGradient",{id:"paint1_radial_2135_313",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(6.8139 9.39857) rotate(-162.121) scale(6.71565)"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:.4308,stopColor:"#FFE346"}),a.createElement("stop",{offset:.636,stopColor:"#FFDC3E"}),a.createElement("stop",{offset:.7935,stopColor:"#FFD031"}),a.createElement("stop",{offset:.9257,stopColor:"#FFBF1F"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("linearGradient",{id:"paint2_linear_2135_313",x1:28.0386,y1:9.43993,x2:24.5571,y2:9.05664,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.2281,stopColor:"#FF9F19",stopOpacity:.227451}),a.createElement("stop",{offset:.6863,stopColor:"#FF6F2E",stopOpacity:.686275}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})),a.createElement("linearGradient",{id:"paint3_linear_2135_313",x1:27.4489,y1:14.9937,x2:24.7174,y2:14.693,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.2281,stopColor:"#FF9F19",stopOpacity:.227451}),a.createElement("stop",{offset:.6863,stopColor:"#FF6F2E",stopOpacity:.686275}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})),a.createElement("radialGradient",{id:"paint4_radial_2135_313",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(15.1724 25.6833) scale(9.12359 4.03354)"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:.4412,stopColor:"#FFE346"}),a.createElement("stop",{offset:.6434,stopColor:"#FFDC3E"}),a.createElement("stop",{offset:.7968,stopColor:"#FFD032"}),a.createElement("stop",{offset:.9248,stopColor:"#FFC020"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("linearGradient",{id:"paint5_linear_2135_313",x1:17.1857,y1:28.8174,x2:16.433,y2:24.0439,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.2281,stopColor:"#FF9F19",stopOpacity:.227451}),a.createElement("stop",{offset:.6863,stopColor:"#FF6F2E",stopOpacity:.686275}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})),a.createElement("linearGradient",{id:"paint6_linear_2135_313",x1:15.4299,y1:15.934,x2:18.1317,y2:15.934,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("linearGradient",{id:"paint7_linear_2135_313",x1:19.3955,y1:23.3422,x2:17.36,y2:15.4263,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.181,stopColor:"#FF931F",stopOpacity:.180392}),a.createElement("stop",{offset:.4007,stopColor:"#FF732C",stopOpacity:.4}),a.createElement("stop",{offset:.6147,stopColor:"#FF5D36",stopOpacity:.615686}),a.createElement("stop",{offset:.8182,stopColor:"#FF503C",stopOpacity:.819608}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})),a.createElement("radialGradient",{id:"paint8_radial_2135_313",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(9.38207 5.84474) scale(18.6752)"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:.4308,stopColor:"#FFE346"}),a.createElement("stop",{offset:.636,stopColor:"#FFDC3E"}),a.createElement("stop",{offset:.7935,stopColor:"#FFD031"}),a.createElement("stop",{offset:.9257,stopColor:"#FFBF1F"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("linearGradient",{id:"paint9_linear_2135_313",x1:10.9697,y1:.975601,x2:21.4672,y2:7.62168,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFE548"}),a.createElement("stop",{offset:1,stopColor:"#FFB211"})),a.createElement("linearGradient",{id:"paint10_linear_2135_313",x1:16,y1:7.6188,x2:16,y2:.153641,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.2281,stopColor:"#FF9F19",stopOpacity:.227451}),a.createElement("stop",{offset:.6863,stopColor:"#FF6F2E",stopOpacity:.686275}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})),a.createElement("linearGradient",{id:"paint11_linear_2135_313",x1:19.2535,y1:16.6302,x2:7.11578,y2:4.49254,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#FFB211",stopOpacity:0}),a.createElement("stop",{offset:.2281,stopColor:"#FF9F19",stopOpacity:.227451}),a.createElement("stop",{offset:.6863,stopColor:"#FF6F2E",stopOpacity:.686275}),a.createElement("stop",{offset:1,stopColor:"#FF4B3E"})))),La={sm:"size-[32px] text-sm",md:"size-10 text-base",lg:"size-12 text-lg",pick:"size-[26px] text-[11px] sm:size-[32px] sm:text-sm"},Aa="relative flex shrink-0 items-center justify-center overflow-hidden rounded-full font-extrabold tabular-nums shadow-[inset_0_5px_8px_-3px_rgba(0,0,0,0.28),inset_0_-5px_8px_-3px_rgba(0,0,0,0.28)] transition-[background-color,border-color,color] duration-300 ease-out motion-reduce:transition-none",Se="flex min-w-0 items-center [direction:ltr]!",Ta="border border-transparent bg-(--mui-palette-primary-main) text-(--mui-palette-text-dark)",Ra="border border-transparent bg-green-400 text-(--mui-palette-text-dark)",Re="border border-transparent bg-red-400 text-(--mui-palette-text-dark)",Mt="border border-transparent bg-shade-dark-11",Be=u(Mt,"text-shade-light-9"),Ba=u(Mt,"text-shade-light-6"),Ma="border-2 border-dotted border-(--mui-palette-success-main) bg-shade-dark-11 text-(--mui-palette-success-light)",Da="border border-shade-dark-11 bg-transparent",Ia="border-0 bg-(--mui-palette-primary-main) text-(--mui-palette-text-dark)",Dt={pending:Be,matched:Ra,break:Re,ghost:Ma,miss:Ba},za=({animate:t})=>
2e.jsx(S.span,{"aria-hidden":!0,className:"absolute h-[42%] w-px rounded-full bg-(--mui-palette-primary-main)",animate:t?{opacity:[1,1,0,0]}:{opacity:1},transition:t?{duration:1.1,repeat:1/0,times:[0,.49,.5,1],ease:"linear"}:void 0}),Oa=()=>e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-[10%] top-0 z-0 h-[26%] rounded-b-[100%] bg-linear-to-b from-black/10 to-transparent mix-blend-multiply"}),e.jsx("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-[10%] bottom-0 z-0 h-[26%] rounded-t-[100%] bg-linear-to-t from-black/10 to-transparent mix-blend-multiply"})]}),je=({digit:t,index:s,ballClassName:n,animate:r,isCaret:i,size:l="sm",className:c})=>e.jsxs("span",{className:u(Aa,La[l],n,i&&"border-2! border-shade-dark-11",c),children:[e.jsx(Oa,{}),e.jsx(ie,{mode:"popLayout",initial:!1,children:t!==void 0?e.jsx(S.span,{initial:r?{y:"-110%",opacity:0,scale:.6}:!1,animate:{y:0,opacity:1,scale:1},exit:r?{y:"110%",opacity:0,scale:.6}:void 0,transition:{type:"spring",stiffness:520,damping:26,delay:r?s*.05:0},className:"relative z-1 flex size-full items-center justify-center",children:t},`${s}-${t}`):null}),i&&t===void 0?e.jsx(za,{animate:r}):null]}),te=a.memo(({number:t,winningNumber:s,matchedPositions:n,matchCount:r,hasResult:i=!0,isWinningNumber:l=!1,variant:c="result",activeIndex:m=null,hasError:o=!1,className:d,size:p="sm"})=>{const x=!X();if(c==="input")return e.jsx("div",{"aria-hidden":!0,className:u(Se,"w-fit max-w-full flex-nowrap gap-1 sm:gap-1.5",d),children:Array.from({length:ee}).map((y,g)=>{const k=t[g],E=k!==void 0;return e.jsx(je,{digit:k,index:g,ballClassName:u(o&&E&&Re,!o&&E&&Ia,!o&&!E&&Da),animate:x,isCaret:m===g,size:p},g)})});if(c==="selected"||c==="error"){const y=c==="error"?Re:Be;return e.jsx("div",{role:"img","aria-label":t,className:u(Se,"gap-1.5",d),children:t.split("").map((g,k)=>e.jsx(je,{digit:g,index:k,ballClassName:y,animate:x,size:p},k))})}const _=Ws({number:t,winningNumber:s,matchedPositions:n,matchCount:r,hasResult:i});return e.jsx("div",{role:"img","aria-label":t,className:u(Se,"gap-1.5 md:gap-2",d),children:t.split("").map((y,g)=>{const k=_[g],E=k==="pending";return e.jsx(je,{digit:y,index:g,ballClassName:E?Be:l?Ta:Dt[k],animate:x,size:p},g)})})});te.displayName="NumberBalls";const Pa=a.memo(({digit:t,state:s,size:n="sm",className:r})=>e.jsx(je,{digit:t,index:0,ballClassName:Dt[s],animate:!1,size:n,className:r}));Pa.displayName="NumberBall";const _e=(t,s)=>t?.round_no===s&&!!t.winning_number,Va=({round:t,countdown:s,lastResult:n,onCountdownExpired:r})=>{const[i,l]=a.useState(null),[c,m]=a.useState(null),o=a.useRef(new Set),d=i!==null&&_e(n,i)?n.winning_number:null,p=a.useCallback(y=>{o.current.has(y)||_e(n,y)&&(l(y),m(null))},[n]);a.useEffect(()=>{!t||t.status==="closed"||c===t.round_no&&m(null)},[c,t?.round_no,t?.status]),a.useEffect(()=>{!t||i!==null||o.current.has(t.round_no)||t.status==="closed"&&(s.phase==="draw"||s.phase==="none"&&s.target===null)&&m(y=>y??t.round_no)},[s.phase,s.target,t?.id,t?.round_no,t?.status,i]),a.useEffect(()=>{if(!(c===null||i!==null)){if(o.current.has(c)){m(null);return}_e(n,c)&&p(c)}},[i,n,c,p]);const f=a.useCallback(()=>{r()},[r]),x=a.useCallback(()=>{l(y=>(y!==null&&o.current.add(y),null))},[]);return{isAwaitingResult:c!==null&&i===null&&!_e(n,c),drawingRoundNo:i,drawnNumber:d,handleCountdownExpired:f,handleDrawComplete:x}},Ua=65,Ka=240,Ga=3200,Xe=()=>Array.from({length:ee},()=>Math.floor(Math.random()*10)),Ha=({digit:t,isSettled:s,index:n,reduced:r})=>e.jsx(S.span,{animate:s&&!r?{scale:[1.35,.94,1]}:{scale:1},transition:{duration:.42,ease:[.22,1,.36,1]},className:u("relative flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-extrabold tabular-nums transition-colors duration-300 sm:size-10 sm:text-base",s?"bg-linear-to-b from-(--mui-palette-primary-light) to-(--mui-palette-primary-main) text-(--mui-palette-text-dark) shadow-[0_0_18px_-2px_color-mix(in_srgb,var(--mui-palette-primary-main)_70%,transparent)]":"bg-background text-shade-light-9/70 ring-1 ring-(--mui-palette-border-main)/60"),children:e.jsx(S.span,{animate:s||r?{y:0,filter:"blur(0px)"}:{y:[-2,2,-2],filter:"blur(0.4px)"},transition:s||r?{duration:.2}:{duration:.28,repeat:1/0,delay:n*.04},children:t})}),It=a.memo(({roundNo:t,winningNumber:s,onComplete:n,className:r})=>{const{t:i}
2=L(),l=X()===!0,[c,m]=a.useState(Xe),[o,d]=a.useState(0),p=o>=ee;return a.useEffect(()=>{if(p||l)return;const f=window.setInterval(()=>m(Xe),Ua);return()=>window.clearInterval(f)},[p,l]),a.useEffect(()=>{if(!s||p)return;const f=window.setTimeout(()=>d(x=>x+1),l?0:Ka);return()=>window.clearTimeout(f)},[s,o,p,l]),a.useEffect(()=>{if(!s||!p)return;const f=window.setTimeout(n,Ga);return()=>window.clearTimeout(f)},[s,p,n]),e.jsxs("div",{role:"status","aria-live":"polite","aria-label":p?`${i("lottery_winning_number")} ${s.split("").join("")}`:i("lottery_drawing_now"),className:u("relative flex flex-1 flex-col items-center justify-center gap-4 overflow-hidden rounded-xl border border-(--mui-palette-primary-main)/25 bg-shade-dark-2/60 px-4 py-6",r),children:[e.jsx(S.div,{"aria-hidden":!0,animate:l?{opacity:.5}:{opacity:p?[.5,.9,.6]:[.25,.5,.25],scale:p?1.1:1},transition:{duration:p?1.2:2.2,repeat:1/0,ease:"easeInOut"},className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,color-mix(in_srgb,var(--mui-palette-primary-main)_28%,transparent),transparent_68%)]"}),e.jsxs("div",{className:"relative flex items-center gap-2",children:[e.jsxs("span",{"aria-hidden":!0,className:"relative flex size-1.5 shrink-0",children:[!p&&!l?e.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-(--mui-palette-primary-main)"}):null,e.jsx("span",{className:"relative inline-flex size-1.5 rounded-full bg-(--mui-palette-primary-main)"})]}),e.jsx("p",{className:"text-[10px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",children:i(p?"lottery_winning_number":"lottery_drawing_now")})]}),e.jsx("div",{"aria-hidden":!0,className:"relative flex items-center gap-1.5 [direction:ltr]! sm:gap-2",children:Array.from({length:ee}).map((f,x)=>e.jsx(Ha,{index:x,reduced:l,isSettled:x<o,digit:x<o&&s?s[x]:c[x]},x))}),e.jsx("p",{className:"relative text-[11px] font-semibold text-(--mui-palette-primary-main)/85",children:i("lottery_round_no",{no:t})})]})});It.displayName="DrawRevealAnimation";const zt=a.memo(({round:t,countdown:s,lastResult:n,onCountdownExpired:r,panelSwapMotion:i,revealClassName:l,children:c})=>{const{drawingRoundNo:m,drawnNumber:o,isAwaitingResult:d,handleCountdownExpired:p,handleDrawComplete:f}=Va({round:t,countdown:s,lastResult:n,onCountdownExpired:r});return e.jsx(ie,{mode:"popLayout",initial:!1,children:m!==null&&o?e.jsx(S.div,{...i,className:"flex flex-1 flex-col",children:e.jsx(It,{roundNo:m,winningNumber:o,onComplete:f,className:l},m)},"draw"):e.jsx(S.div,{...i,className:"flex flex-1 flex-col gap-3",children:c({onCountdownExpired:p,isAwaitingResult:d})},"live")})});zt.displayName="DrawReveal";const Ot=a.memo(({cents:t,currency:s,className:n})=>{const r=X(),i=q(t,s,{compact:!0});return e.jsx("span",{"aria-live":"polite","aria-atomic":!0,className:u("block max-w-full min-w-0",n),children:e.jsx(ie,{mode:"wait",initial:!1,children:e.jsx(S.span,{className:"block max-w-full truncate",initial:r?!1:{opacity:0,scale:.88},animate:{opacity:1,scale:1},exit:r?void 0:{opacity:0,scale:.94},transition:{duration:.55,ease:[.22,1,.36,1]},children:i},t)})})});Ot.displayName="AnimatedAmount";const Me=()=>e.jsx("div",{"aria-hidden":!0,className:"h-px w-full bg-[repeating-linear-gradient(to_right,color-mix(in_srgb,var(--mui-palette-border-main)_45%,transparent)_0_2px,transparent_2px_8px)] mask-[linear-gradient(to_right,transparent,black_14%,black_86%,transparent)] [-webkit-mask-image:linear-gradient(to_right,transparent,black_14%,black_86%,transparent)]"}),Je=t=>{const s=new Date(t).getTime();if(Number.isNaN(s))return{days:0,hours:0,minutes:0,seconds:0,isExpired:!0};const n=s-Date.now();return n<=0?{days:0,hours:0,minutes:0,seconds:0,isExpired:!0}:{days:Math.floor(n/(1e3*60*60*24)),hours:Math.floor(n%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(n%(1e3*60*60)/(1e3*60)),seconds:Math.floor(n%(1e3*60)/1e3),isExpired:!1}},$a=(t,s)=>{const n=a.useRef(s);a.useEffect(()=>{n.current=s},[s]);const[r,i]=a.useState(()=>t?Je(t):{days:0,hours:0,minutes:0,seconds:0,isExpired:!1});return a.useEffect(()=>{if(!t)return;let l=!1;const c=()=>{const o=Je(t);return i(d=>d.days===o.days&&d.hours===o.hours&&d.minutes===o.minutes&&d.seconds===o.seconds&&d.isExpired===o.isExpired?d:o),o.isExpired&&!l&&(l=!0,n.current?.()),o.isExpired};if(c())return;const m=setInterval(()=>{c()&&clearInterval(m)},1e3);return()=>clearInterval(m)},[t]),r},Fe={sales_closing:"lottery_sales_close_in",draw:"lottery_draw_in",round_start:"lottery_next_round_in",none:"lottery_draw_in"},De="text-[10px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",et="rounded-xl border border-shade-dark-11 bg-shade-dark-3 px-4 py-3.5",Ya=t=>t.toString().padStart(2,"0"),Le=({children:t})=>e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsxs("span",{"aria-hidden":!0,
2className:"relative flex size-2 shrink-0",children:[e.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-(--mui-palette-primary-main) opacity-60 motion-reduce:animate-none"}),e.jsx("span",{className:"relative inline-flex size-2 rounded-full bg-(--mui-palette-primary-main)"})]}),e.jsx("p",{className:De,children:t})]}),Ie=a.memo(({digit:t,animate:s})=>s?e.jsx("span",{className:"relative inline-block h-[1em] w-[1ch] overflow-hidden tabular-nums",children:e.jsx(ie,{initial:!1,mode:"wait",children:e.jsx(S.span,{initial:{y:"-90%",opacity:0},animate:{y:0,opacity:1},exit:{y:"90%",opacity:0},transition:{duration:.18,ease:"easeOut"},className:"absolute inset-0 flex items-center justify-center",children:t},t)})}):e.jsx("span",{className:"tabular-nums",children:t}));Ie.displayName="FlipDigit";const Pt=a.memo(({value:t,label:s,animate:n,large:r=!1})=>{const i=Ya(t);return e.jsxs("div",{className:u("flex min-w-0 flex-col items-center gap-0.5",r&&"@4xl:gap-1.5"),children:[e.jsxs("span",{className:u("inline-flex text-xl leading-none font-extrabold text-shade-light-9 tabular-nums sm:text-2xl",r&&"@4xl:text-4xl!"),children:[e.jsx(Ie,{digit:i[0],animate:n}),e.jsx(Ie,{digit:i[1],animate:n})]}),e.jsx("span",{className:u("text-[8px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",r&&"@4xl:text-[10px]"),children:s})]})});Pt.displayName="TimerSegment";const Za=({large:t=!1})=>e.jsx("span",{"aria-hidden":!0,className:u("pb-3 text-sm leading-none font-bold text-(--mui-palette-primary-main)/35",t&&"@4xl:pb-6 @4xl:text-lg"),children:":"}),Vt=a.memo(({days:t,hours:s,minutes:n,seconds:r,animateSeconds:i,shortLabels:l=!1,large:c=!1})=>{const{t:m}=L(),o=[{key:"days",value:t,label:l?"D":m("countdown_label_days")},{key:"hours",value:s,label:l?"H":m("countdown_label_hours")},{key:"minutes",value:n,label:l?"M":m("countdown_label_minutes")},{key:"seconds",value:r,label:l?"S":m("countdown_label_seconds")}];return e.jsx("div",{role:"timer",className:u("flex items-start justify-center gap-1.5 [direction:ltr]! sm:gap-2",c&&"@4xl:gap-5!"),children:o.map((d,p)=>e.jsxs("div",{className:u("flex items-start gap-1.5 sm:gap-2",c&&"@4xl:gap-5!"),children:[p>0?e.jsx(Za,{large:c}):null,e.jsx(Pt,{value:d.value,label:d.label,animate:i&&d.key==="seconds",large:c})]},d.key))})});Vt.displayName="TimerRow";const Ut=a.memo(({targetAt:t,phase:s,onExpired:n,className:r,variant:i="default",size:l="md"})=>{const{t:c}=L(),m=X(),{days:o,hours:d,minutes:p,seconds:f,isExpired:x}=$a(t,n),_=i==="ticket",y=l==="lg";if(!t||x)return _?e.jsxs("div",{className:u(et,r),children:[e.jsx(Le,{children:c("lottery_draw_in")}),e.jsx("p",{className:"mt-2 text-sm font-bold text-(--mui-palette-primary-main)",children:c("lottery_awaiting_result")})]}):e.jsxs("div",{className:u("flex flex-col gap-1 text-center",r),children:[e.jsx("span",{className:De,children:c("lottery_draw_in")}),e.jsx("span",{className:"text-sm font-bold text-(--mui-palette-primary-main)",children:c("lottery_awaiting_result")})]});const g=e.jsx(Vt,{days:o,hours:d,minutes:p,seconds:f,animateSeconds:m!==!0,shortLabels:_&&!y,large:y});return _?e.jsxs("div",{className:u(et,"contain-[layout_style_paint]",r),children:[e.jsx(Le,{children:c(Fe[s])}),e.jsx("div",{className:"mt-2",children:g})]}):e.jsxs("div",{className:u("space-y-3 text-center",y&&"@4xl:space-y-4",r),children:[y?e.jsx(Le,{children:c(Fe[s])}):e.jsx("p",{className:De,children:c(Fe[s])}),g]})});Ut.displayName="RoundCountdown";const tt=99,Qa={quick:"lottery_cadence_quick",daily:"lottery_cadence_daily",weekly:"lottery_cadence_weekly"},st="inline-flex max-w-full min-w-0 items-center gap-1.5 rounded-lg border border-shade-dark-11 bg-shade-dark-3 px-2.5 py-1.5 text-[11px] font-semibold text-shade-light-8",at="shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06)]",Kt="text-[10px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",qa=({tab:t,round:s,canBuy:n,isLimitReached:r,isTemporarilyClosed:i})=>i?"lottery_temporarily_closed_note":n?r?"lottery_limit_reached_note":null:s?t.lottery_type==="quick"&&!t.selling&&t.next_round?"lottery_night_pause_note":s.status==="scheduled"?"lottery_round_not_started_note":"lottery_sales_closed_note":"lottery_temporarily_closed_note",Wa=({lastResult:t,reserveSpace:s=!0})=>{const{t:n}=L();return e.jsx("div",{className:u("flex flex-col justify-center",s&&"min-h-14"),children:t?.
2winning_number?e.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-xl border border-shade-dark-11 bg-shade-dark-3 px-3 py-2.5",children:[e.jsx("p",{className:Kt,children:n("lottery_last_winning_number",{no:t.round_no})}),e.jsx(te,{number:t.winning_number,isWinningNumber:!0,size:"sm"})]}):null})},Xa=({colorClass:t,animate:s=!1})=>e.jsxs("span",{"aria-hidden":!0,className:"relative flex size-2 shrink-0",children:[s?e.jsx("span",{className:u("absolute inline-flex size-full animate-ping rounded-full opacity-70 motion-reduce:animate-none",t)}):null,e.jsx("span",{className:u("relative inline-flex size-2 rounded-full",t)})]}),ze=a.memo(({tab:t,index:s,isAuthenticated:n,onBuy:r,onCountdownExpired:i,serverNow:l,toClientTime:c,attachNavTop:m=!1,isWide:o=!1})=>{const{t:d}=L(),p=X()===!0,f=$e(t.lottery_type),x=He(t),_=t.last_result,y=x?.config?.ticket_currency??x?.config?.base_currency??"TRY",g=ea(t,x,l()),{canBuy:k,hasValidPrice:E,isLimitReached:v,isBuyDisabled:j}=At(t,x,n),b=q(Ce(x),y,{compact:!0}),h=!x||!E,A=qa({tab:t,round:x,canBuy:k,isLimitReached:v,isTemporarilyClosed:h}),R=be[x?.status??"closed"],O=h?be.closed.badge:k?be.selling.badge:R.badge,U=h?be.closed.dot:R.dot,K=d(h?"lottery_status_temporarily_closed":k?"lottery_live":vt[x.status]),D=x?.tickets_count??0;return e.jsx(S.article,{variants:ma(p,s),initial:"hidden",animate:"visible",...ua(p),className:u("bg-shade-dark-3 border-shade-dark-11 relative flex h-full w-full flex-col overflow-hidden rounded-2xl border transition-[border-color] duration-300 motion-reduce:transition-none",o&&"@container",m&&"max-md:rounded-t-none max-md:border-t-0",k&&"hover:border-(--mui-palette-primary-main)/40"),children:e.jsxs("div",{className:u("relative flex flex-1 flex-col gap-3.5 p-4 sm:p-5",o&&"@4xl:grid @4xl:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)] @4xl:items-center @4xl:gap-x-6 @4xl:gap-y-5 @4xl:p-6"),children:[e.jsxs(S.div,{className:u("flex flex-col gap-3.5",o&&"@4xl:col-start-1 @4xl:row-start-1 @4xl:min-w-0 @4xl:gap-4"),children:[e.jsxs(S.div,{variants:de(p),className:u("flex items-center justify-between gap-3",o&&"@4xl:justify-start"),children:[e.jsxs("span",{className:u("inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[10px] font-bold tracking-wide uppercase",O),children:[e.jsx(Xa,{colorClass:U,animate:k}),K]}),x?e.jsx("span",{className:"text-shade-light-8 shrink-0 rounded-lg border border-dashed border-shade-dark-11 bg-shade-dark-3 px-2.5 py-1 text-[11px] font-semibold",children:x.status==="scheduled"?d("lottery_upcoming_round",{no:x.round_no}):d("lottery_round_no",{no:x.round_no})}):null]}),e.jsxs(S.div,{variants:de(p),className:u("flex flex-col gap-3",o&&"@4xl:gap-4"),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:u("flex size-12 shrink-0 items-center justify-center rounded-xl border border-(--mui-palette-primary-main)/25 bg-(--mui-palette-primary-main)/10",at,o&&"@4xl:size-14 @4xl:rounded-2xl"),children:e.jsx(f,{"aria-hidden":!0,className:u("size-6 text-(--mui-palette-primary-main)",o&&"@4xl:size-7")})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h2",{className:u("truncate text-xl font-bold tracking-tight text-shade-light-9 uppercase",o&&"@4xl:text-2xl"),children:d(ue[t.lottery_type])}),e.jsx("p",{className:u("mt-0.5 truncate text-sm text-shade-light-6",o&&"@4xl:text-base"),children:d(Qa[t.lottery_type])})]})]}),x?e.jsxs("div",{className:"flex flex-wrap items-center gap-2 capitalize",children:[e.jsxs("span",{className:st,children:[e.jsx(me,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-shade-light-4"}),e.jsxs("span",{className:"truncate",children:[D>tt?`${tt}+`:D," ",d("sold")]})]}),e.jsxs("span",{className:st,children:[e.jsx(me,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-shade-light-4"}),e.jsx("span",{className:"truncate",children:d("lottery_limit_of",{total:x.config.per_user_limit})})]})]}):null]})]}),e.jsx(S.div,{variants:de(p),className:u("relative overflow-hidden rounded-xl border border-(--mui-palette-primary-main)/30 bg-linear-to-b from-(--mui-palette-primary-main)/10 to-transparent px-4 py-4.5",at,o&&"@4xl:col-start-1 @4xl:row-start-2 @4xl
2:min-w-0 @4xl:rounded-2xl @4xl:px-6 @4xl:py-5"),children:e.jsxs("div",{className:u("relative flex items-center justify-between gap-3",o&&"@4xl:gap-4"),children:[e.jsx("span",{className:u("flex size-12 shrink-0 items-center justify-center rounded-xl border border-(--mui-palette-primary-main)/25 bg-(--mui-palette-primary-main)/10",o&&"@4xl:size-16 @4xl:rounded-2xl"),children:e.jsx(ke,{"aria-hidden":!0,className:u("size-6",o&&"@4xl:size-8")})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:u(Kt,o&&"@4xl:text-[11px] @4xl:tracking-[0.18em]"),children:d("lottery_current_prize_pool")}),e.jsx(Ot,{cents:t?.pool_cents,currency:t?.pool_currency||"TRY",className:u("mt-1.5 text-[clamp(1.7rem,5.2vw,2.25rem)] leading-none font-black tracking-tight text-(--mui-palette-primary-main)",o&&"@4xl:mt-2 @4xl:text-[2.5rem]")})]})]})}),e.jsx(S.div,{variants:de(p),className:u(o&&"@4xl:hidden"),children:e.jsx(Me,{})}),e.jsx(S.div,{variants:de(p),className:u("relative flex flex-1 flex-col",o&&"@4xl:col-start-2 @4xl:row-span-2 @4xl:row-start-1 @4xl:min-w-0 @4xl:justify-center @4xl:self-stretch @4xl:rounded-2xl @4xl:border @4xl:border-shade-dark-11 @4xl:bg-shade-dark-3 @4xl:p-6"),children:e.jsx(zt,{round:x,countdown:g,lastResult:_,onCountdownExpired:i,panelSwapMotion:da(p),revealClassName:"mt-auto min-h-52",children:({onCountdownExpired:F,isAwaitingResult:B})=>e.jsxs(e.Fragment,{children:[x&&(g.target||B)?e.jsx(Ut,{targetAt:B?null:c(g.target),phase:g.phase,onExpired:F,variant:"ticket",size:o?"lg":"md",className:u(o&&"@4xl:rounded-none @4xl:border-0 @4xl:bg-transparent @4xl:px-0 @4xl:py-2")}):null,e.jsxs("div",{className:"mt-3 space-y-2.5! pt-1!",children:[e.jsx("div",{className:"flex flex-col items-center gap-2.5",children:e.jsx(V,{fullWidth:!0,variant:j?"outlined":"contained",disabled:j,startIcon:e.jsx(me,{"aria-hidden":!0,className:"size-4!"}),onClick:()=>r(t.lottery_type),className:u("h-11! text-sm! font-bold! transition-[background-color,border-color,color,transform]! duration-150! not-disabled:active:scale-[0.985] motion-reduce:transition-none! sm:h-12!",o&&"@4xl:h-14! @4xl:w-full! @4xl:text-base!"),children:E?d("lottery_get_your_ticket_for",{price:b}):d("lottery_buy_now")})}),e.jsx("p",{className:u("text-shade-light-6 px-1 text-center text-[11px] leading-relaxed sm:text-xs",o&&"@4xl:text-xs"),children:d(A??"lottery_sales_cutoff_note")}),e.jsx(Wa,{lastResult:_,reserveSpace:!o})]})]})})})]})})});ze.displayName="LotteryTypeCard";const Ja=2,en={768:{slidesPerView:2,spaceBetween:20},1120:{slidesPerView:3,spaceBetween:20}},tn=({tabs:t,...s})=>{const{t:n,i18n:r}=L(),i=X()===!0,l=Bt(r.language),c=os(),m=a.useRef(null),[o,d]=a.useState(0),[p,f]=a.useState(!0),[x,_]=a.useState(!1),y=a.useCallback(v=>{d(v.activeIndex),f(v.isBeginning),_(v.isEnd)},[]);a.useEffect(()=>{const v=m.current;!v||v.destroyed||(v.changeLanguageDirection(l?"rtl":"ltr"),v.update(),y(v))},[l,t.length,y]);const g=t.length>1,k=t[o]??t[0];return t.length>0&&t.length<=Ja&&!(c&&t.length>1)?e.jsx("section",{"aria-label":n("lottery_types"),className:u("relative mx-auto grid w-full gap-4",t.length===1?"max-w-5xl":"md:grid-cols-2 md:gap-5"),children:t.map((v,j)=>e.jsx(ze,{tab:v,index:j,isWide:!0,...s},v.lottery_type))}):e.jsxs("section",{"aria-label":n("lottery_types"),className:"relative w-full",children:[g&&k?e.jsxs(S.div,{initial:i?!1:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:420,damping:32},className:"relative md:hidden",children:[e.jsxs("div",{className:"bg-shade-dark-2 border-shade-dark-11 relative z-10 flex items-center justify-between gap-3 rounded-t-2xl border border-b-0 px-2.5 py-2.5",children:[e.jsx("div",{className:u("shrink-0",p&&"pointer-events-none opacity-35"),children:e.jsx(ka,{swiperRef:m,inline:!0})}),e.jsx("div",{className:"flex min-w-0 flex-1 flex-col items-center gap-1.5",children:e.jsx(es,{id:"lottery-overview-dots",children:e.jsx("div",{className:"flex items-center gap-1.5",role:"tablist","aria-label":n("lottery_types"),children:t.map((v,j)=>{const b=j===o;return e.jsx("button",{type:"button",role:"tab","aria-selected":b,"aria-label":n(ue[v.lottery_type]),onClick:()=>m.current?.slideTo(j),className:u("relative h-1.5 rounded-full outline-offset-4 transition-[width] duration-300 focus-visible:outline-2 focus-visible:outline-(--mui-palette-primary-main) motion-reduce:transition-none",b?"w-5":"w-1.5"),children:b?e.jsx(S.span,{layoutId:"lottery-overview-active-pill",className:"absolute inset-0 rounded-full bg-(--mui-palette-primary-main)",transition:{type:"spring",stiffness:520,damping:38}}):e.jsx("span",{className:"absolute inset-0 rounded-full bg-shade-dark-11"})},v.lottery_type)})})})}),e.jsx("div",{className:u("shrink-0",x&&"pointer-events-none opacity-35"),
2children:e.jsx(Ea,{swiperRef:m,inline:!0})})]}),e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full z-20 h-6 bg-linear-to-b from-background-paper/95 via-background-paper/45 to-transparent"})]}):null,e.jsxs("div",{className:u("relative",g&&"-mt-px md:mt-0"),children:[g?e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 z-10 h-4 bg-linear-to-b from-background-paper/80 to-transparent md:hidden"}):null,e.jsx(Ve,{dir:l?"rtl":"ltr",speed:520,onSwiper:v=>{m.current=v,v.changeLanguageDirection(l?"rtl":"ltr"),y(v)},onSlideChange:y,onResize:y,onBreakpoint:y,spaceBetween:16,slidesPerView:1,breakpoints:en,watchOverflow:!0,className:"app-swiper lottery-overview-swiper w-full overflow-visible! [&_.swiper-slide]:box-border [&_.swiper-slide]:h-auto! [&_.swiper-wrapper]:items-stretch",children:t.map((v,j)=>e.jsx(Ue,{className:"h-auto!",children:e.jsx("div",{className:"h-full w-full",children:e.jsx(ze,{tab:v,index:j,attachNavTop:g,...s})})},v.lottery_type))},`lottery-overview-${l?"rtl":"ltr"}`)]})]})},pe=({prefix:t,highlight:s,className:n})=>e.jsxs("h2",{className:u("text-2xl leading-8 font-extrabold capitalize text-shade-light-9 md:text-[24px] md:leading-8",n),children:[t,e.jsx("span",{className:"text-(--mui-palette-primary-main)",children:s})]}),sn=[{titleKey:"lottery_howto_buy_title",descriptionKey:"lottery_howto_buy_desc"},{titleKey:"lottery_howto_wait_title",descriptionKey:"lottery_howto_wait_desc"},{titleKey:"lottery_howto_check_title",descriptionKey:"lottery_howto_check_desc"}],an=({title:t,description:s})=>e.jsxs("article",{className:"bg-shade-dark-2 border-shade-dark-11 hover:border-(--mui-palette-primary-main)/35 flex flex-1 flex-col justify-start gap-2.5 rounded-xl border p-5 transition-colors duration-300 motion-reduce:transition-none sm:p-6",children:[e.jsx("h3",{className:"text-shade-light-9 text-base font-bold",children:t}),e.jsx("p",{className:"text-shade-light-6 max-w-117.5 text-sm leading-5",children:s})]}),nn=()=>{const{t}=L();return e.jsxs("section",{className:"space-y-4.5",children:[e.jsx(pe,{prefix:t("lottery_rules_how_to_start_prefix"),highlight:t("lottery_rules_how_to_start_highlight")}),e.jsx("div",{className:"grid gap-3.5 md:grid-cols-3",children:sn.map(s=>e.jsx(an,{title:t(s.titleKey),description:t(s.descriptionKey)},s.titleKey))})]})},rn={active:"border border-(--mui-palette-success-main)/35 bg-(--mui-palette-success-main)/15 text-(--mui-palette-success-light)",won:"bg-(--mui-palette-success-main) text-(--mui-palette-text-dark)",lost:"border border-(--mui-palette-error-main)/35 bg-(--mui-palette-error-main)/15 text-shade-light-9",refunded:"border border-(--mui-palette-warning-main)/35 bg-(--mui-palette-warning-main)/15 text-(--mui-palette-warning-main)"},Gt=({status:t,className:s})=>{const{t:n}=L();return e.jsx("span",{className:u("inline-flex shrink-0 rounded-full px-3 py-1 text-[11px] font-bold uppercase",rn[t],s),children:n(Nt[t])})},Ht=({id:t,labelKey:s,className:n,showLabel:r=!1})=>{const{t:i}=L(),l=Math.ceil(t.length/2),c=t.length>l?`${t.slice(0,l)}…`:t;return e.jsxs("div",{className:u("flex min-w-0 flex-row items-center gap-1",n),children:[r?e.jsx("span",{className:"block text-[10px] text-shade-light-6/55",children:i(s)}):null,e.jsxs("div",{className:"flex min-w-0 items-center gap-1",dir:"ltr",children:[e.jsx("span",{className:"min-w-0 truncate text-[10px] text-shade-light-6/70",title:t,children:c}),e.jsx(Cs,{value:t,onlyIcon:!0,className:"size-3! shrink-0 text-shade-light-6/75"})]})]})},Oe=({ticketId:t,className:s,showLabel:n=!1})=>e.jsx(Ht,{id:t,labelKey:"lottery_ticket_id",className:s,showLabel:n}),ln=({roundId:t,className:s,showLabel:n=!1})=>e.jsx(Ht,{id:t,labelKey:"lottery_round_id",className:s,showLabel:n}),$t=({row:t,className:s})=>{const{t:n}=L();return e.jsx("p",{className:u("text-[11px] font-bold whitespace-nowrap text-shade-light-9 sm:text-sm",s),children:n("lottery_round_no",{no:t.roundNo})})},Yt=({row:t,className:s})=>{const n=t.drawDate?we(t.drawDate,!0):"—";return e.jsx("p",{className:u("text-[11px] whitespace-break-spaces text-shade-light-6 sm:text-sm",s),children:n})},Zt=({row:t,className:s})=>e.jsx("p",{className:u("text-[11px] font-bold sm:text-sm",t.hasResult&&t.ticket.match_count>0?"text-(--mui-palette-primary-main)":"text-shade-light-6",s),children:t.hasResult?`${t.ticket.match_count}/${ee}`:""}),on=({row:t,className:s})=>{const n=t.ticket.status==="won";return e.jsx("div",{className:u(n?"text-(--mui-palette-success-light)":"text-shade-light-6",s),children:e.jsxs("span",{className:"text-[11px] font-extrabold sm:text-sm",children:[n?"+":null,q(t.ticket.prize_cents,t.currency,{compact:!0})]})})},nt="shrink-0 text-[9px] font-semibold tracking-[0.12em] text-shade-light-4 uppercase",cn=({className:t})=>{const{t:s}=L();return e.jsxs("span",{className:u("inline-flex shrink-0 items-center gap-1 rounded-full bg-(--mui-palette-success-main)/10 px-2 py-0.5 ring-1 ring-(--mui-palette-success-main)/30",t),children:[e.jsx("span",{"aria-hidden":!0,
2className:"size-1.5 rounded-full bg-(--mui-palette-success-main)"}),e.jsx("span",{className:"text-[10px] font-semibold text-(--mui-palette-success-light)",children:s("completed")})]})},dn=({roundNo:t,roundId:s,ticketCount:n,winningNumber:r,drawDate:i,isDrawCompleted:l,totalWinningsCents:c,currency:m})=>{const{t:o}=L(),d=Ft(r),p=q(c,m,{compact:!0});return e.jsxs("article",{className:"rounded-xl border border-shade-dark-11 bg-shade-dark-2 px-3 py-2.5 transition-colors duration-300 hover:border-(--mui-palette-primary-main)/25 motion-reduce:transition-none sm:px-4 sm:py-3 md:mb-2!",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[t?e.jsx("p",{className:"text-sm font-bold text-(--mui-palette-primary-main)",children:o("lottery_round_no",{no:t})}):i?e.jsx("time",{className:"text-xs text-shade-light-6",dateTime:i,children:we(i,!0)}):null,n>0||i?e.jsxs("p",{className:"text-xs text-shade-light-6",children:[n>0?e.jsxs(e.Fragment,{children:[o("lottery_tickets_in_round_summary_prefix"),"",e.jsx("span",{className:"font-bold text-(--mui-palette-primary-main)",children:o("lottery_tickets_in_round_count",{count:n})})]}):null,i?e.jsxs(e.Fragment,{children:[n>0?e.jsx("span",{"aria-hidden":!0,className:"mx-1.5 text-shade-light-6/40",children:"·"}):null,e.jsx("time",{dateTime:i,children:we(i,!0)})]}):null]}):null,s?e.jsx(ln,{roundId:s,showLabel:!0,className:"max-w-full"}):null]}),l?e.jsx(cn,{className:"mt-0.5"}):null]}),l||d?e.jsx("div",{className:"mt-2 border-t border-dotted border-shade-dark-11 pt-2",children:e.jsxs("div",{className:"flex items-center justify-between gap-3 md:gap-4",children:[d?e.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-2 md:flex-row md:items-center md:gap-3",children:[e.jsx("span",{className:nt,children:o("lottery_winning_number")}),e.jsx(te,{number:d,isWinningNumber:!0,size:"sm"})]}):null,l?e.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-1 md:items-center",children:[e.jsx("span",{className:u(nt,"md:hidden"),children:o("lottery_round_total_won")}),e.jsxs("div",{"aria-label":o("lottery_round_total_won"),className:u("inline-flex w-fit items-center gap-1.5 rounded-lg border px-2.5 py-1.5 text-sm font-extrabold tabular-nums",c>0?"border-(--mui-palette-success-main)/35 bg-[color-mix(in_srgb,var(--mui-palette-success-main)_12%,var(--mui-palette-background-paper))] text-(--mui-palette-success-light)":"border-shade-dark-11 bg-background-paper text-shade-light-9/60"),children:[e.jsx(ke,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),e.jsxs("span",{children:[c>0?"+":null,p]})]})]}):null]})}):null]})},rt=[{key:"today",daysAgo:0},{key:"7_days",daysAgo:6},{key:"1_month",daysAgo:29}],mn="h-10.5!",it=({selectedRange:t,customStartDate:s,customEndDate:n,onRangeChange:r,onCustomDateChange:i,className:l})=>{const{t:c}=L(),m=a.useRef(null),[o,d]=a.useState(!1),[p,f]=a.useState(s?Q(s):null),[x,_]=a.useState(n?Q(n):null),[y,g]=a.useState("");a.useEffect(()=>{s&&f(Q(s)),n&&_(Q(n))},[s,n]);const k=(b,h)=>!b||!h?c("Please_select_both_dates"):!Q(b).isValid()||!Q(h).isValid()?c("Invalid_date"):Q(b).isBefore(Q(h))?"":c("Start_date_must_be_before_end_date"),E=b=>{if(b===3){d(!0),r(3);return}d(!1);const h=Q(),A=rt[b].daysAgo,R=h.subtract(A,"day").startOf("day"),O=h.subtract(1,"day").endOf("day");f(R),_(O),r(b,R.toISOString(),O.toISOString())},v=(b,h)=>{if(!b)return;const A=h?b.startOf("day"):p,R=h?x:b.endOf("day");f(A),_(R),g(k(A?.toISOString()??"",R?.toISOString()??""))},j=u(mn,"min-w-0 flex-1 basis-[calc(50%-0.25rem)] px-3! sm:flex-none sm:basis-auto sm:px-4!");return e.jsx(fs,{onClickAway:()=>d(!1),children:e.jsxs("div",{className:u("relative flex w-full min-w-0 flex-wrap items-center gap-2",l),children:[rt.map(({key:b},h)=>{const A=t===h;return e.jsx(V,{type:"button",size:"medium",variant:A?"contained":"outlined",color:A?"primary":"tertiary",onClick:()=>E(h),className:j,children:c(b)},b)}),e.jsx(V,{type:"button",ref:m,size:"medium",variant:t===3?"contained":"outlined",color:t===3?"primary":"tertiary",onClick:()=>{d(!0),r(3)},className:j,children:c("custom")}),e.jsx(gs,{open:o,anchorEl:m.current,placement:"bottom-end",style:{zIndex:1300},children:e.jsxs(ys,{children:[e.jsxs("div",{className:"bg-shade-dark-4 flex flex-col gap-3 rounded-lg p-2",children:[[{label:c("start"),value:p,isStart:!0},{label:c("end"),value:x,isStart:!1}].map(({label:b,value:h,isStart:A})=>e.jsx(Ss,{label:b,value:h,onChange:R=>v(R,A)},b)),e.jsx(V,{variant:"contained",color:"primary",size:"small",fullWidth:!0,disabled:!!y||!p||!x,onClick:()=>{const b=p.toISOString(),h=x.toISOString();r(3,b,h),i(b,h),d(!1)},children:c("apply")})]}),y?e.jsx("small",{className:"text-primary-lighter mx-auto block w-fit py-3 text-xs font-medium",children:y}):null]})})]})})},un=({label:t,value:s,options:n,allLabel:r,onChange:i,loading:l=!1,showAll:c=!0,icon:m,fullWidth:o=!0,className:d})=>{const[p,f]=a.useState(null),x=!!p,_=a.useMemo(()=>c?[{value:"all",label:r},...n]:n,[r,n,c]),y=c&&s==="all"?t:_.find(g=>g.value===s)?.label??n[0]?.label??t;return e.jsxs("div",{className:u("min-w-0 overflow-hidden",o?"w-full":"w-auto",d),children:[e.jsx(V,{type:"button",fullWidth:!0,variant:"outlined",color:"tertiary",disabled:l,"aria-expanded":x,"aria-haspopup":"listbox","aria-label":`${t}: ${y}`,onClick:g=>f(g.currentTarget),startIcon:m?e.jsx("span",{className:"text-secondary flex shrink-0 items-center",children:m}):void 0,endIcon:l?e.jsx(bs,{color:"inherit",size:16}):e.jsx(Fs,{className:"shrink-0 text-shade-dark-11"}),className:"h-11! min-w-0! max-w-full! overflow-hidden! border-shade-4! px-3!",children:e.jsx("span",{className:"block min-w-0 flex-1 truncate text-start capitalize",children:y})}),e.jsx(_s,{anchorEl:p,open:x,onClose:()=>f(null),className:"max-h-100!",slotProps:{paper:{sx:{minWidth:p?.offsetWidth||180,width:p?.offsetWidth||"auto"}}},children:_.map(g=>e.jsx(js,{disabled:g.disabled,selected:!g.disabled&&g.value===s,onClick:()=>{g.disabled||(i(g.value),f(null))},className:"capitalize",sx:{"&.Mui-selected, &.Mui-selected:hover":{bgcolor:"shadeDark.11"}},children:g.label},g.value||"__empty__"))})]})}
2,pn={round:e.jsx(yt,{"aria-hidden":!0,className:"size-4.5"}),"round-status":e.jsx(ks,{"aria-hidden":!0,className:"size-4.5"}),"match-status":e.jsx(ke,{"aria-hidden":!0,className:"size-4.5"})},xn=({filters:t,className:s})=>{const{t:n}=L(),r=Es("2xl"),{selects:i,dateRange:l,hasActiveFilters:c,onClear:m}=t,o=i.map((d,p)=>e.jsx(un,{fullWidth:r,icon:pn[d.key],className:u(r?u("min-w-0 w-full",p===i.length-1&&i.length%2===1&&"sm:col-span-2 lg:col-span-1"):"w-44 shrink-0",d.className),label:n(d.labelKey),value:d.value,options:d.options,allLabel:n("all"),showAll:d.showAll,loading:d.loading,onChange:d.onChange},d.key));return r?e.jsxs("div",{className:u("flex w-full min-w-0 flex-col gap-3",s),children:[e.jsx("div",{className:"grid w-full min-w-0 grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:o}),e.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsx(it,{selectedRange:l.selectedRange,customStartDate:l.customStartDate,customEndDate:l.customEndDate,onRangeChange:l.onRangeChange,onCustomDateChange:l.onCustomDateChange,className:"w-full min-w-0 sm:w-auto sm:max-w-full sm:flex-1"}),e.jsx(V,{type:"button",size:"medium",variant:"contained",color:"primary",disabled:!c,onClick:m,className:"h-10.5! w-full shrink-0 sm:ms-auto sm:w-auto",children:n("clear")})]})]}):e.jsxs("div",{className:u("flex w-full min-w-0 items-center justify-between gap-4",s),children:[e.jsx("div",{className:"flex shrink-0 items-center gap-2",children:o}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(it,{selectedRange:l.selectedRange,customStartDate:l.customStartDate,customEndDate:l.customEndDate,onRangeChange:l.onRangeChange,onCustomDateChange:l.onCustomDateChange,className:"w-auto shrink-0"}),e.jsx(V,{type:"button",size:"medium",variant:"contained",color:"primary",disabled:!c,onClick:m,className:"h-10.5! w-auto shrink-0",children:n("clear")})]})]})},lt=10,hn=100,fn=["drawn","settled"],gn=["active","won","lost","refunded"],yn=["selling","closed"],ot=(t,s)=>t.flatMap(n=>n.tickets.map(r=>({key:r.id,index:0,lotteryTypeLabel:s(n.lottery_type),ticket:r,winningNumber:n.winning_number,roundStatus:n.round_status,roundNo:n.round_no,currency:n.currency,drawDate:n.draw_date,hasResult:Ct(n.round_status)}))),Pe=t=>t.map((s,n)=>({...s,index:n})),ct=(t,s)=>{if(!s.length)return t;const n=new Set(t.map(r=>r.key));return Pe([...t,...s.filter(r=>!n.has(r.key))])},dt=t=>{if(!t)return;const s=Q(t);return s.isValid()?s.format("YYYY-MM-DD"):void 0},bn=({isAuthenticated:t,lotteryType:s})=>{const{t:n}=L(),[r,i]=a.useState(1),[l,c]=a.useState(1),[m,o]=a.useState([]),[d,p]=a.use
2State([]),[f,x]=a.useState(""),[_,y]=a.useState("all"),[g,k]=a.useState("all"),[E,v]=a.useState(ye),[j,b]=a.useState(""),[h,A]=a.useState(""),R=a.useMemo(()=>{const{start_date:N,end_date:M}=Ls(E,j,h);return{start_date:dt(N),end_date:dt(M)}},[h,j,E]);a.useEffect(()=>{i(1),c(1),o([]),p([]),x(""),y("all"),k("all"),v(ye),b(""),A("")},[s]);const O=a.useCallback(N=>n(N),[n]),{data:U,isFetching:K}=Qe({page:r,per_page:lt,lottery_type:s,ticket_status:"active"},{skip:!t}),{data:D,isFetching:F}=cs({page:1,per_page:hn,lottery_type:s,has_user_tickets:t},{skip:!t}),B=a.useMemo(()=>(D?.data?.items??[]).filter(N=>N.lottery_type===s),[s,D?.data?.items]),T=a.useMemo(()=>B.length?f&&B.some(N=>N.round_id===f)?f:B[0].round_id:"",[f,B]);a.useEffect(()=>{if(!T){f&&x("");return}f!==T&&x(T)},[T,f]);const{data:I,isFetching:W}=Qe({page:l,per_page:lt,lottery_type:s,round_id:T,..._!=="all"&&{round_status:_},...g!=="all"&&{ticket_status:g},...R},{skip:!t||!T}),J=a.useMemo(()=>{const N=(U?.data?.items??[]).filter(M=>yn.includes(M.round_status));return Pe(ot(N,O).filter(M=>M.ticket.status==="active"))},[U?.data?.items,O]),$=a.useMemo(()=>{if(!T)return[];const N=(I?.data?.items??[]).filter(M=>M.lottery_type===s&&M.round_id===T);return Pe(ot(N,O))},[I?.data?.items,T,s,O]),se=a.useMemo(()=>[s,T,_,g,E,j,h].join("| "),[h,j,T,s,g,_,E]);a.useEffect(()=>{c(1),p([])},[se]),a.useEffect(()=>{o(N=>r===1?J:ct(N,J))},[r,J]),a.useEffect(()=>{p(N=>l===1?$:ct(N,$))},[l,$]);const le=a.useCallback(()=>{i(N=>N+1)},[]),C=a.useCallback(()=>{c(N=>N+1)},[]),G=U?.data?.last_page??1,Ee=I?.data?.last_page??1,xe=a.useMemo(()=>B.length?B.map(N=>({value:N.round_id,label:n("lottery_round_no",{no:N.round_no})})):[{value:"",label:n("lottery_no_rounds_yet"),disabled:!0}],[B,n]),ne=a.useMemo(()=>({round:fn.map(N=>({value:N,label:n(vt[N])})),match:gn.map(N=>({value:N,label:n(Nt[N])}))}),[n]),ae=a.useCallback(N=>M=>{c(1),N(M)},[]),H=a.useCallback((N,M,Z)=>{c(1);const re=M??j,Jt=Z??h;v(N),b(N===3?re:""),A(N===3?Jt:"")},[h,j]),Y=B[0]?.round_id??"",he=a.useMemo(()=>_!=="all"||g!=="all"||E!==ye||!!j||!!h||!!(f&&Y&&f!==Y),[h,j,Y,g,f,_,E]),oe=a.useCallback(()=>{c(1),x(""),y("all"),k("all"),v(ye),b(""),A("")},[]),fe=a.useMemo(()=>({selects:[{key:"round",labelKey:"lottery_round_filter",value:T,options:xe,loading:F,showAll:!1,onChange:ae(x)},{key:"round-status",labelKey:"lottery_round_status_filter",value:_,options:ne.round,onChange:ae(y)},{key:"match-status",labelKey:"lottery_match_status",value:g,options:ne.match,onChange:ae(k)}],dateRange:{labelKey:"lottery_draw_date",selectedRange:E,customStartDate:j,customEndDate:h,loading:W,onRangeChange:H,onCustomDateChange:(N,M)=>H(3,N,M)},hasActiveFilters:he,onClear:oe}),[oe,h,j,T,he,W,F,g,H,ae,xe,_,E,ne]),ge=a.useMemo(()=>{const N=(I?.data?.items??[]).filter(re=>re.lottery_type===s&&re.round_id===T),M=B.find(re=>re.round_id===T),Z=N[0];return{winningNumber:Ft(M?.winning_number??Z?.winning_number??null),ticketCount:Z?.player_tickets_count??0,roundNo:M?.round_no??Z?.round_no,roundId:Z?.round_id??M?.round_id??T,drawDate:Z?.draw_date??null,isDrawCompleted:Ct(Z?.round_status??M?.round_status??"scheduled"),totalWinningsCents:Z?.total_winnings_cents??0,currency:Z?.currency??Z?.base_currency??"TRY"}},[I?.data?.items,T,s,B]);return{active:{rows:m,listKey:s,isFetching:K,isLoadingMore:K&&r>1,hasNextPage:r<G,loadMore:le},draws:{rows:d,listKey:se,isFetching:W,isLoadingMore:W&&l>1,hasNextPage:l<Ee,loadMore:C,filters:fe,summary:ge}}},_n="text-[10px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",Ae=e.jsx("strong",{className:"font-bold text-shade-light-9"}),jn=e.jsx("strong",{className:"font-bold text-green-400"}),wn=e.jsx("strong",{className:"font-bold text-(--mui-palette-primary-main)"}),vn=(t,s,n)=>{const r=[];for(let i=n+1;i<t.length;i++)t[i]===s[i]&&r.push(i+1);return r},mt=({label:t,children:s})=>e.jsxs("div",{className:"flex flex-col items-center gap-2.5 px-4 py-4 sm:px-5 sm:py-5",children:[e.jsx("p",{className:_n,children:t}),s]}),Nn=({lotteryType:t})=>{const{t:s}=L(),{data:n}=ds(),r=a.useMemo(()=>n?.data?.items?.find(_=>_.lottery_type===t&&_.near_miss),[n?.data?.items,t]);if(!r?.near_miss||!r.winning_number||!r.currency)return null;const{near_miss:i,winning_number:l,currency:c}=r,m=i.break_position+1,o=i.number[i.break_position],d=l[i.break_position],p=vn(i.number,l,i.break_position),f=q(i.prize_cents,c,{compact:!0}),x=i.would_have_tier_prize_cents!=null?q(i.would_have_tier_prize_cents,c,{compact:!0}):null;return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(pe,{prefix:s("lottery_closest_call_prefix"),highlight:s("lottery_closest_call_highlight",{no:r.round_no})}),e.jsx("p",{className:"max-w-3xl text-sm leading-relaxed text-shade-light-6 md:max-w-none",children:s("lottery_closest_call_description")})]}),e.jsxs("article",{className:"overflow-hidden rounded-2xl border border-shade-dark-11 bg-shade-dark-2",children:[e.jsxs("div",{className:"md:grid md:grid-cols-2",children:[e.jsxs("div",{className:"md:border-s md:border-shade-dark-11/30",children:[e.jsx("div",{className:"md:hidden",children:e.jsx(Me,{})}),e.jsx(mt,{label:s("lottery_ticket_number"),children:e.jsx(te,{number:i.number,winningNumber:l,matchedPositions:i.matched_positions,matchCount:i.match_count,hasResult:!0,size:"sm",className:"justify-center"})})]}),e.jsx(mt,{label:s("lottery_winning_number"),children:e.jsx(te,{number:l,isWinningNumber:!0,size:"sm",className:"justify-center"})})]}),e.jsx(Me,{}),e.jsxs("p",{className:"bg-shade-dark-3 px-4 py-3.5 text-sm leading-relaxed text-shade-light-6 sm:px-5",children:[i.prize_cents>
20?e.jsx(ce,{i18nKey:i.digits_matched===1?"lottery_closest_call_won_one":"lottery_closest_call_won_other",values:{count:i.digits_matched,prize:f},components:{b:jn}}):e.jsx(ce,{i18nKey:i.digits_matched===1?"lottery_closest_call_matched_one":"lottery_closest_call_matched_other",values:{count:i.digits_matched},components:{b:Ae}}),"",e.jsx(ce,{i18nKey:"lottery_closest_call_break",values:{position:m,ticketDigit:o,winningDigit:d},components:{b:Ae}}),p.length>0?e.jsxs(e.Fragment,{children:["",e.jsx(ce,{i18nKey:"lottery_closest_call_ghost",values:{positions:p.join(", ")},components:{b:Ae}})]}):null,x&&i.would_have_tier?e.jsxs(e.Fragment,{children:["",e.jsx(ce,{i18nKey:"lottery_closest_call_tier",values:{tier:i.would_have_tier,pool:x},components:{b:wn}})]}):null]})]})]})},Cn=()=>e.jsxs(e.Fragment,{children:[e.jsx("span",{"aria-hidden":!0,className:"absolute -top-1.5 left-full z-10 size-3 -translate-x-1/2 rounded-full bg-background"}),e.jsx("span",{"aria-hidden":!0,className:"absolute -bottom-1.5 left-full z-10 size-3 -translate-x-1/2 rounded-full bg-background"})]}),Qt=a.memo(({row:t,showDraw:s})=>{const{t:n}=L(),{ticket:r,index:i,lotteryTypeLabel:l,winningNumber:c,hasResult:m,currency:o}=t,d=r.status==="won",p=r.status==="lost",f=q(r.prize_cents,o,{compact:!0});return e.jsxs("article",{dir:"ltr",className:u("bg-shade-dark-2 relative flex overflow-hidden rounded-xl border transition-[border-color] duration-300 motion-reduce:transition-none",d&&"border-(--mui-palette-success-main)/45",p&&m&&"border-(--mui-palette-error-main)/45",!d&&!(p&&m)&&"border-shade-dark-11"),children:[e.jsxs("div",{className:u("relative flex w-11 shrink-0 flex-col items-center justify-center gap-0.5 border-e border-dashed border-shade-dark-11 py-2.5",d?"bg-(--mui-palette-success-main)/15":"bg-shade-dark-3"),children:[e.jsx(Cn,{}),d?e.jsx(ke,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-(--mui-palette-success-light)"}):e.jsx(me,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-(--mui-palette-primary-main)"}),e.jsx("span",{className:"text-[7px] font-bold tracking-[0.2em] text-shade-light-6 uppercase",children:n("lottery_ticket_label")}),e.jsxs("span",{className:u("text-base leading-none font-black",d?"text-(--mui-palette-success-light)":"text-(--mui-palette-primary-main)"),children:["#",i+1]})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 pt-2.5 pb-1",children:[e.jsx("span",{className:"truncate text-[10px] font-semibold tracking-wide text-shade-light-9 uppercase",children:l}),e.jsxs("div",{className:"flex shrink-0 items-center gap-2 text-[10px] text-shade-light-6",children:[e.jsx(Yt,{row:t,className:"text-[10px]"}),e.jsx(Zt,{row:t,className:"text-[10px]"})]})]}),e.jsx(Oe,{ticketId:r.id,showLabel:!0,className:"px-3 pb-2"})]}):e.jsxs("div",{className:"flex flex-col gap-1 px-3 pt-2.5 pb-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"truncate text-[10px] font-semibold tracking-wide text-shade-light-9 uppercase",children:l}),e.jsx($t,{row:t,className:"text-[10px]"})]}),e.jsx(Oe,{ticketId:r.id,showLabel:!0})]}),e.jsx("div",{className:"border-t border-dashed border-shade-dark-11"}),e.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2 px-3 py-2",children:[e.jsx(te,{number:r.number,winningNumber:c,matchedPositions:r.matched_positions,matchCount:r.match_count,hasResult:m,size:"pick",className:"min-w-0"}),e.jsx(Gt,{status:r.status,className:"shrink-0 px-2 py-0.5 text-[9px]"})]}),s&&m?e.jsxs("div",{className:u("flex items-center justify-between gap-2 border-t border-dashed border-shade-dark-11 px-2.5 py-2",!d&&"bg-shade-dark-2/60"),children:[e.jsx("span",{className:"text-[9px] font-semibold tracking-[0.14em] text-shade-light-6 uppercase",children:n("lottery_table_amount")}),e.jsxs("span",{className:u("leading-none font-black tabular-nums",d?"text-xl text-(--mui-palette-success-light)":"text-base text-shade-light-9",p&&"opacity-80"),children:[d?"+":null,f]})]}):null]})]})});Qt.displayName="TicketCard";function kn(t){return e.jsx(Rs,{...t})}const Te=10,En="(min-width: 1024px)",qt=({rows:t,listKey:s,hasNextPage:n,onLoadMore:r,showDraw:i,isLoading:l=!1,isLoadingMore:c=!1,emptyAction:m})=>{const{t:o}
2=L(),d=X()===!0,p=ws(En),[f,x]=a.useState(Te);a.useEffect(()=>{x(Te)},[s]);const _=t.slice(0,f),y=f<t.length||n,g=a.useCallback(()=>{const b=f+Te;x(b),b>t.length&&n&&r()},[n,r,t.length,f]),k=a.useMemo(()=>{const b={title:o("lottery_table_number"),dataIndex:"index",key:"number",render:(D,F)=>e.jsxs("div",{className:"flex min-w-28 flex-col gap-1",children:[e.jsxs("div",{className:"flex flex-row items-center gap-1",children:[e.jsxs("p",{className:"text-sm font-bold text-shade-light-9",children:["#",F.index+1]}),e.jsx("p",{className:"text-xs text-shade-light-6",children:F.lotteryTypeLabel})]}),e.jsx(Oe,{ticketId:F.ticket.id})]})},h={title:o("lottery_ticket_number"),dataIndex:"ticket",key:"ticket",render:(D,F)=>e.jsx(te,{number:F.ticket.number,winningNumber:F.winningNumber,matchedPositions:F.ticket.matched_positions,matchCount:F.ticket.match_count,hasResult:F.hasResult,size:"sm"})},A={title:o("lottery_table_date"),dataIndex:"drawDate",key:"date",render:(D,F)=>e.jsx(Yt,{row:F})},R={title:o("status"),dataIndex:"ticket",key:"status",render:(D,F)=>e.jsx(Gt,{status:F.ticket.status})},O={title:o("lottery_matches_label"),dataIndex:"ticket",key:"matches",render:(D,F)=>e.jsx("div",{className:"min-w-16 text-center",children:e.jsx(Zt,{row:F})})},U={title:o("lottery_round_filter"),dataIndex:"roundNo",key:"round",render:(D,F)=>e.jsx($t,{row:F})},K={title:o("lottery_table_amount"),dataIndex:"ticket",key:"amount",render:(D,F)=>F.hasResult?e.jsx(on,{row:F,className:"inline-flex min-w-20 rounded-md md:px-4 md:py-2"}):e.jsx("span",{className:"text-shade-light-6",children:"—"})};return i?[b,h,A,R,O,K]:[b,h,R,U]},[i,o]),E=y?e.jsx("div",{className:"flex justify-center pt-1",children:e.jsx(V,{type:"button",variant:"outlined",className:"max-h-10 border-shade-dark-11! text-sm! transition-[background-color,box-shadow,border-color,color,transform]! duration-150! not-disabled:active:scale-[0.97] motion-reduce:transition-none!",endIcon:e.jsx(Ts,{}),disabled:c,onClick:g,children:o("load_more")})}):null,j=l&&t.length===0?e.jsx("div",{children:e.jsx(As,{rows:5,showActions:!1,showPagination:!1})},"loading"):t.length===0?e.jsx("div",{children:e.jsx(bt,{data:"lottery_no_tickets",message:"lottery_no_tickets_note",actionSection:m,className:"gap-4 roun
2ded-2xl border border-shade-dark-11 bg-shade-dark-3",iconWrapperClassName:"size-20 rounded-xl border border-shade-dark-18/40 bg-shade-dark-18/15",iconClassName:"size-12"})},"empty"):p?e.jsxs("div",{className:"space-y-2.5",children:[e.jsx(kn,{columns:k,data:_,rowKey:"key",className:"history-table mb-0! min-w-full",scroll:{x:"max-content"}}),E]},"table"):e.jsxs("div",{className:"space-y-3",children:[_.map(b=>e.jsx(Qt,{row:b,showDraw:i},b.key)),E]},"cards");return e.jsx(ie,{mode:"wait",initial:!1,children:e.jsx(S.div,{initial:d?!1:{opacity:0,y:6},animate:{opacity:1,y:0},exit:d?{opacity:0}:{opacity:0,y:-6},transition:{duration:d?.12:.25,ease:[.22,1,.36,1]},children:j},j.key)})},Wt=20,Sn={640:{slidesPerView:2.1,spaceBetween:12},1024:{slidesPerView:3.2,spaceBetween:16},1280:{slidesPerView:4.1,spaceBetween:16}},Fn=t=>{const s=t[0];return s?s.winners.slice(0,Wt).map(n=>({...n,round:s})):[]},ut=({label:t,disabled:s,onClick:n,flip:r=!1})=>e.jsx(V,{type:"button",variant:"contained",size:"small",className:u("h-8! min-w-8! rounded-md! bg-background-paper! p-0! transition-[background-color,box-shadow,border-color,color,transform]! duration-150! not-disabled:active:scale-90 motion-reduce:transition-none!",s&&"cursor-not-allowed! opacity-50!"),"aria-label":t,disabled:s,onClick:n,children:e.jsx(Bs,{className:u("size-3 text-shade-light-6",r?"rotate-180 rtl:rotate-0":"rtl:rotate-180")})}),Xt=a.memo(({winner:t})=>{const{t:s}=L();return e.jsxs("article",{className:"flex h-full flex-col rounded-2xl border border-shade-dark-11 bg-shade-dark-2 transition-[border-color,box-shadow] duration-300 hover:border-(--mui-palette-primary-main)/30  motion-reduce:transition-none",children:[e.jsxs("div",{className:"flex flex-col px-4 py-2",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full border-2 border-shade-dark-11",children:e.jsx(jt,{"aria-hidden":!0,className:"size-3.5 text-(--mui-palette-primary-main)"})}),e.jsxs("div",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[e.jsx("p",{className:"truncate text-sm font-semibold text-shade-light-9/60",children:t.is_current_player?s("lottery_you"):t.masked_nickname}),e.jsxs("p",{className:"text-sm font-semibold text-shade-light-9",children:[t.match_count,"/",ee]})]})]}),e.jsxs("div",{className:"mt-1 min-w-0 flex-1 space-y-1",children:[e.jsxs("p",{className:"text-xs text-shade-light-9",children:[s("lottery_round_no",{no:t.round.round_no})," ·","",s(ue[t.round.lottery_type])]}),e.jsx("p",{className:"text-base leading-none font-extrabold tracking-tight text-(--mui-palette-primary-main)",children:q(t.prize_cents,t.round.currency,{compact:!0})})]})]}),e.jsx("div",{className:"mt-1 border-t border-shade-dark-11"}),e.jsx(te,{className:"px-4 py-3",number:t.ticket_number,winningNumber:t.round.winning_number,matchedPositions:t.matched_positions,matchCount:t.match_count,hasResult:!0,size:"sm"})]})});Xt.displayName="WinnerCard";const Ln=({lotteryType:t})=>{const{t:s,i18n:n}=L(),r=a.useRef(null),i=Fa(n.language),[l,c]=a.useState(!0),[m,o]=a.useState(!0),[d,p]=a.use
2State(!0),{data:f,isFetching:x}=ms({page:1,per_page:Wt,lottery_type:t}),_=a.useMemo(()=>Fn(f?.data?.items??[]),[f?.data?.items]),y=a.useCallback(h=>{c(h.isBeginning),o(h.isEnd),p(!!h.isLocked)},[]),g=a.useCallback(()=>{const h=r.current;if(!h||h.destroyed)return;h.update();const A=Math.max(0,(h.snapGrid?.length??h.slides.length)-1);h.activeIndex>A&&h.slideTo(A,0),y(h)},[y]);a.useEffect(()=>{g()},[_,i,t,g]);const k=_.length>0&&!d,E=x||l||d,v=x||m||d,j=()=>{const h=r.current;h&&!E&&h.slidePrev()},b=()=>{const h=r.current;h&&!v&&h.slideNext()};return e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsx(pe,{prefix:s("lottery_current_round_winners_prefix"),highlight:s("lottery_current_round_winners_highlight")}),k?e.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[e.jsx(ut,{label:s("previous"),disabled:E,onClick:j}),e.jsx(ut,{label:s("next"),disabled:v,onClick:b,flip:!0})]}):null]}),_.length===0&&!x?e.jsx("div",{className:"rounded-xl border border-shade-dark-11 bg-shade-dark-2 p-6 text-center",children:e.jsx("p",{className:"text-sm text-shade-light-6",children:s("lottery_no_winners_note")})}):e.jsx(Ve,{dir:i,onSwiper:h=>{r.current=h,y(h)},onSlideChange:y,onTransitionEnd:y,onUpdate:y,onResize:y,onReachBeginning:()=>c(!0),onReachEnd:()=>o(!0),onFromEdge:y,slidesPerView:1.15,spaceBetween:12,breakpoints:Sn,watchOverflow:!0,resistance:!0,resistanceRatio:0,observer:!0,observeParents:!0,updateOnWindowResize:!0,className:u("w-full! overflow-hidden",x&&"opacity-70"),children:_.map((h,A)=>e.jsx(Ue,{className:"h-auto!",children:e.jsx(Xt,{winner:h})},`${h.round.round_id}-${h.ticket_number}-${A}`))},`lottery-winners-${t}-${i}`)]})},An="text-[10px] font-semibold tracking-[0.14em] text-shade-light-4 uppercase",Tn=({drawDate:t})=>{const{t:s}=L();return e.jsxs("div",{className:"mt-3 flex items-center gap-2.5 rounded-lg border border-shade-dark-11 bg-shade-dark-2/45 px-4 py-2.5 md:mt-0",children:[e.jsx(yt,{"aria-hidden":!0,className:"size-4 shrink-0 text-(--mui-palette-primary-main)/75"}),e.jsx("span",{className:An,children:s("lottery_draw_date")}),e.jsx("span",{"aria-hidden":!0,className:"text-shade-light-6/35",children:"·"}),e.jsx("time",{dateTime:t,className:"text-sm font-semibold text-shade-light-9",children:we(t,!0)})]})},Rn=({tickets:t,drawDate:s,emptyAction:n})=>{const{t:r}=L();return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col space-y-2.5 md:flex-row md:items-center md:justify-between",children:[e.jsx(pe,{prefix:r("lottery_active_tickets_prefix"),highlight:r("lottery_active_tickets_highlight")}),s?e.jsx(Tn,{drawDate:s}):null]}),e.jsx(qt,{rows:t.rows,listKey:t.listKey,hasNextPage:t.hasNextPage,onLoadMore:t.loadMore,showDraw:!1,isLoading:t.is
2Fetching,isLoadingMore:t.isLoadingMore,emptyAction:n})]})},Bn=({tickets:t})=>{const{t:s}=L(),{winningNumber:n,ticketCount:r,roundNo:i,roundId:l,drawDate:c,isDrawCompleted:m,totalWinningsCents:o,currency:d}=t.summary;return e.jsxs("section",{className:"space-y-4",children:[e.jsx(pe,{prefix:s("lottery_my_draws_prefix"),highlight:s("lottery_my_draws_highlight")}),e.jsx(xn,{filters:t.filters}),n?e.jsx(dn,{roundNo:i,roundId:l,ticketCount:r,winningNumber:n,drawDate:c,isDrawCompleted:m,totalWinningsCents:o,currency:d}):null,e.jsx(qt,{rows:t.rows,listKey:t.listKey,hasNextPage:t.hasNextPage,onLoadMore:t.loadMore,showDraw:!0,isLoading:t.isFetching,isLoadingMore:t.isLoadingMore})]})},Mn=({isAuthenticated:t,onLogin:s,tabs:n,lotteryType:r,onBuy:i})=>{const{t:l}=L(),c=X()===!0,{sectionContainerVariants:m,sectionVariants:o}=a.useMemo(()=>({sectionContainerVariants:xa(c),sectionVariants:ha(c)}),[c]),d=bn({isAuthenticated:t,lotteryType:r}),p=a.useMemo(()=>n.find(k=>k.lottery_type===r),[r,n]),f=He(p),x=d.active.rows[0]?.drawDate??null,_=f?.config?.ticket_currency??f?.config?.base_currency??"TRY",{isBuyDisabled:y}=At(p,f,t),g=e.jsx(V,{type:"button",variant:y?"outlined":"contained",disabled:y,startIcon:e.jsx(me,{"aria-hidden":!0,className:"size-4!"}),onClick:()=>i(r),className:"transition-[background-color,box-shadow,border-color,color,transform]! duration-150! not-disabled:active:scale-[0.97] motion-reduce:transition-none!",children:l("lottery_get_your_ticket_for",{price:q(Ce(f),_,{compact:!0})})});return t?e.jsxs(S.div,{variants:m,initial:"hidden",animate:"visible",className:"space-y-8",children:[e.jsx(S.div,{variants:o,children:e.jsx(Rn,{tickets:d.active,drawDate:x,emptyAction:g})}),e.jsx(S.div,{variants:o,children:e.jsx(Nn,{lotteryType:r})}),e.jsx(S.div,{variants:o,children:e.jsx(nn,{})}),e.jsx(S.div,{variants:o,children:e.jsx(Bn,{tickets:d.draws})}),e.jsx(S.div,{variants:o,children:e.jsx(Ln,{lotteryType:r})})]}):e.jsx(bt,{data:"lottery_login_to_see_tickets",message:"lottery_login_to_see_tickets_note",actionSection:e.jsx(V,{variant:"contained",color:"primary",onClick:s,children:l("login")})})},Dn=a.lazy(()=>pt(()=>import("./20261009-201932-index-Cw8uLHXj.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))),In=a.lazy(()=>pt(()=>import("./20261009-201932-index-AftPzbmO.js"),__vite__mapDeps([41,1,3,4,5,6,7,8,2,9,10,11,21,16,12,13,14,15,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40]))),zn=()=>{const{t}=L(),s=Ye(us),n=Ye(ps),r=X(),{openDialog:i}=ns(),{isPhoneVerificationRequired:l,isEmailVerificationRequired:c}=rs(),{tabs:m,isInitialLoading:o,hasTabs:d,showUnavailable:p,lotteryType:f,contentTab:x,isRulesTab:_,disabled:y,comingSoon:g,accessDenied:k,selectLotteryTypeTab:E,openRulesTab:v,openTicketsTab:j,getBuyContext:b,handleRoundExpired:h,serverNow:A,toClientTime:R}=va(),[O,U]=a.useState(null),[K,D]=a.useState(null),[F,B]=a.useState(null),T=!!s,I=r===!0,{buyTab:W,buyRound:J}=b(O),$=Ca({currency:K?.currency??"",requiredCents:K?.requiredCents??0}),{evaluate:se}=$,{headerBlockVariants:le,shellVariants:C,tabBarMotion:G,tabContentTransition:Ee}=a.useMemo(()=>({headerBlockVariants:aa(I),shellVariants:na(I),tabBarMotion:pa(I),tabContentTransition:ra(I)}),[I]),xe=a.useCallback(()=>i("login"),[i]),ne=a.useCallback(H=>{if(!s){i("login");return}const{buyRound:Y}=b(H);if(!Y)return;const he=Xs(Y.config),oe=Gs(he,n,{isPhoneProviderEnabled:l,isEmailProviderEnabled:c});if(oe){B(oe);return}const fe=Y.config.ticket_currency??Y.config.base_currency??"TRY",ge=Ce(Y),N=se(fe,ge);if(N!=="none"){D({currency:fe,requiredCents:ge,issue:N});return}U(H)},[se,b,c,l,i,s,n]);if(k)return e.jsx(vs,{to:"/",replace:!0});if(o)return e.jsx("div",{className:"main-container space-y-6! pt-6 pb-6",children:e.jsx(Us,{})});const ae=e.jsx(as,{title:t("coming_soon_vip"),subtitle:t("lottery_coming_soon_subtitle")});return y||g?e.jsx("div",{className:"main-container py-8",children:ae}):e.jsxs(S.div,{initial:"hidden",animate:"visible",variants:sa,children:[e.jsxs(S.div,{className:"main-container space-y-6! overflow-x-hidden pt-6 pb-6",children:[e.jsxs(S.div,{variants:le,className:"will-change-transform",style:{transformOrigin:"50% 50%"},children:[p?ae:null,d?e.jsx(tn,{tabs:m,isAuthenticated:T,onBuy:ne,onCountdownExpired:h,serverNow:A,toClientTime:R}):null]}),d?e.jsxs(S.div,{variants:C,className:"space-y-4! md:space-y-8!",children:[e.jsx(S.div,{...G,className:"-mx-4 px-4 will-change-transform md:mx-0 md:px-0",
2style:{transformOrigin:"50% 0%"},children:e.jsx("div",{className:"w-full overflow-x-auto overscroll-contain pb-0.5 [-webkit-overflow-scrolling:touch] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[e.jsx("div",{className:"min-w-0 flex-1 md:max-w-md lg:max-w-lg",children:e.jsx(Ze,{className:"bg-shade-dark-5!",children:m.map(H=>{const Y=$e(H.lottery_type);return e.jsx(Ze.Tab,{title:t(ue[H.lottery_type]),Icon:Y,isActive:!_&&f===H.lottery_type,onClick:()=>E(H.lottery_type)},H.lottery_type)})})}),e.jsx(V,{type:"button",variant:"contained",color:"secondary",startIcon:e.jsx(wt,{"aria-hidden":!0,className:"size-4!"}),onClick:v,className:"h-[45px]! shrink-0 px-3! text-sm! font-bold! normal-case! md:px-4!",children:t("rules")})]})})}),e.jsx(ie,{mode:"wait",children:e.jsx(S.div,{className:I?void 0:"will-change-transform",initial:I?!1:{opacity:0,y:18},animate:{opacity:1,y:0},exit:I?{opacity:0}:{opacity:0,y:-8,scale:.985},transition:Ee,children:_?e.jsx(a.Suspense,{fallback:null,children:e.jsx(Dn,{})}):e.jsx(Mn,{isAuthenticated:T,onLogin:xe,tabs:m,lotteryType:f,onBuy:ne})},x)})]}):null]}),O&&W&&J?e.jsx(a.Suspense,{fallback:null,children:e.jsx(In,{open:!0,onClose:()=>U(null),onViewMyTickets:j,tab:W,round:J})}):null,K?e.jsx(fa,{open:!0,onClose:()=>D(null),onDeposit:()=>{D(null),$.goToDeposit()},issue:K.issue,roundCurrency:K.currency,selectedCurrency:$.selectedCurrency,requiredFormatted:$.requiredFormatted,walletDisplay:$.walletDisplay}):null,F?e.jsx(ba,{open:!0,onClose:()=>B(null),blockReason:F}):null]})},vr=Object.freeze(Object.defineProperty({__proto__:null,default:zn},Symbol.toStringTag,{value:"Module"}));export{Me as F,nn as H,pe as L,te as N,ee as T,xa as a,Pa as b,Ce as c,Js as d,jr as e,q as f,ha as g,wr as h,Bt as i,br as j,fa as k,vr as l,_r as r,Ca 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.