import{textEllipsis as e}from"../../style/index.mjs";import t from"../../theme/util/genComponentStyleHook.mjs";import{genCompactItemStyle as n}from"../../style/compact-item.mjs";import{getStyle as r}from"../../checkbox/style/index.mjs";var i=t=>{let{prefixCls:i,componentCls:a,antCls:o}=t,s=`${a}-menu-item`,c=`
    &${s}-expand ${s}-expand-icon,
    ${s}-loading-icon
  `,l=Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2);return[{[a]:{width:t.controlWidth}},{[`${a}-dropdown`]:[r(`${i}-checkbox`,t),{[`&${o}-select-dropdown`]:{padding:0}},{[a]:{"&-checkbox":{top:0,marginInlineEnd:t.paddingXS},"&-menus":{display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[`&${a}-menu-empty`]:{[`${a}-menu`]:{width:`100%`,height:`auto`,[s]:{color:t.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:t.controlItemWidth,height:t.dropdownHeight,margin:0,padding:t.paddingXXS,overflow:`auto`,verticalAlign:`top`,listStyle:`none`,"-ms-overflow-style":`-ms-autohiding-scrollbar`,"&:not(:last-child)":{borderInlineEnd:`${t.lineWidth}px ${t.lineType} ${t.colorSplit}`},"&-item":{...e,display:`flex`,flexWrap:`nowrap`,alignItems:`center`,padding:`${l}px ${t.paddingSM}px`,lineHeight:t.lineHeight,cursor:`pointer`,transition:`all ${t.motionDurationMid}`,borderRadius:t.borderRadiusSM,"&:hover":{background:t.controlItemBgHover},"&-disabled":{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`},[c]:{color:t.colorTextDisabled}},[`&-active:not(${s}-disabled)`]:{"&, &:hover":{fontWeight:t.fontWeightStrong,backgroundColor:t.controlItemBgActive}},"&-content":{flex:`auto`},[c]:{marginInlineStart:t.paddingXXS,color:t.colorTextDescription,fontSize:t.fontSizeIcon},"&-keyword":{color:t.colorHighlight}}}}}]},{[`${a}-dropdown-rtl`]:{direction:`rtl`}},n(t)]},a=t(`Cascader`,e=>[i(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});export{a as default};