import{Y as o,Z as l,_ as t,$ as e,k as n,a0 as s,a1 as a}from"./index-BmnJ93Po.js";let c;let r=o({},{title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,cancelButtonDisabled:!1,confirmButtonText:"",confirmButtonColor:null,confirmButtonDisabled:!1,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1});function i(i){return l?new Promise(((l,u)=>{c||function(){const o={setup(){const{state:o,toggle:l}=e();return()=>n(a,s(o,{"onUpdate:show":l}),null)}};({instance:c}=t(o))}(),c.open(o({},r,i,{callback:o=>{("confirm"===o?l:u)(o)}}))})):Promise.resolve(void 0)}const u=l=>i(o({showCancelButton:!0},l));export{u as s};
