!function(){"use strict";var o={n:function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},d:function(t,e){for(var c in e)o.o(e,c)&&!o.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:e[c]})},o:function(o,t){return Object.prototype.hasOwnProperty.call(o,t)}},t=window.ctEvents;o.n(t)().on("ct:customizer:sync:collect-variable-descriptors",function(o){o.result={...o.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 e=function(){const o=document.querySelector(".cookie-notification");if(!o)return;o.querySelector(".ct-cookies-content")&&(o.querySelector(".ct-cookies-content").innerHTML=wp.customize("cookie_consent_content")()),o.querySelector("button.ct-cookies-accept-button").innerHTML=wp.customize("cookie_consent_button_text")();const t=wp.customize("cookie_consent_type")();o.dataset.type=t,o.firstElementChild.classList.remove("ct-container","container"),o.firstElementChild.classList.add("type-1"===t?"container":"ct-container")};wp.customize("cookie_consent_content",function(o){return o.bind(function(o){e()})}),wp.customize("cookie_consent_button_text",function(o){return o.bind(function(o){return e()})}),wp.customize("cookie_consent_type",function(o){return o.bind(function(o){return e()})}),wp.customize("forms_cookie_consent_content",function(o){return o.bind(function(o){return[...document.querySelectorAll(".gdpr-confirm-policy label")].map(function(t){return t.innerHTML=o})})})}();