import d from"./Notification.6QQKoMjK.js";import{I as _,J as m,h as g,K as v,q as C,aj as k,v as $,S as h,U as N,o as s,y as b,a as z,c as a,F as B,A as u,b as S,ay as j,w as P,M as U,N as x,O as A,P as f,B as O,z as V,az as F}from"./entry.RGd0w9hd.js";import{u as I}from"./selectMenu.C9lwG85K.js";import{_ as J}from"./_plugin-vue_export-helper.x3n3nnut.js";import"./Icon.RQAIFpgh.js";import"./Icon.IbV_ZJvz.js";import"./index.aIcZnwHK.js";import"./Avatar.sEieiGia.js";import"./Button.n6F1xpmD.js";import"./Link.LD64lelx.js";import"./nuxt-link.HDpUgD9S.js";import"./link.O6hAleNp.js";import"./useButtonGroup.AoLXlm1A.js";import"./button.ljqeEZC_.js";import"./index.8phAC65J.js";import"./index.g8c07QCY.js";const M={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=_(m.ui.strategy,m.ui.notifications,M),T=g({components:{UNotification:d},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(t){const{ui:o,attrs:r}=I("notifications",v(t,"ui"),R),i=C(),n=k("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 q(t,o,r,i,n,p){const w=d;return s(),b(F,{to:"body"},[z("div",f({class:t.wrapperClass,role:"region"},t.attrs),[t.notifications.length?(s(),a("div",{key:0,class:O(t.ui.container)},[(s(!0),a(B,null,u(t.notifications,e=>(s(),a("div",{key:e.id},[S(w,f(e,{class:e.click&&"cursor-pointer",onClick:c=>e.click&&e.click(e),onClose:c=>t.toast.remove(e.id)}),j({_:2},[u(t.$slots,(c,l)=>({name:l,fn:P(y=>[U(t.$slots,l,x(A(y)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):V("",!0)],16)])}const rt=J(T,[["render",q]]);export{rt as default};
