import{X as u,a3 as c,Y as m,E as a,T as n,F as p,W as l,A as f,S as d,a4 as x}from"#entry";import{V as _}from"./C63UuyGC.js";import"./BML-0xFj.js";const g={style:{"z-index":"10000",position:"fixed",right:"1em",bottom:"1rem",opacity:"0.9"},class:"mb-2"},w={__name:"CoreNotification",setup(h){const{t:r}=u();c(()=>{const{$on:t}=m();t("notify",i)});const s=x([]);function i(t){const o=r(t.msg,t?.args);s.value.unshift({msg:o,status:t.status}),setTimeout(()=>s.value.pop(),5e3)}return(t,o)=>(a(),n("div",g,[(a(!0),n(p,null,l(d(s),e=>(a(),f(_,{key:e,variant:"flat",border:"start",elevation:"2",class:"mb-2","min-width":"350px","max-width":"800px",type:e?.status??"warning",text:e.msg},null,8,["type","text"]))),128))]))}};export{w as default};
