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