import{createVNode as m}from"vue";import c from"../_util/classNames.mjs";import g from"../vc-trigger/Trigger.mjs";import"../_util/vue-types/index.mjs";import P from"./hooks/useMergeProps.mjs";const b={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(r,{slots:o}){const{prefixCls:n,popupStyle:i,visible:s,dropdownClassName:a,dropdownAlign:l,transitionName:u,getPopupContainer:f,range:d,popupPlacement:e,direction:p}=P(r),t=`${n}-dropdown`;return m(g,{showAction:[],hideAction:[],popupPlacement:e!==void 0?e:p==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:b,prefixCls:t,popupTransitionName:u,popupAlign:l,popupVisible:s,popupClassName:c(a,{[`${t}-range`]:d,[`${t}-rtl`]:p==="rtl"}),popupStyle:i,getPopupContainer:f},{default:o.default,popup:o.popupElement})}export{A as default};
