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