import e from"../../vc-trigger/index.mjs";import t from"./DropdownMenu.mjs";import{computed as n,createVNode as r,defineComponent as i}from"vue";var a={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}}},o=i({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:o}){let s=()=>`${i.prefixCls}-dropdown`,c=()=>{let{options:e}=i;return r(t,{prefixCls:s(),options:e},{notFoundContent:o.notFoundContent,option:o.option})},l=n(()=>{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:n,getPopupContainer:u}=i;return r(e,{prefixCls:s(),popupVisible:t,popup:c(),popupClassName:i.dropdownClassName,popupPlacement:l.value,popupTransitionName:n,builtinPlacements:a,getPopupContainer:u},{default:o.default})}}});export{o as default};