PageSourceSearch

https://ufficio-direktor.netlify.app/assets/TorneiHub-BNV572Rb.js

js ufficio-direktor.netlify.app collected 2026-10-03 11:33:47 UTC 21,941 bytes, 6 lines download raw bytes

1import{j as e,m as c,b as q,A as ie}from"./vendor-motion-CLvCbyKA.js";import{e as oe,r as b,L as re}from"./vendor-react-BL644MmM.js";import{u as B,a as le,e as ce,b_ as de,q as me,bi as xe,bj as pe}from"./index-DoK7TmHP.js";import{p as ue,T as be,u as ye}from"./TorneiLiveAmbience-B2q1j2M5.js";import{u as ge,a as Z,k as P,m as u,j as K,l as fe,C as J,f as W,d as he,g as D,n as je,i as R,L as ve,b as we,T as ke,c as Ne}from"./TorneiLoginIdleTicker-yyqyfCoj.js";import{u as Se}from"./useMonthlyPool-DBZ9on6C.js";import{b as _,a as Ce}from"./tournament-config-m3HPcu8i.js";import{Z as V,a0 as T,n as Ee,v as He}from"./vendor-icons-De4F07f6.js";import"./vendor-supabase-DR2MMlUt.js";import"./AppLogo-BAKTsUXA.js";import"./holy-hour-demo-BjdL2MuG.js";const y=[.32,.72,0,1],Q="#f5c542",Le="#e8242f",$e=`
2  radial-gradient(ellipse 90% 70% at 78% 22%, rgba(245, 197, 66, 0.14) 0%, transparent 55%),
3  radial-gradient(ellipse 70% 55% at 12% 88%, rgba(232, 36, 47, 0.08) 0%, transparent 50%),
4  radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 45%),
5  linear-gradient(152deg, #060608 0%, #0c0a09 38%, #111015 68%, #080706 100%)
6`;function z(t){return t==="holy-hour"?"holy-hour":"maestro"}function U(t){return t==="holy-hour"?Q:Le}function A({selected:t,compact:i=!1}){const n=t==="holy-hour",a=n?V:T,s=U(t),l=n?fe:u,p=i?52:88;return e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsxs(c.div,{initial:{opacity:0,scale:.88,y:12},animate:{opacity:1,scale:1,y:0},transition:{duration:.65,ease:y,delay:.12},className:i?"relative mb-3":"relative mb-6 sm:mb-8",children:[e.jsx("div",{className:"absolute inset-0 scale-150 rounded-full blur-3xl",style:{background:`${s}33`}}),e.jsx(a,{size:p,strokeWidth:1.35,className:i?"relative":"relative sm:h-[108px] sm:w-[108px]",style:{color:s,filter:`drop-shadow(0 0 28px ${s}aa) drop-shadow(0 8px 24px rgba(0,0,0,0.45))`}})]}),e.jsx(c.h2,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.55,ease:y,delay:.2},className:i?"text-[clamp(1.65rem,7.5vw,2.25rem)] font-bold uppercase leading-[0.92] tracking-[0.05em]":"text-[clamp(2rem,8vw,3.75rem)] font-bold uppercase leading-[0.92] tracking-[0.06em]",style:{fontFamily:l.font.display,color:s,textShadow:`0 0 40px ${s}44, 0 2px 0 rgba(0,0,0,0.35)`},children:n?"Holy Hour":"Maestro"}),e.jsx(c.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.5,ease:y,delay:.28},className:i?"mt-1 text-[10px] font-semibold uppercase tracking-[0.36em] text-white/50":"mt-2 text-[11px] font-semibold uppercase tracking-[0.42em] text-white/55 sm:text-xs",style:{fontFamily:l.font.display},children:n?"Scalping League":"Trading League"}),i?null:e.jsxs(e.Fragment,{children:[e.jsx(c.div,{initial:{opacity:0,scaleX:.2},animate:{opacity:1,scaleX:1},transition:{duration:.7,ease:y,delay:.36},className:"mt-5 h-px w-[min(220px,60vw)]",style:{background:`linear-gradient(90deg, transparent, ${s}88, transparent)`,boxShadow:`0 0 18px ${s}55`}}),e.jsx(P,{selected:t,accent:s})]})]})}function ee({accent:t,onVisitor:i,t:n}){return e.jsxs("div",{className:"mt-4 text-center",children:[e.jsxs("button",{type:"button",onClick:i,className:"flex w-full items-center justify-center gap-2 rounded-xl border py-2.5 text-sm font-semibold text-white/85 transition-colors hover:text-white",style:{borderColor:`${t}3a`,background:"rgba(255,255,255,0.04)"},children:[e.jsx(Ee,{size:14,style:{color:t}}),n("enterAsVisitor")]}),e.jsx("p",{className:"mt-2 text-[10px] leading-snug text-white/40",children:n("torneiVisitorPeekNote")})]})}function Me({returnTo:t,onAuthed:i,onVisitor:n,accent:a,t:s}){return e.jsx("div",{className:"w-full max-w-[400px]",children:e.jsxs("div",{className:"relative overflow-hidden rounded-[28px] border p-5 sm:p-7",style:{borderColor:"rgba(245, 197, 66, 0.38)",background:"linear-gradient(165deg, rgba(255,255,255,0.08) 0%, rgba(245,197,66,0.06) 22%, rgba(0,0,0,0.42) 58%, rgba(0,0,0,0.62) 100%)",boxShadow:"0 24px 64px rgba(0,0,0,0.55), 0 0 48px rgba(245,197,66,0.12), inset 0 1px 0 rgba(255,255,255,0.12)",backdropFilter:"blur(22px)",WebkitBackdropFilter:"blur(22px)"},children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-8 top-0 h-px",style:{background:"linear-gradient(90deg, transparent, rgba(245,197,66,0.75), transparent)"}}),e.jsx("div",{className:"mb-5 flex justify-center sm:mb-6",children:e.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-full border",style:{borderColor:"rgba(245, 197, 66, 0.45)",background:"linear-gradient(145deg, rgba(245,197,66,0.18), rgba(0,0,0,0.35))",boxShadow:"0 0 20px rgba(245,197,66,0.2)"},children:e.jsx(T,{size:20,style:{color:Q}})})}),e.jsx("p",{className:"text-center text-[10px] font-bold uppercase tracking-[0.38em] text-[#f5c542]/80",style:{fontFamily:u.font.display},children:s("torneiSignupEyebrow")}),e.jsx("h1",{className:"mt-2 text-center text-[clamp(1.15rem,4.5vw,1.65rem)] font-bold uppercase leading-tight tracking-[0.04em] text-white",style:{fontFamily:u.font.display},children:s("torneiSignupHeadline")}),e.jsx("p",{className:"mt-2 text-center text-[12px] leading-snug text-white/50 sm:text-[13px]",children:s("torneiSignupSub")}),e.jsxs("div",{className:"mt-5 sm:mt-6",children:[e.jsx(K,{returnTo:t,mode:"overlay",brandContext:"tornei",showBrand:!1,showVisitor:!1,hideFooter:!0,surface:"premium",entrance:"instant",onAuthSuccess:i,className:"max-w-none"}),e.jsx(ee,{accent:a,onVisitor:n,t:s})]})]})})}function X({selected:t,returnTo:i,onAuthed:n,onVisitor:a,t:s,anchor:l="bottom"}){const p=U(t),o=l==="top";return e.jsx(c.div,{className:o?"shrink-0 px-3 pb-2 pt-[max(3.25rem,10vh)]":"shrink-0 px-3 pb-[calc(4.5rem+env(safe-area-inset-bottom,0px))] pt-1",initial:{opacity:0,y:o?-28:28}
6,animate:{opacity:1,y:0},transition:{duration:.55,ease:y,delay:.1},children:e.jsxs("div",{className:"relative overflow-hidden rounded-[22px] border px-4 pb-4 pt-3.5",style:{borderColor:`${p}44`,background:"linear-gradient(180deg, rgba(12,12,14,0.82) 0%, rgba(6,6,8,0.92) 100%)",boxShadow:o?"0 12px 48px rgba(0,0,0,0.45), 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08)":"0 -8px 40px rgba(0,0,0,0.35), 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-6 top-0 h-px",style:{background:`linear-gradient(90deg, transparent, ${p}aa, transparent)`}}),e.jsx("div",{className:"mx-auto mb-3 h-1 w-10 rounded-full bg-white/20","aria-hidden":!0}),e.jsx("p",{className:"mb-3 text-center text-[9px] font-bold uppercase tracking-[0.34em] text-white/45",style:{fontFamily:u.font.display},children:s("torneiSignupEyebrow")}),e.jsx(K,{returnTo:i,mode:"overlay",brandContext:"tornei",showBrand:!1,showVisitor:!1,hideFooter:!0,compact:!0,surface:"premium",entrance:"instant",onAuthSuccess:n,className:"max-w-none"}),e.jsx(ee,{accent:p,onVisitor:a,t:s})]})})}function Te({selected:t,onAuthed:i,onVisitor:n}){const{t:a}=B(),s=ge(),{poster:l}=Z(s),o=`/tornei/${z(t)}`,m=t==="holy-hour",d=m?"Holy Hour":"Maestro",x=U(t);return e.jsxs(c.div,{className:"absolute inset-0 z-30 overflow-hidden",initial:{opacity:0}
6,animate:{opacity:1},transition:{duration:.45,ease:y},children:[e.jsx("div",{className:"absolute inset-0",style:{background:$e}}),e.jsx("img",{src:l,alt:"",className:["pointer-events-none absolute inset-0 h-full w-full object-cover",s?"opacity-[0.42]":"opacity-[0.14]"].join(" "),draggable:!1}),s?e.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:[m?`radial-gradient(ellipse 90% 55% at 50% 78%, ${x}22 0%, transparent 62%)`:`radial-gradient(ellipse 90% 55% at 50% 18%, ${x}22 0%, transparent 62%)`,m?"linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.65) 100%)":"linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 38%, rgba(0,0,0,0.72) 100%)"].join(", ")}}):e.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-[0.35]",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E")`}}),e.jsx("div",{className:`relative z-10 flex h-full min-h-0 flex-col ${s?"":"lg:flex-row"}`,children:s?m?e.jsxs(e.Fragment,{children:[e.jsx(X,{selected:t,returnTo:o,onAuthed:i,onVisitor:n,t:a,anchor:"top"}),e.jsxs(c.div,{className:"flex min-h-0 flex-1 flex-col items-center justify-center px-5 pb-[calc(4.5rem+env(safe-area-inset-bottom,0px))] pt-3",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,ease:y,delay:.18},children:[e.jsx(A,{selected:t,compact:!0}),e.jsx(P,{selected:t,accent:x,compact:!0})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs(c.div,{className:"flex min-h-0 flex-1 flex-col items-center justify-end px-5 pb-2 pt-[max(3.25rem,10vh)]",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,ease:y,delay:.06},children:[e.jsx(A,{selected:t,compact:!0}),e.jsx(P,{selected:t,accent:x,compact:!0})]}),e.jsx(X,{selected:t,returnTo:o,onAuthed:i,onVisitor:n,t:a,anchor:"bottom"})]}):e.jsxs(e.Fragment,{children:[e.jsx(c.div,{className:"flex w-full shrink-0 items-center justify-center px-5 py-8 sm:px-8 sm:py-10 lg:w-[min(52%,520px)] lg:shrink-0",initial:{opacity:0,x:-24},animate:{opacity:1,x:0},transition:{duration:.55,ease:y,delay:.06},children:e.jsx(Me,{returnTo:o,onAuthed:i,onVisitor:n,accent:x,t:a})}),e.jsx(c.div,{className:"relative flex min-h-0 flex-1 items-center justify-center px-6 py-10",initial:{opacity:0,x:24},animate:{opacity:1,x:0},transition:{duration:.6,ease:y,delay:.14},children:e.jsx(A,{selected:t})})]})}),e.jsx(c.div,{className:"pointer-events-none absolute inset-x-4 bottom-[max(1rem,env(safe-area-inset-bottom))] z-20 flex justify-center sm:inset-x-auto sm:left-1/2 sm:-translate-x-1/2",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,ease:y,delay:.32},children:e.jsxs("div",{className:"flex items-center gap-3 rounded-full border px-4 py-2.5 sm:px-5",style:{borderColor:`${x}44`,background:"rgba(8, 8, 10, 0.72)",boxShadow:"0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06)",backdropFilter:"blur(14px)"},children:[e.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-full",style:{background:`linear-gradient(145deg, ${x}, rgba(0,0,0,0.2))`,boxShadow:`0 0 16px ${m?"rgba(245,197,66,0.35)":"rgba(232,36,47,0.35)"}`},children:m?e.jsx(V,{size:14,className:"text-black"}):e.jsx(T,{size:14,className:"text-white"})}),e.jsxs("div",{className:"min-w-0 text-left",children:[e.jsx("p",{className:"text-[10px] font-medium text-white/55",children:a("torneiSignupModeLabel")}),e.jsx("p",{className:"truncate text-[11px] font-bold uppercase tracking-[0.2em]",style:{color:x,fontFamily:u.font.display},children:d})]})]})})]})}const Fe="#e8242f",Ie="#f5c542",O=[.32,.72,0,1];function _e({visible:t,hovered:i,portrait:n}){const{t:a}=B(),s=!!q(),l=i==="holy-hour",p=l?Ie:Fe,o=l?"rgba(245, 197, 66, 0.55)":"rgba(232, 36, 47, 0.55)",m=l?"holy":"maestro",d=a(l?"torneiHubIdleClaimAccentHoly":"torneiHubIdleClaimAccentMaestro"),x=h=>s?{initial:{opacity:0}
6,animate:t?{opacity:1}:{opacity:0},transition:{duration:.45,delay:t?h:0,ease:O}}:{initial:{opacity:0,y:14,filter:"blur(10px)"},animate:t?{opacity:1,y:0,filter:"blur(0px)"}:{opacity:0,y:-8,filter:"blur(6px)"},transition:{duration:.65,delay:t?h:0,ease:O}},k=n?"bottom-[7%]":"bottom-[15%]";return e.jsxs("div",{className:"pointer-events-none absolute inset-0 z-[25]","aria-hidden":!t,children:[e.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center px-6",children:e.jsxs("div",{className:"flex max-w-[min(92vw,520px)] flex-col items-center text-center",children:[e.jsx(c.p,{...x(.18),className:"text-[clamp(10px,2.4vw,13px)] font-semibold uppercase leading-snug tracking-[0.32em] text-white/58 sm:tracking-[0.38em]",style:{fontFamily:u.font.display},children:a("torneiHubIdleClaimLead")}),e.jsxs(c.p,{...x(.38),className:"mt-2 text-[clamp(1.05rem,4.8vw,1.85rem)] font-bold uppercase leading-[1.05] tracking-[0.06em] sm:mt-2.5",style:{fontFamily:u.font.display},children:[e.jsx("span",{className:"text-white/88",children:a("torneiHubIdleClaimPrefix")}),e.jsx("span",{className:"relative inline-block min-w-[5.5ch]",children:e.jsx(ie,{mode:"wait",children:e.jsx(c.span,{className:"inline-block",initial:s?{opacity:0}:{opacity:0,y:10,filter:"blur(6px)"},animate:s||!t?{opacity:1,color:p}:{opacity:1,y:0,filter:"blur(0px)",color:p,textShadow:[`0 0 20px ${o}, 0 2px 0 rgba(0,0,0,0.35)`,`0 0 36px ${o}, 0 0 12px ${p}88, 0 2px 0 rgba(0,0,0,0.35)`,`0 0 20px ${o}, 0 2px 0 rgba(0,0,0,0.35)`]},exit:s?{opacity:0}:{opacity:0,y:-8,filter:"blur(4px)"},transition:{duration:s?.2:.38,ease:O,textShadow:s||!t?void 0:{duration:3.2,repeat:1/0,ease:"easeInOut"}},children:d},m)})})]})]})}),e.jsx(c.div,{...x(.55),className:`absolute inset-x-0 ${k} flex justify-center px-4`,children:e.jsx(c.div,{className:"rounded-2xl border px-8 py-3.5 sm:px-12 sm:py-4",animate:s||!t?{scale:1}:{scale:[1,1.02,1]},transition:s||!t?void 0:{duration:3.5,repeat:1/0,ease:"easeInOut"},style:{borderColor:"rgba(255,255,255,0.14)",background:"rgba(0, 0, 0, 0.42)",boxShadow:"0 12px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1)",backdropFilter:"blur(18px)",WebkitBackdropFilter:"blur(18px)"},children:e.jsx("span",{className:"text-[clamp(0.85rem,3.2vw,1.35rem)] font-bold uppercase tracking-[0.28em] text-white/75 sm:tracking-[0.34em]",style:{fontFamily:u.font.display},children:a("torneiHubSelectMode")})})})]})}const Ae="#e8242f",Oe="#f5c542";function Pe(){const[t,i]=b.useState(()=>typeof window<"u"&&window.matchMedia("(orientation: portrait)").matches);return b.useEffect(()=>{const n=window.matchMedia("(orientation: portrait)"),a=s=>i(s.matches);return n.addEventListener("change",a),()=>n.removeEventListener("change",a)},[]),t}function Y({baseUsd:t,increments:i}){ye();const n=Ne({base_usd:t,increments_24h:i});return e.jsxs("span",{style:{fontFamily:u.font.mono},children:["$",n.toLocaleString("en-US",{maximumFractionDigits:0})]})}function De(t,i,n,a){if(a)return{x:0,y:0};const s=t==="maestro"?"-115%":"115%";return(i==="exit"||i==="signup")&&n?t===n?{x:0,y:0}:{x:s,y:0}:{x:0,y:0}}function Re(t,i){return i?!1:{x:t==="maestro"?"-108%":"108%",y:0}}function ze({half:t,portrait:i,phase:n,selected:a,reduce:s,interactive:l,video:p,poster:o,onSelect:m,hovered:d,setHovered:x,bottomPanel:k}){const h=we(t.key),C=l&&d===t.key,E=l&&d!==null&&!C,v=a===t.key,j=n==="exit"||n==="signup",H=j&&a!==null&&a!==t.key,N=De(t.key,n,a,s),F=j;return e.jsx(c.div,{className:"absolute inset-0",style:{zIndex:v?15:H?12:t.key==="maestro"?10:11,pointerEvents:"none"},initial:Re(t.key,s),animate:N,transition:{type:"tween",duration:(j?D:J)/1e3,ease:R},children:e.jsxs("div",{className:"absolute inset-0 [transform:translateZ(0)]",style:{clipPath:h,WebkitClipPath:h,pointerEvents:l?"auto":"none"},onMouseEnter:()=>l&&x(t.key),onMouseLeave:()=>l&&x(null),onClick:m,role:"button",tabIndex:l?0:-1,"aria-label":t.key==="maestro"?"Maestro":"Holy Hour",onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&l&&(S.preventDefault(),m())},children:[e.jsx(c.div,{className:"pointer-events-none absolute inset-0",animate:{opacity:v&&n==="exit"?.72:1},transition:{duration:.55,ease:R}
6,children:F?e.jsx("img",{src:o,alt:"",draggable:!1,className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):e.jsx(ke,{src:p,poster:o,className:"pointer-events-none absolute inset-0 h-full w-full object-cover",preload:"auto"})}),e.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.75) 100%)"}}),e.jsx(c.div,{className:"pointer-events-none absolute inset-0",animate:{backgroundColor:H?"rgba(0,0,0,0.35)":E?"rgba(0,0,0,0.44)":"rgba(0,0,0,0)"},transition:{duration:.35}}),e.jsx(c.div,{className:"pointer-events-none absolute inset-0",animate:{opacity:v?.95:C?.8:0},transition:{duration:.35},style:{background:`radial-gradient(ellipse 85% 65% at ${t.glowOrigin}, ${t.color}58 0%, ${t.color}16 48%, transparent 74%)`}}),k]})})}function Qe(){const{t}=B(),{user:i}=le(),n=oe(),a=Pe(),s=!!q(),[l,p]=b.useState(null),[o,m]=b.useState("intro"),[d,x]=b.useState(null);ce("tornei"),b.useEffect(()=>{if(s){m("idle");return}const r=window.setTimeout(()=>m("idle"),J+30);return()=>window.clearTimeout(r)},[s]);const k=W({tournamentId:Ce.id,oneShot:!0}),h=W({tournamentId:_.id,oneShot:!0}),C=h.currentRound?.id??null,{pool:E}=Se(C),v=de(h.tournament?.status??_.status),j=he(_.startDate),{video:H,poster:N}=Z(a),[F,S]=b.useState(!1);b.useEffect(()=>{let r=!0;const g=()=>{r&&S(!0)},f=new Image;f.onload=g,f.onerror=g,f.src=N,f.complete&&g();const $=window.setTimeout(g,3e3);return()=>{r=!1,window.clearTimeout($)}},[N]);const te=b.useMemo(()=>[{key:"maestro",to:"/tournaments/maestro",color:Ae,icon:T,chips:[t("torneiMaestroChipRounds"),t("torneiMaestroChipSeason")],moneyLabel:t("torneiMaestroPoolLabel"),discover:{label:t("torneiDiscoverMaestro"),to:"/maestro"},glowOrigin:a?"22% 78%":"28% 88%"},{key:"holy-hour",to:"/tournaments/holy-hour",color:Oe,icon:V,chips:[t("torneiHolyChipRounds"),t("torneiHolyChipNoMin")],moneyLabel:t(v?"torneiHolyDebutLabel":"torneiHolyPoolLabel"),discover:{label:t("torneiDiscoverHoly"),to:"/tournaments/holy-hour?tab=rules"},glowOrigin:a?"78% 88%":"72% 88%"}],[t,v,a]),se=b.useCallback(r=>{if(o==="exit"||o==="signup")return;ue();const g=()=>{n(`/tournaments/${z(r.key)}`,{state:{fromHubSignup:!0,half:r.key}})};if(i){if(x(r.key),s){g();return}m("exit"),window.setTimeout(g,D+je);return}if(x(r.key),s){m("signup");return}m("exit"),window.setTimeout(()=>m("signup"),D+120)},[o,s,n,i]),G=b.useCallback(()=>{d&&n(`/tournaments/${z(d)}`,{state:{fromHubSignup:!0,half:d}})},[n,d]),I=o==="idle",L=o==="signup"&&d!==null,ae=(o==="exit"||o==="signup")&&d!==null;return F?e.jsxs("div",{className:"relative h-dvh w-full overflow-hidden bg-black text-white select-none",style:{fontFamily:u.font.body},children:[ae&&d&&e.jsx(c.div,{className:"absolute inset-0 z-[5]",initial:{opacity:0}
6,animate:{opacity:1},transition:{duration:.28,ease:R},children:e.jsx(be,{half:d,fullBleed:!0,soft:!!i})}),!L&&e.jsxs("div",{className:"absolute inset-x-0 top-0 z-30 flex items-center justify-between px-4 pt-[max(0.75rem,env(safe-area-inset-top))] pb-3 sm:px-6 sm:pt-[max(1rem,env(safe-area-inset-top))] sm:pb-4",children:[e.jsx(xe,{size:40}),e.jsxs("div",{className:"text-[10px] sm:text-xs tracking-[0.4em] text-white/70",style:{fontFamily:u.font.display},children:["EMICICLO · ",t("torneiEyebrow")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{}),e.jsx(pe,{origin:"tornei"})]})]}),L&&d?e.jsx(Te,{selected:d,onAuthed:G,onVisitor:G}):null,e.jsx(_e,{visible:I,hovered:l,portrait:a}),te.map(r=>{if(L)return null;const g=I&&l===r.key,f=d===r.key,$=o==="exit"&&d!==null&&d!==r.key,ne=r.icon,w=r.key==="maestro";return e.jsx(ze,{half:r,portrait:a,phase:o,selected:d,reduce:s,interactive:I,video:H,poster:N,onSelect:()=>se(r),hovered:l,setHovered:p,bottomPanel:L?null:e.jsx(c.div,{className:["absolute z-20 flex cursor-pointer flex-col",f&&(o==="exit"||o==="signup")?"pointer-events-none":"",a?[w?"left-2 bottom-[10%] items-start w-[36%] max-w-[128px] pr-1":"right-2 bottom-[10%] items-end w-[36%] max-w-[128px] pl-1","gap-1"].join(" "):[w?"left-0 bottom-16 items-start pl-4 sm:bottom-20 sm:pl-10 lg:bottom-24 lg:pl-14":"right-0 bottom-10 items-end pr-4 sm:bottom-14 sm:pr-10 lg:bottom-16 lg:pr-14","gap-2"].join(" ")].join(" "),animate:{opacity:$||f&&o==="exit"?0:1,y:$||f&&o==="exit"?22:0},transition:{duration:.35},children:e.jsxs("div",{className:["flex flex-col rounded-xl px-2 py-1.5 sm:rounded-none sm:bg-transparent sm:p-0",a?"bg-black/60 backdrop-blur-sm":"",w?"items-start":"items-end"].join(" "),style:a?{width:"100%",maxWidth:"100%"}:void 0,children:[!a&&e.jsx("div",{className:`mb-2 flex flex-wrap gap-1.5 sm:gap-2 ${w?"justify-start":"justify-end"}`,children:r.chips.map(M=>e.jsx("span",{className:"rounded-full border px-2 py-0.5 text-[9px] uppercase tracking-wider text-white/80 backdrop-blur-sm sm:text-[11px]",style:{borderColor:`${r.color}55`,background:"rgba(0,0,0,0.45)"},children:M},M))}),e.jsxs("div",{className:w?"text-left w-full":"text-right w-full",children:[e.jsx("div",{className:"text-[7px] uppercase tracking-[0.18em] text-white/55 sm:text-[10px]",children:r.moneyLabel}),e.jsx("div",{className:"text-sm font-bold leading-tight sm:text-2xl",style:{color:r.color,textShadow:`0 0 24px ${r.color}66`},children:r.key==="maestro"?e.jsx(Y,{baseUsd:k.pool.base_usd,increments:k.pool.increments_24h}):v?e.jsx("span",{className:"text-sm sm:text-2xl",style:{fontFamily:u.font.mono},children:j.expired?"—":`${j.days}g ${j.hours}h ${j.minutes}m`}):e.jsx(Y,{baseUsd:E.base_usd,increments:E.increments_24h})})]}),e.jsxs(c.div,{className:["mt-1 inline-flex items-center justify-center gap-1 rounded-full px-2.5 py-1.5 text-[9px] font-bold uppercase tracking-widest text-black sm:mt-0 sm:gap-2 sm:px-6 sm:py-2.5 sm:text-sm",a?"max-w-[96px]":"w-fit",w?"self-start sm:justify-start":"self-end sm:justify-end"].join(" "),animate:{scale:g||f?1.04:1},transition:{duration:.25},style:{background:r.color,boxShadow:`0 8px 32px -8px ${r.color}aa`,fontFamily:u.font.display},children:[e.jsx(ne,{size:a?12:14}),t("torneiEnter"),e.jsx(He,{size:a?12:14})]}),!a&&e.jsx(re,{to:r.discover.to,onClick:M=>M.stopPropagation(),className:`mt-1 block text-[10px] text-white/45 underline-offset-2 transition-colors hover:text-white/80 hover:underline sm:text-[11px] ${w?"text-left":"text-right"}`,children:r.discover.label})]})})},r.key)})]}):e.jsx(me,{pieno:!0,size:"lg",label:t("torneiLoading")})}export{Qe as TorneiHub};

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.