module.exports=[81560,a=>{"use strict";let b=(0,a.i(70106).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash2",()=>b],81560)},15618,a=>{"use strict";let b=(0,a.i(70106).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},24569,a=>{"use strict";let b=(0,a.i(70106).default)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);a.s(["Edit",()=>b],24569)},24857,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(78560),e=a.i(15618),f=a.i(24569),g=a.i(81560),h=a.i(38246);function i(){let[a,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(!0);(0,c.useEffect)(()=>{l()},[]);let l=async()=>{let{data:a,error:b}=await d.supabase.from("team_members").select("*").order("order_index",{ascending:!0});b||i(a||[]),k(!1)},m=async a=>{if(!confirm("¿Estás seguro de eliminar a este integrante del equipo?"))return;let{error:b}=await d.supabase.from("team_members").delete().eq("id",a);b||l()};return(0,b.jsxs)("div",{className:"space-y-10",children:[(0,b.jsxs)("header",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-3xl font-serif font-bold text-navy tracking-tight mb-2",children:"Gestión de Equipo"}),(0,b.jsx)("p",{className:"text-sm font-bold text-navy/40 tracking-widest uppercase",children:"Administra los integrantes de la institución"})]}),(0,b.jsxs)(h.default,{href:"/gestion-corpadein/equipo/nuevo",className:"flex items-center gap-2 bg-navy text-white px-8 py-4 font-bold tracking-widest uppercase hover:bg-navy/90 transition-all shadow-[6px_6px_0px_#FFC72C]",children:[(0,b.jsx)(e.Plus,{size:18})," NUEVO INTEGRANTE"]})]}),j?(0,b.jsx)("div",{className:"flex justify-center py-20",children:(0,b.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-t-2 border-b-2 border-navy"})}):(0,b.jsx)("div",{className:"bg-white shadow-sm border border-gray-100 overflow-hidden",children:(0,b.jsxs)("table",{className:"w-full text-left",children:[(0,b.jsx)("thead",{className:"bg-gray-50 border-b border-gray-100",children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{className:"px-8 py-6 text-[10px] font-bold text-navy/40 uppercase tracking-widest",children:"Imagen"}),(0,b.jsx)("th",{className:"px-8 py-6 text-[10px] font-bold text-navy/40 uppercase tracking-widest",children:"Nombre"}),(0,b.jsx)("th",{className:"px-8 py-6 text-[10px] font-bold text-navy/40 uppercase tracking-widest",children:"Cargo"}),(0,b.jsx)("th",{className:"px-8 py-6 text-[10px] font-bold text-navy/40 uppercase tracking-widest text-right",children:"Acciones"})]})}),(0,b.jsx)("tbody",{className:"divide-y divide-gray-100",children:0===a.length?(0,b.jsx)("tr",{children:(0,b.jsx)("td",{colSpan:4,className:"px-8 py-20 text-center text-gray-400 font-serif italic",children:"No hay integrantes registrados aún."})}):a.map(a=>(0,b.jsxs)("tr",{className:"hover:bg-gray-50/50 transition-colors",children:[(0,b.jsx)("td",{className:"px-8 py-4",children:(0,b.jsx)("div",{className:"relative w-12 h-12 rounded-full bg-gray-100 overflow-hidden border border-gray-100",children:a.image_url&&(0,b.jsx)("img",{src:a.image_url,alt:"",className:"w-full h-full object-cover"})})}),(0,b.jsx)("td",{className:"px-8 py-4",children:(0,b.jsx)("span",{className:"font-bold text-navy text-sm",children:a.name})}),(0,b.jsx)("td",{className:"px-8 py-4 text-xs font-bold text-navy/40",children:a.role}),(0,b.jsx)("td",{className:"px-8 py-4 text-right",children:(0,b.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,b.jsx)(h.default,{href:`/gestion-corpadein/equipo/edit/${a.id}`,className:"p-2 text-navy hover:bg-navy/5 rounded-lg transition-all",children:(0,b.jsx)(f.Edit,{size:18})}),(0,b.jsx)("button",{onClick:()=>m(a.id),className:"p-2 text-red-500 hover:bg-red-50 rounded-lg transition-all",children:(0,b.jsx)(g.Trash2,{size:18})})]})})]},a.id))})]})})]})}a.s(["default",()=>i])}];

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