module.exports=[738783,(a,b,c)=>{"use strict";b.exports=a.r(342602).vendored["react-ssr"].ReactServerDOMTurbopackClient},228337,a=>{"use strict";let b=a.i(83490).default.create({baseURL:"https://arcedea.losenviskas.com/laravel-backend/public/api",withCredentials:!0,headers:{"Content-Type":"application/json",Accept:"application/json"}});b.interceptors.request.use(a=>(console.log(`🚀 [API Request] ${a.method?.toUpperCase()} ${a.url}`,{data:a.data||"No body"}),a),a=>(console.error("❌ [Request Setup Error]",a),Promise.reject(a))),b.interceptors.response.use(a=>(console.log(`✅ [API Response] ${a.status} ${a.config.url}`,a.data),a),a=>{let b=a.response?a.response.status:null,c=a.response?.data;return 401===b&&console.warn("⚠️ Session expired or unauthorized. Cleaning up local storage..."),403===b&&console.error("🚫 Access Denied: You do not have the required permissions."),console.error(`❌ [API Error] ${b||"Network Error"}:`,c||a.message),Promise.reject(a)}),a.s(["default",0,b])},73570,a=>{"use strict";let b=(0,a.i(170106).default)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",()=>b],73570)},544852,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944),e=a.i(695245),f=a.i(159501),g=a.i(336570),h=a.i(228337),i=a.i(238246),j=a.i(699570),k=a.i(591119),l=a.i(441921),m=a.i(866718),n=a.i(596221);let o=(0,a.i(170106).default)("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);var p=a.i(73570);let q=g.z.object({email:g.z.string().email("Please enter a valid email address.")});function r(){let a=(0,d.useSearchParams)(),[g,r]=(0,c.useState)(""),[s,t]=(0,c.useState)(""),[u,v]=(0,c.useState)(!1),w=(0,e.useForm)({resolver:(0,f.zodResolver)(q),defaultValues:{email:a.get("email")||""}});(0,c.useEffect)(()=>{let b=a.get("email");b&&w.setValue("email",b)},[a,w]);let x=async a=>{r(""),t(""),v(!0);try{let b=await h.default.post("/resend-verification-email",a);r(b.data.message),w.reset()}catch(a){a.response?t(a.response.data.message):t("An unexpected error occurred.")}finally{v(!1)}};return(0,b.jsxs)(k.Card,{className:"w-full max-w-sm",children:[(0,b.jsxs)(k.CardHeader,{className:"text-center",children:[(0,b.jsx)(k.CardTitle,{className:"text-2xl",children:"Resend Verification Email"}),(0,b.jsx)(k.CardDescription,{children:"Enter your email to receive a new verification link."})]}),(0,b.jsxs)(k.CardContent,{children:[g&&(0,b.jsxs)("div",{className:"mb-4 bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded-md flex items-center gap-x-2 text-sm",children:[(0,b.jsx)(o,{className:"h-4 w-4"}),(0,b.jsx)("p",{children:g})]}),s&&(0,b.jsxs)("div",{className:"mb-4 bg-destructive/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-destructive",children:[(0,b.jsx)(p.AlertTriangle,{className:"h-4 w-4"}),(0,b.jsx)("p",{children:s})]}),(0,b.jsx)(l.Form,{...w,children:(0,b.jsxs)("form",{onSubmit:w.handleSubmit(x),className:"space-y-4",children:[(0,b.jsx)(l.FormField,{control:w.control,name:"email",render:({field:a})=>(0,b.jsxs)(l.FormItem,{children:[(0,b.jsx)(l.FormLabel,{children:"Email Address"}),(0,b.jsx)(l.FormControl,{children:(0,b.jsx)(m.Input,{placeholder:"your@email.com",...a})}),(0,b.jsx)(l.FormMessage,{})]})}),(0,b.jsxs)(j.Button,{type:"submit",disabled:u,className:"w-full",children:[u?(0,b.jsx)(n.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Resend Email"]})]})}),(0,b.jsxs)("p",{className:"mt-4 text-center text-sm text-muted-foreground",children:["Remember your password?"," ",(0,b.jsx)(i.default,{href:"/login",className:"underline hover:text-primary",children:"Login"})]})]})]})}function s(){return(0,b.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-muted/40 p-4",children:(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)(k.Card,{className:"w-full max-w-sm",children:(0,b.jsx)(k.CardContent,{className:"pt-6 flex justify-center",children:(0,b.jsx)(n.Loader2,{className:"h-8 w-8 animate-spin text-muted-foreground"})})}),children:(0,b.jsx)(r,{})})})}a.s(["default",()=>s],544852)}];

//# sourceMappingURL=_4451d96a._.js.map