import{d as C,p as s,cs as j,b as x,r as g,b9 as v,aP as O,o as u,l as d,ct as T,a as o,w as c,ai as N,bk as S,cu as P,aF as n,g as y,j as z,t as B,a2 as E,i as F,ar as Q,am as R,v as U,aQ as V,_ as X,__tla as q}from"./index-8c6726e5.js";let _,A=Promise.all([(()=>{try{return q}catch{}})()]).then(async()=>{let m,p;m={class:"relative h-54px flex items-center justify-between pl-15px pr-15px"},p={class:"absolute right-15px top-[50%] h-54px flex translate-y-[-50%] items-center justify-between"},_=X(C({name:"Dialog",__name:"Dialog",props:{modelValue:s.bool.def(!1),title:s.string.def("Dialog"),fullscreen:s.bool.def(!0),width:s.oneOfType([String,Number]).def("40%"),scroll:s.bool.def(!1),maxHeight:s.oneOfType([String,Number]).def("400px")},setup(t){const h=j(),l=t,b=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],a={...S(),...l};for(const i in a)e.indexOf(i)!==-1&&delete a[i];return a}),r=g(!1),k=()=>{r.value=!o(r)},f=g(v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight);O(()=>r.value,async e=>{if(await R(),e){const a=document.documentElement.offsetHeight;f.value=a-55-60-(h.footer?63:0)+"px"}else f.value=v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight},{immediate:!0});const w=x(()=>({height:o(f)}));return(e,a)=>{const i=U,H=V,D=P;return u(),d(D,N(o(b),{"close-on-click-modal":!0,fullscreen:o(r),width:t.width,"destroy-on-close":"","lock-scroll":"",draggable:"",class:"com-dialog","show-close":!1}),T({header:c(({close:$})=>[y("div",m,[n(e.$slots,"title",{},()=>[z(B(t.title),1)]),y("div",p,[t.fullscreen?(u(),d(i,{key:0,class:"is-hover mr-10px cursor-pointer",icon:o(r)?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:k},null,8,["icon"])):E("",!0),F(i,{class:"is-hover cursor-pointer",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:$},null,8,["onClick"])])])]),default:c(()=>[t.scroll?(u(),d(H,{key:0,style:Q(o(w))},{default:c(()=>[n(e.$slots,"default")]),_:3},8,["style"])):n(e.$slots,"default",{key:1})]),_:2},[o(h).footer?{name:"footer",fn:c(()=>[n(e.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","width"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/Dialog/src/Dialog.vue"]])});export{_,A as __tla};
