document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".ablocks-block--notice .ablocks-icon-wrap").forEach(function(e,o){const t=e.closest(".ablocks-block--notice"),n=e.closest(".ablocks-notice-header").getAttribute("data-notice-close"),l=`ablocks_notice_${o}`,c=localStorage.getItem(l);"permanent"===n&&"hidden"===c&&t&&(t.style.display="none"),"oneTime"===n&&(t.style.display="block"),e.addEventListener("click",function(){t&&("none"===t.style.display?(t.style.display="block","oneTime"===n&&localStorage.removeItem(l)):(t.style.display="none","permanent"===n?localStorage.setItem(l,"hidden"):"oneTime"===n&&localStorage.removeItem(l)))})})});