1import{d as f,l as _,r as v,o as B,w as g,c as d,e as u,s,t as k,h as y,i as I,x as E,f as b,A as w}from"./app-BQ-43nIL.js";import{_ as T}from"./dihk-button.vue_vue_type_script_setup_true_lang-CMVXMAoq.js";const P={class:"blocked-content"},S={key:0,class:"blocked-content-wrapper"},x={class:"blocked-content-inner"},F={class:"blocked-content-title u-hyphens-auto"},N={class:"blocked-content-subtitle u-hyphens-auto"},O={key:1,class:"content-wrapper"},L=f({__name:"blocked-content",props:{blockedContentTitle:{},blockedContentSubtitle:{},blockedContentButtonTitle:{},blockedContentButtonLabel:{},piwikProId:{},trackingEnabled:{type:Boolean}},setup(n){const i=n,c=_(),a=v(c.thirdPartiesConsent);function p(e){const o=`; ${document.cookie}`.split(`; ${e}=`);return o.length===2?o.pop().split(";").shift():null}function r(){const e=`ppms_privacy_${i.piwikProId}`,t=p(e);if(t)try{JSON.parse(decodeURIComponent(t)).consents?.user_feedback?.status===1&&c.setThirdPartiesConsent(!0)}catch(o){console.error("Error parsing the cookie:",o)}}function m(){const e=document.getElementById("ppms_cm_agree-to-all"),t=document.getElementById("ppms_cm_save-choices");e&&e.addEventListener("click",()=>{r()}),t&&t.addEventListener("click",()=>{r()})}function l(){const e=setInterval(()=>{const t=document.getElementById("ppms_cm_agree-to-all"),o=document.getElementById("ppms_cm_save-choices");t&&o&&(m(),clearInterval(e))},1e3)}function C(){ppms.cm.api("openConsentForm"),l()}return B(()=>{if(!i.trackingEnabled)c.setThirdPartiesConsent(!0),a.value=!0;else{const e=`ppms_privacy_${i.piwikProId}`,t=p(e);if(t)try{JSON.parse(decodeURIComponent(t)).consents?.user_feedback?.status===-1?l():r()}catch(o){console.error("Error parsing the cookie:",o)}else l()}}),g(()=>c.thirdPartiesConsent,e=>{a.value=e}),(e,t)=>(d(),u("div",P,[a.value?b("",!0):(d(),u("div",S,[s("div",x,[t[0]||(t[0]=s("svg",{class:"blocked-content-icon","aria-hidden":"true","data-e2e-test-id":"blocked-content-icon"},[s("use",{"xlink:href":"#blocked-content"})],-1)),s("span",F,k(n.blockedContentTitle),1),s("span",N,k(n.blockedContentSubtitle),1),y(T,{element:"button",text:n.blockedContentButtonTitle,title:n.blockedContentButtonLabel,class:"blocked_content_consent_button",onClick:C},{default:I(()=>[E(k(n.blockedContentButtonTitle),1)]),_:1},8,["text","title"])])])),a.value?(d(),u("div",O,[w(e.$slots,"default")])):b("",!0)]))}});export{L as default};
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.