import{d as p,v as u,o as x,c as _,w as a,b as t,u as e,f as s,G as v,k as w,H as h}from"./app-e2c1adb4.js";import{k as l,S as y}from"./transition-314b73c3.js";import{G as g,U as b}from"./dialog-e6df4d57.js";const k=s("div",{class:"fixed inset-0 bg-gray-500/25 backdrop-blur transition-opacity"},null,-1),C={class:"fixed inset-0 overflow-y-auto"},z={class:"flex min-h-full items-center justify-center p-4 text-center"},L=p({__name:"dialog",props:{size:{default:"lg"},closeable:{type:Boolean,default:!0}},setup(r){const o=r,{show:i,close:n,redirect:c}=h(),d=()=>{o.closeable&&n()},m=u(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[o.size]);return(f,B)=>(x(),_(e(y),{appear:"",as:"template",show:e(i)},{default:a(()=>[t(e(b),{as:"div",class:"relative z-50",onClose:d},{default:a(()=>[t(e(l),{as:"template","leave-to":"opacity-0",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100",onAfterLeave:e(c)},{default:a(()=>[k]),_:1},8,["onAfterLeave"]),s("div",C,[s("div",z,[t(e(l),{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:a(()=>[t(e(g),{class:v([[e(m)],"w-full rounded-2xl bg-white text-left align-middle shadow-xl transition-all"])},{default:a(()=>[w(f.$slots,"default")]),_:3},8,["class"])]),_:3})])])]),_:3})]),_:3},8,["show"]))}});export{L as _};
