import{_ as e}from"./index-765bf96c.js";import{d as l,k as t,m as a,p as s,r as o,o as n,c as i,a as d,at as r,w as c,e as u,b as p,t as f,v as m,x as h,aW as y,_ as w}from"./index-018fb6dd.js";const g={class:"flex justify-between w-full"},v=["id"],k={class:"flex justify-end w-12"},_={class:"dialog-footer"},x=w(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:w}){const x=l,C=t(!1);a((()=>C.value?"arrows-pointing-in":"arrows-pointing-out"));const b=()=>{w("update:modelValue",!1)},B=()=>{w("update:modelValue",!1)},V=t("");s((()=>{V.value=x.width?x.width:j()}));const j=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(t,a)=>{const s=e,w=o("el-button"),x=o("el-dialog");return n(),i("div",null,[d(x,y({"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:C.value},t.$attrs,{width:V.value,close:b,"before-close":B,draggable:""}),r({header:c((({titleId:e,titleClass:t})=>[u("div",g,[u("div",null,[u("h4",{id:e,class:m(t)},f(l.title),11,v)]),u("div",k,[d(s,{name:"x-mark",className:"hover:cursor-pointer w-5 h-5",onClick:b})])])])),default:c((()=>[h(t.$slots,"default",{},void 0,!0)])),_:2},[l.showFooter?{name:"footer",fn:c((()=>[u("span",_,[d(w,{onClick:b},{default:c((()=>[p(f(t.$t("system.cancel")),1)])),_:1}),d(w,{type:"primary",onClick:b},{default:c((()=>[p(f(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 _};
