!function(){"use strict";var t={n:function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,{a:o}),o},d:function(e,o){for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.ctEvents;function o(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function c(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}t.n(e)().on("ct:customizer:sync:collect-variable-descriptors",(function(t){t.result=n(n({},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"}})}));var u=function(){var t=document.querySelector(".cookie-notification");if(t){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")();var e=wp.customize("cookie_consent_type")();t.dataset.type=e,t.firstElementChild.classList.remove("ct-container","container"),t.firstElementChild.classList.add("type-1"===e?"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 c(document.querySelectorAll(".gdpr-confirm-policy label")).map((function(e){return e.innerHTML=t}))}))}))}();