(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21509,e=>{"use strict";var a=e.i(43476),t=e.i(83009),i=e.i(18566),n=e.i(71645);e.s(["default",0,function({children:e}){let{user:r,loading:s}=(0,t.useAuth)(),l=(0,i.useRouter)();return((0,n.useEffect)(()=>{s||r||l.push("/login")},[r,s,l]),s)?(0,a.jsx)("div",{className:"spinner-overlay",children:(0,a.jsxs)("div",{style:{textAlign:"center"},children:[(0,a.jsx)("div",{className:"spinner"}),(0,a.jsx)("p",{className:"spinner-text",children:"Loading..."})]})}):r?(0,a.jsx)(a.Fragment,{children:e}):null}])},47163,e=>{"use strict";e.s(["REGISTRATION_FEE",0,1500,"formatDate",0,function(e){return new Date(e).toLocaleDateString("en-IN",{year:"numeric",month:"long",day:"numeric"})},"formatDateTime",0,function(e){return new Date(e).toLocaleString("en-IN",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})},"getFirebaseErrorMessage",0,function(e){return({"auth/email-already-in-use":"This email is already registered. Please login instead.","auth/invalid-email":"Please enter a valid email address.","auth/operation-not-allowed":"Email/password sign up is not enabled.","auth/weak-password":"Password is too weak. Please use at least 6 characters.","auth/user-disabled":"This account has been disabled.","auth/user-not-found":"No account found with this email.","auth/wrong-password":"Incorrect password. Please try again.","auth/too-many-requests":"Too many failed attempts. Please try again later.","auth/invalid-credential":"Invalid credentials. Please check your email and password."})[e]||"An unexpected error occurred. Please try again."},"validateFileSize",0,function(e,a){return e.size<=1024*a},"validateFileType",0,function(e,a){return a.includes(e.type)}])}]);