import{defineComponent as u,computed as d,createVNode as r}from"vue";import l from"../../vc-trigger/Trigger.mjs";import"../../_util/vue-types/index.mjs";import f from"./DropdownMenu.mjs";const m={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},w=u({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(o,{slots:n}){const i=()=>`${o.prefixCls}-dropdown`,a=()=>{const{options:t}=o;return r(f,{prefixCls:i(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},s=d(()=>{const{placement:t,direction:p}=o;let e="topRight";return p==="rtl"?e=t==="top"?"topLeft":"bottomLeft":e=t==="top"?"topRight":"bottomRight",e});return()=>{const{visible:t,transitionName:p,getPopupContainer:e}=o;return r(l,{prefixCls:i(),popupVisible:t,popup:a(),popupClassName:o.dropdownClassName,popupPlacement:s.value,popupTransitionName:p,builtinPlacements:m,getPopupContainer:e},{default:n.default})}}});export{w as default};
