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