!function(){"use strict";var t={};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function e(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var c=n.call(t,e||"default");if("object"!=o(c))return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function n(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,{a:e}),e},t.d=function(o,e){for(var n in e)t.o(e,n)&&!t.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:e[n]})},t.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var c=window.ctEvents;function r(t,o){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);o&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,n)}return e}function i(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?r(Object(e),!0).forEach(function(o){n(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}t.n(c)().on("ct:customizer:sync:collect-variable-descriptors",function(t){t.result=i(i({},t.result),{},{cookieContentColor:[{selector:".cookie-notification",variable:"theme-text-color",type:"color:default"},{selector:".cookie-notification",variable:"theme-link-hover-color",type:"color:hover"}],cookieBackground:{selector:".cookie-notification",variable:"backgroundColor",type:"color"},cookieButtonText:[{selector:".cookie-notification .ct-cookies-accept-button",variable:"theme-button-text-initial-color",type:"color:default"},{selector:".cookie-notification .ct-cookies-accept-button",variable:"theme-button-text-hover-color",type:"color:hover"}],cookieButtonBackground:[{selector:".cookie-notification .ct-cookies-accept-button",variable:"theme-button-background-initial-color",type:"color:default"},{selector:".cookie-notification .ct-cookies-accept-button",variable:"theme-button-background-hover-color",type:"color:hover"}],cookieDeclineButtonText:[{selector:".cookie-notification .ct-cookies-decline-button",variable:"theme-button-text-initial-color",type:"color:default"},{selector:".cookie-notification .ct-cookies-decline-button",variable:"theme-button-text-hover-color",type:"color:hover"}],cookieDeclineButtonBackground:[{selector:".cookie-notification .ct-cookies-decline-button",variable:"theme-button-background-initial-color",type:"color:default"},{selector:".cookie-notification .ct-cookies-decline-button",variable:"theme-button-background-hover-color",type:"color:hover"}],cookieMaxWidth:{selector:".cookie-notification",variable:"maxWidth",unit:"px"}})});const u=function(){const t=document.querySelector(".cookie-notification");if(!t)return;t.querySelector(".ct-cookies-content")&&(t.querySelector(".ct-cookies-content").innerHTML=wp.customize("cookie_consent_content")()),t.querySelector("button.ct-cookies-accept-button").innerHTML=wp.customize("cookie_consent_button_text")();const o=wp.customize("cookie_consent_type")();t.dataset.type=o,t.firstElementChild.classList.remove("ct-container","container"),t.firstElementChild.classList.add("type-1"===o?"container":"ct-container")};wp.customize("cookie_consent_content",function(t){return t.bind(function(t){u()})}),wp.customize("cookie_consent_button_text",function(t){return t.bind(function(t){return u()})}),wp.customize("cookie_consent_type",function(t){return t.bind(function(t){return u()})}),wp.customize("forms_cookie_consent_content",function(t){return t.bind(function(t){return[...document.querySelectorAll(".gdpr-confirm-policy label")].map(function(o){return o.innerHTML=t})})})}();