import{g as a,j as l,i as s}from"./BfUaJvxP.js";let e=s(null);const c={get current(){return a(e)},confirm(r){return new Promise(t=>{a(e)&&a(e).resolve(!1),l(e,{title:r.title??"Are you sure?",message:r.message,confirmLabel:r.confirmLabel??"Confirm",cancelLabel:r.cancelLabel??"Cancel",variant:r.variant??"default",resolve:t},!0)})},accept(){if(!a(e))return;const r=a(e).resolve;l(e,null),r(!0)},dismiss(){if(!a(e))return;const r=a(e).resolve;l(e,null),r(!1)}};export{c as d};
