/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  */import{_ as e}from"./index-2a89b0c2.js";import{d as l,m as t,p as s,x as a,o,c as i,a as n,a_ as d,w as r,e as c,b as u,t as p,G as m,H as f,br as h,W as y,v as w,_ as g}from"./index-41bf27b7.js";const v={class:"flex justify-between w-full"},_=["id"],b={class:"flex justify-end w-12"},k={class:"dialog-footer"},x=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 x=l,j=t(!1);s((()=>j.value?"arrows-pointing-in":"arrows-pointing-out"));const C=()=>{g("update:modelValue",!1)},B=()=>{g("update:modelValue",!1)},V=t("");a((()=>{V.value=x.width?x.width:$()}));const $=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(t,s)=>{const a=e,g=y,x=w;return o(),i("div",null,[n(x,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",b,[n(a,{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",k,[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-8e3e44b8"]]);export{x as _};
