const e=require("../../style/index.js");var t=t=>({...e.genFocusOutline(t)}),n=(e,n)=>{let{componentCls:r,colorItemText:i,colorItemTextSelected:a,colorGroupTitle:o,colorItemBg:s,colorSubItemBg:c,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:d,colorActiveBarBorderSize:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,menuItemPaddingInline:g,motionDurationMid:_,colorItemTextHover:v,lineType:y,colorSplit:b,colorItemTextDisabled:x,colorDangerItemText:S,colorDangerItemTextHover:C,colorDangerItemTextSelected:w,colorDangerItemBgActive:T,colorDangerItemBgSelected:E,colorItemBgHover:D,menuSubMenuBg:O,colorItemTextSelectedHorizontal:k,colorItemBgSelectedHorizontal:A,colorSub:j,colorBgSub:M}=e;return{[`${r}-${n}`]:{color:i,background:s,[`&${r}-root:focus-visible`]:{...t(e)},[`${r}-item-group-title`]:{color:o},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:a}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:hover, ${r}-submenu-title:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:j}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:l}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:l}}},[`${r}-item-danger`]:{color:S,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:C}},[`&${r}-item:active`]:{background:T}},[`${r}-item a`]:{"&, &:hover":{color:`inherit`}},[`${r}-item-selected`]:{color:j,[`&${r}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${r}-item-selected`]:{backgroundColor:M,[`&${r}-item-danger`]:{backgroundColor:E}},[`${r}-item, ${r}-submenu-title`]:{[`&:not(${r}-item-disabled):focus-visible`]:{...t(e)}},[`&${r}-submenu > ${r}`]:{backgroundColor:O},[`&${r}-popup > ${r}`]:{backgroundColor:s},[`&${r}-horizontal`]:{...n===`dark`?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:0,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&::after":{borderBottomWidth:u,borderBottomColor:k}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${f}px ${y} ${b}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:c},[`${r}-item, ${r}-submenu-title`]:f&&d?{width:`calc(100% + ${f}px)`}:{},[`${r}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${a}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform ${_} ${h}`,`opacity ${_} ${h}`].join(`,`),content:`""`},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform ${_} ${m}`,`opacity ${_} ${m}`].join(`,`)}}}}}};exports.default=n;