import{n as e,t}from"./jsx-runtime-BrKkGzFB.js";import{Dt as n,Et as r,a as i,bt as a,c as o,i as s,r as c,s as l}from"./app-KzKSswgw.js";var u=e(),d=t();function f(e){let t=(0,u.c)(12),{pending:n}=e,f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,d.jsx)(r,{title:`Verificación de identidad`}),t[0]=f):f=t[0];let m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsx)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:(0,d.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,d.jsx)(a,{"aria-hidden":!0,className:`mt-1 size-7 text-muted-foreground`}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h1`,{className:`text-3xl font-bold tracking-tight`,children:`Verificación de identidad`}),(0,d.jsx)(`p`,{className:`mt-2 text-muted-foreground text-sm`,children:`Solicitudes pendientes de revisión. Abra cada expediente para revisar datos y evidencias antes de aprobar o rechazar.`})]})]})}),t[1]=m):m=t[1];let h;t[2]===n.length?h=t[3]:(h=(0,d.jsxs)(o,{children:[`Solicitudes pendientes`,` `,(0,d.jsxs)(`span`,{className:`text-muted-foreground`,children:[`(`,n.length,`)`]})]}),t[2]=n.length,t[3]=h);let g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,d.jsx)(i,{children:`Sólo se listan inversionistas con estado «en revisión» y sin privilegios de administración.`}),t[4]=g):g=t[4];let _;t[5]===h?_=t[6]:(_=(0,d.jsxs)(l,{children:[h,g]}),t[5]=h,t[6]=_);let v;t[7]===n?v=t[8]:(v=(0,d.jsx)(s,{className:`p-0`,children:n.length===0?(0,d.jsx)(`p`,{className:`p-8 text-center text-muted-foreground text-sm`,children:`No hay verificaciones en cola por ahora.`}):(0,d.jsx)(`div`,{className:`overflow-x-auto`,children:(0,d.jsxs)(`table`,{className:`w-full text-left text-sm`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{className:`border-b bg-muted/40 text-muted-foreground`,children:[(0,d.jsx)(`th`,{className:`px-4 py-3 font-medium`,children:`Inversionista`}),(0,d.jsx)(`th`,{className:`px-4 py-3 font-medium whitespace-nowrap`,children:`Enviado`}),(0,d.jsx)(`th`,{className:`px-4 py-3 font-medium`,children:`Acciones`})]})}),(0,d.jsx)(`tbody`,{className:`divide-y`,children:n.map(p)})]})})}),t[7]=n,t[8]=v);let y;return t[9]!==_||t[10]!==v?(y=(0,d.jsxs)(d.Fragment,{children:[f,(0,d.jsxs)(`div`,{className:`space-y-6`,children:[m,(0,d.jsxs)(c,{children:[_,v]})]})]}),t[9]=_,t[10]=v,t[11]=y):y=t[11],y}function p(e){return(0,d.jsxs)(`tr`,{className:`align-top`,children:[(0,d.jsxs)(`td`,{className:`px-4 py-3`,children:[(0,d.jsx)(`div`,{className:`font-medium`,children:e.name}),(0,d.jsx)(`div`,{className:`text-muted-foreground text-xs`,children:e.email})]}),(0,d.jsx)(`td`,{className:`whitespace-nowrap px-4 py-3 text-muted-foreground text-xs`,children:e.submitted_at?new Date(e.submitted_at).toLocaleString(`es`,{dateStyle:`short`,timeStyle:`short`}):`—`}),(0,d.jsx)(`td`,{className:`px-4 py-3`,children:(0,d.jsx)(n,{className:`font-medium text-primary underline-offset-4 hover:underline`,href:`/admin/verificacion-kyc/usuarios/${e.user_id}`,prefetch:!0,preserveScroll:!0,children:`Revisar expediente`})})]},e.user_id)}f.layout={breadcrumbs:[{title:`Administración`,href:`/admin`},{title:`Verificación de identidad`,href:`/admin/verificacion-kyc`}]};export{f as default};