import d from"./Notification.2a-LZUbh.js";import{C,D as m,f as _,E as v,g as k,ag as y,i as $,N as h,O as N,o as s,j as b,a as x,c as a,F as j,v as u,b as B,aw as S,w as z,H as O,I as P,J as U,K as f,x as V,k as A,ax as E}from"./entry.2xM5grDS.js";import{u as F}from"./selectMenu.72ERhOvP.js";import{_ as I}from"./_plugin-vue_export-helper.x3n3nnut.js";import"./Icon.sNzKdesA.js";import"./Icon.rhzHF9SY.js";import"./index.aIcZnwHK.js";import"./Avatar.AyoIKaT6.js";import"./Button.4X8LocDy.js";import"./Link.5Iw4xYEc.js";import"./nuxt-link.6gyhzeaI.js";import"./link.O6hAleNp.js";import"./useButtonGroup.qVSTPZZ-.js";import"./button.ljqeEZC_.js";import"./index.xpopmiYL.js";import"./index.OjlVAl1H.js";const J={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},R=C(m.ui.strategy,m.ui.notifications,J),T=_({components:{UNotification:d},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(t){const{ui:o,attrs:r}=F("notifications",v(t,"ui"),R),i=k(),n=y("notifications",()=>[]),p=$(()=>h(N(o.value.wrapper,o.value.position,o.value.width),t.class));return{ui:o,attrs:r,toast:i,notifications:n,wrapperClass:p}}});function D(t,o,r,i,n,p){const g=d;return s(),b(E,{to:"body"},[x("div",f({class:t.wrapperClass,role:"region"},t.attrs),[t.notifications.length?(s(),a("div",{key:0,class:V(t.ui.container)},[(s(!0),a(j,null,u(t.notifications,e=>(s(),a("div",{key:e.id},[B(g,f(e,{class:e.click&&"cursor-pointer",onClick:c=>e.click&&e.click(e),onClose:c=>t.toast.remove(e.id)}),S({_:2},[u(t.$slots,(c,l)=>({name:l,fn:z(w=>[O(t.$slots,l,P(U(w)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):A("",!0)],16)])}const rt=I(T,[["render",D]]);export{rt as default};
