PageSourceSearch

https://www.excelrs.dev/_next/static/chunks/app/hackathons/%5Bslug%5D/page-20534b584b948f83.js

js excelrs.dev collected 2026-09-24 15:01:38 UTC 39,553 bytes, 1 lines download raw bytes

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,89256))},89256:function(e,t,a){"use strict";a.d(t,{default:function(){return _}});var s=a(57437),l=a(58357),r=a(2265),d=a(16463),n=a(79869),i=a(33907),o=a(55430),m=a(22757),c=a(71510),x=a(87385),u=a(49321),h=a(85016),p=a(11240),g=a(22023),b=a(3274),f=a(48281),v=a(89733),w=a(96450),j=a(54662),N=a(49354);let y=r.forwardRef((e,t)=>{let{className:a,type:l,...r}=e;return(0,s.jsx)("input",{type:l,className:(0,N.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})});y.displayName="Input";var k=a(38837);let z=(0,a(13027).j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),S=r.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(k.f,{ref:t,className:(0,N.cn)(z(),a),...l})});function C(){return(0,s.jsxs)("div",{className:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 relative overflow-hidden pb-8",children:[(0,s.jsx)("div",{className:"relative z-30",children:(0,s.jsxs)("div",{className:"absolute top-2 right-2 md:top-4 md:right-4 flex items-center gap-2 md:gap-3",children:[(0,s.jsx)("div",{className:"h-8 md:h-10 w-20 md:w-24 bg-gray-200 rounded-lg animate-pulse"}),(0,s.jsx)("div",{className:"h-8 md:h-10 w-16 md:w-20 bg-gray-200 rounded-lg animate-pulse"})]})}),(0,s.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,s.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-200 to-gray-300 animate-pulse"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-black/20 to-black/40 z-10"}),(0,s.jsx)("div",{className:"absolute z-20 inset-0 flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center px-4 w-full max-w-4xl",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-6",children:[(0,s.jsx)("div",{className:"w-8 h-8 md:w-12 md:h-12 bg-white/30 rounded-full animate-pulse"}),(0,s.jsx)("div",{className:"h-8 md:h-12 w-64 md:w-96 bg-white/40 rounded-lg animate-pulse"}),(0,s.jsx)("div",{className:"w-8 h-8 md:w-12 md:h-12 bg-white/30 rounded-full animate-pulse"})]}),(0,s.jsxs)("div",{className:"max-w-2xl mx-auto mt-4",children:[(0,s.jsx)("div",{className:"h-4 md:h-6 w-full bg-white/30 rounded-lg animate-pulse mb-2"}),(0,s.jsx)("div",{className:"h-4 md:h-6 w-3/4 mx-auto bg-white/30 rounded-lg animate-pulse"})]})]})})]}),(0,s.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,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 md:gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6",children:[1,2,3,4].map(e=>(0,s.jsx)("div",{className:"bg-white rounded-xl md:rounded-2xl p-4 md:p-6 border-2 border-gray-200 shadow-lg",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 md:gap-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 md:w-16 md:h-16 bg-gray-200 rounded-xl animate-pulse"}),(0,s.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,s.jsx)("div",{className:"h-3 w-20 bg-gray-200 rounded animate-pulse"}),(0,s.jsx)("div",{className:"h-4 w-full bg-gray-200 rounded animate-pulse"}),(0,s.jsx)("div",{className:"h-3 w-16 bg-gray-200 rounded animate-pulse"})]})]})},e))}),(0,s.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,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-4 md:mb-6",children:[(0,s.jsx)("div",{className:"w-10 h-10 md:w-14 md:h-14 bg-gray-300 rounded-lg animate-pulse"}),(0,s.jsx)("div",{className:"h-6 md:h-8 w-32 md:w-40 bg-gray-300 rounded-lg animate-pulse"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-gray-200 hidden sm:block"})]}),(0,s.jsxs)("div",{className:"bg-white/80 rounded-lg md:rounded-xl p-4 md:p-6 space-y-3",children:[(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded w-5/6 animate-pulse"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.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,s.jsxs)("div",{className:"text-center",children:[(0,s.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,s.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,s.jsx)("div",{className:"h-4 w-24 mx-auto bg-white/20 rounded animate-pulse"})]})}),(0,s.jsx)("div",{className:"bg-white rounded-xl md:rounded-2xl p-6 border border-purple-200 shadow-md",children:(0,s.jsxs)("div",{className:"text-center py-4",children:[(0,s.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 bg-gray-200 rounded-full animate-pulse"}),(0,s.jsx)("div",{className:"h-5 w-24 mx-auto bg-gray-200 rounded animate-pulse mb-2"}),(0,s.jsx)("div",{className:"h-4 w-32 mx-auto bg-gray-200 rounded animate-pulse"})]})})]})]})})]})}
1S.displayName=k.f.displayName;var Z=a(77440);function _(e){let{hackathon:t}=e,a=(0,d.useRouter)(),{openLoginModal:N}=(0,Z.N)(),[k,z]=(0,r.useState)(""),[_,T]=(0,r.useState)(!1),[E,L]=(0,r.useState)(!1),[D,P]=(0,r.useState)(!1),{user:B,isHydrated:R}=(0,w.useAuthStore)(),[I,A]=(0,r.useState)(""),[O,F]=(0,r.useState)(""),[H,M]=(0,r.useState)(!1),[V,U]=(0,r.useState)(""),[G,q]=(0,r.useState)(!1),[J,W]=(0,r.useState)(null),Y=l.CT;(0,r.useEffect)(()=>{R&&(async()=>{if(!B||!(null==t?void 0:t._id)){P(!0);return}try{let e=await fetch("".concat(Y,"/hackathon-enrolls?userId=").concat(B._id,"&hackathonId=").concat(t._id));if(!e.ok){P(!0);return}let a=await e.json();if(Array.isArray(null==a?void 0:a.enrollments)){let e=a.enrollments.find(e=>e.hackathonId===t._id);e&&(L(!0),F(e.teamName||""))}}catch(e){console.error("Error checking enrollment:",e)}finally{P(!0)}})()},[R,B,null==t?void 0:t._id]);let $=e=>{navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(()=>{z("Copied to clipboard!"),setTimeout(()=>z(""),1500)}).catch(()=>{K(e)}):K(e)},K=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"),z("Copied to clipboard!")}catch(e){z("Share failed")}setTimeout(()=>z(""),1500),document.body.removeChild(t)},X=async()=>{if(!O||""===O.trim()){U("Team name is required");return}if(O.trim().length<2){U("Team name must be at least 2 characters");return}T(!0),A(""),U("");try{let e=localStorage.getItem("auth-token"),a=await fetch("".concat(Y,"/hackathon-enrolls"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({hackathonId:t._id,teamName:O.trim()})});if(!a.ok){let e=await a.json();if(401===a.status){localStorage.setItem("redirectAfterLogin",window.location.pathname),N();return}throw Error(e.message||"Enrollment failed")}await a.json(),L(!0),A("Enrollment successful!"),M(!1)}catch(t){var e;(null==t?void 0:null===(e=t.message)||void 0===e?void 0:e.toLowerCase().includes("already enrolled"))?(L(!0),M(!1)):A(t.message||"Enrollment failed")}finally{T(!1)}},Q=async()=>{if(B&&(null==t?void 0:t._id)){q(!0);try{let e=localStorage.getItem("auth-token"),s=await fetch("".concat(Y,"/hackathon-certificates"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({userId:B._id,hackathonId:t._id})});if(!s.ok){let e=await s.json();if(409===s.status&&e._id){W(e._id),a.push("/certificate/hackathon/".concat(e._id));return}throw Error(e.message||"Failed to generate certificate")}let l=await s.json();l._id&&(W(l._id),a.push("/certificate/hackathon/".concat(l._id)))}catch(e){console.error("Error generating certificate:",e),alert(e.message||"Failed to generate certificate")}finally{q(!1)}}};t.startDate;let ee=new Date(t.endDate),et=new Date>ee;return D&&R?(0,s.jsxs)("div",{className:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 relative min-h-screen overflow-x-hidden pb-0",children:[(0,s.jsxs)("div",{className:"fixed inset-0 overflow-hidden pointer-events-none z-0",children:[(0,s.jsx)("div",{className:"absolute top-20 left-10 w-72 h-72 bg-purple-200 rounded-full mix-blend-multiply filter blur-xl opacity-40 animate-blob"}),(0,s.jsx)("div",{className:"absolute top-40 right-10 w-72 h-72 bg-blue-200 rounded-full mix-blend-multiply filter blur-xl opacity-40 animate-blob animation-delay-2000"}),(0,s.jsx)("div",{className:"absolute -bottom-8 left-1/2 w-72 h-72 bg-pink-200 rounded-full mix-blend-multiply filter blur-xl opacity-40 animate-blob animation-delay-4000"})]}),(0,s.jsx)("div",{className:"fixed top-20 left-20 animate-float pointer-events-none z-0 hidden md:block",children:(0,s.jsx)(n.Z,{className:"w-12 h-12 text-purple-400/40"})}),(0,s.jsx)("div",{className:"fixed top-40 right-32 animate-float animation-delay-2000 pointer-events-none z-0 hidden md:block",children:(0,s.jsx)(i.Z,{className:"w-10 h-10 text-blue-400/40"})}),(0,s.jsx)("div",{className:"fixed bottom-40 left-1/4 animate-float animation-delay-4000 pointer-events-none z-0 hidden md:block",children:(0,s.jsx)(o.Z,{className:"w-14 h-14 text-pink-400/40"})}),(0,s.jsx)("div",{className:"fixed top-1/3 right-20 animate-float animation-delay-6000 pointer-events-none z-0 hidden md:block",children:(0,s.jsx)(m.Z,{className:"w-11 h-11 text-cyan-400/40"})}),(0,s.jsxs)("div",{className:"relative w-full h-auto min-h-[500px] sm:min-h-[550px] md:min-
1h-[600px] flex items-center justify-center overflow-hidden z-10 py-8 sm:py-10",children:[(null==t?void 0:t.image)&&(0,s.jsx)("img",{src:null==t?void 0:t.image,alt:t.title,className:"absolute inset-0 object-cover object-center z-0 w-full h-full"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-black/50 via-purple-900/40 to-black/50 z-10"}),(0,s.jsxs)("div",{className:"absolute top-4 right-4 z-30 flex items-center gap-2 md:gap-3",children:[(0,s.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:()=>a.push("/"),type:"button",children:[(0,s.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,s.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,s.jsx)("span",{className:"hidden sm:inline",children:"Dashboard"})]}),(0,s.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(()=>{z("Shared!"),setTimeout(()=>z(""),1500)}).catch(()=>{$(e)}):$(e)},type:"button",children:[(0,s.jsx)(c.Z,{className:"w-4 h-4 md:w-5 md:h-5"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]}),k&&(0,s.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:k}),(0,s.jsx)("div",{className:"relative z-20 w-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center px-3 sm:px-4 md:px-6 w-full max-w-6xl",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 md:gap-3 mb-4 md:mb-6 flex-wrap",children:[(0,s.jsx)(n.Z,{className:"w-6 h-6 sm:w-8 sm:h-8 md:w-12 md:h-12 text-purple-400 animate-pulse flex-shrink-0"}),(0,s.jsx)("h1",{className:"text-xl sm:text-2xl md:text-3xl lg:text-5xl font-extrabold text-white drop-shadow-2xl bg-gradient-to-r from-purple-300 via-pink-300 to-blue-300 bg-clip-text text-transparent animate-gradient text-center px-2",children:null==t?void 0:t.title}),(0,s.jsx)(i.Z,{className:"w-6 h-6 sm:w-8 sm:h-8 md:w-12 md:h-12 text-blue-400 animate-pulse animation-delay-1000 flex-shrink-0"})]}),(0,s.jsx)("div",{className:"max-w-4xl mx-auto mt-4 md:mt-8",children:(0,s.jsxs)("div",{className:"relative bg-white/15 backdrop-blur-md rounded-lg md:rounded-2xl p-3 sm:p-4 md:p-6 lg:p-8 border-2 border-white/30 shadow-2xl transform hover:scale-[1.01] transition-all duration-300",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-500/20 via-pink-500/20 to-blue-500/20 rounded-lg md:rounded-2xl animate-pulse"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-center justify-center gap-1 md:gap-2 mb-2 md:mb-3 flex-wrap",children:[(0,s.jsx)(o.Z,{className:"w-4 h-4 md:w-5 md:h-5 text-yellow-300 animate-pulse flex-shrink-0"}),(0,s.jsx)("span",{className:"text-xs md:text-sm font-semibold text-yellow-300 uppercase tracking-wider text-center",children:"About This Hackathon"}),(0,s.jsx)(o.Z,{className:"w-4 h-4 md:w-5 md:h-5 text-yellow-300 animate-pulse flex-shrink-0"})]}),(0,s.jsx)("div",{className:"max-h-[200px] sm:max-h-[250px] md:max-h-none overflow-y-auto scrollbar-thin scrollbar-thumb-white/30 scrollbar-track-transparent",children:(0,s.jsx)("p",{className:"text-xs sm:text-sm md:text-base lg:text-lg text-white leading-relaxed font-medium drop-shadow-lg break-words",children:null==t?void 0:t.description})})]})]})})]})})]}),(0,s.jsx)("section",{className:"relative z-10 max-w-7xl mx-auto w-full px-3 sm:px-4 md:px-6 py-4 sm:py-6 md:py-10 mb-0 pb-8 md:pb-12",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-3 sm:gap-4 md:gap-6 lg:gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-2 space-y-3 sm:space-y-4 md:space-y-6 order-2 lg:order-1",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 md:gap-6",children:[(0,s.jsxs)("div",{className:"group relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-5 lg:p-6 border-2 border-purple-200 hover:border-purple-500 transition-all duration-500 md:hover:scale-105 hover:shadow-2xl shadow-md overflow-hidden animate-fade-in",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50 to-purple-50 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,s.jsx)("div",{className:"absolute top-0 right-0 w-24 h-24 md:w-32 md:h-32 bg-gradient-to-br from-blue-200 to-purple-200 rounded-full blur-3xl group-hover:scale-150 transition-transform duration-700 opacity-50"}),(0,s.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"p-2 sm:p-3 md:p-4 bg-gradient-to-br from-blue-500 to-purple-600 rounded-lg md:rounded-xl shadow-xl group-hover:rotate-12 group-hover:scale-110 transition-all duration-500 relative overflow-hidden flex-shrink-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-white/20 animate-pulse"}),(0,s.jsx)(x.Z,{className:"h-4 w-4 sm:h-5 sm:w-5 md:h-6 md:w-6 lg:h-7 lg:w-7 text-white relative z-10"})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-[10px] sm:text-xs text-purple-600 font-semibold mb-1 uppercase tracking-wide",children:"Event Dates"}),(0,s.jsxs)("p",{className:"text-[11px] sm:text-xs md:text-sm font-bold text-gray-800 mb-0.5 sm:mb-1 break-words leading-snug",children:[new Date(null==t?void 0:t.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})," - ",new Date(null==t?void 0:t.endDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,s.jsxs)("p",{className:"text-[10px] sm:text-xs text-purple-500 font-medium",children:[null==t?void 0:t.days," Days"]})]})]})]}),(0,s.jsxs)("div",{className:"group relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-5 lg:p-6 border-2 border-pink-200 hover:border-pink-500 transition-all duration-500 md:hover:scale-105 hover:shadow-2xl shadow-md overflow-hidden animate-fade-in animation-delay-200",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-pink-50 to-purple-50 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,s.jsx)("div",{className:"absolute top-0 right-0 w-24 h-24 md:w-32 md:h-32 bg-gradient-to-br from-pink-200 to-purple-200 rounded-full blur-3xl group-hover:scale-150 transition-transform duration-700 opacity-50"}),(0,s.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"p-2 sm:p-3 md:p-4 bg-gradient-to-br from-pink-500 to-purple-600 rounded-lg md:rounded-xl shadow-xl group-hover:rotate-12 group-hover:scale-110 transition-all duration-500 relative overflow-hidden flex-shrink-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-white/20 animate-pulse"}),(0,s.jsx)(u.Z,{className:"h-4 w-4 sm:h-5 sm:w-5 md:h-6 md:w-6 lg:h-7 lg:w-7 text-white relative z-10"})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-[10px] sm:text-xs text-pink-600 font-semibold mb-1 uppercase tracking-wide",children:"Venue"}),(0,s.jsx)("p",{className:"text-[11px] sm:text-xs md:text-sm font-bold text-gray-800 mb-0.5 sm:mb-1 line-clamp-2 leading-snug",children:null==t?void 0:t.venue}),(0,s.jsxs)("p",{className:"text-[10px] sm:text-xs text-pink-500 font-medium",children:[null==t?void 0:t.mode," Mode"]})]})]})]}),(0,s.jsxs)("div",{className:"group relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-5 lg:p-6 border-2 border-cyan-200 hover:border-cyan-500 transition-all duration-500 md:hover:scale-105 hover:shadow-2xl shadow-md overflow-hidden animate-fade-in animation-delay-400",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-cyan-50 to-blue-50 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,s.jsx)("div",{className:"absolute top-0 right-0 w-24 h-24 md:w-32 md:h-32 bg-gradient-to-br from-cyan-200 to-blue-200 rounded-full blur-3xl group-hover:scale-150 transition-transform duration-700 opacity-50"}),(0,s.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"p-2 sm:p-3 md:p-4 bg-gradient-to-br from-cyan-500 to-blue-600 rounded-lg md:rounded-xl shadow-xl group-hover:rotate-12 group-hover:scale-110 transition-all duration-500 relative overflow-hidden flex-shrink-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-white/20 animate-pulse"}),(0,s.jsx)(n.Z,{className:"h-4 w-4 sm:h-5 sm:w-5 md:h-6 md:w-6 lg:h-7 lg:w-7 text-white relative z-10"})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-[10px] sm:text-xs text-cyan-600 font-semibold mb-1 uppercase tracking-wide",children:"Theme"}),(0,s.jsx)("p",{className:"text-[11px] sm:text-xs md:text-sm lg:text-base font-bold text-gray-800 line-clamp-2 leading-snug",children:(null==t?void 0:t.theme)||"Not Specified"})]})]})]}),(null==t?void 0:t.prizePool)&&(0,s.jsxs)("div",{className:"group relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-5 lg:p-6 border-2 border-yellow-200 hover:border-yellow-500 transition-all duration-500 md:hover:scale-105 hover:shadow-2xl shadow-md overflow-hidden animate-fade-in animation-delay-600",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-yellow-50 to-orange-50 opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),(0,s.jsx)("div",{className:"absolute top-0 right-0 w-24 h-24 md:w-32 md:h-32 bg-gradient-to-br from-yellow-200 to-orange-200 rounded-full blur-3xl group-hover:scale-150 transition-transform duration-700 opacity-50"}),(0,s.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3 md:gap-4",children:[(0,s.jsxs)("div",{className:"p-2 sm:p-3 md:p-4 bg-gradient-to-br from-yellow-500 to-orange-600 rounded-lg md:rounded-xl shadow-xl group-hover:rotate-12 group-hover:scale-110 transition-all duration-500 relative overflow-hidden flex-shrink-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-white/20 animate-pulse"}),(0,s.jsx)(h.Z,{className:"h-4 w-4 sm:h-5 sm:w-5 md:h-6 md:w-6 lg:h-7 lg:w-7 text-white relative z-10"})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-[10px] sm:text-xs text-yellow-600 font-semibold mb-1 uppercase tracking-wide",children:"Prize Pool"}),(0,s.jsxs)("p",{className:"text-base sm:text-lg md:text-xl lg:text-2xl font-extrabold bg-gradient-to-r from-yellow-600 to-orange-600 bg-clip-text text-transparent",children:["₹",t.prizePool.toLocaleString()]})]})]})]})]}),(0,s.jsxs)("div",{className:"relative bg-gradient-to-br from-purple-50 via-pink-50 to-blue-50 rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-6 lg:p-8 border-2 border-purple-300 hover:border-purple-500 transition-all shadow-lg hover:shadow-2xl transform md:hover:scale-[1.01] duration-300",children:[(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full h-1 md:h-2 bg-gradient-to-r from-purple-500 via-pink-500 to-blue-500 rounded-t-lg md:rounded-t-xl lg:rounded-t-2xl"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-100/30 via-pink-100/30 to-blue-100/30 rounded-lg md:rounded-xl lg:rounded-2xl"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-3 sm:mb-4 md:mb-6 flex-wrap",children:[(0,s.jsx)("div",{className:"p-2 md:p-3 bg-gradient-to-br from-purple-500 to-blue-600 rounded-lg md:rounded-xl shadow-lg flex-shrink-0",children:(0,s.jsx)(n.Z,{className:"h-4 w-4 sm:h-5 sm:w-5 md:h-6 md:w-6 lg:h-7 lg:w-7 text-white animate-pulse"})}),(0,s.jsx)("h3",{className:"text-lg sm:text-xl md:text-2xl lg:text-3xl font-extrabold bg-gradient-to-r from-purple-600 via-pink-600 to-blue-600 bg-clip-text text-transparent",children:"Overview"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-gradient-to-r from-purple-300 to-transparent hidden md:block"})]}),(0,s.jsx)("div",{className:"bg-white/80 backdrop-blur-sm rounded-lg md:rounded-xl p-3 sm:p-4 md:p-6 border border-purple-200 shadow-inner",children:(0,s.jsx)("p",{className:"text-gray-800 leading-relaxed text-xs sm:text-sm md:text-base lg:text-lg font-medium mb-3 sm:mb-4 break-words",children:(null==t?void 0:t.description)||"No description available."})}),(null==t?void 0:t.problemStatementRelease)&&(0,s.jsxs)("div",{className:"mt-3 sm:mt-4 md:mt-6 p-3 sm:p-4 md:p-5 bg-gradient-to-r from-yellow-50 to-orange-50 rounded-lg md:rounded-xl border-2 border-yellow-300 shadow-md",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 mb-2 md:mb-3",children:[(0,s.jsx)("div",{className:"p-1.5 md:p-2 bg-yellow-400 rounded-lg flex-shrink-0",children:(0,s.jsx)(o.Z,{className:"h-3 w-3 sm:h-4 sm:w-4 md:h-5 md:w-5 text-yellow-900 animate-pulse"})}),(0,s.jsx)("p",{className:"text-xs sm:text-sm md:text-base font-bold text-yellow-800",children:"Problem Statement Release"})]}),(0,s.jsx)("p",{className:"text-[11px] sm:text-xs md:text-sm text-gray-800 font-medium sm:ml-8 md:ml-11 break-words",children:t.problemStatementRelease})]})]})]}),(0,s.jsxs)("div",{className:"relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-6 border border-cyan-200 shadow-md",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-cyan-50 to-blue-50 rounded-lg md:rounded-xl lg:rounded-2xl"}),(0,s.jsxs)("div",{className:"relative",children:[(null==t?void 0:t.organizers)&&t.organizers.length>0?(0,s.jsxs)("div",{className:"mb-4 md:mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2 md:mb-3",children:[(0,s.jsx)(p.Z,{className:"h-4 w-4 md:h-5 md:w-5 text-cyan-600"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-semibold text-cyan-700",children:"Organized By"})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:t.organizers.map((e,t)=>(0,s.jsx)("span",{className:"px-3 md:px-4 py-1.5 md:py-2 bg-cyan-50 rounded-full text-xs md:text-sm font-medium text-cyan-700 border border-cyan-200 hover:border-cyan-400 hover:bg-cyan-100 transition",children:"string"==typeof e?e:e.name},t))})]}):(0,s.jsxs)("div",{className:"mb-4 md:mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2 md:mb-3",children:[(0,s.jsx)(p.Z,{className:"h-4 w-4 md:h-5 md:w-5 text-cyan-600"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-semibold text-cyan-700",children:"Organized By"})]}),(0,s.jsx)("p",{className:"text-xs md:text-sm text-gray-500 italic",children:"Not specified"})]}),(null==t?void 0:t.poweredBy)?(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(m.Z,{className:"h-4 w-4 md:h-5 md:w-5 text-pink-600"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-semibold text-pink-700",children:"Powered By"})]}),(0,s.jsx)("p",{className:"text-xs md:text-sm text-gray-700 break-words",children:t.poweredBy})]}):(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(m.Z,{className:"h-4 w-4 md:h-5 md:w-5 text-pink-600"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-semibold text-pink-700",children:"Powered By"})]}),(0,s.jsx)("p",{className:"text-xs md:text-sm text-gray-500 italic",children:"Not specified"})]})]})]})]}),(0,s.jsxs)("div",{className:"space-y-3 sm:space-y-4 md:space-y-6 relative z-10 order-1 lg:order-2",children:[(0,s.jsxs)("div",{className:"relative group bg-gradient-to-br from-purple-500 via-pink-500 to-blue-500 text-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-4 sm:p-5 md:p-6 shadow-xl border border-purple-300 overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-500/80 to-blue-500/80 animate-pulse"}),(0,s.jsx)("div",{className:"absolute top-0 right-0 w-24 h-24 md:w-32 md:h-32 bg-white/20 rounded-full blur-3xl"}),(0,s.jsxs)("div",{className:"relative text-center",children:[(0,s.jsx)("div",{className:"w-14 h-14 sm:w-16 sm:h-16 md:w-20 md:h-20 lg:w-24 lg:h-24 mx-auto mb-3 md:mb-4 rounded-full bg-white/30 flex items-center justify-center border-4 border-white/50 group-hover:scale-110 transition-transform",children:(0,s.jsx)(n.Z,{className:"w-7 h-7 sm:w-8 sm:h-8 md:w-10 md:h-10 lg:w-12 lg:h-12 text-white animate-pulse"})}),(0,s.jsx)("h3",{className:"text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl font-extrabold mb-2 md:mb-3 text-white drop-shadow-2xl leading-tight px-2 break-words",children:(null==t?void 0:t.theme)||"Hackathon Theme"}),(0,s.jsxs)("p",{className:"text-[11px] sm:text-xs md:text-sm text-white/95 flex items-center justify-center gap-1 sm:gap-2",children:[(0,s.jsx)(i.Z,{className:"w-3 h-3 md:w-4 md:h-4 flex-shrink-0"}),"Hackathon Theme"]})]})]}),(0,s.jsxs)("div",{className:"relative bg-white rounded-lg md:rounded-xl lg:rou
1nded-2xl p-3 sm:p-4 md:p-6 border border-purple-200 shadow-md",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-50 to-blue-50 rounded-lg md:rounded-xl lg:rounded-2xl"}),(0,s.jsx)("div",{className:"relative",children:et?(0,s.jsxs)("div",{className:"text-center py-3 md:py-4 space-y-3",children:[(0,s.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,s.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,s.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,s.jsx)("p",{className:"text-base md:text-lg font-bold text-red-600 mb-1 md:mb-2",children:"Hackathon Ended"}),(0,s.jsx)("p",{className:"text-xs md:text-sm text-gray-600 mb-4",children:"This hackathon has concluded."}),E&&(0,s.jsx)("div",{className:"space-y-2",children:J?(0,s.jsxs)(v.z,{onClick:()=>{J&&a.push("/certificate/hackathon/".concat(J))},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,s.jsx)(g.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5"}),"View Certificate"]}):(0,s.jsx)(v.z,{onClick:Q,disabled:G,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:G?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5 animate-spin"}),"Generating..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f.Z,{className:"mr-2 h-4 w-4 md:h-5 md:w-5"}),"Get Certificate"]})})})]}):E?(0,s.jsxs)("div",{className:"text-center py-3 md:py-4",children:[(0,s.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,s.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,s.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,s.jsxs)("p",{className:"text-base md:text-lg font-bold text-green-600 mb-2 flex items-center justify-center gap-2",children:[(0,s.jsx)(i.Z,{className:"w-4 h-4 md:w-5 md:h-5"}),"Enrolled!"]}),O&&(0,s.jsxs)("div",{className:"mb-2 md:mb-3 p-2 md:p-3 bg-green-50 rounded-lg border border-green-200",children:[(0,s.jsx)("p",{className:"text-xs text-green-600 mb-1",children:"Team Name"}),(0,s.jsx)("p",{className:"text-xs md:text-sm font-bold text-gray-800 break-words",children:O})]}),(0,s.jsx)("p",{className:"text-xs md:text-sm text-gray-600 mb-3",children:"You're all set! Good luck with the hackathon."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Vq,{open:H,onOpenChange:M,children:[(0,s.jsx)(j.hg,{asChild:!0}),(0,s.jsxs)(j.cZ,{className:"bg-white border-gray-200",children:[(0,s.jsxs)(j.fK,{children:[(0,s.jsxs)(j.$N,{className:"text-gray-800 flex items-center gap-2",children:[(0,s.jsx)(n.Z,{className:"w-5 h-5 text-purple-600"}),"Enter Team Name"]}),(0,s.jsx)(j.Be,{className:"text-gray-600",children:"Please enter your team name to enroll in this hackathon. This is required and cannot be changed later."})]}),(0,s.jsxs)("div",{className:"space-y-4 py-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(S,{htmlFor:"teamName",className:"text-gray-700",children:"Team Name *"}),(0,s.jsx)(y,{id:"teamName",placeholder:"Enter your team name",value:O,onChange:e=>{F(e.target.value),U("")},disabled:_,className:"bg-white border-gray-300 text-gray-800 placeholder:text-gray-400"}),V&&(0,s.jsx)("p",{className:"text-sm text-red-600",children:V})]}),I&&(0,s.jsx)("p",{className:"text-sm ".concat(I.includes("success")?"text-green-600":"text-red-600"),children:I}),(0,s.jsx)(v.z,{onClick:X,disabled:_,className:"w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700",children:_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{className:"animate-spin mr-2 h-4 w-4"}),"Enrolling..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.Z,{className:"mr-2 h-4 w-4"}),"Enroll"]})})]})]})]}),!H&&(0,s.jsxs)(v.z,{className:"w-full bg-gradient-to-r from-purple-600 via-pink-600 to-blue-600 hover:from-purple-700 hover:via-pink-
1700 hover:to-blue-700 text-sm md:text-lg font-bold shadow-lg py-4 md:py-6 border-0 relative overflow-hidden group",onClick:()=>{if(!B){localStorage.setItem("redirectAfterLogin",window.location.pathname),N();return}M(!0)},disabled:_,children:[(0,s.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,s.jsxs)("span",{className:"relative flex items-center justify-center gap-2",children:[(0,s.jsx)(m.Z,{className:"w-5 h-5"}),"Enroll Now"]})]}),I&&!E&&(0,s.jsx)("p",{className:"text-sm text-center mt-3 ".concat(I.includes("success")?"text-green-600":"text-red-600"),children:I})]})})]})]})]})})]}):(0,s.jsx)(C,{})}},89733:function(e,t,a){"use strict";a.d(t,{z:function(){return o}});var s=a(57437),l=a(2265),r=a(71538),d=a(13027),n=a(49354);let i=(0,d.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 dark: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"}}),o=l.forwardRef((e,t)=>{let{className:a,variant:l,size:d,asChild:o=!1,...m}=e,c=o?r.g7:"button";return(0,s.jsx)(c,{className:(0,n.cn)(i({variant:l,size:d,className:a})),ref:t,...m})});o.displayName="Button"},54662:function(e,t,a){"use strict";a.d(t,{$N:function(){return p},Be:function(){return g},GG:function(){return c},Vq:function(){return i},cZ:function(){return u},fK:function(){return h},hg:function(){return o}});var s=a(57437),l=a(2265),r=a(30721),d=a(74697),n=a(49354);let i=r.fC,o=r.xz,m=r.h_,c=r.x8,x=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(r.aV,{ref:t,className:(0,n.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),...l})});x.displayName=r.aV.displayName;let u=l.forwardRef((e,t)=>{let{className:a,children:l,...i}=e;return(0,s.jsxs)(m,{children:[(0,s.jsx)(x,{}),(0,s.jsxs)(r.VY,{ref:t,className:(0,n.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),...i,children:[l,(0,s.jsxs)(r.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,s.jsx)(d.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=r.VY.displayName;let h=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};h.displayName="DialogHeader";let p=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(r.Dx,{ref:t,className:(0,n.cn)("text-lg font-semibold leading-none tracking-tight",a),...l})});p.displayName=r.Dx.displayName;let g=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(r.dk,{ref:t,className:(0,n.cn)("text-sm text-neutral-500 dark:text-neutral-400",a),...l})});g.displayName=r.dk.displayName},58357:function(e,t,a){"use strict";a.d(t,{CT:function(){return s},bz:function(){return r},nL:function(){return l}});let s=(a(20357).env.NEXT_PUBLIC_CLOUD_API_URL||"https://excelrs-cloud-new-1069037816864.asia-south1.run.app").replace(/\/+$/,""),l="https://powr-api.lawazia.tech";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(l,"/").concat(t):l}},77440:function(e,t,a){"use strict";a.d(t,{N:function(){return n},U:function(){return d}});var s=a(57437),l=a(2265);let r=(0,l.createContext)(void 0);function d(e){let{children:t}=e,[a,d]=(0,l.useState)(!1),[n,i]=(0,l.useState)(void 0),[o,m]=(0,l.useState)(void 0),c=e=>{m(null==e?void 0:e.redirectTo),d(!0)};return(0,l.useEffect)(()=>{let e=()=>{c()};return window.addEventListener("openLoginModal",e),()=>{window.removeEventListener("openLoginModal",e)}},[]),(0,s.jsx)(r.Provider,{value:{isOpen:a,openLoginModal:c,closeLoginModal:()=>{d(!1),i(void 0),m(void 0)},onLoginSuccess:n,setOnLoginSuccess:e=>{i(()=>e)},redirectTo:o},children:t})}function n(){let e=(0,l.useContext)(r);if(!e)throw Error("useLoginModal must be used within LoginModalProvider");return e}},49354:function(e,t,a){"use strict";a.d(t,{cn:function(){return r}});var s=a(44839),l=a(96164);function r(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,l.m6)((0,s.W)(t))}},96450:function(e,t,a){"use strict";a.r(t),a.d(t,{useAuthStore:function(){return r}});var s=a(10903),l=a(89291);let r=(0,s.U)()((0,l.tJ)((e,t)=>({user:null,token:null,refreshToken:null,isHydrated:!1,setAuthData:function(t,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e({user:t,token:a,refreshToken:s,isHydrated:!0})},clearAuthData:()=>{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,l.FL)(()=>localStorage),skipHydration:!0,onRehydrateStorage:()=>e=>{e&&(e.isHydrated=!0)}}));try{r.persist.rehydrate()}catch(e){console.warn("Failed to rehydrate auth store:",e)}}},function(e){e.O(0,[231,4868,721,7417,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.