import e from"../_util/classNames.mjs";import t from"../vc-trigger/index.mjs";import n from"./hooks/useMergeProps.mjs";import{createVNode as r}from"vue";var i={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function a(a,{slots:o}){let{prefixCls:s,popupStyle:c,visible:l,dropdownClassName:u,dropdownAlign:d,transitionName:f,getPopupContainer:p,range:m,popupPlacement:h,direction:g}=n(a),_=`${s}-dropdown`;return r(t,{showAction:[],hideAction:[],popupPlacement:h===void 0?g===`rtl`?`bottomRight`:`bottomLeft`:h,builtinPlacements:i,prefixCls:_,popupTransitionName:f,popupAlign:d,popupVisible:l,popupClassName:e(u,{[`${_}-range`]:m,[`${_}-rtl`]:g===`rtl`}),popupStyle:c,getPopupContainer:p},{default:o.default,popup:o.popupElement})}export{a as default};