Files
openmaxio-object-browser/portal-ui/build/static/js/2351.d7b63e5d.chunk.js
Alex 65575751ff Release v0.24.0 (#2679)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2023-02-28 12:53:47 -08:00

2 lines
17 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2351],{82839:function(e,t,r){r.d(t,{q:function(){return j}});var n=r(74786),i=r.n(n),o=r(72791),a=r(70587),c=r(77612),u=["x1","y1","x2","y2","key"];function l(e){return l="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},l(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var i=m(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function O(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var j=function(e){!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&&v(e,t)}(h,e);var t,r,n,l=g(h);function h(){return d(this,h),l.apply(this,arguments)}return t=h,n=[{key:"renderLineItem",value:function(e,t){var r;if(o.isValidElement(e))r=o.cloneElement(e,t);else if(i()(e))r=e(t);else{var n=t.x1,a=t.y1,l=t.x2,h=t.y2,p=t.key,d=s(t,u);r=o.createElement("line",f({},(0,c.L6)(d),{x1:n,y1:a,x2:l,y2:h,fill:"none",key:p}))}return r}}],(r=[{key:"renderHorizontal",value:function(e){var t=this,r=this.props,n=r.x,i=r.width,a=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,r){var o=p(p({},t.props),{},{x1:n,y1:e,x2:n+i,y2:e,key:"line-".concat(r),index:r});return h.renderLineItem(a,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var t=this,r=this.props,n=r.y,i=r.height,a=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,r){var o=p(p({},t.props),{},{x1:e,y1:n,x2:e,y2:n+i,key:"line-".concat(r),index:r});return h.renderLineItem(a,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,i=r.x,a=r.y,c=r.width,u=r.height,l=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==l[0]&&l.unshift(0);var f=l.map((function(e,r){var f=l[r+1]?l[r+1]-e:i+c-e;if(f<=0)return null;var s=r%t.length;return o.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:f,height:u,stroke:"none",fill:t[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var r=this.props,n=r.fillOpacity,i=r.x,a=r.y,c=r.width,u=r.height,l=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var f=l.map((function(e,r){var f=l[r+1]?l[r+1]-e:a+u-e;if(f<=0)return null;var s=r%t.length;return o.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:f,width:c,stroke:"none",fill:t[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,c=t.height;return o.createElement("rect",{x:n,y:i,width:a,height:c,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,c=e.height,u=e.horizontal,l=e.vertical,f=e.horizontalCoordinatesGenerator,s=e.verticalCoordinatesGenerator,h=e.xAxis,p=e.yAxis,d=e.offset,y=e.chartWidth,v=e.chartHeight;if(!(0,a.hj)(n)||n<=0||!(0,a.hj)(c)||c<=0||!(0,a.hj)(t)||t!==+t||!(0,a.hj)(r)||r!==+r)return null;var g=this.props,b=g.horizontalPoints,m=g.verticalPoints;return b&&b.length||!i()(f)||(b=f({yAxis:p,width:y,height:v,offset:d})),m&&m.length||!i()(s)||(m=s({xAxis:h,width:y,height:v,offset:d})),o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(b),l&&this.renderVertical(m),u&&this.renderHorizontalStripes(b),l&&this.renderVerticalStripes(m))}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.PureComponent);O(j,"displayName","CartesianGrid"),O(j,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]})},90466:function(e,t,r){r.d(t,{K:function(){return n}});var n=function(){return null};n.displayName="XAxis",n.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},12891:function(e,t,r){r.d(t,{B:function(){return n}});var n=function(){return null};n.displayName="YAxis",n.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},20601:function(e,t,r){r.d(t,{h:function(){return le}});var n=r(48573),i=r.n(n),o=r(81694),a=r.n(o),c=r(72791),u=r(54164),l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},l(e,t)};function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{};var p=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof h&&h&&h.Object===Object&&h,y="object"==typeof self&&self&&self.Object===Object&&self,v=d||y||Function("return this")(),g=v,b=function(){return g.Date.now()},m=/\s/;var O=function(e){for(var t=e.length;t--&&m.test(e.charAt(t)););return t},w=/^\s+/;var j=function(e){return e?e.slice(0,O(e)+1).replace(w,""):e},x=v.Symbol,E=x,P=Object.prototype,S=P.hasOwnProperty,k=P.toString,H=E?E.toStringTag:void 0;var R=function(e){var t=S.call(e,H),r=e[H];try{e[H]=void 0;var n=!0}catch(o){}var i=k.call(e);return n&&(t?e[H]=r:delete e[H]),i},z=Object.prototype.toString;var T=R,A=function(e){return z.call(e)},N=x?x.toStringTag:void 0;var _=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?T(e):A(e)},D=function(e){return null!=e&&"object"==typeof e};var W=j,C=p,M=function(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==_(e)},I=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,U=/^0o[0-7]+$/i,L=parseInt;var V=p,B=b,$=function(e){if("number"==typeof e)return e;if(M(e))return NaN;if(C(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=C(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=W(e);var r=F.test(e);return r||U.test(e)?L(e.slice(2),r?2:8):I.test(e)?NaN:+e},q=Math.max,G=Math.min;var Z=function(e,t,r){var n,i,o,a,c,u,l=0,f=!1,s=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=i;return n=i=void 0,l=t,a=e.apply(o,r)}function d(e){return l=e,c=setTimeout(v,t),f?p(e):a}function y(e){var r=e-u;return void 0===u||r>=t||r<0||s&&e-l>=o}function v(){var e=B();if(y(e))return g(e);c=setTimeout(v,function(e){var r=t-(e-u);return s?G(r,o-(e-l)):r}(e))}function g(e){return c=void 0,h&&n?p(e):(n=i=void 0,a)}function b(){var e=B(),r=y(e);if(n=arguments,i=this,u=e,r){if(void 0===c)return d(u);if(s)return clearTimeout(c),c=setTimeout(v,t),p(u)}return void 0===c&&(c=setTimeout(v,t)),a}return t=$(t)||0,V(r)&&(f=!!r.leading,o=(s="maxWait"in r)?q($(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=i=c=void 0},b.flush=function(){return void 0===c?a:g(B())},b},K=Z,X=p;var Y=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return X(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),K(e,t,{leading:n,maxWait:t,trailing:i})},J=function(e,t,r,n){switch(t){case"debounce":return Z(e,r,n);case"throttle":return Y(e,r,n);default:return e}},Q=function(e){return"function"===typeof e},ee=function(){return"undefined"===typeof window},te=function(e){return e instanceof Element||e instanceof HTMLDocument},re=function(e,t,r,n){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!n||t.height===a&&!r?t:(e&&Q(e)&&e(o,a),{width:o,height:a})}))}},ne=function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!ee()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(ee())return null;if(t)return document.querySelector(t);if(n&&te(n))return n;if(r.targetRef&&te(r.targetRef.current))return r.targetRef.current;var i=(0,u.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,c=t.onResize;if(i||a){var u=re(c,r.setState.bind(r),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,i=t.height;!r.skipOnMount&&!ee()&&u({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return Q(t)?"renderProp":Q(n)?"childFunction":(0,c.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,l=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,c.createRef)(),r.observableElement=null,ee()||(r.resizeHandler=J(r.createResizeHandler,i,a,l),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return f(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){ee()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,i=t.nodeType,o=void 0===i?"div":i,a=this.state,u={width:a.width,height:a.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=n)(u);case"child":if((e=n).type&&"string"===typeof e.type){var l=s(u,["targetRef"]);return(0,c.cloneElement)(e,l)}return(0,c.cloneElement)(e,u);case"childArray":return(e=n).map((function(e){return!!e&&(0,c.cloneElement)(e,u)}));default:return c.createElement(o,null)}},t}(c.PureComponent);ee()?c.useEffect:c.useLayoutEffect;var ie=r(70587),oe=r(15303);function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(this,arguments)}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ue(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 ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var le=(0,c.forwardRef)((function(e,t){var r=e.aspect,n=e.width,o=void 0===n?"100%":n,u=e.height,l=void 0===u?"100%":u,f=e.minWidth,s=e.minHeight,h=e.maxHeight,p=e.children,d=e.debounce,y=void 0===d?0:d,v=e.id,g=e.className,b=ce((0,c.useState)({containerWidth:-1,containerHeight:-1}),2),m=b[0],O=b[1],w=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return w}),[w]);var j=ce((0,c.useState)(!1),2),x=j[0],E=j[1],P=function(){return w.current?{containerWidth:w.current.clientWidth,containerHeight:w.current.clientHeight}:null},S=function(){if(x){var e=P();if(e){var t=m.containerWidth,r=m.containerHeight,n=e.containerWidth,i=e.containerHeight;n===t&&i===r||O({containerWidth:n,containerHeight:i})}}},k=y>0?i()(S,y):S;(0,c.useEffect)((function(){if(x){var e=P();e&&O(e)}}),[x]),(0,c.useEffect)((function(){E(!0)}),[]);var H={width:o,height:l,minWidth:f,minHeight:s,maxHeight:h};return c.createElement(ne,{handleWidth:!0,handleHeight:!0,onResize:k,targetRef:w},c.createElement("div",ae({},null!=v?{id:"".concat(v)}:{},{className:a()("recharts-responsive-container",g),style:H,ref:w}),function(){var e=m.containerWidth,t=m.containerHeight;if(e<0||t<0)return null;(0,oe.Z)((0,ie.hU)(o)||(0,ie.hU)(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,l),(0,oe.Z)(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=(0,ie.hU)(o)?e:o,i=(0,ie.hU)(l)?t:l;return r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),(0,oe.Z)(n>0||i>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.",n,i,o,l,f,s,r),(0,c.cloneElement)(p,{width:n,height:i})}()))}))}}]);
//# sourceMappingURL=2351.d7b63e5d.chunk.js.map