"use strict";exports.id=63441,exports.ids=[63441],exports.modules={63441:(a,b,c)=>{c.r(b),c.d(b,{default:()=>j});var d=c(48249),e=c(67484),f=c(19099),g=c(33006),h=c(36605),i=c(91115);function j({params:a}){let b=(0,f.useRouter)(),c=(0,e.use)(a).id,[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(!0),[n,o]=(0,e.useState)(!1),p=async a=>{try{o(!0),await h.Bl(c,a),(0,i.Te)("Instructor updated successfully!"),b.push("/admin/instructors")}catch(a){console.error("Error updating instructor:",a),(0,i.Qg)(Object(a).message||"An error occurred")}finally{o(!1)}};return l?(0,d.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,d.jsx)("div",{children:"Loading..."})}):j?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"mb-8",children:[(0,d.jsx)("h1",{className:"text-3xl font-bold text-[var(--foreground)]",children:"Edit Instructor"}),(0,d.jsx)("p",{className:"text-[var(--muted-foreground)] mt-2",children:"Update instructor details below"})]}),(0,d.jsx)(g._,{instructor:j,onSubmit:p,onCancel:()=>{b.push("/admin/instructors")},isLoading:n})]}):(0,d.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,d.jsx)("div",{children:"Instructor not found"})})}}};