PageSourceSearch

https://bitacora.ai/assets/Analisis-D8z42AEp.js

js bitacora.ai collected 2026-10-05 15:28:33 UTC 3,340 bytes, 1 lines download raw bytes

1import{u as m,r,e as p,z as b,j as t,L as n,b0 as u,aB as h}from"./index-BiVk33Bn.js";import{a as y}from"./analyses-CXgcb1-1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"daca8474617e38beb40596519f5b410a89e15552"};var a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="639dc058-dbe6-4695-82d1-3dffcd5cf78f",e._sentryDebugIdIdentifier="sentry-dbid-639dc058-dbe6-4695-82d1-3dffcd5cf78f")}catch{}})();function g(e){return[e.patient_first_name,e.patient_last_name].filter(Boolean).join(" ").trim()}function j(e){return e?new Date(e).toLocaleDateString("es",{day:"2-digit",month:"short",year:"numeric"}):"—"}function v(){const{t:e}=m("analisis"),[a,i]=r.useState([]),[f,l]=r.useState(!0),[d,o]=r.useState(null),c=r.useCallback(async()=>{l(!0),o(null);try{i(await y())}catch(s){const x=p(s,e("errors.loadListFailed"));o(x),b.error(x)}finally{l(!1)}},[e]);return r.useEffect(()=>{c()},[c]),t.jsx(t.Fragment,{children:t.jsxs("div",{className:"px-5 py-8 lg:px-12 lg:py-12",children:[t.jsxs("header",{className:"mb-12 flex flex-col gap-6 lg:flex-row lg:items-start lg:justify-between",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-tiny uppercase tracking-widest text-terracotta mb-3",children:e("eyebrow")}),t.jsx("h1",{className:"text-h1 font-sans text-bark mb-4",children:e("list.title")}),t.jsx("p",{className:"text-body text-bark-muted max-w-2xl leading-relaxed",children:e("list.intro")})]}),t.jsxs(n,{to:"/dashboard/analisis/nuevo",className:"inline-flex items-center gap-2 border border-terracotta text-terracotta uppercase tracking-widest text-tiny rounded-full px-6 py-3 hover:bg-terracotta hover:text-linen transition-colors",children:[t.jsx(u,{size:16,strokeWidth:1.5})," ",e("newAnalysis")]})]}),f?t.jsx("p",{className:"text-tiny uppercase tracking-widest text-bark-muted",children:e("common:estados.cargando")}):d?t.jsx("p",{className:"text-small text-clay",children:d}):a.length===0?t.jsx(k,{}):t.jsx("ul",{className:"divide-y divide-bark/10 border-y border-bark/10",children:a.map(s=>t.jsx("li",{children:t.jsxs(n,{to:`/dashboard/pacientes/${s.patient_id}?tab=analisis`,className:"flex items-center gap-4 px-4 py-4 hover:bg-bark/5 transition-colors",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-body text-bark truncate",children:g(s)}),t.jsx("p",{className:"text-tiny uppercase tracking-widest text-bark-muted mt-1",children:e("list.rowMeta",{count:s.analyses_count,date:j(s.last_analysis_at)})})]}),t.jsx(h,{size:14,strokeWidth:1.5,className:"text-bark-muted"})]})},s.patient_id))})]})})}function k(){const{t:e}=m("analisis");return t.jsxs("div",{className:"text-center py-24 max-w-md mx-auto space-y-4",children:[t.jsx("p",{className:"text-h3 font-sans text-bark",children:e("list.emptyTitle")}),t.jsx("p",{className:"text-body text-bark-muted leading-relaxed",children:e("list.emptyHint")}),t.jsxs(n,{to:"/dashboard/analisis/nuevo",className:"inline-flex items-center gap-2 border border-terracotta text-terracotta uppercase tracking-widest text-tiny rounded-full px-6 py-3 hover:bg-terracotta hover:text-linen transition-colors",children:[t.jsx(u,{size:16,strokeWidth:1.5})," ",e("list.emptyCta")]})]})}export{v as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.