"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("lodash-unified");require("./ap-button.vue2.js");const p=require("./utils/index.js"),d=require("./ap-button.vue.js"),m=e.defineComponent({__name:"ap-confirm-button",props:{prefixCls:{},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object]},disabled:{type:Boolean},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{type:[String,Function,Object,Number,Boolean,null,Array]},onMousedown:{},autoInsertSpace:{type:Boolean},iconPosition:{},color:{},variant:{},type:{},borderLinkColor:{},minWidth:{type:[Boolean,Number,String]},lazy:{type:[Boolean,Number]},onClick:{},content:{type:[String,Function,Object,Number,Boolean,null,Array]},confirmProps:{default:()=>({})}},setup(l){const o=l,s=e.useSlots(),a=()=>{const n=o.confirmProps?.onOk||o.onClick,r=o.confirmProps?.title||o.title,i=o.confirmProps?.content||o.content,t={centered:!0,onOk:n,title:r,content:i,...c.omit(o.confirmProps,["onOk","title","content"])};p.confirmHandle(t)};return(n,r)=>(e.openBlock(),e.createBlock(d.default,e.mergeProps(e.unref(c.omit)(o,["confirmProps","onClick"]),{onClick:a}),e.createSlots({_:2},[e.renderList(s,(i,t)=>({name:t,fn:e.withCtx(u=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040))}});exports.default=m;
