import{ag as c,D as i}from"./index-deffec86.js";const m=(s,u,r,t,a="warning")=>new Promise((n,o)=>{c.confirm(`\u662F\u5426${r}?`,"\u6E29\u99A8\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:a,draggable:!0}).then(async()=>{try{const e=await s(u);if(e.code!==200)return o(e.message);i({type:"success",message:`${t||r}\u6210\u529F!`}),n(!0)}catch(e){console.error(e)}})});export{m as u};
