import{e as a}from"./runtime-dom.esm-bundler-Dyqpejx9.chunk.mjs";function d(u,n={},s={}){let{container:e}=s;"container"in n&&typeof n.container=="string"&&(e??=n.container);const o=(typeof e=="string"&&document.querySelector(e)||document.body).appendChild(document.createElement("div"));return new Promise((c,i)=>{const t=a(u,{...n,container:null,onClose(...r){const m=r.length>1?r:r[0];t.unmount(),o.remove(),c(m)},"onVue:unmounted":()=>{t.unmount(),o.remove(),i(new Error("Dialog was unmounted without close event"))}});t.mount(o)})}export{d as s}; //# sourceMappingURL=index-0D_mItKm.chunk.mjs.map