"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=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:{},popconfirmProps:{default:()=>({})}},setup(i){const s=e.useSlots(),o=i;async function a(n){o.popconfirmProps.onConfirm?.(n),await o.onAction?.(n)}return(n,d)=>(e.openBlock(),e.createBlock(e.unref(p.Popconfirm),e.mergeProps(e.unref(t.omit)(o.popconfirmProps,["onConfirm"]),{disabled:!o.popconfirmProps,"overlay-style":{zIndex:1060},onConfirm:a}),{default:e.withCtx(()=>[e.createVNode(c.default,e.normalizeProps(e.guardReactiveProps(e.unref(t.omit)(o,["popconfirmProps","onAction"]))),e.createSlots({_:2},[e.renderList(s,(f,r)=>({name:r,fn:e.withCtx(l=>[e.renderSlot(n.$slots,r,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040)]),_:3},16,["disabled"]))}});exports.default=u;
