import{a5 as c,E as i}from"./index-8184dd63-1780045603901v=1.0.0.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};
