(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;e.n(t)()((()=>{document.querySelectorAll(".wp-block-gutenify-notice-bar").forEach((e=>{const t=e.querySelector(".gutenify-notice-bar-close"),o=e.classList,r=Array.from(o).find((e=>e.includes("gtfy"))),n=e.getAttribute("data-enable-cookie"),a=parseInt(e.getAttribute("data-cookie-time"));t?.addEventListener("click",(()=>{if(e.style.transition="opacity 0.3s ease, transform 0.3s ease",e.style.opacity="0",e.style.transform="scale(0.9)","true"===n){const e=new Date;e.setTime(e.getTime()+1e3*a);const t=a>0?` expires=${e.toUTCString()};`:"";document.cookie=`notice-bar-${r}=true; ${t} path=/`}e.addEventListener("transitionend",(()=>{e.remove()}),{once:!0})}))}))}))})();