From d242babed907ecc36546c2bae990ae47c293acdb Mon Sep 17 00:00:00 2001
From: "Felix A. Schultz"
Date: Sat, 11 Nov 2023 00:30:00 +0100
Subject: [PATCH] Fixed error with null iframe
---
cb.js | 9 ++++++++-
dev/cb.dev.js | 20 +++++++++++---------
2 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/cb.js b/cb.js
index dde6272..2f84894 100644
--- a/cb.js
+++ b/cb.js
@@ -1 +1,8 @@
-const pSBC=(e,t,n,i)=>{let o,a,s,l,r,c,d,g=parseInt,k=Math.round,u="string"==typeof n;return"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!=t[0]&&"#"!=t[0]||n&&!u?null:(this.pSBCr||(this.pSBCr=e=>{let t=e.length,n={};if(t>9){if([o,a,s,u]=e=e.split(","),t=e.length,t<3||t>4)return null;n.r=g("a"==o[3]?o.slice(5):o.slice(4)),n.g=g(a),n.b=g(s),n.a=u?parseFloat(u):-1}else{if(8==t||6==t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+e[4]:"")),e=g(e.slice(1),16),9==t||5==t?(n.r=e>>24&255,n.g=e>>16&255,n.b=e>>8&255,n.a=k((255&e)/.255)/1e3):(n.r=e>>16,n.g=e>>8&255,n.b=255&e,n.a=-1)}return n}),d=t.length>9,d=u?n.length>9||"c"==n&&!d:d,r=this.pSBCr(t),l=e<0,c=n&&"c"!=n?this.pSBCr(n):l?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},l=1-(e=l?-1*e:e),r&&c?(i?(o=k(l*r.r+e*c.r),a=k(l*r.g+e*c.g),s=k(l*r.b+e*c.b)):(o=k((l*r.r**2+e*c.r**2)**.5),a=k((l*r.g**2+e*c.g**2)**.5),s=k((l*r.b**2+e*c.b**2)**.5)),u=r.a,c=c.a,r=u>=0||c>=0,u=r?u<0?c:c<0?u:u*l+c*e:0,d?"rgb"+(r?"a(":"(")+o+","+a+","+s+(r?","+k(1e3*u)/1e3:"")+")":"#"+(4294967296+16777216*o+65536*a+256*s+(r?k(255*u):0)).toString(16).slice(1,r?void 0:-2)):null)};let message="",cookieBtn="";const banner=document.createElement("inta-consents-settings-btn"),bannerContent=document.createElement("button"),moreSettings=document.createElement("inta-consents-banner"),moreSettingsContent=document.createElement("section"),moreintHeader=document.createElement("intheader"),moreContentText=document.createElement("section"),moreFooter=document.createElement("footer"),intaconsents=document.createElement("intastellar-consents"),pluginSource=void 0===findScriptParameter("utm_source")?"Intastellar+Solutions+Cookiebanner":findScriptParameter("utm_source");window.platform=void 0===findScriptParameter("utm_source")?"Manual":findScriptParameter("utm_source");let intastellarCookieLanguageSettings="Cookie Indstillinger";"de"==intastellarCookieLanguage?intastellarCookieLanguageSettings="Cookie Einstellungen":"en"==intastellarCookieLanguage&&(intastellarCookieLanguageSettings="Cookie Settings"),moreSettings.setAttribute("class","intastellarCookieConstents"),moreSettingsContent.setAttribute("class","intastellarCookieConstents__content"),moreintHeader.setAttribute("class","intastellarCookieConstents__content-intHeader"),moreFooter.setAttribute("class","intastellarCookieConstents__content-footer"),moreContentText.setAttribute("class","intastellarCookieConstents__content-main");const intastellarCookieConstents__Container=document.createElement("article"),intastellarCookieButtons=document.createElement("section"),testSection=document.createElement("section");testSection.setAttribute("class","intastellarCookieConstents__contentC"),testSection.appendChild(moreintHeader),testSection.appendChild(moreContentText),moreSettingsContent.appendChild(intastellarCookieConstents__Container),intastellarCookieConstents__Container.appendChild(testSection),intastellarCookieConstents__Container.appendChild(intastellarCookieButtons),intastellarCookieConstents__Container.appendChild(moreFooter);const cookieSettings=document.createElement("article"),cookieSettingsContent=document.createElement("section");bannerContent.setAttribute("class","intastellarCookie-settingsContainer"),intastellarCookieButtons.setAttribute("class","intastellarCookie-settings__buttons"),bannerContent.setAttribute("title",intastellarCookieLanguageSettings),cookieSettings.setAttribute("class","intastellarCookie-settings__container"),banner.setAttribute("onclick","javascript:IntastellarCookieConsent.renew();");const arrange=void 0===window.INTA.settings||void 0===window.INTA.settings.arrange?"":window.INTA.settings.arrange;function setIntastellarPartnerDomain(){null!==window.INTA.settings.partnerDomain&&window.INTA.settings.partnerDomain.length>0&&window.INTA.settings.partnerDomain.forEach((function(e){const t=document.createElement("iframe");t.id="intastellarCrossSiteCheck",t.src="https://"+e+"?intastellarPartners="+btoa(JSON.stringify({int_staticsticCookies:intaCookieConsents?.staticsticCookies,int_FunctionalCookies:intaCookieConsents?.functionalCookies,int_hideCookieBannerName:getCookie(int_hideCookieBannerName),int_marketingCookies:intaCookieConsents?.advertisementCookies,uid:intaConsentsObjectVariable.uid}));const n=document.createElement("noscript"),i=document.createElement("script");i.async=!0,i.src="https://consent.intastellarsolutions.com/getPartner.js?v=1."+(new Date).getTime(),t.style.display="none",n.appendChild(t),window.location.host.includes(e)||document.body.appendChild(t)}))}"ltr"==arrange&&(bannerContent.classList.add("intastellarCookie-settingsContainer--otherSide"),cookieSettings.classList.add("intastellarCookie-settings__container--otherSide")),setIntastellarPartnerDomain();const instatellariframe=document.getElementById("intastellarCrossSiteCheck"),iframeDoc=instatellariframe.contentDocument||instatellariframe.contentWindow.document;"complete"==iframeDoc.readyState&&instatellariframe.contentWindow.addEventListener("load",(function(){console.log("iframe loaded")}));const messages={danish:"Ved at acceptere alle cookies understøtter du "+document.domain+" med at udvikle en bedre løsning til dig.
Vælg om du vil tillade kun de nødvendige cookies eller om du vil tillade alle cookies.",german:"Wenn Sie auf akzeptieren klicken, unterstützen Sie "+document.domain+" bei der Weiterentwicklung von unserer Webseite.
Wählen Sie zwischen alle Cookies akzeptieren oder Ablehnen.",english:"By accepting all cookies, you support "+document.domain+" in developing a better solution for you.
Select whether you want to allow only the necessary cookies or whether you want to allow all cookies."},messageWrapStart="
",messageWrapEnd="
",settingsMessagesLanguages={danish:`
Du bestemmer over dine data
\n
Vi og vores samarbejdspartnere bruger teknologier, herunder cookies, til at indsamle oplysninger om dig til forskellige formål, herunder:
\n \n
Funktionel
\n
Statistiske
\n
Marketing
\n \n
Ved at trykke på 'Accepter' giver du samtykke til alle disse formål. Du kan også vælge at tilkendegive, hvilke formål du vil give samtykke til ved at benytte checkboksene ud for formålet, og derefter trykke på 'Gem indstillinger'.\n Du kan til enhver tid trække dit samtykke tilbage ved at trykke på det lille ikon nederst i ${"ltr"==window.INTA.settings.arrange?"venstre":"højre"} hjørne af hjemmesiden.
\n
Du kan læse mere om vores brug af cookies og andre teknologier, samt om vores indsamling og behandling af personoplysninger ved at trykke på linket.
\n ${generatePolicyUrl("Vores privat og cookie politik")}\n `,german:`
Sie haben die Kontrolle über Ihre Daten
\n
Wir und unsere Geschäftspartner nutzen Technologien wie Cookies dazu, personenbezogene Informationen für verschiedene Zwecke zu sammeln, darunter:
\n \n
Funktionelle
\n
Statistike
\n
Werbung
\n \n
Wenn Sie auf „Akzeptieren“ klicken, erteilen Sie Ihre Einwilligung für alle diese Zwecke. Sie können auch entscheiden, welchen Zwecken Sie zustimmen, indem Sie das Kästchen neben dem Zweck anklicken und auf „Speichern“ klicken.
\n
Sie können Ihre Einwilligung jederzeit widerrufen, indem Sie auf das kleine Symbol unten in der ${"ltr"==window.INTA.settings.arrange?"linken":"rechten"} Ecke klicken.
\n ${generatePolicyUrl("Unsere Datenschutz Erklährung und Cookie politik")}\n `,english:`
You´re in control
\n
We and our business partners uses technologies, including cookies, to collect information about you for various purposes, including:
\n \n
Functional
\n
Statistical
\n
Advertisement
\n \n
By clicking 'Accept', you give your consent for all these purposes. You can also choose to specify the purposes you consent to by ticking the checkbox next to the purpose and clicking 'Save settings'.
\n
You may withdraw your consent at any time by clicking the small icon at the bottom ${"ltr"==window.INTA.settings.arrange?"left":"right"} corner of the website.
'+message+cookieBtn+poweredBy,cookieSettings.appendChild(cookieSettingsContent),window.INTA.settings.advanced&&banner.appendChild(cookieSettings),banner.setAttribute("class","intastellarCookie-settings"),bannerContent.innerHTML=''+IntastellarToolTip+" "+text,banner.appendChild(bannerContent),moreSettings.appendChild(moreSettingsContent),intaconsents.appendChild(banner),intaconsents.appendChild(moreSettings),null!=document.querySelector(".intastellarCCPAContainer")&&document.querySelector(".intastellarCCPAContainer").addEventListener("click",(function(){document.querySelector(".intastellarCCPApopup").classList.toggle("--active")})),IntastellarCookieConsent.inizilize(intaconsents),window.addEventListener("load",(function(){const e=location.host.split(".").reverse(),t=(encodeURI(e[1]+"."+e[0]),document.createElement("iframe"));if(t.name="intastellar-solutions-sharinglibrary-iframe",t.style.display="none",t.title="Intastellar Solutions cookie sharing library",t.src=intastellarCookieBannerRootDomain+"/cookieSharingIframe.html",document.body.appendChild(t),gtag("set",{user_id:getCookie(int_hideCookieBannerName)?JSON.parse(decodeIntaConsentsObject(getCookie(int_hideCookieBannerName)?.split(".")[2])).uid:intaConsentsObjectVariable.uid}),null!=window.INT&&null!=window.INT.policy_link&&(window.INTA.policy_link=window.INT.policy_link),null!=window.INT&&null!=window.INT.settings&&(window.INTA.settings=window.INT.settings),!isValidPolicyLink()){checkCookieStatus();const e=document.createElement("div"),t=document.createElement("div");throw e.className="intastellarErrorMessage",t.className="intastellarErrorMessage-content",t.innerHTML="Intastellar Solutions SDK: Please add a valid privacy & cookie policy to the banner. Read more at https://developers.intastellarsolutions.com/gdpr-cookiebanner/docs/add-privacy-policy",e.appendChild(t),new IntastellarSolutionsSDK("Please add a valid privacy & cookie policy to the banner. Read more at https://developers.intastellarsolutions.com/gdpr-cookiebanner/docs/add-privacy-policy")}{document.querySelectorAll(".intaCookieListOverview-vendor").forEach(((e,t)=>{""!=window.INTA.settings.company&&null!=window.INTA.settings.company&&e.innerText==window.location.host&&(e.innerText=window.INTA.settings.company)})),document.querySelectorAll(".intCookie_ConsentLogo").forEach((e=>{e.src=window.INTA.settings.logo})),document.querySelectorAll(".intLearnMoreBtn").forEach((e=>{e.addEventListener("click",(function(e){learnMore(this)}))})),window.INTA.settings?.partnerDomain?.forEach((e=>{intaConsentsObjectVariable.sharingDomains.push(e)})),document.querySelectorAll(".intaExpandCookieList").forEach(((e,t)=>{e.addEventListener("click",(()=>{document.querySelectorAll(".intastellar__arrow")[t].classList.toggle("open"),document.querySelectorAll(".intaCookieListOverview")[t].classList.toggle("view")}))}));let e=document.querySelector(".intastellarCookie-settings__container");null!=document.querySelector(".intastellarCookieBanner")?getCookie(int_hideCookieBannerName).split(".")[0].indexOf("1")>-1?document.querySelector(".intastellarCookieBanner").style.display="none":document.querySelector(".intastellarCookieBanner").style.display="":getCookie(int_hideCookieBannerName).split(".")[0].indexOf("1")>-1&&(!1===window.INTA.settings.advanced||""===window.INTA.settings.advanced||void 0===window.INTA.settings.advanced?(document.querySelector("html").classList.toggle("noScroll"),null!=document.querySelector(".intastellarCookieConstents")&&document.querySelector(".intastellarCookieConstents").classList.toggle("--active")):e.classList.toggle("intastellarCookie-settings__container--expand")),document.querySelectorAll(".intastellarCookieBanner__settings").forEach((e=>{e.addEventListener("click",(()=>{let e=document.querySelector(".intastellarCookieConstents");e?.classList.contains("--active")||(e?.classList.add("--active"),document.querySelector(".intastellarCookie-settings__container").classList.remove("intastellarCookie-settings__container--expand"))}))}));const t=document.querySelector("#functional"),n=document.querySelector("#statics"),i=document.querySelector("#marketing"),o={};if(null!=intastellarCookieLanguage&&"en"===intastellarCookieLanguage||"en-GB"===intastellarCookieLanguage||"en-US"===intastellarCookieLanguage?(o.necessaryCookiesText="Decline All",o.saveSettingsText="Save settings"):null!=intastellarCookieLanguage&&"de-DE"===intastellarCookieLanguage||"de"===intastellarCookieLanguage?(o.necessaryCookiesText="Ablehnen",o.saveSettingsText="Speichern"):(null!=intastellarCookieLanguage&&"da"===intastellarCookieLanguage||intastellarCookieLanguage,o.necessaryCookiesText="Afvis",o.saveSettingsText="Gem indstillinger"),t?.addEventListener("change",(()=>{document.querySelector(".intastellarCookie-settings__btn.intastellarCookieBanner__settings.--save").innerText=!1===t?.checked&&!1===n?.checked&&!1===i?.checked?o.necessaryCookiesText:o.saveSettingsText})),n?.addEventListener("change",(()=>{document.querySelector(".intastellarCookie-settings__btn.intastellarCookieBanner__settings.--save").innerText=!1===t?.checked&&!1===n?.checked&&!1===i?.checked?o.necessaryCookiesText:o.saveSettingsText})),i?.addEventListener("change",(()=>{document.querySelector(".intastellarCookie-settings__btn.intastellarCookieBanner__settings.--save").innerText=!1===t?.checked&&!1===n?.checked&&!1===i?.checked?o.necessaryCookiesText:o.saveSettingsText})),document.querySelector(".intastellarCookie-settings__btn.intastellarCookieBanner__settings.--save").innerText=!0===t?.checked&&!0===n?.checked&&!0===i?.checked||!0===t?.checked||!0===n?.checked||!0===i?.checked?o.saveSettingsText:o.necessaryCookiesText,document.querySelector(".--save").addEventListener("click",(()=>{const e=[];if(t?.checked)gtag("consent","update",{functionality_storage:"granted"}),e.push("functionalCookies");else{gtag("consent","update",{functionality_storage:"denied"});const t=e.indexOf("functionalCookies");t>-1&&e.splice(t,1)}if(n?.checked)gtag("consent","update",{analytics_storage:"granted",ad_storage:"granted"}),e.push("staticsticCookies");else{gtag("consent","update",{analytics_storage:"denied"});const t=e.indexOf("staticsticCookies");t>-1&&e.splice(t,1)}if(i?.checked)gtag("consent","update",{ad_storage:"granted",personalization_storage:"granted",ads_data_redaction:"granted"}),e.push("advertisementCookies");else{gtag("consent","update",{ad_storage:"denied",personalization_storage:"denied",ads_data_redaction:"denied"});const t=e.indexOf("advertisementCookies");t>-1&&e.splice(t,1)}saveINTCookieSettings("changePermission",e)})),void 0!==window.INTA.settings.ccpa&&window.INTA.settings.ccpa.on){document.querySelector(".intastellarCCPA__popupClose").addEventListener("click",(()=>{document.querySelector(".intastellarCCPApopup").classList.remove("--active")}))}if(null==button__acceptAll&&null==button__acceptAll||button__acceptAll.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:"checked",functionalCookies:"checked",advertisementCookies:"checked"},intaConsentsObjectVariable.time=(new Date).getTime(),document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.cookie="_vis_opt=0; expires="+new Date((new Date).getTime()+864e7).toGMTString()+"; path=/; "+intCookieDomain,document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*"),document.querySelector("html").classList.toggle("noScroll"),document.querySelector(".intastellarCookieConstents").classList.toggle("--active"),gtag("consent","update",{ad_storage:"granted",personalization_storage:"granted",analytics_storage:"granted",functionality_storage:"granted",ads_data_redaction:"granted",url_passthrough:!0}),dataLayer.push({event:"cookie_consent_update"}),updateConsents("all")})),null==button__acceptAll&&null==button__acceptAll||button__acceptAll.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:"checked",functionalCookies:"checked",advertisementCookies:"checked"},intaConsentsObjectVariable.time=(new Date).getTime(),document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.cookie="_vis_opt=1; expires="+new Date((new Date).getTime()+864e7).toGMTString()+"; path=/; "+intCookieDomain;for(var e=document.getElementsByTagName("script"),t=0;t{e.addEventListener("click",(function(){"intMarketingCookies"==this.getAttribute("data-type")?document.querySelector("#marketing").checked=!0:"intFunctionalCookies"==this.getAttribute("data-type")&&(document.querySelector("#functional").checked=!0),saveINTCookieSettings("changePermission",this.getAttribute("data-type")),document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*")}))})),!1===window.INTA.settings.advanced||""===window.INTA.settings.advanced||void 0===window.INTA.settings.advanced?e.forEach((e=>{e.addEventListener("click",(function(){let e=document.querySelector(".intastellarCookie-settings__container");document.querySelector("html").classList.toggle("noScroll"),e.classList.toggle("intastellarCookie-settings__container--expand")}))})):e.forEach((e=>{e.addEventListener("click",(function(){document.querySelector(".intastellarCookieConstents").classList.toggle("--active")}))})),window.INTA.settings.advanced&&i.addEventListener("click",(function(){document.querySelector(".intastellarCookie-settings__container").classList.toggle("intastellarCookie-settings__container--expand")})),t.forEach((e=>{e.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:!1,functionalCookies:!1,advertisementCookies:!1},intaConsentsObjectVariable.time=(new Date).getTime();document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.cookie="_vis_opt=1; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.querySelector("html").classList.toggle("noScroll"),document.querySelector(".intastellarCookieConstents").classList.toggle("--active"),document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*"),gtag("consent","update",{ad_storage:"denied",personalization_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",ads_data_redaction:"denied",url_passthrough:!0}),dataLayer.push({event:"cookie_consent_update"}),updateConsents("denied"),document.querySelector("#marketing").checked=!1,document.querySelector("#statics").checked=!1,document.querySelector("#functional").checked=!1}))})),n.forEach((e=>{e.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:"checked",functionalCookies:"checked",advertisementCookies:"checked"},intaConsentsObjectVariable.time=(new Date).getTime();document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.cookie="_vis_opt=1; expires="+cookieLifeTime+"; path=/; "+intCookieDomain;for(var e=document.getElementsByTagName("script"),t=0;t{e.addEventListener("click",(function(){"intMarketingCookies"==this.getAttribute("data-type")?document.querySelector("#marketing").checked=!0:"intFunctionalCookies"==this.getAttribute("data-type")&&(document.querySelector("#functional").checked=!0),saveINTCookieSettings("changePermission",this.getAttribute("data-type")),document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*")}))})),null!=document.querySelector(".intastellarCookieBanner")&&null!=document.querySelector(".intastellarCookieBanner")||(!1===window.INTA.settings.advanced||""===window.INTA.settings.advanced||void 0===window.INTA.settings.advanced?(document.querySelector("html").classList.toggle("noScroll"),document.querySelector(".intastellarCookieConstents").classList.toggle("--active")):s.classList.toggle("intastellarCookie-settings__container--expand")),window.INTA.settings.advanced?(e.forEach((e=>{e.addEventListener("click",(function(){let e=document.querySelector(".intastellarCookie-settings__container");document.querySelector("html").classList.toggle("noScroll"),e.classList.toggle("intastellarCookie-settings__container--expand")}))})),t.forEach((e=>{e.addEventListener("click",(function(){document.querySelector(".intastellarCookie-settings__container").classList.toggle("intastellarCookie-settings__container--expand")}))}))):e.forEach((e=>{e.addEventListener("click",(function(){let e=document.querySelector(".intastellarCookieConstents");document.querySelector("html").classList.toggle("noScroll"),e.classList.add("--active")}))})),window.INTA.settings.advanced&&a.addEventListener("click",(function(){document.querySelector(".intastellarCookie-settings__container").classList.toggle("intastellarCookie-settings__container--expand")})),n.forEach((e=>{e.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:!1,functionalCookies:!1,advertisementCookies:!1},intaConsentsObjectVariable.time=(new Date).getTime();document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/;"+intCookieDomain,document.cookie="_vis_opt=1; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.querySelector("html").classList.toggle("noScroll"),document.querySelector(".intastellarCookieConstents").classList.toggle("--active"),document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*"),document.querySelector("#marketing").checked=!1,document.querySelector("#statics").checked=!1,document.querySelector("#functional").checked=!1,gtag("consent","update",{ad_storage:"denied",personalization_storage:"denied",analytics_storage:"denied",functionality_storage:"denied",ads_data_redaction:"denied",url_passthrough:!0}),dataLayer.push({event:"cookie_consent_update"})}))})),i.forEach((e=>{e.addEventListener("click",(function(){intaConsentsObjectVariable.consents={staticsticCookies:"checked",functionalCookies:"checked",advertisementCookies:"checked"},intaConsentsObjectVariable.time=(new Date).getTime(),document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,document.cookie="_vis_opt=1; expires="+cookieLifeTime+"; path=/; "+intCookieDomain;for(var e=document.getElementsByTagName("script"),t=0;t{if("ready"==e.data&&document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage("you´re open to share with me","*"),e.data){const t=e.data;console.log(t)}}))}}));let intastellarSolutionsPrivacyPolicy="https://www.intastellarsolutions.com/about/legal/privacy/gdpr-cookiebanner/embedded/privacy-policy";const xhr=new XMLHttpRequest;function showPrivacy(){document.querySelector(".intLearnMoreBtn").style.display="none",document.querySelector(".intastellarCookieConstents__content").style.scrollPaddingTop="100px";const e=document.querySelector(".intastellar_privacyPolicy");e.style.height="100%",e.style.background="#ffff",e.style.color="#000",e.style.borderBottom="1px solid #c4c4c4",e.style.textAlign="left",e.innerHTML=`\n
\n \n ${intastellarSolutionsPrivacyPolicy}\n
\n `,e.scrollIntoView({behavior:"smooth",block:"start"})}function hidePrivacy(){document.querySelector(".intLearnMoreBtn").style.display="block";document.querySelector(".intastellar_privacyPolicy").style.height="0"}function checkIfIncluded(e){for(var t=document.getElementsByTagName("link"),n=0;n0&&void 0!==window.INTA.settings.ccpa.url)}function generatePolicyUrl(e){let t="";return"object"==typeof window.INTA.policy_link?t=""+e+"":"string"==typeof window.INTA.policy_link&&(t=""+e+""),t}function generateCookieButtons(e,t,n){return'"}function generateCookieSettingsButton(e,t){return'"}function createCCPAPolicyLink(e){let t="";return t="Read more about our ccpa",t}function isValidPolicyLink(){return!!("string"==typeof window.INTA.policy_link&&isURL(window.INTA.policy_link)&&window.INTA.policy_link.length>0)||!!("object"==typeof window.INTA.policy_link&&isURL(window.INTA.policy_link.url)&&window.INTA.policy_link.url.length>0&&void 0!==window.INTA.policy_link.url)}function learnMore(e){document.querySelector(".intReadMore").classList.toggle("view"),document.querySelector(".intastellarCookieConstents__content").style.scrollPaddingTop="140px",document.querySelector(".intReadMore").classList.contains("view")?("da-DK"==intastellarCookieLanguage||"da"==intastellarCookieLanguage||"dk"==intastellarCookieLanguage?e.innerHTML="Skjul detaljer":null!=intastellarCookieLanguage&&"en"===intastellarCookieLanguage||"en-GB"===intastellarCookieLanguage||"en-US"===intastellarCookieLanguage?e.innerHTML="Hide details":(null!=intastellarCookieLanguage&&"de"===intastellarCookieLanguage||"de-DE"===intastellarCookieLanguage)&&(e.innerHTML="Details ausblenden"),document.querySelector(".intReadMore").scrollIntoView({behavior:"smooth",block:"start"})):("da-DK"==intastellarCookieLanguage||"da"==intastellarCookieLanguage||"dk"==intastellarCookieLanguage?e.innerHTML="Vis details":null!=intastellarCookieLanguage&&"en"===intastellarCookieLanguage||"en-GB"===intastellarCookieLanguage||"en-US"===intastellarCookieLanguage?e.innerHTML="Show details":(null!=intastellarCookieLanguage&&"de"===intastellarCookieLanguage||"de-DE"===intastellarCookieLanguage)&&(e.innerHTML="Details einblenden"),document.querySelector(".intastellarCookieConstents__contentC").scrollIntoView({behavior:"smooth",block:"start"}))}function updateConsents(e,t=null){if("all"==e){let e=[...inta_statisticCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1),t=[...inta_marketingCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1),n=[...inta_functionalCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);int__cookiesToKeep.push.apply(int__cookiesToKeep,e),int__cookiesToKeep.push.apply(int__cookiesToKeep,t),int__cookiesToKeep.push.apply(int__cookiesToKeep,n),deleteAllCookies()}if(t.length>0&&t.forEach((e=>{if("staticsticCookies"==e){let e=[...inta_statisticCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);-1==int__cookiesToKeep.indexOf(e)&&int__cookiesToKeep.push.apply(int__cookiesToKeep,e),deleteAllCookies()}else if("advertisementCookies"==e){let e=[...inta_marketingCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);-1==int__cookiesToKeep.indexOf(e)&&int__cookiesToKeep.push.apply(int__cookiesToKeep,e),deleteAllCookies()}else if("functionalCookies"==e){let e=[...inta_functionalCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);-1==int__cookiesToKeep.indexOf(e)&&int__cookiesToKeep.push.apply(int__cookiesToKeep,e),deleteAllCookies()}})),"checked"===intaCookieConsents?.staticsticCookies){let e=[...inta_statisticCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);int__cookiesToKeep.push.apply(int__cookiesToKeep,e),deleteAllCookies()}if("checked"===intaCookieConsents?.functionalCookies){const e=document.querySelectorAll("inta-consents[data-src]");document.querySelectorAll("script[data-functional]").forEach((e=>{e.setAttribute("type","text/javascript")}));let t=[...inta_functionalCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);int__cookiesToKeep.push.apply(int__cookiesToKeep,t),deleteAllCookies(),e.forEach((e=>{const t=document.createElement("iframe");t.border="0",t.frameBorder="0",e.getAttribute("data-class")?t.setAttribute("class",e.getAttribute("data-class")):(t.width="560",t.height="315"),"undefined"!==e.getAttribute("data-src")&&(t.src=e.getAttribute("data-src"),e.parentElement.replaceChild(t,e))}))}if("checked"===intaCookieConsents?.advertisementCookies){const e=document.querySelectorAll("inta-consents-iframe[data-src]"),t=document.querySelectorAll("script[data-marketing]");let n=[...inta_marketingCookieList.map((e=>e.cookies.map((e=>null!=e.cookie?e.cookie:""))))].flat(1);int__cookiesToKeep.push.apply(int__cookiesToKeep,n),deleteAllCookies(),fbq("consent","grant"),t.forEach((e=>{e.setAttribute("type","text/javascript")})),e.forEach((e=>{const t=document.createElement("iframe");t.border="0",t.frameBorder="0",t.setAttribute("inta-yt-placeholder-img",e?.querySelector("inta-consents-bg")?.getAttribute("inta-bg-img")),(e.getAttribute("data-src").indexOf("youtube")>-1||e.getAttribute("data-src").indexOf("youtu.be")>-1)&&(t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t.title="YouTube video player"),e.getAttribute("data-class")?t.setAttribute("class",e.getAttribute("data-class")):(t.width="560",t.height="315"),t.src=e.getAttribute("data-src"),e.parentElement.replaceChild(t,e)}))}}function saveINTCookieSettings(e,t=null){document.querySelector("html").classList.remove("noScroll"),document.querySelector(".intastellarCookieConstents").classList.remove("--active");const n=document.querySelector("#functional"),i=document.querySelector("#statics"),o=document.querySelector("#marketing");i?.checked?gtag("consent","update",{analytics_storage:"granted",ad_storage:"granted"}):gtag("consent","update",{analytics_storage:"denied"}),dataLayer.push({event:"cookie_consent_update"}),intaConsentsObjectVariable.consents={staticsticCookies:!!i?.checked&&"checked",functionalCookies:!!n?.checked&&"checked",advertisementCookies:!!o?.checked&&"checked"},intaConsentsObjectVariable.time=(new Date).getTime(),document.cookie=int_hideCookieBannerName+"=__inta1."+encodeIntaConsentsObject(JSON.stringify(intaConsentsObjectVariable),randomIntFromInterval(20,34))+"; expires="+cookieLifeTime+"; path=/; "+intCookieDomain,updateConsents(e,t),document.querySelector("[name=intastellar-solutions-sharinglibrary-iframe]").contentWindow.postMessage(JSON.stringify(intaConsentsObjectVariable),"*")}xhr.onload=function(){intastellarSolutionsPrivacyPolicy="loading...",200===this.status&&(intastellarSolutionsPrivacyPolicy=this.responseText)},xhr.open("GET","https://www.intastellarsolutions.com/about/legal/privacy/gdpr-cookiebanner/embedded/privacy-policy?lang="+(void 0===window.INTA.settings||"auto"===window.INTA.settings.lang||""===window.INTA.settings.lang?document.querySelector("html").getAttribute("lang"):"german"==window.INTA.settings.language?"de":"danish"==window.INTA.settings.language?"da":"english"==window.INTA.settings.language?"en":document.querySelector("html").getAttribute("lang"))+"&v="+(new Date).getTime()),xhr.send();
\ No newline at end of file
+/*
+ * GDPR Cookie banner by Intastellar Solutions, International
+ * intastellarsolutions.com/gdpr-cookiebanner
+ * consents.cdn.intastellarsolutions.com/gdpr.js
+ * @copy 2022-2023 Intastellar Solutions, International
+ *
+*/
+const pSBC=(e,t,n,i)=>{let o,a,s,l,r,c,d,g=parseInt,k=Math.round,u="string"==typeof n;return"number"!=typeof e||e<-1||e>1||"string"!=typeof t||"r"!=t[0]&&"#"!=t[0]||n&&!u?null:(this.pSBCr||(this.pSBCr=e=>{let t=e.length,n={};if(t>9){if([o,a,s,u]=e=e.split(","),t=e.length,t<3||t>4)return null;n.r=g("a"==o[3]?o.slice(5):o.slice(4)),n.g=g(a),n.b=g(s),n.a=u?parseFloat(u):-1}else{if(8==t||6==t||t<4)return null;t<6&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(t>4?e[4]+e[4]:"")),e=g(e.slice(1),16),9==t||5==t?(n.r=e>>24&255,n.g=e>>16&255,n.b=e>>8&255,n.a=k((255&e)/.255)/1e3):(n.r=e>>16,n.g=e>>8&255,n.b=255&e,n.a=-1)}return n}),d=t.length>9,d=u?n.length>9||"c"==n&&!d:d,r=this.pSBCr(t),l=e<0,c=n&&"c"!=n?this.pSBCr(n):l?{r:0,g:0,b:0,a:-1}:{r:255,g:255,b:255,a:-1},l=1-(e=l?-1*e:e),r&&c?(i?(o=k(l*r.r+e*c.r),a=k(l*r.g+e*c.g),s=k(l*r.b+e*c.b)):(o=k((l*r.r**2+e*c.r**2)**.5),a=k((l*r.g**2+e*c.g**2)**.5),s=k((l*r.b**2+e*c.b**2)**.5)),u=r.a,c=c.a,r=u>=0||c>=0,u=r?u<0?c:c<0?u:u*l+c*e:0,d?"rgb"+(r?"a(":"(")+o+","+a+","+s+(r?","+k(1e3*u)/1e3:"")+")":"#"+(4294967296+16777216*o+65536*a+256*s+(r?k(255*u):0)).toString(16).slice(1,r?void 0:-2)):null)};let message="",cookieBtn="";const banner=document.createElement("inta-consents-settings-btn"),bannerContent=document.createElement("button"),moreSettings=document.createElement("inta-consents-banner"),moreSettingsContent=document.createElement("section"),moreintHeader=document.createElement("intheader"),moreContentText=document.createElement("section"),moreFooter=document.createElement("footer"),intaconsents=document.createElement("intastellar-consents"),pluginSource=void 0===findScriptParameter("utm_source")?"Intastellar+Solutions+Cookiebanner":findScriptParameter("utm_source");window.platform=void 0===findScriptParameter("utm_source")?"Manual":findScriptParameter("utm_source");let intastellarCookieLanguageSettings="Cookie Indstillinger";"de"==intastellarCookieLanguage?intastellarCookieLanguageSettings="Cookie Einstellungen":"en"==intastellarCookieLanguage&&(intastellarCookieLanguageSettings="Cookie Settings"),moreSettings.setAttribute("class","intastellarCookieConstents"),moreSettingsContent.setAttribute("class","intastellarCookieConstents__content"),moreintHeader.setAttribute("class","intastellarCookieConstents__content-intHeader"),moreFooter.setAttribute("class","intastellarCookieConstents__content-footer"),moreContentText.setAttribute("class","intastellarCookieConstents__content-main");const intastellarCookieConstents__Container=document.createElement("article"),intastellarCookieButtons=document.createElement("section"),testSection=document.createElement("section");testSection.setAttribute("class","intastellarCookieConstents__contentC"),testSection.appendChild(moreintHeader),testSection.appendChild(moreContentText),moreSettingsContent.appendChild(intastellarCookieConstents__Container),intastellarCookieConstents__Container.appendChild(testSection),intastellarCookieConstents__Container.appendChild(intastellarCookieButtons),intastellarCookieConstents__Container.appendChild(moreFooter);const cookieSettings=document.createElement("article"),cookieSettingsContent=document.createElement("section");bannerContent.setAttribute("class","intastellarCookie-settingsContainer"),intastellarCookieButtons.setAttribute("class","intastellarCookie-settings__buttons"),bannerContent.setAttribute("title",intastellarCookieLanguageSettings),cookieSettings.setAttribute("class","intastellarCookie-settings__container"),banner.setAttribute("onclick","javascript:IntastellarCookieConsent.renew();");const arrange=void 0===window.INTA.settings||void 0===window.INTA.settings.arrange?"":window.INTA.settings.arrange;function setIntastellarPartnerDomain(){null!==window.INTA.settings.partnerDomain&&window.INTA.settings.partnerDomain.length>0&&window.INTA.settings.partnerDomain.forEach((function(e){const t=document.createElement("iframe");t.id="intastellarCrossSiteCheck",t.src="https://"+e+"?intastellarPartners="+btoa(JSON.stringify({int_staticsticCookies:intaCookieConsents?.staticsticCookies,int_FunctionalCookies:intaCookieConsents?.functionalCookies,int_hideCookieBannerName:getCookie(int_hideCookieBannerName),int_marketingCookies:intaCookieConsents?.advertisementCookies,uid:intaConsentsObjectVariable.uid}));const n=document.createElement("noscript"),i=document.createElement("script");i.async=!0,i.src="https://consent.intastellarsolutions.com/getPartner.js?v=1."+(new Date).getTime(),t.style.display="none",n.appendChild(t),window.location.host.includes(e)||document.body.appendChild(t)}))}if("ltr"==arrange&&(bannerContent.classList.add("intastellarCookie-settingsContainer--otherSide"),cookieSettings.classList.add("intastellarCookie-settings__container--otherSide")),setIntastellarPartnerDomain(),null!=document.getElementById("intastellarCrossSiteCheck")){const e=document.getElementById("intastellarCrossSiteCheck");"complete"==(e.contentDocument||e.contentWindow.document).readyState&&e.contentWindow.addEventListener("load",(function(){console.log("iframe loaded")}))}const messages={danish:"Ved at acceptere alle cookies understøtter du "+document.domain+" med at udvikle en bedre løsning til dig.
Vælg om du vil tillade kun de nødvendige cookies eller om du vil tillade alle cookies.",german:"Wenn Sie auf akzeptieren klicken, unterstützen Sie "+document.domain+" bei der Weiterentwicklung von unserer Webseite.
Wählen Sie zwischen alle Cookies akzeptieren oder Ablehnen.",english:"By accepting all cookies, you support "+document.domain+" in developing a better solution for you.
Select whether you want to allow only the necessary cookies or whether you want to allow all cookies."},messageWrapStart="
",messageWrapEnd="
",settingsMessagesLanguages={danish:`
Du bestemmer over dine data
\n
Vi og vores samarbejdspartnere bruger teknologier, herunder cookies, til at indsamle oplysninger om dig til forskellige formål, herunder:
\n \n
Funktionel
\n
Statistiske
\n
Marketing
\n \n
Ved at trykke på 'Accepter' giver du samtykke til alle disse formål. Du kan også vælge at tilkendegive, hvilke formål du vil give samtykke til ved at benytte checkboksene ud for formålet, og derefter trykke på 'Gem indstillinger'.\n Du kan til enhver tid trække dit samtykke tilbage ved at trykke på det lille ikon nederst i ${"ltr"==window.INTA.settings.arrange?"venstre":"højre"} hjørne af hjemmesiden.
\n
Du kan læse mere om vores brug af cookies og andre teknologier, samt om vores indsamling og behandling af personoplysninger ved at trykke på linket.
\n ${generatePolicyUrl("Vores privat og cookie politik")}\n `,german:`
Sie haben die Kontrolle über Ihre Daten
\n
Wir und unsere Geschäftspartner nutzen Technologien wie Cookies dazu, personenbezogene Informationen für verschiedene Zwecke zu sammeln, darunter:
\n \n
Funktionelle
\n
Statistike
\n
Werbung
\n \n
Wenn Sie auf „Akzeptieren“ klicken, erteilen Sie Ihre Einwilligung für alle diese Zwecke. Sie können auch entscheiden, welchen Zwecken Sie zustimmen, indem Sie das Kästchen neben dem Zweck anklicken und auf „Speichern“ klicken.
\n
Sie können Ihre Einwilligung jederzeit widerrufen, indem Sie auf das kleine Symbol unten in der ${"ltr"==window.INTA.settings.arrange?"linken":"rechten"} Ecke klicken.
\n ${generatePolicyUrl("Unsere Datenschutz Erklährung und Cookie politik")}\n `,english:`
You´re in control
\n
We and our business partners uses technologies, including cookies, to collect information about you for various purposes, including:
\n \n
Functional
\n
Statistical
\n
Advertisement
\n \n
By clicking 'Accept', you give your consent for all these purposes. You can also choose to specify the purposes you consent to by ticking the checkbox next to the purpose and clicking 'Save settings'.
\n
You may withdraw your consent at any time by clicking the small icon at the bottom ${"ltr"==window.INTA.settings.arrange?"left":"right"} corner of the website.