"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("../constants.js"),m=require("./makeMessageId.js");const r=(e,s,t)=>(n,o)=>{const{position:l,...g}=s,u={variant:t||c.TOAST_VARIANT_DEFAULT,...g},a=m.makeMessageId();e({type:"add",message:{id:a,message:n,onClose:()=>e({type:"remove",messageId:a}),...u,...o}})},M=(e,s)=>({clear:()=>e({type:"clear"}),custom:r(e,s),error:r(e,s,"error"),info:r(e,s,"info"),success:r(e,s,"positive"),warning:r(e,s,"warning")});exports.createMessageMethods=M;
