codigo0/dist/assets/page-ictus-Oam15e1v.js

2 lines
11 KiB
JavaScript
Raw Normal View History

import{j as e,T as i,r as u,am as f,ag as b,a as d,Q as j,i as h,R as N,an as v,q as m}from"./0-vendor-react-DWOJpYrt.js";import{B as g}from"./page-galeriaimagenes-Dnb019dP.js";import{g as y}from"./page-farmacos-BsW3CLyQ.js";import"./1-vendor-utils-Delnuc0l.js";import"./2-vendor-markdown-BQlHAcA7.js";import"./page-ajustes-DgawOEJM.js";import"./page-comunicacion-DmHQUHoW.js";const S=()=>{const s=y("ictus");if(!s)return e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] space-y-4",children:[e.jsx(i,{className:"w-12 h-12 text-destructive"}),e.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Protocolo de Ictus no encontrado"}),e.jsx("p",{className:"text-muted-foreground",children:"El protocolo solicitado no está disponible en este momento."}),e.jsx(g,{to:"/",label:"Volver al inicio"})]});const x=s.steps??[],[a,p]=u.useState(!1),[o,c]=u.useState(new Set);return e.jsxs("div",{className:"space-y-6",children:[e.jsx(g,{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(f,{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:()=>{p(!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(d,{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(j,{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(h,{className:"w-5 h-5 text-green-500"}),"Checklist Código Ictus - Marca los pasos completados"]}),o.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(N,{className:"w-4 h-4"}),"Reiniciar"]})]}),e.jsx("div",{className:"space-y-2",children:x.map((r,t)=>{const l=o.has(t);return e.jsxs("button",{onClick:()=>{const n=new Set(o);l?n.delete(t):n.add(t),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 $