import{s as l}from"./x_rD_Ya3.js";import{Y as u,h as f,m as t,j as a,A as d,q as g,p as e,t as o,C as _}from"./BCLrUOBx.js";const h={key:0},y=5e3,E={__name:"ToastMessage",props:{message:{type:String,default:"Success"},isError:{type:Boolean,default:!1}},emits:["hide"],setup(r,{emit:n}){const c=r,{message:i,isError:s}=u(c),m=n;return f(()=>{l(function(){m("hide")},y)}),(p,k)=>(a(),t("h5",{class:_(["toast-message",{"error-toast":e(s)}])},[e(s)?(a(),t("span",h,o(p.$t("toastMessage.error"))+"!!!",1)):d("",!0),g(" "+o(e(i)),1)],2))}};export{E as default};
