You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
23 KiB
1 line
23 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20834],{40875:function(e,t,o){o.d(t,{J:function(){return s}});var n=o(59301),r=o(33234),i=o(70425),l=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const a=n.createContext(null),s=n.forwardRef(((e,t)=>{const{children:o}=e,s=l(e,["children"]),c=n.useContext(a),d=n.useMemo((()=>Object.assign(Object.assign({},c),s)),[c,s.prefixCls,s.mode,s.selectable]);return n.createElement(a.Provider,{value:d},n.createElement(r.BR,null,(0,i.supportNodeRef)(o)?n.cloneElement(o,{ref:t}):o))}));t.Z=a},20834:function(e,t,o){o.d(t,{Z:function(){return F}});var n=o(15285),r=o(59301),i=o(45818),l=o(92310),a=o.n(l),s=o(36355),c=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};var d=e=>{const{prefixCls:t,className:o,dashed:i}=e,l=c(e,["prefixCls","className","dashed"]),{getPrefixCls:d}=r.useContext(s.E_),m=d("menu",t),u=a()({[`${m}-item-divider-dashed`]:!!i},o);return r.createElement(n.iz,Object.assign({className:u},l))},m=o(11592),u=o(2738),g=o(6848),p=o(92343);var b=(0,r.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $=e=>{var t;const{className:o,children:l,icon:s,title:c,danger:d}=e,{prefixCls:$,firstLevel:v,direction:h,disableMenuItemTitleTooltip:f,inlineCollapsed:I}=r.useContext(b),{siderCollapsed:C}=r.useContext(i.D);let S=c;void 0===c?S=v?l:"":!1===c&&(S="");const B={title:S};C||I||(B.title=null,B.open=!1);const x=(0,m.Z)(l).length;let y=r.createElement(n.ck,Object.assign({},(0,u.Z)(e,["title","icon","danger"]),{className:a()({[`${$}-item-danger`]:d,[`${$}-item-only-child`]:1===(s?x+1:x)},o),title:"string"==typeof c?c:void 0}),(0,p.Tm)(s,{className:a()((0,p.l$)(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${$}-item-icon`)}),(e=>{const t=r.createElement("span",{className:`${$}-title-content`},l);return(!s||(0,p.l$)(l)&&"span"===l.type)&&l&&e&&v&&"string"==typeof l?r.createElement("div",{className:`${$}-inline-collapsed-noicon`},l.charAt(0)):t})(I));return f||(y=r.createElement(g.Z,Object.assign({},B,{placement:"rtl"===h?"left":"right",overlayClassName:`${$}-inline-collapsed-tooltip`}),y)),y};var v=e=>{var t;const{popupClassName:o,icon:i,title:l,theme:s}=e,c=r.useContext(b),{prefixCls:d,inlineCollapsed:m,theme:g}=c,$=(0,n.Xl)();let v;if(i){const e=(0,p.l$)(l)&&"span"===l.type;v=r.createElement(r.Fragment,null,(0,p.Tm)(i,{className:a()((0,p.l$)(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${d}-item-icon`)}),e?l:r.createElement("span",{className:`${d}-title-content`},l))}else v=m&&!$.length&&l&&"string"==typeof l?r.createElement("div",{className:`${d}-inline-collapsed-noicon`},l.charAt(0)):r.createElement("span",{className:`${d}-title-content`},l);const h=r.useMemo((()=>Object.assign(Object.assign({},c),{firstLevel:!1})),[c]);return r.createElement(b.Provider,{value:h},r.createElement(n.Wd,Object.assign({},(0,u.Z)(e,["icon"]),{title:v,popupClassName:a()(d,o,`${d}-${s||g}`)})))},h=o(18785),f=o(70425),I=o(62892),C=o(40875),S=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};function B(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const o=e,{label:i,children:l,key:a,type:s}=o,c=S(o,["label","children","key","type"]),m=null!=a?a:`tmp-${t}`;return l||"group"===s?"group"===s?r.createElement(n.BW,Object.assign({key:m},c,{title:i}),B(l)):r.createElement(v,Object.assign({key:m},c,{title:i}),B(l)):"divider"===s?r.createElement(d,Object.assign({key:m},c)):r.createElement($,Object.assign({key:m},c),i)}return null})).filter((e=>e))}function x(e){return r.useMemo((()=>e?B(e):e),[e])}var y=o(64993),O=o(17313),k=o(8378),w=o(13826),H=o(29878),j=o(83116),T=o(37613);var z=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:i,lineType:l,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${i}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var E=e=>{let{componentCls:t,menuArrowOffset:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${o})`},"&::after":{transform:`rotate(45deg) translateY(${o})`}}}}};const D=e=>Object.assign({},(0,O.oN)(e));var M=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:r,groupTitleColor:i,itemBg:l,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:m,motionDurationSlow:u,motionEaseInOut:g,motionEaseOut:p,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:v,lineType:h,colorSplit:f,itemDisabledColor:I,dangerItemColor:C,dangerItemHoverColor:S,dangerItemSelectedColor:B,dangerItemActiveBg:x,dangerItemSelectedBg:y,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:w,horizontalItemSelectedColor:H,horizontalItemSelectedBg:j,horizontalItemBorderRadius:T,horizontalItemHoverBg:z,popupBg:E}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},D(e)),[`${o}-item-group-title`]:{color:i},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:r}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${I} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:v}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${o}-item-danger`]:{color:C,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:S}},[`&${o}-item:active`]:{background:x}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:B},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:y}},[`${o}-item, ${o}-submenu-title`]:{[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},D(e))},[`&${o}-submenu > ${o}`]:{backgroundColor:w},[`&${o}-popup > ${o}`]:{backgroundColor:E},[`&${o}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:m,marginTop:-m,marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${u} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:c,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:c,borderBottomColor:H}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${m}px ${h} ${f}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:a},[`${o}-item, ${o}-submenu-title`]:m&&d?{width:`calc(100% + ${m}px)`}:{},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${p}`,`opacity ${$} ${p}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:B}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${g}`,`opacity ${$} ${g}`].join(",")}}}}}};const A=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:i,marginXS:l,itemMarginBlock:a}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:`${o}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:`calc(100% - ${2*n}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:`${o}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:r+i+l}}};var N=e=>{const{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:m,motionDurationSlow:u,paddingXS:g,boxShadowSecondary:p,collapsedWidth:b,collapsedIconSize:$}=e,v={height:n,lineHeight:`${n}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},A(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},A(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*l}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${u}`,`background ${u}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${m/2}px - ${d}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:$,lineHeight:`${n}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},O.vS),{paddingInline:g})}}]};const P=e=>{const{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:i,iconCls:l,iconSize:a,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${r}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${i}`,`margin ${o} ${r}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${r}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,O.Ro)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},R=e=>{const{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${n}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${o} ${n}`,`transform ${o} ${n}`,`top ${o} ${n}`,`color ${o} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},W=e=>{const{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,paddingXS:a,padding:s,colorSplit:c,lineWidth:d,zIndexPopup:m,borderRadiusLG:u,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:b,lineType:$,menuPanelMaskInset:v,groupTitleLineHeight:h,groupTitleFontSize:f}=e;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,O.dF)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.Wf)(e)),(0,O.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${a}px ${s}px`,fontSize:f,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${o}-title-content`]:{transition:`color ${r}`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:$,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),P(e)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${2*n}px ${s}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:u,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${v}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:u},P(e)),R(e)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:g},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),R(e)),{[`&-inline-collapsed ${o}-submenu-arrow,\n &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(-${.2*p}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]};var L=(e,t)=>(0,j.Z)("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:o,colorPrimary:n,colorTextLightSolid:r,controlHeightLG:i,fontSize:l,darkItemColor:a,darkDangerItemColor:s,darkItemBg:c,darkSubMenuItemBg:d,darkItemSelectedColor:m,darkItemSelectedBg:u,darkDangerItemSelectedBg:g,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:v,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:f,darkDangerItemActiveBg:I}=e,C=l/7*5,S=(0,T.TS)(e,{menuArrowSize:C,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*C+"px",menuPanelMaskInset:-7,menuSubMenuBg:o}),B=(0,T.TS)(S,{itemColor:a,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:m,itemBg:c,popupBg:c,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:u,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:v,dangerItemColor:s,dangerItemHoverColor:h,dangerItemSelectedColor:f,dangerItemActiveBg:I,dangerItemSelectedBg:g,menuSubMenuBg:d,horizontalItemSelectedColor:r,horizontalItemSelectedBg:n});return[W(S),z(S),N(S),M(S,"light"),M(B,"dark"),E(S),(0,k.Z)(S),(0,w.oN)(S,"slide-up"),(0,w.oN)(S,"slide-down"),(0,H._y)(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:o,colorTextDisabled:n,colorErrorBg:r,colorText:i,colorTextDescription:l,colorBgContainer:a,colorFillAlter:s,colorFillContent:c,lineWidth:d,lineWidthBold:m,controlItemBgActive:u,colorBgTextHover:g,controlHeightLG:p,lineHeight:b,colorBgElevated:$,marginXXS:v,padding:h,fontSize:f,controlHeightSM:I,fontSizeLG:C,colorTextLightSolid:S,colorErrorHover:B}=e,x=new y.C(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:a,itemBg:a,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:c,itemActiveBg:u,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:u,itemSelectedBg:u,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:d,activeBarBorderWidth:d,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:p,groupTitleLineHeight:b,collapsedWidth:2*p,popupBg:$,itemMarginBlock:v,itemPaddingInline:h,horizontalLineHeight:1.15*p+"px",iconSize:f,iconMarginInlineEnd:I-f,collapsedIconSize:C,groupTitleFontSize:f,darkItemDisabledColor:new y.C(S).setAlpha(.25).toRgbString(),darkItemColor:x,darkDangerItemColor:o,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:x,darkItemHoverColor:S,darkDangerItemHoverColor:B,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:o}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e),X=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o};const Z=(0,r.forwardRef)(((e,t)=>{var o,i;const l=r.useContext(C.Z),c=l||{},{getPrefixCls:d,getPopupContainer:m,direction:g,menu:$}=r.useContext(s.E_),v=d(),{prefixCls:S,className:B,style:y,theme:O="light",expandIcon:k,_internalDisableMenuItemTitleTooltip:w,inlineCollapsed:H,siderCollapsed:j,items:T,children:z,rootClassName:E,mode:D,selectable:M,onClick:A,overflowedIndicatorPopupClassName:N}=e,P=X(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=(0,u.Z)(P,["collapsedWidth"]),W=x(T)||z;null===(o=c.validator)||void 0===o||o.call(c,{mode:D});const Z=(0,f.useEvent)((function(){var e;null==A||A.apply(void 0,arguments),null===(e=c.onClick)||void 0===e||e.call(c)})),G=c.mode||D,Y=null!=M?M:c.selectable,F=r.useMemo((()=>void 0!==j?j:H),[H,j]),_={horizontal:{motionName:`${v}-slide-up`},inline:(0,I.Z)(v),other:{motionName:`${v}-zoom-big`}},J=d("menu",S||c.prefixCls),[q,K]=L(J,!l),Q=a()(`${J}-${O}`,null==$?void 0:$.className,B);let U;if("function"==typeof k)U=k;else if(null===k||!1===k)U=null;else if(null===c.expandIcon||!1===c.expandIcon)U=null;else{const e=null!=k?k:c.expandIcon;U=(0,p.Tm)(e,{className:a()(`${J}-submenu-expand-icon`,(0,p.l$)(e)?null===(i=e.props)||void 0===i?void 0:i.className:"")})}const V=r.useMemo((()=>({prefixCls:J,inlineCollapsed:F||!1,direction:g,firstLevel:!0,theme:O,mode:G,disableMenuItemTitleTooltip:w})),[J,F,g,w,O]);return q(r.createElement(C.Z.Provider,{value:null},r.createElement(b.Provider,{value:V},r.createElement(n.ZP,Object.assign({getPopupContainer:m,overflowedIndicator:r.createElement(h.Z,null),overflowedIndicatorPopupClassName:a()(J,`${J}-${O}`,N),mode:G,selectable:Y,onClick:Z},R,{inlineCollapsed:F,style:Object.assign(Object.assign({},null==$?void 0:$.style),y),className:Q,prefixCls:J,direction:g,defaultMotions:_,expandIcon:U,ref:t,rootClassName:a()(E,K)}),W))))}));var G=Z;const Y=(0,r.forwardRef)(((e,t)=>{const o=(0,r.useRef)(null),n=r.useContext(i.D);return(0,r.useImperativeHandle)(t,(()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}}))),r.createElement(G,Object.assign({ref:o},e,n))}));Y.Item=$,Y.SubMenu=v,Y.Divider=d,Y.ItemGroup=n.BW;var F=Y}}]); |