(()=>{const e=JetFBPluginConfig.slug,t="modal-"+e,o=document.querySelector("#"+t),l=o.querySelector(".jet-form-builder-modal-exit"),r=o.querySelector(".button.close"),c=o.querySelector(".button.continue");let n="";o.addEventListener("click",e=>{[r,l].includes(e.target)?o.classList.remove("open"):c===e.target&&(window.location=n)}),document.querySelector("#bulk-action-form").addEventListener("click",function(t){"A"===t.target.nodeName&&t.target?.id?.includes?.("deactivate-")&&t.target.closest(`tr.active[data-slug="${e}"]`)&&(t.preventDefault(),n=t.target.href,o.style.display="flex",o.classList.add("open"))})})();