import{o as n,h as u,f as t,e as s,u as a,a as e,k as f,t as m,c as h,b as _,J as v}from"./app-43851608.js";import{h as i,G as x,V as w,U as y,S as g}from"./ProfileModal-628e5b7c.js";const b=e("div",{class:"fixed inset-0 bg-black bg-opacity-25"},null,-1),k={class:"fixed inset-0 overflow-y-auto"},B={class:"flex min-h-full items-center justify-center p-4 text-center"},V={class:"flex justify-between items-center bg-gray-50 px-4 py-3"},S=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round",d:"M17 7L7 17M7 7l10 10"})],-1),M=[S],N={class:"px-4 pb-4"},O={__name:"Modal",props:{label:String,isOpen:Boolean,closeBtn:Boolean},emits:["close"],setup(o,{emit:r}){const l=o,c=r;function d(){c("close",!0)}return(p,j)=>(n(),u(a(g),{appear:"",show:l.isOpen,as:"template"},{default:t(()=>[s(a(y),{as:"div",class:"relative z-10"},{default:t(()=>[s(a(i),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:t(()=>[b]),_:1}),e("div",k,[e("div",B,[s(a(i),{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:t(()=>[s(a(x),{class:"w-full max-w-md transform overflow-hidden rounded-2xl bg-white text-left align-middle shadow-xl transition-all"},{default:t(()=>[e("div",V,[s(a(w),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:t(()=>[f(m(l.label),1)]),_:1}),o.closeBtn===!0?(n(),h("span",{key:0,onClick:d,class:"bg-slate-100 rounded-full p-1 hover:shadow cursor-pointer"},M)):_("",!0)]),e("div",N,[v(p.$slots,"default")])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}};export{O as _};
