import C from"./Notification.e081e2d9.js";import{E as g,G as u,g as v,h as k,f as w,j as $,N as h,o as e,c as r,y,F as N,x as f,b as P,aq as S,w as U,H as b,I as j,J as z,K as d,l as B}from"./entry.9e31e8a4.js";import{t as E}from"./tw-merge.27ca352e.js";import{H as F,u as H}from"./ui.config.7ae255de.js";import{_ as I}from"./_plugin-vue_export-helper.c27b6911.js";import"./Icon.fe8c0e68.js";import"./Avatar.b92bd51d.js";import"./Button.b41c8ed4.js";import"./Link.cc0949f5.js";import"./nuxt-link.f786ecc0.js";import"./index.dff89205.js";import"./index.87a09f8b.js";const J=g(u.ui.strategy,u.ui.notifications,F),V=v({components:{UNotification:C},inheritAttrs:!1,props:{ui:{type:Object,default:void 0}},setup(s){const{ui:o,attrs:n,attrsClass:i}=H("notifications",s.ui,J),p=k(),c=w("notifications",()=>[]),a=$(()=>E(h(o.value.wrapper,o.value.position,o.value.width),i));return{ui:o,attrs:n,toast:p,notifications:c,wrapperClass:a}}});function q(s,o,n,i,p,c){const a=C;return e(),r("div",d({class:s.wrapperClass},s.attrs),[s.notifications.length?(e(),r("div",{key:0,class:y(s.ui.container)},[(e(!0),r(N,null,f(s.notifications,t=>(e(),r("div",{key:t.id},[P(a,d(t,{class:t.click&&"cursor-pointer",onClick:l=>t.click&&t.click(t),onClose:l=>s.toast.remove(t.id)}),S({_:2},[f(s.$slots,(l,m)=>({name:m,fn:U(_=>[b(s.$slots,m,j(z(_)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):B("",!0)],16)}const Y=I(V,[["render",q]]);export{Y as default};
