1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{2218:(e,t,s)=>{"use strict";s.d(t,{CookieConsentProvider:()=>c,CookieSettings:()=>d,u:()=>n});var a=s(5155),l=s(2115);let o="cyr89-cookie-consent",r=(0,l.createContext)({consent:null,accept:()=>{},reject:()=>{},ask:()=>{}}),n=()=>(0,l.useContext)(r);function c(e){let{children:t}=e,[s,n]=(0,l.useState)(null),[c,d]=(0,l.useState)(!1),u=(0,l.useRef)(null);(0,l.useEffect)(()=>{try{let e=localStorage.getItem(o);("accepted"===e||"rejected"===e)&&n(e)}catch(e){}},[]);let m=(0,l.useCallback)(()=>{d(!1);let e=u.current;u.current=null,e&&e.isConnected&&window.requestAnimationFrame(()=>e.focus())},[]),x=(0,l.useCallback)(()=>{try{localStorage.setItem(o,"accepted")}catch(e){}n("accepted"),m()},[m]),b=(0,l.useCallback)(()=>{try{localStorage.setItem(o,"rejected")}catch(e){}n("rejected"),m()},[m]),f=(0,l.useCallback)(()=>{u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,d(!0)},[]);return(0,a.jsxs)(r.Provider,{value:{consent:s,accept:x,reject:b,ask:f},children:[t,c&&"accepted"!==s&&(0,a.jsx)(i,{onAccept:x,onReject:b,onClose:m})]})}function i(e){let{onAccept:t,onReject:s,onClose:o}=e,r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{var e;null==(e=r.current)||e.focus()},[]),(0,a.jsx)("div",{ref:r,role:"dialog","aria-label":"Aviso de cookies","aria-describedby":"aviso-cookies-texto",tabIndex:-1,onKeyDown:e=>{"Escape"===e.key&&o()},className:"fixed inset-x-0 bottom-0 z-[70] p-3 outline-none sm:p-4",children:(0,a.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-3 rounded-2xl border border-line bg-card/95 p-4 shadow-lift backdrop-blur sm:flex-row sm:items-center sm:gap-4",children:[(0,a.jsxs)("p",{id:"aviso-cookies-texto",className:"flex-1 text-sm leading-relaxed text-fg/75",children:["El mapa es de Google Maps y usa cookies de terceros. Puedes aceptarlas o rechazarlas. M\xe1s informaci\xf3n en nuestra"," ",(0,a.jsx)("a",{href:"/cookies",className:"font-medium text-accent hover:underline",children:"pol\xedtica de cookies"}),"."]}),(0,a.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:s,className:"rounded-full border border-line px-4 py-2 text-sm font-semibold text-fg/80 transition-colors hover:bg-fg/5",children:"Rechazar"}),(0,a.jsx)("button",{type:"button",onClick:t,className:"rounded-full bg-primary px-5 py-2 text-sm font-semibold text-white transition-all hover:brightness-110",children:"Aceptar"})]})]})})}function d(){let{consent:e,accept:t,reject:s}=n();return(0,a.jsxs)("div",{className:"my-6 rounded-xl border border-line bg-card p-5",children:[(0,a.jsxs)("p",{className:"text-sm text-fg/80",children:["Estado actual de tus cookies: ",(0,a.jsx)("strong",{children:"accepted"===e?"Aceptadas":"rejected"===e?"Rechazadas":"Sin elegir"})]}),(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:t,className:"rounded-full bg-primary px-5 py-2 text-sm font-semibold text-white transition-all hover:brightness-110",children:"Aceptar cookies"}),(0,a.jsx)("button",{type:"button",onClick:s,className:"rounded-full border border-line px-5 py-2 text-sm font-semibold text-fg/80 transition-colors hover:bg-fg/5",children:"Rechazar cookies"})]})]})}},3673:()=>{},4499:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,5853,23)),Promise.resolve().then(s.t.bind(s,8818,23)),Promise.resolve().then(s.t.bind(s,3673,23)),Promise.resolve().then(s.bind(s,2218))},5853:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},8818:e=>{e.exports={style:{fontFamily:"'Manrope', 'Manrope Fallback'",fontStyle:"normal"},className:"__className_73ee6c",variable:"__variable_73ee6c"}}},e=>{e.O(0,[741,441,255,358],()=>e(e.s=4499)),_N_E=e.O()}]);
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.