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