import{cm as c,bw as m,ct as u,bB as a,Z as n,F as p,bR as l,X as f,c7 as d,bO as x}from"#entry";import{V as _}from"./C8MHOe0D.js";import"./BKDgfSxC.js";const b={style:{"z-index":"10000",position:"fixed",right:"1em",bottom:"1rem",opacity:"0.9"},class:"mb-2"},k={__name:"CoreNotification",setup(g){const{t:r}=c();m(()=>{const{$on:t}=u();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",b,[(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{k as default};
