module.exports=[92e3,a=>{"use strict";let b=(0,a.i(70106).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);a.s(["AlertCircle",()=>b],92e3)},92759,a=>{"use strict";let b=(0,a.i(70106).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],92759)},210,a=>{"use strict";let b=(0,a.i(70106).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},64814,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(92759),f=a.i(92e3),g=a.i(210),h=a.i(38246),i=a.i(5050);let j=(0,i.createServerReference)("40aac1caa2bd0e53e4fd3a40c6ba71fd2d364cc4a7",i.callServer,void 0,i.findSourceMapURL,"createPqr");var k=a.i(78560);function l(){let a=(0,d.useRouter)(),[i,l]=(0,c.useState)({categoria:"Académico",mensaje:""}),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!1),[q,r]=(0,c.useState)(null);(0,c.useEffect)(()=>{(async()=>{let{data:{session:a}}=await k.supabase.auth.getSession();a?.user?.email&&n(a.user.email)})()},[]);let s=a=>{l({...i,[a.target.name]:a.target.value}),q&&r(null)},t=async b=>{if(b.preventDefault(),p(!0),r(null),!m){r("No se pudo detectar tu sesión. Por favor inicia sesión nuevamente."),p(!1);return}let c=await j({...i,email:m});p(!1),c.success?(alert(`\xa1Radicaci\xf3n Exitosa!

Tu n\xfamero de ticket es: ${c.ticketNumber}`),a.push("/estudiante/pqrs"),a.refresh()):r(c.error||"Error desconocido al radicar la PQR.")};return(0,b.jsxs)("div",{className:"p-8 max-w-3xl mx-auto h-full overflow-y-auto",children:[(0,b.jsxs)(h.default,{href:"/estudiante",className:"text-gray-500 hover:text-navy flex items-center gap-2 text-sm font-bold uppercase tracking-widest mb-6",children:[(0,b.jsx)(g.ArrowLeft,{size:16})," Volver al Tablero"]}),(0,b.jsxs)("div",{className:"bg-white p-8 rounded-xl shadow-sm border border-gray-100",children:[(0,b.jsx)("h1",{className:"text-2xl font-serif font-bold text-navy mb-2",children:"Radicar Nueva PQR"}),(0,b.jsx)("p",{className:"text-sm text-gray-500 mb-8",children:"Selecciona la categoría de tu solicitud y describe el caso detalladamente."}),q&&(0,b.jsxs)("div",{className:"bg-red-50 text-red-700 p-4 rounded-lg flex items-start gap-3 mb-6 border border-red-200",children:[(0,b.jsx)(f.AlertCircle,{size:20,className:"mt-0.5 flex-shrink-0"}),(0,b.jsx)("div",{className:"text-sm",children:q})]}),(0,b.jsxs)("form",{onSubmit:t,className:"space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-xs font-bold text-navy uppercase tracking-widest mb-2",children:"Tu Correo Institucional / Registro"}),(0,b.jsx)("input",{type:"email",disabled:!0,value:m||"Cargando sesión...",className:"w-full border border-gray-100 bg-gray-50 rounded p-3 text-sm text-gray-400 cursor-not-allowed"}),(0,b.jsx)("span",{className:"text-xs text-gray-400 mt-1 block italic",children:"Tu solicitud quedará enlazada automáticamente a tu cuenta registrada."})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-xs font-bold text-navy uppercase tracking-widest mb-2",children:"Categoría del Ticket *"}),(0,b.jsxs)("select",{name:"categoria",required:!0,value:i.categoria,onChange:s,className:"w-full border border-gray-300 rounded p-3 text-sm focus:outline-none focus:border-yellow focus:ring-1 focus:ring-yellow",children:[(0,b.jsx)("option",{value:"Académico",children:"Académico (Notas, Horarios, Profesores)"}),(0,b.jsx)("option",{value:"Pagos",children:"Pagos y Cartera (Facturas, Cuotas)"}),(0,b.jsx)("option",{value:"Técnico",children:"Soporte Técnico (Plataforma, Acceso)"}),(0,b.jsx)("option",{value:"Otro",children:"Otro / Petición General"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-xs font-bold text-navy uppercase tracking-widest mb-2",children:"Descripción Detallada *"}),(0,b.jsx)("textarea",{name:"mensaje",required:!0,value:i.mensaje,onChange:s,rows:5,className:"w-full border border-gray-300 rounded p-3 text-sm focus:outline-none focus:border-yellow focus:ring-1 focus:ring-yellow",placeholder:"Escribe aquí tu petición, queja o reclamo con el mayor nivel de detalle posible..."})]}),(0,b.jsx)("div",{className:"flex justify-end pt-4 border-t",children:(0,b.jsx)("button",{type:"submit",disabled:o,className:"bg-navy text-white px-8 py-3 text-sm font-bold uppercase tracking-widest flex items-center gap-2 hover:bg-[#8C1515] transition-colors rounded disabled:opacity-50",children:o?"Enviando...":(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.Send,{size:18})," Radicar PQR"]})})})]})]})]})}a.s(["default",()=>l],64814)}];

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