import{m as d}from"./index-5df52834.js";const p=(e,s)=>{if(s){const{icon:o,type:n="info",dangerouslyUseHTMLString:t=!1,customClass:a="antd",duration:m=2e3,showClose:u=!1,center:r=!1,offset:c=20,appendTo:g=document.body,grouping:f=!1,onClose:l}=s;return ElementPlus.ElMessage({message:e,type:n,icon:o,dangerouslyUseHTMLString:t,duration:m,showClose:u,center:r,offset:c,appendTo:g,grouping:f,customClass:a==="antd"?"pure-message":"",onClose:()=>d(l)?l():null})}else return ElementPlus.ElMessage({message:e,customClass:"pure-message"})},C=()=>ElementPlus.ElMessage.closeAll();export{C as c,p as m};
