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