import{w as p,I as f}from"./element-plus.4a7d92a3.js";import{_ as k}from"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.d9a16ced.js";import{d as v}from"./index.9fc4c153.js";import{o as a,c as g,a as d,H as i,U as B,ab as C,L as s,R as l,S as n,K as m,Q as u}from"./@vue.18505fe0.js";const $={class:"dialog"},y={class:"dialog-footer"};function V(e,o,b,w,E,T){const r=p,c=f;return a(),g("div",$,[d("div",{class:"dialog__trigger",onClick:o[0]||(o[0]=(...t)=>e.open&&e.open(...t))},[i(e.$slots,"trigger",{},void 0,!0)]),B(c,{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({footer:s(()=>[d("div",y,[e.cancelButtonText?(a(),m(r,{key:0,onClick:o[1]||(o[1]=t=>e.handleEvent("cancel"))},{default:s(()=>[l(n(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:s(()=>[l(n(e.confirmButtonText),1)]),_:1})):u("",!0)])]),default:s(()=>[i(e.$slots,"default",{},()=>[l(n(e.content),1)],!0)]),_:2},[e.title?{name:"header",fn:s(()=>[l(n(e.title),1)]),key:"0"}:void 0]),1032,["modelValue","custom-class","center","width","close-on-click-modal","onClosed"])])}const I=v(k,[["render",V],["__scopeId","data-v-d380c88d"]]);export{I as P};
