import{d as y,n as x,o as s,a as C,e as a,j as i,w as n,T as r,p as k,i as c,b as d,f as w,k as b}from"./index.9838a17e.js";import{n as v}from"./index.02c939b6.js";const g={class:"fixed inset-0 z-10 overflow-y-auto"},h={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},_={inheritAttrs:!1},N=y({..._,__name:"ElModal",props:{vis:{type:Boolean,default:!1},title:{type:String,default:""},sub:{type:String,default:""},modalClass:{type:String,default:void 0}},emits:["update:vis","close"],setup(e,{emit:l}){const f=e,o=()=>{l("update:vis",!1),l("close",!0)};x(()=>o());const m=[f.modalClass],u=["relative","rounded-xl","shadow-xl","text-left","overflow-hidden","bg-white","transform","transition-all","sm:w-full",...m];return(p,t)=>(s(),C(k,{to:"body"},[a("div",{class:v(["relative z-10",e.vis?"":"pointer-events-none"]),"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},[i(r,{"enter-active-class":"ease-out duration-300","enter-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[e.vis?(s(),c("div",{key:0,class:"fixed inset-0 bg-slate-800/75 transition-opacity",onClick:t[0]||(t[0]=B=>o())})):d("v-if",!0)]),_:1}),a("div",g,[a("div",h,[i(r,{"enter-active-class":"ease-out duration-300","enter-class":"opacity-0 translate-y-24 sm:translate-y-0 sm:scale-75","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-75"},{default:n(()=>[e.vis?(s(),c("div",{key:0,class:v(u),onClick:t[1]||(t[1]=b(()=>{},["stop"]))},[w(p.$slots,"default")])):d("v-if",!0)]),_:3})])])],2)]))}});export{N as _};
