1/* 2MIT License 3 4"PD Cookie Consent" v1.5.4 5Copyright (c) 2020 PRIVACY DRIVER SL 6 7Permission is hereby granted, free of charge, to any person obtaining a copy 8of this software and associated documentation files (the "Software"), to deal 9in the Software without restriction, including without limitation the rights 10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11copies of the Software, and to permit persons to whom the Software is 12furnished to do so, subject to the following conditions: 13 14The above copyright notice and this permission notice shall be included in all 15copies or substantial portions of the Software. 16 17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23SOFTWARE. 24*/ 25(()=>{"use strict";var e,o={640:()=>{function e(o){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(o)}function o(o,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,(i=r.key,a=void 0,a=function(o,t){if("object"!==e(o)||null===o)return o;var n=o[Symbol.toPrimitive];if(void 0!==n){var r=n.call(o,t||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(i,"string"),"symbol"===e(a)?a:String(a)),r)}var i,a}var t=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"baptize",value:function(e){var o=e;return e.includes("facebook")?o="Facebook":e.includes("linkedin")?o="Linkedin":e.includes("twitter")?o="Twitter":e.includes("youtube")||e.includes("ytimg")?o="YouTube":e.includes("vimeo")?o="Vimeo":e.includes("analytics")||e.includes("googletagmanager")||e.includes("urchin")?o="Google Analytics":e.includes("adwords")||e.includes("doubleclick")||e.includes("googleadservices")||e.includes("googlesyndication")||e.includes("googletagservices")||e.includes("googletraveladservices")?o="Google Ads":e.includes("google.com/maps")||e.includes("maps.google.com")||e.includes("maps.googleapis")?o="Google Maps":e.includes("recaptcha")?o="Google reCAPTCHA":(e.includes("googleusercontent")||e.includes("gstatic")&&!e.includes("gstatic.com/recaptcha"))&&(o="Google"),o}}],(n=null)&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,o){for(var t=0;t<o.length;t++){var r=o[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,a=void 0,a=function(e,o){if("object"!==n(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,o||"default");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(i,"string"),"symbol"===n(a)?a:String(a)),r)}var i,a}var i=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"allowedLang",value:function(e){var o=!1;switch(e){case"ca":case"de":case"en":case"es":case"eu":case"fr":case"gl":case"it":case"pt":case"pt-br":o=!0;break;default:o=!1}return o}},{key:"getLang",value:function(){var e=k.getValue(),o=document.documentElement.lang,t="",n="";switch(o.includes("-")&&(o=o.split("-")[0]),t=e.config.hasOwnProperty("defaultLang")?e.config.defaultLang:"es",o){case"ca":case"de":case"en":case"es":case"eu":case"fr":case"gl":case"it":case"pt":case"pt-br":n=o;break;default:n=t}return n}},{key:"getTexts",value:function(){var e=this.getLang();return this.texts()[e]}},{key:"texts",value:function(){return{ca:{modal:{title:"Consentiment de Cookies",info:{p1:"\nUtilitzem cookies pròpies i de tercers per a analitzar l'ús del lloc web i/o mostrar-te publicitat relacionada amb les teves preferències sobre la base d'un perfil elaborat a partir dels teus hà bits de navegació (per exemple, pà gines visitades).",p2:{a:"Per a més informació consulti la",b:"polÃtica de cookies"},p3:'Pot acceptar totes les cookies prement el botó "Acceptar" o configurar-les o rebutjar-ne lâús prement el botó "Configurar".',p4:'Pot acceptar totes les cookies prement el botó "Acceptar", rebutjar-ne lâús prement el botó "Rebutjar" i configurar-les prement el botó "Configurar".'},services:{new:"nou",ownSwitch:"No precisen consentiment",ownDescription:"Cookies tècniques i funcionals"},btns:{accept:"Acceptar",reject:"Rebutjar",config:"Configurar",acceptAll:"Acceptar totes",denyAll:"Rebutjar totes",save:"Desar configuració",return:"Tornar enrere"}},content:{a:"S'ha amagat contingut perquè té les cookies bloquejades.",b:"Permetre cookies de:"}},de:{modal:{title:"Cookie-Einwilligung",info:{p1:"Wir verwenden eigene Cookies und Cookies von Drittanbietern, um die Nutzung der Website zu analysieren und/oder Ihnen auf der Grundlage eines Profils, das aus Ihren
25Surfgewohnheiten (z. B. besuchte Seiten) erstellt wird, Werbung im Zusammenhang mit Ihren Präferenzen anzuzeigen.",p2:{a:"Weitere Informationen finden Sie unter",b:"Cookie-Richtlinie"},p3:"Sie können alle Cookies durch Drücken der Schaltfläche âAkzeptierenâ akzeptieren oder deren Verwendung durch Drücken der Schaltfläche âKonfigurierenâ konfigurieren oder ablehnen.",p4:"Sie können alle Cookies akzeptieren, indem Sie auf die Schaltfläche âAkzeptierenâ klicken, ihre Verwendung ablehnen, indem Sie auf die Schaltfläche âAblehnenâ klicken, und sie konfigurieren, indem Sie auf die Schaltfläche âKonfigurierenâ klicken."},services:{new:"neu",ownSwitch:"Sie bedürfen keiner Zustimmung",ownDescription:"Technische und funktionale Cookies"},btns:{accept:"Akzeptieren",reject:"Ablehnen",config:"Konfigurieren",acceptAll:"Alle akzeptieren",denyAll:"Alles ablehnen",save:"Einstellungen speichern",return:"Geh zurück"}},content:{a:"Der Inhalt wurde ausgeblendet, weil Cookies blockiert sind.",b:"Cookies zulassen von:"}},en:{modal:{title:"Cookie Consent",info:{p1:"We use our own and third-party cookies to analyze the use of the website and/or show you advertising related to your preferences based on a profile created from your browsing habits (for example, pages visited).",p2:{a:"For more information, consult the",b:"cookie policy"},p3:'You can accept all cookies by pressing the "Accept" button or configure or reject their use by pressing the "Configure" button.',p4:'You can accept all cookies by pressing the "Accept" button, refuse their use by pressing the "Reject" button and configure them by pressing the "Configure" button.'},services:{new:"new",ownSwitch:"Do not require consent",ownDescription:"Technical and functional cookies"},btns:{accept:"Accept",reject:"Reject",config:"Configure",acceptAll:"Accept all",denyAll:"Reject all",save:"Save settings",return:"Go back"}},content:{a:"Content has been hidden because cookies are blocked.",b:"Allow cookies from:"}},es:{modal:{title:"Consentimiento de Cookies",info:{p1:"Utilizamos cookies propias y de terceros para analizar el uso del sitio web y/o mostrar publicidad relacionada con tu preferencia sobre la base de un perfil elaborado a partir de tu hábito de navegación (por ejemplo, páginas visitadas).",p2:{a:"Para más información consulta la",b:"polÃtica de cookies"},p3:'Puedes aceptar todas las cookies pulsando el botón "Aceptar" o configurarlas o rechazar su uso pulsando el botón "Configurar".',p4:'Puedes aceptar todas las cookies pulsando el botón "Aceptar", rechazar su uso pulsando el botón "Rechazar" y configurarlas pulsando el botón "Configurar".'},services:{new:"nuevo",ownSwitch:"No precisan consentimiento",ownDescription:"Cookies técnicas y funcionales"},btns:{accept:"Aceptar",reject:"Rechazar",config:"Configurar",acceptAll:"Aceptar todas",denyAll:"Rechazar todas",save:"Guardar configuración",return:"Volver atrás"}},content:{a:"Se ha ocultado contenido porque tiene las cookies bloqueadas.",b:"Permitir cookies de:"}},eu:{modal:{title:"Cookien Baimena",info:{p1:"Gure cookieak eta hirugarrenenak erabiltzen ditugu webgunearen erabilera aztertzeko eta/edo zure lehentasunekin erlazionatutako publizitatea erakusteko, zure nabigazio ohituretatik sortutako profil batean oinarrituta (adibidez, bisitatutako orrialdeak).",p2:{a:"Informazio gehiago lortzeko, kontsultatu",b:"cookie politika"},p3:'Cookie guztiak onar ditzakezu "Onartu" botoia sakatuta edo horien erabilera konfiguratu edo ukatu "Konfiguratu" botoia sakatuta.',p4:'Cookie guztiak onar ditzakezu "Onartu" botoia sakatuz, haien erabilerari uko egin "Ukatu" botoia sakatuz eta "Konfiguratu" botoia sakatuz konfigura ditzakezu.'},services:{new:"berria",ownSwitch:"Ez dute baimenik eskatzen",ownDescription:"Cookie teknikoak eta funtzionalak"},btns:{accept:"Onartzeko",reject:"Baztertu",config:"Konfiguratu",acceptAll:"Onartu guztiak",denyAll:"Guztiak baztertu",save:"Gorde ezarpenak",return:"Atzera egin"}},content:{a:"Edukia ezkutatu egin da cookieak blokeatuta daudelako.",b:"Onartu cookieak:"}},fr:{modal:{title:"Consentement des cookies",info:{p1:"Nous utilisons nos propres cookies et ceux de tiers à des fins d'analyse et pour vous présenter de la publicité personnalisée basée sur un profil préparé à partir de vos habitudes de navigation (par exemple, les pages visitées).",p2:{a:"Pour en savoir plus, consultez la",b:"politique de cookies"},p3:'Vous pouvez accepter tous les cookies en cliquant sur le bouton "Accepter " ou paramétrer ou refuser leur utilisation en cliquant sur le bouton "Paramétrer ".',p4:'Vous pouvez accepter tous les cookies en appuyant sur le bouton "Accepter", refuser leur utilisation en appuyant sur le bouton "Rejeter" et les configurer en appuyant sur le bouton "Configurer".'},services:{new:"nouveau",ownSwitch:"Le consentement nâest pas requis",ownDescription:"Cookies techniques et fonctionnels"},btns:{accept:"Accepter",reject:"Rejeter",config:"Paramétrer",acceptAll:"Tout accepter",denyAll:"Tout refuser",save:"Enregistrer les paramètres",return:"Retourner en arrière"}},content:{a:"Le contenu a été caché car les cookies sont bloqués.",b:"Autoriser les cookies de:"}},gl:{modal:{title:"Consentimento de Cookies",info:{p1:"Utilizamos cookies propias e de terceiros para analizar o uso do sitio web e/ou mostrarche publicidade relacionada coas túas preferencias en función dun perfil creado a partir dos teus hábitos de navegación (por exemplo, páxinas visitadas).",p2:{a:"Para obter máis información, consulte a",b:"polÃtica de cookies"},p3:'Pode aceptar todas as cookies premendo o botón "Aceptar" ou configurar ou rexeitar o seu uso premendo o botón "Configurar".',p4:'Pode aceptar todas as cookies premendo o botón "Aceptar", rexeitar o seu uso premendo o botón "Rexeitar" e configuralas premendo o botón "Configurar".'},services:{new:"novo",ownSwitch:"Non requiren consentimento",ownDescription:"Cookies técnicas e funcionais"},btns:{accept:"Aceptar",reject:"Rexeitar",config:"Configurar",acceptAll:"Acepta todo",denyAll:"Rexeita todo",save:"Gardar configuración",return:"Volve atrás"}},content:{a:"Ocultouse o contido porque as cookies están bloqueadas.",b:"Permitir cookies desde:"}},it:{modal:{title:"Consenso cookie",info:{p1:"Utilizziamo cookie nostri e di terze parti per analizzare l'utilizzo del sito web e/o mostrarti pubblicità relativa alle tue preferenze in base a un profilo creato dalle tue abitudini di navigazione (ad esempio, le pagine visitate).",p2:{a:"Per ulteriori informazioni, vedere",b:"Politica sui cookie"},p3:'Puoi accettare tutti i cookie premendo il pulsante "Accetta" oppure configurarne o rifiutarne l\'utilizzo premendo il pulsante "Configura".',p4:'Puoi accettare tutti i cookie premendo il pulsante "Accetta", r
25ifiutarne l\'utilizzo premendo il pulsante "Rifiuta" e configurarli premendo il pulsante "Configura".'},services:{new:"nuovo",ownSwitch:"Non richiedono il consenso",ownDescription:"Cookie tecnici e funzionali"},btns:{accept:"Accetta",reject:"Rifiutare",config:"Configura",acceptAll:"Accettare tutti",denyAll:"Rifiuta tutto",save:"Salva le impostazioni",return:"Torna indietro"}},content:{a:"Il contenuto è stato nascosto perché i cookie sono bloccati.",b:"Consenti i cookie da:"}},pt:{modal:{title:"Consentimento de cookies",info:{p1:"Utilizamos cookies próprios e de terceiros para analisar a utilização do sÃtio web e/ou apresentar publicidade relacionada com as suas preferências, com base num perfil elaborado a partir dos seus hábitos de navegação (por exemplo, páginas visitadas).",p2:{a:"Para mais informações, consulte a",b:"polÃtica de cookies"},p3:'Pode aceitar todos os cookies clicando no botão "Aceitar" ou configurá-los ou rejeitar a sua utilização clicando no botão "Configurar".',p4:'Pode aceitar todos os cookies clicando o botão "Aceitar", rejeitar a sua utilização clicando o botão "Rejeitar" e configurá-los clicando o botão "Configurar".'},services:{new:"novo",ownSwitch:"Não precisam consentimento",ownDescription:"Cookies técnicos e funcionais"},btns:{accept:"Aceitar",reject:"Rejeitar",config:"Configurar",acceptAll:"Aceitar todos",denyAll:"Rejeitar todos",save:"Guardar configuração",return:"Voltar"}},content:{a:"O conteúdo foi ocultado porque tem os cookies bloqueados.",b:"Permitir cookies de:"}},"pt-br":{modal:{title:"Consentimento de cookies",info:{p1:"Utilizamos cookies próprios e de terceiros para analisar a utilização do sÃtio web e/ou apresentar publicidade relacionada com as suas preferências, com base num perfil elaborado a partir dos seus hábitos de navegação (por exemplo, páginas visitadas).",p2:{a:"Para mais informações, consulte a",b:"polÃtica de cookies"},p3:'Pode aceitar todos os cookies clicando no botão "Aceitar" ou configurá-los ou rejeitar a sua utilização clicando no botão "Configurar".',p4:'Pode aceitar todos os cookies clicando o botão "Aceitar", rejeitar a sua utilização clicando o botão "Rejeitar" e configurá-los clicando o botão "Configurar".'},services:{new:"novo",ownSwitch:"Não precisam consentimento",ownDescription:"Cookies técnicos e funcionais"},btns:{accept:"Aceitar",reject:"Rejeitar",config:"Configurar",acceptAll:"Aceitar todos",denyAll:"Rejeitar todos",save:"Guardar configuração",return:"Voltar"}},content:{a:"O conteúdo foi ocultado porque tem os cookies bloqueados.",b:"Permitir cookies de:"}}}}}],(t=null)&&r(o.prototype,t),n&&r(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===a(i)?i:String(i)),n)}var r,i}var l=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){var e=k.getValue();null!==document.querySelector("#pdcc-message-container")&&this.close(),e.blockList.filter((function(e){return!0===e.reportable})).length&&!1===e.showModal&&this.show(e.blockList)}},{key:"show",value:function(e){var o=document.querySelector("body"),t=document.createElement("div"),n=e.filter((function(e){return!0===e.reportable})),r=[],a="";t.id="pdcc-message-container",o.insertAdjacentElement("beforeend",t);for(var c=0;c<n.length;c++)r.includes(n[c].name)||(r.push(n[c].name),a+='<input type="checkbox" checked disabled data-group="'.concat(n[c].name,'" style="display: none;">'));t.innerHTML="\n <p>\n ".concat(i.getTexts().content.a," ").concat(i.getTexts().content.b," ").concat(r.join(", "),'.\n <sp
25an id="pdcc-message-accept" class="pdcc-message-btn">').concat(i.getTexts().modal.btns.acceptAll,'</span>\n <span id="pdcc-message-config" class="pdcc-message-btn pdcc-open-modal">').concat(i.getTexts().modal.btns.config,'</span>\n </p>\n <span id="pdcc-message-accept-mvl" class="pdcc-message-btn">').concat(i.getTexts().modal.btns.acceptAll,'</span>\n <span id="pdcc-message-config-mvl" class="pdcc-message-btn pdcc-open-modal">').concat(i.getTexts().modal.btns.config,"</span>\n ").concat(a,"\n ")}},{key:"close",value:function(){var e=document.querySelector("#pdcc-message-container");null!==e&&e.parentNode.removeChild(e)}},{key:"clearReports",value:function(){var e=k.getValue();if(e.blockList.length){for(var o=0;o<e.blockList.length;o++)e.blockList[o].reportable=!1;k.ohMyCookie(e)}}},{key:"acceptAll",value:function(){var e=document.querySelector("#pdcc-message-container"),o=Array.from(e.querySelectorAll("input[type=checkbox]"));Array.isArray(o)&&o.length?d.update(o):this.close()}}],(t=null)&&c(o.prototype,t),n&&c(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===s(i)?i:String(i)),n)}var r,i}var d=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,n,r;return o=e,r=[{key:"defaultItem",value:function(){return{actived:!1,contain:"",domain:"",editable:!0,ignored:!1,name:"",new:!1,report:!1,reportable:!1,userList:!0,visible:!0}}},{key:"theirList",value:function(e){var o=JSON.parse(e.substring(e.lastIndexOf("PDCookieConsent.blockList([")+26,e.indexOf("]);",e.indexOf("PDCookieConsent.blockList(["))+1)),t=y.checkAndCorrectListData(o),n=k.getValue();if(Array.isArray(t)&&t.length){if(Array.isArray(n.blockList)&&n.blockList.length)for(var r=0;r<t.length;r++)n=this.clearBlockListBasedOnUserList(t[r],n),this.existsTheUserItemList(t[r],n)||n.blockList.push(t[r]);else for(var i=0;i<t.length;i++)n.blockList.push(t[i]);k.ohMyCookie(n)}else this.clearAllUserDataFromBlockList()}},{key:"clearBlockListBasedOnUserList",value:function(e,o){for(var t=0;t<o.blockList.length;t++)o.blockList[t].domain.length?e.domain.length&&o.blockList[t].domain.includes(e.domain)&&(!1===o.blockList[t].userList?o.blockList.splice(t,1):(!1===o.blockList[t].ignored&&(o.blockList[t].actived=e.actived),o.blockList[t].domain=e.domain,o.blockList[t].name=e.name,o.blockList[t].editable=e.editable,o.blockList[t].visible=e.visible,o.blockList[t].report=e.report)):e.contain.length&&o.blockList[t].contain.includes(e.contain)&&(!1===o.blockList[t].userList?o.blockList.splice(t,1):(!1===o.blockList[t].ignored&&(o.blockList[t].actived=e.actived),o.blockList[t].contain=e.contain,o.blockList[t].name=e.name,o.blockList[t].editable=e.editable,o.blockList[t].visible=e.visible,o.blockList[t].report=e.report));return o}},{key:"clearAllUserDataFromBlockList",value:function(){var e=k.getValue(),o=e.blockList.filter((function(e){return!0===e.userList}));Array.isArray(o)&&o.length&&(e.blockList=e.blockList.filter((function(e){return!0!==e.userList})),k.ohMyCookie(e))}},{key:"isAnUnallowedTextElement",value:function(o){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.defaultItem(),i=k.getValue(),a={toBlock:!1,groupName:""};if(this.hasAwordNotAllowed(o)||this.existsInDomainOrContainOfUserItemList(o,i,!0)){if(Array.isArray(i.blockList)&&i.blockList.length)for(var c=0;c<i.blockList.length;c++){if(!this.existsAnItemWithDomainOrContain(i,!0)){r.contain=this.defineAvalueForContain(o),r.name=t.baptize(this.defineAvalueForContain(o)),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r);break}if(!this.existsInDomainOrContainOfItemList(o,i,!0)){r.contain=this.defineAvalueForContain(o),r.name=t.baptize(this.defineAvalueForContain(o)),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r);break}if(i.blockList[c].contain.length&&o.includes(i.blockList[c].contain)){!1===i.accepted?(a.toBlock=!0,a.groupName=i.blockList[c].name,!0!==n&&!0!==i.blockList[c].report||(i.blockList[c].reportable=!0),!0===i.blockList[c].actived&&(a.toBlock=!1,i.blockList[c].reportable=!1)):i.blockList[c].actived=!0;break}}else r.contain=this.defineAvalueForContain(o),r.name=t.baptize(this.defineAvalueForContain(o)),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r);k.ohMyCookie(i)}return l.init(),a}},{key:"isAnUnallowedSrcElement",value:function(o){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.defaultItem(),i=k.getValue(),a={toBlock:!1,groupName:""};if(this.hasAwordNotAllowed(o)||this.existsInDomainOrContainOfUserItemList(o,i)){if(Array.isArray(i.blockList)&&i.blockList.length)for(var c=0;c<i.blockList.length;c++){if(!this.existsAnItemWithDomainOrContain(i)){var s="";if(y.checkIfIsAnUrl(o)){var u=new URL(o);s=u.hostname+u.pathname}else s=o.includes("./")?o.split("./")[1]:o;r.domain=s,r.name=t.baptize(s),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r);break}if(!this.existsInDomainOrContainOfItemList(o,i)){var d="";if(y.checkIfIsAnUrl(o)){var p=new URL(o);d=p.hostname+p.pathname}else d=o.includes("./")?o.split("./")[1]:o;r.domain=d,r.name=t.baptize(d),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r);break}if(i.blockList[c].domain.length&&o.includes(i.blockList[c].domain)){!1===i.accepted?(a.toBlock=!0,a.groupName=i.blockList[c].name,!0!==n&&!0!==i.blockList[c].report||(i.blockList[c].reportable=!0),!0===i.blockList[c].actived&&(a.toBlock=!1,i.blockList[c].reportable=!1)):i.blockList[c].actived=!0;break}}else{var f="";if(y.checkIfIsAnUrl(o)){var b=new URL(o);f=b.hostname+b.pathname}else f=o.includes("./")?o.split("./")[1]:o;r.domain=f,r.name=t.baptize(f),r.userList=!1,r.new=!0,!0===n&&(r.reportable=!0),a.toBlock=!0,a.groupName=r.name,!0!==i.accepted&&!0!==this.existsAnItemWithTheSameGroupAndActivated(a.groupName,i)||(a.toBlock=!1,r.actived=!0,r.new=!1,r.reportable=!1),i.blockList.push(r)}k.ohMyCookie(i)}return l.init(),a}},{key:"update",value:function(e){var o=k.getValue();e.forEach((function(e){var t=e.dataset.group,n=e.checked;if(o.blockList.some((function(e){return 1==e.new})))for(var r=0;r<o.blockList.length;r++)1==o.blockList[r].new&&o.blockList[r].name==t&&(o.blockList[r].new=!1);for(var i=0;i<o.blockList.length;i++)o.blockList[i].name===t&&(o.blockList[i].ignored=!0,o.blockList[i].actived=n)})),k.ohMyCookie(o),k.clearAllExceptPdcc(),location.reload()}},{key:"existsAnItemWithDomainOrContain",value:function(e){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=0;t<e.blockList.length;t++){if(!0===o&&e.blockList[t].contain.length)return!0;
25if(!1===o&&e.blockList[t].domain.length)return!0}return!1}},{key:"existsTheUserItemList",value:function(e,o){for(var t=0;t<o.blockList.length;t++)if(!0===o.blockList[t].userList&&o.blockList[t].domain===e.domain&&o.blockList[t].contain===e.contain)return!0;return!1}},{key:"existsInDomainOrContainOfUserItemList",value:function(e,o){for(var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<o.blockList.length;n++)if(!0===o.blockList[n].userList){if(!0===t&&o.blockList[n].contain.length&&e.includes(o.blockList[n].contain))return!0;if(!1===t&&o.blockList[n].domain.length&&e.includes(o.blockList[n].domain))return!0}return!1}},{key:"existsInDomainOrContainOfItemList",value:function(e,o){for(var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<o.blockList.length;n++){if(!0===t&&o.blockList[n].contain.length&&e.includes(o.blockList[n].contain))return!0;if(!1===t&&o.blockList[n].domain.length&&e.includes(o.blockList[n].domain))return!0}return!1}},{key:"existsAnItemWithTheSameGroupAndActivated",value:function(e,o){var t=!1;return o.blockList.filter((function(o){return o.name===e&&!0===o.actived})).length>0&&(t=!0),t}},{key:"hasAwordNotAllowed",value:function(e){for(var o=0;o<this.getWordsNotAllowed().length;o++)if(e.includes(this.getWordsNotAllowed()[o]))return!0;return!1}},{key:"defineAvalueForContain",value:function(e){for(var o=0;o<this.getWordsNotAllowed().length;o++)if(e.includes(this.getWordsNotAllowed()[o]))return this.getWordsNotAllowed()[o];return!1}},{key:"getWordsNotAllowed",value:function(){return["facebook.","linkedin.","twitter.","vimeo.","youtube.","ytimg","googleusercontent","gstatic","google.com/recaptcha","google.com/maps","maps.google.com","maps.googleapis","analytics","googletagmanager","urchin","adwords","doubleclick","googleadservices","googlesyndication","googletagservices","googletraveladservices"]}}],(n=null)&&u(o.prototype,n),r&&u(o,r),Object.defineProperty(o,"prototype",{writable:!1}),e}();function p(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,o){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,a,c=[],l=!0,s=!1;try{if(i=(t=t.call(e)).next,0===o){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=i.call(t)).done)&&(c.push(n.value),c.length!==o);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return c}}(e,o)||function(e,o){if(!e)return;if("string"==typeof e)return f(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,o)}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,n=new Array(o);t<o;t++)n[t]=e[t];return n}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==b(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===b(i)?i:String(i)),n)}var r,i}var y=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,n,r;return o=e,r=[{key:"getWebsiteSubDomain",value:function(){return window.location.hostname}},{key:"getDomain",value:function(e){if(this.checkIfIsAnUrl("https:"+e)){var o=new URL("https:"+e),t="";return this.checkIfIsADomain(o.hostname)&&(t=null==o.hostname.match(/^[^\.]+\.(.+\..+)$/)?o.hostname:o.hostname.match(/^[^\.]+\.(.+\..+)$/)[1]),t}}},{key:"getNodeSrc",value:function(e){var o=e.attributes,t=!1;
25if(e.src)t=e.src;else for(var n=0;n<o.length;n++)(this.checkIfIsAnUrl(o[n].value)||this.checkIfIsADomain(o[n].value))&&(t=o[n].value);return t}},{key:"checkIfIsAnUrl",value:function(e){try{new URL(e)}catch(e){return!1}return!0}},{key:"checkIfIsADomain",value:function(e){return/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/.test(e)}},{key:"checkIfIsAnHexColor",value:function(e){var o=!1;switch(e.replace("#","").length){case 3:o=/^#[0-9A-F]{3}$/i.test(e);break;case 6:o=/^#[0-9A-F]{6}$/i.test(e);break;case 8:o=/^#[0-9A-F]{8}$/i.test(e)}return o}},{key:"checkAndCorrectListData",value:function(e){if(Array.isArray(e)&&e.length){for(var o=[],n=0;n<e.length;n++){var r=d.defaultItem();if(!(e[n].hasOwnProperty("domain")&&!e[n].hasOwnProperty("contain")||!e[n].hasOwnProperty("domain")&&e[n].hasOwnProperty("contain")))return void console.error('ERROR PDCookieConsent.blockList(): No se pueden especificar las propiedades "domain" y "contain" a la vez.',e[n]);e[n].hasOwnProperty("domain")?(r.domain=e[n].domain,r.name=t.baptize(e[n].domain)):(r.contain=e[n].contain,r.name=t.baptize(e[n].contain)),e[n].hasOwnProperty("name")&&("string"==typeof e[n].name&&e[n].name.trim().length?r.name=e[n].name:console.warn('WARN PDCookieConsent.blockList(): Propiedad "name" incorrecta (string). El valor se establece a '.concat(r.name,"."),e[n])),e[n].hasOwnProperty("actived")&&("boolean"==typeof e[n].actived?r.actived=e[n].actived:console.warn('WARN PDCookieConsent.blockList(): Propiedad "actived" incorrecta (boolean). El valor por defecto se establece a false.',e[n])),e[n].hasOwnProperty("editable")&&("boolean"==typeof e[n].editable?r.editable=e[n].editable:console.warn('WARN PDCookieConsent.blockList(): Propiedad "editable" incorrecta (boolean). El valor por defecto se establece a true.',e[n])),e[n].hasOwnProperty("visible")&&("boolean"==typeof e[n].visible?r.visible=e[n].visible:console.warn('WARN PDCookieConsent.blockList(): Propiedad "visible" incorrecta (boolean). El valor por defecto se establece a true.',e[n])),e[n].hasOwnProperty("report")&&("boolean"==typeof e[n].report?r.report=e[n].report:console.warn('WARN PDCookieConsent.blockList(): Propiedad "report" incorrecta (boolean). El valor por defecto se establece a false.',e[n])),o.push(r)}return o}}},{key:"checkAndCorrectConfigData",value:function(e){var o=this,t={},n=[];if(e.hasOwnProperty("defaultLang"))switch(t.defaultLang={},e.defaultLang){case"ca":t.defaultLang="ca";break;case"en":t.defaultLang="en";break;case"es":t.defaultLang="es";break;case"eu":t.defaultLang="eu";break;case"fr":t.defaultLang="fr";break;case"ga":t.defaultLang="gl";break;default:t.defaultLang="es",console.warn('WARN PDCookieConsent.config("defaultLang"): Propiedad "defaultLang" incorrecta: "ca", "en", "es", "eu", "fr" o "gl" (string). El valor por defecto se establece a "es".',e.defaultLang)}return e.hasOwnProperty("brand")&&(t.brand={},e.brand.hasOwnProperty("dev")&&("boolean"==typeof e.brand.dev?t.brand.dev=e.brand.dev:(t.brand.dev=!1,console.warn('WARN PDCookieConsent.config("brand:{dev}"): Propiedad "dev" incorrecta (boolean). El valor por defecto se establece a false.',e.brand)),e.brand.hasOwnProperty("name")&&"string"==typeof e.brand.name&&e.brand.name.trim().length?t.brand.name=e.brand.name:(t.brand.dev=!1,console.warn('WARN PDCookieConsent.config("brand:{name}"): Propiedad "name" incorrecta (string). El valor de la propiedad "dev" se establece a false.',e.brand)),e.brand.hasOwnProperty("url")&&this.checkIfIsAnUrl(e.brand.url)?t.brand.url=e.brand.url:(t.brand.dev=!1,console.warn('WARN PDCookieConsent.config("brand:{url}"): Propiedad "url" incorrecta (URL: https://...). El valor de la propiedad "dev" se establece a false.',e.brand))),e.brand.hasOwnProperty("websiteOwner")&&("string"==typeof e.brand.websiteOwner&&e.brand.websiteOwner.trim().length?t.brand.websiteOwner=e.brand.websiteOwner:console.warn('WARN PDCookieConsent.config("brand:{websiteOwner}"): Propiedad "websiteOwner" incorrecta (string). El valor ha sido ignorado.',e.brand))),e.hasOwnProperty("cookiePolicyLink")&&"string"==typeof e.cookiePolicyLink?(t.cookiePolicyLink="",this.checkIfIsAnUrl(e.cookiePolicyLink)?t.cookiePolicyLink=e.cookiePolicyLink:console.warn('WARN PDCookieConsent.config("cookiePolicyLink"): Propiedad "cookiePolicyLink" incorrecta (URL: https://...). El valor ha sido ignorado.',e.cookiePolicyLink)):e.hasOwnProperty("cookiePolicyLink")&&"object"==b(e.cookiePolicyLink)&&(t.cookiePolicyLink="",Object.entries(e.cookiePolicyLink).forEac
25h((function(n){var r=p(n,2),a=r[0],c=r[1];1==i.allowedLang(a)?0==o.checkIfIsAnUrl(c)&&(delete e.cookiePolicyLink[a],console.warn('WARN PDCookieConsent.config("cookiePolicyLink"): La propiedad "cookiePolicyLink" presenta errores, la URL es incorrecta ("'.concat(a,'": "').concat(c,'"). El valor ha sido ignorado.'),e.cookiePolicyLink)):(delete e.cookiePolicyLink[a],console.warn('WARN PDCookieConsent.config("cookiePolicyLink"): La propiedad "cookiePolicyLink" presenta errores, el código de idioma es incorrecto ("'.concat(a,'": "').concat(c,'"). El valor ha sido ignorado.'),e.cookiePolicyLink)),t.cookiePolicyLink=e.cookiePolicyLink}))),e.hasOwnProperty("hideModalIn")&&(t.hideModalIn=[],Array.isArray(e.hideModalIn)&&e.hideModalIn.length&&e.hideModalIn.forEach((function(r){o.checkIfIsAnUrl(r)?n.push(r):console.warn('WARN PDCookieConsent.config("hideModalIn":[]): La URL "'.concat(r,'" es incorrecta (URL: https://...). El valor ha sido ignorado.'),e.hideModalIn),n.length>0&&(t.hideModalIn=n)}))),e.hasOwnProperty("showBadges")&&(t.showBadges=!1,"boolean"==typeof e.showBadges?t.showBadges=e.showBadges:console.warn('WARN PDCookieConsent.config("showBadges"): Propiedad "showBadges" incorrecta (boolean). El valor por defecto se establece a false.',e.showBadges)),e.hasOwnProperty("showRejectButton")&&(t.showRejectButton=!0,"boolean"==typeof e.showRejectButton?t.showRejectButton=e.showRejectButton:console.warn('WARN PDCookieConsent.config("showRejectButton"): Propiedad "showRejectButton" incorrecta (boolean). El valor por defecto se establece a false.',e.showRejectButton)),e.hasOwnProperty("styles")&&(t.styles={},e.styles.hasOwnProperty("primaryButton")&&(t.styles.primaryButton={},e.styles.primaryButton.hasOwnProperty("bgColor")&&(t.styles.primaryButton.bgColor="",this.checkIfIsAnHexColor(e.styles.primaryButton.bgColor)?t.styles.primaryButton.bgColor=e.styles.primaryButton.bgColor:console.warn('WARN PDCookieConsent.config("styles{primaryButton}"): Propiedad "bgColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles)),e.styles.primaryButton.hasOwnProperty("txtColor")&&(this.checkIfIsAnHexColor(e.styles.primaryButton.txtColor)?t.styles.primaryButton.txtColor=e.styles.primaryButton.txtColor:console.warn('WARN PDCookieConsent.config("styles{primaryButton}"): Propiedad "txtColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles))),e.styles.hasOwnProperty("secondaryButton")&&(t.styles.secondaryButton={},e.styles.secondaryButton.hasOwnProperty("bgColor")&&(t.styles.secondaryButton.bgColor="",this.checkIfIsAnHexColor(e.styles.secondaryButton.bgColor)?t.styles.secondaryButton.bgColor=e.styles.secondaryButton.bgColor:console.warn('WARN PDCookieConsent.config("styles{secondaryButton}"): Propiedad "bgColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles)),e.styles.secondaryButton.hasOwnProperty("txtColor")&&(this.checkIfIsAnHexColor(e.styles.secondaryButton.txtColor)?t.styles.secondaryButton.txtColor=e.styles.secondaryButton.txtColor:console.warn('WARN PDCookieConsent.config("styles{secondaryButton}"): Propiedad "txtColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles))),e.styles.hasOwnProperty("rejectButton")&&(t.styles.rejectButton={},e.styles.rejectButton.hasOwnProperty("bgColor")&&(t.styles.rejectButton.bgColor="",this.checkIfIsAnHexColor(e.styles.rejectButton.bgColor)?t.styles.rejectButton.bgColor=e.styles.rejectButton.bgColor:console.warn('WARN PDCookieConsent.config("styles{secondaryButton}"): Propiedad "bgColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles)),e.styles.rejectButton.hasOwnProperty("txtColor")&&(this.checkIfIsAnHexColor(e.styles.rejectButton.txtColor)?t.styles.rejectButton.txtColor=e.styles.rejectButton.txtColor:console.warn('WARN PDCookieConsent.config("styles{rejectButton}"): Propiedad "txtColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles))),e.styles.hasOwnProperty("cookieButton")&&(t.styles.cookieButton={},e.styles.cookieButton.hasOwnProperty("activedColor")&&(t.styles.cookieButton.activedColor="",this.checkIfIsAnHexColor(e.styles.cookieButton.activedColor)?t.styles.cookieButton.activedColor=e.styles.cookieButton.activedColor:console.warn('WARN PDCookieConsent.config("styles{cookieButton}"): Propiedad "activedColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles)),e.styles.cookieButton.hasOwnProperty("disabledColor")&&(this.checkIfIsAnHexColor(e.styles.cookieButton.disabledColor)?t.styles.cookieButton.disabledColor=e.styles.cookieButton.disabledColor:console.warn('WARN PDCookieConsent.config("styles{cookieButton}"): Propiedad "disabledColor" incorrecta (#000 = hexadecimal). El valor ha sido ignorado.',e.styles)))),t}}],(n=null)&&m(o.prototype,n),r&&m(o,r),Object.defineProperty(o,"prototype",{writable:!1}),e}();function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==v(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===v(i)?i:String(i)),n)}var r,i}var k=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){-1===document.cookie.indexOf("pd_cc")&&this.ohMyCookie({accepted:!1,isSession:!0,showModal:!0,showMessage:!0,config:{},blockList:[]}),l.clearReports()}},{key:"ohMyCookie",value:function(e){!0===e.accepted?document.cookie="pd_cc=".concat(JSON.stringify(e),"; max-age=31536000; path=/; samesite=strict;"):document.cookie="pd_cc=".concat(JSON.stringify(e),"; path=/; samesite=strict;")}},{key:"getValue",value:function(){for(var e="pd_cc=",o=decodeURIComponent(document.cookie).split(";"),t=0;t<o.length;t++){for(var n=o[t];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return JSON.parse(n.substring(e.length,n.length))}return""}},{key:"clearAllExceptPdcc",value:function(){var e=document.cookie.split(";"),o=this.getValue().blockList,t=y.getWebsiteSubDomain(),n="",r=[];n=null==t.match(/^[^\.]+\.(.+\..+)$/)?t:t.match(/^[^\.]+\.(.+\..+)$/)[1],r.some((function(e){return e===t}))||r.push(t),r.some((function(e){return e===n}))||r.push(n),r.some((function(e){return e==="."+n}))||r.push("."+n);for(var i=function(){if(!1===o[a].actived&&o[a].domain.length&&void 0!==y.getDomain(o[a].domain)&&y.getDomain(o[a].domain).length){var e=y.getDomain(o[a].domain);r.some((function(o){return o===e}))||r.push(e),r.some((function(o){return o==="."+e}))||r.push("."+e),r.some((function(o){return o==="www."+e}))||r.push("www."+e)}},a=0;a<o.length;a++)i();for(var c=function(){var o=e[l].split("=")[0];"pd_cc"!=o.trim()&&r.forEach((function(e){document.cookie=o+"=; path=/; domain=".concat(e,"; max-age=0; secure;"),document.cookie=o+"=; path=/; max-age=0; secure;"}))},l=0;l<e.length;l++)c()}}],(t=null)&&g(o.prototype,t),n&&g(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function w(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==h(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===h(i)?i:String(i)),n)}var r,i}var C=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){var e=k.getValue();!0===e.config.showBadges&&this.addInTheOpenModalLink(e.blockList)}},{key:"addInTheOpenModalLink",value:function(e){var o=e.reduce((function(e,o){return e.find((function(e){return e.name===o.name}))?e:e.concat([o])}),[]).filter((function(e){return!0===e.new})).length,t=document.getElementsByClassName("pdcc-open-modal");if(o>0)for(var n=0;n<t.length;n++)t[n].insertAdjacentHTML("beforeend",' <sup class="pdcc-info-badge">'.concat(o,"</sup>"));else this.remove()}},{key:"update",value:function(){var e=document.getElementsByClassName("pdcc-info-badge"),o=k.getValue().blockList.filter((function(e){return!0===e.new})).length;if(o>0)for(var t=0;t<e.length;t++)e[t].insertAdjacentHTML("beforeend",' <sup class="pdcc-info-badge">'.concat(o,"</sup>"));else this.remove()}},{key:"remove",value:function(){var e=document.getElementsByClassName("pdcc-info-badge");Array.from(e).forEach((function(e){e.parentNode.removeChild(e)}))}}],(t=null)&&w(o.prototype,t),n&&w(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function L(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==P(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===P(i)?i:String(i)),n)}var r,i}var S=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){var e=k.getValue();!0===e.showModal&&e.blockList.length>0&&this.show()}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=window.location.href,t=k.getValue();t.showModal=!0,k.ohMyCookie(t),void 0!==t.config.hideModalIn&&t.config.hideModalIn.some((function(e){return e===o}))&&!0!==e||(this.body(t.config,e),l.close())}},{key:"close",value:function(){var e=document.querySelector("body"),o=document.querySelector("#pdcc-modal-bg"),t=k.getValue();if(t.blockList.some((function(e){return!0===e.new})))for(var n=0;n<t.blockList.length;n++)!0===t.blockList[n].new&&(t.blockList[n].new=!1);t.showModal=!1,k.ohMyCookie(t),o.parentNode.removeChild(o),e.style.overflow="scroll",!0===t.config.showBadges&&C.update(),l.init(
25)}},{key:"body",value:function(e,o){var t=document.querySelector("body"),n=document.createElement("div"),r="<p>".concat(i.getTexts().modal.info.p2.a," <u>").concat(i.getTexts().modal.info.p2.b,"</u>.</p>"),a=y.getWebsiteSubDomain(),c="";if(n.id="pdcc-modal-bg",t.style.overflow="hidden",t.appendChild(n),e.hasOwnProperty("cookiePolicyLink")&&"string"==typeof e.cookiePolicyLink){var l=e.cookiePolicyLink;l.includes("{lang}")&&(l=l.replace("{lang}",i.getLang())),r="<p>".concat(i.getTexts().modal.info.p2.a,' <a class="pdcc-link-cp" href="').concat(l,'" target="_blank"><u>').concat(i.getTexts().modal.info.p2.b,"</u></a>.</p>")}else if(e.hasOwnProperty("cookiePolicyLink")&&"object"==P(e.cookiePolicyLink)){var s=e.cookiePolicyLink[i.getLang()];r="<p>".concat(i.getTexts().modal.info.p2.a,' <a class="pdcc-link-cp" href="').concat(s,'" target="_blank"><u>').concat(i.getTexts().modal.info.p2.b,"</u></a>.</p>")}e.hasOwnProperty("brand")&&e.brand.hasOwnProperty("websiteOwner")&&(a=e.brand.websiteOwner);var u='<div id="pdcc-modal-deny-all" class="pdcc-btn">'.concat(i.getTexts().modal.btns.reject,"</div>"),d="p4";if(e.hasOwnProperty("brand")&&e.brand.hasOwnProperty("dev"))if(!0===e.brand.dev){var p="";e.brand.name.includes("Privacy Driver")&&(p=' class="pdcc-red"'),c='<div id="pdcc-modal-footer">\n <p class="pow">Powered by <a href="'.concat(e.brand.url,'" target="_blank" rel="noopener noreferrer"').concat(p,">").concat(e.brand.name,"</a></p>\n </div>")}else c="";e.hasOwnProperty("showRejectButton")&&!1===e.showRejectButton&&(d="p3",u=""),n.innerHTML='\n <div id="pdcc-modal-container">\n <div id="pdcc-modal-header">\n <div id="pdcc-close-modal">X</div>\n <p class="title">'.concat(i.getTexts().modal.title,'</p>\n </div>\n\n <div id="pdcc-modal-body">\n <div id="pdcc-modal-info" class="actived">\n <div id="pdcc-modal-description">\n <p>').concat(i.getTexts().modal.info.p1,"</p>\n ").concat(r,"\n <p>").concat(i.getTexts().modal.info[d],'</p>\n </div>\n\n <div id="pdcc-modal-acceptance">\n <div id="pdcc-modal-accept" class="pdcc-btn">').concat(i.getTexts().modal.btns.accept,"</div>\n ").concat(u,'\n <div id="pdcc-modal-config" class="pdcc-btn">').concat(i.getTexts().modal.btns.config,'</div>\n </div>\n </div>\n\n <div id="pdcc-modal-settings" class="disabled">\n <p><span id="pdcc-modal-goback">â ').concat(i.getTexts().modal.btns.return,'</span></p>\n\n <div id="pdcc-modal-accept-all" class="pdcc-btn">').concat(i.getTexts().modal.btns.acceptAll,'</div> \n <div id="pdcc-modal-deny-all" class="pdcc-btn">').concat(i.getTexts().modal.btns.denyAll,'</div>\n\n <div id="pdcc-modal-services">\n <p>\n <label class="pdcc-btn-switch">\n <input type="checkbox" checked disabled>\n <span class="pdcc-btn-slider" title="').concat(i.getTexts().modal.services.ownSwitch,'"></span>\n </label>\n <span style="display: inline-table; line-height: 13px;">\n ').concat(a,'<br>\n <span class="pdcc-service-desc"><small>').concat(i.getTexts().modal.services.ownDescription,"</small></span>\n </span>\n </p>\n ").concat(this.getServices(),'\n </div>\n\n <div id="pdcc-modal-save-settings" class="pdcc-btn">').concat(i.getTexts().modal.btns.save,"</div>\n </div>\n </div>\n\n ").concat(c,"\n </div>"),!0===o&&this.collapseContent()}},{key:"getServices",value:function(){var e=k.getValue().blockList,o="";if(Array.isArray(e)&&e.length)for(var t=e.reduce((function(e,o){return e.find((function(e){return e.name===o.name}))?e:e.concat([o])}),[]).sort((function(e,o){return e.name>o.name?1:o.name>e.name?-1:0})),n=0;n<t.length;n++){var r="",a="",c="";!0===t[n].actived&&(r=" checked"),!1===t[n].editable&&(a=" disabled"),!0===t[n].new&&(c=' <sup class="pdcc-new-service">('.concat(i.getTexts().modal.services.new,")</sup>")),!1!==t[n].visible&&(o+='<p>\n <label class="pdcc-btn-switch">\n <input type="checkbox"'.concat(r).concat(a,' data-group="').concat(t[n].name,'">
25\n <span class="pdcc-btn-slider"></span>\n </label>\n <span class="pdcc-service">').concat(t[n].name).concat(c,"</span>\n </p>"))}return o}},{key:"collapseContent",value:function(){var e=document.querySelector("#pdcc-modal-bg"),o=e.querySelector("#pdcc-modal-info"),t=e.querySelector("#pdcc-modal-settings");"actived"===o.className?(o.classList.remove("actived"),o.classList.add("disabled")):(o.classList.remove("disabled"),o.classList.add("actived")),"disabled"===t.className?(t.classList.remove("disabled"),t.classList.add("actived")):(t.classList.remove("actived"),t.classList.add("disabled"))}},{key:"unselectAllServices",value:function(){for(var e=document.querySelector("#pdcc-modal-bg").querySelectorAll("input[type=checkbox]"),o=0;o<e.length;o++)!0===e[o].checked&&0==e[o].disabled&&(e[o].checked=!1);this.saveSettings()}},{key:"selectAllServices",value:function(){for(var e=document.querySelector("#pdcc-modal-bg").querySelectorAll("input[type=checkbox]"),o=0;o<e.length;o++)!1===e[o].checked&&0==e[o].disabled&&(e[o].checked=!0);this.saveSettings()}},{key:"saveSettings",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=document.querySelector("#pdcc-modal-bg"),t=o.querySelectorAll("input[type=checkbox]"),n=Array.from(t).filter((function(e){return 0==e.disabled})),r=k.getValue();!0===e?(r.isSession=e,r.accepted=!1):(r.isSession=e,r.accepted=!0),r.showModal=!1,k.ohMyCookie(r),Array.isArray(n)&&n.length?(d.update(n),l.close()):this.close()}},{key:"acceptAllServices",value:function(){this.selectAllServices(),this.saveSettings(!1)}}],(t=null)&&L(o.prototype,t),n&&L(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function O(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==A(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===A(i)?i:String(i)),n)}var r,i}var j=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"check",value:function(e){var o=y.getNodeSrc(e);if(!1!==o){var t=d.isAnUnallowedSrcElement(o,!0);!0===t.toBlock&&this.blockIframe(e,t.groupName)}}},{key:"blockIframe",value:function(e,o){var t=e.cloneNode(!0);e.after(document.createComment("[pd:".concat(o,"]")+t.outerHTML)),e.remove()}}],(t=null)&&O(o.prototype,t),n&&O(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function B(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==x(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===x(i)?i:String(i)),n)}var r,i}var I=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"check",value:function(e){var o=y.getNodeSrc(e);if(!1!==o){var t=d.isAnUnallowedSrcElement(o,!0);!0===t.toBlock&&this.blockImage(e,t.groupName)}}},{key:"blockImage",value:function(e,o){var t=e.cloneNode(!0);e.after(document.createComment("[pd:".concat(o,"]")+t.outerHTML)),e.remove()}}],(t=null)&&B(o.prototype,t),n&&B(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function z(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==N(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===N(i)?i:String(i)),n)}var r,i}var E=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"check",value:function(e){var o=y.getNodeSrc(e);
25if(!1!==o){var t=d.isAnUnallowedSrcElement(o,!0);!0===t.toBlock&&this.blockLink(e,t.groupName)}}},{key:"blockLink",value:function(e,o){var t=e.cloneNode(!0);e.after(document.createComment("[pd:".concat(o,"]")+t.outerHTML)),e.remove()}}],(t=null)&&z(o.prototype,t),n&&z(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function D(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==T(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===T(i)?i:String(i)),n)}var r,i}var R=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"theirSettings",value:function(e){var o=JSON.parse(e.substring(e.lastIndexOf("PDCookieConsent.config({")+23,e.indexOf("});",e.indexOf("PDCookieConsent.config({"))+1)),t=y.checkAndCorrectConfigData(o),n=k.getValue();n.config.brand=t.brand,n.config.defaultLang=t.defaultLang,n.config.cookiePolicyLink=t.cookiePolicyLink,n.config.hideModalIn=t.hideModalIn,n.config.showBadges=t.showBadges,n.config.showRejectButton=t.showRejectButton,n.config.styles=t.styles,k.ohMyCookie(n)}}],(t=null)&&D(o.prototype,t),n&&D(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function M(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==W(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===W(i)?i:String(i)),n)}var r,i}var U=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"check",value:function(e){var o=y.getNodeSrc(e);!1===o?this.scriptWithoutSrc(e):o.includes("chrome-extension")||this.scriptWithSrc(e)}},{key:"scriptWithoutSrc",value:function(e){if(e.textContent.includes("PDCookieConsent"))e.textContent.includes("PDCookieConsent.config")&&R.theirSettings(e.textContent),e.textContent.includes("PDCookieConsent.blockList")?d.theirList(e.textContent):d.clearAllUserDataFromBlockList();else{var o=d.isAnUnallowedTextElement(e.textContent);if(!0===o.toBlock)this.blockScript(e,o.groupName);else switch(e.type){case"text/plain":case"text/javascript":e.type="application/javascript"}}}},{key:"scriptWithSrc",value:function(e){var o=y.getNodeSrc(e),t=d.isAnUnallowedSrcElement(o);if(!0===t.toBlock)this.blockScript(e,t.groupName);else switch(e.type){case"text/plain":case"text/javascript":e.type="application/javascript"}}},{key:"blockScript",value:function(e,o){e.type="text/plain",e.replaceWith(document.createComment(" [pd:".concat(o,"] ")+e.outerHTML)),e.addEventListener("beforescriptexecute",(function o(t){t.preventDefault(),t.stopPropagation(),e.removeEventListener("beforescriptexecute",o)}))}}],(t=null)&&M(o.prototype,t),n&&M(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function V(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==q(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===q(i)?i:String(i)),n)}var r,i}var G=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){var e=document.documentElement;new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEac
25h((function(e){if(1===e.nodeType)switch(e.tagName){case"LINK":E.check(e);break;case"IMG":I.check(e);break;case"IFRAME":j.check(e);break;case"SCRIPT":case"NOSCRIPT":U.check(e)}}))}))})).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}],(t=null)&&V(o.prototype,t),n&&V(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function F(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==H(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===H(i)?i:String(i)),n)}var r,i}var _=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){var e=k.getValue();e.config.hasOwnProperty("styles")?this.getStyles(e.config.styles):(delete e.config.styles,k.ohMyCookie(e))}},{key:"getStyles",value:function(e){var o=document.querySelector("head"),t=document.createElement("style"),n="";if(t.setAttribute("type","text/css"),e.hasOwnProperty("primaryButton")){var r="",i="";e.primaryButton.hasOwnProperty("txtColor")&&(r="color: ".concat(e.primaryButton.txtColor,";")),e.primaryButton.hasOwnProperty("bgColor")&&(i="background-color: ".concat(e.primaryButton.bgColor,";"),"background: ".concat(e.primaryButton.bgColor,";")),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-info #pdcc-modal-acceptance div#pdcc-modal-accept {".concat(r).concat(i,"} "),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-settings div#pdcc-modal-accept-all {".concat(r).concat(i,"} "),n+="div#pdcc-message-container p span#pdcc-message-accept {".concat(r).concat(i,"} "),n+="div#pdcc-message-container span#pdcc-message-accept {".concat(r).concat(i,"} "),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-settings div#pdcc-modal-save-settings {".concat(r).concat(i,"} ")}if(e.hasOwnProperty("secondaryButton")){var a="",c="";e.secondaryButton.hasOwnProperty("txtColor")&&(a="color: ".concat(e.secondaryButton.txtColor,";")),e.secondaryButton.hasOwnProperty("bgColor")&&(c="background-color: ".concat(e.secondaryButton.bgColor,";")),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-info #pdcc-modal-acceptance div#pdcc-modal-config {".concat(a).concat(c,"} "),n+="div#pdcc-message-container p span#pdcc-message-config {".concat(a).concat(c,"} "),n+="div#pdcc-message-container span#pdcc-message-config {".concat(a).concat(c,"} ")}if(e.hasOwnProperty("rejectButton")){var l="",s="";e.rejectButton.hasOwnProperty("txtColor")&&(l="color: ".concat(e.secondaryButton.txtColor,";")),e.rejectButton.hasOwnProperty("bgColor")&&(s="background-color: ".concat(e.rejectButton.bgColor,";")),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-settings div#pdcc-modal-deny-all {".concat(l).concat(s,"} "),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-info #pdcc-modal-acceptance div#pdcc-modal-reject {".concat(l).concat(s,"} ")}if(k.getValue().config.hasOwnProperty("showRejectButton")){var u=k.getValue().config.showRejectButton,d=1==u?"display:none;":"display:inline;";n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-info #pdcc-modal-acceptance div#pdcc-modal-reject {".concat(1==u?"display:inline-block;":"display:none;","} "),n+="#pdcc-modal-bg #pdcc-modal-container #pdcc-modal-header #pdcc-close-modal {".concat(d,"}")}if(e.hasOwnProperty("cookieButton")){var p="",f="";e.cookieButton.hasOwnProperty("activedColor")&&(p="background-color: ".concat(e.cookieButton.activedColor,";")),e.cookieButton.hasOwnProperty("disabledColor")&&(f="background-color: ".concat(e.cookieButton.disabledColor,";")),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-settings #pdcc-modal-services p label.pdcc-btn-switch input:checked + .pdcc-btn-slider {".concat(p,"} "),n+="#pdcc-modal-bg #pdcc-modal-container div#pdcc-modal-body div#pdcc-modal-settings #pdcc-modal-services p label.pdcc-btn-switch input:checked:disabled + .pdcc-btn-slider {".concat(f,"}")}t.innerHTML=n,o.appendChild(t)}}],(t=null)&&F(o.prototype,t),n&&F(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function K(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(r=n.key,i=void 0,i=function(e,o){if("object"!==$(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,o||"default");if("object"!==$(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)}(r,"string"),"symbol"===$(i)?i:String(i)),n)}var r,i}var J=function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,n=[{key:"init",value:function(){k.init(),G.init(),document.addEventListener("DOMContentLoaded",(function(){S.init(),C.init(),l.init(
25),_.init()})),document.addEventListener("click",(function(e){var o=e.target;o.classList.contains("pdcc-open-modal")?(e.preventDefault(),S.show(!0)):"pdcc-close-modal"==o.id||"pdcc-modal-reject"==o.id?(e.preventDefault(),S.close()):"pdcc-modal-accept"==o.id?(e.preventDefault(),S.acceptAllServices()):"pdcc-modal-config"==o.id?(e.preventDefault(),S.collapseContent()):"pdcc-modal-accept-all"==o.id?(e.preventDefault(),S.selectAllServices()):"pdcc-modal-deny-all"==o.id?(e.preventDefault(),S.unselectAllServices()):"pdcc-modal-save-settings"==o.id?(e.preventDefault(),S.saveSettings()):"pdcc-modal-goback"==o.id?(e.preventDefault(),S.collapseContent()):"pdcc-message-accept"!=o.id&&"pdcc-message-accept-mvl"!=o.id||(e.preventDefault(),l.acceptAll())}),!1)}},{key:"blockList",value:function(e){}},{key:"config",value:function(e){}}],(t=null)&&K(o.prototype,t),n&&K(o,n),Object.defineProperty(o,"prototype",{writable:!1}),e}();window.PDCookieConsent=J,J.init()},502:()=>{}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,n),i.exports}n.m=o,e=[],n.O=(o,t,r,i)=>{if(!t){var a=1/0;for(u=0;u<e.length;u++){for(var[t,r,i]=e[u],c=!0,l=0;l<t.length;l++)(!1&i||a>=i)&&Object.keys(n.O).every((e=>n.O[e](t[l])))?t.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(u--,1);var s=r();void 0!==s&&(o=s)}}return o}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[t,r,i]},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={751:0,103:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var r,i,[a,c,l]=t,s=0;if(a.some((o=>0!==e[o]))){for(r in c)n.o(c,r)&&(n.m[r]=c[r]);if(l)var u=l(n)}for(o&&o(t);s<a.length;s++)i=a[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(u)},t=self.webpackChunkprivacydriver_cookie_consent=self.webpackChunkprivacydriver_cookie_consent||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})(),n.O(void 0,[103],(()=>n(640)));var r=n.O(void 0,[103],(()=>n(502)));r=n.O(r)})();
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.