import{_ as l}from"./pQrl-3lb.js";import{_ as u,l as d,m as _,w as k,d as h,f as a,j as m,t as r,e as f,p as C,af as $}from"./CbO2oY48.js";const g={name:"CookieConsent",data(){return{show:void 0,cookieName:"cookieconsent_status"}},computed:{cookie(){return!this.getCookie(this.cookieName)}},created(){setTimeout(()=>{this.show=this.cookie},3600)},methods:{dismiss(){this.show=!1,this.setCookie(this.cookieName,1,365,"","/")},getCookie(e){const s=`; ${document.cookie}`.split(`; ${e}=`);return s.length!==2?void 0:s.pop().split(";").shift()},setCookie(e,t,s,i,c){const o=new Date;o.setDate(o.getDate()+(s||365));const n=[`${e}=${t}`,`expires=${o.toUTCString()}`,`path=${c||"/"}`];i&&n.push(`domain=${i}`),document.cookie=n.join(";")}}},N={key:0,class:"cookie-consent",role:"dialog"},w={class:"cookie-consent-message"},x={class:"cookie-consent-compliance",type:"button"};function v(e,t,s,i,c,o){const n=l;return d(),_($,{name:"cookie-consent-transition"},{default:k(()=>[c.show?(d(),h("div",N,[a("span",w,[m(r(e.$t("cookies.consent"))+" ",1),f(n,{to:"/terms",class:"cookie-consent-link",role:"button"},{default:k(()=>[m(r(e.$t("cookies.privacy")),1)]),_:1})]),a("section",{onClick:t[0]||(t[0]=(...p)=>o.dismiss&&o.dismiss(...p))},[a("button",x,r(e.$t("cookies.accept")),1)])])):C("",!0)]),_:1})}const B=u(g,[["render",v],["__scopeId","data-v-bd1eead6"]]);export{B as default};