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

2 lines
11 KiB
JavaScript

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 ${t+1}: ${r}`:`Marcar paso ${t+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(h,{className:"w-6 h-6 text-white"}):e.jsx("span",{className:"text-muted-foreground font-bold text-lg",children:t+1})}),e.jsx("span",{className:`flex-1 font-medium ${l?"text-foreground line-through opacity-60":"text-foreground"}`,children:r})]},t)})}),e.jsx("div",{className:"mt-4 p-3 bg-muted/50 rounded-lg text-center",children:e.jsxs("p",{className:"text-sm text-muted-foreground",children:[o.size," de ",x.length," pasos completados"]})})]}),e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-foreground flex items-center gap-2",children:[e.jsx(i,{className:"w-5 h-5 text-orange-500"}),"Reconocimiento: Test FAST"]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"F"}),e.jsx("div",{className:"font-semibold text-foreground mb-1",children:"Face (Cara)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Asimetría facial al sonreír"})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"A"}),e.jsx("div",{className:"font-semibold text-foreground mb-1",children:"Arms (Brazos)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Debilidad en un brazo al elevarlo"})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"S"}),e.jsx("div",{className:"font-semibold text-foreground mb-1",children:"Speech (Habla)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Dificultad para hablar o entender"})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-center",children:[e.jsx("div",{className:"text-3xl font-bold text-primary mb-2",children:"T"}),e.jsx("div",{className:"font-semibold text-foreground mb-1",children:"Time (Tiempo)"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Activar Código Ictus INMEDIATAMENTE"})]})]})]}),s&&e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Protocolo de Actuación"}),e.jsx("div",{className:"space-y-3",children:s.steps.map((r,t)=>e.jsxs("div",{className:"flex items-start gap-3 p-4 bg-muted/50 border border-border rounded-lg",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-primary text-primary-foreground flex items-center justify-center font-bold flex-shrink-0",children:t+1}),e.jsx("div",{className:"flex-1",children:e.jsx("p",{className:"text-sm text-foreground",children:r})})]},t))}),s.warnings&&s.warnings.length>0&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx(i,{className:"w-5 h-5 text-yellow-500"}),"Advertencias Críticas"]}),e.jsx("ul",{className:"space-y-2",children:s.warnings?.map((r,t)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-yellow-500 mt-1",children:"⚠️"}),e.jsx("span",{children:r})]},t))})]}),s.keyPoints&&s.keyPoints.length>0&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-border",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Puntos Clave"}),e.jsx("ul",{className:"space-y-2",children:s.keyPoints.map((r,t)=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-primary mt-1",children:"•"}),e.jsx("span",{children:r})]},t))})]}),(s.equipment||s.drugs)&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-border grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.equipment&&s.equipment.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Equipamiento"}),e.jsx("ul",{className:"space-y-1",children:s.equipment?.map((r,t)=>e.jsxs("li",{className:"text-sm text-muted-foreground",children:["• ",r]},t))})]}),s.drugs&&s.drugs.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Fármacos"}),e.jsx("ul",{className:"space-y-1",children:s.drugs?.map((r,t)=>e.jsxs("li",{className:"text-sm text-muted-foreground",children:["• ",r]},t))})]})]})]}),e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Criterios de Exclusión"}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-red-500 mt-1",children:"✗"}),e.jsx("span",{children:"Síntomas >24 horas de evolución (excepto indicación específica del hospital)"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-red-500 mt-1",children:"✗"}),e.jsx("span",{children:"Hipoglucemia como causa de síntomas"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-red-500 mt-1",children:"✗"}),e.jsx("span",{children:"Trauma craneal reciente"})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm text-muted-foreground",children:[e.jsx("span",{className:"text-red-500 mt-1",children:"✗"}),e.jsx("span",{children:"Paciente en tratamiento anticoagulante con INR >3.0"})]})]})]}),e.jsxs("div",{className:"bg-muted/50 border border-border rounded-xl p-4",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-3",children:"Protocolos Relacionados"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(d,{to:"/telefono",className:"flex items-center justify-between p-3 bg-card rounded-lg hover:bg-accent transition-colors",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{className:"w-4 h-4 text-muted-foreground"}),e.jsx("span",{className:"text-foreground",children:"Protocolo Transtelefónico de Ictus"})]}),e.jsx(m,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs(d,{to:"/patologias",className:"flex items-center justify-between p-3 bg-card rounded-lg hover:bg-accent transition-colors",children:[e.jsx("span",{className:"text-foreground",children:"Ver todas las patologías neurológicas"}),e.jsx(m,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs(d,{to:"/rcp",className:"flex items-center justify-between p-3 bg-card rounded-lg hover:bg-accent transition-colors",children:[e.jsx("span",{className:"text-foreground",children:"RCP (si pierde consciencia)"}),e.jsx(m,{className:"w-5 h-5 text-muted-foreground"})]})]})]})]})};export{S as default};