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