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
10 KiB
1 line
10 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[19458],{19249:function(e,t,r){r.d(t,{D:function(){return v},Z:function(){return $}});var o=r(87462),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=r(44327),l=function(e,t){return n.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=n.forwardRef(l),d=r(55007),c=r(79269),g=r(94184),u=r.n(g),f=r(10366);var h=e=>!isNaN(parseFloat(e))&&isFinite(e),m=r(53124),p=r(84321),b=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},v=n.createContext({}),y=(()=>{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,`${t}${e}`}})();var $=n.forwardRef(((e,t)=>{const{prefixCls:r,className:o,trigger:i,children:a,defaultCollapsed:l=!1,theme:g="dark",style:$={},collapsible:C=!1,reverseArrow:w=!1,width:E=200,collapsedWidth:S=80,zeroWidthTriggerStyle:B,breakpoint:N,onCollapse:O,onBreakpoint:k}=e,z=b(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:H}=(0,n.useContext)(p.Gs),[j,T]=(0,n.useState)("collapsed"in e?e.collapsed:l),[Z,R]=(0,n.useState)(!1);(0,n.useEffect)((()=>{"collapsed"in e&&T(e.collapsed)}),[e.collapsed]);const P=(t,r)=>{"collapsed"in e||T(t),null==O||O(t,r)},M=(0,n.useRef)();M.current=e=>{R(e.matches),null==k||k(e.matches),j!==e.matches&&P(e.matches,"responsive")},(0,n.useEffect)((()=>{function e(e){return M.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:r}=window;if(r&&N&&N in x){t=r(`(max-width: ${x[N]})`);try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(r){null==t||t.removeListener(e)}}}),[N]),(0,n.useEffect)((()=>{const e=y("ant-sider-");return H.addSider(e),()=>H.removeSider(e)}),[]);const I=()=>{P(!j,"clickTrigger")},{getPrefixCls:L}=(0,n.useContext)(m.E_),D=n.useMemo((()=>({siderCollapsed:j})),[j]);return n.createElement(v.Provider,{value:D},(()=>{const e=L("layout-sider",r),l=(0,f.Z)(z,["collapsed"]),m=j?S:E,p=h(m)?`${m}px`:String(m),b=0===parseFloat(String(S||0))?n.createElement("span",{onClick:I,className:u()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${w?"right":"left"}`),style:B},i||n.createElement(s,null)):null,x={expanded:w?n.createElement(c.Z,null):n.createElement(d.Z,null),collapsed:w?n.createElement(d.Z,null):n.createElement(c.Z,null)}[j?"collapsed":"expanded"],v=null!==i?b||n.createElement("div",{className:`${e}-trigger`,onClick:I,style:{width:p}},i||x):null,y=Object.assign(Object.assign({},$),{flex:`0 0 ${p}`,maxWidth:p,minWidth:p,width:p}),N=u()(e,`${e}-${g}`,{[`${e}-collapsed`]:!!j,[`${e}-has-trigger`]:C&&null!==i&&!b,[`${e}-below`]:!!Z,[`${e}-zero-width`]:0===parseFloat(p)},o);return n.createElement("aside",Object.assign({className:N},l,{style:y,ref:t}),n.createElement("div",{className:`${e}-children`},a),C||Z&&b?v:null)})())}))},84321:function(e,t,r){r.d(t,{VY:function(){return $},$_:function(){return y},h4:function(){return v},Gs:function(){return h},ZP:function(){return C}});var o=r(74902),n=r(94184),i=r.n(n),a=r(10366),l=r(67294),s=r(53124),d=r(67968);var c=e=>{const{componentCls:t,bodyBg:r,lightSiderBg:o,lightTriggerBg:n,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:o,[`${t}-sider-trigger`]:{color:i,background:n},[`${t}-sider-zero-width-trigger`]:{color:i,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}};const g=e=>{const{antCls:t,componentCls:r,colorText:o,triggerColor:n,footerBg:i,triggerBg:a,headerHeight:l,headerPadding:s,headerColor:d,footerPadding:g,triggerHeight:u,zeroTriggerHeight:f,zeroTriggerWidth:h,motionDurationMid:m,motionDurationSlow:p,fontSize:b,borderRadius:x,bodyBg:v,headerBg:y,siderBg:$}=e;return{[r]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},[`${r}-sider`]:{position:"relative",minWidth:0,background:$,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:u},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:u,color:n,lineHeight:`${u}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:-h,zIndex:1,width:h,height:f,color:n,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$,borderStartStartRadius:0,borderStartEndRadius:x,borderEndEndRadius:x,borderEndStartRadius:0,cursor:"pointer",transition:`background ${p} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${p}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:x,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x}}}}},c(e)),{"&-rtl":{direction:"rtl"}}),[`${r}-header`]:{height:l,padding:s,color:d,lineHeight:`${l}px`,background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:g,color:o,fontSize:b,background:i},[`${r}-content`]:{flex:"auto",minHeight:0}}};var u=(0,d.Z)("Layout",(e=>[g(e)]),(e=>{const{colorBgLayout:t,controlHeight:r,controlHeightLG:o,colorText:n,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,d=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*r,headerPadding:`0 ${d}px`,headerColor:n,footerPadding:`${i}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:n}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),f=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r};const h=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function m(e){let{suffixCls:t,tagName:r,displayName:o}=e;return e=>l.forwardRef(((o,n)=>l.createElement(e,Object.assign({ref:n,suffixCls:t,tagName:r},o))))}const p=l.forwardRef(((e,t)=>{const{prefixCls:r,suffixCls:o,className:n,tagName:a}=e,d=f(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=l.useContext(s.E_),g=c("layout",r),[h,m]=u(g),p=o?`${g}-${o}`:g;return h(l.createElement(a,Object.assign({className:i()(r||p,n,m),ref:t},d)))})),b=l.forwardRef(((e,t)=>{const{direction:r}=l.useContext(s.E_),[n,d]=l.useState([]),{prefixCls:c,className:g,rootClassName:m,children:p,hasSider:b,tagName:x,style:v}=e,y=f(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),$=(0,a.Z)(y,["suffixCls"]),{getPrefixCls:C,layout:w}=l.useContext(s.E_),E=C("layout",c),[S,B]=u(E),N=i()(E,{[`${E}-has-sider`]:"boolean"==typeof b?b:n.length>0,[`${E}-rtl`]:"rtl"===r},null==w?void 0:w.className,g,m,B),O=l.useMemo((()=>({siderHook:{addSider:e=>{d((t=>[].concat((0,o.Z)(t),[e])))},removeSider:e=>{d((t=>t.filter((t=>t!==e))))}}})),[]);return S(l.createElement(h.Provider,{value:O},l.createElement(x,Object.assign({ref:t,className:N,style:Object.assign(Object.assign({},null==w?void 0:w.style),v)},$),p)))})),x=m({tagName:"div",displayName:"Layout"})(b),v=m({suffixCls:"header",tagName:"header",displayName:"Header"})(p),y=m({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(p),$=m({suffixCls:"content",tagName:"main",displayName:"Content"})(p);var C=x},33507:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},55007:function(e,t,r){r.d(t,{Z:function(){return s}});var o=r(87462),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=r(44327),l=function(e,t){return n.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=n.forwardRef(l)},79269:function(e,t,r){r.d(t,{Z:function(){return s}});var o=r(87462),n=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=r(44327),l=function(e,t){return n.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};var s=n.forwardRef(l)}}]); |