!function(){"use strict";const e=["inert","hidden","disabled","readonly","required","checked","aria-disabled","aria-hidden"];function t(t,i){const o=t.jquery?t.get(0):t;Object.entries(i).forEach((([t,i])=>{const a=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();!function(e,t,i){if("aria-expanded"===t){if(!0!==i&&"true"!==i)return;const t=e.hasAttribute("aria-expanded"),o="false"===e.getAttribute("aria-expanded");t&&o||console.warn("Flatsome: Trying to set aria-expanded to true but attribute is not initially false",e)}}(o,a,i),null==i||e.includes(a)&&("false"===i||!1===i)?o.removeAttribute(a):a.startsWith("aria-")?o.setAttribute(a,"boolean"==typeof i?String(i):i):!0!==i?!1!==i?o.setAttribute(a,i):o.removeAttribute(a):o.setAttribute(a,"")}))}wp.domReady((function(){const e=jQuery(".flatsome-cookies");if(!e.length)return;const i="flatsome_cookie_notice",o=flatsomeVars.options.cookie_notice_version;Flatsome.Cookies.get(i)!==o&&setTimeout((function(){e.addClass("flatsome-cookies--active"),t(e,{inert:!1,tabindex:0}),e.trigger("focus"),e.on("click",".flatsome-cookies__accept-btn",(function(a){a.preventDefault(),e.removeClass("flatsome-cookies--active").addClass("flatsome-cookies--inactive"),t(e,{inert:!0,tabindex:-1}),Flatsome.Cookies.set(i,o,365)}))}),2500)}))}();