"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),s=require("../../vc-trigger/Trigger.js");require("../../_util/vue-types/index.js");const l=require("./DropdownMenu.js"),d={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}}},f=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(e,{slots:r}){const p=()=>`${e.prefixCls}-dropdown`,u=()=>{const{options:t}=e;return n.createVNode(l.default,{prefixCls:p(),options:t},{notFoundContent:r.notFoundContent,option:r.option})},a=n.computed(()=>{const{placement:t,direction:i}=e;let o="topRight";return i==="rtl"?o=t==="top"?"topLeft":"bottomLeft":o=t==="top"?"topRight":"bottomRight",o});return()=>{const{visible:t,transitionName:i,getPopupContainer:o}=e;return n.createVNode(s.default,{prefixCls:p(),popupVisible:t,popup:u(),popupClassName:e.dropdownClassName,popupPlacement:a.value,popupTransitionName:i,builtinPlacements:d,getPopupContainer:o},{default:r.default})}}});exports.default=f;
