import{g as a,b as s,t as o,d as l,a as d,f as c,e as m,l as x,i,o as n}from"./app-BJF24m-a.js";const u={class:"min-h-screen bg-gray-50"},g={class:"bg-white shadow"},f={class:"max-w-7xl mx-auto py-4 sm:py-6 px-4 sm:px-6 lg:px-8 flex justify-between items-center"},h={class:"text-lg sm:text-2xl font-bold text-gray-900 truncate"},b={class:"flex items-center gap-3 sm:gap-4 flex-shrink-0"},p=["action"],y={class:"max-w-4xl mx-auto py-6 px-4 sm:px-6 lg:px-8"},v={class:"bg-white shadow rounded-lg p-4 sm:p-6"},k={class:"border-b border-gray-200 pb-4 mb-4"},w={class:"text-sm text-gray-500"},_={class:"space-y-4"},C={class:"grid grid-cols-2 gap-4"},V={class:"font-medium"},j={class:"font-medium"},N={class:"font-medium"},S={class:"font-medium"},B={key:0,class:"mt-6 p-4 bg-blue-50 rounded-lg"},I={class:"text-blue-800"},D=["href"],E={key:1,class:"mt-4"},O={class:"mt-1 text-gray-700"},T={key:2,class:"text-center py-12"},z={__name:"Informe",props:{title:String,caso:Object},setup(e){return(r,t)=>(n(),a("div",u,[s("header",g,[s("div",f,[s("h1",h,"Informe - Caso "+o(e.caso.numero_reclamo),1),s("div",b,[l(m(x),{href:r.route("portal.casos.ver",e.caso.id),class:"text-sm sm:text-base text-blue-600 hover:underline whitespace-nowrap"},{default:d(()=>[...t[0]||(t[0]=[c("← Volver al Caso",-1)])]),_:1},8,["href"]),s("form",{method:"POST",action:r.route("portal.logout")},[...t[1]||(t[1]=[s("button",{type:"submit",class:"text-sm sm:text-base text-gray-600 hover:text-gray-900 whitespace-nowrap"},"Cerrar Sesión",-1)])],8,p)])])]),s("main",y,[s("div",v,[s("div",k,[t[2]||(t[2]=s("h2",{class:"text-xl font-bold text-gray-900"},"Informe de Ajuste",-1)),s("p",w,"Caso: "+o(e.caso.numero_reclamo),1)]),s("div",_,[s("div",C,[s("div",null,[t[3]||(t[3]=s("span",{class:"text-sm text-gray-500"},"Estado:",-1)),s("p",V,o(e.caso.estado_actual),1)]),s("div",null,[t[4]||(t[4]=s("span",{class:"text-sm text-gray-500"},"Cobertura:",-1)),s("p",j,o(e.caso.cobertura),1)]),s("div",null,[t[5]||(t[5]=s("span",{class:"text-sm text-gray-500"},"Tipo de Ajuste:",-1)),s("p",N,o(e.caso.tipo_ajuste||"No especificado"),1)]),s("div",null,[t[6]||(t[6]=s("span",{class:"text-sm text-gray-500"},"Fecha Siniestro:",-1)),s("p",S,o(e.caso.fecha_siniestro),1)])]),e.caso.link_informe?(n(),a("div",B,[s("p",I,[t[7]||(t[7]=s("strong",null,"Documento del informe:",-1)),s("a",{href:e.caso.link_informe,target:"_blank",class:"underline"},"Descargar Informe",8,D)])])):i("",!0),e.caso.observaciones?(n(),a("div",E,[t[8]||(t[8]=s("span",{class:"text-sm text-gray-500"},"Observaciones:",-1)),s("p",O,o(e.caso.observaciones),1)])):i("",!0),!e.caso.link_informe&&!e.caso.observaciones?(n(),a("div",T,[...t[9]||(t[9]=[s("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1),s("p",{class:"mt-4 text-gray-500"},"El informe aún no está disponible.",-1)])])):i("",!0)])])])]))}};export{z as default};
