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