import{d as l,c as d,o as a,b as t,f as i,g as u,a as o,F as p,r as f,u as m,h as _,t as g,i as y,n as x,T as b,_ as h}from"./index-IQ_epUwE.js";import{u as w}from"./useToast-CQMm8jKk.js";const T={class:"text-lg font-inter"},v=l({__name:"ToastOverlay",props:{zIndex:{default:50}},setup(z){const{toasts:n}=w(),c=(s="info")=>{const e="text-gray-800 bg-white border-l-4";switch(s){case"primary":return`${e} border-roon-primary`;case"success":return`${e} border-green-500`;case"error":return`${e} border-red-500`;case"warning":return`${e} border-yellow-500`;case"info":default:return`${e} border-blue-500`}};return(s,e)=>(a(),d(b,{to:"body"},[t("div",{class:"fixed top-4 right-4 space-y-2",style:x({zIndex:s.zIndex})},[i(y,{name:"toast",tag:"div",class:"flex flex-col gap-2"},{default:u(()=>[(a(!0),o(p,null,f(m(n),r=>(a(),o("div",{key:r.id,class:_([c(r.type),"max-w-md p-4 rounded shadow-lg flex items-center justify-between"])},[t("span",T,g(r.message),1)],2))),128))]),_:1})],4)]))}}),k=h(v,[["__scopeId","data-v-84fd46ce"]]);export{k as default};
