"use strict";var e=require("react-dom");const t="root-dialog-portal";exports.addBodyClass=function(){document.body.classList.add("confirm-dialog-body-element")},exports.getOrCreateRootDialog=function(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},exports.removeBodyClass=function(){document.body.classList.remove("confirm-dialog-body-element")},exports.removeElementReconfirm=function(o){let d=o??t,n=document.getElementById(d);n&&(e.unmountComponentAtNode(n),n.parentNode?.removeChild(n))};
