\n \n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat(y(),'\n
\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText," \n ").concat(0==(null===(P=$.bannerConfig)||void 0===P?void 0:P.disableReject)?'').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," "):"","\n
\n
").concat(M(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style2":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n ').concat(y(),"\n ").concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
").concat(null!==(F=$.bannerLink)&&void 0!==F?F:"
"),'
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(M(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style3":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(Q=$.bannerLink)&&void 0!==Q?Q:"
"),' \n
\n
\n ').concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(M(),"
\n
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style4":$.positions={top:b("justify-top items-center p-6"),center:b("items-center justify-center"),bottom:b("justify-end items-center p-6")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ").concat(y(),"\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat($.bannerLink?$.bannerLink:"".concat($.locale.bannerLinkDescription,'
').concat(null!==(re=$.text)&&void 0!==re&&re.bannerLinkLabel?$.text.bannerLinkLabel:$.locale.bannerLinkLabel," "),' \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n \n
\n
\n
\n
\n ').concat(M(b("text-white")),"\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"","\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style5":$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.closeButton?'
× '):"","\n ").concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n ").concat(M(),"\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style6":$.positions={center:b("items-center justify-center"),bottom:b("justify-end items-center"),top:b("justify-top items-center")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"","\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(Ce=$.bannerLink)&&void 0!==Ce?Ce:"
"),' \n
\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"",'\n
').concat(M(b("text-white underline")),"
\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),g("yesCookies"),J();break;case"style7":$.positions={top:b("justify-top items-start top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,'
\n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,'
\n \n
\n
').concat(M(),"
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H();break;case"style8":var st=U("JgcPreferences");$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptSelectedShortText:$.text.acceptSelectedText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
\n
\n
\n
=4?"".concat(b("md:grid-cols-4")):"",'\n ">\n ').concat($.generateOptions(),'\n
\n
').concat(M(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return q()})),H(),document.getElementById("acceptSelected").addEventListener("click",(function(){return $.closePreferencePanel()}));break;case"style9":if(!$.bannerConfig.shortText)throw"You need to turn on the 'shortText' property in order to use style 9 correctly.";$.positions={top:b("justify-top top-4"),bottom:b("justify-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:"".concat($.bannerConfig.shortText?$.locale.bannerShortDescription:$.locale.bannerDescription)),'
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n
\n "),document.body.appendChild($.banner),R(),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),document.getElementById("noCookies").addEventListener("click",(function(){return $.noCookies()})),g("yesCookies"),g("noCookies")}}(this.config.layout),function(){if(null==U("JgcPreferences").refresh&&$.panel&&$.panel.open){var e=document.getElementById("bannerContent");"style8"==$.config.layout?(e.remove(),setTimeout((function(){O()}),200)):O()}}(),this.checkCookies())}}])&&o(n.prototype,c),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}());export{$ as default};
diff --git a/dist/justgoodcookies.js b/dist/justgoodcookies.js
index 467665c..14c91e3 100644
--- a/dist/justgoodcookies.js
+++ b/dist/justgoodcookies.js
@@ -1,5 +1,5 @@
/**
- * Copyright 2022
+ * Copyright - 2022
* JustGoodCookies
* Created by Francesco Mugnai
* Released under MIT License
@@ -1144,7 +1144,7 @@
var _JGC$panel, _JGC$customStyle8, _JGC$panel2, _JGC$customStyle9, _JGC$customStyle10, _JGC$text, _JGC$customStyle11, _JGC$text2, _JGC$customStyle12, _JGC$text3;
var cookiePanel = document.createElement("div");
- cookiePanel.innerHTML = "\n \n ").concat(JGC.panelHeader ? "") : '', "\n
\n
\n
\n ").concat((_JGC$text = JGC.text) !== null && _JGC$text !== void 0 && _JGC$text.panelTitle ? JGC.text.panelTitle : '', " \n \n
\n \n ").concat((_JGC$text2 = JGC.text) !== null && _JGC$text2 !== void 0 && _JGC$text2.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue, " \n \n \n ").concat((_JGC$text3 = JGC.text) !== null && _JGC$text3 !== void 0 && _JGC$text3.saveAllButton ? JGC.text.saveAllButton : JGC.locale.saveAndContinueAcceptAll, " \n \n
\n
\n
\n
\n ").concat(generateOptions(), "\n
\n
\n
\n ").concat(JGC.panelFooter ? "") : '', "\n
\n \n ");
+ cookiePanel.innerHTML = "\n \n ").concat(JGC.panelHeader ? "") : '', "\n
\n
\n
\n ").concat((_JGC$text = JGC.text) !== null && _JGC$text !== void 0 && _JGC$text.panelTitle ? JGC.text.panelTitle : '', " \n \n
\n \n ").concat((_JGC$text2 = JGC.text) !== null && _JGC$text2 !== void 0 && _JGC$text2.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue, " \n \n \n ").concat((_JGC$text3 = JGC.text) !== null && _JGC$text3 !== void 0 && _JGC$text3.saveAllButton ? JGC.text.saveAllButton : JGC.locale.saveAndContinueAcceptAll, " \n \n
\n
\n
\n
\n ").concat(generateOptions(), "\n
\n
\n
\n ").concat(JGC.panelFooter ? "") : '', "\n
\n \n ");
document.body.appendChild(cookiePanel);
if (JGC.panelHeader) document.getElementById('jgc-custom-header').innerHTML = JGC.panelHeader;
if (JGC.panelFooter) document.getElementById('jgc-custom-footer').innerHTML = JGC.panelFooter;
diff --git a/dist/justgoodcookies.min.js b/dist/justgoodcookies.min.js
index 94b2bd2..7c2be88 100644
--- a/dist/justgoodcookies.min.js
+++ b/dist/justgoodcookies.min.js
@@ -1,5 +1,5 @@
/**
- * Copyright 2022
+ * Copyright - 2022
* JustGoodCookies
* Created by Francesco Mugnai
* Released under MIT License
@@ -7,4 +7,4 @@
* https://github.com/francescomugnai/just-good-cookies
*/
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.entries.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.object.values.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.string.split.js"),require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.json.stringify.js"),require("core-js/modules/es.regexp.test.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url-search-params.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.string.match.js")):"function"==typeof define&&define.amd?define(["core-js/modules/es.regexp.exec.js","core-js/modules/es.string.replace.js","core-js/modules/es.object.keys.js","core-js/modules/es.object.entries.js","core-js/modules/es.array.concat.js","core-js/modules/es.object.to-string.js","core-js/modules/web.dom-collections.for-each.js","core-js/modules/es.array.includes.js","core-js/modules/es.string.includes.js","core-js/modules/es.object.values.js","core-js/modules/es.regexp.to-string.js","core-js/modules/es.array.slice.js","core-js/modules/es.string.split.js","core-js/modules/es.string.trim.js","core-js/modules/es.json.stringify.js","core-js/modules/es.regexp.test.js","core-js/modules/es.array.join.js","core-js/modules/es.array.map.js","core-js/modules/es.symbol.js","core-js/modules/es.symbol.description.js","core-js/modules/es.array.iterator.js","core-js/modules/es.string.iterator.js","core-js/modules/web.dom-collections.iterator.js","core-js/modules/web.url.js","core-js/modules/web.url-search-params.js","core-js/modules/es.array.index-of.js","core-js/modules/es.string.match.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).justgoodcookies=t()}(this,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){l=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw a}}}}function d(){var e={default:function(){},GoogleAnalytics:function(){return function(){var e,t,n,o,c,a,r,i,l=document.createElement("script"),s=document.createElement("script"),d=!(null===(e=$.activate)||void 0===e||null===(t=e.GoogleAnalytics)||void 0===t||!t.id)&&$.activate.GoogleAnalytics.id.escape(),u=!(null===(n=$.activate)||void 0===n||null===(o=n.GoogleAnalytics)||void 0===o||!o.anonymized)&&$.activate.GoogleAnalytics.anonymized,g=!(null===(c=$.activate)||void 0===c||null===(a=c.GoogleAnalytics)||void 0===a||!a.ad_storage)&&$.activate.GoogleAnalytics.ad_storage,b=!(null===(r=$.activate)||void 0===r||null===(i=r.GoogleAnalytics)||void 0===i||!i.analytics_storage)&&$.activate.GoogleAnalytics.analytics_storage;l.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=".concat(d)),document.head.appendChild(l),s.text="window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('consent', 'default', {\n 'ad_storage': '".concat(1==g?"granted":"denied","',\n 'analytics_storage': '").concat(1==b?"granted":"denied","',\n });\n gtag('js', new Date());\n gtag('config', '").concat(d,"', { 'anonymize_ip': ").concat(null!=u&&u," });"),document.head.appendChild(s)}()},FacebookPixel:function(){return function(){var e;if(null!==(e=$.activate)&&void 0!==e&&e.FacebookPixel){var t=$.activate.FacebookPixel.init.escape(),n=document.createElement("noscript"),o=document.createElement("script");o.text="\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(t,"');\n fbq('track', 'PageView');"),document.head.appendChild(o),n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("style","display:none"),n.setAttribute("src","https://www.facebook.com/tr?id=".concat(t,"&ev=PageView&noscript=1")),document.head.appendChild(n)}}()}};$.activate&&Object.keys($.activate).forEach((function(t){return(e[t]||e.default)()}))}function u(){var e;if(null!==(e=$.activate)&&void 0!==e&&e.GoogleTagManager){var t={event:$.activate.GoogleTagManager.event_name},n=$.activate.GoogleTagManager.container_id;!function(e,t,n,o,c){e[o]=e[o]||[],e[o].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var a=t.getElementsByTagName(n)[0],r=t.createElement(n),i="dataLayer"!=o?"&l="+o:"";r.async=!0,r.src="//www.googletagmanager.com/gtm.js?id="+c+i,a.parentNode.insertBefore(r,a)}(window,document,"script","dataLayer",n),$.activate.GoogleTagManager.variables&&$.activate.GoogleTagManager.variables.forEach((function(e){return t[e[0]]=e[1]})),"undefined"!=typeof dataLayer&&dataLayer.push(t)}}function g(e){document.getElementById(e).addEventListener("keyup",(function(t){if(13===t.keyCode)return t.preventDefault(),"JGC."+e+"()"}))}function b(e){var t=/:/;if(b){if(/\s/.test(e))return r(e.split(/[ ,]+/)).map((function(e){if(t.test(e)){var n=e.split(":")[0],o="";if(e.includes("dark:group-hover")){var c=e.split(":")[1];o=e.replace(n+":"+c+":","".concat(n,":").concat(c,":").concat($.tailwindPrefix))}else o=e.replace(n+":","".concat(n,":").concat($.tailwindPrefix));return o}return $.tailwindPrefix+e})).join(" ");if(t.test(e)){var n=e.split(":")[0],o="";if(e.includes("dark:group-hover")){var c=el.split(":")[1];o=e.replace(n+":"+c+":","".concat(n,":").concat(c,":").concat($.tailwindPrefix))}else o=e.replace(n+":","".concat(n,":").concat($.tailwindPrefix));return o}return $.tailwindPrefix+e}}function f(e){var t;if(null===(t=$.bannerConfig)||void 0===t||!t.maxWidth)return b(e);switch($.bannerConfig.maxWidth){case"xs":return b("max-w-xs");case"sm":return b("max-w-sm");case"md":return b("max-w-md");case"lg":return b("max-w-lg");case"xl":return b("max-w-xl");case"2xl":return b("max-w-2xl");case"3xl":return b("max-w-3xl");case"4xl":return b("max-w-4xl");case"5xl":return b("max-w-5xl");case"6xl":return b("max-w-6xl");case"7xl":return b("max-w-7xl");case"full":return b("max-w-full");case"min":return b("max-w-min");case"max":return b("max-w-max")}}function m(e,t){if("undefined"!=e&&"boolean"==typeof e)return!0;if("undefined"!=e)return!1;throw': "'.concat(t,'" is not valid, must be a boolean.')}function p(e,t){if("function"==typeof e)return e;throw': "'.concat(t,'" is not valid, must be a function.')}function v(e,t){if("string"==typeof e||e instanceof String)return e.escape();if("object"===n(e)||e instanceof Object)return e[$.localeString].escape();throw': "'.concat(t,'" is not valid, must be a string or an object.')}function x(){return $.bannerConfig.icon&&1!=$.darkMode?' '):$.bannerConfig.icon&&1==$.darkMode?' '):null==$.bannerConfig.icon?"":void 0}function y(){return"".concat($.bannerConfig.logo?' '):"")}function h(e){var t,n,o=e.getAttribute("data-jgc-placeholder-text")||(null===(t=$.placeholder)||void 0===t?void 0:t.text),c=e.getAttribute("data-jgc-placeholder-img")||(null===(n=$.placeholder)||void 0===n?void 0:n.image);if("IFRAME"==e.tagName&&(o||c)){var a,i=e.getAttribute("src")||e.getAttribute("data-jgc-src"),l=e.getAttribute("data-jgc-tag"),s=document.createElement("div");if(c&&s.setAttribute("style","background-image: url(".concat(function(e){var t,n=e.getAttribute("data-jgc-placeholder-img");if((null==n?void 0:n.length)>0&&"disable"!=n)return n;if(null!==(t=$.placeholder)&&void 0!==t&&t.image&&!n)return $.placeholder.image;if(n&&"disable"==n)return}(e),")")),s.setAttribute("data-jgc-placeholder-id",i),l&&(s.setAttribute("data-jgc-placeholder-tag",l),s.setAttribute("data-jgc-placeholder-height",e.getAttribute("height"))),s.classList.add(b("flex")),s.classList.add(b("md:pt-0")),s.classList.add(b("pt-[56.25%]")),s.classList.add(b("md:w-[".concat(j(e,"width"),"]"))),s.classList.add(b("md:h-[".concat(j(e,"height"),"]"))),s.classList.add(b("w-full")),s.classList.add(b("items-center")),s.classList.add(b("justify-center")),s.classList.add(b("bg-gray-100")),s.classList.add(b("cursor-pointer")),null!==(a=$.placeholder)&&void 0!==a&&a.classes)for(var d=r($.placeholder.classes.split(/[ ,]+/)),u=0;u0)for(var t=0;t0){var s=c[0].getAttribute(["data-jgc-placeholder-height"]);l.setAttribute("height","".concat(s,"px"))}}if(c)for(var d=0;d-1,c=e.getAttribute(t).indexOf("px")>-1;return o||c?e.getAttribute(t):e.getAttribute(t)+"px"}if(n){var a=n.replace(/\s/g,"").replace(/^.*{([^}]+)}.*/,"$1").match(/([^;]+)/g),r="";return a.forEach((function(e){e.includes(t)&&(r=e.split(":").pop())})),r}};function C(){for(var e=U("JgcPreferences"),n=function(){var e=a(c[o],2),t=e[0],n=e[1],r='[data-jgc-tag="'.concat(t,'"]'),i=document.querySelectorAll(r);1==n?L(r):i.forEach((function(e){e.parentNode.hasAttribute("data-jgc-placeholder")?h(e):0!=n&&(e.classList.add(b("hidden")),e.innerHTML="")}))},o=0,c=Object.entries(e.preferences);o0&&w(!0)}function S(){for(var e=JSON.parse(localStorage.getItem("JgcPreferences")),t=0,n=Object.entries(e);t0){var o=t(t({},U("JgcPreferences")),{},{remove:n.length});F(o);var c=U("JgcPreferences"),a=[];n.forEach((function(e){var n=e.getAttribute("data-jgc-service");if(n&&n.length>0){var r={service:n,tag:e.getAttribute("data-jgc-tag")};a.push(r),F(t(t({},o),{},{servicesRemoved:a}))}c.preferences[e.getAttribute("data-jgc-tag")]&&0!=c.preferences[e.getAttribute("data-jgc-tag")]||e.remove()}))}else{var r=U("JgcPreferences"),i=t(t({},r),{},{remove:0});if(F(i),!r.refresh)F(t(t({},i),{},{refresh:!0})),window.location.reload()}}function L(e){for(var t=document.querySelectorAll(e),n=function(e){var n=t[e];n.style.display="",n.style.backgroundColor="";var o=n.getAttribute("data-jgc-type");o&&n.setAttribute("type",o);var c=n.getAttribute("data-jgc-src")?n.getAttribute("data-jgc-src").escape():null;c&&("undefined"!=typeof InstallTrigger?setTimeout((function(){n.setAttribute("src",c)}),100):n.setAttribute("src",c),n.classList.remove(b("hidden")));if(n.hasAttribute("data-jgc-remove")&&n.hasChildNodes())for(var a=0;a0&&t.enable.includes(d)&&(e+='\n \n
\n
\n
\n
\n ').concat("necessary"==d?'\n \n '):"",'\n \n
\n
\n
\n
\n
\n
\n
').concat(u.title,' \n \n
').concat(u.description,"
\n ").concat(function(e){var t,n,o,c=document.querySelectorAll('[data-jgc-tag="'.concat(e,'"]')),a=[],r=[],i=U("JgcPreferences"),l=void 0;if(c)for(var s=0;s
0&&!i.duration&&!l)for(var g=0;g \n ').concat(a.length>0?'').concat($.text.servicesTag," "):"",'\n ').concat(a,"
\n ")}(d),"\n
\n "),setTimeout((function(){document.getElementById("toggle-".concat(d,"-right"))&&document.getElementById("toggle-".concat(d,"-right")).addEventListener("click",(function(){return B("".concat(d))}));var e=document.getElementById("toggle-".concat(d));e&&e.addEventListener("keyup",(function(e){13===e.keyCode&&(e.preventDefault(),B("".concat(d)))})),"style8"==$.config.layout&&I()}),1))},o=0,c=Object.entries($.getCustomCookies);o').concat(e,"")}function q(){if(document.body.classList.add(b("overflow-hidden")),M(),null!=document.querySelector("#preferenceDiv"))document.querySelector("#preferenceDiv").classList.remove(b("hidden"));else{var e,t,n,o,c,a,r,i,l,s,d=document.createElement("div");d.innerHTML='\n \n ').concat($.panelHeader?''):"",'\n
\n \n
\n
\n ').concat(P(),"\n
\n
\n
\n ").concat($.panelFooter?''):"","\n
\n \n "),document.body.appendChild(d),$.panelHeader&&(document.getElementById("jgc-custom-header").innerHTML=$.panelHeader),$.panelFooter&&(document.getElementById("jgc-custom-footer").innerHTML=$.panelFooter),document.getElementById("closePreferencePanel").addEventListener("click",(function(){return E()})),document.getElementById("closePreferencePanelAcceptAll").addEventListener("click",(function(){return D()}))}I()}function O(){var e;e=t({},U("JgcPreferences").preferences),localStorage.setItem("JgcPreferences",JSON.stringify(e)),document.getElementById("openPanel").addEventListener("click",(function(){return q()}))}function J(e){var t,n,o;return document.createElement("div").innerHTML='\n \n ').concat(null!==(o=$.text.preferencesText)&&void 0!==o?o:"Manage and choose cookies"," \n ")}function M(){var e=document.getElementById("bannerContent");e&&(e.classList.add(b("opacity-0"),b("pointer-events-none")),"style8"!=$.config.layout?setTimeout((function(){e.remove()}),700):e.remove())}function _(){$.bannerConfig.closeButtonAccept?$.yesCookies():$.noCookies()}function H(){var e;document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),g("yesCookies"),0==(null===(e=$.bannerConfig)||void 0===e?void 0:e.disableReject)&&(document.getElementById("noCookies").addEventListener("click",(function(){return $.noCookies()})),g("noCookies")),O()}function R(){var e;if($.bannerConfig.animation){var t=document.getElementById("bannerContent");switch((null===(e=$.bannerConfig)||void 0===e?void 0:e.position)||"bottom"){case"top":if(t){"style7"==$.config.layout&&(document.getElementById("jgc-close-button").classList.remove(b("-top-[8px]")),document.getElementById("jgc-close-button").classList.remove(b("rounded-tr-lg")),document.getElementById("jgc-close-button").classList.remove(b("rounded-tl-lg")),document.getElementById("jgc-close-button").classList.add(b("-bottom-[40px]")),document.getElementById("jgc-close-button").classList.add(b("rounded-br-lg")),document.getElementById("jgc-close-button").classList.add(b("rounded-bl-lg"))),t.classList.add(b("-translate-y-full")),setTimeout((function(){t.classList.remove(b("-translate-y-full")),t.classList.add(b("translate-y-0"))}),300);break}case"bottom":t&&(t.classList.add(b("translate-y-full")),setTimeout((function(){t.classList.remove(b("translate-y-full"))}),300))}}}function N(){return $.banner.style.display=""}function G(e){var n=U("JgcPreferences"),o=24*$.cookieTimeout*60*60*1e3,c=new Date;c.setTime(c.getTime()+o);var a={value:e,expiry:c.toString()};if(n.duration){var r=new Date,i=new Date(n.duration.expiry);if(r.setHours(0,0,0,0)>=i.setHours(0,0,0,0)){var l=U("JgcPreferences");delete l.duration;var s={value:"1",expiry:c.toString()};F(t(t({},l),{},{duration:s})),N()}}else{var d=U("JgcPreferences"),u=Date.now()+Math.random().toString(16).slice(2);F(t(t({},d),{},{duration:a,id:u}))}}function U(e){var t={};return document.cookie.split(";").forEach((function(e){var n=a(e.split("="),2),o=n[0],c=n[1];t[o.trim()]=c})),t[e]?JSON.parse(t[e]):null}function F(e){var t=U("JgcPreferences");if(t&&t.duration){var n=t.duration.expiry;document.cookie="JgcPreferences=".concat(JSON.stringify(e),";expires= ").concat(n,";path=/;SameSite=Strict")}else document.cookie="JgcPreferences=".concat(JSON.stringify(e),";path=/;SameSite=Strict;")}function W(e){var t=Object.keys($.autoCategories),n=[];if(e)for(var o=0,c=Object.entries($.autoCategories);o":">","<":"<","&":"&"};return this.replace(/[&<>]/g,(function(t){return e[t]||t}))}}var n,c,r;return n=e,(c=[{key:"checkCookies",value:function(){var e=U("JgcPreferences");if(e.duration)switch(e.duration.value){case"0":this.auto&&W(),G(),T();break;case"1":bannerContent.classList.add(b("hidden")),function(){if($.auto){for(var e=U("JgcPreferences"),t=[],n=0,o=Object.entries(e.preferences);n0?w(!0):(u(),k()),this.onAccept&&"function"==typeof this.onAccept&&this.onAccept(),M(),S(),this.bannerConfig.onAccept||window.location.reload(),document.getElementById("preferenceDiv")&&E()}},{key:"noCookies",value:function(){G("0"),F(t({},U("JgcPreferences"))),this.onReject&&"function"==typeof this.onReject&&this.onReject(),M()}},{key:"init",value:function(e){var n,o,c,r,i,l,d,u,h,k,j,C,T,S,w,L,A,B,I,E,D,P,z,M,N,G,W,K,Q,X,Z,ee,te,ne,oe,ce,ae,re,ie,le,se,de,ue,ge,be,fe,me,pe,ve,xe,ye,he,ke;if(e.locale&&(this.locales=Y,this.locale=this.locales[e.locale.escape()]||this.locales.en,this.localeString=e.locale),e.autoMode&&m(e.autoMode,"autoMode")){if(!U("JgcPreferences")){var je,Ce=s(document.querySelectorAll("iframe,script"));try{for(Ce.s();!(je=Ce.n()).done;)je.value.classList.add(b("hidden"))}catch(e){Ce.e(e)}finally{Ce.f()}}if(this.auto=!0,e.autoCategories){for(var Te=0,Se=Object.keys(e.autoCategories);Te\n \n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat(y(),'\n
\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText," \n ").concat(0==(null===(P=$.bannerConfig)||void 0===P?void 0:P.disableReject)?'').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," "):"","\n
\n
").concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style2":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n ').concat(y(),"\n ").concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
").concat(null!==(F=$.bannerLink)&&void 0!==F?F:"
"),'
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style3":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(Q=$.bannerLink)&&void 0!==Q?Q:"
"),' \n
\n
\n ').concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(J(),"
\n
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style4":$.positions={top:b("justify-top items-center p-6"),center:b("items-center justify-center"),bottom:b("justify-end items-center p-6")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ").concat(y(),"\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat($.bannerLink?$.bannerLink:"".concat($.locale.bannerLinkDescription,'
').concat(null!==(re=$.text)&&void 0!==re&&re.bannerLinkLabel?$.text.bannerLinkLabel:$.locale.bannerLinkLabel," "),' \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n \n
\n
\n
\n
\n ').concat(J(b("text-white")),"\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"","\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style5":$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.closeButton?'
× '):"","\n ").concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n ").concat(J(),"\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style6":$.positions={center:b("items-center justify-center"),bottom:b("justify-end items-center"),top:b("justify-top items-center")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"","\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(je=$.bannerLink)&&void 0!==je?je:"
"),' \n
\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"",'\n
').concat(J(b("text-white underline")),"
\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),g("yesCookies"),O();break;case"style7":$.positions={top:b("justify-top items-start top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,'
\n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,'
\n \n
\n
').concat(J(),"
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style8":var st=U("JgcPreferences");$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptSelectedShortText:$.text.acceptSelectedText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
\n
\n
\n
=4?"".concat(b("md:grid-cols-4")):"",'\n ">\n ').concat($.generateOptions(),'\n
\n
').concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H(),document.getElementById("acceptSelected").addEventListener("click",(function(){return $.closePreferencePanel()}));break;case"style9":if(!$.bannerConfig.shortText)throw"You need to turn on the 'shortText' property in order to use style 9 correctly.";$.positions={top:b("justify-top top-4"),bottom:b("justify-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:"".concat($.bannerConfig.shortText?$.locale.bannerShortDescription:$.locale.bannerDescription)),'
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n
\n "),document.body.appendChild($.banner),R(),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),document.getElementById("noCookies").addEventListener("click",(function(){return $.noCookies()})),g("yesCookies"),g("noCookies")}}(this.config.layout),function(){if(null==U("JgcPreferences").refresh&&$.panel&&$.panel.open){var e=document.getElementById("bannerContent");"style8"==$.config.layout?(e.remove(),setTimeout((function(){q()}),200)):q()}}(),this.checkCookies())}}])&&o(n.prototype,c),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}());return $}));
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.replace.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.object.entries.js"),require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.object.values.js"),require("core-js/modules/es.regexp.to-string.js"),require("core-js/modules/es.array.slice.js"),require("core-js/modules/es.string.split.js"),require("core-js/modules/es.string.trim.js"),require("core-js/modules/es.json.stringify.js"),require("core-js/modules/es.regexp.test.js"),require("core-js/modules/es.array.join.js"),require("core-js/modules/es.array.map.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/web.url.js"),require("core-js/modules/web.url-search-params.js"),require("core-js/modules/es.array.index-of.js"),require("core-js/modules/es.string.match.js")):"function"==typeof define&&define.amd?define(["core-js/modules/es.regexp.exec.js","core-js/modules/es.string.replace.js","core-js/modules/es.object.keys.js","core-js/modules/es.object.entries.js","core-js/modules/es.array.concat.js","core-js/modules/es.object.to-string.js","core-js/modules/web.dom-collections.for-each.js","core-js/modules/es.array.includes.js","core-js/modules/es.string.includes.js","core-js/modules/es.object.values.js","core-js/modules/es.regexp.to-string.js","core-js/modules/es.array.slice.js","core-js/modules/es.string.split.js","core-js/modules/es.string.trim.js","core-js/modules/es.json.stringify.js","core-js/modules/es.regexp.test.js","core-js/modules/es.array.join.js","core-js/modules/es.array.map.js","core-js/modules/es.symbol.js","core-js/modules/es.symbol.description.js","core-js/modules/es.array.iterator.js","core-js/modules/es.string.iterator.js","core-js/modules/web.dom-collections.iterator.js","core-js/modules/web.url.js","core-js/modules/web.url-search-params.js","core-js/modules/es.array.index-of.js","core-js/modules/es.string.match.js"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).justgoodcookies=t()}(this,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){l=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw a}}}}function d(){var e={default:function(){},GoogleAnalytics:function(){return function(){var e,t,n,o,c,a,r,i,l=document.createElement("script"),s=document.createElement("script"),d=!(null===(e=$.activate)||void 0===e||null===(t=e.GoogleAnalytics)||void 0===t||!t.id)&&$.activate.GoogleAnalytics.id.escape(),u=!(null===(n=$.activate)||void 0===n||null===(o=n.GoogleAnalytics)||void 0===o||!o.anonymized)&&$.activate.GoogleAnalytics.anonymized,g=!(null===(c=$.activate)||void 0===c||null===(a=c.GoogleAnalytics)||void 0===a||!a.ad_storage)&&$.activate.GoogleAnalytics.ad_storage,b=!(null===(r=$.activate)||void 0===r||null===(i=r.GoogleAnalytics)||void 0===i||!i.analytics_storage)&&$.activate.GoogleAnalytics.analytics_storage;l.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=".concat(d)),document.head.appendChild(l),s.text="window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('consent', 'default', {\n 'ad_storage': '".concat(1==g?"granted":"denied","',\n 'analytics_storage': '").concat(1==b?"granted":"denied","',\n });\n gtag('js', new Date());\n gtag('config', '").concat(d,"', { 'anonymize_ip': ").concat(null!=u&&u," });"),document.head.appendChild(s)}()},FacebookPixel:function(){return function(){var e;if(null!==(e=$.activate)&&void 0!==e&&e.FacebookPixel){var t=$.activate.FacebookPixel.init.escape(),n=document.createElement("noscript"),o=document.createElement("script");o.text="\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat(t,"');\n fbq('track', 'PageView');"),document.head.appendChild(o),n.setAttribute("width","1"),n.setAttribute("height","1"),n.setAttribute("style","display:none"),n.setAttribute("src","https://www.facebook.com/tr?id=".concat(t,"&ev=PageView&noscript=1")),document.head.appendChild(n)}}()}};$.activate&&Object.keys($.activate).forEach((function(t){return(e[t]||e.default)()}))}function u(){var e;if(null!==(e=$.activate)&&void 0!==e&&e.GoogleTagManager){var t={event:$.activate.GoogleTagManager.event_name},n=$.activate.GoogleTagManager.container_id;!function(e,t,n,o,c){e[o]=e[o]||[],e[o].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var a=t.getElementsByTagName(n)[0],r=t.createElement(n),i="dataLayer"!=o?"&l="+o:"";r.async=!0,r.src="//www.googletagmanager.com/gtm.js?id="+c+i,a.parentNode.insertBefore(r,a)}(window,document,"script","dataLayer",n),$.activate.GoogleTagManager.variables&&$.activate.GoogleTagManager.variables.forEach((function(e){return t[e[0]]=e[1]})),"undefined"!=typeof dataLayer&&dataLayer.push(t)}}function g(e){document.getElementById(e).addEventListener("keyup",(function(t){if(13===t.keyCode)return t.preventDefault(),"JGC."+e+"()"}))}function b(e){var t=/:/;if(b){if(/\s/.test(e))return r(e.split(/[ ,]+/)).map((function(e){if(t.test(e)){var n=e.split(":")[0],o="";if(e.includes("dark:group-hover")){var c=e.split(":")[1];o=e.replace(n+":"+c+":","".concat(n,":").concat(c,":").concat($.tailwindPrefix))}else o=e.replace(n+":","".concat(n,":").concat($.tailwindPrefix));return o}return $.tailwindPrefix+e})).join(" ");if(t.test(e)){var n=e.split(":")[0],o="";if(e.includes("dark:group-hover")){var c=el.split(":")[1];o=e.replace(n+":"+c+":","".concat(n,":").concat(c,":").concat($.tailwindPrefix))}else o=e.replace(n+":","".concat(n,":").concat($.tailwindPrefix));return o}return $.tailwindPrefix+e}}function f(e){var t;if(null===(t=$.bannerConfig)||void 0===t||!t.maxWidth)return b(e);switch($.bannerConfig.maxWidth){case"xs":return b("max-w-xs");case"sm":return b("max-w-sm");case"md":return b("max-w-md");case"lg":return b("max-w-lg");case"xl":return b("max-w-xl");case"2xl":return b("max-w-2xl");case"3xl":return b("max-w-3xl");case"4xl":return b("max-w-4xl");case"5xl":return b("max-w-5xl");case"6xl":return b("max-w-6xl");case"7xl":return b("max-w-7xl");case"full":return b("max-w-full");case"min":return b("max-w-min");case"max":return b("max-w-max")}}function m(e,t){if("undefined"!=e&&"boolean"==typeof e)return!0;if("undefined"!=e)return!1;throw': "'.concat(t,'" is not valid, must be a boolean.')}function p(e,t){if("function"==typeof e)return e;throw': "'.concat(t,'" is not valid, must be a function.')}function v(e,t){if("string"==typeof e||e instanceof String)return e.escape();if("object"===n(e)||e instanceof Object)return e[$.localeString].escape();throw': "'.concat(t,'" is not valid, must be a string or an object.')}function x(){return $.bannerConfig.icon&&1!=$.darkMode?' '):$.bannerConfig.icon&&1==$.darkMode?' '):null==$.bannerConfig.icon?"":void 0}function y(){return"".concat($.bannerConfig.logo?' '):"")}function h(e){var t,n,o=e.getAttribute("data-jgc-placeholder-text")||(null===(t=$.placeholder)||void 0===t?void 0:t.text),c=e.getAttribute("data-jgc-placeholder-img")||(null===(n=$.placeholder)||void 0===n?void 0:n.image);if("IFRAME"==e.tagName&&(o||c)){var a,i=e.getAttribute("src")||e.getAttribute("data-jgc-src"),l=e.getAttribute("data-jgc-tag"),s=document.createElement("div");if(c&&s.setAttribute("style","background-image: url(".concat(function(e){var t,n=e.getAttribute("data-jgc-placeholder-img");if((null==n?void 0:n.length)>0&&"disable"!=n)return n;if(null!==(t=$.placeholder)&&void 0!==t&&t.image&&!n)return $.placeholder.image;if(n&&"disable"==n)return}(e),")")),s.setAttribute("data-jgc-placeholder-id",i),l&&(s.setAttribute("data-jgc-placeholder-tag",l),s.setAttribute("data-jgc-placeholder-height",e.getAttribute("height"))),s.classList.add(b("flex")),s.classList.add(b("md:pt-0")),s.classList.add(b("pt-[56.25%]")),s.classList.add(b("md:w-[".concat(j(e,"width"),"]"))),s.classList.add(b("md:h-[".concat(j(e,"height"),"]"))),s.classList.add(b("w-full")),s.classList.add(b("items-center")),s.classList.add(b("justify-center")),s.classList.add(b("bg-gray-100")),s.classList.add(b("cursor-pointer")),null!==(a=$.placeholder)&&void 0!==a&&a.classes)for(var d=r($.placeholder.classes.split(/[ ,]+/)),u=0;u0)for(var t=0;t0){var s=c[0].getAttribute(["data-jgc-placeholder-height"]);l.setAttribute("height","".concat(s,"px"))}}if(c)for(var d=0;d-1,c=e.getAttribute(t).indexOf("px")>-1;return o||c?e.getAttribute(t):e.getAttribute(t)+"px"}if(n){var a=n.replace(/\s/g,"").replace(/^.*{([^}]+)}.*/,"$1").match(/([^;]+)/g),r="";return a.forEach((function(e){e.includes(t)&&(r=e.split(":").pop())})),r}};function C(){for(var e=U("JgcPreferences"),n=function(){var e=a(c[o],2),t=e[0],n=e[1],r='[data-jgc-tag="'.concat(t,'"]'),i=document.querySelectorAll(r);1==n?L(r):i.forEach((function(e){e.parentNode.hasAttribute("data-jgc-placeholder")?h(e):0!=n&&(e.classList.add(b("hidden")),e.innerHTML="")}))},o=0,c=Object.entries(e.preferences);o0&&w(!0)}function S(){for(var e=JSON.parse(localStorage.getItem("JgcPreferences")),t=0,n=Object.entries(e);t0){var o=t(t({},U("JgcPreferences")),{},{remove:n.length});F(o);var c=U("JgcPreferences"),a=[];n.forEach((function(e){var n=e.getAttribute("data-jgc-service");if(n&&n.length>0){var r={service:n,tag:e.getAttribute("data-jgc-tag")};a.push(r),F(t(t({},o),{},{servicesRemoved:a}))}c.preferences[e.getAttribute("data-jgc-tag")]&&0!=c.preferences[e.getAttribute("data-jgc-tag")]||e.remove()}))}else{var r=U("JgcPreferences"),i=t(t({},r),{},{remove:0});if(F(i),!r.refresh)F(t(t({},i),{},{refresh:!0})),window.location.reload()}}function L(e){for(var t=document.querySelectorAll(e),n=function(e){var n=t[e];n.style.display="",n.style.backgroundColor="";var o=n.getAttribute("data-jgc-type");o&&n.setAttribute("type",o);var c=n.getAttribute("data-jgc-src")?n.getAttribute("data-jgc-src").escape():null;c&&("undefined"!=typeof InstallTrigger?setTimeout((function(){n.setAttribute("src",c)}),100):n.setAttribute("src",c),n.classList.remove(b("hidden")));if(n.hasAttribute("data-jgc-remove")&&n.hasChildNodes())for(var a=0;a0&&t.enable.includes(d)&&(e+='\n \n
\n
\n
\n
\n ').concat("necessary"==d?'\n \n '):"",'\n \n
\n
\n
\n
\n
\n
\n
').concat(u.title,' \n \n
').concat(u.description,"
\n ").concat(function(e){var t,n,o,c=document.querySelectorAll('[data-jgc-tag="'.concat(e,'"]')),a=[],r=[],i=U("JgcPreferences"),l=void 0;if(c)for(var s=0;s
0&&!i.duration&&!l)for(var g=0;g \n ').concat(a.length>0?'').concat($.text.servicesTag," "):"",'\n ').concat(a,"
\n ")}(d),"\n
\n "),setTimeout((function(){document.getElementById("toggle-".concat(d,"-right"))&&document.getElementById("toggle-".concat(d,"-right")).addEventListener("click",(function(){return B("".concat(d))}));var e=document.getElementById("toggle-".concat(d));e&&e.addEventListener("keyup",(function(e){13===e.keyCode&&(e.preventDefault(),B("".concat(d)))})),"style8"==$.config.layout&&I()}),1))},o=0,c=Object.entries($.getCustomCookies);o').concat(e,"")}function q(){if(document.body.classList.add(b("overflow-hidden")),M(),null!=document.querySelector("#preferenceDiv"))document.querySelector("#preferenceDiv").classList.remove(b("hidden"));else{var e,t,n,o,c,a,r,i,l,s,d=document.createElement("div");d.innerHTML='\n \n ').concat($.panelHeader?''):"",'\n
\n \n
\n
\n ').concat(P(),"\n
\n
\n
\n ").concat($.panelFooter?''):"","\n
\n \n "),document.body.appendChild(d),$.panelHeader&&(document.getElementById("jgc-custom-header").innerHTML=$.panelHeader),$.panelFooter&&(document.getElementById("jgc-custom-footer").innerHTML=$.panelFooter),document.getElementById("closePreferencePanel").addEventListener("click",(function(){return E()})),document.getElementById("closePreferencePanelAcceptAll").addEventListener("click",(function(){return D()}))}I()}function O(){var e;e=t({},U("JgcPreferences").preferences),localStorage.setItem("JgcPreferences",JSON.stringify(e)),document.getElementById("openPanel").addEventListener("click",(function(){return q()}))}function J(e){var t,n,o;return document.createElement("div").innerHTML='\n \n ').concat(null!==(o=$.text.preferencesText)&&void 0!==o?o:"Manage and choose cookies"," \n ")}function M(){var e=document.getElementById("bannerContent");e&&(e.classList.add(b("opacity-0"),b("pointer-events-none")),"style8"!=$.config.layout?setTimeout((function(){e.remove()}),700):e.remove())}function _(){$.bannerConfig.closeButtonAccept?$.yesCookies():$.noCookies()}function H(){var e;document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),g("yesCookies"),0==(null===(e=$.bannerConfig)||void 0===e?void 0:e.disableReject)&&(document.getElementById("noCookies").addEventListener("click",(function(){return $.noCookies()})),g("noCookies")),O()}function R(){var e;if($.bannerConfig.animation){var t=document.getElementById("bannerContent");switch((null===(e=$.bannerConfig)||void 0===e?void 0:e.position)||"bottom"){case"top":if(t){"style7"==$.config.layout&&(document.getElementById("jgc-close-button").classList.remove(b("-top-[8px]")),document.getElementById("jgc-close-button").classList.remove(b("rounded-tr-lg")),document.getElementById("jgc-close-button").classList.remove(b("rounded-tl-lg")),document.getElementById("jgc-close-button").classList.add(b("-bottom-[40px]")),document.getElementById("jgc-close-button").classList.add(b("rounded-br-lg")),document.getElementById("jgc-close-button").classList.add(b("rounded-bl-lg"))),t.classList.add(b("-translate-y-full")),setTimeout((function(){t.classList.remove(b("-translate-y-full")),t.classList.add(b("translate-y-0"))}),300);break}case"bottom":t&&(t.classList.add(b("translate-y-full")),setTimeout((function(){t.classList.remove(b("translate-y-full"))}),300))}}}function N(){return $.banner.style.display=""}function G(e){var n=U("JgcPreferences"),o=24*$.cookieTimeout*60*60*1e3,c=new Date;c.setTime(c.getTime()+o);var a={value:e,expiry:c.toString()};if(n.duration){var r=new Date,i=new Date(n.duration.expiry);if(r.setHours(0,0,0,0)>=i.setHours(0,0,0,0)){var l=U("JgcPreferences");delete l.duration;var s={value:"1",expiry:c.toString()};F(t(t({},l),{},{duration:s})),N()}}else{var d=U("JgcPreferences"),u=Date.now()+Math.random().toString(16).slice(2);F(t(t({},d),{},{duration:a,id:u}))}}function U(e){var t={};return document.cookie.split(";").forEach((function(e){var n=a(e.split("="),2),o=n[0],c=n[1];t[o.trim()]=c})),t[e]?JSON.parse(t[e]):null}function F(e){var t=U("JgcPreferences");if(t&&t.duration){var n=t.duration.expiry;document.cookie="JgcPreferences=".concat(JSON.stringify(e),";expires= ").concat(n,";path=/;SameSite=Strict")}else document.cookie="JgcPreferences=".concat(JSON.stringify(e),";path=/;SameSite=Strict;")}function W(e){var t=Object.keys($.autoCategories),n=[];if(e)for(var o=0,c=Object.entries($.autoCategories);o":">","<":"<","&":"&"};return this.replace(/[&<>]/g,(function(t){return e[t]||t}))}}var n,c,r;return n=e,(c=[{key:"checkCookies",value:function(){var e=U("JgcPreferences");if(e.duration)switch(e.duration.value){case"0":this.auto&&W(),G(),T();break;case"1":bannerContent.classList.add(b("hidden")),function(){if($.auto){for(var e=U("JgcPreferences"),t=[],n=0,o=Object.entries(e.preferences);n0?w(!0):(u(),k()),this.onAccept&&"function"==typeof this.onAccept&&this.onAccept(),M(),S(),this.bannerConfig.onAccept||window.location.reload(),document.getElementById("preferenceDiv")&&E()}},{key:"noCookies",value:function(){G("0"),F(t({},U("JgcPreferences"))),this.onReject&&"function"==typeof this.onReject&&this.onReject(),M()}},{key:"init",value:function(e){var n,o,c,r,i,l,d,u,h,k,j,C,T,S,w,L,A,B,I,E,D,P,z,M,N,G,W,K,Q,X,Z,ee,te,ne,oe,ce,ae,re,ie,le,se,de,ue,ge,be,fe,me,pe,ve,xe,ye,he,ke;if(e.locale&&(this.locales=Y,this.locale=this.locales[e.locale.escape()]||this.locales.en,this.localeString=e.locale),e.autoMode&&m(e.autoMode,"autoMode")){if(!U("JgcPreferences")){var je,Ce=s(document.querySelectorAll("iframe,script"));try{for(Ce.s();!(je=Ce.n()).done;)je.value.classList.add(b("hidden"))}catch(e){Ce.e(e)}finally{Ce.f()}}if(this.auto=!0,e.autoCategories){for(var Te=0,Se=Object.keys(e.autoCategories);Te\n \n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat(y(),'\n
\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText," \n ").concat(0==(null===(P=$.bannerConfig)||void 0===P?void 0:P.disableReject)?'').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," "):"","\n
\n
").concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style2":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n ').concat(y(),"\n ").concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
").concat(null!==(F=$.bannerLink)&&void 0!==F?F:"
"),'
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style3":$.positions={top:b("justify-top items-center top-0 mt-6"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-center bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n
\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title," \n \n ").concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(Q=$.bannerLink)&&void 0!==Q?Q:"
"),' \n
\n
\n ').concat($.bannerConfig.closeButton?'
× '):"",'\n
\n
\n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
').concat(J(),"
\n
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style4":$.positions={top:b("justify-top items-center p-6"),center:b("items-center justify-center"),bottom:b("justify-end items-center p-6")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ").concat(y(),"\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat($.bannerLink?$.bannerLink:"".concat($.locale.bannerLinkDescription,'
').concat(null!==(re=$.text)&&void 0!==re&&re.bannerLinkLabel?$.text.bannerLinkLabel:$.locale.bannerLinkLabel," "),' \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.bannerConfig.shortText:$.text.acceptText,' \n \n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n \n
\n
\n
\n
\n ').concat(J(b("text-white")),"\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"","\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style5":$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.closeButton?'
× '):"","\n ").concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n \n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n ").concat(J(),"\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style6":$.positions={center:b("items-center justify-center"),bottom:b("justify-end items-center"),top:b("justify-top items-center")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.backgroundImage?'\n
'):"","\n ").concat($.bannerConfig.closeButton?'
× '):"",' \n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n ').concat(y(),'\n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
\n ').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n ").concat(null!==(je=$.bannerLink)&&void 0!==je?je:"
"),' \n
\n
\n
\n ").concat($.bannerConfig.backgroundImage?"
":"",'\n
').concat(J(b("text-white underline")),"
\n
\n "),document.body.appendChild($.banner),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),g("yesCookies"),O();break;case"style7":$.positions={top:b("justify-top items-start top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("justify-end items-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n \n ').concat($.bannerConfig.closeButton?'
\n × '):"",'\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n ').concat(x(),'\n
').concat($.bannerConfig.title,' \n \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:$.locale.bannerDescription),"
\n
\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,'
\n \n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,'
\n \n
\n
').concat(J(),"
\n
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H();break;case"style8":var st=U("JgcPreferences");$.positions={top:b("top-0"),center:b("mx-auto top-1/2 -translate-y-1/2"),bottom:b("bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"",'\n
\n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptSelectedShortText:$.text.acceptSelectedText,' \n
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText,' \n
\n
\n
\n
\n
=4?"".concat(b("md:grid-cols-4")):"",'\n ">\n ').concat($.generateOptions(),'\n
\n
').concat(J(),"
\n
\n
\n "),document.body.appendChild($.banner),R(),$.bannerConfig.closeButton&&document.getElementById("jgc-close-button").addEventListener("click",(function(){return _()})),H(),document.getElementById("acceptSelected").addEventListener("click",(function(){return $.closePreferencePanel()}));break;case"style9":if(!$.bannerConfig.shortText)throw"You need to turn on the 'shortText' property in order to use style 9 correctly.";$.positions={top:b("justify-top top-4"),bottom:b("justify-end bottom-0")},$.banner=document.createElement("div"),$.banner.style.display="none",$.banner.innerHTML='\n
\n ').concat($.bannerConfig.innerBackgroundImage?'
'):"","\n ").concat($.bannerConfig.logo?'
'):"",' \n
\n
').concat($.bannerText?$.bannerText:"".concat($.text.descriptionText?$.text.descriptionText:"".concat($.bannerConfig.shortText?$.locale.bannerShortDescription:$.locale.bannerDescription)),'
\n
\n
\n
\n ').concat($.bannerConfig.shortText?$.locale.acceptShortText:$.text.acceptText,' \n ').concat($.bannerConfig.shortText?$.locale.rejectShortText:$.text.rejectText," \n
\n
\n
\n "),document.body.appendChild($.banner),R(),document.getElementById("yesCookies").addEventListener("click",(function(){return $.yesCookies()})),document.getElementById("noCookies").addEventListener("click",(function(){return $.noCookies()})),g("yesCookies"),g("noCookies")}}(this.config.layout),function(){if(null==U("JgcPreferences").refresh&&$.panel&&$.panel.open){var e=document.getElementById("bannerContent");"style8"==$.config.layout?(e.remove(),setTimeout((function(){q()}),200)):q()}}(),this.checkCookies())}}])&&o(n.prototype,c),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}());return $}));
diff --git a/package.json b/package.json
index ceb54f1..014a665 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "just-good-cookies",
- "version": "0.9.3.5",
+ "version": "0.9.4",
"description": "A delicious cookie consent solution for complying with EU cookie law",
"license": "MIT",
"main": "dist/justgoodcookies.esm.js",
diff --git a/src/justgoodcookies.js b/src/justgoodcookies.js
index 0fa1639..967009f 100644
--- a/src/justgoodcookies.js
+++ b/src/justgoodcookies.js
@@ -2,7 +2,7 @@
@license
JustGoodCookies
Created by Francesco Mugnai
- 2022 - v 0.9.3.5
+ 2022 - v 0.9.4
Released under MIT License
If you use this script, you will always remain the sole responsible party, use it at your own risk
https://github.com/francescomugnai/just-good-cookies
diff --git a/src/preferences.js b/src/preferences.js
index f983265..e899fb9 100644
--- a/src/preferences.js
+++ b/src/preferences.js
@@ -194,7 +194,7 @@ export function managePreferences(){
${ JGC.text?.panelTitle ? JGC.text.panelTitle : '' }
-
+
${ JGC.text?.saveButton ? JGC.text.saveButton : JGC.locale.saveAndContinue }