import{d as u,s as a,c as l,o,a as c,r as m,w as f,v as y,n as D,b as _,e as v,m as O,u as p,F as x,T as C,_ as b}from"./index-IQ_epUwE.js";const k={class:"w-full flex justify-center items-center"},h=u({__name:"DialogOverlay",props:{zIndex:{default:50}},setup(w){const s={dialogs:a.dialogs.dialogs,currentDialog:a.dialogs.currentDialog,isDialogOpen:a.dialogs.isDialogOpen},d=(t,n)=>{const g=.5-t*.1;return Math.max(g,.1)};return(t,n)=>(o(),l(C,{to:"body"},[(o(!0),c(x,null,m(s.dialogs.value,(e,r)=>f((o(),c("div",{key:e.id,class:"fixed inset-0 flex items-center justify-center",style:D({backgroundColor:`rgba(0, 0, 0, ${d(r,s.dialogs.value.length)})`,zIndex:t.zIndex+r})},[_("div",k,[(o(),l(v(e.component),O({ref_for:!0},e.props,{onClose:()=>p(a).dialogs.closeDialog(e.id),onConfirm:n[0]||(n[0]=i=>p(a).dialogs.confirmCurrentDialog(i))}),null,16,["onClose"]))])],4)),[[y,s.isDialogOpen.value]])),128))]))}}),B=b(h,[["__scopeId","data-v-07679ef3"]]);export{B as default};
