/* empty css             *//* empty css                  *//* empty css                   *//* empty css                  */import{_ as e}from"./index-44ccf907.js";import{d as l,m as t,p as a,x as s,o,c as i,a as n,aN as d,w as r,e as c,b as u,t as p,G as m,H as f,aO as h,U as y,v,_ as w}from"./index-0ffeeea6.js";const g={class:"flex justify-between w-full"},k=["id"],_={class:"flex justify-end w-12"},x={class:"dialog-footer"},b=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 b=l,j=t(!1);a((()=>j.value?"arrows-pointing-in":"arrows-pointing-out"));const C=()=>{w("update:modelValue",!1)},B=()=>{w("update:modelValue",!1)},O=t("");s((()=>{O.value=b.width?b.width:V()}));const V=()=>{const e=window.document.body.clientWidth;return e<=726?"100%":e>726&&e<1440?"60%":"650px"};return(t,a)=>{const s=e,w=y,b=v;return o(),i("div",null,[n(b,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:O.value,close:C,"before-close":B,draggable:""}),d({header:r((({titleId:e,titleClass:t})=>[c("div",g,[c("div",null,[c("h4",{id:e,class:m(t)},p(l.title),11,k)]),c("div",_,[n(s,{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",x,[n(w,{onClick:C},{default:r((()=>[u(p(t.$t("system.cancel")),1)])),_:1}),n(w,{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{b as _};
