const e=require("../../style/index.js");var t=e=>{let{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=e,c=i+a+o;return{[`${t}-item`]:{position:`relative`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:c}}},n=n=>{let{componentCls:r,iconCls:i,menuItemHeight:a,colorTextLightSolid:o,dropdownWidth:s,controlHeightLG:c,motionDurationMid:l,motionEaseOut:u,paddingXL:d,fontSizeSM:f,fontSizeLG:p,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g}=n,_={height:a,lineHeight:`${a}px`,listStylePosition:`inside`,listStyleType:`disc`};return[{[r]:{"&-inline, &-vertical":{[`&${r}-root`]:{boxShadow:`none`},...t(n)}},[`${r}-submenu-popup`]:{[`${r}-vertical`]:{...t(n),boxShadow:g}}},{[`${r}-submenu-popup ${r}-vertical${r}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${c*2.5}px)`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${r}-inline`]:{width:`100%`,[`&${r}-root`]:{[`${r}-item, ${r}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${u}`].join(`,`),[`> ${r}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${r}-sub${r}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${r}-submenu > ${r}-submenu-title`]:_,[`& ${r}-item-group-title`]:{paddingInlineStart:d}},[`${r}-item`]:_}},{[`${r}-inline-collapsed`]:{width:a*2,[`&${r}-root`]:{[`${r}-item, ${r}-submenu ${r}-submenu-title`]:{[`> ${r}-inline-collapsed-noicon`]:{fontSize:p,textAlign:`center`}}},[`> ${r}-item,
          > ${r}-item-group > ${r}-item-group-list > ${r}-item,
          > ${r}-item-group > ${r}-item-group-list > ${r}-submenu > ${r}-submenu-title,
          > ${r}-submenu > ${r}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f}px)`,textOverflow:`clip`,[`
            ${r}-submenu-arrow,
            ${r}-submenu-expand-icon
          `]:{opacity:0},[`${r}-item-icon, ${i}`]:{margin:0,fontSize:p,lineHeight:`${a}px`,"+ span":{display:`inline-block`,opacity:0}}},[`${r}-item-icon, ${i}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${r}-item-icon, ${i}`]:{display:`none`},"a, a:hover":{color:o}},[`${r}-item-group-title`]:{...e.textEllipsis,paddingInline:h}}}]};exports.default=n;