!function(e){function t(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return e[s].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,s){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="javascripts/",t(t.s=0)}([function(e,t,i){e.exports=i(1)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});i(2)},function(e,t,i){"use strict";var s=i(3),a=i(4),o=i(5),n=i(6);!function(e){for(var t=document.querySelectorAll("[data-consent]"),i=0;i0?t=document.getElementById("ch2-settings"):this.href.indexOf("declaration")>0&&(t=document.getElementById("ch2-declaration")),null!=t){for(var i=l.getElementsByClass("ch2-settings-tab-container"),s=0;sCookie consent by CookieHub
',container:'{{dialog}}{{settings}}
{{icon}}',dialog:{container:'{{content}}{{actions}}
',content:'{{line1}}{{line2}}{{line3}}
',line1:'{{title}}
',line2:'{{text}}
',line3:'{{link}}
',actions:'{{buttons}}
',button:''},settings:{container:'{{header}}{{tabbar}}
{{content}}
{{actions}}
',header:'',content:'{{line1}}{{line2}}{{button1}}{{button3}}{{options}}{{branding}}
',line1:'{{text}}
',line2:'{{link}}
',actions:'{{branding}}{{button2}}
',button1:'',button2:'',button3:'',options:{container:'{{options}}
',option:'{{switch}}{{details}}
',switch:'',details:''},tabbar:{container:'',item:'{{name}}'}},declaration:{container:'{{line1}}{{line2}}{{categories}}
',line1:"{{text}}
",line2:'{{link}}
',categories:{container:'{{details}}{{table}}
',details:'{{text}}
',table:"{{name}} | {{hostname}} | {{path}} | {{expiry}} | |
{{cookies}}
",cookie:'{{name}} | {{hostname}} | {{path}} | {{expiry}} | {{tags}} |
{{description}} |
',cookieAlt:"{{name}} | {{hostname}} | {{path}} | {{expiry}} | {{tags}} |
"}},bodyDeclaration:{container:'{{line1}}{{line2}}{{categories}}
',line1:"{{text}}
",line2:'{{link}}
',categories:{container:'{{details}}{{table}}
',details:"{{title}}
{{text}}
",table:"{{name}} | {{hostname}} | {{path}} | {{expiry}} | |
{{cookies}}
",cookie:'{{name}} | {{hostname}} | {{path}} | {{expiry}} | {{tags}} |
{{description}} |
',cookieAlt:"{{name}} | {{hostname}} | {{path}} | {{expiry}} | {{tags}} |
"}},icon:{container:'',svg:'',link:"{{label}}"}}}}t.a=s},function(e,t,i){"use strict";function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(){this.util={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},getFirstElementByClass:function(e){var t=document.getElementsByClassName("ch2")[0],i=t.getElementsByClassName(e);return i.length>0?i[0]:null},findFirstLink:function(e){var t=document.getElementsByClassName("ch2")[0],i=t.getElementsByClassName(e);if(i.length>0){var s=i[0],a=s.getElementsByTagName("a");if(null!=a&&a.length>0)return a[0]}return null},getFirstBodyElementByClass:function(e){var t=document.body.getElementsByClassName(e);return t.length>0?t[0]:null},getElementById:function(e){return document.getElementsByClassName("ch2")[0].getElementById(e)},getElementsByClass:function(e){var t=document.getElementsByClassName("ch2")[0];"ch2-open-settings-btn"==e&&(t=document.body);var i=t.getElementsByClassName(e);return i.length>0?i:[]},hasClass:function(e,t){var i=" ";return 1===e.nodeType&&(i+e.className+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(e,t){e.className.indexOf(t)<0&&(e.className+=" "+t)},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},getCookie:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="; "+document.cookie,s=i.split("; "),a=void 0;if(void 0!=s)for(var o=0;o5&&void 0!==arguments[5]&&arguments[5],n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"None",l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];o&&(t=btoa(t));var c=new Date;c.setDate(c.getDate()+(i||365));var r=[e+"="+t,"expires="+c.toUTCString(),"path="+(a||"/")];s&&r.push("domain="+s),""!=n&&r.push("SameSite="+n),l&&r.push("Secure"),document.cookie=r.join(";")},deleteCookie:function(e,t){e.indexOf("*")>0&&(e=e.replace("*",""));var i="; "+document.cookie,s=i.split("; ");if(window.location.hostname==t&&(t=""),void 0!=s)for(var a=0;a1&&(o[0]==e||e.length>3&&o[0].substr(0,e.length)==e)&&(document.cookie=o[0]+"=; Expires=Thu, 01 Jan 1970 00:00:00 GMT;",document.cookie=o[0]+"=; Expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+t,document.cookie=o[0]+"=; Expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=."+window.location.hostname)}},deleteStorage:function(e){e.indexOf("*")>0&&(e=e.replace("*",""));for(var t=0;t=e.length){if(i==e){localStorage.removeItem(i);break}i.substr(0,e.length)==e&&localStorage.removeItem(i)}}for(var t=0;t=e.length){if(s==e){sessionStorage.removeItem(s);break}s.substr(0,e.length)==e&&sessionStorage.removeItem(s)}}},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},isPlainObject:function(e){return"object"===(void 0===e?"undefined":o(e))&&null!==e&&e.constructor==Object},isBot:function(){var e=new RegExp("(cookiehubscan|googlebot|adsbot|mediapartners|baidu|bingbot|bingpreview|sogou|proximic|duckduckbot|teoma|slurp|yandex|semrush|lighthouse|gtmetrix|pingdom)","i"),t=navigator.userAgent;return e.test(t)},isDevMode:function(){for(var e=document.getElementsByTagName("script"),t=0;t0&&i.indexOf("/dev/c2")>0)return!0}return!1},gtmEvent:function(e){setTimeout(function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e})},500)},gtmVariable:function(e,t){var i=s({},e,t);window.dataLayer=window.dataLayer||[],window.dataLayer.push(i)},gtag:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}}}t.a=a;var o="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}},function(e,t,i){"use strict";function s(){this.log=function(e,t,i){for(var s=[],a=0;a0)return!0}return!1},this.getLabelValue=function(e){var t=this.opts.labels[0];if(this.opts.language)for(var i=0;i2&&(s=s.substr(0,2));for(var i=0;i2&&(a=a.substr(0,2));for(var s=0;s0||""!=this.getLabelValue("general_learn_more_link")){var o=this.opts.elements.dialog.line3,n=this.opts.learnMore;""!=this.getLabelValue("general_learn_more_link")&&(n=this.getLabelValue("general_learn_more_link")),o=o.replace("{{url}}",n),o=o.replace("{{link}}",this.getLabelValue("general_learn_more")),o=o.replace("{{target}}",this.getTarget()),i=i.replace("{{line3}}",o)}else i=i.replace("{{line3}}","");i=3!=this.opts.dialog.actions.length||this.opts.dialog.simplifyMarkup?i.replace("{{class}}",""):i.replace("{{class}}","ch2-dialog-content-morespace"),t=t.replace("{{content}}",i);var l=this.opts.elements.dialog.actions,c=this.opts.elements.dialog.button;3!=this.opts.dialog.actions.length||this.opts.dialog.simplifyMarkup?l=l.replace("{{class}}",""):(l=l.replace("{{class}}","ch2-dialog-actions-vertical"),l=l.replace("{{buttons}}","{{buttons}}
{{settings}}
"));var r=[null,null,null];null==this.opts.dialog.actions&&(this.opts.dialog.actions=["allow","settings"]);var h=c,d=this.getLabelValue("widget_btn_allow_all"),p="ch2-allow-all-btn ch2-btn-primary";d.length>24?p+=" ch2-btn-text-xxs":d.length>22?p+=" ch2-btn-text-xs":d.length>18&&(p+=" ch2-btn-text-sm"),h=h.replace("{{label}}",d),h=h.replace("{{class}}",p);for(var g=0;g24?f+=" ch2-btn-text-xxs":v.length>22?f+=" ch2-btn-text-xs":v.length>18&&(f+=" ch2-btn-text-sm"),b=b.replace("{{label}}",v),b=b.replace("{{class}}",f);for(var g=0;g24?k+=" ch2-btn-text-xxs":y.length>22?k+=" ch2-btn-text-xs":y.length>18&&(k+=" ch2-btn-text-sm"),m=m.replace("{{label}}",y),m=m.replace("{{class}}",k);for(var g=0;g0){var w=this.opts.elements.icon.container;w=w.replace("{{style}}"," "+this.opts.icon.style),w=w.replace("{{position}}"," "+this.opts.icon.position);var C=this.opts.elements.icon.link;C=C.replace("{{label}}",this.getLabelValue("icon_btn")),w=w.replace("{{link}}",C),w=w.replace("{{svg}}",this.opts.elements.icon.svg),e=e.replace("{{icon}}",w)}else e=e.replace("{{icon}}","");var x=this.opts.elements.settings.container,L=this.opts.elements.settings.header;if(L=L.replace("{{close}}",this.getLabelValue("general_close")),L=L.replace("{{title}}",this.getLabelValue("settings_title")),x=x.replace("{{header}}",L),this.opts.features.scan&&this.hasCookies()&&this.opts.features.declaration){var E=this.opts.elements.settings.tabbar.container,V=this.opts.elements.settings.tabbar.item;V=V.replace("{{active}}","active"),V=V.replace("{{link}}","#ch2-settings"),V=V.replace("{{name}}",this.getLabelValue("settings_tab"));var S=this.opts.elements.settings.tabbar.item;S=S.replace("{{active}}",""),S=S.replace("{{link}}","#ch2-declaration"),S=S.replace("{{name}}",this.getLabelValue("declaration_tab")),E=E.replace("{{items}}",V+S),x=x.replace("{{tabbar}}",E),x=x.replace("{{class}}"," ch2-settings-scan")}else x=x.replace("{{tabbar}}",""),x=x.replace("{{class}}","");var B=this.opts.elements.settings.content;B=this.opts.features.hideBranding?B.replace("{{branding}}",""):B.replace("{{branding}}",this.opts.elements.branding);var T=this.opts.elements.settings.line1;if(T=T.replace("{{text}}",this.getLabelValue("settings_message")),B=B.replace("{{line1}}",T),this.opts.learnMore.length>0||""!=this.getLabelValue("general_learn_more_link")){var M=this.opts.elements.settings.line2,n=this.opts.learnMore;""!=this.getLabelValue("general_learn_more_link")&&(n=this.getLabelValue("general_learn_more_link")),M=M.replace("{{url}}",n),M=M.replace("{{link}}",this.getLabelValue("general_learn_more")),M=M.replace("{{target}}",this.getTarget()),B=B.replace("{{line2}}",M)}else B=B.replace("{{line2}}","");var N=[null,null],D=this.opts.elements.settings.button1;D=D.replace("{{label}}",this.getLabelValue("widget_btn_allow_all"));var O=this.opts.elements.settings.button3;O=O.replace("{{label}}",this.getLabelValue("widget_btn_deny_all"));for(var A=0;A0||""!=this.getLabelValue("general_learn_more_link")){var n=this.opts.learnMore;""!=this.getLabelValue("general_learn_more_link")&&(n=this.getLabelValue("general_learn_more_link"));var $=this.opts.elements.declaration.line2;$=$.replace("{{url}}",n),$=$.replace("{{link}}",this.getLabelValue("general_learn_more")),$=$.replace("{{target}}",this.getTarget()),U=U.replace("{{line2}}",$)}else U=U.replace("{{line2}}","");for(var K="",R=0;R0){for(var Y=this.opts.elements.declaration.categories.table,ee="",q=0;q"+this.getLabelValue("cookie_3rd_party")+""),te=te.replace("{{tags}}",ae),ee+=te}Y=Y.replace("{{cookies}}",ee),Y=Y.replace("{{name}}",this.getLabelValue("cookie_name")),Y=Y.replace("{{hostname}}",this.getLabelValue("cookie_hostname")),Y=Y.replace("{{path}}",this.getLabelValue("cookie_path")),Y=Y.replace("{{expiry}}",this.getLabelValue("cookie_expiry")),Q=Q.replace("{{table}}",Y)}else Q=Q.replace("{{table}}","");K+=Q}U=U.replace("{{categories}}",K),B+=U}x=x.replace("{{content}}",B);var oe=this.opts.elements.settings.actions;if(this.opts.features.hideBranding)oe=oe.replace("{{branding}}","");else{var ne=this.opts.elements.branding;null!=this.opts.affiliate&&(ne=ne.replace("https://www.cookiehub.com","https://www.cookiehub.com/?al="+this.opts.affiliate)),oe=oe.replace("{{branding}}",ne)}var le=this.opts.elements.settings.button2;return le=le.replace("{{label}}",this.getLabelValue("settings_btn_save")),oe=oe.replace("{{button2}}",le),x=x.replace("{{actions}}",oe),e=e.replace("{{settings}}",x)},this.renderDeclaration=function(){var e="";if(this.opts.features.scan){var e=this.opts.elements.bodyDeclaration.container,t=this.opts.elements.bodyDeclaration.line1;if(t=t.replace("{{text}}",this.getLabelValue("declaration_message")),e=e.replace("{{line1}}",t),this.opts.learnMore.length>0||""!=this.getLabelValue("general_learn_more_link")){var i=this.opts.learnMore;""!=this.getLabelValue("general_learn_more_link")&&(i=this.getLabelValue("general_learn_more_link"));var s=this.opts.elements.bodyDeclaration.line2;s=s.replace("{{url}}",i),s=s.replace("{{link}}",this.getLabelValue("general_learn_more")),s=s.replace("{{target}}",this.getTarget()),e=e.replace("{{line2}}",s)}else e=e.replace("{{line2}}","");for(var a="",o=0;o"+this.getLabelValue("cookie_3rd_party")+""),p=p.replace("{{tags}}",b),h+=p}r=r.replace("{{cookies}}",h),r=r.replace("{{name}}",this.getLabelValue("cookie_name")),r=r.replace("{{hostname}}",this.getLabelValue("cookie_hostname")),r=r.replace("{{path}}",this.getLabelValue("cookie_path")),r=r.replace("{{expiry}}",this.getLabelValue("cookie_expiry")),l=l.replace("{{table}}",r)}else l=l.replace("{{table}}","");a+=l}return e=e.replace("{{categories}}",a)}}}t.a=s}]);