1import{j as e,A as x,m as a}from"./vendor-motion-hRg_q8lq.js";import{r as m,i as p}from"./vendor-react-E98sgxjj.js";import{du as n}from"./vendor-fa-Bn2dnpnC.js";import{aA as s,v as h,E as c,aB as f,aC as u}from"./index-BKzE8EQ8.js";import"./vendor-query-bOUN_gKe.js";const b=[{place:"1st",label:"1st Place",cash:"$1,000",credits:"10,000 credits",color:"#f5c542"},{place:"2nd",label:"2nd Place",cash:"$600",credits:"10,000 credits",color:"#c8cfd9"},{place:"3rd",label:"3rd Place",cash:"$400",credits:"10,000 credits",color:"#d0885a"},{place:"HM",label:"Honorable Mention",cash:null,credits:"10,000 credits",color:"#8a8f98"}],g={hidden:{},show:{transition:{staggerChildren:.07,delayChildren:.2}}},i={hidden:{opacity:0,y:14},show:{opacity:1,y:0,transition:{duration:.4,ease:[.16,1,.3,1]}}};function k({isOpen:o,onClose:d}){const l=m.useRef(!1);o&&(l.current=!1);const r=t=>{l.current||(l.current=!0,h(t==="join"?c.COMPETITION_PROMO_CTA:c.COMPETITION_PROMO_DISMISSED,{action:t}),t==="join"&&(f(),window.open(u,"_blank","noopener,noreferrer")),d())};return p.createPortal(e.jsx(x,{children:o&&e.jsxs(e.Fragment,{children:[e.jsx(a.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-[1100] bg-black/70",onClick:()=>r("later"),"aria-hidden":"true"}),e.jsx(a.div,{initial:{opacity:0,scale:.92,y:24},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{duration:.3,ease:[.16,1,.3,1]},className:"fixed inset-0 z-[1101] flex items-center justify-center p-4 pointer-events-none",role:"dialog","aria-modal":"true","aria-labelledby":"discord-competition-modal-title",children:e.jsxs("div",{onClick:t=>t.stopPropagation(),className:"relative w-full max-w-lg max-h-[92vh] overflow-y-auto rounded-xl pointer-events-auto bg-[#0b0b0e] border border-white/10 shadow-2xl shadow-black/70 text-white",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px)",backgroundSize:"26px 26px"}}),e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute -top-[156px] left-1/2 -translate-x-1/2 w-[540px] h-[340px] opacity-25",style:{background:`radial-gradient(closest-side, ${s}, transparent)`}}),e.jsx("button",{onClick:()=>r("later"),type:"button","aria-label":"Close",className:"absolute top-3 right-3 z-20 w-9 h-9 flex items-center justify-center rounded-md bg-white/5 hover:bg-white/10 text-white/70 hover:text-white transition-colors cursor-pointer",children:e.jsx(n,{icon:["far","xmark"]})}),e.jsxs(a.div,{variants:g,initial:"hidden",animate:"show",className:"relative px-6 pt-8 pb-6 md:px-8 flex flex-col items-center text-center",children:[e.jsx(a.div,{variants:i,className:"mb-4",children:e.jsxs("span",{className:"inline-flex items-center gap-2 px-3 h-7 rounded-full border text-[11px] font-mono uppercase tracking-[0.2em]",style:{borderColor:`${s}66`,color:s,backgroundColor:`${s}14`},children:[e.jsxs("span",{className:"relative flex w-2 h-2",children:[e.jsx("span",{className:"absolute inline-flex w-full h-full rounded-full animate-ping opacity-60",style:{backgroundColor:s}}),e.jsx("span",{className:"relative inline-flex w-2 h-2 rounded-full",style:{backgroundColor:s}})]}),"Happening now"]})}),e.jsxs(a.h2,{variants:i,id:"discord-competition-modal-title",className:"text-2xl md:text-3xl font-semibold leading-tight mb-2",children:["The Tesana Game Building",e.jsx("br",{}),"Competition Has Begun"]}),e.jsx(a.p,{variants:i,className:"text-sm text-white/60 max-w-sm mb-6",children:"Build an original game with Tesana AI, submit it in our Discord, and compete for cash and credits. Registration stays open for the whole competition."}),e.jsxs(a.div,{variants:i,className:"relative w-full rounded-lg border-2 p-4 pt-6 mb-5",style:{borderColor:`${s}80`,boxShadow:`0 0 28px ${s}2e, inset 0 0 22px ${s}14`},children:[e.jsxs("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 inline-flex items-center gap-1.5 px-3 h-6 rounded-full text-[10px] font-mono uppercase tracking-[0.25em] text-white",style:{backgroundColor:s,boxShadow:`0 0 18px ${s}80`},children:[e.jsx(n,{icon:["fas","star"],className:"text-[8px]"}),"Winning genre"]}),e.jsxs("div",{className:"flex items-center justify-center gap-3",children:[e.jsx("span",{className:"flex-shrink-0 w-11 h-11 rounded-full flex items-center justify-center",style:{backgroundColor:s,boxShadow:`0 0 20px ${s}66`},children:e.jsx(n,{icon:["far","chess-rook"],className:"text-lg text-white"})}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"text-lg font-semibold leading-tight",children:"Tower Defense"}),e.jsx("p",{className:"text-xs text-white/55",children:"Strategic placement, waves, and defense"})]})]})]}),e.jsxs(a.div,{variants:i,className:"w-full mb-1.5 flex items-center gap-3",children:[e.jsx("span",{className:"flex-1 h-px bg-white/10"}),e.jsxs("span",{className:"text-[10px] font-mono uppercase tracking-[0.25em] text-white/50 inline-flex items-center gap-1.5",children:[e.jsx(n,{icon:["fas","trophy"],className:"text-[10px] text-[#f5c542]"}),"Prizes"]}),e.jsx("span",{className:"flex-1 h-px bg-white/10"})]}),e.jsx("div",{className:"w-full flex flex-col gap-1.5 mb-5",children:b.map(t=>e.jsxs(a.div,{variants:i,className:"flex items-center gap-3 rounded-md border border-white/8 bg-white/[0.03] hover:bg-white/[0.06] transition-colors px-3 py-2.5",children:[e.jsx("span",{className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center text-[11px] font-mono font-bold text-black/80",style:{backgroundColor:t.color,boxShadow:`0 0 14px ${t.color}44`},children:t.place}),e.jsx("span",{className:"flex-1 text-left text-sm text-white/85",children:t.label}),t.cash&&e.jsx("span",{className:"text-sm font-semibold",style:{color:t.color},children:t.cash}),e.jsxs("span",{className:"text-xs text-white/50 inline-flex items-center gap-1",children:[e.jsx(n,{icon:["far","coins"],className:"text-[10px]"}),t.credits]})]},t.place))}),e.jsxs(a.p,{variants:i,className:"w-full rounded-md border border-white/10 bg-white/[0.02] px-3 py-2 mb-5 text-[11px] font-mono uppercase tracking-[0.18em] text-white/60 inline-flex items-center justify-center gap-2",children:[e.jsx(n,{icon:["far","clock"],className:"text-[10px]"}),"Submissions close Sat, July 18 @ 5pm CT"]}),e.jsxs(a.div,{variants:i,className:"w-full flex flex-col gap-2",children:[e.jsxs("button",{onClick:()=>r("join"),type:"button",className:"group relative overflow-hidden w-full h-11 rounded-md bg-[#5865F2] hover:bg-[#47
152C4] text-white text-sm font-medium transition-colors cursor-pointer flex items-center justify-center gap-2.5 shadow-lg shadow-[#5865F2]/25",children:[e.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 shimmer"}),e.jsx(n,{icon:["fab","discord"],className:"text-base"}),"Join the Discord to enter",e.jsx(n,{icon:["far","arrow-right"],className:"text-xs group-hover:translate-x-0.5 transition-transform"})]}),e.jsx("button",{onClick:()=>r("later"),type:"button",className:"w-full h-10 rounded-md text-sm text-white/60 hover:text-white hover:bg-white/5 transition-colors cursor-pointer",children:"Maybe later"})]}),e.jsx(a.p,{variants:i,className:"mt-4 text-[11px] text-white/35",children:"Register with a ticket in Discord · Original games built with Tesana AI · One entry per person"})]})]})})]})}),document.body)}export{k as default};
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.