const e=require("../_util/classNames.js"),t=require("../_util/props-util/initDefaultProps.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("../button/index.js"),i=require("./props.js"),a=require("./style/index.js"),o=require("./dropdown.js");let s=require("vue"),c=require("@antsoo-lib/icons");var l=r.default.Group,u=(0,s.defineComponent)({compatConfig:{MODE:3},name:`ADropdownButton`,inheritAttrs:!1,__ANT_BUTTON:!0,props:t.default(i.dropdownButtonProps(),{trigger:`hover`,placement:`bottomRight`,type:`default`}),slots:Object,setup(t,{slots:i,attrs:u,emit:d}){let f=e=>{d(`update:visible`,e),d(`visibleChange`,e),d(`update:open`,e),d(`openChange`,e)},{prefixCls:p,direction:m,getPopupContainer:h}=n.default(`dropdown`,t),g=(0,s.computed)(()=>`${p.value}-button`),[_,v]=a.default(p);return()=>{let{type:n=`default`,disabled:a,danger:d,loading:p,htmlType:y,class:b=``,overlay:x=i.overlay?.(),trigger:S,align:C,open:w,visible:T,onVisibleChange:E,placement:D=m.value===`rtl`?`bottomLeft`:`bottomRight`,href:O,title:k,icon:A=i.icon?.()||(0,s.createVNode)(c.EllipsisOutlined,null,null),mouseEnterDelay:j,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:P,destroyPopupOnHide:F,onClick:I,"onUpdate:open":L,...R}={...t,...u},z={align:C,disabled:a,trigger:a?[]:S,placement:D,getPopupContainer:h?.value,onOpenChange:f,mouseEnterDelay:j,mouseLeaveDelay:M,open:w??T,overlayClassName:N,overlayStyle:P,destroyPopupOnHide:F},B=(0,s.createVNode)(r.default,{danger:d,type:n,disabled:a,loading:p,onClick:I,htmlType:y,href:O,title:k},{default:i.default}),V=(0,s.createVNode)(r.default,{danger:d,type:n,icon:A},null);return _((0,s.createVNode)(l,{...R,class:e.default(g.value,b,v.value)},{default:()=>[i.leftButton?i.leftButton({button:B}):B,(0,s.createVNode)(o.default,z,{default:()=>[i.rightButton?i.rightButton({button:V}):V],overlay:()=>x})]}))}}});exports.default=u;