import{g,E as u}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";const m=(s,o,r,t,a="warning")=>new Promise((n,i)=>{g.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(o);if(e.code!==0){u.error(e.msg);return}let c=t||`${r}\u6210\u529F`;u({type:"success",message:`${c}!`}),n(!0)}catch(e){console.error(e)}})});export{m as u};
