1import{a as p,r as b,j as e,L as d,b as g}from"./index-D5o3qwaX.js";import{u as y}from"./useRouterState-2-gnFjQo.js";import{c as j,a as l}from"./utils-DeWYtX5v.js";const v=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],N=j("heart",v),u="cardiorisk_cookie_consent",f={en:{body:"We use essential cookies to make this site work. We do not use tracking or advertising cookies.",accept:"Accept",essential:"Essential only",learn:"Learn more â"},fr:{body:"Nous utilisons des cookies essentiels au fonctionnement du site. Nous n'utilisons pas de cookies publicitaires ou de suivi.",accept:"Accepter",essential:"Essentiels uniquement",learn:"En savoir plus â"},es:{body:"Usamos cookies esenciales para el funcionamiento del sitio. No usamos cookies de seguimiento ni publicidad.",accept:"Aceptar",essential:"Solo esenciales",learn:"Más información â"}};function k(){const{lang:r}=p(),[t,s]=b.useState(!1);b.useEffect(()=>{try{localStorage.getItem(u)||s(!0)}catch{}},[]);const a=i=>{try{localStorage.setItem(u,i)}catch{}s(!1)};if(!t)return null;const c=f[r]??f.en;return e.jsx("div",{role:"dialog","aria-label":"Cookie consent",className:"fixed bottom-0 inset-x-0 z-50 bg-navy text-primary-foreground border-t border-border shadow-lg",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6 py-3 flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsxs("p",{className:"text-xs sm:text-sm flex-1 leading-relaxed",children:[c.body," ",e.jsx(d,{to:"/privacy",className:"underline text-medical-soft hover:text-primary-foreground",children:c.learn})]}),e.jsxs("div",{className:"flex gap-2 shrink-0",children:[e.jsx("button",{type:"button",onClick:()=>a("essential"),className:"px-3 py-1.5 text-xs sm:text-sm rounded-md border border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10 transition-colors",children:c.essential}),e.jsx("button",{type:"button",onClick:()=>a("accepted"),className:"px-3 py-1.5 text-xs sm:text-sm rounded-md bg-medical text-primary-foreground font-medium hover:bg-medical/90 transition-colors",children:c.accept})]})]})})}function w(){try{localStorage.removeItem(u)}catch{}typeof window<"u"&&window.location.reload()}const h={en:{privacy:"Privacy",legal:"Mentions légales",cookies:"Cookie settings"},fr:{privacy:"Confidentialité",legal:"Mentions légales",cookies:"Paramètres des cookies"},es:{privacy:"Privacidad",legal:"Mentions légales",cookies:"Configuración de cookies"}};function E({children:r}){const{location:t}=y(),{t:s,lang:a}=p(),c=[{to:"/",label:s("nav_home")},{to:"/check",label:s("nav_check")},{to:"/find-care",label:s("nav_find")},{to:"/summary",label:s("nav_summary")},{to:"/about",label:s("nav_about")}],i=h[a]??h.en;return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx("header",{className:"sticky top-0 z-30 bg-background/85 backdrop-blur border-b border-border",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6 h-16 flex items-center justify-between gap-2",children:[e.jsxs(d,{to:"/",className:"flex items-center gap-2.5 text-navy",children:[e.jsx("span",{className:"w-9 h-9 rounded-xl flex items-center justify-center shadow-[var(--shadow-soft)]",style:{backgroundImage:"var(--gradient-medical)"},children:e.jsx(N,{className:"w-5 h-5 text-primary-foreground",strokeWidth:2.5,fill:"currentColor"})}),e.jsx("span",{className:"font-bold tracking-tight text-base sm:text-lg",children:s("appName")})]}),e.jsxs("div",{className:"flex items-center gap-3 sm:gap-5",children:[e.jsx(g,{}),e.jsx(d,{to:"/check",className:"hidden sm:inline-flex items-center text-sm font-medium text-navy hover:text-medical transition-colors",children:s("nav_check")})]})]})}),e.jsx("main",{className:"flex-1",children:e.jsx("div",{className:"mx-auto max-w-6xl px-4 sm:px-6 py-4 sm:py-8 pb-24 sm:pb-8",children:r})}),e.jsx("nav",{className:"sticky bottom-0 bg-background/95 backdrop-blur border-t border-border sm:hidden",children:e.jsx("div",{className:"mx-auto max-w-xl px-2 py-1.5 flex justify-between text-[11px]",children:c.map(n=>{const o=n.to==="/"?t.pathname==="/":t.pathname.startsWith(n.to);return e.jsx(d,{to:n.to,className:`flex-1 text-center px-2 py-2 rounded-lg transition-colors ${o?"text-medical font-semibold bg-medical-soft":"text-muted-foreground hover:text-foreground"}`,children:n.label},n.to)})})}),e.jsx("footer",{className:"bg-background border-t border-border hidden sm:block",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-6 py-5 space-y-3",children:[e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:s("footer_disclaimer")}),e.jsxs("nav",{className:"flex flex-wrap justify-center items-center gap-x-1 gap-y-2 text-xs text-muted-foreground",children:[c.map((n,o)=>e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(d,{to:n.to,className:"hover:text-medical transition-colors",children:n.label}),e.jsx("span",{"aria-hidden":"true",children:"·"})]},n.to)),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(d,{to:"/privacy",className:"hover:text-medical transition-colors",children:i.privacy}),e.jsx("span",{"aria-hidden":"true",children:"·"})]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(d,{to:"/mentions-legales",className:"hover:text-medical transition-colors",children:i.legal}),e.jsx("span",{"aria-hidden":"true",children:"·"})]}),e.jsx("button",{type:"button",onClick:w,className:"hover:text-medical transition-colors cursor-pointer",children:i.cookies})]})]})}),e.jsx(k,{})]})}function L({className:r,children:t}){return e.jsx("div",{className:l("bg-card rounded-2xl border border-border shadow-[var(--shadow-card)] p-3.5 sm:p-5",r),children:t})}function B({value:r,max:t}){const s=Math.round(r/t*100),{t:a}=p();return e.jsxs("div",{className:"w-full",children:[e.jsxs("div",{className:"flex justify-between text-[11px] text-muted-foreground mb-1.5",children:[e.jsx("span",{children:a("step_of",{value:r,max:t})}),e.jsxs("span",{children:[s,"%"]})]}),e.jsx("div",{className:"h-1.5 bg-secondary rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-medical transition-all duration-300 ease-out",style:{width:`${s}%`}})})]})}function I({options:r,value:t,onChange:s,exclusive:a,tr:c}){const i=o=>{const m=a?.includes(o);t.includes(o)?s(t.filter(x=>x!==o)):s(m?[o]:[...t.filter(x=>!a?.includes(x)),o])},n=c??(o=>o);return e.jsx("div",{className:"space-y-2",children:r.map(o=>{const m=t.includes(o);return e.jsxs("button",{type:"button",onClick:()=>i(o),className:l("w-full flex items-center gap-3 text-left px-3.5 py-2.5 sm:px-4 sm:py-3 rounded-xl border transition-all",m?"border-medical bg-medical-soft text-navy":"border-border bg-card hover:border-medical/40"),children:[e.jsx("span",{className:l("w-5 h-5 rounded-md border-2 flex items-center justify-center shrink-0",m?"border-medical bg-medical":"border-border"),children:m&&e.jsx("svg",{viewBox:"0 0 20 20",className:"w-3.5 h-3.5 text-primary-foreground",children:e.jsx("path",{fill:"currentColor",d:"M7.6 13.4L4.2 10l-1.4 1.4 4.8 4.8L17.2 6.6 15.8 5.2z"})})}),e.jsx("span",{className:"text-sm",children:n(o)})]},o)})})}function M({options:r,value:t,onChange:s,tr:a}){const c=a??(i=>i);return e.jsx("div",{className:"space-y-2",children:r.map(i=>{const n=t===i;return e.jsxs("button",{type:"button",onClick:()=>s(i),className:l("w-full flex items-center gap-3 text-left px-3.5 py-2.5 sm:px-4 sm:py-3 rounded-xl border transition-all",n?"border-medical bg-medical-soft text-navy":"border-border bg-card hover:border-medical/40"),children:[e.jsx("span",{className:l("w-5 h-5 rounded-full border-2 flex items-center justify-center shrink-0",n?"border-medical":"border-border"),children:n&&e.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-medical"})}),e.jsx("span",{className:"text-sm",children:c(i)})]},i)})})}function A({children:r,onClick:t,disabled:s,type:a="button",className:c}){return e.jsx("button",{type:a,onClick:t,disabled:s,style:{backgroundImage:"var(--gradient-medical)"},className:l("w-full rounded-xl text-primary-foreground font-semibold px-5 py-3 sm:py-3.5 shadow-[var(--shadow-soft)] transition-all hover:brightness-110 active:scale-[0.99] disabled:opacity-50 disabled:cursor-not-allowed",c),children:r})}function P({children:r,onClick:t,className:s}){return e.jsx("button",{type:"button",onClick:t,className:l("w-full rounded-xl bg-secondary text-secondary-foreground font-medium px-5 py-3 hover:bg-accent transition-colors",s),children:r})}function R({label:r,children:t,hint:s,error:a}){return e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"block text-sm font-medium text-navy mb-1.5",children:r}),t,a&&e.jsx("span",{className:"block text-xs text-destructive mt-1",children:a}),s&&!a&&e.jsx("span",{className:"block text-xs text-muted-foreground mt-1",children:s})]})}function T(r){const{error:t,className:s,...a}=r;return e.jsx("input",{...a,className:l("w-full rounded-xl border bg-card px-3.5 py-2.5 sm:px-4 sm:py-3 text-sm focus:outline-none focus:ring-2 focus:ring-medical/40 focus:border-medical transition",t?"border-destructive focus:ring-destructive/40 focus:border-destructive":"border-input",s
1)})}function W({children:r}){return e.jsx("p",{className:"text-[11px] text-muted-foreground leading-relaxed text-center",children:r})}function z({tone:r,children:t}){const s={navy:"bg-navy text-primary-foreground",medical:"bg-medical text-primary-foreground",warning:"bg-warning text-warning-foreground",success:"bg-success text-success-foreground",destructive:"bg-destructive text-destructive-foreground"};return e.jsx("span",{className:l("inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold",s[r]),children:t})}export{E as A,z as B,L as C,W as D,R as F,A as P,M as R,P as S,T,B as a,I as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.