codigo0/dist/assets/page-index-DvnG8OQi.js

2 lines
5.1 KiB
JavaScript
Raw Normal View History

import{j as e,a as r,T as l,q as i,m,H as x,am as h,ao as u,ap as g,aq as p,ag as b}from"./0-vendor-react-DWOJpYrt.js";import{c as f,a as j}from"./page-ajustes-DgawOEJM.js";const N={critical:"btn-emergency-critical",high:"btn-emergency-high",medium:"btn-emergency-medium"},t=({to:c,icon:o,title:a,subtitle:s,variant:n="critical",className:d})=>e.jsxs(r,{to:c,className:f("btn-emergency flex flex-col items-center justify-center gap-1 p-4 active:scale-[0.98] active:opacity-90 transition-transform",N[n],d),children:[e.jsx(o,{className:"w-8 h-8"}),e.jsx("span",{className:"text-sm font-semibold text-center leading-tight",children:a}),s&&e.jsx("span",{className:"text-xs opacity-90 text-center",children:s})]}),v=[{label:"OVACE",path:"/via-aerea"},{label:"Glasgow",path:"/herramientas"},{label:"Triage",path:"/escena"},{label:"Código Ictus",path:"/ictus"},{label:"Dopamina",path:"/herramientas"},{label:"Politrauma",path:"/soporte-vital"}],k=({onSearchClick:c})=>{const{getRecentHistory:o}=j(),a=o(3);return e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"text-center py-2",children:e.jsx("p",{className:"text-base font-medium text-foreground/90 leading-relaxed",children:"Guía rápida de protocolos de emergencia para TES"})}),e.jsx(r,{to:"/urgencias",className:"block w-full p-4 bg-[hsl(var(--emergency-high))]/15 border border-[hsl(var(--emergency-high))]/40 rounded-xl hover:border-[hsl(var(--emergency-high))]/70 transition-colors",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-[hsl(var(--emergency-high))] flex items-center justify-center",children:e.jsx(l,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Activar Modo Urgencias"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Acceso por capas a protocolos críticos en 1 toque"})]}),e.jsx(i,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})]})}),e.jsxs("button",{onClick:c,className:"w-full flex items-center gap-4 p-4 bg-card border border-border rounded-xl hover:border-primary/50 active:bg-muted/50 transition-colors","aria-label":"Abrir búsqueda de protocolos, fármacos y calculadoras",children:[e.jsx(m,{className:"w-6 h-6 text-foreground/70"}),e.jsx("span",{className:"text-foreground/70",children:"Buscar protocolo, fármaco, calculadora..."})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"font-semibold text-muted-foreground text-sm uppercase tracking-wide mb-3",children:"Emergencias Críticas"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:[e.jsx(t,{to:"/rcp",icon:x,title:"RCP / Parada",subtitle:"Adulto y Pediátrico",variant:"critical"}),e.jsx(t,{to:"/ictus",icon:h,title:"Código Ictus",variant:"high"}),e.jsx(t,{to:"/shock",icon:u,title:"Shock",subtitle:"Hemorrágico",variant:"medium"}),e.jsx(t,{to:"/via-aerea",icon:g,title:"Vía Aérea",subtitle:"OVACE / IOT",variant:"critical"})]})]}),e.jsx("section",{children:e.jsx(r,{to:"/guia-refuerzo",className:"block p-4 bg-gradient-to-r from-blue-500/10 to-blue-600/10 border border-blue-500/20 rounded-xl hover:border-blue-500/40 transition-colors",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-500/20 flex items-center justify-center flex-shrink-0",children:e.jsx(p,{className:"w-6 h-6 text-blue-500"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:"Guías de Refuerzo"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Contenido formativo para comprensión profunda de protocolos"})]}),e.jsx(i,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})]})})}),e.jsxs("section",{children:[e.jsx("h2",{className:"font-semibold text-muted-foreground text-sm uppercase tracking-wide mb-3",children:"Accesos Rápidos"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:v.map(s=>e.jsx(r,{to:s.path,className:"px-4 py-2 bg-muted hover:bg-accen