import l from"./Notification.c88ea527.js";import{g as _,E as C,G as g,j as k,H as $,h as v,f as h,o as e,c as t,y as m,F as w,x as u,b as y,ag as N,w as P,I as S,J as b,K as j,L as z,l as B}from"./entry.eb978f24.js";import{_ as E}from"./_plugin-vue_export-helper.c27b6911.js";import"./Icon.30f6becb.js";import"./Avatar.a7ca17e7.js";import"./Button.8a478b7a.js";import"./Link.a86a4ec7.js";import"./nuxt-link.0033bf2d.js";import"./_baseIsEqual.8f3c5dea.js";import"./_MapCache.e1952f2e.js";import"./index.83f60940.js";import"./index.d18b209b.js";const F=_({components:{UNotification:l},props:{ui:{type:Object,default:()=>C.ui.notifications}},setup(o){const n=g(),r=k(()=>$({},o.ui,n.ui.notifications)),i=v(),a=h("notifications",()=>[]);return{ui:r,toast:i,notifications:a}}});function L(o,n,r,i,a,U){const d=l;return e(),t("div",{class:m([o.ui.wrapper,o.ui.position,o.ui.width])},[o.notifications.length?(e(),t("div",{key:0,class:m(o.ui.container)},[(e(!0),t(w,null,u(o.notifications,s=>(e(),t("div",{key:s.id},[y(d,z(s,{class:s.click&&"cursor-pointer",onClick:p=>s.click&&s.click(s),onClose:p=>o.toast.remove(s.id)}),N({_:2},[u(o.$slots,(p,c)=>({name:c,fn:P(f=>[S(o.$slots,c,b(j(f)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):B("",!0)],2)}const M=E(F,[["render",L]]);export{M as default};
