import{j as s}from"./app-C417rstp.js";import{d as g,g as p,k as h}from"./index-C9OncgsG.js";import y from"./ImageSlider-sklF08m2.js";import{m as a}from"./proxy-Bepa3l_N.js";import"./index-CIV8c8cT.js";function w({lab:e}){const t="from-primary-500 to-secondary-500",d="/assets/images/placeholder_16x9.jpg",l=(e==null?void 0:e.nombre)??"Laboratorio",m=(e==null?void 0:e.responsable)??"—",i=(e==null?void 0:e.ubicacion)??{},r=Array.isArray(e==null?void 0:e.asignaturas)?e.asignaturas:[],n=(e==null?void 0:e.descripcion)??"",x=Array.isArray(e==null?void 0:e.imagenes)&&e.imagenes.length?e.imagenes:[d];return s.jsx(a.section,{initial:{opacity:0,y:40,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-40,scale:.98},transition:{duration:.45,ease:[.23,1,.32,1]},className:"rounded-3xl bg-white shadow-2xl overflow-hidden border border-gray-100",children:s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-0",children:[s.jsx("div",{className:"lg:col-span-3 p-6 lg:p-8",children:s.jsx(y,{images:x,gradient:GRADIENT_PS})}),s.jsxs("div",{className:"lg:col-span-2 p-8 lg:p-10 bg-gradient-to-br from-gray-50 to-white",children:[s.jsxs(a.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.15},children:[s.jsx("div",{className:classNames("inline-block px-4 py-1 rounded-full bg-gradient-to-r text-white text-xs font-semibold mb-4",GRADIENT_PS),children:"Laboratorio DETRI"}),s.jsx("h2",{className:"text-3xl font-bold text-gray-900 leading-tight",children:l})]}),s.jsxs(a.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.25},className:"mt-8 space-y-5",children:[s.jsxs("div",{className:"flex items-start gap-3 group",children:[s.jsx("div",{className:classNames("mt-1 p-2 rounded-lg bg-gradient-to-br text-white group-hover:scale-110 transition-transform",t),children:s.jsx(g,{className:"text-lg"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Responsable"}),s.jsx("div",{className:"text-gray-900 font-medium",children:m||s.jsx("span",{className:"italic text-gray-400",children:"No asignado"})})]})]}),s.jsxs("div",{className:"flex items-start gap-3 group",children:[s.jsx("div",{className:classNames("mt-1 p-2 rounded-lg bg-gradient-to-br text-white group-hover:scale-110 transition-transform",t),children:s.jsx(p,{className:"text-lg"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide",children:"Ubicación"}),s.jsx("div",{className:"text-gray-900 font-medium",children:i.edificio||i.piso||i.oficina?s.jsxs(s.Fragment,{children:["Edificio ",i.edificio??"—"," · Piso ",i.piso??"—"," · Oficina ",i.oficina??"—"]}):s.jsx("span",{className:"italic text-gray-400",children:"No registrada"})})]})]})]}),r.length?s.jsxs(a.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.35},className:"mt-8",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-gray-700 mb-3",children:[s.jsx("span",{className:classNames("p-1.5 rounded-lg text-white","bg-gradient-to-br",t),children:s.jsx(h,{})}),"Asignaturas"]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((o,c)=>s.jsx(a.span,{initial:{opacity:0,scale:.85},animate:{opacity:1,scale:1},transition:{delay:.45+c*.06},whileHover:{scale:1.05,y:-2},className:`rounded-full bg-white border border-gray-200 px-4 py-2 text-sm text-gray-700
                               shadow-sm hover:shadow-md hover:border-gray-300 transition-all cursor-default`,children:o},`${o}-${c}`))})]}):null,n?s.jsx(a.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.45},className:"mt-8 text-base leading-relaxed text-gray-600 border-l-4 border-primary-200 pl-4",children:n}):null]})]})})}export{w as default};
