Socket
Socket
Sign inDemoInstall

consent-banner

Package Overview
Dependencies
82
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0-beta.2 to 2.3.0-beta.3

2

dist/consent-banner.js

@@ -1,1 +0,1 @@

!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.ConsentControl=o():e.ConsentControl=o()}(window,(function(){return function(e){var o={};function t(r){if(o[r])return o[r].exports;var n=o[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=o,t.d=function(e,o,r){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(r,n,function(o){return e[o]}.bind(null,n));return r},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=3)}([function(e,o,t){(o=t(2)(!1)).push([e.i,'.w8hcgFksdo30C8w-bygqu{color:#000}.ydkKdaztSS0AeHWIeIHsQ a{color:#0067B8}.erL690_8JwUW-R4bJRcfl{background-color:#EBEBEB;border:2px solid #0067B8;color:#0067B8}.erL690_8JwUW-R4bJRcfl:enabled:hover{color:#0067B8;background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #0067B8}.erL690_8JwUW-R4bJRcfl:enabled:focus{background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}.erL690_8JwUW-R4bJRcfl:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2);border:none}._1zNQOqxpBFSokeCLGi_hGr{border:2px solid #0067B8;background-color:#0067B8;color:#fff}._1zNQOqxpBFSokeCLGi_hGr:enabled:hover{color:#fff;background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:none}._1zNQOqxpBFSokeCLGi_hGr:enabled:focus{background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}._1zNQOqxpBFSokeCLGi_hGr:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,120,215,0.2);border:none}._23tra1HsiiP6cT-Cka-ycB{position:fixed;display:flex;z-index:9999;width:100%;background-color:#F2F2F2;justify-content:space-between;text-align:left;padding-top:15px;padding-bottom:15px;bottom:.5%;box-shadow:6px -5px 6px rgba(0,0,0,0.109804)}div[dir="rtl"]._23tra1HsiiP6cT-Cka-ycB{text-align:right}._1Upc2NjY8AlDn177YoVj0y{margin:0;padding-left:5%;padding-top:8px;padding-bottom:8px;align-self:center}div[dir="rtl"] ._1Upc2NjY8AlDn177YoVj0y{margin:0;padding:8px 5% 8px 0;float:none}.nR0Qab4YATq90SrZLzR1X{padding-bottom:110px}div[dir="rtl"] .nR0Qab4YATq90SrZLzR1X{margin:0;padding:8px 5% 8px 0;float:none}._23tra1HsiiP6cT-Cka-ycB svg{fill:none;max-width:none;max-height:none}._1V_hlU-7jdtPiooHMu89BB{display:table-cell;padding:12px;width:24px;height:24px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:24px;line-height:0}.f6QKJD7fhSbnJLarTL-W-{display:table-cell;vertical-align:middle;padding:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:16px}.f6QKJD7fhSbnJLarTL-W- a{text-decoration:underline}._2j0fmugLb1FgYz6KPuB91w{display:inline-block;margin-left:5%;margin-right:5%;min-width:40%;min-width:calc((150px + 3 * 4px) * 2 + 150px);min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;align-self:center;position:relative}._1XuCi2WhiqeWRUVp3pnFG3{margin:4px;padding:5px;min-width:150px;min-height:36px;vertical-align:top;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._1XuCi2WhiqeWRUVp3pnFG3:focus{box-sizing:border-box}._1XuCi2WhiqeWRUVp3pnFG3:disabled{cursor:not-allowed}._2bvsb3ubApyZ0UGoQA9O9T{display:block;position:fixed;z-index:10000;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.6);overflow:auto;text-align:left}div[dir="rtl"]._2bvsb3ubApyZ0UGoQA9O9T{text-align:right}div[dir="rtl"] ._2bvsb3ubApyZ0UGoQA9O9T{left:auto;right:0}.AFsJE948muYyzCMktdzuk{position:relative;top:8%;margin-bottom:40px;margin-left:auto;margin-right:auto;box-sizing:border-box;width:640px;background-color:#fff;border:1px solid #0067B8}._3kWyBRbW_dgnMiEyx06Fu4{float:right;z-index:1;margin:2px;padding:12px;border:none;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:13px;display:flex;align-items:center;text-align:center;color:#666;background-color:#F2F2F2}div[dir="rtl"] ._3kWyBRbW_dgnMiEyx06Fu4{margin:2px;padding:12px;float:left}._2xvRHgp_4bOc8Bs0z6zwlW{float:right;z-index:1;border:none;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:22px;width:22px;display:flex;align-items:center;text-align:center;color:#000;background-color:transparent;position:absolute;right:5%}div[dir="rtl"] ._2xvRHgp_4bOc8Bs0z6zwlW{margin:2px;padding:12px;float:left}.uCYvKvHXrhjNgflv1VqdD{position:static;margin-top:36px;margin-left:36px;margin-right:36px}._17pX1m9O_W--iZbDt3Ta5r{margin-top:0;margin-bottom:12px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:20px;line-height:24px;text-transform:none}._1kBkHQ1V1wu3kl-YcLgUr6{height:446px;overflow:auto}._20_nXDf6uFs9Q6wxRXG-I-{margin-top:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._20_nXDf6uFs9Q6wxRXG-I- a{text-decoration:underline}dl._2a0NH_GDQEQe5Ynfo7suVH{margin-top:36px;margin-bottom:0;padding:0;list-style:none;text-transform:none}dt._3j_LCPv7fyXv3A8FIXVwZ4{margin-top:20px;float:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;list-style:none}.k-vxTGFbdq1aOZB2HHpjh{margin:0;padding:0;border:none}._2Bucyy75c_ogoU1g-liB5R{margin:0;padding:0;border-bottom:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;text-transform:none}._63gwfzV8dclrsl2cfd90r{display:inline-block;margin-top:0;margin-bottom:13px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._1l8wM_4mRYGz3Iu7l3BZR7{display:block}._2UE03QS02aZGkslegN_F-i{display:inline-block;position:relative;left:5px;margin-bottom:13px;margin-right:34px;padding:3px}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{margin:0 0 13px 34px;padding:3px;float:none}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{left:auto;right:5px}._23tra1HsiiP6cT-Cka-ycB *::before,._2bvsb3ubApyZ0UGoQA9O9T *::before,._23tra1HsiiP6cT-Cka-ycB *::after,._2bvsb3ubApyZ0UGoQA9O9T *::after{box-sizing:inherit}._1HSFn0HzGo6w4ADApV8-c4{outline:2px solid rgba(0,0,0,0.8)}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2{display:inline-block;position:relative;margin-top:0;margin-left:0;margin-right:0;height:0;width:0;border-radius:0;cursor:pointer;outline:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{display:block;position:absolute;top:5px;left:3px;height:19px;width:19px;content:"";border-radius:50%;border:1px solid #000;background-color:#fff}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{left:auto;right:3px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:rgba(0,0,0,0.8)}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label{cursor:not-allowed}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label::before{border:1px solid rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2)}._3RJzeL3l9Rl_lAQEm6VwdX{display:block;position:static;float:right;margin-top:0;margin-bottom:0;margin-left:19px;margin-right:0;padding-top:0;padding-bottom:0;padding-left:8px;padding-right:0;width:80%;width:calc(100% - 19px);font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-transform:none;cursor:pointer;box-sizing:border-box}div[dir="rtl"] ._3RJzeL3l9Rl_lAQEm6VwdX{margin:0 19px 0 0;padding:0 8px 0 0;float:left}.nohp3sIG12ZBhzcMnPala{margin-top:20px;margin-bottom:48px}._2uhaEsmeotZ3P-M0AXo2kF{padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._2uhaEsmeotZ3P-M0AXo2kF:focus{box-sizing:border-box}._2uhaEsmeotZ3P-M0AXo2kF:disabled{cursor:not-allowed}._3tOu1FJ59c_xz_PmI1lKV5{float:right;padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._3tOu1FJ59c_xz_PmI1lKV5:focus{box-sizing:border-box}._3tOu1FJ59c_xz_PmI1lKV5:disabled{cursor:not-allowed}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0;padding:0;float:left}@media only screen and (max-width: 768px){._2j0fmugLb1FgYz6KPuB91w,._1Upc2NjY8AlDn177YoVj0y{padding-top:8px;padding-bottom:12px;padding-left:3.75%;padding-right:3.75%;margin:0;width:92.5%}._23tra1HsiiP6cT-Cka-ycB{display:block}._1XuCi2WhiqeWRUVp3pnFG3{margin-bottom:8px;margin-left:0;margin-right:0;width:100%}._2bvsb3ubApyZ0UGoQA9O9T{overflow:hidden}.AFsJE948muYyzCMktdzuk{top:1.8%;width:93.33%;height:96.4%;overflow:hidden}.uCYvKvHXrhjNgflv1VqdD{margin-top:24px;margin-left:24px;margin-right:24px;height:100%}._1kBkHQ1V1wu3kl-YcLgUr6{height:62%;height:calc(100% - 188px);min-height:50%}._2uhaEsmeotZ3P-M0AXo2kF{width:100%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:12px;margin-left:0;width:100%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 12px 0;padding:0;float:none}.nR0Qab4YATq90SrZLzR1X{padding-bottom:40px;padding-top:10px}}@media only screen and (max-width: 768px) and (orientation: landscape), only screen and (max-height: 260px), only screen and (max-width: 340px){.AFsJE948muYyzCMktdzuk{overflow:auto}}@media only screen and (max-height: 260px), only screen and (max-width: 340px){._1XuCi2WhiqeWRUVp3pnFG3{min-width:0}._3kWyBRbW_dgnMiEyx06Fu4{padding:3%}._2xvRHgp_4bOc8Bs0z6zwlW{padding:3%}.nR0Qab4YATq90SrZLzR1X{padding-bottom:40px;padding-top:10px}.uCYvKvHXrhjNgflv1VqdD{margin-top:3%;margin-left:3%;margin-right:3%}._17pX1m9O_W--iZbDt3Ta5r{margin-bottom:3%}._1kBkHQ1V1wu3kl-YcLgUr6{height:calc(79% - 64px)}.nohp3sIG12ZBhzcMnPala{margin-top:5%;margin-bottom:10%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:3%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 3% 0;padding:0;float:none}}\n',""]),o.locals={textColorTheme:"w8hcgFksdo30C8w-bygqu",hyperLinkTheme:"ydkKdaztSS0AeHWIeIHsQ",secondaryButtonTheme:"erL690_8JwUW-R4bJRcfl",primaryButtonTheme:"_1zNQOqxpBFSokeCLGi_hGr",bannerBody:"_23tra1HsiiP6cT-Cka-ycB",bannerInform:"_1Upc2NjY8AlDn177YoVj0y",bannerClose:"nR0Qab4YATq90SrZLzR1X",infoIcon:"_1V_hlU-7jdtPiooHMu89BB",bannerInformBody:"f6QKJD7fhSbnJLarTL-W-",buttonGroup:"_2j0fmugLb1FgYz6KPuB91w",bannerButton:"_1XuCi2WhiqeWRUVp3pnFG3",cookieModal:"_2bvsb3ubApyZ0UGoQA9O9T",modalContainer:"AFsJE948muYyzCMktdzuk",closeModalIcon:"_3kWyBRbW_dgnMiEyx06Fu4",closeBannerIcon:"_2xvRHgp_4bOc8Bs0z6zwlW",modalBody:"uCYvKvHXrhjNgflv1VqdD",modalTitle:"_17pX1m9O_W--iZbDt3Ta5r",modalContent:"_1kBkHQ1V1wu3kl-YcLgUr6",cookieStatement:"_20_nXDf6uFs9Q6wxRXG-I-",cookieOrderedList:"_2a0NH_GDQEQe5Ynfo7suVH",cookieListItem:"_3j_LCPv7fyXv3A8FIXVwZ4",cookieListItemGroup:"k-vxTGFbdq1aOZB2HHpjh",cookieListItemTitle:"_2Bucyy75c_ogoU1g-liB5R",cookieListItemDescription:"_63gwfzV8dclrsl2cfd90r",cookieItemRadioBtnGroup:"_1l8wM_4mRYGz3Iu7l3BZR7",cookieItemRadioBtnCtrl:"_2UE03QS02aZGkslegN_F-i",cookieItemRadioBtnCtrlOutline:"_1HSFn0HzGo6w4ADApV8-c4",cookieItemRadioBtn:"_1dp8Vp5m3HwAqGx8qBmFV2",cookieItemRadioBtnLabel:"_3RJzeL3l9Rl_lAQEm6VwdX",modalButtonGroup:"nohp3sIG12ZBhzcMnPala",modalButtonReset:"_2uhaEsmeotZ3P-M0AXo2kF",modalButtonSave:"_3tOu1FJ59c_xz_PmI1lKV5"},e.exports=o},function(e,o,t){"use strict";var r,n=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(o){if(void 0===e[o]){var t=document.querySelector(o);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[o]=t}return e[o]}}(),a=[];function l(e){for(var o=-1,t=0;t<a.length;t++)if(a[t].identifier===e){o=t;break}return o}function d(e,o){for(var t={},r=[],n=0;n<e.length;n++){var i=e[n],d=o.base?i[0]+o.base:i[0],c=t[d]||0,s="".concat(d," ").concat(c);t[d]=c+1;var u=l(s),b={css:i[1],media:i[2],sourceMap:i[3]};-1!==u?(a[u].references++,a[u].updater(b)):a.push({identifier:s,updater:f(b,o),references:1}),r.push(s)}return r}function c(e){var o=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var n=t.nc;n&&(r.nonce=n)}if(Object.keys(r).forEach((function(e){o.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(o);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(o)}return o}var s,u=(s=[],function(e,o){return s[e]=o,s.filter(Boolean).join("\n")});function b(e,o,t,r){var n=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(o,n);else{var i=document.createTextNode(n),a=e.childNodes;a[o]&&e.removeChild(a[o]),a.length?e.insertBefore(i,a[o]):e.appendChild(i)}}function p(e,o,t){var r=t.css,n=t.media,i=t.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,h=0;function f(e,o){var t,r,n;if(o.singleton){var i=h++;t=m||(m=c(o)),r=b.bind(null,t,i,!1),n=b.bind(null,t,i,!0)}else t=c(o),r=p.bind(null,t,o),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;r(e=o)}else n()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=n());var t=d(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var n=l(t[r]);a[n].references--}for(var i=d(e,o),c=0;c<t.length;c++){var s=l(t[c]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}t=i}}}},function(e,o,t){"use strict";e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var t=function(e,o){var t=e[1]||"",r=e[3];if(!r)return t;if(o&&"function"==typeof btoa){var n=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(d," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([n]).join("\n")}var a,l,d;return[t].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(n[a]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);r&&n[d[0]]||(t&&(d[2]?d[2]="".concat(t," and ").concat(d[2]):d[2]=t),o.push(d))}},o}},function(e,o,t){"use strict";t.r(o),t.d(o,"ConsentControl",(function(){return f}));var r=t(0),n=t(1),i=function(){function e(){}return e.escapeHtml=function(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},e}(),a=r.locals,l=function(){function e(e,o,t,r,n,i,a){this.direction="ltr",this.previousFocusElementBeforePopup=null,this.cookieCategories=e,this.textResources=o,this.cookieCategoriesPreferences=t,this.containerElement=r,this.direction=n,this.isDirty=i,this.onPreferencesClosed=a}return e.prototype.createPreferencesDialog=function(){var e='\n <div role="presentation" tabindex="-1"></div>\n <div role="dialog" aria-modal="true" aria-label="'+i.escapeHtml(this.textResources.preferencesDialogTitle)+'" class="'+a.modalContainer+'" tabindex="-1">\n <button aria-label="'+i.escapeHtml(this.textResources.preferencesDialogCloseLabel)+'" class="'+a.closeModalIcon+'" tabindex="0">&#x2715;</button>\n <div role="document" class="'+a.modalBody+'">\n <div>\n <h1 class="'+a.modalTitle+" "+a.textColorTheme+'">'+i.escapeHtml(this.textResources.preferencesDialogTitle)+'</h1>\n </div>\n \n <form class="'+a.modalContent+" "+a.hyperLinkTheme+'">\n <p class="'+a.cookieStatement+" "+a.textColorTheme+'">\n '+this.textResources.preferencesDialogDescHtml+'\n </p>\n\n <dl class="'+a.cookieOrderedList+'">\n </dl>\n </form>\n \n <div class="'+a.modalButtonGroup+'">\n <button type="button" aria-label="'+i.escapeHtml(this.textResources.saveLabel)+'" class="'+a.modalButtonSave+" "+a.primaryButtonTheme+'" disabled>'+i.escapeHtml(this.textResources.saveLabel)+'</button>\n <button type="button" aria-label="'+i.escapeHtml(this.textResources.resetLabel)+'" class="'+a.modalButtonReset+" "+a.secondaryButtonTheme+'" disabled>'+i.escapeHtml(this.textResources.resetLabel)+"</button>\n </div>\n </div>\n </div>\n ",o=document.createElement("div");o.setAttribute("id","wcpCookiePreferenceCtrl"),o.setAttribute("class",a.cookieModal),o.setAttribute("dir",this.direction),o.innerHTML=e,this.containerElement.appendChild(o);for(var t=!1,r=0,n=this.cookieCategories;r<n.length;r++){var l=n[r];if(l.isUnswitchable){var d='\n <dt class="'+a.cookieListItem+" "+a.textColorTheme+'" aria-label="'+i.escapeHtml(l.name)+'">\n <h2 class="'+a.cookieListItemTitle+" "+a.textColorTheme+'">'+i.escapeHtml(l.name)+'</h2>\n <p class="'+a.cookieListItemDescription+" "+a.textColorTheme+'">'+l.descHtml+"</p>\n </dt>\n ";document.getElementsByClassName(a.cookieOrderedList)[0].innerHTML+=d}else{void 0!==this.cookieCategoriesPreferences[l.id]&&(t=!0);var c=l.id,s=!0===this.cookieCategoriesPreferences[l.id]?"checked":"",u=!1===this.cookieCategoriesPreferences[l.id]?"checked":"",b=a.cookieItemRadioBtn+"_"+c+"_accept",p=a.cookieItemRadioBtn+"_"+c+"_reject",m='<input type="radio" class="'+a.cookieItemRadioBtn+'" name="'+c+'" id="'+b+'" value="accept" '+s+">",h='<input type="radio" class="'+a.cookieItemRadioBtn+'" name="'+c+'" id="'+p+'" value="reject" '+u+">",f=a.cookieListItemTitle+"_"+c+"_title";d='\n <dt class="'+a.cookieListItem+" "+a.textColorTheme+'" aria-label="'+i.escapeHtml(l.name)+'">\n <div class="'+a.cookieListItemGroup+'" role="radiogroup" aria-labelledby="'+f+'">\n <h2 class="'+a.cookieListItemTitle+" "+a.textColorTheme+'" id="'+f+'">'+i.escapeHtml(l.name)+'</h2>\n <p class="'+a.cookieListItemDescription+" "+a.textColorTheme+'">'+l.descHtml+'</p>\n <div class="'+a.cookieItemRadioBtnGroup+'">\n <div class="'+a.cookieItemRadioBtnCtrl+'">\n '+m+'\n <label class="'+a.cookieItemRadioBtnLabel+" "+a.textColorTheme+'" for="'+b+'">'+i.escapeHtml(this.textResources.acceptLabel)+'</label>\n </div>\n <div class="'+a.cookieItemRadioBtnCtrl+'">\n '+h+'\n <label class="'+a.cookieItemRadioBtnLabel+" "+a.textColorTheme+'" for="'+p+'">'+i.escapeHtml(this.textResources.rejectLabel)+"</label>\n </div>\n </div>\n </div>\n </dt>\n ";document.getElementsByClassName(a.cookieOrderedList)[0].innerHTML+=d}}if(t){var g=document.getElementsByClassName(a.modalButtonReset)[0];g&&(g.disabled=!1)}this.addPreferencesButtonsEvent()},e.prototype.onPreferencesDialogShowing=function(){var e=this,o=!1;this.previousFocusElementBeforePopup&&(o=!0),this.previousFocusElementBeforePopup=document.activeElement;var t=document.getElementsByClassName(a.modalContainer)[0];t.focus(),o||t.addEventListener("keydown",(function(o){"Escape"!=o.key&&"Esc"!=o.key||(o.preventDefault(),e.hidePreferencesDialog())}))},e.prototype.hidePreferencesDialog=function(){var e,o=document.getElementsByClassName(a.cookieModal)[0];this.containerElement.removeChild(o),null===(e=this.previousFocusElementBeforePopup)||void 0===e||e.focus(),this.previousFocusElementBeforePopup=null,this.onPreferencesClosed()},e.prototype.addPreferencesButtonsEvent=function(){var e=this,o=document.getElementsByClassName(a.closeModalIcon)[0],t=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn)),r=document.getElementsByClassName(a.modalButtonSave)[0],n=document.getElementsByClassName(a.modalButtonReset)[0];this.controlRadioBtnFocusStyle(),this.controlNextActiveElement(),null==o||o.addEventListener("click",(function(){return e.hidePreferencesDialog()}));for(var i=function(o){o.addEventListener("click",(function(){var t=o.getAttribute("name");if(t){var n=e.cookieCategoriesPreferences[t],i=o.getAttribute("value");e.cookieCategoriesPreferences[t]="accept"===i,n!==e.cookieCategoriesPreferences[t]&&(r.disabled=!1,e.isDirty.changed=!0)}}))},l=0,d=t;l<d.length;l++){i(d[l])}null==n||n.addEventListener("click",(function(){r.disabled=!1;for(var o=0,t=e.cookieCategories;o<t.length;o++){var n=t[o];n.isUnswitchable||(e.cookieCategoriesPreferences[n.id]=void 0)}e.isDirty.changed=!1,e.setRadioBtnState()})),this.isDirty.changed&&(r.disabled=!1)},e.prototype.controlNextActiveElement=function(){var e=document.getElementsByClassName(a.closeModalIcon)[0],o=document.getElementsByClassName(a.modalButtonSave)[0],t=document.getElementsByClassName(a.modalButtonReset)[0],r=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn)),n=null,i=null;r.length&&(n=r[r.length-2],i=r[r.length-1]);var l=function(o){"Tab"!=o.key||o.shiftKey||(o.preventDefault(),e.focus())},d=function(e){"Tab"==e.key&&e.shiftKey&&(e.preventDefault(),null==i||i.focus())},c=function(e){"Tab"==e.key&&e.shiftKey&&(e.preventDefault(),t.focus())};t.addEventListener("keydown",(function(o){"Tab"!=o.key||o.shiftKey||(o.preventDefault(),e.focus())})),t.disabled&&o.disabled?r.length&&(null==n||n.addEventListener("keydown",l),null==i||i.addEventListener("keydown",l),e.addEventListener("keydown",d)):e.addEventListener("keydown",c);for(var s=0,u=r;s<u.length;s++){u[s].addEventListener("click",(function(){t.disabled&&(t.disabled=!1,null==n||n.removeEventListener("keydown",l),null==i||i.removeEventListener("keydown",l),e.removeEventListener("keydown",d),e.addEventListener("keydown",c))}))}},e.prototype.controlRadioBtnFocusStyle=function(){for(var e=this,o=0,t=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn));o<t.length;o++){var r=t[o];r.addEventListener("blur",(function(o){var t=o.target;e.removeBlurRadioBtnOutline(t)})),r.addEventListener("focus",(function(e){e.target.parentElement.className+=" "+a.cookieItemRadioBtnCtrlOutline}))}},e.prototype.removeBlurRadioBtnOutline=function(e){if(e){var o=e.parentElement,t=o.className.replace(" "+a.cookieItemRadioBtnCtrlOutline,"");o.className=t}},e.prototype.addSaveButtonEvent=function(e){var o=document.getElementsByClassName(a.modalButtonSave)[0];null==o||o.addEventListener("click",(function(){return e()}))},e.prototype.setRadioBtnState=function(){for(var e=0,o=0,t=this.cookieCategories;o<t.length;o++){var r=t[o];if(!r.isUnswitchable){var n=r.id;if(!0===this.cookieCategoriesPreferences[n])document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!0,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++;else if(!1===this.cookieCategoriesPreferences[n]){document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!0,e++}else{document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++}}}},e}(),d=r.locals,c=function(){function e(){}return e.createTheme=function(e,o){if(!o["background-color-between-page-and-dialog"]){var t=o["dialog-background-color"];this.setMissingColorFromAnotherProperty("background-color-between-page-and-dialog",t,.6,e)}if(o["primary-button-text-color"]||(e["primary-button-text-color"]=o["dialog-background-color"]),o["primary-button-disabled-text-color"]||(e["primary-button-disabled-text-color"]=o["dialog-background-color"]),o["dialog-border-color"]||(e["dialog-border-color"]=o["primary-button-color"]),o["hyperlink-font-color"]||(e["hyperlink-font-color"]=o["primary-button-color"]),o["primary-button-hover-color"]||(e["primary-button-hover-color"]=o["primary-button-color"]),o["primary-button-disabled-color"]||(e["primary-button-disabled-color"]=o["primary-button-color"]),o["primary-button-border"]||(e["primary-button-border"]="1px solid "+o["primary-button-color"]),o["primary-button-focus-border-color"]||(e["primary-button-focus-border-color"]=o["primary-button-color"]),o["radio-button-hover-border-color"]||(e["radio-button-hover-border-color"]=o["primary-button-color"]),o["secondary-button-text-color"]||(e["secondary-button-text-color"]=o["text-color"]),o["secondary-button-disabled-text-color"]||(e["secondary-button-disabled-text-color"]=o["text-color"]),o["radio-button-border-color"]||(e["radio-button-border-color"]=o["text-color"]),o["radio-button-checked-background-color"]||(e["radio-button-checked-background-color"]=o["text-color"]),!o["radio-button-hover-background-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-hover-background-color",t,.8,e)}if(!o["radio-button-disabled-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-disabled-color",t,.2,e)}if(!o["radio-button-disabled-border-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-disabled-border-color",t,.2,e)}if(o["secondary-button-hover-color"]||(e["secondary-button-hover-color"]=o["secondary-button-color"]),o["secondary-button-disabled-border"]||(e["secondary-button-disabled-border"]="1px solid "+o["secondary-button-disabled-color"]),o["secondary-button-hover-border"]||(e["secondary-button-hover-border"]=o["secondary-button-border"]),!o["secondary-button-focus-border-color"]){var r=o["secondary-button-border"].split(" ");e["secondary-button-focus-border-color"]=r[r.length-1]}o["banner-close-button-color"]||(e["banner-close-button-color"]=o["text-color"])},e.createThemeStyle=function(e){var o=document.createElement("style");o.type="text/css",o.id="ms-consent-banner-theme-styles",e&&o.setAttribute("nonce",e),document.head.appendChild(o)},e.applyTheme=function(e){var o="";o+="."+d.bannerBody+" {\n background-color: "+e["banner-background-color"]+" !important;\n }",o+="."+d.textColorTheme+" {\n color: "+e["text-color"]+" !important;\n }";var t="."+d.hyperLinkTheme+" a {\n color: "+e["hyperlink-font-color"]+" !important;\n }",r="."+d.closeBannerIcon+" {\n color: "+e["banner-close-button-color"]+" !important;\n }";o+=t,o+=this.buildDialogStyle(e),o+=this.buildPrimaryBtnStyle(e),o+=this.buildSecondaryBtnStyle(e),o+=this.buildRadioBtnStyle(e),o+=r,document.getElementById("ms-consent-banner-theme-styles").textContent=o},e.setMissingColorFromAnotherProperty=function(e,o,t,r){if(o.startsWith("#")){var n=parseInt(o.substring(1),16),i=n>>16&255,a=n>>8&255,l=255&n;r[e]="rgba("+i+", "+a+", "+l+", "+t+")"}else if(o.startsWith("rgb(")){var d="rgba"+o.substring(3,o.length-1)+", "+t+")";r[e]=d}else if(o.startsWith("rgba")){var c=o.lastIndexOf(","),s=o.substring(c+1,o.length-1),u=parseFloat(s.trim())*t;d=o.substring(0,c+1)+u.toFixed(2)+")";r[e]=d}},e.buildDialogStyle=function(e){var o="";return o+="."+d.cookieModal+" {\n background-color: "+e["background-color-between-page-and-dialog"]+" !important;\n }",o+="."+d.modalContainer+" {\n background-color: "+e["dialog-background-color"]+" !important;\n border: 1px solid "+e["dialog-border-color"]+" !important;\n }",o+="."+d.closeModalIcon+" {\n color: "+e["close-button-color"]+" !important;\n background-color: "+e["dialog-background-color"]+" !important;\n }"},e.buildSecondaryBtnStyle=function(e){var o="";return o+="."+d.secondaryButtonTheme+" {\n border: "+e["secondary-button-border"]+" !important;\n background-color: "+e["secondary-button-color"]+" !important;\n color: "+e["secondary-button-text-color"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":enabled:hover {\n color: "+e["secondary-button-text-color"]+" !important;\n background-color: "+e["secondary-button-hover-color"]+" !important;\n box-shadow: "+e["secondary-button-hover-shadow"]+" !important;\n border: "+e["secondary-button-hover-border"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":enabled:focus {\n background-color: "+e["secondary-button-hover-color"]+" !important;\n box-shadow: "+e["secondary-button-hover-shadow"]+" !important;\n border: 2px solid "+e["secondary-button-focus-border-color"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":disabled {\n opacity: "+e["secondary-button-disabled-opacity"]+" !important;\n color: "+e["secondary-button-disabled-text-color"]+" !important;\n background-color: "+e["secondary-button-disabled-color"]+" !important;\n border: "+e["secondary-button-disabled-border"]+" !important;\n }"},e.buildPrimaryBtnStyle=function(e){var o="";return o+="."+d.primaryButtonTheme+" {\n border: "+e["primary-button-border"]+" !important;\n background-color: "+e["primary-button-color"]+" !important;\n color: "+e["primary-button-text-color"]+" !important;\n }",o+="."+d.primaryButtonTheme+":enabled:hover {\n color: "+e["primary-button-text-color"]+" !important;\n background-color: "+e["primary-button-hover-color"]+" !important;\n box-shadow: "+e["primary-button-hover-shadow"]+" !important;\n border: "+e["primary-button-hover-border"]+" !important;\n }",o+="."+d.primaryButtonTheme+":enabled:focus {\n background-color: "+e["primary-button-hover-color"]+" !important;\n box-shadow: "+e["primary-button-hover-shadow"]+" !important;\n border: 2px solid "+e["primary-button-focus-border-color"]+" !important;\n }",o+="."+d.primaryButtonTheme+":disabled {\n opacity: "+e["primary-button-disabled-opacity"]+" !important;\n color: "+e["primary-button-disabled-text-color"]+" !important;\n background-color: "+e["primary-button-disabled-color"]+" !important;\n border: "+e["primary-button-disabled-border"]+" !important;\n }"},e.buildRadioBtnStyle=function(e){var o="";return o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label::before {\n border: 1px solid "+e["radio-button-border-color"]+" !important;\n background-color: "+e["dialog-background-color"]+" !important;\n }",o+="."+d.cookieItemRadioBtnCtrlOutline+" {\n outline: 2px solid "+e["radio-button-hover-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+":checked + label::after {\n background-color: "+e["radio-button-checked-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:hover::before {\n border: 1px solid "+e["radio-button-hover-border-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:hover::after {\n background-color: "+e["radio-button-hover-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:focus::before {\n border: 1px solid "+e["radio-button-hover-border-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:focus::after {\n background-color: "+e["radio-button-checked-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+":disabled + label::before {\n border: 1px solid "+e["radio-button-disabled-border-color"]+" !important;\n background-color: "+e["radio-button-disabled-color"]+" !important;\n }"},e}(),s=["ar","he","ps","ur","fa","pa","sd","tk","ug","yi","syr","ks-arab"],u={"close-button-color":"#666666","secondary-button-disabled-opacity":"1","secondary-button-hover-shadow":"0px 4px 10px rgba(0, 0, 0, 0.25)","primary-button-disabled-opacity":"1","primary-button-hover-border":"none","primary-button-disabled-border":"none","primary-button-hover-shadow":"0px 4px 10px rgba(0, 0, 0, 0.25)","banner-background-color":"#F2F2F2","dialog-background-color":"#FFFFFF","primary-button-color":"#0067B8","text-color":"#000000","secondary-button-color":"#EBEBEB","secondary-button-disabled-color":"rgba(0, 0, 0, 0.2)","secondary-button-border":"2px solid #0067B8","background-color-between-page-and-dialog":"rgba(255, 255, 255, 0.6)","dialog-border-color":"#0067B8","hyperlink-font-color":"#0067B8","secondary-button-hover-color":"#DBDBDB","secondary-button-hover-border":"2px solid #0067B8","secondary-button-disabled-border":"none","secondary-button-focus-border-color":"#000000","secondary-button-text-color":"#0067B8","secondary-button-disabled-text-color":"rgba(0, 0, 0, 0.2)","primary-button-hover-color":"#0067B8","primary-button-disabled-color":"rgba(0, 120, 215, 0.2)","primary-button-border":"none","primary-button-focus-border-color":"#000000","primary-button-text-color":"#FFFFFF","primary-button-disabled-text-color":"rgba(0, 0, 0, 0.2)","radio-button-border-color":"#000000","radio-button-checked-background-color":"#000000","radio-button-hover-border-color":"#0067B8","radio-button-hover-background-color":"rgba(0, 0, 0, 0.8)","radio-button-disabled-color":"rgba(0, 0, 0, 0.2)","radio-button-disabled-border-color":"rgba(0, 0, 0, 0.2)","banner-close-button-color":"#000000"},b={"close-button-color":"#E3E3E3","secondary-button-disabled-opacity":"0.5","secondary-button-hover-shadow":"none","primary-button-disabled-opacity":"0.5","primary-button-hover-border":"1px solid rgba(0, 0, 0, 0)","primary-button-disabled-border":"1px solid rgba(255, 255, 255, 0)","primary-button-hover-shadow":"none","banner-background-color":"#242424","dialog-background-color":"#171717","primary-button-color":"#4DB2FF","text-color":"#E3E3E3","secondary-button-color":"#171717","secondary-button-disabled-color":"#2E2E2E","secondary-button-border":"1px solid #C7C7C7","background-color-between-page-and-dialog":"rgba(23, 23, 23, 0.6)","dialog-border-color":"#4DB2FF","hyperlink-font-color":"#4DB2FF","secondary-button-hover-color":"#2E2E2E","secondary-button-hover-border":"1px solid #C7C7C7","secondary-button-disabled-border":"1px solid #242424","secondary-button-focus-border-color":"#C7C7C7","secondary-button-text-color":"#E3E3E3","secondary-button-disabled-text-color":"#E3E3E3","primary-button-hover-color":"#0091FF","primary-button-disabled-color":"#4DB2FF","primary-button-border":"1px solid #4DB2FF","primary-button-focus-border-color":"#4DB2FF","primary-button-text-color":"black","primary-button-disabled-text-color":"black","radio-button-border-color":"#E3E3E3","radio-button-checked-background-color":"#E3E3E3","radio-button-hover-border-color":"#4DB2FF","radio-button-hover-background-color":"rgba(227, 227, 227, 0.8)","radio-button-disabled-color":"rgba(227, 227, 227, 0.2)","radio-button-disabled-border-color":"rgba(227, 227, 227, 0.2)","banner-close-button-color":"#E3E3E3"},p={"close-button-color":"#E3E3E3","secondary-button-disabled-opacity":"0.5","secondary-button-hover-shadow":"none","primary-button-disabled-opacity":"0.5","primary-button-hover-border":"1px solid yellow","primary-button-disabled-border":"1px solid white","primary-button-hover-shadow":"none","banner-background-color":"black","dialog-background-color":"black","primary-button-color":"yellow","text-color":"white","secondary-button-color":"black","secondary-button-disabled-color":"black","secondary-button-border":"1px solid white","background-color-between-page-and-dialog":"rgba(0, 0, 0, 0.6)","dialog-border-color":"yellow","hyperlink-font-color":"yellow","secondary-button-hover-color":"black","secondary-button-hover-border":"1px solid yellow","secondary-button-disabled-border":"1px solid black","secondary-button-focus-border-color":"white","secondary-button-text-color":"white","secondary-button-disabled-text-color":"white","primary-button-hover-color":"#FFFF33","primary-button-disabled-color":"yellow","primary-button-border":"1px solid yellow","primary-button-focus-border-color":"yellow","primary-button-text-color":"black","primary-button-disabled-text-color":"black","radio-button-border-color":"white","radio-button-checked-background-color":"white","radio-button-hover-border-color":"yellow","radio-button-hover-background-color":"rgba(255, 255, 255, 0.8)","radio-button-disabled-color":"rgba(255, 255, 255, 0.2)","radio-button-disabled-border-color":"rgba(255, 255, 255, 0.2)","banner-close-button-color":"#E3E3E3"},m=function(){return(m=Object.assign||function(e){for(var o,t=1,r=arguments.length;t<r;t++)for(var n in o=arguments[t])Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);return e}).apply(this,arguments)},h=r.locals,f=function(){function e(e,o,t,i,a){for(var l in this.containerElement=null,this.themes={light:m({},u),dark:m({},b),"high-contrast":m({},p)},this.preferencesCtrl=null,this.direction="ltr",this.isDirty={changed:!1},this.defaultCookieCategories=[{id:"c0",name:"1. Essential cookies",descHtml:"We use this cookie, read more <a href='link'>here</a>.",isUnswitchable:!0},{id:"c1",name:"2. Performance & analytics",descHtml:"We use this cookie, read more <a href='link'>here</a>."},{id:"c2",name:"3. Advertising/Marketing",descHtml:"Blah"},{id:"c3",name:"4. Targeting/personalization",descHtml:"Blah"}],this.defaultTextResources={bannerMessageHtml:"We use optional cookies to provide... read <a href='link'>here</a>.",acceptAllLabel:"Accept all",rejectAllLabel:"Reject all",moreInfoLabel:"More info",preferencesDialogCloseLabel:"Close",preferencesDialogTitle:"Manage cookie preferences",preferencesDialogDescHtml:"Most Microsoft sites...",acceptLabel:"Accept",rejectLabel:"Reject",saveLabel:"Save changes",resetLabel:"Reset all",bannerCloseLabel:"Close banner"},this.setContainerElement(e),(null==a?void 0:a.stylesNonce)?n(r,{attributes:{id:"ms-consent-banner-main-styles",nonce:a.stylesNonce}}):n(r,{attributes:{id:"ms-consent-banner-main-styles"}}),this.culture=o,this.onPreferencesChanged=t,this.cookieCategories=i||this.defaultCookieCategories,this.textResources=this.defaultTextResources,(null==a?void 0:a.textResources)&&this.setTextResources(a.textResources),null==a?void 0:a.themes){var d=l;(null==a?void 0:a.themes[d])&&this.createTheme(l,null==a?void 0:a.themes[d])}c.createThemeStyle(null==a?void 0:a.stylesNonce),(null==a?void 0:a.initialTheme)&&this.applyTheme(a.initialTheme),this.setDirection()}return e.prototype.setTextResources=function(e){for(var o=0,t=Object.keys(this.textResources);o<t.length;o++){var r=t[o];e[r]&&(this.textResources[r]=e[r])}},e.prototype.createTheme=function(e,o){var t=e;this.themes[t]=o,c.createTheme(this.themes[t],o)},e.prototype.applyTheme=function(e){if(!this.themes[e])throw new Error("Theme not found error");var o=this.themes[e];c.applyTheme(o)},e.prototype.showBanner=function(e){var o,t=this;if(!document.querySelector('meta[name="viewport"]')){var r=document.createElement("meta");r.name="viewport",r.content="width=device-width, initial-scale=1.0",document.head.appendChild(r)}this.hideBanner();var n='\n <div class="'+h.bannerClose+'">\n <button aria-label="'+i.escapeHtml(this.textResources.bannerCloseLabel)+'" class="'+h.closeBannerIcon+'" tabindex="">&#x2715;</button>\n </div>\n <div class="'+h.bannerInform+'">\n <span class="'+h.infoIcon+" "+h.textColorTheme+'">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 2C12.7139 2 13.4187 2.07494 14.1059 2.22228C14.6865 2.34679 14.899 3.06471 14.4797 3.48521C14.0148 3.95137 \n 13.75 4.57868 13.75 5.25C13.75 6.42043 14.5612 7.42718 15.6858 7.68625C16.0559 7.7715 16.3039 8.1199 16.2632 8.49747C16.2544 \n 8.5787 16.25 8.66307 16.25 8.75C16.25 10.1307 17.3693 11.25 18.75 11.25C19.4766 11.25 20.1513 10.9393 20.6235 10.4053C21.0526 \n 9.92011 21.8536 10.1704 21.9301 10.8137C21.9766 11.2048 22 11.6009 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 \n 12C2 6.47715 6.47715 2 12 2ZM12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.4367 20.5 20.0795 17.1008 \n 20.4661 12.7646L20.485 12.5085L20.492 12.351L20.2985 12.4391C19.9679 12.5779 19.6173 12.6725 19.2549 12.7183L18.9811 12.7434L18.75 \n 12.75C16.7439 12.75 15.0828 11.2732 14.7943 9.34752L14.7694 9.14675L14.755 8.96L14.6101 8.89964C13.3259 8.32272 12.4199 7.09599 \n 12.2715 5.66565L12.2549 5.44962L12.25 5.25C12.25 4.80313 12.3238 4.36764 12.4636 3.95777L12.5553 3.71503L12.64 3.525L12.3637 \n 3.50763L12 3.5ZM15 16C15.5523 16 16 16.4477 16 17C16 17.5523 15.5523 18 15 18C14.4477 18 14 17.5523 14 17C14 16.4477 14.4477 \n 16 15 16ZM8 15C8.55228 15 9 15.4477 9 16C9 16.5523 8.55228 17 8 17C7.44772 17 7 16.5523 7 16C7 15.4477 7.44772 15 8 15ZM12 \n 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11ZM7 \n 8C7.55228 8 8 8.44772 8 9C8 9.55228 7.55228 10 7 10C6.44772 10 6 9.55228 6 9C6 8.44772 6.44772 8 7 8Z" fill="currentColor" />\n </svg>\n </span> \x3c!-- used for icon --\x3e\n <p class="'+h.bannerInformBody+" "+h.hyperLinkTheme+" "+h.textColorTheme+'">\n '+this.textResources.bannerMessageHtml+'\n </p>\n </div>\n\n <div class="'+h.buttonGroup+'">\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.acceptAllLabel)+'</button>\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.rejectAllLabel)+'</button>\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.moreInfoLabel)+"</button>\n </div>\n ",a=document.createElement("div");a.setAttribute("id","wcpConsentBannerCtrl"),a.setAttribute("class",h.bannerBody),a.setAttribute("dir",this.direction),a.setAttribute("role","alert"),a.innerHTML=n,null===(o=this.containerElement)||void 0===o||o.appendChild(a);var l=document.getElementsByClassName(h.bannerButton)[2];null==l||l.addEventListener("click",(function(){return t.showPreferences(e)}));var d=document.getElementsByClassName(h.bannerButton)[0];null==d||d.addEventListener("click",(function(){return t.onAcceptAllClicked(e)}));var c=document.getElementsByClassName(h.bannerButton)[1];null==c||c.addEventListener("click",(function(){return t.onRejectAllClicked(e)}));var s=document.getElementsByClassName(h.closeBannerIcon)[0];null==s||s.addEventListener("click",(function(){return t.onBannerCloseClicked()}))},e.prototype.hideBanner=function(){var e;if(document.getElementsByClassName(h.bannerBody)){for(var o=0,t=[].slice.call(document.getElementsByClassName(h.bannerBody));o<t.length;o++){var r=t[o];null===(e=this.containerElement)||void 0===e||e.removeChild(r)}this.hidePreferences()}},e.prototype.showPreferences=function(e){var o;this.preferencesCtrl||this.initPreferencesCtrl(e),null===(o=this.preferencesCtrl)||void 0===o||o.onPreferencesDialogShowing()},e.prototype.hidePreferences=function(){this.preferencesCtrl&&this.preferencesCtrl.hidePreferencesDialog()},e.prototype.initPreferencesCtrl=function(e){var o=this;this.preferencesCtrl=new l(this.cookieCategories,this.textResources,e,this.containerElement,this.direction,this.isDirty,(function(){return o.onPreferencesClosed()})),this.preferencesCtrl.createPreferencesDialog(),this.preferencesCtrl.addSaveButtonEvent((function(){return o.onPreferencesChanged(e)}))},e.prototype.onAcceptAllClicked=function(e){for(var o=0,t=this.cookieCategories;o<t.length;o++){var r=t[o];r.isUnswitchable||(e[r.id]=!0)}this.onPreferencesChanged(e)},e.prototype.onRejectAllClicked=function(e){for(var o=0,t=this.cookieCategories;o<t.length;o++){var r=t[o];r.isUnswitchable||(e[r.id]=!1)}this.onPreferencesChanged(e)},e.prototype.onPreferencesClosed=function(){this.preferencesCtrl=null},e.prototype.onBannerCloseClicked=function(){this.hideBanner()},e.prototype.setContainerElement=function(e){if(e instanceof Element?this.containerElement=e:e&&e.length>0?this.containerElement=document.querySelector("#"+e):this.containerElement=null,!this.containerElement)throw new Error("Container not found error")},e.prototype.getContainerElement=function(){return this.containerElement},e.prototype.setDirection=function(e){if(e)this.direction=e;else{var o=this.culture.toLowerCase().split("-"),t=o[0];document.dir?this.direction=document.dir:document.body.dir?this.direction=document.body.dir:-1!==s.indexOf(t)||-1!==s.indexOf(o[0]+"-"+o[1])?this.direction="rtl":this.direction="ltr"}},e.prototype.getDirection=function(){return this.direction},e}()}])}));
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.ConsentControl=o():e.ConsentControl=o()}(window,(function(){return function(e){var o={};function t(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)t.d(n,r,function(o){return e[o]}.bind(null,r));return n},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=3)}([function(e,o,t){(o=t(2)(!1)).push([e.i,'.w8hcgFksdo30C8w-bygqu{color:#000}.ydkKdaztSS0AeHWIeIHsQ a{color:#0067B8}.erL690_8JwUW-R4bJRcfl{background-color:#EBEBEB;border:2px solid #0067B8;color:#0067B8}.erL690_8JwUW-R4bJRcfl:enabled:hover{color:#0067B8;background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #0067B8}.erL690_8JwUW-R4bJRcfl:enabled:focus{background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}.erL690_8JwUW-R4bJRcfl:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2);border:none}._1zNQOqxpBFSokeCLGi_hGr{border:2px solid #0067B8;background-color:#0067B8;color:#fff}._1zNQOqxpBFSokeCLGi_hGr:enabled:hover{color:#fff;background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:none}._1zNQOqxpBFSokeCLGi_hGr:enabled:focus{background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}._1zNQOqxpBFSokeCLGi_hGr:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,120,215,0.2);border:none}._23tra1HsiiP6cT-Cka-ycB{position:fixed;display:flex;z-index:9999;width:100%;background-color:#F2F2F2;justify-content:space-between;text-align:left;padding-top:15px;padding-bottom:15px;bottom:.5%;box-shadow:6px -5px 6px rgba(0,0,0,0.109804)}div[dir="rtl"]._23tra1HsiiP6cT-Cka-ycB{text-align:right}._1Upc2NjY8AlDn177YoVj0y{margin:0;padding-left:5%;padding-top:8px;padding-bottom:8px;align-self:center}div[dir="rtl"] ._1Upc2NjY8AlDn177YoVj0y{margin:0;padding:8px 5% 8px 0;float:none}.nR0Qab4YATq90SrZLzR1X{padding-bottom:110px}div[dir="rtl"] .nR0Qab4YATq90SrZLzR1X{margin:0;padding:8px 5% 8px 0;float:none}._23tra1HsiiP6cT-Cka-ycB svg{fill:none;max-width:none;max-height:none}._1V_hlU-7jdtPiooHMu89BB{display:table-cell;padding:12px;width:24px;height:24px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:24px;line-height:0}.f6QKJD7fhSbnJLarTL-W-{display:table-cell;vertical-align:middle;padding:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:16px}.f6QKJD7fhSbnJLarTL-W- a{text-decoration:underline}._2j0fmugLb1FgYz6KPuB91w{display:inline-block;margin-left:5%;margin-right:5%;min-width:40%;min-width:calc((150px + 3 * 4px) * 2 + 150px);min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;align-self:center;position:relative}._1XuCi2WhiqeWRUVp3pnFG3{margin:4px;padding:5px;min-width:150px;min-height:36px;vertical-align:top;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._1XuCi2WhiqeWRUVp3pnFG3:focus{box-sizing:border-box}._1XuCi2WhiqeWRUVp3pnFG3:disabled{cursor:not-allowed}._2bvsb3ubApyZ0UGoQA9O9T{display:block;position:fixed;z-index:10000;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.6);overflow:auto;text-align:left}div[dir="rtl"]._2bvsb3ubApyZ0UGoQA9O9T{text-align:right}div[dir="rtl"] ._2bvsb3ubApyZ0UGoQA9O9T{left:auto;right:0}.AFsJE948muYyzCMktdzuk{position:relative;top:8%;margin-bottom:40px;margin-left:auto;margin-right:auto;box-sizing:border-box;width:640px;background-color:#fff;border:1px solid #0067B8}._3kWyBRbW_dgnMiEyx06Fu4{float:right;z-index:1;margin:2px;padding:12px;border:none;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:13px;display:flex;align-items:center;text-align:center;color:#666;background-color:#F2F2F2}div[dir="rtl"] ._3kWyBRbW_dgnMiEyx06Fu4{margin:2px;padding:12px;float:left}._2xvRHgp_4bOc8Bs0z6zwlW{float:right;z-index:1;border:none;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:22px;width:22px;display:flex;align-items:center;text-align:center;color:#000;background-color:transparent;position:absolute;right:5%}div[dir="rtl"] ._2xvRHgp_4bOc8Bs0z6zwlW{margin:2px;padding:12px;float:left}.uCYvKvHXrhjNgflv1VqdD{position:static;margin-top:36px;margin-left:36px;margin-right:36px}._17pX1m9O_W--iZbDt3Ta5r{margin-top:0;margin-bottom:12px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:20px;line-height:24px;text-transform:none}._1kBkHQ1V1wu3kl-YcLgUr6{height:446px;overflow:auto}._20_nXDf6uFs9Q6wxRXG-I-{margin-top:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._20_nXDf6uFs9Q6wxRXG-I- a{text-decoration:underline}dl._2a0NH_GDQEQe5Ynfo7suVH{margin-top:36px;margin-bottom:0;padding:0;list-style:none;text-transform:none}dt._3j_LCPv7fyXv3A8FIXVwZ4{margin-top:20px;float:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;list-style:none}.k-vxTGFbdq1aOZB2HHpjh{margin:0;padding:0;border:none}._2Bucyy75c_ogoU1g-liB5R{margin:0;padding:0;border-bottom:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;text-transform:none}._63gwfzV8dclrsl2cfd90r{display:inline-block;margin-top:0;margin-bottom:13px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._1l8wM_4mRYGz3Iu7l3BZR7{display:block}._2UE03QS02aZGkslegN_F-i{display:inline-block;position:relative;left:5px;margin-bottom:13px;margin-right:34px;padding:3px}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{margin:0 0 13px 34px;padding:3px;float:none}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{left:auto;right:5px}._23tra1HsiiP6cT-Cka-ycB *::before,._2bvsb3ubApyZ0UGoQA9O9T *::before,._23tra1HsiiP6cT-Cka-ycB *::after,._2bvsb3ubApyZ0UGoQA9O9T *::after{box-sizing:inherit}._1HSFn0HzGo6w4ADApV8-c4{outline:2px solid rgba(0,0,0,0.8)}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2{display:inline-block;position:relative;margin-top:0;margin-left:0;margin-right:0;height:0;width:0;border-radius:0;cursor:pointer;outline:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{display:block;position:absolute;top:5px;left:3px;height:19px;width:19px;content:"";border-radius:50%;border:1px solid #000;background-color:#fff}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{left:auto;right:3px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:rgba(0,0,0,0.8)}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label{cursor:not-allowed}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label::before{border:1px solid rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2)}._3RJzeL3l9Rl_lAQEm6VwdX{display:block;position:static;float:right;margin-top:0;margin-bottom:0;margin-left:19px;margin-right:0;padding-top:0;padding-bottom:0;padding-left:8px;padding-right:0;width:80%;width:calc(100% - 19px);font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-transform:none;cursor:pointer;box-sizing:border-box}div[dir="rtl"] ._3RJzeL3l9Rl_lAQEm6VwdX{margin:0 19px 0 0;padding:0 8px 0 0;float:left}.nohp3sIG12ZBhzcMnPala{margin-top:20px;margin-bottom:48px}._2uhaEsmeotZ3P-M0AXo2kF{padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._2uhaEsmeotZ3P-M0AXo2kF:focus{box-sizing:border-box}._2uhaEsmeotZ3P-M0AXo2kF:disabled{cursor:not-allowed}._3tOu1FJ59c_xz_PmI1lKV5{float:right;padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._3tOu1FJ59c_xz_PmI1lKV5:focus{box-sizing:border-box}._3tOu1FJ59c_xz_PmI1lKV5:disabled{cursor:not-allowed}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0;padding:0;float:left}@media only screen and (max-width: 768px){._2j0fmugLb1FgYz6KPuB91w,._1Upc2NjY8AlDn177YoVj0y{padding-top:8px;padding-bottom:12px;padding-left:3.75%;padding-right:3.75%;margin:0;width:92.5%}._23tra1HsiiP6cT-Cka-ycB{display:block}._1XuCi2WhiqeWRUVp3pnFG3{margin-bottom:8px;margin-left:0;margin-right:0;width:100%}._2bvsb3ubApyZ0UGoQA9O9T{overflow:hidden}.AFsJE948muYyzCMktdzuk{top:1.8%;width:93.33%;height:96.4%;overflow:hidden}.uCYvKvHXrhjNgflv1VqdD{margin-top:24px;margin-left:24px;margin-right:24px;height:100%}._1kBkHQ1V1wu3kl-YcLgUr6{height:62%;height:calc(100% - 188px);min-height:50%}._2uhaEsmeotZ3P-M0AXo2kF{width:100%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:12px;margin-left:0;width:100%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 12px 0;padding:0;float:none}.nR0Qab4YATq90SrZLzR1X{padding-bottom:40px;padding-top:10px}}@media only screen and (max-width: 768px) and (orientation: landscape), only screen and (max-height: 260px), only screen and (max-width: 340px){.AFsJE948muYyzCMktdzuk{overflow:auto}}@media only screen and (max-height: 260px), only screen and (max-width: 340px){._1XuCi2WhiqeWRUVp3pnFG3{min-width:0}._3kWyBRbW_dgnMiEyx06Fu4{padding:3%}._2xvRHgp_4bOc8Bs0z6zwlW{padding:3%}.nR0Qab4YATq90SrZLzR1X{padding-bottom:40px;padding-top:10px}.uCYvKvHXrhjNgflv1VqdD{margin-top:3%;margin-left:3%;margin-right:3%}._17pX1m9O_W--iZbDt3Ta5r{margin-bottom:3%}._1kBkHQ1V1wu3kl-YcLgUr6{height:calc(79% - 64px)}.nohp3sIG12ZBhzcMnPala{margin-top:5%;margin-bottom:10%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:3%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 3% 0;padding:0;float:none}}\n',""]),o.locals={textColorTheme:"w8hcgFksdo30C8w-bygqu",hyperLinkTheme:"ydkKdaztSS0AeHWIeIHsQ",secondaryButtonTheme:"erL690_8JwUW-R4bJRcfl",primaryButtonTheme:"_1zNQOqxpBFSokeCLGi_hGr",bannerBody:"_23tra1HsiiP6cT-Cka-ycB",bannerInform:"_1Upc2NjY8AlDn177YoVj0y",bannerClose:"nR0Qab4YATq90SrZLzR1X",infoIcon:"_1V_hlU-7jdtPiooHMu89BB",bannerInformBody:"f6QKJD7fhSbnJLarTL-W-",buttonGroup:"_2j0fmugLb1FgYz6KPuB91w",bannerButton:"_1XuCi2WhiqeWRUVp3pnFG3",cookieModal:"_2bvsb3ubApyZ0UGoQA9O9T",modalContainer:"AFsJE948muYyzCMktdzuk",closeModalIcon:"_3kWyBRbW_dgnMiEyx06Fu4",closeBannerIcon:"_2xvRHgp_4bOc8Bs0z6zwlW",modalBody:"uCYvKvHXrhjNgflv1VqdD",modalTitle:"_17pX1m9O_W--iZbDt3Ta5r",modalContent:"_1kBkHQ1V1wu3kl-YcLgUr6",cookieStatement:"_20_nXDf6uFs9Q6wxRXG-I-",cookieOrderedList:"_2a0NH_GDQEQe5Ynfo7suVH",cookieListItem:"_3j_LCPv7fyXv3A8FIXVwZ4",cookieListItemGroup:"k-vxTGFbdq1aOZB2HHpjh",cookieListItemTitle:"_2Bucyy75c_ogoU1g-liB5R",cookieListItemDescription:"_63gwfzV8dclrsl2cfd90r",cookieItemRadioBtnGroup:"_1l8wM_4mRYGz3Iu7l3BZR7",cookieItemRadioBtnCtrl:"_2UE03QS02aZGkslegN_F-i",cookieItemRadioBtnCtrlOutline:"_1HSFn0HzGo6w4ADApV8-c4",cookieItemRadioBtn:"_1dp8Vp5m3HwAqGx8qBmFV2",cookieItemRadioBtnLabel:"_3RJzeL3l9Rl_lAQEm6VwdX",modalButtonGroup:"nohp3sIG12ZBhzcMnPala",modalButtonReset:"_2uhaEsmeotZ3P-M0AXo2kF",modalButtonSave:"_3tOu1FJ59c_xz_PmI1lKV5"},e.exports=o},function(e,o,t){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(o){if(void 0===e[o]){var t=document.querySelector(o);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[o]=t}return e[o]}}(),a=[];function l(e){for(var o=-1,t=0;t<a.length;t++)if(a[t].identifier===e){o=t;break}return o}function d(e,o){for(var t={},n=[],r=0;r<e.length;r++){var i=e[r],d=o.base?i[0]+o.base:i[0],c=t[d]||0,s="".concat(d," ").concat(c);t[d]=c+1;var u=l(s),b={css:i[1],media:i[2],sourceMap:i[3]};-1!==u?(a[u].references++,a[u].updater(b)):a.push({identifier:s,updater:g(b,o),references:1}),n.push(s)}return n}function c(e){var o=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=t.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){o.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(o);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(o)}return o}var s,u=(s=[],function(e,o){return s[e]=o,s.filter(Boolean).join("\n")});function b(e,o,t,n){var r=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(o,r);else{var i=document.createTextNode(r),a=e.childNodes;a[o]&&e.removeChild(a[o]),a.length?e.insertBefore(i,a[o]):e.appendChild(i)}}function p(e,o,t){var n=t.css,r=t.media,i=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var m=null,h=0;function g(e,o){var t,n,r;if(o.singleton){var i=h++;t=m||(m=c(o)),n=b.bind(null,t,i,!1),r=b.bind(null,t,i,!0)}else t=c(o),n=p.bind(null,t,o),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;n(e=o)}else r()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=r());var t=d(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var r=l(t[n]);a[r].references--}for(var i=d(e,o),c=0;c<t.length;c++){var s=l(t[c]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}t=i}}}},function(e,o,t){"use strict";e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var t=function(e,o){var t=e[1]||"",n=e[3];if(!n)return t;if(o&&"function"==typeof btoa){var r=(a=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(d," */")),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([r]).join("\n")}var a,l,d;return[t].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);n&&r[d[0]]||(t&&(d[2]?d[2]="".concat(t," and ").concat(d[2]):d[2]=t),o.push(d))}},o}},function(e,o,t){"use strict";t.r(o),t.d(o,"ConsentControl",(function(){return g}));var n=t(0),r=t(1),i=function(){function e(){}return e.escapeHtml=function(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},e}(),a=n.locals,l=function(){function e(e,o,t,n,r,i,a){this.direction="ltr",this.previousFocusElementBeforePopup=null,this.cookieCategories=e,this.textResources=o,this.cookieCategoriesPreferences=t,this.containerElement=n,this.direction=r,this.isDirty=i,this.onPreferencesClosed=a}return e.prototype.createPreferencesDialog=function(){var e='\n <div role="presentation" tabindex="-1"></div>\n <div role="dialog" aria-modal="true" aria-label="'+i.escapeHtml(this.textResources.preferencesDialogTitle)+'" class="'+a.modalContainer+'" tabindex="-1">\n <button aria-label="'+i.escapeHtml(this.textResources.preferencesDialogCloseLabel)+'" class="'+a.closeModalIcon+'" tabindex="0">&#x2715;</button>\n <div role="document" class="'+a.modalBody+'">\n <div>\n <h1 class="'+a.modalTitle+" "+a.textColorTheme+'">'+i.escapeHtml(this.textResources.preferencesDialogTitle)+'</h1>\n </div>\n \n <form class="'+a.modalContent+" "+a.hyperLinkTheme+'">\n <p class="'+a.cookieStatement+" "+a.textColorTheme+'">\n '+this.textResources.preferencesDialogDescHtml+'\n </p>\n\n <dl class="'+a.cookieOrderedList+'">\n </dl>\n </form>\n \n <div class="'+a.modalButtonGroup+'">\n <button type="button" aria-label="'+i.escapeHtml(this.textResources.saveLabel)+'" class="'+a.modalButtonSave+" "+a.primaryButtonTheme+'" disabled>'+i.escapeHtml(this.textResources.saveLabel)+'</button>\n <button type="button" aria-label="'+i.escapeHtml(this.textResources.resetLabel)+'" class="'+a.modalButtonReset+" "+a.secondaryButtonTheme+'" disabled>'+i.escapeHtml(this.textResources.resetLabel)+"</button>\n </div>\n </div>\n </div>\n ",o=document.createElement("div");o.setAttribute("id","wcpCookiePreferenceCtrl"),o.setAttribute("class",a.cookieModal),o.setAttribute("dir",this.direction),o.innerHTML=e,this.containerElement.appendChild(o);for(var t=!1,n=0,r=this.cookieCategories;n<r.length;n++){var l=r[n];if(l.isUnswitchable){var d='\n <dt class="'+a.cookieListItem+" "+a.textColorTheme+'" aria-label="'+i.escapeHtml(l.name)+'">\n <h2 class="'+a.cookieListItemTitle+" "+a.textColorTheme+'">'+i.escapeHtml(l.name)+'</h2>\n <p class="'+a.cookieListItemDescription+" "+a.textColorTheme+'">'+l.descHtml+"</p>\n </dt>\n ";document.getElementsByClassName(a.cookieOrderedList)[0].innerHTML+=d}else{void 0!==this.cookieCategoriesPreferences[l.id]&&(t=!0);var c=l.id,s=!0===this.cookieCategoriesPreferences[l.id]?"checked":"",u=!1===this.cookieCategoriesPreferences[l.id]?"checked":"",b=a.cookieItemRadioBtn+"_"+c+"_accept",p=a.cookieItemRadioBtn+"_"+c+"_reject",m='<input type="radio" class="'+a.cookieItemRadioBtn+'" name="'+c+'" id="'+b+'" value="accept" '+s+">",h='<input type="radio" class="'+a.cookieItemRadioBtn+'" name="'+c+'" id="'+p+'" value="reject" '+u+">",g=a.cookieListItemTitle+"_"+c+"_title";d='\n <dt class="'+a.cookieListItem+" "+a.textColorTheme+'" aria-label="'+i.escapeHtml(l.name)+'">\n <div class="'+a.cookieListItemGroup+'" role="radiogroup" aria-labelledby="'+g+'">\n <h2 class="'+a.cookieListItemTitle+" "+a.textColorTheme+'" id="'+g+'">'+i.escapeHtml(l.name)+'</h2>\n <p class="'+a.cookieListItemDescription+" "+a.textColorTheme+'">'+l.descHtml+'</p>\n <div class="'+a.cookieItemRadioBtnGroup+'">\n <div class="'+a.cookieItemRadioBtnCtrl+'">\n '+m+'\n <label class="'+a.cookieItemRadioBtnLabel+" "+a.textColorTheme+'" for="'+b+'">'+i.escapeHtml(this.textResources.acceptLabel)+'</label>\n </div>\n <div class="'+a.cookieItemRadioBtnCtrl+'">\n '+h+'\n <label class="'+a.cookieItemRadioBtnLabel+" "+a.textColorTheme+'" for="'+p+'">'+i.escapeHtml(this.textResources.rejectLabel)+"</label>\n </div>\n </div>\n </div>\n </dt>\n ";document.getElementsByClassName(a.cookieOrderedList)[0].innerHTML+=d}}if(t){var f=document.getElementsByClassName(a.modalButtonReset)[0];f&&(f.disabled=!1)}this.addPreferencesButtonsEvent()},e.prototype.onPreferencesDialogShowing=function(){var e=this,o=!1;this.previousFocusElementBeforePopup&&(o=!0),this.previousFocusElementBeforePopup=document.activeElement;var t=document.getElementsByClassName(a.modalContainer)[0];t.focus(),o||t.addEventListener("keydown",(function(o){"Escape"!=o.key&&"Esc"!=o.key||(o.preventDefault(),e.hidePreferencesDialog())}))},e.prototype.hidePreferencesDialog=function(){var e,o=document.getElementsByClassName(a.cookieModal)[0];this.containerElement.removeChild(o),null===(e=this.previousFocusElementBeforePopup)||void 0===e||e.focus(),this.previousFocusElementBeforePopup=null,this.onPreferencesClosed()},e.prototype.addPreferencesButtonsEvent=function(){var e=this,o=document.getElementsByClassName(a.closeModalIcon)[0],t=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn)),n=document.getElementsByClassName(a.modalButtonSave)[0],r=document.getElementsByClassName(a.modalButtonReset)[0];this.controlRadioBtnFocusStyle(),this.controlNextActiveElement(),null==o||o.addEventListener("click",(function(){return e.hidePreferencesDialog()}));for(var i=function(o){o.addEventListener("click",(function(){var t=o.getAttribute("name");if(t){var r=e.cookieCategoriesPreferences[t],i=o.getAttribute("value");e.cookieCategoriesPreferences[t]="accept"===i,r!==e.cookieCategoriesPreferences[t]&&(n.disabled=!1,e.isDirty.changed=!0)}}))},l=0,d=t;l<d.length;l++){i(d[l])}null==r||r.addEventListener("click",(function(){n.disabled=!1;for(var o=0,t=e.cookieCategories;o<t.length;o++){var r=t[o];r.isUnswitchable||(e.cookieCategoriesPreferences[r.id]=void 0)}e.isDirty.changed=!1,e.setRadioBtnState()})),this.isDirty.changed&&(n.disabled=!1)},e.prototype.controlNextActiveElement=function(){var e=document.getElementsByClassName(a.closeModalIcon)[0],o=document.getElementsByClassName(a.modalButtonSave)[0],t=document.getElementsByClassName(a.modalButtonReset)[0],n=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn)),r=null,i=null;n.length&&(r=n[n.length-2],i=n[n.length-1]);var l=function(o){"Tab"!=o.key||o.shiftKey||(o.preventDefault(),e.focus())},d=function(e){"Tab"==e.key&&e.shiftKey&&(e.preventDefault(),null==i||i.focus())},c=function(e){"Tab"==e.key&&e.shiftKey&&(e.preventDefault(),t.focus())};t.addEventListener("keydown",(function(o){"Tab"!=o.key||o.shiftKey||(o.preventDefault(),e.focus())})),t.disabled&&o.disabled?n.length&&(null==r||r.addEventListener("keydown",l),null==i||i.addEventListener("keydown",l),e.addEventListener("keydown",d)):e.addEventListener("keydown",c);for(var s=0,u=n;s<u.length;s++){u[s].addEventListener("click",(function(){t.disabled&&(t.disabled=!1,null==r||r.removeEventListener("keydown",l),null==i||i.removeEventListener("keydown",l),e.removeEventListener("keydown",d),e.addEventListener("keydown",c))}))}},e.prototype.controlRadioBtnFocusStyle=function(){for(var e=this,o=0,t=[].slice.call(document.getElementsByClassName(a.cookieItemRadioBtn));o<t.length;o++){var n=t[o];n.addEventListener("blur",(function(o){var t=o.target;e.removeBlurRadioBtnOutline(t)})),n.addEventListener("focus",(function(e){e.target.parentElement.className+=" "+a.cookieItemRadioBtnCtrlOutline}))}},e.prototype.removeBlurRadioBtnOutline=function(e){if(e){var o=e.parentElement,t=o.className.replace(" "+a.cookieItemRadioBtnCtrlOutline,"");o.className=t}},e.prototype.addSaveButtonEvent=function(e){var o=document.getElementsByClassName(a.modalButtonSave)[0];null==o||o.addEventListener("click",(function(){return e()}))},e.prototype.setRadioBtnState=function(){for(var e=0,o=0,t=this.cookieCategories;o<t.length;o++){var n=t[o];if(!n.isUnswitchable){var r=n.id;if(!0===this.cookieCategoriesPreferences[r])document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!0,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++;else if(!1===this.cookieCategoriesPreferences[r]){document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!0,e++}else{document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++,document.getElementsByClassName(a.cookieItemRadioBtn)[e].checked=!1,e++}}}},e}(),d=n.locals,c=function(){function e(){}return e.createTheme=function(e,o){if(!o["background-color-between-page-and-dialog"]){var t=o["dialog-background-color"];this.setMissingColorFromAnotherProperty("background-color-between-page-and-dialog",t,.6,e)}if(o["primary-button-text-color"]||(e["primary-button-text-color"]=o["dialog-background-color"]),o["primary-button-disabled-text-color"]||(e["primary-button-disabled-text-color"]=o["dialog-background-color"]),o["dialog-border-color"]||(e["dialog-border-color"]=o["primary-button-color"]),o["hyperlink-font-color"]||(e["hyperlink-font-color"]=o["primary-button-color"]),o["primary-button-hover-color"]||(e["primary-button-hover-color"]=o["primary-button-color"]),o["primary-button-disabled-color"]||(e["primary-button-disabled-color"]=o["primary-button-color"]),o["primary-button-border"]||(e["primary-button-border"]="1px solid "+o["primary-button-color"]),o["primary-button-focus-border-color"]||(e["primary-button-focus-border-color"]=o["primary-button-color"]),o["radio-button-hover-border-color"]||(e["radio-button-hover-border-color"]=o["primary-button-color"]),o["secondary-button-text-color"]||(e["secondary-button-text-color"]=o["text-color"]),o["secondary-button-disabled-text-color"]||(e["secondary-button-disabled-text-color"]=o["text-color"]),o["radio-button-border-color"]||(e["radio-button-border-color"]=o["text-color"]),o["radio-button-checked-background-color"]||(e["radio-button-checked-background-color"]=o["text-color"]),!o["radio-button-hover-background-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-hover-background-color",t,.8,e)}if(!o["radio-button-disabled-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-disabled-color",t,.2,e)}if(!o["radio-button-disabled-border-color"]){t=o["text-color"];this.setMissingColorFromAnotherProperty("radio-button-disabled-border-color",t,.2,e)}if(o["secondary-button-hover-color"]||(e["secondary-button-hover-color"]=o["secondary-button-color"]),o["secondary-button-disabled-border"]||(e["secondary-button-disabled-border"]="1px solid "+o["secondary-button-disabled-color"]),o["secondary-button-hover-border"]||(e["secondary-button-hover-border"]=o["secondary-button-border"]),!o["secondary-button-focus-border-color"]){var n=o["secondary-button-border"].split(" ");e["secondary-button-focus-border-color"]=n[n.length-1]}o["banner-close-button-color"]||(e["banner-close-button-color"]=o["text-color"])},e.createThemeStyle=function(e){var o=document.createElement("style");o.type="text/css",o.id="ms-consent-banner-theme-styles",e&&o.setAttribute("nonce",e),document.head.appendChild(o)},e.applyTheme=function(e){var o="";o+="."+d.bannerBody+" {\n background-color: "+e["banner-background-color"]+" !important;\n }",o+="."+d.textColorTheme+" {\n color: "+e["text-color"]+" !important;\n }";var t="."+d.hyperLinkTheme+" a {\n color: "+e["hyperlink-font-color"]+" !important;\n }",n="."+d.closeBannerIcon+" {\n color: "+e["banner-close-button-color"]+" !important;\n }";o+=t,o+=this.buildDialogStyle(e),o+=this.buildPrimaryBtnStyle(e),o+=this.buildSecondaryBtnStyle(e),o+=this.buildRadioBtnStyle(e),o+=n,document.getElementById("ms-consent-banner-theme-styles").textContent=o},e.setMissingColorFromAnotherProperty=function(e,o,t,n){if(o.startsWith("#")){var r=parseInt(o.substring(1),16),i=r>>16&255,a=r>>8&255,l=255&r;n[e]="rgba("+i+", "+a+", "+l+", "+t+")"}else if(o.startsWith("rgb(")){var d="rgba"+o.substring(3,o.length-1)+", "+t+")";n[e]=d}else if(o.startsWith("rgba")){var c=o.lastIndexOf(","),s=o.substring(c+1,o.length-1),u=parseFloat(s.trim())*t;d=o.substring(0,c+1)+u.toFixed(2)+")";n[e]=d}},e.buildDialogStyle=function(e){var o="";return o+="."+d.cookieModal+" {\n background-color: "+e["background-color-between-page-and-dialog"]+" !important;\n }",o+="."+d.modalContainer+" {\n background-color: "+e["dialog-background-color"]+" !important;\n border: 1px solid "+e["dialog-border-color"]+" !important;\n }",o+="."+d.closeModalIcon+" {\n color: "+e["close-button-color"]+" !important;\n background-color: "+e["dialog-background-color"]+" !important;\n }"},e.buildSecondaryBtnStyle=function(e){var o="";return o+="."+d.secondaryButtonTheme+" {\n border: "+e["secondary-button-border"]+" !important;\n background-color: "+e["secondary-button-color"]+" !important;\n color: "+e["secondary-button-text-color"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":enabled:hover {\n color: "+e["secondary-button-text-color"]+" !important;\n background-color: "+e["secondary-button-hover-color"]+" !important;\n box-shadow: "+e["secondary-button-hover-shadow"]+" !important;\n border: "+e["secondary-button-hover-border"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":enabled:focus {\n background-color: "+e["secondary-button-hover-color"]+" !important;\n box-shadow: "+e["secondary-button-hover-shadow"]+" !important;\n border: 2px solid "+e["secondary-button-focus-border-color"]+" !important;\n }",o+="."+d.secondaryButtonTheme+":disabled {\n opacity: "+e["secondary-button-disabled-opacity"]+" !important;\n color: "+e["secondary-button-disabled-text-color"]+" !important;\n background-color: "+e["secondary-button-disabled-color"]+" !important;\n border: "+e["secondary-button-disabled-border"]+" !important;\n }"},e.buildPrimaryBtnStyle=function(e){var o="";return o+="."+d.primaryButtonTheme+" {\n border: "+e["primary-button-border"]+" !important;\n background-color: "+e["primary-button-color"]+" !important;\n color: "+e["primary-button-text-color"]+" !important;\n }",o+="."+d.primaryButtonTheme+":enabled:hover {\n color: "+e["primary-button-text-color"]+" !important;\n background-color: "+e["primary-button-hover-color"]+" !important;\n box-shadow: "+e["primary-button-hover-shadow"]+" !important;\n border: "+e["primary-button-hover-border"]+" !important;\n }",o+="."+d.primaryButtonTheme+":enabled:focus {\n background-color: "+e["primary-button-hover-color"]+" !important;\n box-shadow: "+e["primary-button-hover-shadow"]+" !important;\n border: 2px solid "+e["primary-button-focus-border-color"]+" !important;\n }",o+="."+d.primaryButtonTheme+":disabled {\n opacity: "+e["primary-button-disabled-opacity"]+" !important;\n color: "+e["primary-button-disabled-text-color"]+" !important;\n background-color: "+e["primary-button-disabled-color"]+" !important;\n border: "+e["primary-button-disabled-border"]+" !important;\n }"},e.buildRadioBtnStyle=function(e){var o="";return o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label::before {\n border: 1px solid "+e["radio-button-border-color"]+" !important;\n background-color: "+e["dialog-background-color"]+" !important;\n }",o+="."+d.cookieItemRadioBtnCtrlOutline+" {\n outline: 2px solid "+e["radio-button-hover-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+":checked + label::after {\n background-color: "+e["radio-button-checked-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:hover::before {\n border: 1px solid "+e["radio-button-hover-border-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:hover::after {\n background-color: "+e["radio-button-hover-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:focus::before {\n border: 1px solid "+e["radio-button-hover-border-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+" + label:focus::after {\n background-color: "+e["radio-button-checked-background-color"]+" !important;\n }",o+='input[type="radio"].'+d.cookieItemRadioBtn+":disabled + label::before {\n border: 1px solid "+e["radio-button-disabled-border-color"]+" !important;\n background-color: "+e["radio-button-disabled-color"]+" !important;\n }"},e}(),s=["ar","he","ps","ur","fa","pa","sd","tk","ug","yi","syr","ks-arab"],u={"close-button-color":"#666666","secondary-button-disabled-opacity":"1","secondary-button-hover-shadow":"0px 4px 10px rgba(0, 0, 0, 0.25)","primary-button-disabled-opacity":"1","primary-button-hover-border":"none","primary-button-disabled-border":"none","primary-button-hover-shadow":"0px 4px 10px rgba(0, 0, 0, 0.25)","banner-background-color":"#F2F2F2","dialog-background-color":"#FFFFFF","primary-button-color":"#0067B8","text-color":"#000000","secondary-button-color":"#EBEBEB","secondary-button-disabled-color":"rgba(0, 0, 0, 0.2)","secondary-button-border":"2px solid #0067B8","background-color-between-page-and-dialog":"rgba(255, 255, 255, 0.6)","dialog-border-color":"#0067B8","hyperlink-font-color":"#0067B8","secondary-button-hover-color":"#DBDBDB","secondary-button-hover-border":"2px solid #0067B8","secondary-button-disabled-border":"none","secondary-button-focus-border-color":"#000000","secondary-button-text-color":"#0067B8","secondary-button-disabled-text-color":"rgba(0, 0, 0, 0.2)","primary-button-hover-color":"#0067B8","primary-button-disabled-color":"rgba(0, 120, 215, 0.2)","primary-button-border":"none","primary-button-focus-border-color":"#000000","primary-button-text-color":"#FFFFFF","primary-button-disabled-text-color":"rgba(0, 0, 0, 0.2)","radio-button-border-color":"#000000","radio-button-checked-background-color":"#000000","radio-button-hover-border-color":"#0067B8","radio-button-hover-background-color":"rgba(0, 0, 0, 0.8)","radio-button-disabled-color":"rgba(0, 0, 0, 0.2)","radio-button-disabled-border-color":"rgba(0, 0, 0, 0.2)","banner-close-button-color":"#000000"},b={"close-button-color":"#E3E3E3","secondary-button-disabled-opacity":"0.5","secondary-button-hover-shadow":"none","primary-button-disabled-opacity":"0.5","primary-button-hover-border":"1px solid rgba(0, 0, 0, 0)","primary-button-disabled-border":"1px solid rgba(255, 255, 255, 0)","primary-button-hover-shadow":"none","banner-background-color":"#242424","dialog-background-color":"#171717","primary-button-color":"#4DB2FF","text-color":"#E3E3E3","secondary-button-color":"#171717","secondary-button-disabled-color":"#2E2E2E","secondary-button-border":"1px solid #C7C7C7","background-color-between-page-and-dialog":"rgba(23, 23, 23, 0.6)","dialog-border-color":"#4DB2FF","hyperlink-font-color":"#4DB2FF","secondary-button-hover-color":"#2E2E2E","secondary-button-hover-border":"1px solid #C7C7C7","secondary-button-disabled-border":"1px solid #242424","secondary-button-focus-border-color":"#C7C7C7","secondary-button-text-color":"#E3E3E3","secondary-button-disabled-text-color":"#E3E3E3","primary-button-hover-color":"#0091FF","primary-button-disabled-color":"#4DB2FF","primary-button-border":"1px solid #4DB2FF","primary-button-focus-border-color":"#4DB2FF","primary-button-text-color":"black","primary-button-disabled-text-color":"black","radio-button-border-color":"#E3E3E3","radio-button-checked-background-color":"#E3E3E3","radio-button-hover-border-color":"#4DB2FF","radio-button-hover-background-color":"rgba(227, 227, 227, 0.8)","radio-button-disabled-color":"rgba(227, 227, 227, 0.2)","radio-button-disabled-border-color":"rgba(227, 227, 227, 0.2)","banner-close-button-color":"#E3E3E3"},p={"close-button-color":"#E3E3E3","secondary-button-disabled-opacity":"0.5","secondary-button-hover-shadow":"none","primary-button-disabled-opacity":"0.5","primary-button-hover-border":"1px solid yellow","primary-button-disabled-border":"1px solid white","primary-button-hover-shadow":"none","banner-background-color":"black","dialog-background-color":"black","primary-button-color":"yellow","text-color":"white","secondary-button-color":"black","secondary-button-disabled-color":"black","secondary-button-border":"1px solid white","background-color-between-page-and-dialog":"rgba(0, 0, 0, 0.6)","dialog-border-color":"yellow","hyperlink-font-color":"yellow","secondary-button-hover-color":"black","secondary-button-hover-border":"1px solid yellow","secondary-button-disabled-border":"1px solid black","secondary-button-focus-border-color":"white","secondary-button-text-color":"white","secondary-button-disabled-text-color":"white","primary-button-hover-color":"#FFFF33","primary-button-disabled-color":"yellow","primary-button-border":"1px solid yellow","primary-button-focus-border-color":"yellow","primary-button-text-color":"black","primary-button-disabled-text-color":"black","radio-button-border-color":"white","radio-button-checked-background-color":"white","radio-button-hover-border-color":"yellow","radio-button-hover-background-color":"rgba(255, 255, 255, 0.8)","radio-button-disabled-color":"rgba(255, 255, 255, 0.2)","radio-button-disabled-border-color":"rgba(255, 255, 255, 0.2)","banner-close-button-color":"#E3E3E3"},m=function(){return(m=Object.assign||function(e){for(var o,t=1,n=arguments.length;t<n;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e}).apply(this,arguments)},h=n.locals,g=function(){function e(e,o,t,i,a){for(var l in this.containerElement=null,this.themes={light:m({},u),dark:m({},b),"high-contrast":m({},p)},this.preferencesCtrl=null,this.direction="ltr",this.isDirty={changed:!1},this.defaultCookieCategories=[{id:"c0",name:"1. Essential cookies",descHtml:"We use this cookie, read more <a href='link'>here</a>.",isUnswitchable:!0},{id:"c1",name:"2. Performance & analytics",descHtml:"We use this cookie, read more <a href='link'>here</a>."},{id:"c2",name:"3. Advertising/Marketing",descHtml:"Blah"},{id:"c3",name:"4. Targeting/personalization",descHtml:"Blah"}],this.defaultTextResources={bannerMessageHtml:"We use optional cookies to provide... read <a href='link'>here</a>.",acceptAllLabel:"Accept all",rejectAllLabel:"Reject all",moreInfoLabel:"More info",preferencesDialogCloseLabel:"Close",preferencesDialogTitle:"Manage cookie preferences",preferencesDialogDescHtml:"Most Microsoft sites...",acceptLabel:"Accept",rejectLabel:"Reject",saveLabel:"Save changes",resetLabel:"Reset all",bannerCloseLabel:"Close banner"},this.setContainerElement(e),(null==a?void 0:a.stylesNonce)?r(n,{attributes:{id:"ms-consent-banner-main-styles",nonce:a.stylesNonce}}):r(n,{attributes:{id:"ms-consent-banner-main-styles"}}),this.culture=o,this.onPreferencesChanged=t,this.cookieCategories=i||this.defaultCookieCategories,this.textResources=this.defaultTextResources,(null==a?void 0:a.textResources)&&this.setTextResources(a.textResources),null==a?void 0:a.themes){var d=l;(null==a?void 0:a.themes[d])&&this.createTheme(l,null==a?void 0:a.themes[d])}c.createThemeStyle(null==a?void 0:a.stylesNonce),(null==a?void 0:a.initialTheme)&&this.applyTheme(a.initialTheme),this.setDirection()}return e.prototype.setTextResources=function(e){for(var o=0,t=Object.keys(this.textResources);o<t.length;o++){var n=t[o];e[n]&&(this.textResources[n]=e[n])}},e.prototype.createTheme=function(e,o){var t=e;this.themes[t]=o,c.createTheme(this.themes[t],o)},e.prototype.applyTheme=function(e){if(!this.themes[e])throw new Error("Theme not found error");var o=this.themes[e];c.applyTheme(o)},e.prototype.showBanner=function(e){var o,t=this;if(!document.querySelector('meta[name="viewport"]')){var n=document.createElement("meta");n.name="viewport",n.content="width=device-width, initial-scale=1.0",document.head.appendChild(n)}this.hideBanner();var r='\n <div class="'+h.bannerClose+'">\n <button aria-label="'+i.escapeHtml(this.textResources.bannerCloseLabel)+'" class="'+h.closeBannerIcon+'" tabindex="">&#x2715;</button>\n </div>\n <div class="'+h.bannerInform+'">\n <span class="'+h.infoIcon+" "+h.textColorTheme+'">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 2C12.7139 2 13.4187 2.07494 14.1059 2.22228C14.6865 2.34679 14.899 3.06471 14.4797 3.48521C14.0148 3.95137 \n 13.75 4.57868 13.75 5.25C13.75 6.42043 14.5612 7.42718 15.6858 7.68625C16.0559 7.7715 16.3039 8.1199 16.2632 8.49747C16.2544 \n 8.5787 16.25 8.66307 16.25 8.75C16.25 10.1307 17.3693 11.25 18.75 11.25C19.4766 11.25 20.1513 10.9393 20.6235 10.4053C21.0526 \n 9.92011 21.8536 10.1704 21.9301 10.8137C21.9766 11.2048 22 11.6009 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 \n 12C2 6.47715 6.47715 2 12 2ZM12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.4367 20.5 20.0795 17.1008 \n 20.4661 12.7646L20.485 12.5085L20.492 12.351L20.2985 12.4391C19.9679 12.5779 19.6173 12.6725 19.2549 12.7183L18.9811 12.7434L18.75 \n 12.75C16.7439 12.75 15.0828 11.2732 14.7943 9.34752L14.7694 9.14675L14.755 8.96L14.6101 8.89964C13.3259 8.32272 12.4199 7.09599 \n 12.2715 5.66565L12.2549 5.44962L12.25 5.25C12.25 4.80313 12.3238 4.36764 12.4636 3.95777L12.5553 3.71503L12.64 3.525L12.3637 \n 3.50763L12 3.5ZM15 16C15.5523 16 16 16.4477 16 17C16 17.5523 15.5523 18 15 18C14.4477 18 14 17.5523 14 17C14 16.4477 14.4477 \n 16 15 16ZM8 15C8.55228 15 9 15.4477 9 16C9 16.5523 8.55228 17 8 17C7.44772 17 7 16.5523 7 16C7 15.4477 7.44772 15 8 15ZM12 \n 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11ZM7 \n 8C7.55228 8 8 8.44772 8 9C8 9.55228 7.55228 10 7 10C6.44772 10 6 9.55228 6 9C6 8.44772 6.44772 8 7 8Z" fill="currentColor" />\n </svg>\n </span> \x3c!-- used for icon --\x3e\n <p class="'+h.bannerInformBody+" "+h.hyperLinkTheme+" "+h.textColorTheme+'">\n '+this.textResources.bannerMessageHtml+'\n </p>\n </div>\n\n <div class="'+h.buttonGroup+'">\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.acceptAllLabel)+'</button>\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.rejectAllLabel)+'</button>\n <button type="button" class="'+h.bannerButton+" "+h.secondaryButtonTheme+'">'+i.escapeHtml(this.textResources.moreInfoLabel)+"</button>\n </div>\n ",a=document.createElement("div");a.setAttribute("id","wcpConsentBannerCtrl"),a.setAttribute("class",h.bannerBody),a.setAttribute("dir",this.direction),a.setAttribute("role","alert"),a.innerHTML=r,null===(o=this.containerElement)||void 0===o||o.appendChild(a);var l=document.getElementsByClassName(h.bannerButton)[2];null==l||l.addEventListener("click",(function(){return t.showPreferences(e)}));var d=document.getElementsByClassName(h.bannerButton)[0];null==d||d.addEventListener("click",(function(){return t.onAcceptAllClicked(e)}));var c=document.getElementsByClassName(h.bannerButton)[1];null==c||c.addEventListener("click",(function(){return t.onRejectAllClicked(e)}));var s=document.getElementsByClassName(h.closeBannerIcon)[0];null==s||s.addEventListener("click",(function(){return t.onBannerCloseClicked()})),this.addScrollListener()},e.prototype.hideBanner=function(){var e;if(document.getElementsByClassName(h.bannerBody)){var o=[].slice.call(document.getElementsByClassName(h.bannerBody)),t=this.getBannerElement();if(null!=t){var n=parseFloat(document.body.style.marginBottom.replace("px",""))-(t.getBoundingClientRect().height-10)+"px";document.body.style.marginBottom=n}for(var r=0,i=o;r<i.length;r++){var a=i[r];null===(e=this.containerElement)||void 0===e||e.removeChild(a)}this.hidePreferences()}},e.prototype.showPreferences=function(e){var o;this.preferencesCtrl||this.initPreferencesCtrl(e),null===(o=this.preferencesCtrl)||void 0===o||o.onPreferencesDialogShowing()},e.prototype.hidePreferences=function(){this.preferencesCtrl&&this.preferencesCtrl.hidePreferencesDialog()},e.prototype.initPreferencesCtrl=function(e){var o=this;this.preferencesCtrl=new l(this.cookieCategories,this.textResources,e,this.containerElement,this.direction,this.isDirty,(function(){return o.onPreferencesClosed()})),this.preferencesCtrl.createPreferencesDialog(),this.preferencesCtrl.addSaveButtonEvent((function(){return o.onPreferencesChanged(e)}))},e.prototype.onAcceptAllClicked=function(e){for(var o=0,t=this.cookieCategories;o<t.length;o++){var n=t[o];n.isUnswitchable||(e[n.id]=!0)}this.onPreferencesChanged(e)},e.prototype.onRejectAllClicked=function(e){for(var o=0,t=this.cookieCategories;o<t.length;o++){var n=t[o];n.isUnswitchable||(e[n.id]=!1)}this.onPreferencesChanged(e)},e.prototype.onPreferencesClosed=function(){this.preferencesCtrl=null},e.prototype.onBannerCloseClicked=function(){this.hideBanner()},e.prototype.setContainerElement=function(e){if(e instanceof Element?this.containerElement=e:e&&e.length>0?this.containerElement=document.querySelector("#"+e):this.containerElement=null,!this.containerElement)throw new Error("Container not found error")},e.prototype.getContainerElement=function(){return this.containerElement},e.prototype.setDirection=function(e){if(e)this.direction=e;else{var o=this.culture.toLowerCase().split("-"),t=o[0];document.dir?this.direction=document.dir:document.body.dir?this.direction=document.body.dir:-1!==s.indexOf(t)||-1!==s.indexOf(o[0]+"-"+o[1])?this.direction="rtl":this.direction="ltr"}},e.prototype.getDirection=function(){return this.direction},e.prototype.getBannerElement=function(){if(document.getElementsByClassName(h.bannerBody))for(var e=0,o=[].slice.call(document.getElementsByClassName(h.bannerBody));e<o.length;e++){return o[e]}return null},e.prototype.addScrollListener=function(){var e=this;document.addEventListener("scroll",(function(o){var t=e.getBannerElement();if(null!=t){var n=window.scrollY;document.body.clientHeight-window.innerHeight-n<t.offsetHeight&&(document.body.style.marginBottom=t.offsetHeight+10+"px")}}))},e}()}])}));
{
"name": "consent-banner",
"version": "2.3.0-beta.2",
"version": "2.3.0-beta.3",
"description": "The library which will generate a banner at the specified position for asking the cookie preferences.",

@@ -5,0 +5,0 @@ "main": "dist/consent-banner.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc