import{ae as e,E as t}from"./index-d052b22f-1780912037814v=1.0.0.js";const s=(s,a,n,c,o="warning")=>new Promise(((r,i)=>{e.confirm(`是否${n}?`,"温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:o,draggable:!0}).then((async()=>{try{const e=await s(a);if(200!==e.code)return i(e.message);t({type:"success",message:`${c||n}成功!`}),r(!0)}catch(e){}}))}));export{s as u};
