2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
|
import{r as x,j as e,am as p,ag as b,a as o,Q as f,i as u,R as j,T as h,an as N,q as i}from"./0-vendor-react-DWOJpYrt.js";import{B as v}from"./page-galeriaimagenes-Dnb019dP.js";import{g as y}from"./page-farmacos-oJNXc_A2.js";import"./1-vendor-utils-Delnuc0l.js";import"./2-vendor-markdown-BQlHAcA7.js";import"./page-ajustes-DgawOEJM.js";import"./page-comunicacion-DmHQUHoW.js";const T=()=>{const t=y("ictus"),m=t?.steps||[],[a,g]=x.useState(!1),[d,c]=x.useState(new Set);return e.jsxs("div",{className:"space-y-6",children:[e.jsx(v,{to:"/",label:"Volver al inicio"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-orange-500/20 flex items-center justify-center",children:e.jsx(p,{className:"w-7 h-7 text-orange-500"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Código Ictus"}),e.jsx("p",{className:"text-muted-foreground",children:"Protocolo de activación ante sospecha de ictus agudo"})]})]}),e.jsxs("div",{className:"bg-orange-500/20 border border-orange-500/50 rounded-xl p-4 flex items-start gap-3",children:[e.jsx(b,{className:"w-5 h-5 text-orange-500 flex-shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-orange-600 dark:text-orange-400 mb-1",children:"⏱️ TIEMPO ES CEREBRO"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Cada minuto cuenta. La activación precoz del Código Ictus mejora significativamente el pronóstico."})]})]}),e.jsxs("button",{onClick:()=>{g(!a),a||c(new Set)},className:`w-full flex items-center justify-center gap-2 px-4 py-3 rounded-lg font-medium transition-colors ${a?"bg-green-500/20 text-green-600 dark:text-green-400 border-2 border-green-500/50":"bg-muted hover:bg-accent text-foreground border border-border"}`,"aria-label":a?"Desactivar modo checklist":"Activar modo checklist","aria-pressed":a,children:[e.jsx("span",{className:"text-lg",children:"🟢"}),e.jsx("span",{children:a?"Modo Checklist Activo":"Modo Checklist"})]}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border",children:e.jsxs(o,{to:"/manual/parte-v-protocolos/bloque-5-transtelefonicos/5.1.4",className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-purple-500/10 hover:bg-purple-500/20 border border-purple-500/30 rounded-lg text-purple-600 dark:text-purple-400 transition-colors font-medium text-sm",children:[e.jsx(f,{className:"w-4 h-4"}),e.jsx("span",{children:"📘 Ver Manual Completo"})]})})]}),a&&e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-foreground flex items-center gap-2",children:[e.jsx(u,{className:"w-5 h-5 text-green-500"}),"Checklist Código Ictus - Marca los pasos completados"]}),d.size>0&&e.jsxs("button",{onClick:()=>c(new Set),className:"flex items-center gap-2 px-3 py-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors","aria-label":"Reiniciar checklist y desmarcar todos los pasos",children:[e.jsx(j,{className:"w-4 h-4"}),"Reiniciar"]})]}),e.jsx("div",{className:"space-y-2",children:m.map((r,s)=>{const l=d.has(s);return e.jsxs("button",{onClick:()=>{const n=new Set(d);l?n.delete(s):n.add(s),c(n)},className:`w-full flex items-center gap-4 p-4 rounded-lg border-2 transition-all text-left active:scale-[0.98] ${l?"bg-green-500/20 border-green-500 shadow-sm":"bg-muted border-border hover:border-primary/50 active:bg-accent"}`,"aria-label":l?`Desmarcar paso ${s+1}: ${r}`:`Marcar paso ${s+1}: ${r}`,"aria-checked":l,children:[e.jsx("div",{className:`w-12 h-12 rounded-lg border-2 flex items-center justify-center flex-shrink-0 transition-colors ${l?"bg-green-500 border-green-500":"bg-card border-muted-foreground"}`,children:l?e.jsx(u,{className:"w-6 h-6 text-white"}):e.jsx("span",{className:"text-muted-foreground font-bold text-lg",children:s+1})}),e.jsx("span",{className:`flex-1 font-medium ${l?
|