import{g as t,j as a,h as s}from"./qex-fw8l.js";let r=s(null);const c={get current(){return t(r)},confirm(e){return new Promise(l=>{t(r)&&t(r).resolve(!1),a(r,{title:e.title,message:e.message,items:e.items??[],confirmLabel:e.confirmLabel,cancelLabel:e.cancelLabel,variant:e.variant??"default",resolve:l},!0)})},accept(){if(!t(r))return;const e=t(r).resolve;a(r,null),e(!0)},dismiss(){if(!t(r))return;const e=t(r).resolve;a(r,null),e(!1)}};export{c as d};
