var m=Object.defineProperty,u=Object.defineProperties;var d=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var a=(t,o,s)=>o in t?m(t,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[o]=s,e=(t,o)=>{for(var s in o||(o={}))f.call(o,s)&&a(t,s,o[s]);if(r)for(var s of r(o))g.call(o,s)&&a(t,s,o[s]);return t},n=(t,o)=>u(t,d(o));import{P as y}from"./index-CZJgrp0v.js";function i(t){const o={type:"info",duration:2e3,position:"middle",message:""},s=typeof t=="string"?n(e({},o),{message:t}):e(e({},o),t),c={top:"top",middle:"center",bottom:"bottom"},p={success:"success",error:"error",warning:"fail",info:"none"};y({title:s.message,duration:s.duration,position:c[s.position],icon:s.icon||p[s.type],mask:!0})}const b={success:(t,o)=>i(n(e({},o),{type:"success",message:t})),error:(t,o)=>i(n(e({},o),{type:"error",message:t})),warning:(t,o)=>i(n(e({},o),{type:"warning",message:t})),info:(t,o)=>i(n(e({},o),{type:"info",message:t}))};export{i as s,b as t};
