2 lines
12 KiB
JavaScript
Executable file
2 lines
12 KiB
JavaScript
Executable file
import{r as p,j as e,ap as y,V as w,i as h,R as C,U as b,T as m,a as o,aq as k,Q as A,D as V,q as u}from"./0-vendor-react-DWOJpYrt.js";import{B as P}from"./page-galeriaimagenes-Dnb019dP.js";import{u as E,g as O,P as I,N as R,i as S}from"./page-rcp-CZ8w6Oz0.js";import{u as M}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 g=["Valoración inicial (leve/grave)","Obstrucción leve: animar a toser","Obstrucción grave: 5 golpes interescapulares","5 compresiones abdominales (Heimlich)","Alternar golpes + compresiones","Si pierde consciencia: activar 112","Revisar boca antes de ventilar","Extraer objeto visible si se ve","Iniciar RCP si pierde consciencia","Derivar tras maniobras"],G=()=>{const[l,j]=p.useState(!1),[n,c]=p.useState(new Set),{protocol:f,isExternal:N}=M("obstruccion-via-aerea"),a=f,d=E("obstruccion-via-aerea"),v=O("obstruccion-via-aerea");if(d.status==="loading")return e.jsx(I,{});if(d.status==="error")return e.jsx(R,{message:"Error al cargar relaciones del protocolo de Vía Aérea",backTo:"/"});const r=S(d)?d.data:null;return e.jsxs("div",{className:"space-y-6",children:[e.jsx(P,{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-red-500/20 flex items-center justify-center",children:e.jsx(y,{className:"w-7 h-7 text-red-500"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"Vía Aérea"}),N&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-500/10 text-blue-500 border border-blue-500/20 rounded-md",children:[e.jsx(w,{className:"w-3 h-3"}),"Externo"]})]}),e.jsx("p",{className:"text-muted-foreground",children:"OVACE (Obstrucción de Vía Aérea por Cuerpo Extraño) e IOT"})]})]}),e.jsxs("button",{onClick:()=>{j(!l),l||c(new Set)},className:`w-full flex items-center justify-center gap-2 px-4 py-3 rounded-lg font-medium transition-colors ${l?"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"}`,children:[e.jsx("span",{className:"text-lg",children:"🟢"}),e.jsx("span",{children:l?"Modo Checklist Activo":"Modo Checklist"})]})]}),l&&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 OVACE - Marca los pasos completados"]}),n.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",children:[e.jsx(C,{className:"w-4 h-4"}),"Reiniciar"]})]}),e.jsx("div",{className:"space-y-2",children:g.map((t,s)=>{const i=n.has(s);return e.jsxs("button",{onClick:()=>{const x=new Set(n);i?x.delete(s):x.add(s),c(x)},className:`w-full flex items-center gap-4 p-4 rounded-lg border-2 transition-all text-left ${i?"bg-green-500/10 border-green-500/50":"bg-muted border-border hover:border-primary/50"}`,children:[e.jsx("div",{className:`w-12 h-12 rounded-lg border-2 flex items-center justify-center flex-shrink-0 transition-colors ${i?"bg-green-500 border-green-500":"bg-card border-muted-foreground"}`,children:i?e.jsx(h,{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 ${i?"text-foreground line-through opacity-60":"text-foreground"}`,children:t})]},s)})}),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:[n.size," de ",g.length," pasos completados"]})})]}),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:"Valoración Inicial"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-green-500/10 border border-green-500/30 rounded-lg p-4",children:[e.jsxs("div",{className:"font-semibold text-green-600 dark:text-green-400 mb-2 flex items-center gap-2",children:[e.jsx(b,{className:"w-4 h-4"}),"Obstrucción LEVE"]}),e.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsx("li",{children:"✓ Puede toser con fuerza"}),e.jsx("li",{children:"✓ Puede hablar"}),e.jsx("li",{children:"✓ Respiración presente"}),e.jsx("li",{children:"✓ Coloración normal"})]}),e.jsxs("div",{className:"mt-3 pt-3 border-t border-green-500/30",children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:"Actuación:"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Animar a toser, vigilar estrechamente"})]})]}),e.jsxs("div",{className:"bg-red-500/10 border border-red-500/30 rounded-lg p-4",children:[e.jsxs("div",{className:"font-semibold text-red-600 dark:text-red-400 mb-2 flex items-center gap-2",children:[e.jsx(m,{className:"w-4 h-4"}),"Obstrucción GRAVE"]}),e.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsx("li",{children:"✗ No puede toser"}),e.jsx("li",{children:"✗ No puede hablar"}),e.jsx("li",{children:"✗ Respiración ausente o débil"}),e.jsx("li",{children:"✗ Cianosis"}),e.jsx("li",{children:"✗ Pérdida de consciencia inminente"})]}),e.jsxs("div",{className:"mt-3 pt-3 border-t border-red-500/30",children:[e.jsx("div",{className:"text-sm font-medium text-foreground",children:"Actuación:"}),e.jsx("div",{className:"text-sm text-muted-foreground",children:"Maniobras de desobstrucción INMEDIATAS"})]})]})]})]}),a&&e.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-xl font-semibold text-foreground",children:"Protocolo OVACE"}),e.jsx("span",{className:"px-3 py-1 bg-red-500/20 text-red-600 dark:text-red-400 rounded-full text-xs font-medium",children:"Crítico"})]}),r&&(r.guide||r.manual)&&e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border",children:[r.guide&&e.jsxs(o,{to:`/guia-refuerzo/${v?.guiaId||r.guide.id||""}`,className:"flex items-center justify-center gap-2 px-4 py-2.5 bg-blue-500/10 hover:bg-blue-500/20 border border-blue-500/30 rounded-lg text-blue-600 dark:text-blue-400 transition-colors font-medium text-sm",children:[e.jsx(k,{className:"w-4 h-4"}),e.jsx("span",{children:"🎓 Ver Guía Formativa"}),r.guide.titulo&&e.jsxs("span",{className:"text-xs opacity-75",children:["(",r.guide.titulo,")"]})]}),r.manual&&r.manual.ruta&&e.jsxs(o,{to:r.manual.ruta,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(A,{className:"w-4 h-4"}),e.jsx("span",{children:"📘 Ver Manual Completo"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(m,{className:"w-4 h-4 text-yellow-500"}),"Pasos del Protocolo"]}),e.jsx("ol",{className:"space-y-2 list-decimal list-inside",children:a.steps.map((t,s)=>e.jsx("li",{className:"text-foreground pl-2",children:t},s))})]}),a.warnings&&a.warnings.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Advertencias Importantes"}),e.jsx("ul",{className:"space-y-1",children:a.warnings.map((t,s)=>e.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[e.jsx("span",{className:"text-orange-500 mt-1",children:"•"}),e.jsx("span",{children:t})]},s))})]}),a.keyPoints&&a.keyPoints.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Puntos Clave"}),e.jsx("ul",{className:"space-y-1",children:a.keyPoints.map((t,s)=>e.jsxs("li",{className:"text-sm text-muted-foreground flex items-start gap-2",children:[e.jsx("span",{className:"text-primary mt-1",children:"✓"}),e.jsx("span",{children:t})]},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:"Variaciones por Edad"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[e.jsxs("div",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(b,{className:"w-4 h-4"}),"Adultos y Niños (>1 año)"]}),e.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsx("li",{children:"• 5 golpes interescapulares"}),e.jsx("li",{children:"• 5 compresiones abdominales (Heimlich)"}),e.jsx("li",{children:"• Alternar hasta resolución o pérdida de consciencia"}),e.jsx("li",{children:"• En embarazadas/obesos: compresiones torácicas en lugar de abdominales"})]})]}),e.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[e.jsxs("div",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(V,{className:"w-4 h-4"}),"Lactantes (<1 año)"]}),e.jsxs("ul",{className:"text-sm text-muted-foreground space-y-1",children:[e.jsx("li",{children:"• 5 golpes en la espalda (posición boca abajo sobre antebrazo)"}),e.jsx("li",{children:"• 5 compresiones torácicas (posición boca arriba sobre antebrazo)"}),e.jsx("li",{children:"• Alternar hasta resolución o pérdida de consciencia"}),e.jsx("li",{children:"• NO hacer compresiones abdominales (riesgo de lesión)"})]})]})]})]}),e.jsxs("div",{className:"bg-red-500/10 border border-red-500/30 rounded-xl p-6 space-y-3",children:[e.jsxs("h3",{className:"font-semibold text-red-600 dark:text-red-400 flex items-center gap-2",children:[e.jsx(m,{className:"w-5 h-5"}),"Si Pierde Consciencia"]}),e.jsxs("ol",{className:"space-y-2 text-sm text-muted-foreground list-decimal list-inside",children:[e.jsx("li",{children:"Tumbar al paciente con control"}),e.jsx("li",{children:"Activar 112 si no se ha hecho"}),e.jsx("li",{children:"Antes de ventilar: revisar boca y extraer objeto visible"}),e.jsx("li",{children:"Iniciar RCP inmediatamente (ver protocolo RCP)"}),e.jsx("li",{children:"Antes de cada ventilación: revisar boca"})]})]}),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:"Intubación Orotraqueal (IOT)"}),e.jsx("p",{className:"text-muted-foreground",children:"La IOT es un procedimiento avanzado que requiere formación específica y certificación. Consulta el manual completo para detalles técnicos y consideraciones especiales."}),e.jsxs(o,{to:"/manual",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:["Ver Manual Completo",e.jsx(u,{className:"w-4 h-4"})]})]}),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(o,{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(u,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs(o,{to:"/soporte-vital",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 todos los protocolos de Soporte Vital"}),e.jsx(u,{className:"w-5 h-5 text-muted-foreground"})]})]})]})]})};export{G as default};
|