/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  */import{_ as e}from"./index-a921dba7.js";import{d as l,m as t,p as a,x as s,o,c as i,a as n,aM as d,w as r,e as c,b as u,t as p,G as m,H as f,aN as h,S as y,v as w,_ as g}from"./index-2b50ecca.js";const v={class:"flex justify-between w-full"},_=["id"],k={class:"flex justify-end w-12"},x={class:"dialog-footer"},b=g(l({__name:"index",props:{modelValue:{type:Boolean,default:!1,require:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},height:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},title:{type:String,default:""}},emits:["update:modelValue"],setup(l,{emit:g}){const b=l,j=t(!1);a((()=>j.value?"arrows-pointing-in":"arrows-pointing-out"));const C=()=>{g("update:modelValue",!1)},B=()=>{g("update:modelValue",!1)},V=t("");s((()=>{V.value=b.width?b.width:$()}));const $=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(t,a)=>{const s=e,g=y,b=w;return o(),i("div",null,[n(b,h({"model-value":l.modelValue,"align-center":l.alignCenter,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"show-close":!1,style:{height:l.height},fullscreen:j.value},t.$attrs,{width:V.value,close:C,"before-close":B,draggable:""}),d({header:r((({titleId:e,titleClass:t})=>[c("div",v,[c("div",null,[c("h4",{id:e,class:m(t)},p(l.title),11,_)]),c("div",k,[n(s,{name:"x-mark",className:"hover:cursor-pointer w-5 h-5",onClick:C})])])])),default:r((()=>[f(t.$slots,"default",{},void 0,!0)])),_:2},[l.showFooter?{name:"footer",fn:r((()=>[c("span",x,[n(g,{onClick:C},{default:r((()=>[u(p(t.$t("system.cancel")),1)])),_:1}),n(g,{type:"primary",onClick:C},{default:r((()=>[u(p(t.$t("system.confirm")),1)])),_:1})])])),key:"0"}:void 0]),1040,["model-value","align-center","close-on-click-modal","close-on-press-escape","style","fullscreen","width"])])}}}),[["__scopeId","data-v-ec0eb9d4"]]);export{b as _};
