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