github.com/minio/console@v1.4.1/web-app/build/static/js/6016.2a05d7e1.chunk.js (about) 1 "use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6016],{13839:(e,t,n)=>{n.d(t,{G:()=>_});var r,i=n(65043),a=n(58387),o=n(59101),c=n(11629),l=n.n(c),u=n(50539),s=n.n(u),p=n(79686),f=n.n(p),h=n(35268),y=n.n(h),d=n(19853),m=n.n(d),b=n(68471),v=n(68892),g=n(94020),O=n(81519),A=n(6015),w=n(76307),x=n(20202),j=n(240),P=["layout","type","stroke","connectNulls","isRange","ref"];function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function S(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}function N(e,t,n){return t=W(t),function(e,t){if(t&&("object"===E(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}(e,C()?Reflect.construct(t,n||[],W(e).constructor):t.apply(e,n))}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function B(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:String(t)}var _=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return B(I(e=N(this,t,[].concat(r))),"state",{isAnimationFinished:!0}),B(I(e),"id",(0,w.NF)("recharts-area-")),B(I(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),l()(t)&&t()})),B(I(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),l()(t)&&t()})),e}var n,r,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),n=t,c=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],(r=[{key:"renderDots",value:function(e,n,r){var a=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(a&&!o)return null;var c=this.props,l=c.dot,u=c.points,s=c.dataKey,p=(0,j.J9)(this.props,!1),f=(0,j.J9)(l,!0),h=u.map((function(e,n){var r=M(M(M({key:"dot-".concat(n),r:3},p),f),{},{index:n,cx:e.x,cy:e.y,dataKey:s,value:e.value,payload:e.payload,points:u});return t.renderDotItem(l,r)})),y={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return i.createElement(g.W,k({className:"recharts-area-dots"},y),h)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,a=t.strokeWidth,o=r[0].x,c=r[r.length-1].x,l=e*Math.abs(o-c),u=s()(r.map((function(e){return e.y||0})));return(0,w.Et)(n)&&"number"===typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(s()(n.map((function(e){return e.y||0}))),u)),(0,w.Et)(u)?i.createElement("rect",{x:o<c?o:o-l,y:0,width:l,height:Math.floor(u+(a?parseInt("".concat(a),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,a=t.strokeWidth,o=r[0].y,c=r[r.length-1].y,l=e*Math.abs(o-c),u=s()(r.map((function(e){return e.x||0})));return(0,w.Et)(n)&&"number"===typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(s()(n.map((function(e){return e.x||0}))),u)),(0,w.Et)(u)?i.createElement("rect",{x:0,y:o<c?o:o-l,width:u+(a?parseInt("".concat(a),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var a=this.props,o=a.layout,c=a.type,l=a.stroke,u=a.connectNulls,s=a.isRange,p=(a.ref,S(a,P));return i.createElement(g.W,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(b.I,k({},(0,j.J9)(p,!0),{points:e,connectNulls:u,type:c,baseLine:t,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==l&&i.createElement(b.I,k({},(0,j.J9)(this.props,!1),{className:"recharts-area-curve",layout:o,type:c,connectNulls:u,fill:"none",points:e})),"none"!==l&&s&&i.createElement(b.I,k({},(0,j.J9)(this.props,!1),{className:"recharts-area-curve",layout:o,type:c,connectNulls:u,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,a=r.points,c=r.baseLine,l=r.isAnimationActive,u=r.animationBegin,s=r.animationDuration,p=r.animationEasing,h=r.animationId,d=this.state,m=d.prevPoints,b=d.prevBaseLine;return i.createElement(o.Ay,{begin:u,duration:s,isActive:l,easing:p,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(m){var l,u=m.length/a.length,s=a.map((function(e,t){var n=Math.floor(t*u);if(m[n]){var r=m[n],i=(0,w.Dj)(r.x,e.x),a=(0,w.Dj)(r.y,e.y);return M(M({},e),{},{x:i(o),y:a(o)})}return e}));return l=(0,w.Et)(c)&&"number"===typeof c?(0,w.Dj)(b,c)(o):f()(c)||y()(c)?(0,w.Dj)(b,0)(o):c.map((function(e,t){var n=Math.floor(t*u);if(b[n]){var r=b[n],i=(0,w.Dj)(r.x,e.x),a=(0,w.Dj)(r.y,e.y);return M(M({},e),{},{x:i(o),y:a(o)})}return e})),n.renderAreaStatically(s,l,e,t)}return i.createElement(g.W,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(o))),i.createElement(g.W,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(a,c,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,o=this.state,c=o.prevPoints,l=o.prevBaseLine,u=o.totalLength;return a&&r&&r.length&&(!c&&u>0||!m()(c,r)||!m()(l,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,o=t.points,c=t.className,l=t.top,u=t.left,s=t.xAxis,p=t.yAxis,h=t.width,y=t.height,d=t.isAnimationActive,m=t.id;if(n||!o||!o.length)return null;var b=this.state.isAnimationFinished,v=1===o.length,A=(0,a.A)("recharts-area",c),w=s&&s.allowDataOverflow,x=p&&p.allowDataOverflow,P=w||x,E=f()(m)?this.id:m,S=null!==(e=(0,j.J9)(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},k=S.r,D=void 0===k?3:k,M=S.strokeWidth,R=void 0===M?2:M,N=((0,j.ON)(r)?r:{}).clipDot,C=void 0===N||N,W=2*D+R;return i.createElement(g.W,{className:A},w||x?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(E)},i.createElement("rect",{x:w?u:u-h/2,y:x?l:l-y/2,width:w?h:2*h,height:x?y:2*y})),!C&&i.createElement("clipPath",{id:"clipPath-dots-".concat(E)},i.createElement("rect",{x:u-W/2,y:l-W/2,width:h+W,height:y+W}))):null,v?null:this.renderArea(P,E),(r||v)&&this.renderDots(P,C,E),(!d||b)&&O.Z.renderCallByParent(this.props,o))}}])&&R(n.prototype,r),c&&R(n,c),Object.defineProperty(n,"prototype",{writable:!1}),t}(i.PureComponent);r=_,B(_,"displayName","Area"),B(_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!A.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),B(_,"getBaseValue",(function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue,c=null!==o&&void 0!==o?o:a;if((0,w.Et)(c)&&"number"===typeof c)return c;var l="horizontal"===i?r:n,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),p=Math.min(u[0],u[1]);return"dataMin"===c?p:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),B(_,"getComposedData",(function(e){var t,n=e.props,i=e.item,a=e.xAxis,o=e.yAxis,c=e.xAxisTicks,l=e.yAxisTicks,u=e.bandSize,s=e.dataKey,p=e.stackedData,f=e.dataStartIndex,h=e.displayedData,y=e.offset,d=n.layout,m=p&&p.length,b=r.getBaseValue(n,i,a,o),v="horizontal"===d,g=!1,O=h.map((function(e,t){var n;m?n=p[f+t]:(n=(0,x.kr)(e,s),Array.isArray(n)?g=!0:n=[b,n]);var r=null==n[1]||m&&null==(0,x.kr)(e,s);return v?{x:(0,x.nb)({axis:a,ticks:c,bandSize:u,entry:e,index:t}),y:r?null:o.scale(n[1]),value:n,payload:e}:{x:r?null:a.scale(n[1]),y:(0,x.nb)({axis:o,ticks:l,bandSize:u,entry:e,index:t}),value:n,payload:e}}));return t=m||g?O.map((function(e){var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:null!=t&&null!=e.y?o.scale(t):null}:{x:null!=t?a.scale(t):null,y:e.y}})):v?o.scale(b):a.scale(b),M({points:O,baseLine:t,layout:d,isRange:g},y)})),B(_,"renderDotItem",(function(e,t){var n;if(i.isValidElement(e))n=i.cloneElement(e,t);else if(l()(e))n=e(t);else{var r=(0,a.A)("recharts-area-dot","boolean"!==typeof e?e.className:"");n=i.createElement(v.c,k({},t,{className:r}))}return n}))},877:(e,t,n)=>{n.d(t,{Q:()=>l});var r=n(88420),i=n(13839),a=n(52185),o=n(6026),c=n(3831),l=(0,r.gu)({chartName:"AreaChart",GraphicalChild:i.G,axisComponents:[{axisType:"xAxis",AxisComp:a.W},{axisType:"yAxis",AxisComp:o.h}],formatAxisMap:c.pr})},50108:(e,t,n)=>{n.d(t,{u:()=>b});var r=n(58387),i=n(65043),a=n(79889),o=n.n(a),c=n(69062),l=n(76307),u=n(155),s=n(240);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=(0,i.forwardRef)((function(e,t){var n=e.aspect,a=e.initialDimension,p=void 0===a?{width:-1,height:-1}:a,f=e.width,y=void 0===f?"100%":f,m=e.height,b=void 0===m?"100%":m,v=e.minWidth,g=void 0===v?0:v,O=e.minHeight,A=e.maxHeight,w=e.children,x=e.debounce,j=void 0===x?0:x,P=e.id,E=e.className,S=e.onResize,k=e.style,D=void 0===k?{}:k,M=(0,i.useRef)(null),R=(0,i.useRef)();R.current=S,(0,i.useImperativeHandle)(t,(function(){return Object.defineProperty(M.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),M.current},configurable:!0})}));var N=d((0,i.useState)({containerWidth:p.width,containerHeight:p.height}),2),C=N[0],W=N[1],I=(0,i.useCallback)((function(e,t){W((function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}))}),[]);(0,i.useEffect)((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;I(r,i),null===(t=R.current)||void 0===t||t.call(R,r,i)};j>0&&(e=o()(e,j,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=M.current.getBoundingClientRect(),r=n.width,i=n.height;return I(r,i),t.observe(M.current),function(){t.disconnect()}}),[I,j]);var L=(0,i.useMemo)((function(){var e=C.containerWidth,t=C.containerHeight;if(e<0||t<0)return null;(0,u.R)((0,l._3)(y)||(0,l._3)(b),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,b),(0,u.R)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,l._3)(y)?e:y,a=(0,l._3)(b)?t:b;n&&n>0&&(r?a=r/n:a&&(r=a*n),A&&a>A&&(a=A)),(0,u.R)(r>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,a,y,b,g,O,n);var o=!Array.isArray(w)&&(0,c.isElement)(w)&&(0,s.Mn)(w.type).endsWith("Chart");return i.Children.map(w,(function(e){return(0,c.isElement)(e)?(0,i.cloneElement)(e,h({width:r,height:a},o?{style:h({height:"100%",width:"100%",maxHeight:a,maxWidth:r},e.props.style)}:{})):e}))}),[n,w,b,A,O,g,C,y]);return i.createElement("div",{id:P?"".concat(P):void 0,className:(0,r.A)("recharts-responsive-container",E),style:h(h({},D),{},{width:y,height:b,minWidth:g,minHeight:O,maxHeight:A}),ref:M},L)}))}}]); 2 //# sourceMappingURL=6016.2a05d7e1.chunk.js.map