"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv"),t=require("lodash-unified");require("../item/index.vue.js");const c=require("../item/index.vue2.js"),u=e.defineComponent({name:"ApActionItemPopconfirm",__name:"index",props:{text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onAction:{},onClick:{},loading:{type:Boolean,default:!1},icon:{},iconFirst:{type:Boolean},tooltip:{},wrapperTooltip:{},popconfirmProps:{default:()=>({})}},setup(i){const a=e.useSlots(),o=i;async function s(r){o.popconfirmProps.onConfirm?.(r),await o.onAction?.(r)}return(r,d)=>(e.openBlock(),e.createBlock(e.unref(l.Popconfirm),e.mergeProps(e.unref(t.omit)(o.popconfirmProps,["onConfirm"]),{disabled:!o.popconfirmProps,"overlay-style":{zIndex:1060},onConfirm:s}),{default:e.withCtx(()=>[e.createVNode(c.default,e.normalizeProps(e.guardReactiveProps(e.unref(t.omit)(o,["popconfirmProps","onAction"]))),e.createSlots({_:2},[e.renderList(a,(f,n)=>({name:n,fn:e.withCtx(p=>[e.renderSlot(r.$slots,n,e.normalizeProps(e.guardReactiveProps(p||{})))])}))]),1040)]),_:3},16,["disabled"]))}});exports.default=u;
