import{unmountComponentAtNode as e}from"react-dom";let t="root-dialog-portal";function o(e){let o=e??t,d=document.getElementById(o);if(d)return d;let n=document.createElement("div");return n.setAttribute("id",o),n.setAttribute("aria-modal","true"),n.setAttribute("role","dialog"),document.body.appendChild(n),n}function d(o){let d=o??t,n=document.getElementById(d);n&&(e(n),n.parentNode?.removeChild(n))}function n(){document.body.classList.add("confirm-dialog-body-element")}function r(){document.body.classList.remove("confirm-dialog-body-element")}export{n as addBodyClass,o as getOrCreateRootDialog,r as removeBodyClass,d as removeElementReconfirm};
