const e=require("../../vc-trigger/index.js"),t=require("./DropdownMenu.js");let n=require("vue");var r={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}}},i=(0,n.defineComponent)({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(i,{slots:a}){let o=()=>`${i.prefixCls}-dropdown`,s=()=>{let{options:e}=i;return(0,n.createVNode)(t.default,{prefixCls:o(),options:e},{notFoundContent:a.notFoundContent,option:a.option})},c=(0,n.computed)(()=>{let{placement:e,direction:t}=i,n=`topRight`;return n=t===`rtl`?e===`top`?`topLeft`:`bottomLeft`:e===`top`?`topRight`:`bottomRight`,n});return()=>{let{visible:t,transitionName:l,getPopupContainer:u}=i;return(0,n.createVNode)(e.default,{prefixCls:o(),popupVisible:t,popup:s(),popupClassName:i.dropdownClassName,popupPlacement:c.value,popupTransitionName:l,builtinPlacements:r,getPopupContainer:u},{default:a.default})}}});exports.default=i;