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