/* empty css *//* empty css *//* empty css *//* empty css */import{_ as e}from"./index-4963a9ff.js";import{d as t,q as a,n as s,z as l,o,c as i,a as d,b2 as r,w as n,e as u,b as c,t as m,H as p,I as f,bw as w,X as v,y,_ as h}from"./index-1e3c1303.js";const _={class:"flex justify-between w-full"},b=["id"],g={class:"flex w-12 justify-end"},j={class:"dialog-footer"},x=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 x=t,k=a(!1);s((()=>k.value?"arrows-pointing-in":"arrows-pointing-out"));const V=()=>{h("update:modelValue",!1)},C=()=>{h("update:modelValue",!1)},$=a("");l((()=>{$.value=x.width?x.width:q()}));const q=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(a,s)=>{const l=e,h=v,x=y;return o(),i("div",null,[d(x,w({"model-value":t.modelValue,"show-close":!1,fullscreen:k.value},a.$attrs,{width:$.value,close:V,"before-close":C,draggable:""}),r({header:n((({titleId:e,titleClass:a})=>[u("div",_,[u("div",null,[u("h4",{id:e,class:p(a)},m(t.title),11,b)]),u("div",g,[d(l,{name:"x-mark",className:"hover:cursor-pointer w-5 h-5",onClick:V})])])])),default:n((()=>[f(a.$slots,"default",{},void 0,!0)])),_:2},[t.showFooter?{name:"footer",fn:n((()=>[u("span",j,[d(h,{onClick:V},{default:n((()=>[c(m(a.$t("system.cancel")),1)])),_:1}),d(h,{type:"primary",onClick:V},{default:n((()=>[c(m(a.$t("system.confirm")),1)])),_:1})])])),key:"0"}:void 0]),1040,["model-value","fullscreen","width"])])}}}),[["__scopeId","data-v-21105f75"]]);export{x as _};