1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="84b34835-87a3-1409-1773-ad4830d5a405")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4972,e=>{"use strict";var t=e.i(887720),a=e.i(437761),s=e.i(497719);e.i(169873);var r=e.i(319414),i=e.i(85945);let n=(0,a.createContext)(null),l=({children:e})=>{let[s,r]=(0,a.useState)(!0),[i,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=e=>{e.matches&&l(!1)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,t.jsx)(n.Provider,{value:{expanded:s,mobileOpen:i,toggle:()=>r(e=>!e),setMobileOpen:l},children:e})};function o(){let e=(0,a.useContext)(n);if(!e)throw Error("useSidebarContext must be used within SidebarProvider");return e}var c=e.i(891849);let d=({children:e})=>{let[s,r]=(0,a.useState)(!1),i=(0,a.useMemo)(()=>({isInGame:s,setIsInGame:r}),[s]);return(0,t.jsx)(c.GameSessionContext.Provider,{value:i,children:e})};var m=e.i(298936),x=e.i(866927),p=e.i(30422);let u=(0,p.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var h=e.i(820180),f=e.i(98e4);let b=[{type:"daily",label:"Carrera Diaria",prize:"$25K",href:"/races/daily"},{type:"weekly",label:"Carrera Semanal",prize:"$100K",href:"/races/weekly"},{type:"monthly",label:"Carrera Mensual",prize:"$500K",href:"/races/monthly"}],g=({expiresAt:e})=>{let[s,r]=(0,a.useState)("");return(0,a.useEffect)(()=>{let t=()=>r(function(e){let t=Math.floor(Math.max(0,new Date(e).getTime()-Date.now())/1e3),a=Math.floor(t/86400);if(a>=1)return`${a}d`;let s=Math.floor(t/3600),r=Math.floor(t%3600/60);return`${s}:${String(r).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}(e));t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),(0,t.jsx)("span",{role:"timer",className:"inline-block min-w-[3ch] rounded-md bg-[#2b2e3a] px-2 py-0.5 text-center text-[11px] font-extrabold italic tabular-nums text-white shadow-[0_3px_0_0_var(--color-amber-300)]",children:s})};var v=e.i(689918),j=e.i(883707);let y=(0,p.default)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);var N=e.i(446523);let w=(0,N.default)("filled","shield-check-filled","ShieldCheckFilled",[["path",{d:"M11.998 2l.118 .007l.059 .008l.061 .013l.111 .034a.993 .993 0 0 1 .217 .112l.104 .082l.255 .218a11 11 0 0 0 7.189 2.537l.342 -.01a1 1 0 0 1 1.005 .717a13 13 0 0 1 -9.208 16.25a1 1 0 0 1 -.502 0a13 13 0 0 1 -9.209 -16.25a1 1 0 0 1 1.005 -.717a11 11 0 0 0 7.531 -2.527l.263 -.225l.096 -.075a.993 .993 0 0 1 .217 -.112l.112 -.034a.97 .97 0 0 1 .119 -.021l.115 -.007zm3.71 7.293a1 1 0 0 0 -1.415 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z",key:"svg-0"}]]),k=(0,N.default)("filled","globe-filled","GlobeFilled",[["path",{d:"M11 4a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z",key:"svg-0"}],["path",{d:"M14.133 1.502a1 1 0 0 1 1.365 -.369a9.015 9.015 0 1 1 -10.404 14.622a1 1 0 1 1 1.312 -1.51a7.015 7.015 0 1 0 8.096 -11.378a1 1 0 0 1 -.369 -1.365z",key:"svg-1"}],["path",{d:"M11 16a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -1.993 .117l-.007 -.117v-4a1 1 0 0 1 1 -1z",key:"svg-2"}],["path",{d:"M15 20a1 1 0 0 1 .117 1.993l-.117 .007h-8a1 1 0 0 1 -.117 -1.993l.117 -.007h8z",key:"svg-3"}]]);var C=e.i(136689),S=e.i(604765),E=e.i(382474),z=e.i(40612),M=e.i(629402),A=e.i(675758),T=e.i(473199);let L="rounded-md border border-[var(--overlay-tinted-10)] bg-[rgba(127,136,189,0.05)]",P=[{key:"casino-slots",label:"Ranuras",href:"/casino/slots",icon:(0,t.jsx)(S.CasinoSlotsIcon,{className:"size-5"})},{key:"casino-blackjack",label:"Blackjack",href:"/casino/blackjack",icon:(0,t.jsx)(E.Casino
2BlackjackIcon,{className:"size-5"})},{key:"casino-roulette",label:"Ruleta",href:"/casino/roulette",icon:(0,t.jsx)(z.CasinoRouletteIcon,{className:"size-5"})},{key:"casino-baccarat",label:"Baccarat",href:"/casino/baccarat",icon:(0,t.jsx)(M.CasinoBaccaratIcon,{className:"size-5"})},{key:"casino-game-shows",label:C.CASINO_GROUPS["game-shows"].sidebarLabel,href:"/casino/game-shows",icon:(0,t.jsx)(A.CasinoGameShowsIcon,{className:"size-5"})},{key:"casino-live",label:"Casino en vivo",href:"/casino/live",icon:(0,t.jsx)(T.CasinoLiveIcon,{className:"size-5"})}],I=[{key:"home",label:"Inicio",icon:(0,t.jsx)(f.IconMenuCrown,{className:"size-4"}),activeIcon:(0,t.jsx)(f.IconMenuCrown,{className:"size-4"}),href:"/"},{key:"favorites",label:"Favoritos",icon:(0,t.jsx)(f.IconMenuFavorites,{className:"size-4"}),activeIcon:(0,t.jsx)(f.IconMenuFavorites,{className:"size-4"}),href:"/favorites"},{key:"recently-played",label:"Jugados recientemente",icon:(0,t.jsx)(f.IconMenuHistory,{className:"size-4"}),activeIcon:(0,t.jsx)(f.IconMenuHistory,{className:"size-4"}),href:"/recently-played"},{key:"new-releases",label:"Nuevos lanzamientos",icon:(0,t.jsx)(f.IconMenuSparkles,{className:"size-4"}),activeIcon:(0,t.jsx)(f.IconMenuSparkles,{className:"size-4"}),href:"/casino/new-releases"},{key:"divider-accordions",label:"",divider:!0},{key:"casino-section",label:"Casino",icon:(0,t.jsx)(f.IconCasinoCherries,{className:"size-4"}),className:L,defaultExpanded:!0,children:P},{key:"sports-section",label:"Deportes",icon:(0,t.jsx)(f.IconSportsBall,{className:"size-4"}),className:L,children:[{key:"sports-football",label:"Fútbol",href:"/sports/football"},{key:"sports-basketball",label:"Baloncesto",href:"/sports/basketball"},{key:"sports-tennis",label:"Tenis",href:"/sports/tennis"},{key:"sports-baseball",label:"Béisbol",href:"/sports/baseball"},{key:"sports-volleyball",label:"Voleibol",href:"/sports/volleyball"},{key:"sports-esports",label:"e-Sports",href:"/sports/esports"},{key:"live-events",label:"En vivo",href:"/sports/live"},{key:"starting-soon",label:"Próximos partidos",href:"/sports/upcoming"},{key:"sports-history",label:"Historial",href:"/sports/betting-history"}]},{key:"divider-accordions-end",label:"",divider:!0}],R=[{key:"affiliates",label:"Afiliados",icon:(0,t.jsx)(y,{className:"size-4"}),activeIcon:(0,t.jsx)(y,{className:"size-4"}),href:"/afiliados"},{key:"responsible-gambling",label:"Juego Responsable",icon:(0,t.jsx)(v.ShieldCheck,{className:"size-4"}),activeIcon:(0,t.jsx)(w,{className:"size-4"}),href:"/responsible-gambling/gannar-smart"},{key:"blog",label:"Blog",icon:(0,t.jsx)(j.FileText,{className:"size-4"}),activeIcon:(0,t.jsx)(j.FileText,{className:"size-4"}),href:"/blog"},{key:"language",label:"Idioma: Español",icon:(0,t.jsx)(k,{className:"size-4 text-[#E8E5FF]"}),trailing:(0,t.jsx)("svg",{viewBox:"0 0 10 15",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"w-[8px] h-[10px] text-[#E8E5FF] rotate-90",children:(0,t.jsx)("path",{d:"m1.257 13.258 6.589-6-6.59-6"})}),className:"cursor-default hover:bg-transparent"}];function _(e,t,a){let[s,r]=e.split("?"),i=e=>e.length>1?e.replace(/\/+$/,""):e;if(i(s)!==i(t))return!1;if(r){for(let[e,t]of new URLSearchParams(r))if(a.get(e)!==t)return!1;return!0}return!("/casino"===i(s)&&a.get("tab"))}let D=({desktopHidden:e=!1,documentScroll:r=!1})=>{let n,{expanded:l,toggle:c,mobileOpen:d,setMobileOpen:p}=o(),v=(0,s.usePathname)(),j=(0,s.useSearchParams)(),{data:y}=(n=(0,a.useMemo)(()=>b.map(e=>({...e,expiresAt:((e,t=new Date)=>{let a=new Date(t);if("daily"===e)a.setHours(24,0,0,0);else if("weekly"===e){let e=(7-a.getDay())%7||7;a.setDate(a.getDate()+e),a.setHours(0,0,0,0)}else a.setMonth(a.getMonth()+1,1),a.setHours(0,0,0,0);return a.toISOString()})(e.type)})),[]),(0,a.useMemo)(()=>({data:n,isMock:!0}),[n])),N={key:"promotions-section",label:"Promociones",icon:(0,t.jsx)(f.IconMenuPromotions,{className:"size-4"}),className:"rounded-md border border-[var(--overlay-tinted-10)] bg-[rgba(127,136,189,0.05)]",defaultExpanded:!0,flushChildren:!0,children:[{key:"vip",label:"VIP",href:"/vip",icon:(0,t.jsx)(f.IconMenuVipTrophy,{className:"!size-6 drop-shadow-[0_0_5px_rgba(204,148,249,0.5)]"}),trailing:(0,t.jsx)("span",{className:"rounded border border-primary/60 px-1.5 py-0.5 text-[9px] font-bold italic text-white",children:"EXCLUSIVO"})},...y.map(e=>({key:`race-${e.type}`,label:e.prize,sublabel:e.label,href:e.href,icon:(0,t.jsx)(f.IconMenuRaceLaurel,{className:"!size-6"}),trailing:(0,t.jsx)(g,{expiresAt:e.expiresAt})})),{key:"challenges",label:"DesafÃos",href:"/challenges",icon:(0,t.jsx)(u,{className:"size-[18px]"})},{key:"promotions",label:"Promociones",href:"/promotions",icon:(0,t.jsx)(f.IconMenuPromotions,{className:"size-[18px]"})}]},w={key:"rewards",label:"Recompensas",href:"/rewards",icon:(0,t.jsx)(x.Gift,{className:"size-4"})},k=[...I.flatMap(e=>"sports-section"===e.key?[e,N,w]:[e]),...R].map(e=>{let t=e.children?.map(e=>({...e,active:e.href?_(e.href,v,j):e.active})),a=e.active;return"casino-section"===e.key?v.startsWith("/casino")&&(a=!0):"sports-section"===e.key?v.startsWith("/sports")&&(a=!0):e.href&&(a=_(e.href,v,j)),t?{...e,active:a,children:t}:{...e,active:a}}),C=(0,t.jsx)(h.Sidebar,{className:"bg-sidebar border-[rgba(232,229,255,0.05)]",collapsed:!l,onCollapsedChange:c,mobileOpen:d,onMobileOpenChange:p,mobileBottomInset:67,mobileTopInset:68,showMobileHeader:!1,mobileDismissExcludeSelector:"[data-mobile-nav-menu]",items:k,renderLink:({href:e,className:a,children:s,onClick:r})=>(0,t.jsx)(m.default,{href:e,prefetch:!1,className:a,onClick:r,children:s})});return(0,t.jsx)("div",{"data-testid":"app-sidebar-shell","aria-hidden":!!e||void 0,inert:!!e||void 0,className:(0,i.cn)("contents desktop:block desktop:shrink-0 desktop:overflow-hidden",r?"desktop:sticky desktop:top-[var(--app-header-height)] desktop:h-[calc(100dvh-var(--app-header-height))] desktop:self-start":"desktop:h-full","desktop:transition-[max-width,opacity] desktop:duration-[650ms] desktop:ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:desktop:transition-none",e?"desktop:pointer-events-none desktop:max-w-0 desktop:opacity-0":"desktop:max-w-[250px] desktop:opacity-100"),children:C})};var B=e.i(709598),O=e.i(683463),F=e.i(816608),U=e.i(554456),H=e.i(121458),$=e.i(372802),G=e.i(982189),W=e.i(649667),V=e.i(579029),J=e.i(389672),q=e.i(911173),K=e.i(282904),Y=e.i(290521);let Q=(0,N.default)("filled","coin-filled","CoinFilled",[["path",{d:"M17 3.34a10 10 0 1 1 -15 8.66l.005
2-.324a10 10 0 0 1 14.995 -8.336zm-5 2.66a1 1 0 0 0 -1 1a3 3 0 1 0 0 6v2a1.024 1.024 0 0 1 -.866 -.398l-.068 -.101a1 1 0 0 0 -1.732 .998a3 3 0 0 0 2.505 1.5h.161a1 1 0 0 0 .883 .994l.117 .007a1 1 0 0 0 1 -1l.176 -.005a3 3 0 0 0 -.176 -5.995v-2c.358 -.012 .671 .14 .866 .398l.068 .101a1 1 0 0 0 1.732 -.998a3 3 0 0 0 -2.505 -1.501h-.161a1 1 0 0 0 -1 -1zm1 7a1 1 0 0 1 0 2v-2zm-2 -4v2a1 1 0 0 1 0 -2z",key:"svg-0"}]]);var X=e.i(349277),Z=e.i(948188);let ee=(0,p.default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var et=e.i(836179),ea=e.i(420299),es=e.i(965468),er=e.i(828693);e.i(350236);var ei=e.i(451674),en=e.i(842609),el=e.i(293020),eo=e.i(71438),ec=e.i(709136);let ed=()=>{let{openModal:e}=(0,Y.useModal)(),{isInGame:a}=(0,c.useGameSession)(),{status:s}=(0,V.useSession)(),r=function({enabled:e=!0}={}){let t=J.trpc.useUtils();return(0,ec.useEventSource)(e?"/api/sse/me/wallet":null,"wallet.changed",()=>{t.wallet.getBalance.invalidate()},{beforeConnect:eo.preparePrivateSseSession,reconnectManually:!0,onOpen:()=>t.wallet.getBalance.invalidate()})}({enabled:"authenticated"===s}),{data:n,isLoading:l,error:o}=J.trpc.wallet.getBalance.useQuery(void 0,{staleTime:3e4,refetchOnWindowFocus:!0,refetchInterval:!r.isConnected&&3e4,refetchIntervalInBackground:!1,retry:!1}),{data:d}=(0,en.useDisplayRates)(),{currency:m}=(0,ei.useDisplayCurrency)(),{target:x,kycBlocked:p}=(0,ea.useOnboardingTarget)();if(a)return(0,t.jsxs)("div",{role:"status","aria-label":"Estado del saldo: En juego","aria-live":"polite","data-testid":"balance-chip",className:(0,i.cn)("flex h-[48px] w-[105px] min-w-0 items-center justify-between rounded-md px-[15px] min-[450px]:w-[134px] desktop:w-auto desktop:min-w-[95px] desktop:justify-start max-[450px]:px-[10px]","bg-[#262c52] text-foreground font-medium"),children:[(0,t.jsx)("span",{"data-testid":"balance-in-game",className:"truncate text-[13px] leading-none",children:"En juego"}),(0,t.jsx)(X.ChevronDown,{"data-testid":"balance-in-game-chevron","aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground desktop:hidden"})]});if(l)return(0,t.jsx)(es.Skeleton,{className:"h-[48px] w-24 rounded-md"});if(o&&(0,et.isErrorCode)(o,et.ErrorCode.ONBOARDING_NOT_COMPLETED))return x?(0,t.jsxs)(U.Button,{type:"button",variant:"secondary",size:"xl",onClick:()=>e(x),"aria-label":"Completa tu registro para ver el saldo",className:"px-[15px] gap-1.5",children:[(0,t.jsx)(Z.Lock,{className:"size-3 text-muted-foreground","aria-hidden":"true"}),"Completar registro"]}):null;if(!n)return null;if(p)return(0,t.jsxs)(U.Button,{type:"button",variant:"secondary",size:"xl",onClick:()=>e("kyc-onboarding"),"aria-label":"Completa tu perfil: verificá tu identidad","data-testid":"balance-kyc-blocked",className:"px-[15px] gap-1.5",children:[(0,t.jsx)(Z.Lock,{className:"size-3 text-muted-foreground","aria-hidden":"true"}),"Completar perfil"]});let u=m??n.currency,h=u===n.currency,f=h||!d?(0,er.formatMoney)(n.totalBalance):(0,el.convertAndFormat)(n.totalBalance.value,u,d)??(0,er.formatMoney)(n.totalBalance),b=f.replace(u,"").trim(),g=["USD","USDT"].includes(u.toUpperCase())?`$${b}`:f,v=h?"":"â ";return(0,t.jsxs)($.Popover,{children:[(0,t.jsx)($.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-label":"Ver saldo y acciones de cuenta","data-testid":"balance-chip",className:(0,i.cn)("flex h-[48px] w-auto min-w-0 desktop:min-w-[95px] items-center gap-1.5 rounded-md px-[15px] max-[450px]:px-[10px]","bg-[#262c52] text-foreground font-medium","hover:bg-[#262c52]/80 transition-colors"),children:[(0,t.jsxs)("span",{"data-testid":"balance-display",className:"min-w-0 truncate text-[13px] leading-none",children:[v,(0,t.jsx)("span",{"data-testid":"balance-mobile-display",children:g})]}),(0,t.jsx)(X.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground max-[375px]:hidden"})]})}),(0,t.jsxs)($.PopoverContent,{align:"start",className:"flex w-[270px] max-w-[330px] flex-col gap-2 rounded-[6px] border border-solid border-white/10 bg-[#191E39] p-2",children:[(0,t.jsxs)("div",{"data-testid":"balance-breakdown",className:"rounded-[6px] border border-success bg-success/20 px-4 py-4",children:[(0,t.jsx)("span",{className:"text-[13px] font-medium text-success",children:"Saldo principal"}),(0,t.jsxs)("p",{className:"mt-1.5 text-lg font-semibold leading-none text-foreground",children:[v,f]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1.5 py-2 text-[13px] font-medium text-foreground",children:["Mostrando moneda en",(0,t.jsx)(Q,{className:"size-4 text-success","aria-hidden":"true"}),u]}),(0,t.jsxs)(U.Button,{type:"button",variant:"secondary",onClick:()=>e("wallet-settings"),className:"h-10 w-full justify-start gap-2 rounded-[6px] bg-[#262c52] px-3 text-[13px] font-semibold hover:bg-[#30375f]",children:[(0,t.jsx)(ee,{className:"size-4 text-[#8991bd]","aria-hidden":"true"}),"Configuración de cartera"]})]})]})},em=(0,p.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),ex=(0,p.default)("dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]),ep=(0,p.default)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);var eu=e.i(27309),eh=e.i(686410),ef=e.i(225408),eb=e.i(853535),eg=e.i(175936);let ev="/assets/rainbet-parity/vip-ranks",ej=`${ev}/vip-rank-bronze.webp`,ey=()=>(0,t.jsx)("hr",{className:"border-t border-white/5"}),eN=({open:e,onOpenChange:a})=>{let{data:s}=(0,V.useSession)(),r=J.trpc.users.getProfile.useQuery(void 0,{enabled:e}),{stats:i}=((e=!0)=>{var t;let a=J.trpc.users.getProfile.useQuery(void 0,{enabled:e}),s=J.trpc.playerProgress.heroProgress.useQuery(void 0,{enabled:e,staleTime:3e4}),r=s.data,i=r?.currency??r?.wagered.currency??et.DEFAULT_PLAYER_CURRENCY;return{stats:{memberSince:a.data?.createdAt??null,totalBets:r?.totalBets??0,totalWagered:r?.wagered??null,currentRankLabel:r?.currentRank?.label??"Sin rango",nextRankLabel:r?.nextRank?.label??r?.currentRank?.label??"",nextRankAsset:(t=r?.nextRank?.key??r?.currentRank?.key)?t.startsWith("silver")?`${ev}/vip-rank-silver.webp`:t.startsWith("gold")?`${ev}/vip-rank-gold.webp`:ej:ej,progressPct:r?.progressPercent??0,remainingToNextRank:r?.remainingToNextRank??{value:"0",currency:i}},isRankMock:!1,isLoading:a.isLoading||s.isLoading}})(e),n=r.data,l=n?.accountId??s?.user?.id??"",o=n?.username||s?.user?.email?.split("@")[0]||"Jugador";return(0,t.jsx)(ef.Dialog,{open:e,onOpenChange:a,children:(0,t.jsx)(ef.DialogContent,{className:"w-[calc(100%-2rem)] max-w-[444px] gap-0 border-white/5 bg-foundation-500 p-0",children:(0,t.jsxs)("div",{"data-testid":"profile-modal-body",className:"flex min-w-0 flex-col gap-5 pb-6 pt-5",children:[(0,t.jsx)(ef.DialogTitle,{className:"px-6 text-xl font-semibold text-foreground",children:"Perfil"}),(0,t.jsx)(ey,{}),(0,t.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden px-6",children:[(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1",children:[(0,t.jsx)("b",{className:"shrink-0 text-sm font-medium text-muted-foreground",children:"ID:"}),(0,t.jsx)("span",{"data-testid":"profile-account-id",className:"inline-block w-full truncate text-sm font-medium text-foreground",children:l})]}),(0,t.jsx)(eh.CopyButton,{value:l,size:"xs"})]}),(0,t.jsx)(ey,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 px-6",children:[(0,t.jsxs)("div",{"data-testid":"profile-name-row",className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[(0,t.jsxs)("div",{"data-testid":"profile-identity",className:"flex min-w-0 flex-col gap-2",children:[(0,t.jsx)("h3",{className:"truncate text-lg font-semibold text-foreground",children:o}),i.memberSince&&(0,t.jsxs)("p",{className:"flex flex-wrap gap-1 text-xs font-medium text-muted-foreground",children:["Miembro desde",(0,t.jsx)("time",{dateTime:i.memberSince,children:(0,eg.formatMemberSince)(i.memberSince)})]})]}),(0,t.jsxs)("div",{"data-testid":"profile-remaining",className:"flex shrink-0 flex-wrap items-center gap-1 text-sm sm:justify-end sm:text-right",children:[(0,t.jsx)("span",{className:"font-medium tabular-nums text-foreground",children:(0,er.formatMoney)(i.remainingToNextRank)}
2),(0,t.jsx)("span",{className:"font-medium text-foreground/70",children:"restante"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(eb.Progress,{value:i.progressPct,className:"h-5 rounded-full border-[5px] border-solid border-[#333852] bg-[#474B63] [&>[data-slot=indicator]]:bg-gradient-to-b [&>[data-slot=indicator]]:from-[#52648C] [&>[data-slot=indicator]]:to-[#6B7EA8]"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{"data-testid":"profile-current-rank",className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(ep,{className:"size-5 shrink-0 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-sm font-semibold uppercase text-muted-foreground",children:i.currentRankLabel})]}),(0,t.jsxs)("div",{"data-testid":"profile-next-rank",className:"flex min-w-0 items-center justify-end gap-2",children:[(0,t.jsx)(O.default,{src:i.nextRankAsset,alt:i.nextRankLabel,width:25,height:25,className:"w-[25px] shrink-0"}),(0,t.jsx)("span",{className:"truncate text-sm font-semibold uppercase text-warning",children:i.nextRankLabel})]})]})]})]}),(0,t.jsx)(ey,{}),(0,t.jsx)("div",{className:"px-6",children:(0,t.jsxs)("ul",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("li",{className:"flex min-h-[84px] flex-col gap-2 rounded-lg bg-foundation-400 p-4",children:[(0,t.jsxs)("h5",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(ex,{className:"size-4 shrink-0","aria-hidden":!0}),"Apuestas Totales"]}),(0,t.jsx)("p",{className:"mt-auto text-base font-semibold tabular-nums text-foreground",children:i.totalBets})]}),(0,t.jsxs)("li",{className:"flex min-h-[84px] flex-col gap-2 rounded-lg bg-foundation-400 p-4",children:[(0,t.jsxs)("h5",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(eu.Wallet,{className:"size-4 shrink-0","aria-hidden":!0}),"Total Apostado"]}),(0,t.jsx)("p",{className:"mt-auto text-base font-semibold tabular-nums text-foreground",children:i.totalWagered?(0,er.formatMoney)(i.totalWagered):"â"})]})]})})]})})})},ew=(0,p.default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);var ek=e.i(274792),ek=ek,eC=e.i(732127);let eS=[{label:"Perfil",action:"profile",icon:(0,p.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},{label:"Apuestas",href:"/bets",icon:eC.Spade},{label:"Transacciones",href:"/transactions",icon:ew},{label:"Configuración",href:"/settings",icon:ek.default}],eE="flex h-8 w-full cursor-pointer items-center gap-[10px] rounded-md px-[10px] text-sm text-white transition-colors hover:bg-brand-400",ez=({className:e})=>{let[s,r]=(0,a.useState)(!1),[n,l]=(0,a.useState)(!1),o=J.trpc.auth.logout.useMutation({onSettled:()=>(0,V.signOut)({redirectTo:"/"})});return(0,t.jsxs)($.Popover,{open:n,onOpenChange:l,children:[(0,t.jsx)($.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-label":"Menú de usuario",className:(0,i.cn)("group flex h-[48px] w-[66px] cursor-pointer items-center justify-center gap-[5px] rounded-none text-sm font-medium text-white transition-colors hover:bg-secondary-hover",e),children:[(0,t.jsx)("span",{"data-testid":"user-avatar",className:"flex size-8 items-center justify-center rounded-full border border-border bg-accent",children:(0,t.jsx)(f.IconUserFilled,{className:"size-4 text-white"})}),(0,t.jsx)(X.ChevronDown,{className:"size-3 text-white/50 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}),(0,t.jsxs)($.PopoverContent,{align:"end",collisionPadding:{right:60,left:8},className:"flex w-auto min-w-[170px] max-w-[330px] flex-col gap-1 rounded-md border-white/10 bg-[#262c52] p-2 shadow-[0_2px_5px_0_rgba(0,0,0,0.15),0_1px_1px_0_rgba(0,0,0,0.05)]",children:[eS.map(({label:e,href:a,action:s,icon:i})=>"profile"===s?(0,t.jsxs)("button",{type:"button",onClick:()=>{l(!1),r(!0)},className:eE,children:[(0,t.jsx)(i,{className:"h-4 w-4"}),e]},e):(0,t.jsxs)(m.default,{href:a,prefetch:!1,onClick:()=>l(!1),className:eE,children:[(0,t.jsx)(i,{className:"h-4 w-4"}),e]},e)),(0,t.jsxs)("button",{type:"button",className:`${eE} disabled:pointer-events-none disabled:opacity-50`,onClick:()=>{l(!1),o.mutate()},disabled:o.isPending,children:[(0,t.jsx)(em,{className:"h-4 w-4"}),"Cerrar sesión"]})]}),(0,t.jsx)(eN,{open:s,onOpenChange:r})]})};var eM=e.i(531779);function eA(){return(0,t.jsx)("svg",{"aria-hidden":"true",className:"size-8 [&_path]:fill-[#C1C4DC]",
2width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{d:"M16.869 5.876c-.02-.447-.02-.874-.02-1.301a.6.6 0 0 0-.61-.61c-2.542 0-4.473-.732-6.079-2.297a.627.627 0 0 0-.854 0C7.7 3.233 5.77 3.965 3.228 3.965a.6.6 0 0 0-.61.61c0 .427 0 .854-.02 1.3C2.516 10.146 2.394 16 9.53 18.46l.203.041.203-.04C17.052 16 16.95 10.164 16.87 5.875M9.245 11.79a.66.66 0 0 1-.427.163h-.02a.57.57 0 0 1-.427-.203l-1.89-2.094.914-.813L8.88 10.49l3.294-3.13.833.894z"})})}function eT(){return(0,t.jsx)(O.default,{"aria-hidden":"true","data-testid":"notification-icon-reward",src:"/assets/notifications/reward.svg",alt:"",width:32,height:32,className:"size-8 shrink-0 object-contain"})}function eL({currency:e}){let a=e?.trim().toUpperCase()||"USDT";return"USDT"===a?(0,t.jsx)(O.default,{"aria-hidden":"true","data-testid":"notification-icon-deposit",src:"/assets/notifications/usdt.svg",alt:"",width:36,height:36,className:"size-9 shrink-0 object-contain"}):(0,t.jsx)(W.CryptoAssetIcon,{"data-testid":"notification-icon-deposit",symbol:a,src:`/assets/crypto/${a.toLowerCase()}.svg`,className:"size-8 text-[13px]"})}let eP="desktop:transition-[transform,box-shadow,background-color,border-color] desktop:duration-200 desktop:ease-out desktop:hover:-translate-y-px desktop:hover:shadow-md desktop:active:translate-y-0 desktop:active:scale-[0.98] motion-reduce:desktop:transform-none",eI=[{label:"Giros gratis semanales",icon:"weekly-spins"},{label:"Recarga diaria",icon:"daily-top-up"},{label:"Reembolso de la comisión",icon:"commission-refund"},{label:"Bonificación diario",icon:"daily-bonus"},{label:"Bonificación semanal",icon:"weekly-bonus"},{label:"Bonificación pre-mensual",icon:"pre-monthly-bonus"},{label:"Bonificación mensual",icon:"monthly-bonus"}],eR=({compact:e=!1})=>(0,t.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 45 45",className:e?"size-4":"size-[45px]","data-testid":e?void 0:"raffle-ticket-icon",children:[(0,t.jsx)("path",{d:"M7 5.5h31v9a5 5 0 0 0 0 10v15H7v-15a5 5 0 0 0 0-10z",fill:"#D6AE3F",stroke:"#FCE04D",strokeWidth:"1.4"}),(0,t.jsx)("path",{d:"M16 13h13M16 32h13",stroke:"#886B20",strokeWidth:"1.5",opacity:".75"}),(0,t.jsx)("path",{d:"M19 18.5c2.4-2 5.8-1.5 7.5 1.1-2.4.4-3.8 1.8-4.3 4.3-2.5-1.1-3.8-3.4-3.2-5.4Zm7.5 1.1c1.4 2.3.7 5.5-1.5 7.1-1-2.1-2.5-3.1-4.8-3.2",fill:"none",stroke:"#886B20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]}),e_=({bonusCount:e=0,triggerClassName:a})=>(0,t.jsxs)($.Popover,{children:[(0,t.jsx)($.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","aria-label":"Recompensas",className:a,children:[(0,t.jsx)(f.IconGiftDuotone,{className:"size-5"}),e>0&&(0,t.jsx)("span",{className:"absolute right-[6px] top-[6px] max-[450px]:right-[1px] flex h-4 min-w-4 items-center justify-center rounded-full bg-success px-1 text-[10px] font-bold text-success-foreground",children:e})]})}),(0,t.jsxs)($.PopoverContent,{align:"end",sideOffset:8,"aria-label":"Panel de recompensas",className:"max-h-[82vh] w-[350px] max-w-[calc(100vw-24px)] overflow-y-auto overscroll-contain rounded-md border-white/10 bg-[#283152] p-0 shadow-[0_2px_5px_0_rgba(0,0,0,0.15),0_1px_1px_0_rgba(0,0,0,0.05)]",children:[(0,t.jsxs)("div",{className:"relative flex h-[62px] items-center justify-between overflow-hidden bg-[#191f3b] px-[15px] before:absolute before:inset-0 before:bg-[linear-gradient(rgba(226,179,15,0.25),rgba(252,224,77,0.25))]",children:[(0,t.jsxs)("div",{className:"relative flex min-w-0 items-center gap-[10px]",children:[(0,t.jsx)(eR,{}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block pt-0.5 text-base font-bold leading-[21px] text-white",children:"$20.000"}),(0,t.jsx)("span",{className:"block py-0.5 text-[13px] font-bold uppercase leading-[13px] text-white",children:"Rifa semanal"})]})]}),(0,t.jsxs)("span",{className:"relative flex items-center gap-[5px] text-base font-medium text-white",children:[(0,t.jsx)(eR,{compact:!0}),"0"]})]}),(0,t.jsx)("ul",{"aria-label":"Recompensas disponibles",children:eI.map(({label:e,icon:a})=>(0,t.jsxs)("li",{className:"flex h-[62px] items-center justify-between gap-2 border-b border-solid border-white/[0.06] bg-[linear-gradient(rgba(124,131,177,0.15),rgba(94,103,158,0.15))] py-2 pl-4 pr-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-[10px]",children:[(0,t.jsx)(K.RainbetRewardIcon,{type:a}),(0,t.jsx)("span",{className:"text-[13px] font-medium leading-[16.25px] text-white",children:e})]}),(0,t.jsx)(U.Button,{type:"button",size:"sm",disabled:!0,"aria-label":`Reclamar ${e}`,title:"Próximamente",className:"h-[34px] w-[93px] shrink-0 rounded-md bg-[#0b78d0] px-3.5 text-[13px] font-medium leading-[19.5px] text-white",children:"Reclamar"})]},e))}),(0,t.jsx)("div",{className:"p-2",children:(0,t.jsx)(m.default,{href:q.ROUTES.rewards,prefetch:!1,className:"flex h-12 w-full items-center justify-center rounded-md bg-[#283152] px-6 text-[13px] font-medium leading-[19.5px] text-white transition-opacity hover:opacity-80",children:"Todas las recompensas"})})]})]}),eD=({sportsMode:e=!1})=>{let{status:s}=(0,V.useSession)(),{openModal:r}=(0,Y.useModal)(),n=J.trpc.useUtils(),l=(0,a.useRef)(null),o=(0,a.useRef)(!1),c=(0,a.useRef)(0),d=(0,a.useRef)(new Set),[x,p]=(0,a.useState)(!1),u=e=>{let t=d.current;if(t.has(e))return!1;if(t.size>=200){let e=t.values().next().value;e&&t.delete(e)}return t.add(e),!0},h=(0,eM.useNotificationFeed)(e=>{let t,a=Date.parse(e.createdAt),s=Date.now()-a,r=l.current,i=u(e.notificationId),c=o.current&&null!==r&&Number.isFinite(a)&&a>r&&s>=0&&s<=6e4;i&&c&&(t={description:e.message,...e.kind.startsWith("kyc_")?{id:"kyc-verification-lifecycle"}:{}},"success"===e.type?G.toast.success(e.title,t):"error"===e.type?G.toast.error(e.title,t):"warning"===e.type?G.toast.warning(e.title,t):G.toast.info(e.title,t)),Promise.all([n.notifications.list.invali
2date(),n.wallet.getBalance.invalidate(),n.wallet.getTransactionHistory.invalidate()])},"authenticated"===s,{onOpen:async()=>{let e=++c.current;o.current=!1,p(!1);let[t]=await Promise.all([n.notifications.list.fetch({limit:30}),n.wallet.getBalance.invalidate(),n.wallet.getTransactionHistory.invalidate()]);if(c.current===e){for(let e of(l.current=Date.parse(t.watermark),t.items))u(e.id);o.current=!0,p(!0)}},onDisconnect:()=>{c.current+=1,o.current=!1,p(!1)}}),{data:b}=J.trpc.bonuses.getAvailable.useQuery(void 0,{enabled:"authenticated"===s,staleTime:6e4}),g=b?.bonuses.length??0,v=J.trpc.notifications.list.useInfiniteQuery({limit:30},{getNextPageParam:e=>e.nextCursor??void 0,enabled:"authenticated"===s,refetchOnWindowFocus:!0,refetchInterval:(!h.isConnected||!x)&&3e4,refetchIntervalInBackground:!1}),j=v.data?.pages??[],y=j.flatMap(e=>e.items),N=j[0]?.unreadCount??0,w=J.trpc.notifications.markRead.useMutation({onSuccess:()=>void n.notifications.list.invalidate()});return"loading"===s?(0,t.jsx)("div",{className:"flex w-full justify-end",children:(0,t.jsx)("div",{className:"h-[48px] w-48 animate-pulse rounded-md bg-muted"})}):"authenticated"===s?(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 sm:gap-[10px]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-[6px] desktop:mx-auto",children:[(0,t.jsx)(ed,{}),(0,t.jsxs)(U.Button,{type:"button",variant:"success",size:"xl","data-testid":"header-deposit-cta","aria-label":"Cartera â Depositar",onClick:()=>r("deposit"),className:(0,i.cn)("w-[48px] px-0 min-[450px]:w-[116px] min-[450px]:px-4",e&&eP),children:[(0,t.jsx)(f.IconWallet,{className:"size-4"}),(0,t.jsx)("span",{className:"hidden min-[450px]:inline",children:"Cartera"})]})]}),(0,t.jsxs)("div",{"data-testid":"header-right-cluster",className:"ml-auto flex shrink-0 items-center gap-[10px] max-[450px]:gap-0 desktop:ml-0",children:[(0,t.jsx)("button",{type:"button","aria-label":"Buscar",onClick:()=>r("search"),className:"hidden h-[48px] w-[48px] items-center justify-center rounded-md bg-secondary transition-colors hover:bg-secondary-hover desktop:flex",children:(0,t.jsx)(f.IconSearchSolid,{className:"size-5 text-[#E8E5FF]"})}),(0,t.jsxs)("div",{"data-testid":"header-gift-bell-group",className:(0,i.cn)("flex h-[48px] min-[450px]:h-[50px] shrink-0 items-center overflow-hidden rounded-md","min-[450px]:border min-[450px]:border-[#33395C]",e&&"desktop:border-white/10 desktop:shadow-sm desktop:transition-[border-color,box-shadow] desktop:duration-300"),children:[(0,t.jsx)(e_,{bonusCount:g,triggerClassName:"relative flex h-full w-[48px] max-[450px]:w-[38px] items-center justify-center bg-secondary max-[450px]:rounded-md max-[450px]:bg-transparent max-[450px]:px-0 transition-colors hover:bg-secondary-hover"}),(0,t.jsxs)($.Popover,{children:[(0,t.jsx)($.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(U.Button,{type:"button",variant:"ghost",size:"icon","aria-label":"Notificaciones",className:"relative h-full w-[48px] max-[450px]:w-[38px] rounded-none max-[450px]:rounded-md bg-secondary max-[450px]:bg-transparent max-[450px]:px-0 hover:bg-secondary-hover",children:[(0,t.jsx)(f.IconBellFilled,{className:"size-5 text-[#E8E5FF]"}),N>0&&(0,t.jsx)(F.Badge,{variant:"destructive",roundness:"round",className:"absolute right-[6px] top-[6px] max-[450px]:right-[1px] min-h-4 min-w-4 px-1 py-0 text-[10px] leading-none",children:Math.min(N,99)})]})}),(0,t.jsx)($.PopoverContent,{align:"end",sideOffset:8,"aria-label":"Panel de notificaciones",className:"w-[330px] max-w-[calc(100vw-32px)] rounded-md border-white/10 bg-[#262c52] p-2 shadow-[0_2px_5px_0_rgba(0,0,0,0.15),0_1px_1px_0_rgba(0,0,0,0.05)] sm:w-[415px] sm:max-w-[415px]",children:(0,t.jsxs)("div",{"data-testid":"notifications-scroll-area",className:"grid h-[min(400px,calc(100vh-80px))] min-h-0 gap-2 overflow-y-scroll overscroll-y-contain touch-pan-y pr-0.5",onWheel:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),children:[0===y.length?(0,t.jsx)("p",{className:"flex min-h-[116px] items-center justify-center px-3 text-center text-sm text-muted-foreground",children:"No tienes notificaciones"}):y.map(e=>(0,t.jsx)(H.NotificationItem,{title:e.title,message:e.message,unread:null==e.readAt,createdAt:e.createdAt,icon:function(e){let a=`${e.kind} ${e.title}`.toLowerCase();if(a.includes("deposit")){let a="string"==typeof e.metadata?.currency?e.metadata.currency:void 0;return(0,t.jsx)(eL,{currency:a})}return a.includes("recompensa")||a.includes("rakeback")||a.includes("calendario")?(0,t.jsx)(eT,{}):(0,t.jsx)(eA,{})}(e),badge:null==e.readAt?"Nuevo":void 0,variant:"rainbet",onClick:()=>{null==e.readAt&&w.mutate({notificationId:e.id}),e.kind.startsWith("deposit_")&&r("transactions"),"kyc_rejected"===e.kind&&r("kyc-resubmit")}},e.id)),v.hasNextPage&&(0,t.jsx)("div",{className:"pt-1",children:(0,t.jsx)(U.Button,{type:"button",variant:"ghost",size:"sm",className:"w-full",disabled:v.isFetchingNextPage,onClick:()=>void v.fetchNextPage(),children:v.isFetchingNextPage?"Cargando anterioresâ¦":"Cargar anteriores"})})]})})]}),(0,t.jsx)("div",{className:"hidden h-full items-center bg-secondary desktop:flex",children:(0,t.jsx)(ez,{})})]}),(0,t.jsx)(m.default,{href:"/support",prefetch:!1,"aria-label":"Soporte",className:"hidden h-[48px] w-[48px] items-center justify-center rounded-md bg-secondary transition-colors hover:bg-secondary-hover desktop:flex",children:(0,t.jsx)(f.IconChatBubbles,{className:"size-5 text-[#E8E5FF]"})})]})]}):(0,t.jsxs)("div",{"data-testid":"header-auth-actions",className:"flex w-full items-center justify-end gap-[10px]",children:[(0,t.jsx)("button",{type:"button","aria-label":"Buscar",onClick:()=>r("search"),className:"hidden desktop:flex h-[48px] w-[48px] shrink-0 items-center justify-center rounded-md bg-secondary transition-colors hover:bg-secondary-hover",children:(0,t.jsx)(f.IconSearchSolid,{className:"size-5 text-[#E8E5FF]"})}),(0,t.jsx)(e_,{triggerClassName:(0,i.cn)("relative flex h-[48px] w-[48px] max-[450px]:w-[40px] shrink-0 items-center justify-center rounded-md bg-secondary transition-colors hover:bg-secondary-hover",e&&eP)}
2),(0,t.jsxs)("div",{className:"flex items-center gap-2 desktop:gap-[6px]",children:[(0,t.jsxs)(U.Button,{variant:"secondary",size:"lg",onClick:()=>r("login"),className:(0,i.cn)("flex-none px-3 sm:px-6 text-white desktop:h-12",e&&eP),children:[(0,t.jsx)("span",{className:"game-compact:hidden",children:"Entrar"}),(0,t.jsx)("span",{className:"hidden game-compact:inline",children:"Iniciar sesión"})]}),(0,t.jsx)(U.Button,{variant:"default",size:"lg",onClick:()=>r("signup"),className:(0,i.cn)("flex-none px-3 sm:px-6 desktop:h-12",e&&eP),children:"Registrarse"})]}),(0,t.jsx)(m.default,{href:"/support",prefetch:!1,"aria-label":"Soporte",className:"hidden desktop:flex h-[48px] w-[48px] shrink-0 items-center justify-center rounded-md bg-secondary transition-colors hover:bg-secondary-hover",children:(0,t.jsx)(f.IconChatBubbles,{className:"size-5 text-[#E8E5FF]"})})]})};var eB=e.i(569439),eO=e.i(338659);let eF=(0,N.default)("outline","ball-football","BallFootball",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 7l4.76 3.45l-1.76 5.55h-6l-1.76 -5.55l4.76 -3.45",key:"svg-1"}],["path",{d:"M12 7v-4m3 13l2.5 3m-.74 -8.55l3.74 -1.45m-11.44 7.05l-2.56 2.95m.74 -8.55l-3.74 -1.45",key:"svg-2"}]]),eU=({className:e,collapsed:a=!1,elevated:r=!1})=>{let n=(0,s.usePathname)(),l=(0,s.useRouter)(),o=n.startsWith("/sports")?"sports":"casino",c=e=>{l.push("casino"===e?"/casino":"/sports")};if(a){let e="flex size-[32px] cursor-pointer items-center justify-center rounded-md transition-colors duration-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";return(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex w-[40px] flex-col items-center gap-1 rounded-md border border-solid border-[#5E679E]/35 bg-linear-to-b from-[#7C83B1]/20 to-[#5E679E]/20 p-[3px]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>c("casino"),className:(0,i.cn)(e,"casino"===o?"bg-primary text-white":"text-muted-foreground hover:bg-accent"),"aria-label":"Casino",children:(0,t.jsx)(eO.IconCards,{size:18,stroke:1.5,className:(0,i.cn)("casino"===o?"opacity-100":"opacity-30")})}),(0,t.jsx)("button",{type:"button",onClick:()=>c("sports"),className:(0,i.cn)(e,"sports"===o?"bg-sports text-white":"text-muted-foreground hover:bg-accent"),"aria-label":"Deportes",children:(0,t.jsx)(eF,{size:18,stroke:1.5,className:(0,i.cn)("sports"===o?"opacity-100":"opacity-30")})})]})})}let d="relative flex h-full w-20 shrink-0 cursor-pointer items-center justify-center overflow-hidden rounded border border-transparent px-1 text-[13px] font-medium transition-colors duration-0 focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";return(0,t.jsxs)("div",{role:"tablist","aria-label":"Cambiar sección principal",className:(0,i.cn)("flex h-12 w-max items-stretch gap-1 rounded-md border border-border bg-secondary p-1",r&&"border-white/10 shadow-[0_8px_22px_rgba(4,8,25,0.22)]",e),children:[(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":"casino"===o,"data-state":"casino"===o?"active":"inactive",onClick:()=>c("casino"),className:(0,i.cn)(d,(0,eB.selectionSurfaceVariants)({tone:"primary",size:null}),"casino"===o?"text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:["casino"===o&&(0,t.jsx)(eO.IconCards,{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-1 -left-1 size-5 text-white/15"}),(0,t.jsx)("span",{className:"relative",children:"Casino"})]}),(0,t.jsxs)("button",{type:"button",role:"tab","aria-selected":"sports"===o,"data-state":"sports"===o?"active":"inactive",onClick:()=>c("sports"),className:(0,i.cn)(d,(0,eB.selectionSurfaceVariants)({tone:"sports",size:null}),"sports"===o?"text-white":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:["sports"===o&&(0,t.jsx)(eF,{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-1 -left-1 size-5 text-white/15"}),(0,t.jsx)("span",{className:"relative",children:"Deportes"})]})]})},eH=({className:e,showModeToggle:a=!1})=>{let{toggle:s}=o();return(0,t.jsxs)("header",{role:"banner",style:{paddingTop:"env(safe-area-inset-top)"},className:(0,i.cn)((0,r.appHeaderVariants)(),a&&"shadow-[0_8px_24px_rgba(4,8,25,0.18)] transition-shadow duration-300",e),children:[(0,t.jsxs)("div",{className:(0,i.cn)("hidden desktop:flex h-full w-[250px] shrink-0 items-center gap-2 pl-[10px]","border-r border-[rgba(232,229,255,0.05)]"),children:[(0,t.jsx)("button",{type:"button","aria-label":"Alternar menú lateral",onClick:s,className:"flex h-[48px] w-[48px] shrink-0 items-center justify-center rounded-md bg-transparent transition-colors hover:bg-secondary",children:(0,t.jsx)(f.IconMenuBars,{className:"size-5 text-white"})}),(0,t.jsx)(eU,{className:"w-[174px] shrink-0"})]}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 h-full",children:(0,t.jsxs)("div",{"data-testid":"header-content",className:"mx-auto flex h-full w-full max-w-content items-center justify-between gap-2 px-4",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center",children:(0,t.jsxs)(m.default,{href:"/",prefetch:!1,"aria-label":"Gannar â Ir al inicio",children:[(0,t.jsx)(B.GannarSymbol,{className:"block min-[361px]:hidden h-[38px] w-[38px]"}),(0,t.jsx)(B.GannarLogo,{variant:"positive",className:"hidden min-[361px]:block h-[38px] w-auto max-[400px]:w-[80px]"})]})}),(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center",children:(0,t.jsx)(eD,{sportsMode:a})})]})})]})},e$=(0,a.createContext)(null).Provider,eG={scroll:"no-scrollbar overflow-y-auto overscroll-y-contain",visible:"overflow-visible",hidden:"overflow-hidden overscroll-none"},eW=({children:e,className:s,overflowMode:r="scroll"})=>{let n=(0,a.useRef)(null);return(0,t.jsx)(e$,{value:n,children:(0,t.jsx)("main",{ref:n,className:(0,i.cn)("min-h-0 flex-1 bg-background",eG[r],s),children:e})})};var eV=e.i(844163);function eJ(){let[e,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=null,t=()=>{null===e&&(e=requestAnimationFrame(()=>{s(window.scrollY>300),e=null}))};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>
2{window.removeEventListener("scroll",t),null!==e&&cancelAnimationFrame(e)}},[]),(0,t.jsx)(U.Button,{type:"button",variant:"secondary",size:"icon",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"Ir al inicio de la página",className:(0,i.cn)("fixed bottom-[var(--go-to-top-bottom-offset)] right-[var(--go-to-top-inline-offset)] z-20","rounded-full shadow-md transition-all duration-200",e?"translate-y-0 opacity-100":"pointer-events-none translate-y-2 opacity-0"),children:(0,t.jsx)(eV.ArrowUp,{className:"h-4 w-4"})})}let eq="flex h-full items-center justify-center border-b-2 transition-colors",eK="flex h-[38px] w-full flex-col items-center justify-center gap-0.5 text-[12px] font-normal",eY=e=>(0,i.cn)(eq,e?"border-[#2B9EFF] text-[#2B9EFF]":"border-transparent text-[#E8E5FF] hover:text-[#E8E5FF]/80"),eQ="flex h-8 w-full items-center gap-[10px] rounded-md px-[10px] text-sm text-white transition-colors hover:bg-brand-400",eX=({initial:e})=>{let[s,r]=(0,a.useState)(!1),[n,l]=(0,a.useState)(!1),o=J.trpc.auth.logout.useMutation({onSettled:()=>(0,V.signOut)({redirectTo:"/"})});return(0,t.jsxs)($.Popover,{open:n,onOpenChange:l,children:[(0,t.jsx)($.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Mi perfil",className:(0,i.cn)(eq,"border-transparent text-[#E8E5FF] hover:text-[#E8E5FF]/80"),children:(0,t.jsx)("div",{className:eK,children:(0,t.jsx)("div",{className:"flex size-8 items-center justify-center rounded-full bg-accent text-[11px] font-semibold text-foreground",children:e})})})}),(0,t.jsxs)($.PopoverContent,{align:"end",side:"top",collisionPadding:{right:60,left:8},className:"flex w-auto min-w-[170px] max-w-[330px] flex-col gap-1 rounded-md border-white/10 bg-[#262c52] p-2 shadow-[0_2px_5px_0_rgba(0,0,0,0.15),0_1px_1px_0_rgba(0,0,0,0.05)]",children:[eS.map(({label:e,href:a,action:s,icon:i})=>"profile"===s?(0,t.jsxs)("button",{type:"button",onClick:()=>{l(!1),r(!0)},className:eQ,children:[(0,t.jsx)(i,{className:"h-4 w-4"}),e]},e):(0,t.jsxs)(m.default,{href:a,prefetch:!1,onClick:()=>l(!1),className:eQ,children:[(0,t.jsx)(i,{className:"h-4 w-4"}),e]},e)),(0,t.jsxs)("button",{type:"button",className:(0,i.cn)(eQ,"disabled:pointer-events-none disabled:opacity-50"),onClick:()=>{l(!1),o.mutate()},disabled:o.isPending,children:[(0,t.jsx)(em,{className:"h-4 w-4"}),"Cerrar sesión"]})]}),(0,t.jsx)(eN,{open:s,onOpenChange:r})]})},eZ=()=>{let e=(0,s.usePathname)(),{mobileOpen:a,setMobileOpen:r}=o(),{openModal:n}=(0,Y.useModal)(),{data:l,status:c}=(0,V.useSession)(),d="authenticated"===c,x=l?.user?.email?.[0]?.toUpperCase()??"U",p=!a&&e.startsWith("/casino"),u=!a&&e.startsWith("/sports");return(0,t.jsxs)("nav",{"aria-label":"Navegación inferior",className:(0,i.cn)("fixed inset-x-0 bottom-0 z-[1025]",d?"grid grid-cols-6":"grid grid-cols-5","h-[var(--mobile-bottom-nav-safe-height)] border-t border-[#E8E5FF]/5 bg-[#141931]","pb-[env(safe-area-inset-bottom,0px)] desktop:hidden"),children:[(0,t.jsx)("button",{type:"button","data-mobile-nav-menu":!0,"aria-label":a?"Cerrar menú":"Abrir menú","aria-expanded":a,onClick:()=>r(!a),className:eY(a),children:(0,t.jsxs)("div",{className:eK,children:[(0,t.jsx)(f.IconMenuBars,{className:"size-4"}),(0,t.jsx)("span",{children:"Menú"})]})}),(0,t.jsx)(m.default,{href:"/casino",prefetch:!1,"aria-label":"Casino","aria-current":p?"page":void 0,className:eY(p),children:(0,t.jsxs)("div",{className:eK,children:[(0,t.jsx)(f.IconCasinoCherries,{className:"size-4"}),(0,t.jsx)("span",{children:"Casino"})]})}),(0,t.jsx)(m.default,{href:"/sports",prefetch:!1,"aria-label":"Deportes","aria-current":u?"page":void 0,className:eY(u),children:(0,t.jsxs)("div",{className:eK,children:[(0,t.jsx)(f.IconSportsBall,{className:"size-4"}),(0,t.jsx)("span",{children:"Deportes"})]})}),(0,t.jsx)(m.default,{href:"/support",prefetch:!1,"aria-label":"Soporte",className:eY(!1),children:(0,t.jsxs)("div",{className:eK,children:[(0,t.jsx)(f.IconChatBubbles,{className:"size-4"}),(0,t.jsx)("span",{children:"Soporte"})]})}),(0,t.jsx)("button",{type:"button","aria-label":"Buscar",onClick:()=>n("search"),className:eY(!1),children:(0,t.jsxs)("div",{className:eK,children:[(0,t.jsx)(f.IconMenuSearch,{className:"size-4"}),(0,t.jsx)("span",{children:"Buscar"})]})}),d&&(0,t.jsx)(eX,{initial:x})]})};var e0=e.i(74091);let e1="gannar:recent-searches-search-modal";function e2(e){try{localStorage.setItem(e1,JSON.stringify(e))}catch{}}var e3=e.i(268824),e4=e.i(727134);let e5=()=>{let{activeModal:e,closeModal:s}=(0,Y.useModal)(),r="search"===e,[n,l]=(0,a.useState)(""),[o,c]=(0,a.useState)(""),[d,m]=(0,a.useState)(1),[x,p]=(0,a.useState)([]),[u,h]=(0,a.useState)(!1),[f,b]=(0,a.useState)(!1),g=(0,a.useRef)(null),v=(0,a.useRef)(null),j=(0,a.useRef)(!1),y=(0,a.useRef)(0),{recentSearches:N,addSearch:w,removeSearch:k}=function(){let[e,t]=(0,a.useState)([]);return(0,a.useEffect)(()=>{t(function(){try{let e=localStorage.getItem(e1);if(!e)return[];return JSON.parse(e)}catch{return[]}}())},[]),{recentSearches:e,addSearch:(0,a.useCallback)(e=>{t(t=>{let a=[e,...t.filter(t=>t!==e)].slice(0,8);return e2(a),a})},[]),removeSearch:(0,a.useCallback)(e=>{t(t=>{let a=t.filter(t=>t!==e);return e2(a),a})},[])}}(),{revision:C}=(0,e4.useCatalogAvailability)();(0,a.useEffect)(()=>{let e=setTimeout(()=>c(n),300);return()=>clearTimeout(e)},[n]),(0,a.useEffect)(()=>{m(1),p([])},[o,C]),(0,a.useEffect)(()=>
2{if(r){let e=setTimeout(()=>g.current?.focus(),50);return()=>clearTimeout(e)}l(""),c(""),m(1),p([]),h(!1),b(!1)},[r]),(0,a.useEffect)(()=>{if(!r)return;let e=window.scrollY,t=document.body;return t.style.position="fixed",t.style.top=`-${e}px`,t.style.width="100%",()=>{t.style.position="",t.style.top="",t.style.width="",window.scrollTo(0,e)}},[r]),(0,a.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r,s]);let S=o.length>=3?o:"",{data:E,isLoading:z,isFetching:M}=J.trpc.gameCatalog.listGames.useQuery({search:S,limit:60,page:d,sortBy:"sortOrder",sortDir:"asc"},{enabled:!!S}),A=(0,e4.usePublicCatalogData)(E),T=(0,e4.usePublicCatalogData)(x);(0,a.useEffect)(()=>{E?.items&&(1===d?p(E.items):p(e=>[...e,...E.items]))},[E,d]),(0,a.useEffect)(()=>{o.length>=3&&A?.items&&A.items.length>0&&w(o)},[o,A,w]);let L=!!E&&x.length<E.total;(0,a.useEffect)(()=>{M||(j.current=!1)},[M]);let P=(0,a.useCallback)(()=>{let e=v.current;e&&(h(e.scrollTop>0),b(e.scrollTop+e.clientHeight<e.scrollHeight-1))},[]);(0,a.useEffect)(()=>{P()},[T,P]);let I=(0,a.useCallback)(()=>{let e=v.current;if(!e||(P(),j.current||!L||M))return;let t=Date.now();!(t-y.current<150)&&(y.current=t,e.scrollTop+e.clientHeight>=e.scrollHeight-200&&(j.current=!0,m(e=>e+1)))},[L,M,P]),R=n.length>0&&n.length<3,_=S.length>=3,D=_&&(z||M&&1===d)&&0===T.length,B=_&&!z&&!M&&0===T.length,O=R||D||B||T.length>0;return(0,t.jsx)(ef.Dialog,{open:r,onOpenChange:e=>{e||s()},children:(0,t.jsxs)(ef.DialogPortal,{children:[(0,t.jsx)(ef.DialogOverlay,{className:"hidden bg-[#0C1022]/80 min-[651px]:block","data-testid":"search-overlay",onClick:s}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"search-modal-title",className:(0,i.cn)("fixed z-[1050] flex flex-col [overflow:clip] outline-none","bg-[#191e39]/65 backdrop-blur-md","inset-0 rounded-none pt-[env(safe-area-inset-top,0px)]","min-[651px]:inset-auto min-[651px]:rounded-[24px] min-[651px]:border min-[651px]:border-white/10 min-[651px]:pt-0","min-[651px]:left-1/2 min-[651px]:-translate-x-1/2","min-[651px]:top-1/2 min-[651px]:-translate-y-1/2","min-[651px]:w-[calc(100vw-40px)] min-[651px]:max-w-[914px]","min-[651px]:transition-[max-height]",O||N.length>0?"min-[651px]:max-h-[min(800px,90dvh)]":"min-[651px]:max-h-[66px]"),style:{transitionDuration:"450ms",transitionTimingFunction:"cubic-bezier(0.25, 0.1, 0.25, 1)"},children:[(0,t.jsx)("h2",{id:"search-modal-title",className:"sr-only",children:"Buscar juegos"}),(0,t.jsxs)("div",{className:"flex h-[63px] shrink-0 items-center px-4",children:[(0,t.jsxs)("div",{className:"flex h-full flex-1 items-center gap-[13px] min-[651px]:pl-4",children:[(0,t.jsxs)("svg",{"data-testid":"search-modal-icon",viewBox:"0 0 25 25",fill:"none","aria-hidden":"true",className:"size-[25px] shrink-0",children:[(0,t.jsx)("path",{stroke:"#E8E5FF",strokeLinecap:"round",strokeWidth:"2",d:"m20.836 20.834-6.25-6.25"}),(0,t.jsx)("path",{stroke:"#E8E5FF",strokeWidth:"2",d:"M15.626 9.896a5.73 5.73 0 1 1-11.458 0 5.73 5.73 0 0 1 11.458 0Z"})]}),(0,t.jsx)("input",{ref:g,type:"search",value:n,onChange:e=>l(e.target.value),placeholder:"Escribà el nombre de un juego...",autoFocus:!0,style:{fontSize:"16px"},className:"h-full min-w-0 flex-1 bg-transparent text-base font-medium leading-none text-white outline-none placeholder:text-white/40 focus:placeholder:text-transparent [&::-webkit-search-cancel-button]:hidden"})]}),(0,t.jsx)("button",{type:"button","aria-label":"Cerrar buscador",onClick:s,className:"flex size-[30px] shrink-0 items-center justify-center rounded-full border border-white/10 bg-[#222949] text-white/75 hover:bg-[#283152]",children:(0,t.jsx)("svg",{viewBox:"0 0 9 9",fill:"none","aria-hidden":"true",className:"size-[9px]",children:(0,t.jsx)("path",{fill:"#fff",fillOpacity:".75",fillRule:"evenodd",d:"m4.508 5.357 3.456 3.456a.611.611 0 0 0 .864-.864L5.372 4.492l3.456-3.456a.611.611 0 0 0-.864-.864L4.508 3.628 1.05.172a.611.611 0 0 0-.864.864l3.456 3.456L.187 7.95a.611.611 0 1 0 .864.864z"})})})]}
2),(0,t.jsx)("div",{"aria-hidden":!0,className:"h-px w-full shrink-0 opacity-[44%] bg-[linear-gradient(90deg,rgba(124,131,177,0)_0%,#7C83B1_50.48%,rgba(124,131,177,0)_100%)]"}),N.length>0&&(0,t.jsx)("div",{className:"shrink-0 px-6 py-6",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("span",{className:"shrink-0 text-[13px] font-medium tracking-wide text-[#E8E6FF]",children:"Búsquedas recientes"}),N.map(e=>(0,t.jsxs)("div",{className:"flex h-9 items-center gap-3 rounded-full border border-white/5 bg-[#222949] px-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>l(e),className:"text-xs font-semibold text-white",children:e}),(0,t.jsx)("button",{type:"button","aria-label":`Eliminar "${e}" de recientes`,onClick:()=>k(e),className:"text-white/40 hover:text-white/80",children:(0,t.jsx)(e0.IconX,{className:"size-3"})})]},e))]})}),(0,t.jsxs)("div",{"data-testid":"search-scroll-content",className:(0,i.cn)("relative flex flex-col flex-1 min-h-0",!O&&"hidden"),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:(0,i.cn)("pointer-events-none absolute left-0 right-0 top-0 z-10 h-12 w-full","bg-gradient-to-b from-[#161A34] to-[#161A3400]","transition-opacity duration-200",u?"opacity-100":"opacity-0")}),(0,t.jsxs)("div",{ref:v,onScroll:I,onWheel:e=>{let t=v.current;if(!t)return;let a=1===e.deltaMode?40*e.deltaY:2===e.deltaMode?e.deltaY*t.clientHeight:e.deltaY;t.scrollTop+=a},className:"flex-1 min-h-0 overflow-y-auto px-6 pt-4 pb-[max(24px,env(safe-area-inset-bottom))]",children:[R&&(0,t.jsx)("p",{className:"text-sm text-white/50",children:"Necesitás al menos 3 caracteres"}),D&&(0,t.jsx)("div",{"aria-busy":"true",className:"grid grid-cols-3 gap-2.5 min-[400px]:grid-cols-4 min-[551px]:grid-cols-5 md:grid-cols-[repeat(auto-fill,minmax(121px,1fr))]",children:Array.from({length:12}).map((e,a)=>(0,t.jsx)("div",{className:"aspect-[152/201] animate-pulse rounded-md bg-white/10"},a))}),B&&(0,t.jsxs)("div",{className:"py-8 text-center",children:[(0,t.jsx)("p",{className:"text-base text-white",children:"No hay resultados para tu búsqueda"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-white/50",children:"Probá con Blackjack, Ruleta, Bonanza, Tigre o cualquier otra palabra"})]}),T.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid grid-cols-3 content-start gap-2.5 min-[400px]:grid-cols-4 min-[551px]:grid-cols-5 md:grid-cols-[repeat(auto-fill,minmax(121px,1fr))]",children:T.map(e=>(0,t.jsx)(e3.GameCard,{id:e.id,name:e.name,vendorName:e.vendorName,imageSquare:e.imageSquare,externalGameCode:e.externalGameCode,isFeatured:e.isFeatured,blurHashSquare:e.blurHashSquare,s3ImageKey:e.s3ImageKey,isPlayable:e.isPlayable,availabilityReason:e.availabilityReason},e.id))}),L&&(0,t.jsx)("div",{className:"mt-6 flex justify-center",children:(0,t.jsx)("button",{type:"button","data-testid":"search-load-more",onClick:()=>m(e=>e+1),disabled:M,className:"rounded-md bg-white/10 px-6 py-2.5 text-sm text-white transition-colors hover:bg-white/20 disabled:opacity-50",children:M?"Cargando...":"Cargar más"})})]})]}),(0,t.jsx)("div",{"aria-hidden":!0,className:(0,i.cn)("pointer-events-none absolute bottom-0 left-0 right-0 z-10 h-12 w-full","bg-gradient-to-t from-[#161A34] to-[#161A3400]","transition-opacity duration-200",f?"opacity-100":"opacity-0")})]})]})]})})};function e6({data:e,onDismiss:a}){let r=(0,s.useRouter)();if(!e)return null;let n=(0,et.formatHoursMinutes)(e.sessionSeconds/3600);return(0,t.jsx)(ef.Dialog,{open:!0,onOpenChange:e=>!e&&a(),children:(0,t.jsxs)(ef.DialogContent,{"data-testid":"reality-check-dialog",className:"sm:max-w-lg",children:[(0,t.jsxs)(ef.DialogHeader,{children:[(0,t.jsx)(ef.DialogTitle,{children:"Resumen de tu sesión"}),(0,t.jsxs)(ef.DialogDescription,{children:["Llevas ",n," jugando en esta sesión. Te mostramos tu actividad para que juegues de forma responsable."]})]}),(0,t.jsx)("div",{"data-testid":"reality-check-money",className:"flex flex-col gap-3 rounded-lg border border-border p-4",children:e.money.map(e=>{var a;return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-paragraph-small text-muted-foreground",children:"Apostado"}),(0,t.jsx)("span",{className:"text-paragraph-medium text-foreground",children:(0,er.formatMoney)(e.wagered)})]}),(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-paragraph-small text-muted-foreground",children:"Resultado"}),(0,t.jsx)("span",{className:(0,i.cn)("text-paragraph-medium",(a=e.net.value).startsWith("-")?"text-destructive":"0"===a?"text-muted-foreground":"text-success"),children:(0,er.formatMoney)(e.net)})]})]},e.wagered.currency)})}),(0,t.jsxs)(ef.DialogFooter,{children:[(0,t.jsx)(U.Button,{variant:"outline",onClick:a,children:"Seguir jugando"}),(0,t.jsx)(U.Button,{onClick:()=>{a(),r.push("/account")},children:"Ver mis lÃmites"})]})]})})}function e8(){let{status:e}=(0,V.useSession)(),r=(0,s.useRouter)(),{isInGame:i}=(0,c.useGameSession)(),n=(0,a.useRef)("ok"),[l,o]=(0,a.useState)(null),d=function(){let[e,t]=(0,a.useState)(null),s=J.trpc.responsibleGambling.acknowledgeRealityCheck.useMutation();return{data:e,handleHeartbeat:e=>{e&&t(e)},dismiss:()=>{t(null),s.mutate()}}}(),m=J.trpc.responsibleGambling.recordPlayHeartbeat.useMutation({onSuccess:e=>{let t=n.current;n.current=e.state,"blocked"===e.state&&"blocked"!==t?o({kind:"blocked",consumedHours:e.consumedHours,limitHours:e.limitHours}):"warn"===e.state&&"ok"===t&&o({kind:"warn",consumedHours:e.consumedHours,limitHours:e.limitHours}),d.handleHeartbeat(e.realityCheck)}}),x=(0,a.useRef)(m.mutate);x.current=m.mutate,(0,a.useEffect)(()=>
2{if("authenticated"!==e||!i)return;let t=e=>x.current({action:e}),a=()=>{t("visible"===document.visibilityState?"start":"stop")};a(),document.addEventListener("visibilitychange",a);let s=window.setInterval(()=>{"visible"===document.visibilityState&&t("tick")},et.RG_PLAY_HEARTBEAT_INTERVAL_MS);return()=>{window.clearInterval(s),document.removeEventListener("visibilitychange",a),t("stop")}},[i,e]);let p=l?.kind==="blocked",u=l?.limitHours!=null?` de ${(0,et.formatHoursMinutes)(l.limitHours)}`:"";return(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)(ef.Dialog,{open:!0,onOpenChange:e=>!e&&o(null),children:(0,t.jsxs)(ef.DialogContent,{"data-testid":"play-time-heartbeat-dialog",className:"sm:max-w-lg",children:[(0,t.jsxs)(ef.DialogHeader,{children:[(0,t.jsx)(ef.DialogTitle,{children:p?"LÃmite de tiempo de juego alcanzado":"Recordatorio de tiempo de juego"}),(0,t.jsx)(ef.DialogDescription,{children:p?`Alcanzaste tu l\xedmite de tiempo de juego (${(0,et.formatHoursMinutes)(l.consumedHours)}${u}). T\xf3mate un descanso; podr\xe1s volver a jugar cuando el per\xedodo se reinicie.`:`Llevas ${(0,et.formatHoursMinutes)(l.consumedHours)}${u} de juego en este per\xedodo. Te avisamos para que juegues de forma responsable.`})]}),(0,t.jsxs)(ef.DialogFooter,{children:[(0,t.jsx)(U.Button,{variant:"outline",onClick:()=>o(null),children:p?"Entendido":"Seguir jugando"}),(0,t.jsx)(U.Button,{onClick:()=>{o(null),r.push("/account")},children:"Ver mis lÃmites"})]})]})}),(0,t.jsx)(e6,{data:d.data,onDismiss:d.dismiss})]})}e.i(461153),e.s(["AppLayout",0,({children:e,banner:n})=>{var o;let c=!!(o=(0,s.usePathname)())&&("/sports"===o||o.startsWith("/sports/"));return(0,t.jsx)(l,{children:(0,t.jsxs)(d,{children:[(0,t.jsx)(e8,{}),(0,t.jsxs)("div",{"data-testid":"app-viewport-shell",className:(0,r.appViewportVariants)({viewportLocked:c,overscrollContained:c}),children:[(0,t.jsx)(eH,{showModeToggle:c,className:c?void 0:"sticky top-0 z-50"}),(0,t.jsxs)("div",{className:(0,i.cn)("flex min-w-0 flex-1",c?"min-h-0 overflow-hidden":"min-h-[calc(100dvh-var(--app-header-height))] items-stretch"),children:[(0,t.jsx)(D,{desktopHidden:c,documentScroll:!c}),(0,t.jsxs)("div",{className:(0,i.cn)("flex min-w-0 flex-1 flex-col",c?"h-full min-h-0":"min-h-full"),children:[n&&(0,t.jsx)("div",{className:(0,i.cn)("sticky z-40 shrink-0",c?"top-0":"top-[var(--app-header-height)]"),children:n}),(0,t.jsx)(eW,{overflowMode:c?"hidden":"visible",className:(0,i.cn)(!c&&"pb-[var(--mobile-bottom-nav-safe-height)] desktop:pb-0",c&&"min-h-0"),children:e}),!c&&(0,t.jsx)(eJ,{})]})]}),(0,t.jsx)(eZ,{}),(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(e5,{})})]})]})})}],4972)},232469,e=>{"use strict";var t=e.i(887720),a=e.i(497719);e.i(169873);var s=e.i(521335),r=e.i(85945),i=e.i(12534),n=e.i(709598);let l={telegram:"https://t.me/gannarcom",x:"https://x.com/gannarcom",instagram:"https://www.instagram.com/gannarcom/",facebook:"https://www.facebook.com/gannarcom"};Object.values(l);let o=[{name:"Telegram",href:l.telegram,icon:({className:e})=>(0,t.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 18 18",children:(0,t.jsx)("path",{fill:"#fff",d:"M16.539 1.597.592 7.778c-.642.288-.86.865-.156 1.178l4.092 1.306 9.892-6.145c.54-.385 1.092-.282.617.142L6.54 11.99l-.267 3.272c.247.505.7.508.989.257l2.35-2.236 4.026 3.03c.935.556 1.443.198 1.645-.822l2.64-12.568c.274-1.255-.194-1.808-1.385-1.327"})})},{name:"X (Twitter)",href:l.x,icon:({className:e})=>(0,t.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 18 18",children:(0,t.jsx)("path",{fill:"#fff",d:"M10.675 7.622 17.23 0h-1.554L9.985 6.618 5.437 0H.192L7.07 10.007.192 18h1.554l6.012-6.989L12.561 18h5.244zm-2.129 2.474-.696-.997-5.544-7.93h2.387l4.473 6.4.697.996 5.815 8.319h-2.386z"})})},{name:"Instagram",href:l.instagram,icon:({className:e})=>(0,t.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 18 18",children:(0,t.jsx)("path",{fill:"#fff",d:"M9 1.63c2.403 0 2.688.008 3.637.052.877.04 1.354.186 1.67.31.421.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.793.31 1.67.043.95.052 1.234.052 3.638s-.009 2.687-.052 3.636c-.04.878-.187 1.354-.31 1.672-.163.42-.358.72-.673 1.034s-.615.51-1.035.674c-.317.123-.794.27-1.671.31-.95.043-1.234.052-3.637.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31a2.8 2.8 0 0 1-1.036-.674 2.8 2.8 0 0 1-.673-1.034c-.123-.318-.27-.794-.31-1.672-.043-.949-.052-1.233-.052-3.636s.009-2.688.052-3.637c.04-.878.187-1.354.31-1.671.
2163-.42.358-.72.673-1.035s.615-.51 1.035-.673c.317-.124.794-.27 1.671-.31.95-.044 1.234-.053 3.637-.053M9 .007c-2.444 0-2.75.01-3.71.054S3.676.258 3.104.48A4.4 4.4 0 0 0 1.51 1.518c-.5.5-.809 1.002-1.039 1.594C.25 3.685.098 4.34.054 5.297.01 6.257 0 6.563 0 9.007s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.039 1.594s1.002.808 1.594 1.038c.572.223 1.226.375 2.184.418.96.044 1.267.055 3.711.055s2.75-.01 3.71-.055c.959-.043 1.613-.195 2.185-.418a4.4 4.4 0 0 0 1.594-1.038c.5-.5.808-1.002 1.038-1.594.223-.573.375-1.227.419-2.185.044-.96.054-1.266.054-3.71s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.419-2.185a4.4 4.4 0 0 0-1.038-1.594A4.4 4.4 0 0 0 14.895.48C14.323.258 13.67.105 12.711.062 11.75.018 11.444.008 9 .008m0 4.378a4.622 4.622 0 1 0 0 9.243 4.622 4.622 0 0 0 0-9.243m0 7.622a3 3 0 1 1 0-6 3 3 0 0 1 0 6m5.884-7.805a1.08 1.08 0 1 1-2.16 0 1.08 1.08 0 0 1 2.16 0"})})}],c=()=>(0,t.jsx)("div",{className:"flex items-center gap-3",children:o.map(e=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.name,className:"flex size-[42px] items-center justify-center rounded-full border border-white/15 bg-transparent transition-all duration-200 ease-in-out hover:border-white/50 @3xl:bg-game-frame",children:(0,t.jsx)(e.icon,{className:"size-4"})},e.name))}),d=[{label:i.LEGAL.emailSoporte,href:`mailto:${i.LEGAL.emailSoporte}`},{label:i.LEGAL.emailMarketing,href:`mailto:${i.LEGAL.emailMarketing}`}],m=()=>(0,t.jsxs)("svg",{"aria-hidden":"true","data-testid":"footer-mail-icon",className:"mr-1.5 h-[18px] w-4 shrink-0",fill:"none",viewBox:"0 0 18 18",children:[(0,t.jsx)("path",{fill:"#2099ff",d:"m17.84 3.154-5.459 5.424 5.46 5.424c.098-.206.158-.434.158-.678V3.832c0-.244-.06-.471-.159-.678m-1.423-.904H1.581c-.243 0-.471.06-.678.159L7.88 9.35c.617.617 1.62.617 2.238 0l6.977-6.942a1.6 1.6 0 0 0-.678-.159m-16.26.904A1.6 1.6 0 0 0 0 3.832v9.492c0 .244.06.472.159.678l5.459-5.424z"}),(0,t.jsx)("path",{fill:"url(#footer-mail-gradient-side)",d:"m17.84 3.154-5.459 5.424 5.46 5.424c.098-.206.158-.434.158-.678V3.832c0-.244-.06-.471-.159-.678m-1.423-.904H1.581c-.243 0-.471.06-.678.159L7.88 9.35c.617.617 1.62.617 2.238 0l6.977-6.942a1.6 1.6 0 0 0-.678-.159m-16.26.904A1.6 1.6 0 0 0 0 3.832v9.492c0 .244.06.472.159.678l5.459-5.424z"}),(0,t.jsx)("path",{fill:"url(#footer-mail-gradient-bottom)",d:"m11.635 9.32-.773.773a2.64 2.64 0 0 1-3.728 0L6.36 9.32.902 14.744c.207.099.435.159.678.159h14.836c.244 0 .472-.06.678-.159z"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"footer-mail-gradient-side",x1:"8.999",x2:"8.999",y1:"2.25",y2:"14.002",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#87c1f2"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#3a8dda"})]}),(0,t.jsxs)("linearGradient",{id:"footer-mail-gradient-bottom",x1:"8.998",x2:"8.998",y1:"9.32",y2:"14.903",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#87c1f2"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#3a8dda"})]})]})]}),x=()=>(0,t.jsxs)("svg",{"aria-hidden":"true","data-testid":"footer-handshake-icon",className:"mr-1.5 h-[18px] w-4 shrink-0",fill:"none",viewBox:"0 0 18 18",children:[(0,t.jsx)("path",{fill:"url(#footer-handshake-gradient-one)",d:"m2.812 9.599-1.118 1.119a.791.791 0 0 0 1.118 1.118l1.119-1.118a.79.79 0 1 0-1.119-1.119m3.73 3.729-1.12 1.119a.791.791 0 0 0 1.12 1.118l1.118-1.118a.791.791 0 1 0-1.119-1.12m2.61 3.356.372-.373a.79.79 0 1 0-1.118-1.119l-.373.373a.791.791 0 0 0 1.118 1.119m-3.73-5.966-1.864 1.864A.79.79 0 1 0 4.675 13.7l1.864-1.865a.791.791 0 1 0-1.119-1.118"}),(0,t.jsx)("path",{fill:"url(#footer-handshake-gradient-two)",d:"M6.728 2.703 5.374 1.334a.527.527 0 0 0-.746 0L.154 5.81a.527.527 0 0 0 0 .746l.914.928c.29.29.507.642.637 1.03l.176.529.186-.187c.72-.72 1.89-.72 2.61 0 .228.228.376.504.46.794a1.84 1.84 0 0 1 2.15.325c.583.582.685 1.456.326 2.151a1.82 1.82 0 0 1 1.331 1.786 1.84 1.84 0 0 1 1.327.538l.745.745a.79.79 0 1 0 1.12-1.118L10.83 12.77a.527.527 0 0 1 .746-.746l1.305 1.305A.791.791 0 0 0 14 12.211l-1.306-1.305a.528.528 0 0 1 .746-.745l1.305 1.305a.791.791 0 0 0 1.12-1.119L12.656 7.14a2.64 2.64 0 0 1-3.319-.336.53.53 0 0 0-.745 0 2.64 2.64 0 0 1-3.73 0 1.584 1.584 0 0 1 0-2.237z"}),(0,t.jsx)("path",{fill:"url(#footer-handshake-gradient-three)",d:"M13.37 1.28a.527.527 0 0 0-.747 0l-1.115 1.115a1.04 1.04 0 0 1-.738.306H8.874c-.42 0-.822.166-1.118.463L5.609 5.311a.52.52 0 0 0 0 .746 1.58 1.58 0 0 0 2.237 0 1.585 1.585 0 0 1 2.05-.16c.832.606 1.941.643 2.67-.085l.128-.128 3.628 3.628c.05-.186.051-.382.002-.565-.085-.316.038-.766.27-.997l1.25-1.25a.527.527 0 0 0 0-.746z"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"footer-handshake-gradient-one",x1:"5.609",x2:"5.609",y1:"9.367",y2:"16.916",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#87c1f2"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#3a8dda"})]}),(0,t.jsxs)("linearGradient",{id:"footer-handshake-gradient-two",x1:"8.047",x2:"8.047",y1:"1.18",y2:"15.426",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#87c1f2"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#3a8dda"})]}),(0,t.jsxs)("linearGradient",{id:"footer-handshake-gradient-three",x1:"11.725",x2:"11.725",y1:"1.125",y2:"9.312",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#87c1f2"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#3a8dda"})]})]})]}),p=()=>(0,t.jsxs)("div",{className:"pr-12 @4xl:pr-[10%] @5xl:w-6/12",children:[(0,t.jsx)(n.GannarLogo,{className:"mb-5 h-[37px] w-auto self-start"}),(0,t.jsxs)("p",{className:"mb-5 text-[13px] leading-[1.5] text-muted-foreground @5xl:max-w-md",children:["Gannar es operado por ",i.LEGAL.razonSocial,", con domicilio en ",i.LEGAL.domicilio," ",(0,i.licenciaTexto)(),". Juega de forma responsable. +18."]}),d.map((e,a)=>(0,t.jsxs)("a",{href:e.href,className:(0,r.cn)("flex items-center text-[13px] text-foreground transition-colors hover:text-primary @3xl:font-medium",0===a?"mt-10":"mt-2"),children:[0===a?(0,t.jsx)(m,{}):(0,t.jsx)(x,{}),e.label]},e.href)),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)(c,{})})]});var u=e.i(485800),h=e.i(769613),f=e.i(298936);let b=({title:e,links:a})=>(0,t.jsxs)("div",{className:"flex w-1/3 flex-col text-[13px]",children:[(0,t.jsx)("h3",{className:"mb-4 text-sm font-medium uppercase text-footer-heading",children:e}),(0,t.jsx)("ul",{className:(0,r.cn)("flex flex-col",a.length>8?"space-y-0":"space-y-4"),children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(f.default,{href:e.href,prefetch:!1,className:"inline-flex items-center gap-1 leading-normal text-muted-foreground transition-colors hover:text-foreground @3xl:font-medium @3xl:text-footer-link",...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:[e.label,e.external&&(0,t.jsx)(h.ExternalLink,{className:"h-3 w-3"})]})},e.label))})]});var g=e.i(911173);let v=[{title:"Gannar",links:[{label:"Recompensas",href:g.ROUTES.rewards},{label:"Promociones",href:"/promotions"},{label:"Club VIP",href:"/vip"},{label:"Afiliados",href:"/afiliados"}]},{title:"Recursos",links:[{label:"Juego Responsable",href:"/responsible-gambling/gannar-smart"},{label:"Métodos de Pago",href:g.ROUTES.payments.methods},{label:"Monedas Soportadas",href:g.ROUTES.payments.currencies},{label:"Soporte en Vivo",href:g.ROUTES.support}]},{title:"Legal",links:[{label:"PolÃtica AML",href:g.ROUTES.legal.aml},{label:"Reglas Deportivas",href:g.ROUTES.legal.reglasDeportivas},{label:"PolÃtica de Cookies",href:g.ROUTES.legal.cookies},{label:"PolÃtica Editorial",href:g.ROUTES.legal.politicaEditorial},{label:"Aviso Legal",href:g.ROUTES.legal.disclaimer},{label:"PolÃtica de Privacidad",href:g.ROUTES.legal.privacidad},{label:"Términos del Servicio",href:g.ROUTES.legal.terminos}]}],j=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-testid":"footer-links-desktop",className:"mt-5 hidden justify-between gap-6 @3xl:flex @4xl:gap-12 @5xl:mt-0 @5xl:w-6/12 @5xl:justify-end",children:v.map(e=>(0,t.jsx)(b,{title:e.title,links:e.links},e.title))}),(0,t.jsx)(u.Accordion,{type:"multiple","data-testid":"footer-links-mobile",className:"mt-8 flex flex-col gap-4 @3xl:hidden",children:v.map(e=>(0,t.jsxs)(u.AccordionItem,{value:e.title,className:"mt-3 border-0 first:mt-0",children:[(0,t.jsx)(u.AccordionTrigger,{className:"h-[60px] rounded-md border border-white/5 bg-secondary px-6 py-0 text-sm font-medium uppercase text-foreground hover:bg-secondary-hover data-[state=open]:rounded-b-none [&_svg]:size-5",children:e.title}),(0,t.jsx)(u.AccordionContent,{className:"rounded-b-md border border-t-0 border-white/5 bg-secondary px-4 py-4",children:(0,t.jsx)("ul",{className:"flex flex-col gap-4",children:e.links.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(f.default,{href:e.href,prefetch:!1,className:"inline-flex items-center gap-1 text-[13px] text-muted-foreground transition-colors hover:text-foreground",...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:[e.label,e.external&&(0,t.jsx)(h.ExternalLink,{className:"size-3"})]})},e.label))})})]},e.title))})]});var y=e.i(683463);let N=({idPrefix:e,...a})=>{let s=`${e}-clip`,r=`${e}-mask`;return(0,t.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"38",he
2ight:"38",fill:"none",viewBox:"0 0 38 38",...a,children:[(0,t.jsxs)("g",{clipPath:`url(#${s})`,children:[(0,t.jsx)("mask",{id:r,width:"38",height:"38",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{maskType:"luminance"},children:(0,t.jsx)("path",{fill:"#fff",d:"M38 0H0v38h38z"})}),(0,t.jsxs)("g",{mask:`url(#${r})`,children:[(0,t.jsx)("path",{fill:"#fdb913",d:"M3.706.647h30.587a3.06 3.06 0 0 1 3.06 3.059v30.587a3.06 3.06 0 0 1-3.06 3.06H3.706a3.06 3.06 0 0 1-3.059-3.06V3.707a3.06 3.06 0 0 1 3.06-3.06"}),(0,t.jsx)("path",{fill:"#231f20",d:"m21.142 19.396-.003-6.572 1.715-.407v.861s.444-1.133 1.476-1.396a1 1 0 0 1 .477-.031v1.676a2.4 2.4 0 0 0-.9.187c-.633.25-.952.797-.952 1.63l.001 3.63zm-9.043 2.137s-.28-.418-.28-1.896v-3.273l-.882.21v-1.348l.885-.209v-1.469l1.824-.43v1.469l1.289-.306v1.346l-1.29.306v3.332c0 1.515.403 1.806.403 1.806zm3.027-3.909c0-1.168.166-2.02.523-2.675.425-.776 1.122-1.282 2.137-1.513 2.001-.455 2.723.73 2.695 2.317-.01.568-.008.845-.008.845l-3.525.829v.057c0 1.11.233 1.636.936 1.487.607-.129.776-.51.824-.98.008-.075.012-.268.012-.268l1.651-.396s.004.135.002.287c-.015.63-.198 2.195-2.493 2.737-2.175.516-2.754-.811-2.754-2.727m2.733-2.964c-.584.132-.89.705-.903 1.655l1.773-.423q.004-.063.003-.285c-.003-.717-.225-1.095-.873-.947m13.121-.88c-.068-2.001.451-3.59 2.684-4.095 1.423-.324 1.964.047 2.237.404.264.342.365.802.365 1.447l.002.119-1.747.415-.002-.243c.002-.765-.21-1.056-.766-.917-.661.166-.928.793-.928 2.04 0 .443.002.522.002.582 0 1.267.173 1.847.934 1.687.661-.136.752-.716.762-1.225l.005-.335 1.744-.412s.002.129.002.272c-.005 1.662-.88 2.709-2.52 3.09-2.261.53-2.704-.776-2.774-2.829m-6.039 2.803c0-1.523.892-2.004 2.234-2.56 1.207-.5 1.233-.747 1.238-1.18.007-.366-.162-.679-.763-.525a.91.91 0 0 0-.728.86q-.015.168-.01.337l-1.693.4a3.4 3.4 0 0 1 .116-1c.271-.91 1.074-1.523 2.46-1.844 1.8-.415 2.4.375 2.403 1.604v2.911c0 1.408.261 1.614.261 1.614l-1.661.393a3.6 3.6 0 0 1-.223-.597s-.364.917-1.619 1.212c-1.317.31-2.015-.506-2.015-1.625m3.46-2.08q-.42.296-.883.518c-.554.27-.804.605-.804 1.119 0 .445.276.738.777.614.538-.136.91-.638.91-1.335zM2.562 26.14a1.054 1.054 0 0 1-.884-1.629l.012-.015.02-.005 2.48-.586v1.884l-.038.01c-.563.135-1.235.289-1.374.318a1 1 0 0 1-.216.023m0 2.41a1.053 1.053 0 0 1-.884-1.625l.012-.018.02-.005 2.48-.585V28.2l-.038.01c-.563.135-1.235.29-1.374.319q-.106.02-.216.02m0 2.416a1.054 1.054 0 0 1-.884-1.626l.012-.019 2.5-.589v1.884l-.038.01c-.594.143-1.254.292-1.374.319a1 1 0 0 1-.216.021m-.293-7.134V13.289l1.921-.454v10.542zm4.788-.897a1.186 1.186 0 0 0-2.372 0l.002 9.854a3.215 3.215 0 0 0 3.209 3.21c.897 0 3.356-.004 3.356-.004l.002-4.11V27.3a1.55 1.55 0 0 0-.69-1.293l-2.99-2.032-.002 4.615a.255.255 0 0 1-.51 0zm1.601-7.351a2.6 2.6 0 0 0-1.71 1.322v-.74l-1.731.409.002 4.732a1.77 1.77 0 0 1 1.822.318V18.57c0-.732.364-1.316.884-1.43.392-.087.719.053.719.75v4.458l1.824-.428v-4.715c0-1.143-.44-1.942-1.81-1.621m26.486-6.749a1.127 1.127 0 1 1-.002-2.253 1.127 1.127 0 0 1 .002 2.253m0-2.112a.985.985 0 1 0 0 1.971.985.985 0 0 0 0-1.97"}),(0,t.jsx)("path",{fill:"#231f20",d:"M34.733 7.037h.486a.318.318 0 0 1 .349.354c0 .178-.08.315-.23.339v.002c.137.014.209.09.216.283.002.087.004.195.008.28a.14.14 0 0 0 .065.118h-.248a.23.23 0 0 1-.037-.122c-.008-.082-.006-.16-.01-.26-.003-.15-.05-.215-.2-.215h-.18v.597h-.219zm.395.613a.202.202 0 0 0 .22-.223c0-.147-.064-.224-.208-.224h-.187v.447z"})]})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:s,children:(0,t.jsx)("path",{fill:"#fff",d:"M0 0h37.999v38H0z"})})})]})},w=[{id:"btc",name:"Bitcoin",src:"/assets/footer/crypto-bitcoin.webp"},{id:"eth",name:"Ethereum",src:"/assets/footer/crypto-ethereum.webp"},{id:"trx",name:"Tron",src:"/assets/footer/crypto-tron.webp"},{id:"ltc",name:"Litecoin",src:"/assets/footer/crypto-litecoin.webp"},{id:"sol",name:"Solana",src:"/assets/footer/crypto-solana.webp"},{id:"ton",name:"TON",src:"/assets/footer/crypto-ton.webp"},{id:"link",name:"Chainlink",src:"/assets/footer/crypto-chainlink.webp"},{id:"xrp",name:"XRP",src:"/assets/footer/crypto-xrp.webp"},{id:"ada",name:"Cardano",src:"/assets/footer/crypto-cardano.webp"},{id:"bnb",name:"Binance",src:"/assets/footer/crypto-binance.webp"}],k=()=>(0,t.jsxs)("ul",{className:"mb-4 flex w-full flex-wrap items-center justify-start gap-x-5 gap-y-4 @4xl
2:min-h-12 @4xl:justify-between [&>*]:shrink-0",children:[(0,t.jsx)("li",{title:"Interac",children:(0,t.jsx)(N,{idPrefix:"footer-payment-interac","data-testid":"footer-payment-logo-interac",className:"h-12 w-12"})}),w.map(({id:e,name:a,src:s})=>(0,t.jsx)("li",{title:a,children:(0,t.jsx)(y.default,{src:s,alt:a,width:48,height:48,className:"h-12 w-12"})},e)),(0,t.jsx)("li",{className:"text-[13px] text-muted-foreground/60",children:"y másâ¦"})]});var C=e.i(437761);let S=["/wallet","/cashier","/account","/settings","/transactions","/profile"],E=()=>{let e=(0,a.usePathname)();return S.some(t=>e===t||e.startsWith(`${t}/`))},z=()=>window[i.ANJOUAN_SEAL.globalName],M=()=>document.querySelector(`#${i.ANJOUAN_SEAL.containerId} a`),A=()=>M()?.href??null,T=()=>{let e=M();e&&(e.setAttribute("rel","noopener noreferrer"),e.tabIndex=-1)},L=async()=>{let e=z();if(!e)return A();try{let t,a;e.init(),T();let s=(t=document.querySelector(`#${i.ANJOUAN_SEAL.containerId} div`),a=/url\(["']?([^"')]+)["']?\)/.exec(t?.style.backgroundImage??""),a?.[1]??null);s&&await new Promise(e=>{let t=new Image,a=setTimeout(e,1500),r=()=>{clearTimeout(a),e()};t.addEventListener("load",r,{once:!0}),t.addEventListener("error",r,{once:!0}),t.src=s})}catch{}return A()},P=()=>{let e=E();return((0,C.useEffect)(()=>{if(e)return;let t=z();if(t){t.init(),T();return}if(!document.querySelector(`script[src="${i.ANJOUAN_SEAL.scriptUrl}"]`)){let e=document.createElement("script");e.type="text/javascript",e.src=i.ANJOUAN_SEAL.scriptUrl,e.async=!0,e.addEventListener("load",T,{once:!0}),document.head.appendChild(e)}},[e]),e)?null:(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none w-7 shrink-0",children:(0,t.jsx)("div",{id:i.ANJOUAN_SEAL.containerId,"data-anj-seal-id":i.ANJOUAN_SEAL.id,"data-anj-image-size":"64","data-anj-image-type":"basic-small"})})},I=({label:e,className:a})=>{let s=E(),[n,l]=(0,C.useState)(i.ANJOUAN_SEAL.validatorHome);(0,C.useEffect)(()=>{if(s)return;let e=document.getElementById(i.ANJOUAN_SEAL.containerId);if(!e)return;let t=()=>l(A()??i.ANJOUAN_SEAL.validatorHome);t();let a=new MutationObserver(t);return a.observe(e,{childList:!0,subtree:!0}),()=>a.disconnect()},[s]);let o=(0,C.useCallback)(async e=>{if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;e.preventDefault();let t=window.open("","_blank");t&&(t.opener=null);let a=await L()??i.ANJOUAN_SEAL.validatorHome;l(a),t&&t.location.replace(a)},[]);return s?(0,t.jsx)("div",{className:a,children:(0,t.jsx)("span",{children:e})}):(0,t.jsxs)("div",{className:(0,r.cn)("relative",a),children:[(0,t.jsx)(P,{}),(0,t.jsx)("span",{children:e}),(0,t.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:o,"aria-label":`${e} â verificaci\xf3n oficial de Anjouan Gaming`,className:"absolute inset-0 rounded-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-footer-bg"})]})},R="flex h-16 w-full min-w-0 flex-row items-center justify-start gap-3 rounded-md border border-white/5 bg-[linear-gradient(180deg,rgba(124,131,177,0.10)_0%,rgba(94,103,158,0.10)_100%)] px-5 text-left text-[13px] font-medium leading-none text-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-footer-bg",_=[{id:"rg",label:"Juego Responsable",href:"/responsible-gambling/gannar-smart",mark:(0,t.jsx)(()=>(0,t.jsxs)("svg",{"aria-hidden":"true","data-testid":"footer-over-eighteen-icon",className:"h-8 w-8 shrink-0",fill:"none",viewBox:"0 0 33 32",children:[(0,t.jsx)("path",{fill:"#fff",d:"M9.067 22.921V12.555c-.638.35-1.855.694-2.552.777v-1.914c1.194-.246 2.488-.978 3.31-1.824h1.824V22.92zm8.163-9.787c0 .976.676 1.695 2.07 1.695 1.335 0 2.012-.56 2.012-1.67 0-1.061-.697-1.806-2.04-1.806-1.392 0-2.042.668-2.042 1.781m4.462 5.874c0-1.444-.977-2.147-2.446-2.147-1.636 0-2.437.895-2.437 2.133 0 1.287.95 2.187 2.474 2.187 1.404 0 2.409-.694 2.409-2.173m-7.449.111c0-1.76 1.229-2.814 2.281-3.259-1.081-.61-1.731-1.45-1.731-2.793 0-2.189 1.601-3.684 4.541-3.684 2.687 0 4.415 1.439 4.415 3.65 0 1.495-.791 2.306-1.768 2.702 1.07.373 2.262 1.537 2.262 3.301 0 2.674-2.14 4.13-5.115 4.13-2.701 0-4.885-1.47-4.885-4.047M27.8 12.328V4.563h2.371v7.765z"}),(0,t.jsx)("path",{fill:"#fff",d:"M25.059 9.618V7.273h7.855v2.345z"}),(0,t.jsx)("path",{fill:"#fff",d:"M16.185 32C7.26 32 0 24.823 0 16 0 7.178 7.26 0 16.185 0c3.468 0 6.775 1.069 9.564 3.091l-1.613 2.174a13.46 13.46 0 0 0-7.951-2.569C8.765 2.696 2.727 8.664 2.727 16s6.037 13.304 13.458 13.304c7.42 0 13.458-5.968 13.458-13.304 0-.414-.02-.832-.058-1.241l2.715-.248c.046.491.07.992.07 1.49C32.37 24.822 25.11 32 16.185 32"})]}),{})},{id:"pf",label:"Provably Fair",href:"/provably-fair",mark:(0,t.jsx)(()=>(0,t.jsx)("svg",{"aria-hidden":"true","data-testid":"footer-shield-tick-icon",className:"h-8 w-8 shrink-0",fill:"#fff",viewBox:"0 0 26 31",children:(0,t.jsx)("path",{d:"m25.842 11.966-1.079-7.157c-7.836 0-11.755-4-11.755-4s-3.918 4-11.755 4L.174 11.966a14.94 14.94 0 0 0 1.322 8.736 14.54 14.54 0 0 0 6 6.373l5.512 3.067 5.514-3.067a14.54 14.54 0 0 0 5.999-6.373 14.94 14.94 0 0 0 1.321-8.736m-6.686.452-7.836 8a1.293 1.293 0 0 1-1.847 0L6.86 17.75a1.34 1.34 0 0 1-.398-.947 1.36 1.36 0 0 1 .382-.955 1.3 1.3 0 0 1 .935-.39 1.28 1.28 0 0 1 .928.407l1.69 1.724 6.912-7.057a1.29 1.29 0 0 1 1.831.016 1.35 1.35 0 0 1 .016 1.869"})}),{})},{id:"lic",label:"Licencia",externalSeal:!0}],D=()=>(0,t.jsx)("ul",{className:"grid w-full grid-cols-1 gap-4 @3xl:grid-cols-3",children:_.map(e=>(0,t.jsx)("li",{children:e.externalSeal?(0,t.jsx)(I,{label:e.label,className:R}):(0,t.jsxs)(f.default,{href:e.href,prefetch:!1,className:R,children:[e.mark,(0,t.jsx)("span",{children:e.label})]})},e.id))}),B=({flush:e=!1})=>(0,t.jsx)("footer",{className:(0,r.cn)("@container/footer flex flex-col border-t border-header-border bg-footer-bg px-5 py-12 font-medium leading-[normal]",e?"lg:mt-12":"mt-12"),children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[1200px] px-4",children:[(0,t.jsxs)("div",{"data-testid":"footer-main",className:"flex flex-col @5xl:flex-row",children:[(0,t.jsx)(p,{}),(0,t.jsx)(j,{})]}),(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-4 text-[13px] text-muted-foreground",children:[(0,t.jsx)(s.Divider,{className:"mt-8 mb-4 w-full"}),(0,t.jsx)(k,{}),(0,t.jsx)(D,{}
2),(0,t.jsx)("div",{"data-nosnippet":"",className:"w-full",children:(0,t.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i.ANJOUAN_REQUIRED_FOOTER_TEXT})}),(0,t.jsx)(s.Divider,{className:"mt-4 mb-4 w-full"}),(0,t.jsxs)("p",{className:"leading-normal text-muted-foreground",children:["© ",new Date().getFullYear()," Gannar. Todos los derechos reservados."]})]})]})}),O=["/sports"];e.s(["ConditionalFooter",0,()=>{let e=(0,a.usePathname)();return O.some(t=>e===t||e.startsWith(`${t}/`))?null:(0,t.jsx)(B,{})}],232469)},76e3,e=>{"use strict";var t=e.i(887720),a=e.i(389672),s=e.i(836179),r=e.i(437761);e.i(169873);var i=e.i(982189);let n=s.COMPLIANCE_DOCUMENT_MAX_BYTES/1048576,l={[s.ComplianceDocumentStatus.SUBMITTED]:{label:"En revisión",tone:"text-warning"},[s.ComplianceDocumentStatus.APPROVED]:{label:"Aprobado",tone:"text-success"},[s.ComplianceDocumentStatus.REJECTED]:{label:"Rechazado",tone:"text-destructive-text"}},o=({docType:e,onSubmitted:o})=>{let[c,d]=(0,r.useState)(!1),[m,x]=(0,r.useState)(null),p=(0,r.useRef)(null),u=a.trpc.useUtils(),{data:h}=a.trpc.complianceDocuments.listMine.useQuery(),f=h?.find(t=>t.docType===e)??null,b=a.trpc.complianceDocuments.requestUploadUrl.useMutation(),g=a.trpc.complianceDocuments.submit.useMutation({onSuccess:async()=>{await u.complianceDocuments.listMine.invalidate(),p.current&&(p.current.value=""),i.toast.success("Documento enviado. Lo revisaremos pronto."),o?.()},onError:()=>i.toast.error("No pudimos enviar el documento. Inténtalo de nuevo.")});async function v(t){let a=t.target.files?.[0];if(!a)return;if(x(null),!s.COMPLIANCE_DOCUMENT_ALLOWED_MIME.includes(a.type))return void x("Formato no permitido. Usa una imagen (PNG, JPG, WEBP) o un PDF.");if(a.size>s.COMPLIANCE_DOCUMENT_MAX_BYTES)return void x(`El archivo supera el m\xe1ximo de ${n} MB.`);let r=a.type;try{d(!0);let{uploadUrl:t,s3Key:s}=await b.mutateAsync({docType:e,fileName:a.name,mimeType:r,sizeBytes:a.size}),i=await fetch(t,{method:"PUT",body:a,headers:{"Content-Type":r}});if(!i.ok){let e=await i.text().catch(()=>"");throw Error(`S3 PUT ${i.status} ${i.statusText} ${e.slice(0,300)}`)}await g.mutateAsync({docType:e,s3Key:s,fileName:a.name,mimeType:r,sizeBytes:a.size})}catch(e){console.error("[compliance-doc] upload failed:",e),x("No pudimos subir el archivo. Inténtalo de nuevo.")}finally{d(!1)}}let j=!f||f.status===s.ComplianceDocumentStatus.REJECTED;return(0,t.jsxs)("div",{"data-testid":"compliance-doc-section",className:"flex flex-col gap-2",children:[f&&(0,t.jsxs)("p",{className:"text-sm",children:["Estado:"," ",(0,t.jsx)("span",{className:`font-medium ${l[f.status].tone}`,children:l[f.status].label})]}),f?.status===s.ComplianceDocumentStatus.REJECTED&&f.rejectionReason&&(0,t.jsxs)("p",{className:"text-xs text-muted-foreground","data-testid":"compliance-doc-reason",children:["Motivo: ",f.rejectionReason]}),j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:p,type:"file","data-testid":"compliance-doc-input","aria-label":"Subir documento",accept:s.COMPLIANCE_DOCUMENT_ALLOWED_MIME.join(","),disabled:c,onChange:v,className:"text-sm text-muted-foreground file:mr-3 file:rounded-md file:border file:border-border file:bg-secondary file:px-3 file:py-1.5 file:text-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Imágenes (PNG, JPG, WEBP) o PDF, hasta ",n," MB."]}),c&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Subiendo archivoâ¦"}),m&&(0,t.jsx)("p",{role:"alert",className:"text-xs text-destructive-text",children:m})]}):(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Recibimos tu documento. Te avisaremos cuando termine la revisión."})]})},c=[{docType:s.ComplianceDocumentType.PROOF_OF_ADDRESS,label:"Comprobante de domicilio"},{docType:s.ComplianceDocumentType.SOURCE_OF_FUNDS,label:"Fuente de ingresos"}];e.s(["EddBanner",0,()=>{let e=a.trpc.useUtils(),{data:s}=a.trpc.edd.getMyCase.useQuery();return s?(0,t.jsxs)("div",{role:"status","data-testid":"edd-banner",className:"rounded-md border border-warning/40 bg-warning/10 p-4 text-paragraph-small",children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Verificación adicional requerida"}),(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:"Tus retiros están pausados mientras completamos una verificación adicional de seguridad."}),s.requiresSourceOfFunds?(0,t.jsxs)("div",{className:"mt-3 space-y-4",children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:"Sube los siguientes documentos para continuar:"}),c.map(({docType:a,label:s})=>(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:s}),(0,t.jsx)(o,{docType:a,onSubmitted:()=>void e.edd.getMyCase.invalidate()})]},a))]}):(0,t.jsx)("p",{"data-testid":"edd-in-review",className:"mt-3 font-medium text-foreground",children:"Tu información está en revisión. Te avisaremos cuando se complete."})]}):null}],76e3)}]); 3 4//# debugId=84b34835-87a3-1409-1773-ad4830d5a405
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.