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