import{w as c,M as f}from"./element-plus.ff90c99c.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import{d as v}from"./index.2c97e227.js";import{o as a,c as g,a as d,J as i,W as B,ab as C,Q as n,U as s,V as l,P as m,T as u}from"./@vue.f8dfc830.js";const y={class:"dialog"},V={class:"dialog-footer"};function $(e,o,b,T,w,E){const r=c,p=f;return a(),g("div",y,[d("div",{class:"dialog__trigger",onClick:o[0]||(o[0]=(...t)=>e.open&&e.open(...t))},[i(e.$slots,"trigger",{},void 0,!0)]),B(p,{modelValue:e.visible,"onUpdate:modelValue":o[3]||(o[3]=t=>e.visible=t),"custom-class":e.customClass,center:e.center,"append-to-body":!0,width:e.width,"close-on-click-modal":e.clickModalClose,onClosed:e.close},C({default:n(()=>[i(e.$slots,"default",{},()=>[s(l(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:n(()=>[s(l(e.title),1)]),key:"0"}:void 0,e.button?{name:"footer",fn:n(()=>[d("div",V,[e.cancelButtonText?(a(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:n(()=>[s(l(e.cancelButtonText),1)]),_:1})):u("",!0),e.confirmButtonText?(a(),m(r,{key:1,type:"primary",onClick:o[2]||(o[2]=t=>e.handleEvent("confirm"))},{default:n(()=>[s(l(e.confirmButtonText),1)]),_:1})):u("",!0)])]),key:"1"}:void 0]),1032,["modelValue","custom-class","center","width","close-on-click-modal","onClosed"])])}const D=v(k,[["render",$],["__scopeId","data-v-95d1884e"]]);export{D as P};