/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  */import{_ as e}from"./index-b347df0b.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,bv as w,X as v,y as h,_ as y}from"./index-545c1a76.js";const _={class:"flex justify-between w-full"},b=["id"],g={class:"flex w-12 justify-end"},j={class:"dialog-footer"},x=y(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:y}){const x=t,k=a(!1);s((()=>k.value?"arrows-pointing-in":"arrows-pointing-out"));const V=()=>{y("update:modelValue",!1)},q=()=>{y("update:modelValue",!1)},C=a("");l((()=>{C.value=x.width?x.width:$()}));const $=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(a,s)=>{const l=e,y=v,x=h;return o(),i("div",null,[d(x,w({"model-value":t.modelValue,"show-close":!1,fullscreen:k.value},a.$attrs,{width:C.value,close:V,"before-close":q,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(y,{onClick:V},{default:n((()=>[c(m(a.$t("system.cancel")),1)])),_:1}),d(y,{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 _};
