1import{u as x,r as n,m as f,j as e,L as d,n as p}from"./index-YNl15AGx.js";function h({lang:m="sv"}){const{t}=x(m),[i,r]=n.useState(!1),a=n.useRef(null),l=n.useRef(null);n.useEffect(()=>{f()||(l.current=document.activeElement,r(!0))},[]),n.useEffect(()=>{i&&requestAnimationFrame(()=>{var o;return(o=a.current)==null?void 0:o.focus()})},[i]);const c=o=>{var s,u;p(o),r(!1),(u=(s=l.current)==null?void 0:s.focus)==null||u.call(s)};return i?e.jsx("div",{role:"dialog","aria-modal":"true","aria-label":t("cookie-banner.label"),"aria-live":"polite",className:"fixed bottom-0 inset-x-0 z-[100] bg-[#087f7a]/90 backdrop-blur-sm text-white\n py-4 shadow-[0_-4px_24px_rgba(0,0,0,0.25)]",children:e.jsxs("div",{className:"max-w-[1140px] mx-auto px-4 flex flex-wrap items-center gap-3 justify-between",children:[e.jsxs("p",{className:"text-sm leading-snug flex-1 min-w-[200px] m-0",children:[t("cookie-banner.text")," ",e.jsx(d,{to:"/cookie",className:"underline text-mobill-primary-light hover:text-white focus:text-white\n focus:outline-none transition-colors duration-150",children:t("cookie-banner.read-more")})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsx("button",{ref:a,type:"button",onClick:()=>c("accepted"),className:"bg-mobill-primary text-white text-sm font-semibold\n px-5 py-2 rounded-mobill-sm hover:bg-mobill-primary-light\n focus:outline-none focus:ring-2 focus:ring-white\n transition-colors duration-150 whitespace-nowrap",children:t("cookie-banner.accept")}),e.jsx("button",{type:"button",onClick:()=>c("declined"),className:"bg-white/20 text-white text-sm font-semibold\n px-5 py-2 rounded-mobill-sm hover:bg-white/30\n focus:outline-none focus:ring-2 focus:ring-white\n transition-colors duration-150 whitespace-nowrap",children:t("cookie-banner.decline")})]})]})}):null}export{h as C};
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.