codigo0/dist/assets/page-rcp-CZ8w6Oz0.js
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00

2 lines
23 KiB
JavaScript
Executable file

import{j as e,L as Q,r as g,T as R,a as n,H as $,U as z,D as F,aq as P,Q as y,i as q,R as H,Z as W,q as p}from"./0-vendor-react-DWOJpYrt.js";import{B as _}from"./page-galeriaimagenes-Dnb019dP.js";import{a as O,b as h,u as A,c as Z}from"./page-farmacos-BsW3CLyQ.js";const J=()=>e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] space-y-4",children:[e.jsx(Q,{className:"w-8 h-8 animate-spin text-primary"}),e.jsx("p",{className:"text-muted-foreground",children:"Cargando..."})]}),L=[{protocoloId:"rcp-adulto-svb",protocoloRuta:"/rcp",protocoloTitulo:"RCP Adulto SVB",guiaId:"rcp-adulto-svb",guiaRuta:"/guias/rcp-adulto-svb",guiaTitulo:"RCP Adulto SVB",tieneGuia:!0,manualBloque:"BLOQUE_04_1",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.3",manualTitulo:"RCP Adultos",tieneManual:!0},{protocoloId:"rcp-adulto-sva",protocoloRuta:"/rcp",protocoloTitulo:"RCP Adulto SVA",tieneGuia:!1,manualBloque:"BLOQUE_04_1",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.3",manualTitulo:"RCP Adultos",tieneManual:!0},{protocoloId:"rcp-pediatrico",protocoloRuta:"/rcp",protocoloTitulo:"RCP Pediátrico",guiaId:"rcp-pediatrica",guiaRuta:"/guias/rcp-pediatrica",guiaTitulo:"RCP Pediátrica",tieneGuia:!0,manualBloque:"BLOQUE_04_2",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.4",manualTitulo:"RCP Pediatría",tieneManual:!0},{protocoloId:"obstruccion-via-aerea",protocoloRuta:"/via-aerea",protocoloTitulo:"OVACE",guiaId:"ovace-adulto",guiaRuta:"/guias/ovace-adulto",guiaTitulo:"OVACE Adulto",tieneGuia:!0,manualBloque:"BLOQUE_04_6",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.8",manualTitulo:"OVACE Adultos",tieneManual:!0},{protocoloId:"shock-hemorragico",protocoloRuta:"/shock",protocoloTitulo:"Shock Hemorrágico",tieneGuia:!1,manualBloque:"BLOQUE_11_0",manualRuta:"/manual/parte-xi-protocolos-trauma/bloque-11-trauma/11.1.1",manualTitulo:"Protocolos Trauma",tieneManual:!0}],K=[{guiaId:"rcp-lactantes",guiaRuta:"/guias/rcp-lactantes",guiaTitulo:"RCP Lactantes",tieneGuia:!0,manualBloque:"BLOQUE_04_3",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.5",manualTitulo:"RCP Lactantes",tieneManual:!0},{guiaId:"ovace-pediatrica",guiaRuta:"/guias/ovace-pediatrica",guiaTitulo:"OVACE Pediátrica",tieneGuia:!0,manualBloque:"BLOQUE_04_7",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.9",manualTitulo:"OVACE Pediatría",tieneManual:!0},{guiaId:"desa-adulto",guiaRuta:"/guias/desa-adulto",guiaTitulo:"DESA Adulto",tieneGuia:!0,manualBloque:"BLOQUE_04_4",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.6",manualTitulo:"Uso DESA",tieneManual:!0},{guiaId:"parada-respiratoria",guiaRuta:"/guias/parada-respiratoria",guiaTitulo:"Parada Respiratoria",tieneGuia:!0,manualBloque:"BLOQUE_04_0",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.2",manualTitulo:"Reconocimiento PCR",tieneManual:!0},{guiaId:"pcr-traumatica",guiaRuta:"/guias/pcr-traumatica",guiaTitulo:"PCR Traumática",tieneGuia:!0,manualBloque:"BLOQUE_04_0",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.2",manualTitulo:"Reconocimiento PCR",tieneManual:!0},{guiaId:"reconocimiento-pcr",guiaRuta:"/guias/reconocimiento-pcr",guiaTitulo:"Reconocimiento PCR",tieneGuia:!0,manualBloque:"BLOQUE_04_0",manualRuta:"/manual/parte-ii-soporte-vital/bloque-4-rcp/2.1.2",manualTitulo:"Reconocimiento PCR",tieneManual:!0},{protocoloId:"abcde-operativo",protocoloRuta:"/escena?tab=abcde",protocoloTitulo:"ABCDE Operativo",guiaId:"abcde-operativo",guiaRuta:"/guias/abcde-operativo",guiaTitulo:"ABCDE Operativo",tieneGuia:!0,manualBloque:"BLOQUE_01_2",manualRuta:"/manual/parte-i-fundamentos/bloque-1-procedimientos/1.2.2",manualTitulo:"ABCDE Operativo",tieneManual:!0}];function C(t){if(!(!t||typeof t!="string"||t.trim().length===0))return L.find(s=>s.protocoloId===t)}function X(t){const s=L.find(o=>o.guiaId===t);return s||K.find(o=>o.guiaId===t)}function Y(t){if(!t||typeof t!="string"||t.trim().length===0)return{protocol:null,guide:null,manual:null,mapping:void 0};const s=C(t);return{protocol:h(t),guide:s?.tieneGuia&&s.guiaId?O(s.guiaId):null,manual:s?.tieneManual?{bloque:s.manualBloque,ruta:s.manualRuta,titulo:s.manualTitulo}:null,mapping:s}}function ee(t){if(!t||typeof t!="string"||t.trim().length===0)return{success:!1,error:new Error("ID de protocolo inválido o vacío")};try{return{success:!0,data:Y(t)}}catch(s){return{success:!1,error:s instanceof Error?s:new Error("Error al obtener relaciones del protocolo")}}}function ie(t){const s=X(t);return{guide:O(t),protocol:s&&"protocoloId"in s&&s.protocoloId?h(s.protocoloId):null,manual:s?.tieneManual?{bloque:s.manualBloque,ruta:s.manualRuta,titulo:s.manualTitulo}:null,mapping:s}}function k(t){const[s,o]=g.useState({status:"loading"});return g.useEffect(()=>{if(!t||typeof t!="string"||t.trim().length===0){o({status:"error",error:new Error("ID de protocolo requerido")});return}const i=ee(t);i.success&&i.data?o({status:"success",data:i.data}):o({status:"error",error:i.error||new Error(`No se pudieron obtener relaciones para protocolo ${t}`)})},[t]),s}const ae=({message:t="El recurso solicitado no está disponible",backTo:s="/",backLabel:o="Volver al inicio",title:i="Recurso no encontrado"})=>e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[60vh] space-y-4 px-4",children:[e.jsx(R,{className:"w-12 h-12 text-destructive"}),e.jsx("h2",{className:"text-xl font-semibold text-foreground text-center",children:i}),e.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:t}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 mt-4",children:[e.jsx(_,{to:s,label:o}),e.jsx(n,{to:"/",className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-center",children:"Ir al inicio"})]})]});function B(t){return t.status==="success"}const M=["Seguridad de la escena","Comprobación de respuesta","Apertura de vía aérea","Comprobación de respiración (<10s)","Activación de emergencias","Inicio de compresiones","Colocación del DEA","Análisis y descarga si indicada","RCP de alta calidad continua","Reevaluación cada 2 minutos"],te=t=>{if(!t||typeof t!="string"||t.trim().length===0)return;const s=t.toLowerCase().trim(),o=Z();if(!(!o||o.length===0))return o.find(i=>i&&i.genericName&&(i.genericName.toLowerCase().includes(s)||i.genericName.toLowerCase().split("(")[0].trim()===s||i.tradeName&&i.tradeName.toLowerCase().includes(s)))},se=()=>{const[t,s]=g.useState("adulto"),[o,i]=g.useState(!1),[f,b]=g.useState(new Set),{protocol:D}=A("rcp-adulto-svb"),{protocol:G}=A("rcp-adulto-sva"),{protocol:I}=A("rcp-pediatrico"),c=D||h("rcp-adulto-svb"),u=G||h("rcp-adulto-sva"),m=I||h("rcp-pediatrico"),j=k("rcp-adulto-svb"),N=k("rcp-adulto-sva"),v=k("rcp-pediatrico"),S=C("rcp-adulto-svb"),T=C("rcp-adulto-sva"),U=C("rcp-pediatrico");if(j.status==="loading"||N.status==="loading"||v.status==="loading")return e.jsx(J,{});if(j.status==="error"||N.status==="error"||v.status==="error")return e.jsx(ae,{message:"Error al cargar relaciones de protocolos RCP",backTo:"/"});const l=B(j)?j.data:null;B(N)&&N.data;const d=B(v)?v.data:null,E=u?.drugs?.map(r=>{const a=te(r);return a?{name:r,drug:a}:null}).filter(r=>r!==null)||[],V=r=>{s(r),i(!1),b(new Set)};return e.jsxs("div",{className:"space-y-6",children:[e.jsx(_,{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($,{className:"w-7 h-7 text-red-500"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:"RCP / Parada Cardiorrespiratoria"}),e.jsx("p",{className:"text-muted-foreground",children:"Protocolo de Reanimación Cardiopulmonar"})]})]}),e.jsxs("div",{className:"flex gap-2 border-b border-border",children:[e.jsx("button",{onClick:()=>V("adulto"),className:`px-4 py-2 font-medium transition-colors ${t==="adulto"?"text-primary border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(z,{className:"w-4 h-4"}),e.jsx("span",{children:"Adulto"})]})}),e.jsx("button",{onClick:()=>V("pediatrico"),className:`px-4 py-2 font-medium transition-colors ${t==="pediatrico"?"text-primary border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(F,{className:"w-4 h-4"}),e.jsx("span",{children:"Pediátrico"})]})})]})]}),t==="adulto"&&e.jsxs("div",{className:"space-y-6 lg:grid lg:grid-cols-[1fr_280px] lg:gap-6 lg:items-start",children:[e.jsxs("div",{className:"space-y-6",children:[c&&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:"Soporte Vital Básico (SVB)"}),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"})]}),l&&(l.guide||l.manual)&&e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border lg:hidden",children:[l.guide&&e.jsxs(n,{to:`/guia-refuerzo/${S?.guiaId||l.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(P,{className:"w-4 h-4"}),e.jsx("span",{children:"🎓 Ver Guía Formativa"}),l.guide.titulo&&e.jsxs("span",{className:"text-xs opacity-75",children:["(",l.guide.titulo,")"]})]}),l.manual&&l.manual.ruta&&e.jsxs(n,{to:l.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(y,{className:"w-4 h-4"}),e.jsx("span",{children:"📘 Ver Manual Completo"})]})]}),e.jsxs("button",{onClick:()=>{i(!o),o||b(new Set)},className:`w-full flex items-center justify-center gap-2 px-4 py-3 rounded-lg font-medium transition-colors ${o?"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:o?"Modo Checklist Activo":"Modo Checklist"})]}),e.jsxs("div",{className:"space-y-4",children:[o?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[e.jsx(q,{className:"w-5 h-5 text-green-500"}),"Checklist RCP - Marca los pasos completados"]}),f.size>0&&e.jsxs("button",{onClick:()=>b(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(H,{className:"w-4 h-4"}),"Reiniciar"]})]}),e.jsx("div",{className:"space-y-2",children:M.map((r,a)=>{const x=f.has(a);return e.jsxs("button",{onClick:()=>{const w=new Set(f);x?w.delete(a):w.add(a),b(w)},className:`w-full flex items-center gap-4 p-4 rounded-lg border-2 transition-all text-left ${x?"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 ${x?"bg-green-500 border-green-500":"bg-card border-muted-foreground"}`,children:x?e.jsx(q,{className:"w-6 h-6 text-white"}):e.jsx("span",{className:"text-muted-foreground font-bold text-lg",children:a+1})}),e.jsx("span",{className:`flex-1 font-medium ${x?"text-foreground line-through opacity-60":"text-foreground"}`,children:r})]},a)})}),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:[f.size," de ",M.length," pasos completados"]})})]}):e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(R,{className:"w-4 h-4 text-yellow-500"}),"Pasos del Protocolo"]}),e.jsx("ol",{className:"space-y-2 list-decimal list-inside",children:c.steps.map((r,a)=>e.jsx("li",{className:"text-foreground pl-2",children:r},a))})]}),c.warnings&&c.warnings.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(R,{className:"w-4 h-4 text-orange-500"}),"Advertencias Importantes"]}),e.jsx("ul",{className:"space-y-1",children:c.warnings.map((r,a)=>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:r})]},a))})]}),c.keyPoints&&c.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:c.keyPoints.map((r,a)=>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:r})]},a))})]}),c.equipment&&c.equipment.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Material Necesario"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:c.equipment.map((r,a)=>e.jsx("span",{className:"px-3 py-1 bg-muted rounded-full text-sm text-foreground",children:r},a))})]})]})]}),u&&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:"Soporte Vital Avanzado (SVA)"}),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"})]}),T?.tieneManual&&e.jsx("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border",children:e.jsxs(n,{to:T.manualRuta||"#",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(y,{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.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Pasos del Protocolo"}),e.jsx("ol",{className:"space-y-2 list-decimal list-inside",children:u.steps.map((r,a)=>e.jsx("li",{className:"text-foreground pl-2",children:r},a))})]}),u.warnings&&u.warnings.length>0&&e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Advertencias"}),e.jsx("ul",{className:"space-y-1",children:u.warnings.map((r,a)=>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:r})]},a))})]}),u.keyPoints&&u.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:u.keyPoints.map((r,a)=>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:r})]},a))})]}),E.length>0&&e.jsxs("div",{className:"mt-4 pt-4 border-t border-border",children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[e.jsx(W,{className:"w-5 h-5 text-primary"}),"Dosis de Fármacos"]}),e.jsx("div",{className:"space-y-3",children:E.map(({name:r,drug:a})=>!a||!a.id?null:e.jsxs("div",{className:"bg-muted/50 border border-border rounded-lg p-4 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h4",{className:"font-semibold text-foreground",children:a.genericName||r}),a.tradeName&&e.jsx("span",{className:"text-xs text-muted-foreground",children:a.tradeName})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Dosis Adulto: "}),e.jsx("span",{className:"text-sm text-foreground font-medium",children:a.adultDose||"N/A"})]}),a.pediatricDose&&e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Dosis Pediátrica: "}),e.jsx("span",{className:"text-sm text-foreground font-medium",children:a.pediatricDose})]}),a.routes&&a.routes.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:a.routes.map(x=>e.jsx("span",{className:"px-2 py-0.5 bg-primary/10 text-primary rounded text-xs font-medium",children:x},x))}),a.dilution&&e.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:"Dilución: "}),e.jsx("span",{className:"text-xs text-foreground",children:a.dilution})]})]})]},a.id||r))})]})]})]})]}),e.jsxs("div",{className:"hidden lg:block space-y-4 lg:sticky lg:top-20",children:[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(n,{to:"/via-aerea",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:"Vía Aérea / OVACE"}),e.jsx(p,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs(n,{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(p,{className:"w-5 h-5 text-muted-foreground"})]})]})]}),l&&(l.guide||l.manual)&&e.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 space-y-3",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:"Contenido Relacionado"}),l.guide&&e.jsxs(n,{to:`/guia-refuerzo/${S?.guiaId||(l.guide&&typeof l.guide=="object"&&"id"in l.guide?l.guide.id:"")||""}`,className:"flex items-center gap-2 px-3 py-2 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 text-sm",children:[e.jsx(P,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"text-xs",children:"Guía Formativa"})]}),l.manual&&l.manual.ruta&&e.jsxs(n,{to:l.manual.ruta,className:"flex items-center gap-2 px-3 py-2 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 text-sm",children:[e.jsx(y,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"text-xs",children:"Manual Completo"})]})]})]}),e.jsxs("div",{className:"lg:hidden 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(n,{to:"/via-aerea",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:"Vía Aérea / OVACE"}),e.jsx(p,{className:"w-5 h-5 text-muted-foreground"})]}),e.jsxs(n,{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(p,{className:"w-5 h-5 text-muted-foreground"})]})]})]})]}),t==="pediatrico"&&m&&e.jsxs("div",{className:"space-y-6",children:[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:"RCP Pediátrico"}),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"})]}),d&&(d.guide||d.manual)&&e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border",children:[d.guide&&e.jsxs(n,{to:`/guia-refuerzo/${U?.guiaId||d.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(P,{className:"w-4 h-4"}),e.jsx("span",{children:"🎓 Ver Guía Formativa"}),d.guide.titulo&&e.jsxs("span",{className:"text-xs opacity-75",children:["(",d.guide.titulo,")"]})]}),d.manual&&d.manual.ruta&&e.jsxs(n,{to:d.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(y,{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(R,{className:"w-4 h-4 text-yellow-500"}),"Pasos del Protocolo"]}),e.jsx("ol",{className:"space-y-2 list-decimal list-inside",children:m.steps.map((r,a)=>e.jsx("li",{className:"text-foreground pl-2",children:r},a))})]}),m.warnings&&m.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:m.warnings.map((r,a)=>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:r})]},a))})]}),m.keyPoints&&m.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:m.keyPoints.map((r,a)=>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:r})]},a))})]})]})]}),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.jsx("div",{className:"space-y-2",children:e.jsxs(n,{to:"/via-aerea",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:"OVACE Pediátrico"}),e.jsx(p,{className:"w-5 h-5 text-muted-foreground"})]})})]})]})]})},ne=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));export{ae as N,J as P,ne as R,Y as a,ie as b,X as c,C as g,B as i,k as u};