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