import{q as p,E as a,c as u,o as n,a as e,t as v,u as i,n as d,m as g,Q as h,X as w,e as l,w as x,F as f,g as _,Y as k}from"./app-Do7K7VDV.js";const y={class:"toast-message-container"},B={class:"toast-message"},C={__name:"Toastr",props:{item:[Object],index:[String,Number],duration:{type:Number,default:5e3}},setup(s){const o=s;return p(()=>setTimeout(()=>a.remove(o.index),o.duration)),(c,t)=>(n(),u("div",{class:d(["toastr",`toastr-${s.item.type}`])},[e("div",y,[t[1]||(t[1]=e("svg",{class:"icon","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"})],-1)),e("span",B,v(s.item.message),1)]),e("button",{onClick:t[0]||(t[0]=r=>i(a).remove(s.index)),type:"button",class:"close"},t[2]||(t[2]=[e("svg",{width:"16",height:"16","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))],2))}},b={__name:"ToastrContainer",setup(s){const o=g(()=>h().props.toast);return w(()=>a.setSessionToast(o.value)),(c,t)=>(n(),l(k,{tag:"div",name:"right",class:d(["toastr-container",i(a).position])},{default:x(()=>[(n(!0),u(f,null,_(i(a).items,(r,m)=>(n(),l(C,{key:r.key,item:r,index:m},null,8,["item","index"]))),128))]),_:1},8,["class"]))}};export{b as _};
