import{r as V,w as g,o as v,y as w,q as a,v as y,p as i,P as c,x as r,aa as B,l as C,bv as k}from"./index.8d733f79.js";const $={class:"dialog-footer"},b={__name:"dialogContent",props:{modelValue:Boolean,title:String,width:{type:String,default:"480"},center:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","closed"],setup(o,{emit:l}){const u=o,n=V(!1);g(()=>u.modelValue,(t,e)=>{n.value=t},{immediate:!0,deep:!0});const m=()=>{l("cancel")},f=()=>{l("closed")};return(t,e)=>{const d=C,p=k;return v(),w(p,{modelValue:n.value,"onUpdate:modelValue":e[2]||(e[2]=s=>n.value=s),title:o.title,width:o.width,"align-center":o.center,onClose:m,onClosed:f,"close-on-click-modal":!1},{footer:a(()=>[y("span",$,[i(d,{onClick:e[0]||(e[0]=s=>l("cancel"))},{default:a(()=>[c(r(t.$t("cancel")),1)]),_:1}),i(d,{type:"primary",onClick:e[1]||(e[1]=s=>l("confirm"))},{default:a(()=>[c(r(t.$t("confirm")),1)]),_:1})])]),default:a(()=>[B(t.$slots,"main")]),_:3},8,["modelValue","title","width","align-center"])}}};export{b as _};
