1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9855],{54405:function(e,t,a){Promise.resolve().then(a.t.bind(a,231,23)),Promise.resolve().then(a.bind(a,1050))},87138:function(e,t,a){"use strict";a.d(t,{default:function(){return n.a}});var l=a(231),n=a.n(l)},16463:function(e,t,a){"use strict";var l=a(71169);a.o(l,"useParams")&&a.d(t,{useParams:function(){return l.useParams}}),a.o(l,"usePathname")&&a.d(t,{usePathname:function(){return l.usePathname}}),a.o(l,"useRouter")&&a.d(t,{useRouter:function(){return l.useRouter}}),a.o(l,"useSearchParams")&&a.d(t,{useSearchParams:function(){return l.useSearchParams}})},1050:function(e,t,a){"use strict";a.d(t,{default:function(){return eo}});var l=a(57437),n=a(58357),s=a(2265),r=a(16463),i=a(71510),o=a(48281),d=a(3274),c=a(22023),m=a(22757),u=a(33907),x=a(79869),h=a(89733),p=a(96450),g=a(87138),f=a(54662),b=a(77209),v=a(12170);function w(){return(0,l.jsxs)("div",{className:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 relative overflow-hidden pb-8",children:[(0,l.jsx)("div",{className:"relative z-30",children:(0,l.jsxs)("div",{className:"absolute top-2 right-2 md:top-4 md:right-4 flex items-center gap-2 md:gap-3",children:[(0,l.jsx)("div",{className:"h-8 md:h-10 w-20 md:w-24 bg-gray-200 rounded-lg animate-pulse"}),(0,l.jsx)("div",{className:"h-8 md:h-10 w-16 md:w-20 bg-gray-200 rounded-lg animate-pulse"})]})}),(0,l.jsxs)("div",{className:"relative w-full h-[350px] sm:h-[400px] md:h-[500px] flex items-center justify-center overflow-hidden mt-12 md:mt-16",children:[(0,l.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-200 to-gray-300 animate-pulse"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-black/20 to-black/40 z-10"}),(0,l.jsx)("div",{className:"absolute z-20 inset-0 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"text-center px-4 w-full max-w-4xl",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-6",children:[(0,l.jsx)("div",{className:"w-8 h-8 md:w-12 md:h-12 bg-white/30 rounded-full animate-pulse"}),(0,l.jsx)("div",{className:"h-8 md:h-12 w-64 md:w-96 bg-white/40 rounded-lg animate-pulse"}),(0,l.jsx)("div",{className:"w-8 h-8 md:w-12 md:h-12 bg-white/30 rounded-full animate-pulse"})]}),(0,l.jsxs)("div",{className:"max-w-2xl mx-auto mt-4",children:[(0,l.jsx)("div",{className:"h-4 md:h-6 w-full bg-white/30 rounded-lg animate-pulse mb-2"}),(0,l.jsx)("div",{className:"h-4 md:h-6 w-3/4 mx-auto bg-white/30 rounded-lg animate-pulse"})]})]})})]}),(0,l.jsx)("section",{className:"relative z-20 max-w-7xl mx-auto w-full px-3 sm:px-4 py-6 md:py-10",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8",children:[(0,l.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",children:[1,2,3,4].map(e=>(0,l.jsx)("div",{className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 border-2 border-gray-200 shadow-lg",children:(0,l.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,l.jsx)("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-gray-200 rounded-xl animate-pulse"}),(0,l.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,l.jsx)("div",{className:"h-3 w-20 bg-gray-200 rounded animate-pulse"}),(0,l.jsx)("div",{className:"h-4 w-full bg-gray-200 rounded animate-pulse"}),(0,l.jsx)("div",{className:"h-3 w-16 bg-gray-200 rounded animate-pulse"})]})]})},e))}),(0,l.jsxs)("div",{className:"bg-gradient-to-br from-purple-50 via-pink-50 to-blue-50 rounded-xl md:rounded-2xl p-4 md:p-6 lg:p-8 border-2 border-purple-200 shadow-xl",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-4 md:mb-6",children:[(0,l.jsx)("div",{className:"w-10 h-10 md:w-14 md:h-14 bg-gray-300 rounded-lg animate-pulse"}),(0,l.jsx)("div",{className:"h-6 md:h-8 w-32 md:w-40 bg-gray-300 rounded-lg animate-pulse"}),(0,l.jsx)("div",{className:"flex-1 h-px bg-gray-200 hidden sm:block"})]}),(0,l.jsxs)("div",{className:"bg-white/80 rounded-lg md:rounded-xl p-4 md:p-6 space-y-3",children:[(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded w-5/6 animate-pulse"})]})]})]}),(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsx)("div",{className:"bg-gradient-to-br from-purple-400 to-blue-500 rounded-xl md:rounded-2xl p-6 md:p-8 shadow-xl",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"w-20 h-20 md:w-24 md:h-24 mx-auto mb-4 bg-white/20 rounded-full animate-pulse"}),(0,l.jsx)("div",{className:"h-6 md:h-8 w-32 md:w-40 mx-auto bg-white/30 rounded-lg animate-pulse mb-2"}),(0,l.jsx)("div",{className:"h-4 w-24 mx-auto bg-white/20 rounded animate-pulse"})]})}),(0,l.jsx)("div",{className:"bg-white rounded-xl md:rounded-2xl p-6 border border-purple-200 shadow-md",children:(0,l.jsxs)("div",{className:"text-center py-4",children:[(0,l.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 bg-gray-200 rounded-full animate-pulse"}),(0,l.jsx)("div",{className:"h-5 w-24 mx-auto bg-gray-200 rounded animate-pulse mb-2"}),(0,l.jsx)("div",{className:"h-4 w-32 mx-auto bg-gray-200 rounded animate-pulse"})]})})]})]})})]})}var j=a(77440),N=a(89502),y=a(71243),k=a(74697),S=a(70518),C=a(87592),z=a(11240),_=a(92145),T=a(87385),D=a(85016),E=a(49321),I=a(4911),Z=a(23787);let P={1:"1st place",2:"2nd place",3:"3rd place"},L={1:{badge:"from-yellow-400 to-amber-500 text-amber-950",ring:"ring-yellow-400"},2:{badge:"from-slate-200 to-slate-400 text-slate-900",ring:"ring-slate-300"}
1,3:{badge:"from-amber-800 to-yellow-950 text-amber-50",ring:"ring-amber-800"}},R={"1st-sovereign.png":"/images/hackathons/decthon/podium-1st-sovereign.jpg","2nd-expedition33.png":"/images/hackathons/decthon/podium-2nd-expedition33.jpg","3rd-shunya.png":"/images/hackathons/decthon/podium-3rd-shunya.jpg"};function B(e){if(e)return R[e.split("/").pop()||""]||e}function F(e){return e?"â¹".concat(e.toLocaleString("en-IN")):""}function A(e){return e.replace(/\s+/g," ").trim().split(" ").map(e=>e?e[0].toUpperCase()+e.slice(1).toLowerCase():e).join(" ")}function M(e){let{photos:t,index:a,onClose:n,onMove:r}=e,i=t[a];return(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(),"ArrowRight"===e.key&&r((a+1)%t.length),"ArrowLeft"===e.key&&r((a-1+t.length)%t.length)};return window.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=""}},[a,t.length,n,r]),(0,l.jsxs)("div",{className:"fixed inset-0 z-[100] bg-black/90 flex items-center justify-center p-4",onClick:n,children:[(0,l.jsx)("button",{type:"button","aria-label":"Close",className:"absolute top-4 right-4 p-2 rounded-full bg-white/10 text-white hover:bg-white/20",onClick:n,children:(0,l.jsx)(k.Z,{className:"h-6 w-6"})}),(0,l.jsx)("button",{type:"button","aria-label":"Previous photo",className:"absolute left-2 md:left-6 p-2 rounded-full bg-white/10 text-white hover:bg-white/20",onClick:e=>{e.stopPropagation(),r((a-1+t.length)%t.length)},children:(0,l.jsx)(S.Z,{className:"h-7 w-7"})}),(0,l.jsxs)("figure",{className:"max-w-5xl w-full",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("img",{src:i.src,alt:i.caption||"",className:"w-full max-h-[80vh] object-contain rounded-lg"}),(0,l.jsxs)("figcaption",{className:"mt-3 text-center text-sm text-white/80",children:[i.caption,(0,l.jsxs)("span",{className:"ml-2 text-white/40",children:[a+1," / ",t.length]})]})]}),(0,l.jsx)("button",{type:"button","aria-label":"Next photo",className:"absolute right-2 md:right-6 p-2 rounded-full bg-white/10 text-white hover:bg-white/20",onClick:e=>{e.stopPropagation(),r((a+1)%t.length)},children:(0,l.jsx)(C.Z,{className:"h-7 w-7"})})]})}function O(e){var t;let{hackathon:a,results:n,actions:r}=e,[i,o]=(0,s.useState)(null),d=(0,s.useCallback)(()=>o(null),[]),c=[...n.places||[]].sort((e,t)=>e.place-t.place),m=3===c.length?[c[1],c[0],c[2]]:c,u=a.gallery||[],x=a.coverImage||(null===(t=u[0])||void 0===t?void 0:t.src)||a.image,h=a.specialPrizes||[],p=c.reduce((e,t)=>e+(t.prize||0),0)+h.reduce((e,t)=>e+(t.prize||0),0),g=n.albumUrl,f=[n.enrollCount?{icon:z.Z,value:String(n.enrollCount),label:"students"}:null,n.teamCount?{icon:_.Z,value:String(n.teamCount),label:"teams"}:null,a.days?{icon:T.Z,value:String(a.days),label:1===a.days?"day":"days"}:null,p?{icon:D.Z,value:F(p),label:"in prizes"}:null].filter(Boolean);return(0,l.jsxs)("div",{className:"relative z-10",children:[(0,l.jsxs)("header",{className:"relative min-h-[520px] md:min-h-[640px] flex items-end overflow-hidden",children:[x&&(0,l.jsx)("img",{src:x,alt:a.title,className:"absolute inset-0 w-full h-full object-cover"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/60 to-black/20"}),r,(0,l.jsxs)("div",{className:"relative w-full max-w-6xl mx-auto px-4 md:px-8 pb-10 md:pb-14 pt-28 text-white",children:[(0,l.jsx)("span",{className:"inline-flex items-center gap-2 rounded-full bg-emerald-500/90 px-3 py-1 text-xs font-bold uppercase tracking-wide",children:"Completed"}),(0,l.jsx)("h1",{className:"mt-4 text-3xl md:text-5xl lg:text-6xl font-extrabold leading-tight",children:a.title}),(0,l.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-x-5 gap-y-1 text-sm md:text-base text-white/85",children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,l.jsx)(T.Z,{className:"h-4 w-4"}),function(e,t){let a=new Date(e),l=new Date(t),n=a.getMonth()===l.getMonth()&&a.getFullYear()===l.getFullYear(),s=e=>e.toLocaleDateString("en-IN",{month:"short"});return n?"".concat(a.getDate(),"â").concat(l.getDate()," ").concat(s(l)," ").concat(l.getFullYear()):"".concat(a.getDate()," ").concat(s(a)," â ").concat(l.getDate()," ").concat(s(l)," ").concat(l.getFullYear())}(a.startDate,a.endDate)]}),a.venue&&(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,l.jsx)(E.Z,{className:"h-4 w-4"}),a.venue]}),a.theme&&(0,l.jsxs)("span",{children:["Theme: ",a.theme]})]}),n.recap&&(0,l.jsx)("p",{className:"mt-5 max-w-3xl text-base md:text-xl text-white/95 leading-relaxed",children:n.recap}),f.length>0&&(0,l.jsx)("div",{className:"mt-7 grid grid-cols-2 md:grid-cols-4 max-w-3xl gap-3",children:f.map(e=>(0,l.jsxs)("div",{className:"rounded-xl bg-white/10 backdrop-blur border border-white/20 px-3 py-3",children:[(0,l.jsx)("p",{className:"text-xl md:text-3xl font-extrabold",children:e.value}),(0,l.jsx)("p",{className:"text-xs md:text-sm text-white/75",children:e.label})]},e.label))})]})]}),c.length>0&&(0,l.jsxs)("section",{className:"max-w-6xl mx-auto px-4 md:px-8 py-12 md:py-16",children:[(0,l.jsx)("p",{className:"text-sm font-bold uppercase tracking-widest text-amber-600",children:"Winners"}),(0,l.jsx)("h2",{className:"mt-1 text-2xl md:text-4xl font-extrabold text-gray-900",children:"The podium"}),(0,l.jsx)("div",{className:"mt-8 grid grid-cols-1 md:grid-cols-3 gap-5 md:items-end",children:m.map(e=>{let t=L[e.place]||L[3],a=1===e.place;return(0,l.jsxs)("article",{className:"overflow-hidden rounded-2xl bg-white shadow-lg ring-2 ".concat(t.ring," ").concat(a?"md:-mt-6 md:shadow-2xl order-first md:order-none":""),children:[B(e.photo)&&(0,l.jsx)("img",{src:B(e.ph
1oto),alt:"".concat(e.team," receiving the ").concat(P[e.place]||""," cheque"),className:"w-full object-cover ".concat(a?"aspect-[4/3]":"aspect-[16/10]"),loading:"lazy"}),(0,l.jsxs)("div",{className:"p-5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-gradient-to-r px-3 py-1 text-xs font-extrabold uppercase ".concat(t.badge),children:[(0,l.jsx)(D.Z,{className:"h-3.5 w-3.5"}),P[e.place]||"".concat(e.place,"th place")]}),e.prize?(0,l.jsx)("span",{className:"text-lg font-extrabold text-gray-900",children:F(e.prize)}):null]}),(0,l.jsx)("h3",{className:"mt-3 font-extrabold text-gray-900 ".concat(a?"text-2xl md:text-3xl":"text-xl md:text-2xl"),children:e.team}),(0,l.jsx)("p",{className:"mt-2 text-sm text-gray-600 leading-relaxed",children:e.members.map(e=>A(e.name)).join(" \xb7 ")})]})]},"".concat(e.place,"-").concat(e.team))})}),h.length>0&&(0,l.jsxs)("div",{className:"mt-10",children:[(0,l.jsx)("h3",{className:"text-lg md:text-xl font-extrabold text-gray-900",children:"Special prizes"}),(0,l.jsx)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-3 gap-4",children:h.map(e=>{var t;return(0,l.jsxs)("div",{className:"rounded-xl bg-white p-4 shadow-sm border border-purple-100",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,l.jsx)("p",{className:"font-extrabold text-gray-900",children:e.team}),e.prize?(0,l.jsx)("span",{className:"text-sm font-bold text-purple-700",children:F(e.prize)}):null]}),e.college&&(0,l.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:e.college}),(null===(t=e.members)||void 0===t?void 0:t.length)?(0,l.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:e.members.map(A).join(" \xb7 ")}):null]},e.team)})})]})]}),u.length>0&&(0,l.jsx)("section",{className:"bg-gray-950 text-white",children:(0,l.jsxs)("div",{className:"max-w-6xl mx-auto px-4 md:px-8 py-12 md:py-16",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-bold uppercase tracking-widest text-purple-300",children:"Gallery"}),(0,l.jsx)("h2",{className:"mt-1 text-2xl md:text-4xl font-extrabold",children:"How the days went"})]}),g&&(0,l.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full border border-white/30 px-4 py-2 text-sm font-semibold hover:bg-white/10",children:[(0,l.jsx)(I.Z,{className:"h-4 w-4"}),"Full album",(0,l.jsx)(Z.Z,{className:"h-3.5 w-3.5"})]})]}),(0,l.jsx)("div",{className:"mt-8 grid grid-cols-2 md:grid-cols-4 auto-rows-[140px] md:auto-rows-[180px] gap-2 md:gap-3",children:u.map((e,t)=>(0,l.jsxs)("button",{type:"button",onClick:()=>o(t),className:"group relative overflow-hidden rounded-xl ".concat(t%5==0?"col-span-2 row-span-2":""),children:[(0,l.jsx)("img",{src:e.src,alt:e.caption||"",loading:"lazy",className:"absolute inset-0 w-full h-full object-cover object-[center_25%] transition-transform duration-500 group-hover:scale-105"}),e.caption&&(0,l.jsx)("span",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent px-3 pb-2 pt-8 text-left text-xs md:text-sm font-medium",children:e.caption})]},e.src))}),g&&(0,l.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"mt-8 flex items-center justify-center gap-2 rounded-xl bg-white text-gray-900 px-5 py-4 font-bold hover:bg-gray-100",children:[(0,l.jsx)(I.Z,{className:"h-5 w-5"}),"See every photo from the event",(0,l.jsx)(Z.Z,{className:"h-4 w-4"})]})]})}),null!==i&&u[i]&&(0,l.jsx)(M,{photos:u,index:i,onClose:d,onMove:o})]})}var Y=a(68954),U=a(55430),V=a(40933),$=a(36198),H=a(40119),W=a(48298),J=a(41326),G=a(25912);let K="bg-[#0b1736]";function q(e){return new Date(e).toLocaleDateString("en-IN",{weekday:"long",day:"numeric",month:"long",year:"numeric"})}function X(e){return"â¹".concat(e.toLocaleString("en-IN"))}function Q(e){let{children:t,className:a="bg-yellow-400",textClassName:n="text-[#0b1736]"}=e;return(0,l.jsxs)("span",{className:"relative inline-block",children:[(0,l.jsx)("span",{"aria-hidden":!0,
1className:"absolute -inset-x-2 inset-y-0.5 -skew-x-6 -rotate-1 rounded-sm ".concat(a)}),(0,l.jsx)("span",{className:"relative ".concat(n),children:t})]})}function ee(e){var t;let{theme:a}=e,n=(null===(t=(a||"Build with AI").split("/").pop())||void 0===t?void 0:t.trim())||"Build with AI";return(0,l.jsxs)("div",{"aria-hidden":!0,className:"relative mx-auto hidden w-full max-w-md md:block",children:[(0,l.jsxs)("p",{className:"absolute -top-10 right-0 rotate-6 text-xl font-black italic leading-tight text-yellow-300",children:["Think",(0,l.jsx)("br",{}),"Build",(0,l.jsx)("br",{}),"Create"]}),(0,l.jsxs)("div",{className:"rotate-2 rounded-2xl border border-white/15 bg-[#111f47] p-5 shadow-2xl shadow-black/40",children:[(0,l.jsxs)("div",{className:"flex gap-1.5",children:[(0,l.jsx)("span",{className:"h-3 w-3 rounded-full bg-red-400"}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full bg-yellow-400"}),(0,l.jsx)("span",{className:"h-3 w-3 rounded-full bg-green-400"})]}),(0,l.jsxs)("div",{className:"mt-5 space-y-2.5 font-mono text-[13px] leading-relaxed text-white/85",children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"text-pink-300",children:"const"})," idea = ",(0,l.jsx)("span",{className:"text-yellow-300",children:'"a tool students use"'}),";"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"text-pink-300",children:"const"})," team = [",(0,l.jsx)("span",{className:"text-sky-300",children:"you"}),", ",(0,l.jsx)("span",{className:"text-sky-300",children:"teammate"}),"];"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"text-sky-300",children:"build"}),"(idea, ","{"," with: ",(0,l.jsx)("span",{className:"text-yellow-300",children:'"AI"'})," ","}",");"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("span",{className:"text-sky-300",children:"demo"}),"(); ",(0,l.jsx)("span",{className:"text-white/40",children:"// no slides"})]}),(0,l.jsxs)("p",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"text-green-300",children:"â"})," shipped",(0,l.jsx)("span",{className:"ml-0.5 inline-block h-4 w-2 animate-pulse bg-white/70"})]})]})]}),(0,l.jsxs)("div",{className:"absolute -bottom-6 -left-6 flex -rotate-3 items-center gap-2 rounded-xl bg-yellow-400 px-4 py-2 font-extrabold text-[#0b1736] shadow-xl",children:[(0,l.jsx)(u.Z,{className:"h-4 w-4"}),n]}),(0,l.jsx)("div",{className:"absolute -right-5 top-1/2 rounded-full bg-blue-600 p-3 shadow-xl ring-4 ring-[#0b1736]",children:(0,l.jsx)(Y.Z,{className:"h-6 w-6 text-white"})})]})}function et(e){let{hackathon:t,actions:a,topRight:n}=e,{lead:s,highlight:r,version:i}=function(e){let t=e.trim().match(/^(.*?)(?:\s+(\d+(?:\.\d+)*))?$/),a=((null==t?void 0:t[1])||e).trim(),l=null==t?void 0:t[2],n=a.split(/\s+/);return n.length<2?{lead:"",highlight:a,version:l}:{lead:n.slice(0,-1).join(" "),highlight:n[n.length-1],version:l}}(t.title);return(0,l.jsxs)("section",{className:"relative overflow-hidden ".concat(K," text-white"),children:[(0,l.jsx)("div",{className:"absolute inset-0 opacity-[0.12] [background-image:radial-gradient(#ffffff_1px,transparent_1px)] [background-size:22px_22px]"}),(0,l.jsx)("div",{className:"absolute -right-24 -top-24 h-96 w-96 rounded-full bg-blue-600/40 blur-3xl"}),(0,l.jsx)("div",{className:"absolute -bottom-40 -left-24 h-96 w-96 rounded-full bg-yellow-400/20 blur-3xl"}),n,(0,l.jsxs)("div",{className:"relative mx-auto grid max-w-6xl grid-cols-1 items-center gap-12 px-4 pb-28 pt-20 md:grid-cols-[1.15fr_1fr] md:px-8 md:pb-36 md:pt-24",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("p",{className:"inline-flex items-center gap-2 rounded-full border border-white/20 bg-white/5 px-3 py-1 text-xs font-bold uppercase tracking-widest text-yellow-300",children:[(0,l.jsx)(U.Z,{className:"h-3.5 w-3.5"}),"Excelrs Hackathon",t.mode?" \xb7 ".concat(t.mode):""]}),(0,l.jsxs)("h1",{className:"mt-6 text-4xl font-black uppercase leading-[0.95] tracking-tight sm:text-5xl lg:text-6xl",children:[s&&(0,l.jsx)("span",{className:"block",children:s}),(0,l.jsx)("span",{className:"mt-3 block",children:(0,l.jsx)(Q,{textClassName:"italic text-[#0b1736]",children:r})})]}),i&&(0,l.jsx)("span",{className:"mt-5 inline-block -rotate-2 roun
1ded-xl bg-blue-600 px-5 py-1 text-3xl font-black shadow-lg shadow-blue-950/60",children:i}),(t.tagline||t.theme)&&(0,l.jsx)("p",{className:"mt-6 max-w-xl text-base font-medium text-white/80 md:text-lg",children:t.tagline||t.theme}),a&&(0,l.jsx)("div",{className:"mt-8 flex flex-wrap items-center gap-3",children:a})]}),(0,l.jsx)(ee,{theme:t.theme})]})]})}function ea(e){let{hackathon:t}=e,a=(t.days||1)>1,n=[{icon:T.Z,label:"Date",value:a?"".concat(q(t.startDate)," â ").concat(q(t.endDate)):q(t.startDate)},t.time?{icon:V.Z,label:"Time",value:t.time}:null,t.venue?{icon:E.Z,label:"Venue",value:(0,l.jsxs)(l.Fragment,{children:[t.venue,t.venueMap&&(0,l.jsx)("a",{href:t.venueMap,target:"_blank",rel:"noopener noreferrer",className:"mt-2 flex w-fit items-center gap-1 font-bold text-yellow-300 hover:underline",children:"Open in Maps â"})]})}:null].filter(Boolean),s=3===n.length?"sm:grid-cols-3":2===n.length?"sm:grid-cols-2":"";return(0,l.jsx)("div",{className:"relative z-20 mx-auto -mt-16 max-w-6xl px-4 md:px-8",children:(0,l.jsx)("div",{className:"grid grid-cols-1 divide-y divide-white/10 rounded-2xl ".concat(K," text-white shadow-2xl ring-1 ring-white/10 sm:divide-x sm:divide-y-0 ").concat(s),children:n.map(e=>{let{icon:t,label:a,value:n}=e;return(0,l.jsxs)("div",{className:"flex items-start gap-3 p-5 md:p-6",children:[(0,l.jsx)(t,{className:"mt-0.5 h-6 w-6 shrink-0 text-yellow-400"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-extrabold",children:a}),(0,l.jsx)("div",{className:"mt-0.5 text-sm text-white/75",children:n})]})]},a)})})})}function el(e){let{children:t}=e;return(0,l.jsx)("h2",{className:"text-2xl font-black uppercase tracking-tight text-[#0b1736] md:text-3xl",children:(0,l.jsx)(Q,{children:t})})}function en(e){let{hackathon:t}=e,a=[t.teamSize?{icon:z.Z,label:"Team size",value:"".concat(t.teamSize," members per team")}:null,t.maxTeams?{icon:z.Z,label:"Total teams",value:"Max ".concat(t.maxTeams," teams").concat(t.teamSize?" (".concat(t.maxTeams*t.teamSize," students)"):"")}:null,t.eligibility?{icon:$.Z,label:"Eligibility",value:t.eligibility}:null,void 0!==t.fee?{icon:H.Z,label:"Registration fee",value:t.fee>0?X(t.fee):(0,l.jsx)(Q,{className:"bg-green-500",textClassName:"font-black text-white",children:"FREE"})}:null,t.buildTime?{icon:W.Z,label:"Build time",value:t.buildTime}:null,t.presentation?{icon:J.Z,label:"Final presentation",value:t.presentation}:null,t.problemStatementRelease?{icon:U.Z,label:"Problem statement",value:t.problemStatementRelease}:null].filter(Boolean),{first:n,second:s,third:r}=t.prizes||{},i=[n?{label:"1st Prize",amount:n,card:"bg-yellow-400 text-[#0b1736]",icon:"text-[#0b1736]"}:null,s?{label:"2nd Prize",amount:s,card:"bg-slate-200 text-[#0b1736]",icon:"text-slate-600"}:null,r?{label:"3rd Prize",amount:r,card:"bg-orange-300 text-[#0b1736]",icon:"text-orange-800"}:null].filter(Boolean);return(0,l.jsxs)("div",{className:"space-y-12",children:[t.description&&(0,l.jsxs)("div",{children:[(0,l.jsx)(el,{children:"The brief"}),(0,l.jsx)("p",{className:"mt-5 border-l-4 border-yellow-400 pl-4 text-base leading-relaxed text-slate-700 md:text-lg",children:t.description})]}),a.length>0&&(0,l.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:a.map(e=>{let{icon:t,label:a,value:n}=e;
1return(0,l.jsxs)("div",{className:"flex items-start gap-4 rounded-2xl bg-white p-5 shadow-sm ring-1 ring-slate-200",children:[(0,l.jsx)("div",{className:"rounded-full ".concat(K," p-2.5"),children:(0,l.jsx)(t,{className:"h-5 w-5 text-yellow-400"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-extrabold text-[#0b1736]",children:a}),(0,l.jsx)("div",{className:"mt-1 text-sm text-slate-600",children:n})]})]},a)})}),(i.length>0||t.prizePool)&&(0,l.jsxs)("div",{id:"prizes",className:"scroll-mt-24",children:[(0,l.jsx)(el,{children:"Prizes"}),(0,l.jsx)("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-3",children:i.length>0?i.map(e=>(0,l.jsxs)("div",{className:"rounded-2xl p-5 text-center shadow-md ".concat(e.card),children:[(0,l.jsx)(D.Z,{className:"mx-auto h-8 w-8 ".concat(e.icon)}),(0,l.jsx)("p",{className:"mt-2 text-sm font-bold",children:e.label}),(0,l.jsx)("p",{className:"mt-1 text-3xl font-black",children:X(e.amount)})]},e.label)):(0,l.jsxs)("div",{className:"rounded-2xl bg-yellow-400 p-5 text-center text-[#0b1736] shadow-md sm:col-span-3",children:[(0,l.jsx)(D.Z,{className:"mx-auto h-8 w-8"}),(0,l.jsx)("p",{className:"mt-2 text-sm font-bold",children:"Prize pool"}),(0,l.jsx)("p",{className:"mt-1 text-4xl font-black",children:X(t.prizePool||0)})]})}),(t.prizePerk||t.certificate)&&(0,l.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[t.prizePerk&&(0,l.jsxs)("div",{className:"flex items-center gap-4 roun
1ded-2xl ".concat(K," p-5 text-white shadow-md"),children:[(0,l.jsx)(G.Z,{className:"h-8 w-8 shrink-0 text-yellow-400"}),(0,l.jsx)("p",{className:"font-extrabold text-yellow-300",children:t.prizePerk})]}),!!t.certificate&&(0,l.jsxs)("div",{className:"flex items-center gap-4 rounded-2xl bg-white p-5 shadow-sm ring-1 ring-slate-200",children:[(0,l.jsx)(o.Z,{className:"h-8 w-8 shrink-0 text-blue-600"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs text-slate-500",children:"All participants receive"}),(0,l.jsx)("p",{className:"font-extrabold text-[#0b1736]",children:"Excelrs Hackathon Certificate"})]})]})]})]})]})}function es(e){let{hackathon:t}=e,a=(t.organizers||[]).map(e=>"string"==typeof e?e:null==e?void 0:e.name).filter(Boolean);return(0,l.jsxs)("footer",{className:"relative overflow-hidden ".concat(K," px-4 py-10 text-center text-white"),children:[(0,l.jsx)("div",{className:"absolute -left-10 top-0 h-full w-40 -skew-x-12 bg-yellow-400/90"}),(0,l.jsx)("div",{className:"absolute -right-10 top-0 h-full w-40 -skew-x-12 bg-blue-600/90"}),(0,l.jsx)("p",{className:"relative text-2xl font-black italic text-yellow-300 md:text-3xl",children:"Build together. Grow together."}),(a.length>0||t.poweredBy)&&(0,l.jsxs)("p",{className:"relative mt-3 text-sm text-white/60",children:[a.length>0?"Organised by ".concat(a.join(" \xb7 ")):"",a.length>0&&t.poweredBy?" \xb7 ":"",t.poweredBy||""]})]})}var er=a(49761);function ei(e){let{currentId:t}=e,[a,r]=(0,s.useState)(null),[i,o]=(0,s.useState)(null);if((0,s.useEffect)(()=>{let e=!1;return(async()=>{try{let a=await fetch("".concat(n.CT,"/hackathons"));if(!a.ok)return;let l=(await a.json()).filter(e=>e._id!==t&&("completed"===e.status||!!(e.endDate&&new Date(e.endDate)<new Date))&&e.recap).sort((e,t)=>new Date(t.endDate||0).getTime()-new Date(e.endDate||0).getTime())[0];if(!l||e)return;r(l);let s=await fetch("".concat(n.CT,"/hackathon-enrolls/hackathon/").concat(l._id,"/results"));s.ok&&!e&&o(await s.json())}catch(e){}})(),()=>{e=!0}},[t]),!a)return null;let d=((null==i?void 0:i.places)||[]).filter(e=>e.place<=3).sort((e,t)=>e.place-t.place),c=[(null==i?void 0:i.enrollCount)?"".concat(i.enrollCount," students"):"",(null==i?void 0:i.teamCount)?"".concat(i.teamCount," teams"):""].filter(Boolean),m=["","bg-yellow-400","bg-slate-300","bg-orange-300"];return(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-2xl font-black uppercase tracking-tight text-[#0b1736] md:text-3xl",children:(0,l.jsxs)("span",{className:"relative inline-block",children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"absolute -inset-x-2 inset-y-0.5 -skew-x-6 -rotate-1 rounded-sm bg-yellow-400"}),(0,l.jsx)("span",{className:"relative",children:"Last time"})]})}),(0,l.jsxs)("div",{className:"mt-6 overflow-hidden rounded-2xl bg-white shadow-md ring-1 ring-slate-200",children:[a.coverImage&&(0,l.jsxs)("div",{className:"relative h-48 md:h-56",children:[(0,l.jsx)("img",{src:a.coverImage,alt:a.title,className:"h-full w-full object-cover"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0b1736]/90 via-[#0b1736]/30 to-transparent"}),(0,l.jsxs)("div",{className:"absolute bottom-4 left-5 right-5 text-white",children:[(0,l.jsx)("p",{className:"text-xl font-black md:text-2xl",children:a.title}),c.length>0&&(0,l.jsx)("p",{className:"mt-1 text-sm font-semibold text-yellow-300",children:c.join(" \xb7 ")})]})]}),(0,l.jsxs)("div",{className:"space-y-4 p-5",children:[!a.coverImage&&(0,l.jsx)("p",{className:"text-xl font-black text-[#0b1736]",children:a.title}),(0,l.jsx)("p",{className:"text-sm leading-relaxed text-slate-600",children:a.recap}),d.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:d.map(e=>(0,l.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-bold text-[#0b1736] ".concat(m[e.place]||"bg-slate-100"),children:[(0,l.jsx)(D.Z,{className:"h-3.5 w-3.5"}),e.team]},e.place))}),(0,l.jsx)(g.default,{href:(0,er.t)(a),className:"inline-flex items-center rounded-xl bg-[#0b1736] px-5 py-2.5 text-sm font-bold text-white hover:bg-[#15285a]",children:"See how it went â"})]})]})]})}function eo(e){var t,a,k,S,C,z,_;let{hackathon:T}=e,D=(0,r.useRouter)(),{openLoginModal:E,setOnLoginSuccess:I}
1=(0,j.N)(),[Z,P]=(0,s.useState)(""),[L,R]=(0,s.useState)(!1),[B,F]=(0,s.useState)(!1),[A,M]=(0,s.useState)(!1),[Y,U]=(0,s.useState)(!1),{user:V,token:$,isHydrated:H}=(0,p.useAuthStore)(),[W,J]=(0,s.useState)(""),[G,K]=(0,s.useState)(""),[q,X]=(0,s.useState)(!1),Q=(0,s.useRef)(null),[ee,el]=(0,s.useState)(""),[er,eo]=(0,s.useState)([]),[ed,ec]=(0,s.useState)(0),[em,eu]=(0,s.useState)(!1),[ex,eh]=(0,s.useState)(null),[ep,eg]=(0,s.useState)(null),[ef,eb]=(0,s.useState)([]),ev=n.CT;(0,s.useEffect)(()=>{H&&(async()=>{if(!V||!(null==T?void 0:T._id)){U(!0);return}try{let e=await fetch("".concat(ev,"/hackathon-enrolls?userId=").concat(V._id,"&hackathonId=").concat(T._id));if(!e.ok){U(!0);return}let t=await e.json();if(Array.isArray(null==t?void 0:t.enrollments)){let e=t.enrollments.find(e=>e.hackathonId===T._id);e&&(F(!0),K(e.teamName||""))}}catch(e){console.error("Error checking enrollment:",e)}finally{U(!0)}})()},[H,V,null==T?void 0:T._id]),(0,s.useEffect)(()=>{(null==T?void 0:T._id)&&(async()=>{try{let e=await fetch("".concat(ev,"/hackathon-enrolls/hackathon/").concat(T._id,"/results"));if(!e.ok)return;let t=await e.json();(null==t?void 0:t.places)&&eg(t)}catch(e){}})()},[ev,null==T?void 0:T._id]),(0,s.useEffect)(()=>{if(!(null==T?void 0:T._id)||!H||!V||!$){eb([]);return}let e=!1;return(0,y.m0)(ev,T._id,$).then(t=>{e||eb((null==t?void 0:t.rounds)||[])}),()=>{e=!0}},[ev,null==T?void 0:T._id,H,V,$]),(0,s.useEffect)(()=>{if(!q||!(null==T?void 0:T._id))return;let e=!1;return fetch("".concat(ev,"/hackathon-enrolls/hackathon/").concat(T._id,"/teams")).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&(ec(Number(t.teamSize)||0),eo((t.teams||[]).filter(e=>!e.full)))}).catch(()=>{}),()=>{e=!0}},[q,ev,null==T?void 0:T._id]);let ew=e=>{navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{P("Copied to clipboard!"),setTimeout(()=>P(""),1500)}).catch(()=>{ej(e)}):ej(e)},ej=e=>{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),P("Copied to clipboard!")}catch(e){P("Share failed")}setTimeout(()=>P(""),1500),document.body.removeChild(t)},eN="excelrs-pending-team:".concat(T._id),ey=()=>{window.setTimeout(()=>{"1"===sessionStorage.getItem(eN)&&X(!0)},400)},ek=async()=>{if(sessionStorage.setItem(eN,"1"),!await (0,N.r5)()){sessionStorage.removeItem(eN);return}ey()};(0,s.useEffect)(()=>{H&&V&&!T.registrationClosed&&"1"===sessionStorage.getItem(eN)&&(0,N.Q)(V)&&ey()},[H,V,eN,T.registrationClosed]);let eS=async()=>{if(T.registrationClosed){J("Registration is closed for this hackathon.");return}if(!V){localStorage.setItem("redirectAfterLogin",window.location.pathname),I(()=>{ek()}),E();return}await ek()},eC=()=>{F(!0),M(!1),X(!1),sessionStorage.removeItem(eN),window.setTimeout(()=>{var e;null===(e=Q.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50)},ez=async()=>{var e,t;if(!G||""===G.trim()){el("Team name is required");return}if(G.trim().length<2){el("Team name must be at least 2 characters");return}R(!0),J(""),el("");try{let t=localStorage.getItem("auth-token"),a=()=>fetch("".concat(ev,"/hackathon-enrolls"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify({hackathonId:T._id,teamName:G.trim()})}),l=await a(),n=null;if(!l.ok){if(n=await l.json(),401===l.status){localStorage.setItem("redirectAfterLogin",window.location.pathname),E();return}if((null==n?void 0:n.needsSync)&&t&&(await fetch("".concat(ev,"/users/sync"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)},body:JSON.stringify(V||{})})).ok&&(n=(l=await a()).ok?null:await l.json()),428===l.status){if(X(!1),!await (0,N.AP)())throw Error(N.L$);n=(l=await a()).ok?null:await l.json()}}if(!l.ok){if(null==n?void 0:n.needsSync)throw Error("Sign out, sign in again, then enroll.");throw Error((null==n?void 0:n.message)||"Enrollment failed")}let s=await l.json();(null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.teamName)&&K(s.data.teamName),M(!0),J("")}catch(e){(null==e?void 0:null===(t=e.message)||void 0===t?void 0:t.toLowerCase().includes("already enrolled"))?(M(!0),J("")):J(e.message||"Enrollment failed")}finally{R(!1)}},e_=async()=>
1{if(V&&(null==T?void 0:T._id)){eu(!0);try{let e=localStorage.getItem("auth-token"),t=await fetch("".concat(ev,"/hackathon-certificates"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({userId:V._id,hackathonId:T._id})});if(!t.ok){let e=await t.json();if(409===t.status&&e._id){eh(e._id),D.push("/certificate/hackathon/".concat(e._id));return}throw Error(e.message||"Failed to generate certificate")}let a=await t.json();a._id&&(eh(a._id),D.push("/certificate/hackathon/".concat(a._id)))}catch(e){console.error("Error generating certificate:",e),alert(e.message||"Failed to generate certificate")}finally{eu(!1)}}},eT=()=>{ex&&D.push("/certificate/hackathon/".concat(ex))},eD=new Date(T.startDate),eE=new Date(T.endDate),eI=new Date>eE,eZ=new Date>=eD,eP=!!T.registrationClosed&&!eI,eL={...T.results||{},...ep||{},albumUrl:(null==ep?void 0:ep.albumUrl)||T.albumUrl||(null===(t=T.results)||void 0===t?void 0:t.albumUrl),recap:(null==ep?void 0:ep.recap)||T.recap||(null===(a=T.results)||void 0===a?void 0:a.recap),prizes:(null==ep?void 0:ep.prizes)||T.prizes||(null===(k=T.results)||void 0===k?void 0:k.prizes),places:function(e,t){let a=new Map;for(let e of t||[]){let t=String(e.team||"").toLowerCase().replace(/[^a-z0-9]/g,"");t&&e.photo&&a.set(t,e.photo)}return(e||[]).map(e=>{let t=String(e.team||"").toLowerCase().replace(/[^a-z0-9]/g,"");return{...e,photo:e.photo||a.get(t)}})}((null==ep?void 0:null===(S=ep.places)||void 0===S?void 0:S.length)?ep.places:null===(C=T.results)||void 0===C?void 0:C.places,null===(z=T.results)||void 0===z?void 0:z.places)},eR=!!("completed"===T.status||eI&&((null===(_=eL.places)||void 0===_?void 0:_.length)||eL.recap||T.recap));if(!Y||!H)return(0,l.jsx)(w,{});let eB=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"absolute top-4 right-4 z-30 flex items-center gap-2 md:gap-3",children:[(0,l.jsxs)("button",{className:"flex items-center gap-2 px-3 md:px-4 py-2 rounded-lg bg-gradient-to-r from-purple-600 to-blue-600 text-white font-semibold shadow-lg hover:from-purple-700 hover:to-blue-700 transition text-sm md:text-base",onClick:()=>D.push("/"),type:"button",children:[(0,l.jsx)("svg",{className:"w-4 h-4 md:w-5 md:h-5",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"Dashboard"})]}),(0,l.jsxs)("button",{className:"flex items-center gap-2 px-3 md:px-4 py-2 rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold shadow-lg hover:from-blue-700 hover:to-purple-700 transition text-sm md:text-base",onClick:()=>{let e=window.location.href;navigator.share&&"canShare"in navigator?navigator.share({title:(null==T?void 0:T.title)||"Hackathon",text:(null==T?void 0:T.description)||"Check out this hackathon",url:e}).then(()=>{P("Shared!"),setTimeout(()=>P(""),1500)}).catch(()=>{ew(e)}):ew(e)},type:"button",children:[(0,l.jsx)(i.Z,{className:"w-4 h-4 md:w-5 md:h-5"}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]}),Z&&(0,l.jsx)("span",{className:"absolute top-16 right-4 z-40 bg-white text-purple-700 px-3 py-1 rounded shadow-lg animate-fade-in font-semibold text-sm",children:Z})]});if(eR){let e=(T.organizers||[]).map(e=>"string"==typeof e?e:null==e?void 0:e.name).filter(Boolean);return(0,l.jsxs)("div",{className:"bg-gray-50 min-h-screen overflow-x-hidden",children:[(0,l.jsx)(O,{hackathon:T,results:eL,actions:eB}),(0,l.jsxs)("section",{className:"max-w-6xl mx-auto px-4 md:px-8 py-12 md:py-16 grid grid-cols-1 md:grid-cols-2 gap-5",children:[(0,l.jsxs)("div",{className:"rounded-2xl bg-white p-6 shadow-md border border-gray-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"p-2.5 rounded-xl bg-purple-100",children:(0,l.jsx)(o.Z,{className:"h-6 w-6 text-purple-700"})}),(0,l.jsx)("h3",{className:"text-lg md:text-xl font-extrabold text-gray-900",children:B?"Your certificate":"Took part?"})]}),B?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{className:"mt-3 text-sm text-gray-600",children:[G?"You competed as ".concat(G,". "):"","Your certificate is ready."]}),(0,l.jsx)(h.z,{onClick:ex?eT:e_,disabled:em,className:"mt-4 w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 font-bold",children:em?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{className:"mr-2 h-4 w-4 animate-spin"}),"Opening..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.Z,{className:"mr-2 h-4 w-4"}),ex?"View certificate":"Get certificate"]})})]}):V?(0,l.jsxs)("p",{className:"mt-3 text-sm text-gray-600",children:["This account is not on the ",T.title," list. Sign in with the number you registered with to get your certificate."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"mt-3 text-sm text-gray-600",children:"Sign in with the number you registered with to get your certificate."}),(0,l.jsx)(h.z,{onClick:eS,className:"mt-4 w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 font-bold",children:"Sign in"})]})]}),(0,l.jsxs)("div",{className:"rounded-2xl bg-gradient-to-br from-purple-600 to-blue-600 p-6 text-white shadow-md",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"p-2.5 rounded-xl bg-white/15",children:(0,l.jsx)(m.Z,{className:"h-6 w-6"})}),(0,l.jsx)("h3",{className:"text-lg md:text-xl font-extrabold",children:"Next hackathon"})]}),(0,l.jsx)("p",{className:"mt-3 text-sm text-white/85",children:"See what is o
1pen now on Excelrs and register your team."}),(0,l.jsx)(g.default,{href:"/hackathons",className:"mt-4 flex items-center justify-center rounded-md bg-white px-4 py-2.5 font-bold text-purple-700 hover:bg-gray-100",children:"Browse hackathons"})]}),e.length>0&&(0,l.jsxs)("p",{className:"md:col-span-2 text-center text-sm text-gray-500",children:["Organised by ",e.join(" \xb7 "),T.poweredBy?" \xb7 Powered by ".concat(T.poweredBy):""]})]})]})}let eF=Math.ceil((eD.getTime()-Date.now())/864e5),eA=[...ef].sort((e,t)=>e.order-t.order),eM=eA.length>0,eO=B?(0,y.dI)(eA,G):null,eY=!eM||!!eO&&"through"===eO.outcome,eU=B&&eM?(0,y.FT)(eO,eM,G):null,eV=B&&eY,e$=(null==eU?void 0:eU.tone)==="green"?"bg-green-500/15 text-green-300 ring-green-400/40":(null==eU?void 0:eU.tone)==="amber"?"bg-amber-500/15 text-amber-200 ring-amber-400/40":"bg-sky-500/15 text-sky-200 ring-sky-400/40",eH=eU?eO?eO.roundTitle:"Registered":B?"You're enrolled":eI?"Ended":eZ?"Live now":eF<=1?"Starts tomorrow":"Starts in ".concat(eF," days"),eW=B?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full px-4 py-2.5 text-sm font-bold ring-1 ".concat(eU?e$:"bg-green-500/15 text-green-300 ring-green-400/40"),children:[(0,l.jsx)(u.Z,{className:"h-4 w-4"}),eU?eU.label:(0,l.jsxs)(l.Fragment,{children:["You're in",G?" \xb7 Team ".concat(G):""]})]}),eV&&T.whatsapp&&(0,l.jsx)("a",{href:T.whatsapp,target:"_blank",rel:"noopener noreferrer",className:"rounded-xl bg-[#25D366] px-6 py-3 font-extrabold text-white shadow-lg hover:bg-[#1ebe5d]",children:"Join group"})]}):eI?null:eP?(0,l.jsx)("span",{className:"inline-flex items-center gap-2 rounded-full bg-amber-500/15 px-4 py-2.5 text-sm font-bold text-amber-200 ring-1 ring-amber-400/40",children:"Registration closed"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{type:"button",onClick:eS,disabled:L,className:"inline-flex items-center gap-2 rounded-xl bg-yellow-400 px-6 py-3 font-extrabold text-[#0b1736] shadow-lg shadow-yellow-500/20 transition hover:-translate-y-0.5 hover:bg-yellow-300",children:[(0,l.jsx)(m.Z,{className:"h-5 w-5"}),"Enroll your team"]}),(0,l.jsx)("a",{href:"#prizes",className:"rounded-xl border border-white/30 px-6 py-3 font-bold text-white hover:bg-white/10",children:"See prizes"})]});return(0,l.jsxs)("div",{className:"min-h-screen overflow-x-hidden bg-slate-50",children:[(0,l.jsx)(et,{hackathon:T,actions:eW,topRight:eB}),(0,l.jsx)(ea,{hackathon:T}),(0,l.jsx)("section",{className:"mx-auto max-w-6xl px-4 py-12 md:px-8 md:py-16",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-3",children:[(0,l.jsxs)("div",{className:"order-2 lg:order-1 lg:col-span-2",children:[(0,l.jsx)(en,{hackathon:T}),(0,l.jsx)("div",{className:"mt-12",children:(0,l.jsx)(ei,{currentId:T._id})})]}),(0,l.jsx)("div",{className:"order-1 lg:order-2",children:(0,l.jsxs)("div",{ref:Q,className:"overflow-hidden rounded-2xl bg-white shadow-xl ring-1 ring-slate-200 lg:sticky lg:top-24",children:[(0,l.jsxs)("div",{className:"bg-[#0b1736] px-5 py-4 text-white",children:[(0,l.jsx)("p",{className:"text-xs font-bold uppercase tracking-widest text-yellow-400",children:eH}),(0,l.jsx)("p",{className:"mt-1 text-lg font-extrabold",children:B?eU&&!eY?"Your registration":"Your team":"Register your team"})]}),(0,l.jsx)("div",{className:"relative p-3 sm:p-4 md:p-6",children:eI?(0,l.jsxs)("div",{className:"text-center py-3 md:py-4 space-y-3",children:[(0,l.jsx)("div",{className:"w-12 h-12 md:w-16 md:h-16 mx-auto mb-3 md:mb-4 rounded-full bg-red-100 flex items-center justify-center border-2 border-red-300",children:(0,l.jsx)("svg",{className:"w-6 h-6 md:w-8 md:h-8 text-red-600",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9 9 4.03 9 9z"})})}),(0,l.jsx)("p",{className:"text-base md:text-lg font-bold text-red-600 mb-1 md:mb-2",children:"Hackathon Ended"}),(0,l.jsx)("p",{className:"text-xs md:text-sm text-gray-600 mb-4",children:"This hackathon has concluded."}),B&&(0,l.jsx)("div",{className:"space-y-2",children:ex?(0,l.jsxs)(h.z,{onClick:eT,className:"w-full bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-sm md:text-base font-bold shadow-lg py-3 md:py-4",children:[(0,l.jsx)(c.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5"}),"View Certificate"]}):(0,l.jsx)(h.z,{onClick:e_,disabled:em,className:"w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-sm md:text-base font-bold shadow-lg py-3 md:py-4",children:em?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5 animate-spin"}),"Generating..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5"}),"Get Certificate"]})})})]}):B?(0,l.jsxs)("div",{className:"text-center py-3 md:py-4",children:[(0,l.jsx)("div",{className:"w-12 h-12 md:w-16 md:h-16 mx-auto mb-3 md:mb-4 rounded-full bg-green-100 flex items-center justify-center border-2 border-green-300 animate-pulse",children:(0,l.jsx)("svg",{className:"w-6 h-6 md:w-8 md:h-8 text-green-600",fill:"currentColor",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,l.jsxs)("p",{className:"text-base md:text-lg font-bold mb-2 flex items-center justify-center gap-2 ".concat(eU&&"green"!==eU.tone?"text-amber-700":"text-green-600"),children:[(0,l.jsx)(u.Z,{className:"w-4 h-4 md:w-5 md:h-5"}),eU?eU.label:"Enrolled!"]}),G&&(0,l.jsxs)("div",{className:"mb-2 md:mb-3 p-2 md:p-3 bg-green-50 rounded-lg border border-green-200",children:[(0,l.jsx)("p",{className:"text-xs text-green-600 mb-1",children:"Team Name"}),(0,l.jsx)("p",{className:"text-xs md:text-sm font-bold text-gray-800 break-words",children:G})]}),(0,l.jsx)("p",{className:"text-xs md:text-sm text-gray-600 mb-3",children:eU?eU.detail:(0,l.jsxs)(l.Fragment,{children:["Show up ",(null==T?void 0:T.venue)?"at ".concat(T.venue):"at the venue"," on"," ",new Date(T.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),". Bring your teammate. The problem statement opens when the clock starts."]})}),eU&&eY&&(0,l.jsxs)("p",{className:"text-xs md:text-sm text-gray-600 mb-3",children:["Show up ",(null==T?void 0:T.venue)?"at ".concat(T.venue):"at the venue"," on"," ",new Date(T.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),". Bring your teammate. The problem statement opens when the clock starts."]}),eV&&T.whatsapp&&(0,l.jsx)(h.z,{asChild:!0,className:"w-full bg-[#25D366] hover:bg-[#1ebe5d] text-white",children:(0,l.jsx)("a",{href:T.whatsapp,target:"_blank",rel:"noopener noreferrer",children:"Join group"})}),eY&&T.venueMap&&(0,l.jsx)(h.z,{asChild:!0,variant:"outline",className:"mt-2 w-full",children:(0,l.jsx)("a",{href:T.venueMap,target:"_blank",rel:"noopener noreferrer",children:"Directions to venue"})}),(0,l.jsx)(h.z,{asChild:!0,variant:"ghost",className:"mt-2 w-full text-[#0b1736]",children:(0,l.jsx)(g.default,{href:(0,y.E2)(T),children:eM?"Round results & your team":"Your team & rounds"})})]}):eP?(0,l.jsxs)("div",{className:"text-center py-4 md:py-6 space-y-2",children:[(0,l.jsx)("p",{className:"text-base md:text-lg font-bold text-amber-700",children:"Registration closed"}),(0,l.jsx)("p",{className:"text-xs md:text-sm text-gray-600 px-2",children:V?"We are not taking new teams. You are not on a team for this hackathon.":"We are not taking new teams. If you are already enrolled, sign in to see your status."}),V&&eM&&(0,l.jsx)(h.z,{asChild:!0,variant:"ghost",className:"w-full text-sm font-semibold text-[#0b1a33]",children:(0,l.jsx)(g.default,{href:(0,y.E2)(T),children:"Round results"})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.Vq,{open:q,onOpenChange:e=>{if(!e&&A){eC();return}X(e),e||sessionStorage.removeItem(eN)},children:[(0,l.jsx)(f.hg,{asChild:!0}),(0,l.jsx)(f.cZ,{className:"bg-white border-gray-200",children:A?(0,l.jsxs)("div",{className:"space-y-4 py-2 text-center",children:[(0,l.jsxs)(f.fK,{children:[(0,l.jsx)(f.$N,{className:"text-gray-800 text-center",children:"You're enrolled"}),(0,l.jsxs)(f.Be,{className:"text-gray-600 text-center",children:["Team ",G.trim(),". Show up ",(null==T?void 0:T.venue)?"at ".concat(T.venue):"at the venue"," on"," ",new Date(T.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),". Bring your teammate. The problem statement opens when the clock starts."]})]}),T.whatsapp&&(0,l.jsx)(h.z,{asChild:!0,className:"w-full bg-[#25D366] hover:bg-[#1ebe5d] text-white",children:(0,l.jsx)("a",{href:T.whatsapp,target:"_blank",rel:"noopener noreferrer",children:"Join group"})}),T.venueMap&&(0,l.jsx)(h.z,{asChild:!0,variant:"outline",className:"w-full",children:(0,l.jsx)("a",{href:T.venueMap,target:"_blank",rel:"noopener noreferrer",children:"Directions to venue"})}),(0,l.jsx)(h.z,{onClick:eC,variant:"outline",className:"w-full",children:"Done"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f.fK,{children:[(0,l.jsxs)(f.$N,{className:"text-gray-800 flex items-center gap-2",children:[(0,l.jsx)(x.Z,{className:"w-5 h-5 text-purple-600"}),"Your team"]}),(0,l.jsx)(f.Be,{className:"text-gray-600",children:"Teammate already enrolled? Pick their team. Otherwise type a new name. It cannot be changed later."})]}),(0,l.jsxs)("div",{className:"space-y-4 py-4",children:[er.length>0&&(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("p",{className:"text-sm font-medium text-gray-700",children:"Join a team"}),(0,l.jsx)("div",{className:"max-h-44 space-y-1.5 overflow-y-auto",children:er.map(e=>{let t=G.trim().toLowerCase()===e.teamName.toLowerCase();return(0,l.jsxs)("button",{type:"button",disabled:L,onClick:()=>{K(e.teamName),el("")},className:"flex w-full items-center justify-between rounded-lg border px-3 py-2 text-left text-sm transition ".concat(t?"border-[#0b1736] bg-yellow-50 font-bold text-[#0b1736]":"border-gray-200 text-gray-800 hover:border-gray-400"),children:[(0,l.jsx)("span",{className:"truncate",children:e.teamName}),(0,l.jsxs)("span",{className:"ml-3 shrink-0 text-xs text-gray-500",children:[e.members,ed?"/".concat(ed):""," joined"]})]},e.teamName)})}),(0,l.jsx)("p",{className:"pt-1 text-center text-xs text-gray-400",children:"or start a new team"})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(v._,{htmlFor:"teamName",className:"text-gray-700",children:"Team Name *"}),(0,l.jsx)(b.I,{id:"teamName",placeholder:"New team name",value:G,onChange:e=>{K(e.target.value),el("")},disabled:L,className:"bg-white border-gray-300 text-gray-800 placeholder:text-gray-400"}),ee&&(0,l.jsx)("p",{className:"text-sm text-red-600",children:ee})]}),W&&(0,l.jsx)("p",{className:"text-sm ".concat(W.includes("success")?"text-green-600":"text-red-600"),children:W}),(0,l.jsx)(h.z,{onClick:ez,disabled:L,className:"w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700",children:L?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{className:"animate-spin mr-2 h-4 w-4"}),"Enrolling..."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.Z,{className:"mr-2 h-4 w-4"}),"Enroll"]})})]})]})})]}),!q&&(0,l.jsxs)(h.z,{className:"w-full bg-yellow-400 hover:bg-yellow-300 text-[#0b1736] text-sm md:text-lg font-extrabold shadow-lg py-4 md:py-6 border-0 relative overflow-hidden group",onClick:eS,disabled:L,children:[(0,l.jsx)("span",{className:"absolute inset-0 bg-gradient-to-r from-white/0 via-white/20 to-white/0 translate-x-[-100%] group-hover:translate-x-[100%] transition-transform duration-1000"}),(0,l.jsxs)("span",{className:"relative flex items-center justify-center gap-2",children:[(0,l.jsx)(m.Z,{className:"w-5 h-5"}),"Enroll Now"]})]}),W&&!B&&(0,l.jsx)("p",{className:"text-sm text-center mt-3 ".concat(W.includes("success")?"text-green-600":"text-red-600"),children:W})]})})]})})]})}),(0,l.jsx)(es,{hackathon:T})]})}},89733:function(e,t,a){"use strict";a.d(t,{z:function(){return d}});var l=a(57437),n=a(2265),s=a(71538),r=a(13027),i=a(49354);let o=(0,r.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dar
1k:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:a,variant:n,size:r,asChild:d=!1,...c}=e,m=d?s.g7:"button";return(0,l.jsx)(m,{className:(0,i.cn)(o({variant:n,size:r,className:a})),ref:t,...c})});d.displayName="Button"},54662:function(e,t,a){"use strict";a.d(t,{$N:function(){return p},Be:function(){return g},GG:function(){return m},Vq:function(){return o},cZ:function(){return x},fK:function(){return h},hg:function(){return d}});var l=a(57437),n=a(2265),s=a(30721),r=a(74697),i=a(49354);let o=s.fC,d=s.xz,c=s.h_,m=s.x8,u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,l.jsx)(s.aV,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});u.displayName=s.aV.displayName;let x=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,l.jsxs)(c,{children:[(0,l.jsx)(u,{}),(0,l.jsxs)(s.VY,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950",a),...o,children:[n,(0,l.jsxs)(s.x8,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-neutral-100 data-[state=open]:text-neutral-500 dark:ring-offset-neutral-950 dark:focus:ring-neutral-300 dark:data-[state=open]:bg-neutral-800 dark:data-[state=open]:text-neutral-400",children:[(0,l.jsx)(r.Z,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=s.VY.displayName;let h=e=>{let{className:t,...a}=e;return(0,l.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};h.displayName="DialogHeader";let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,l.jsx)(s.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...n})});p.displayName=s.Dx.displayName;let g=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,l.jsx)(s.dk,{ref:t,className:(0,i.cn)("text-sm text-neutral-500 dark:text-neutral-400",a),...n})});g.displayName=s.dk.displayName},77209:function(e,t,a){"use strict";a.d(t,{I:function(){return r}});var l=a(57437),n=a(2265),s=a(49354);let r=n.forwardRef((e,t)=>{let{className:a,type:n,...r}=e;return(0,l.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-neutral-200 bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-neutral-950 placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-neutral-800 dark:file:text-neutral-50 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",a),ref:t,...r})});r.displayName="Input"},12170:function(e,t,a){"use strict";a.d(t,{_:function(){return m}});var l=a(57437),n=a(2265);a(54887);var s=a(71538),r=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let a=(0,s.Z8)(`Primitive.${t}`),r=n.forwardRef((e,n)=>{let{asChild:s,...r}=e,i=s?a:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...r,ref:n})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),i=n.forwardRef((e,t)=>(0,l.jsx)(r.label,{...e,ref:t,onMouseDown:t=>{var a;t.target.closest("button, input, select, textarea")||(null===(a=e.onMouseDown)||void 0===a||a.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var o=a(13027),d=a(49354);let c=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),m=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,l.jsx)(i,{ref:t,className:(0,d.cn)(c(),a),...n})});m.displayName=i.displayName},58357:function(e,t,a){"use strict";a.d(t,{CT:function(){return l},bz:function(){return s},nL:function(){return n}});let l=(a(20357).env.NEXT_PUBLIC_CLOUD_API_URL||"https://excelrs-cloud-new-1069037816864.asia-south1.run.app").replace(/\/+$/,""),n="https://powr-api.lawazia.tech";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(n,"/").concat(t):n}},77440:function(e,t,a){"use strict";a.d(t,{N:function(){return i},U:function(){return r}});var l=a(57437),n=a(2265);let s=(0,n.createContext)(void 0);function r(e){let{children:t}=e,[a,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(void 0),[d,c]=(0,n.useState)(void 0),m=e=>{c(null==e?void 0:e.redirectTo),r(!0)};return(0,n.useEffect)(()=>{let e=()=>{m()};return window.addEventListener("openLoginModal",e),()=>{window.removeEventListener("openLoginModal",e)}},[]),(0,l.jsx)(s.Provider,{value:{isOpen:a,openLoginModal:m,closeLoginModal:()=>{r(!1),o(void 0),c(void 0)},onLoginSuccess:i,setOnLoginSuccess:e=>{o(()=>e)},redirectTo:d},children:t})}function i(){let e=(0,n.useContext)(s);if(!e)throw Error("useLoginModal must be used within LoginModalProvider");return e}},49761:function(e,t,a){"use strict";function l(e){var t;let a=(null===(t=e.slug)||void 0===t?void 0:t.trim())||e._id;return"/hackathons/".concat(a)}a.d(t,{t:function(){return l}})},71243:function(e,t,a){"use strict";a.d(t,{E2:function(){return s},FT:function(){return o},XD:function(){return r},dI:function(){return i},hT:function(){return m},m0:function(){return n},th:function(){return c},zj:function(){return d}});var l=a(49761);async function n(e,t,a,l){try{let n=await fetch("".concat(e,"/hackathon-rounds/").concat(t,"/public"),{...l,headers:{...(null==l?void 0:l.headers)||{},...a?{Authorization:"Bearer ".concat(a)}:{}}});if(!n.ok)return null;let s=await n.json();return Array.isArray(null==s?void 0:s.rounds)?s:null}catch(e){return null}}function s(e){var t;return"/my-hackathons/".concat((null===(t=e.slug)||void 0===t?void 0:t.trim())||e._id)}function r(e){return String(e||"").trim().replace(/\s+/g," ").toLowerCase()}function i(e,t){let a=r(t);if(!a||!e||!e.length)return null;let l=null;for(let t of[...e].sort((e,t)=>
1e.order-t.order)){var n,s;let e=t.through.find(e=>r(e.team)===a),i=e?void 0:t.out.find(e=>r(e.team)===a),o=e||i;o&&(l={roundKey:t.key,roundTitle:t.title,order:t.order,outcome:e?"through":"out",rank:null!==(n=o.rank)&&void 0!==n?n:null,note:null!==(s=o.note)&&void 0!==s?s:null})}return l}function o(e,t,a){let l=a?" \xb7 ".concat(a):"";return e?"through"===e.outcome?{label:"Through â ".concat(e.roundTitle),detail:e.rank?"Team ".concat(a||""," \xb7 #").concat(e.rank," in ").concat(e.roundTitle,"."):"Team ".concat(a||""," goes through ").concat(e.roundTitle,"."),tone:"green"}:{label:"Out â ".concat(e.roundTitle),detail:e.note?"".concat(e.note,". Your registration stays on file."):"Not through this round. Your registration stays on file.",tone:"amber"}:t?{label:"Registered".concat(l),detail:"Your team is not listed in a published round yet.",tone:"blue"}:{label:"Registered".concat(l),detail:"Round results will show here when the organiser publishes them.",tone:"blue"}}function d(e){return"green"===e?"bg-green-100 text-green-800":"amber"===e?"bg-amber-100 text-amber-900":"bg-blue-100 text-blue-800"}function c(e,t){return"".concat((0,l.t)(e),"/rounds/").concat(t)}function m(e,t,a){let l=["*".concat(e," â ").concat(t.title,"*")];return t.summary&&l.push(t.summary),l.push(""),t.through.length&&(l.push("Through:"),t.through.forEach(e=>l.push("".concat(null!=e.rank?"".concat(e.rank,". "):"⢠").concat(e.team)))),t.out.length&&(l.push(""),l.push("Not this round:"),t.out.forEach(e=>l.push("⢠".concat(e.team).concat(e.note?" (".concat(e.note,")"):"")))),l.push(""),l.push(a),l.join("\n")}},49354:function(e,t,a){"use strict";a.d(t,{cn:function(){return s}});var l=a(44839),n=a(96164);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.m6)((0,l.W)(t))}},96450:function(e,t,a){"use strict";a.r(t),a.d(t,{useAuthStore:function(){return d}});var l=a(10903),n=a(89291),s=a(44785),r=a(34080),i=a(76934);let o=a(20357).env.NEXT_PUBLIC_PROJECT_ID||"678db178f70e70f6056b2c3d",d=(0,l.U)()((0,n.tJ)((e,t)=>({user:null,token:null,refreshToken:null,isHydrated:!1,setAuthData:function(t,a){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e({user:t,token:a,refreshToken:l,isHydrated:!0}),s.Z.set("auth-token",a,{expires:7,secure:!0,sameSite:"lax"}),localStorage.setItem("auth-token",a),localStorage.setItem("accessToken",a),localStorage.setItem("token",a),localStorage.setItem("user",JSON.stringify(t)),l?localStorage.setItem("refreshToken",l):localStorage.removeItem("refreshToken")},clearAuthData:()=>{(0,i.notifyImpersonationExit)({projectId:o}).catch(()=>{}),(0,r.P4)();let a=t();if(null!==a.user||null!==a.token||null!==a.refreshToken){e({user:null,token:null,refreshToken:null,isHydrated:!0});try{localStorage.removeItem("auth-store")}catch(e){console.warn("Failed to clear localStorage:",e)}}}}),{name:"auth-store",storage:(0,n.FL)(()=>localStorage),skipHydration:!0,onRehydrateStorage:()=>e=>{e&&(e.isHydrated=!0)}}));try{d.persist.rehydrate()}catch(e){console.warn("Failed to rehydrate auth store:",e)}},89502:function(e,t,a){"use strict";a.d(t,{AP:function(){return u},L$:function(){return s},Ne:function(){return d},Q:function(){return r},UB:function(){return m},aM:function(){return c},in:function(){return o},jK:function(){return i},r5:function(){return x}});var l=a(10903),n=a(58357);let s="Add your college and graduation year to enroll.";function r(e){return!!(String((null==e?void 0:e.collegeId)||(null==e?void 0:e.collegeName)||"").trim()&&String((null==e?void 0:e.graduationYear)||"").trim())}function i(e){return[null==e?void 0:e.trainings,null==e?void 0:e.internships,null==e?void 0:e.competitions,null==e?void 0:e.hackathons].some(e=>Array.isArray(e)&&e.length>0)}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date().getFullYear();return Array.from({length:6},(t,a)=>String(e+a))}function d(){return localStorage.getItem("auth-token")||localStorage.getItem("token")||null}async function c(e){let t=await fetch("".concat(n.CT,"/users/me"),{headers:{Authorization:"Bearer ".concat(e)}});return t.ok?t.json().catch(()=>null):null}let m=(0,l.U)((e,t)=>({open:!1,resolve:null,finish:a=>{let{resolve:l}=t();e({open:!1,resolve:null}),null==l||l(a)}}));function u(){let{resolve:e}=m.getState();return null==e||e(!1),new Promise(e=>{m.setState({open:!0,resolve:e})})}async function x(e){let t=e||d();if(!t)return!0;
1let a=await c(t).catch(()=>null);return!!(!a||r(a))||u()}},71538:function(e,t,a){"use strict";a.d(t,{Z8:function(){return c},g7:function(){return m}});var l,n=a(2265),s=a(1584),r=a(57437),i=Symbol.for("react.lazy"),o=(l||(l=a.t(n,2)))[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function c(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:a,...l}=e;if(d(a)&&"function"==typeof o&&(a=o(a._payload)),n.isValidElement(a)){var r;let e,i;let o=(r=a,(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref),d=function(e,t){let a={...t};for(let l in t){let n=e[l],s=t[l];/^on[A-Z]/.test(l)?n&&s?a[l]=(...e)=>{let t=s(...e);return n(...e),t}:n&&(a[l]=n):"style"===l?a[l]={...n,...s}:"className"===l&&(a[l]=[n,s].filter(Boolean).join(" "))}return{...e,...a}}(l,a.props);return a.type!==n.Fragment&&(d.ref=t?(0,s.F)(t,o):o),n.cloneElement(a,d)}return n.Children.count(a)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),a=n.forwardRef((e,a)=>{let{children:l,...s}=e;d(l)&&"function"==typeof o&&(l=o(l._payload));let i=n.Children.toArray(l),c=i.find(x);if(c){let e=c.props.children,l=i.map(t=>t!==c?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,r.jsx)(t,{...s,ref:a,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,r.jsx)(t,{...s,ref:a,children:l})});return a.displayName=`${e}.Slot`,a}var m=c("Slot"),u=Symbol("radix.slottable");function x(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},13027:function(e,t,a){"use strict";a.d(t,{j:function(){return r}});var l=a(44839);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=l.W,r=(e,t)=>a=>{var l;if((null==t?void 0:t.variants)==null)return s(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(e=>{let t=null==a?void 0:a[e],l=null==i?void 0:i[e];if(null===t)return null;let s=n(t)||n(l);return r[e][s]}),d=a&&Object.entries(a).reduce((e,t)=>{let[a,l]=t;return void 0===l||(e[a]=l),e},{});return s(e,o,null==t?void 0:null===(l=t.compoundVariants)||void 0===l?void 0:l.reduce((e,t)=>{let{class:a,className:l,...n}=t;return Object.entries(n).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...i,...d}[t]):({...i,...d})[t]===a})?[...e,a,l]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}}},function(e){e.O(0,[9715,7971,7279,231,251,5171,9465,4868,721,2971,7023,1744],function(){return e(e.s=54405)}),_N_E=e.O()}]);
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.