(function(e){"use strict";jQuery(document).ready(function(){var e=function(e){console.debug(e)};var t=function(e){if(typeof e==="undefined"||e==null||e==""||e=="null"||e=="undefined"){return true}return false};var o=function(e,t,i){const o=new Date;o.setTime(o.getTime()+i*24*60*60*1e3);let s="expires="+o.toUTCString();document.cookie=e+"="+t+";"+s+";path=/"};var i=function(e,t,i){let o=e+"=";let s=document.cookie.split(";");for(let t=0;t0){}else{return true}}return false}},methods:{hasData(){if(Object.keys(this.cookie_preferences).length>0){return true}return false},showConsent(){let e="";e+='";e+='
';e+='";e+="
";ElementPlus.ElNotification({title:this.label.cookie_title,dangerouslyUseHTMLString:true,message:e,position:"bottom-left",duration:4500*1e3,customClass:"cookie-consent"})},close(){this.consent_visible=false},accept(){if(this.hasData()){if(Object.keys(this.cookie_preferences).length>0){let i=[];Object.entries(this.cookie_preferences).forEach(([e,t])=>{i.push(t)})}o("cookieConsentPrefs",this.cookie_preferences,this.cookie_expiration)}else{if(Object.keys(this.preferences_data).length>0){let i=[];Object.entries(this.preferences_data).forEach(([e,t])=>{i.push(t.preferences)});o("cookieConsentPrefs",i,this.cookie_expiration)}}o("cookieConsent",true,this.cookie_expiration);this.consent_visible=false},decline(){e("decline");o("cookieConsent",false,this.cookie_expiration);this.consent_visible=false}},template:` `};const n=Vue.createApp({components:{"component-cookie-consent":c},created(){}});n.use(ElementPlus);const l=n.mount("#vue-cookie-consent")})})(jQuery);