"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../style/index.js");require("../../_util/cssinjs/StyleContext.js");require("vue");require("../../_util/cssinjs/transformers/legacyLogicalProperties.js");const n=require("../../style/motion/move.js"),r=require("../../style/motion/slide.js"),d=e=>{const{controlPaddingHorizontal:o}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${o}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},a=e=>{const{antCls:o,componentCls:i}=e,t=`${i}-item`;return[{[`${i}-dropdown`]:{...l.resetComponent(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
            &${o}-slide-up-enter${o}-slide-up-enter-active${i}-dropdown-placement-bottomLeft,
            &${o}-slide-up-appear${o}-slide-up-appear-active${i}-dropdown-placement-bottomLeft
          `]:{animationName:r.slideUpIn},[`
            &${o}-slide-up-enter${o}-slide-up-enter-active${i}-dropdown-placement-topLeft,
            &${o}-slide-up-appear${o}-slide-up-appear-active${i}-dropdown-placement-topLeft
          `]:{animationName:r.slideDownIn},[`&${o}-slide-up-leave${o}-slide-up-leave-active${i}-dropdown-placement-bottomLeft`]:{animationName:r.slideUpOut},[`&${o}-slide-up-leave${o}-slide-up-leave-active${i}-dropdown-placement-topLeft`]:{animationName:r.slideDownOut},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${t}-empty`]:{...d(e),color:e.colorTextDisabled},[`${t}`]:{...d(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...l.textEllipsis},"&-state":{flex:"none"},[`&-active:not(${t}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${t}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${t}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${t}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}},"&-rtl":{direction:"rtl"}}},r.initSlideMotion(e,"slide-up"),r.initSlideMotion(e,"slide-down"),n.initMoveMotion(e,"move-up"),n.initMoveMotion(e,"move-down")]};exports.default=a;
