mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[5661],{84861:function(e,t,n){n(72791);var r=n(64554),i=n(80184);t.Z=function(e){var t=e.icon,n=void 0===t?null:t,a=e.label,o=void 0===a?null:a;return(0,i.jsxs)(r.Z,{sx:{display:"flex"},children:[(0,i.jsx)("div",{style:{height:16,width:16,display:"flex",alignItems:"center",marginTop:5},children:n}),(0,i.jsx)("div",{style:{marginLeft:n?5:"none"},children:o})]})}},45902:function(e,t,n){var r=n(1413),i=(n(72791),n(1582)),a=n(80184);t.Z=function(e){var t=e.label,n=void 0===t?null:t,o=e.value,s=void 0===o?"-":o,l=e.orientation,c=void 0===l?"column":l,u=e.stkProps,d=void 0===u?{}:u,p=e.lblProps,f=void 0===p?{}:p,h=e.valProps,m=void 0===h?{}:h;return(0,a.jsxs)(i.Z,(0,r.Z)((0,r.Z)({direction:{xs:"column",sm:c}},d),{},{children:[(0,a.jsx)("label",(0,r.Z)((0,r.Z)({style:{marginRight:5,fontWeight:600}},f),{},{children:n})),(0,a.jsx)("label",(0,r.Z)((0,r.Z)({style:{marginRight:5,fontWeight:500}},m),{},{children:s}))]}))}},35661:function(e,t,n){n.r(t),n.d(t,{default:function(){return fe}});var r=n(1413),i=n(29439),a=n(72791),o=n(61889),s=n(64554),l=n(81207),c=n(38442),u=n(56087),d=n(87995),p=n(81551),f=n(18073),h=n(43896),m=n(19847),y=n(45902),v=n(50896),x=n(84861),b=n(38725),g=n(82839),j=n(90466),A=n(12891),k=n(35667),S=n(83672),Z=n(57702),P=n(625),w=n(18111),E=n.n(w),O=n(74786),C=n.n(O),F=n(42854),T=n.n(F),D=n(98202),K=n(81694),I=n.n(K),N=n(75555),R=n(39718),L=n(46044),M=n(87970),B=n(85992),_=n(70587),$=n(77612),G=n(36768),q=n(73822),W=["type","layout","connectNulls","ref"];function z(e){return z="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},z(e)}function H(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 V(){return V=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},V.apply(this,arguments)}function U(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Q(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 Q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(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}function Y(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,ae(r.key),r)}}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(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 n,r=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===z(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}(this,n)}}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===z(t)?t:String(t)}var oe=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&&ee(e,t)}(o,e);var t,n,r,i=te(o);function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ie(ne(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),ie(ne(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),a=e%r,s=t-e,l=[],c=0,u=0;;u+=n[c],++c)if(u+n[c]>a){l=[].concat(J(n.slice(0,c)),[a-u]);break}var d=l.length%2===0?[0,s]:[s];return[].concat(J(o.repeat(n,i)),J(l),d).map((function(e){return"".concat(e,"px")})).join(", ")})),ie(ne(e),"id",(0,_.EL)("recharts-line-")),ie(ne(e),"pathRef",(function(t){e.mainCurve=t})),ie(ne(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),ie(ne(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return t=o,r=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!==0?[].concat(J(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(J(r),J(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if(C()(e))n=e(t);else{var r=I()("recharts-line-dot",e?e.className:"");n=a.createElement(R.o,V({},t,{className:r}))}return n}}],(n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,s=n.layout,l=n.children,c=(0,$.NN)(l,B.W);if(!c)return null;var u=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:(0,q.F$)(e.payload,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return a.createElement(L.m,d,c.map((function(e,t){return a.cloneElement(e,{key:"bar-".concat(t),data:r,xAxis:i,yAxis:o,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,s=r.points,l=r.dataKey,c=(0,$.L6)(this.props),u=(0,$.L6)(i,!0),d=s.map((function(e,t){var n=X(X(X({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:l,cx:e.x,cy:e.y,index:t,payload:e.payload});return o.renderDotItem(i,n)})),p={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(n,")"):null};return a.createElement(L.m,V({className:"recharts-line-dots",key:"dots"},p,{role:"img"}),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,o=i.type,s=i.layout,l=i.connectNulls,c=(i.ref,H(i,W)),u=X(X(X({},(0,$.L6)(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:o,layout:s,connectNulls:l});return a.createElement(N.H,V({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,s=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,p=r.animateNewValues,f=r.width,h=r.height,m=this.state,y=m.prevPoints,v=m.totalLength;return a.createElement(D.ZP,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var s=y.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=(0,_.k4)(r.x,e.x),o=(0,_.k4)(r.y,e.y);return X(X({},e),{},{x:i(a),y:o(a)})}if(p){var l=(0,_.k4)(2*f,e.x),c=(0,_.k4)(h/2,e.y);return X(X({},e),{},{x:l(a),y:c(a)})}return X(X({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(l,e,t)}var c,u=(0,_.k4)(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(u,v,d)}else c="".concat(u,"px ").concat(v-u,"px");return n.renderCurveStatically(i,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,a=this.state,o=a.prevPoints,s=a.totalLength;return i&&r&&r.length&&(!o&&s>0||!E()(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,s=t.xAxis,l=t.yAxis,c=t.top,u=t.left,d=t.width,p=t.height,f=t.isAnimationActive,h=t.id;if(n||!i||!i.length)return null;var m=this.state.isAnimationFinished,y=1===i.length,v=I()("recharts-line",o),x=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,g=x||b,j=T()(h)?this.id:h,A=null!==(e=(0,$.L6)(r))&&void 0!==e?e:{r:3,strokeWidth:2},k=A.r,S=void 0===k?3:k,Z=A.strokeWidth,P=void 0===Z?2:Z,w=((0,$.$k)(r)?r:{}).clipDot,E=void 0===w||w,O=2*S+P;return a.createElement(L.m,{className:v},x||b?a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath-".concat(j)},a.createElement("rect",{x:x?u:u-d/2,y:b?c:c-p/2,width:x?d:2*d,height:b?p:2*p})),!E&&a.createElement("clipPath",{id:"clipPath-dots-".concat(j)},a.createElement("rect",{x:u-O/2,y:c-O/2,width:d+O,height:p+O}))):null,!y&&this.renderCurve(g,j),this.renderErrorBar(g,j),(y||r)&&this.renderDots(g,E,j),(!f||m)&&M.e.renderCallByParent(this.props,i))}}])&&Y(t.prototype,n),r&&Y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.PureComponent);ie(oe,"displayName","Line"),ie(oe,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!G.x.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),ie(oe,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout;return X({points:l.map((function(e,t){var l=(0,q.F$)(e,o);return"horizontal"===u?{x:(0,q.Hv)({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:T()(l)?null:r.scale(l),value:l,payload:e}:{x:T()(l)?null:n.scale(l),y:(0,q.Hv)({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:l,payload:e}})),layout:u},c)}));var se=n(93137),le=(0,P.z)({chartName:"LineChart",GraphicalChild:oe,axisComponents:[{axisType:"xAxis",AxisComp:j.K},{axisType:"yAxis",AxisComp:A.B}],formatAxisMap:se.t9}),ce=n(29945),ue=n(47974),de=n(99670),pe=n(80184),fe=function(){var e=(0,p.TL)(),t=(0,a.useState)(0),n=(0,i.Z)(t,2),P=n[0],w=n[1],E=(0,a.useState)(null),O=(0,i.Z)(E,2),C=O[0],F=O[1],T=(0,a.useState)(!0),D=(0,i.Z)(T,2),K=D[0],I=D[1],N=(0,a.useState)(null),R=(0,i.Z)(N,2),L=R[0],M=R[1],B=(0,a.useState)(!0),_=(0,i.Z)(B,2),$=_[0],G=_[1],q=(0,a.useState)(null),W=(0,i.Z)(q,2),z=W[0],H=W[1],V=(0,a.useState)(!0),U=(0,i.Z)(V,2),X=U[0],J=U[1],Q=(0,a.useState)(null),Y=(0,i.Z)(Q,2),ee=Y[0],te=Y[1],ne=(0,a.useState)(!0),re=(0,i.Z)(ne,2),ie=re[0],ae=re[1],se=(0,c.F)(u.C3,[u.Ft.KMS_STATUS]),fe=(0,c.F)(u.C3,[u.Ft.KMS_METRICS]),he=(0,c.F)(u.C3,[u.Ft.KMS_APIS]),me=(0,c.F)(u.C3,[u.Ft.KMS_Version]);(0,a.useEffect)((function(){I(!0)}),[]),(0,a.useEffect)((function(){K&&(se?l.Z.invoke("GET","/api/v1/kms/status").then((function(e){e&&F(e),I(!1)})).catch((function(t){e((0,d.Ih)(t)),I(!1)})):I(!1)),$&&(fe?l.Z.invoke("GET","/api/v1/kms/metrics").then((function(e){e&&M(e),G(!1)})).catch((function(t){e((0,d.Ih)(t)),G(!1)})):G(!1)),X&&(he?l.Z.invoke("GET","/api/v1/kms/apis").then((function(e){e&&H(e),J(!1)})).catch((function(t){e((0,d.Ih)(t)),J(!1)})):J(!1)),ie&&(me?l.Z.invoke("GET","/api/v1/kms/version").then((function(e){e&&te(e),ae(!1)})).catch((function(t){e((0,d.Ih)(t)),ae(!1)})):ae(!1))}),[e,se,K,fe,$,he,X,me,ie]);var ye=(0,pe.jsxs)(a.Fragment,{children:[(0,pe.jsx)(v.Z,{children:"Status"}),(0,pe.jsx)("br",{}),C&&(0,pe.jsx)(o.ZP,{container:!0,spacing:1,children:(0,pe.jsx)(o.ZP,{item:!0,xs:12,children:(0,pe.jsx)(s.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"2fr 1fr"},gridAutoFlow:{xs:"dense",sm:"row"},gap:2},children:(0,pe.jsxs)(s.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"2fr 1fr"},gridAutoFlow:{xs:"dense",sm:"row"},gap:2},children:[(0,pe.jsx)(y.Z,{label:"Name:",value:C.name}),ee&&(0,pe.jsx)(y.Z,{label:"Version:",value:ee.version}),(0,pe.jsx)(y.Z,{label:"Default Key ID:",value:C.defaultKeyID}),(0,pe.jsx)(y.Z,{label:"Key Management Service Endpoints:",value:(0,pe.jsx)(a.Fragment,{children:C.endpoints.map((function(e,t){return(0,pe.jsx)(x.Z,{icon:"online"===e.status?(0,pe.jsx)(ce.E31,{}):(0,pe.jsx)(ce.dRf,{}),label:e.url},t)}))})})]})})})})]}),ve=(0,pe.jsxs)(a.Fragment,{children:[(0,pe.jsx)(v.Z,{children:"Supported API endpoints"}),(0,pe.jsx)("br",{}),z&&(0,pe.jsx)(o.ZP,{container:!0,spacing:1,children:(0,pe.jsx)(o.ZP,{item:!0,xs:12,children:(0,pe.jsx)(y.Z,{label:"",value:(0,pe.jsx)(s.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"2fr 1fr"},gridAutoFlow:{xs:"dense",sm:"row"},gap:2},children:z.results.map((function(e,t){return(0,pe.jsx)(x.Z,{icon:(0,pe.jsx)(ce.E31,{}),label:"".concat(e.path," - ").concat(e.method)},t)}))})})})})]}),xe=(0,pe.jsx)(a.Fragment,{children:L&&(0,pe.jsxs)(a.Fragment,{children:[(0,pe.jsx)("h3",{children:"API Requests"}),(0,pe.jsxs)(b.v,{width:730,height:250,data:[{label:"Success",success:L.requestOK},{label:"Failures",failures:L.requestFail},{label:"Errors",errors:L.requestErr},{label:"Active",active:L.requestActive}],children:[(0,pe.jsx)(g.q,{strokeDasharray:"3 3"}),(0,pe.jsx)(j.K,{dataKey:"label"}),(0,pe.jsx)(A.B,{}),(0,pe.jsx)(k.u,{}),(0,pe.jsx)(S.D,{}),(0,pe.jsx)(Z.$,{dataKey:"success",fill:"green"}),(0,pe.jsx)(Z.$,{dataKey:"failures",fill:"red"}),(0,pe.jsx)(Z.$,{dataKey:"errors",fill:"black"}),(0,pe.jsx)(Z.$,{dataKey:"active",fill:"#8884d8"})]}),(0,pe.jsx)("h3",{children:"Events"}),(0,pe.jsxs)(b.v,{width:730,height:250,data:[{label:"Audit",audit:L.auditEvents},{label:"Errors",errors:L.errorEvents}],children:[(0,pe.jsx)(g.q,{strokeDasharray:"3 3"}),(0,pe.jsx)(j.K,{dataKey:"label"}),(0,pe.jsx)(A.B,{}),(0,pe.jsx)(k.u,{}),(0,pe.jsx)(S.D,{}),(0,pe.jsx)(Z.$,{dataKey:"audit",fill:"green"}),(0,pe.jsx)(Z.$,{dataKey:"errors",fill:"black"})]}),(0,pe.jsx)("h3",{children:"Latency Histogram"}),L.latencyHistogram&&(0,pe.jsxs)(le,{width:730,height:250,data:L.latencyHistogram.map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{duration:"".concat(e.duration/1e6,"ms")})})),margin:{top:5,right:30,left:20,bottom:5},children:[(0,pe.jsx)(g.q,{strokeDasharray:"3 3"}),(0,pe.jsx)(j.K,{dataKey:"duration"}),(0,pe.jsx)(A.B,{}),(0,pe.jsx)(k.u,{}),(0,pe.jsx)(S.D,{}),(0,pe.jsx)(oe,{type:"monotone",dataKey:"total",stroke:"#8884d8",name:"Requests that took T ms or less"})]})]})});return(0,a.useEffect)((function(){e((0,d.Sc)("kms_status"))}),[]),(0,pe.jsxs)(a.Fragment,{children:[(0,pe.jsx)(ue.Z,{label:"Key Management Service",actions:(0,pe.jsx)(de.Z,{})}),(0,pe.jsxs)(ce.Xgh,{children:[(0,pe.jsxs)(f.Z,{value:P,onChange:function(e,t){w(t)},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:[(0,pe.jsx)(h.Z,{label:"Status",id:"simple-tab-0","aria-controls":"simple-tabpanel-0"}),(0,pe.jsx)(h.Z,{label:"APIs",id:"simple-tab-1","aria-controls":"simple-tabpanel-1"}),(0,pe.jsx)(h.Z,{label:"Metrics",id:"simple-tab-2","aria-controls":"simple-tabpanel-2",onClick:function(){}})]}),(0,pe.jsx)(m.x,{index:0,value:P,children:(0,pe.jsx)(s.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:ye})}),(0,pe.jsx)(m.x,{index:1,value:P,children:(0,pe.jsx)(s.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:ve})}),(0,pe.jsx)(m.x,{index:2,value:P,children:(0,pe.jsx)(s.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"43px"},children:xe})})]})]})}},1582:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(4942),i=n(63366),a=n(87462),o=n(72791),s=n(28182),l=n(82466),c=n(94419),u=n(21217),d=(0,n(44046).ZP)(),p=n(86083),f=n(78519),h=n(85080),m=n(51184),y=n(45682),v=n(80184),x=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,h.Z)(),g=d("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function j(e){return(0,p.Z)({props:e,name:"MuiStack",defaultTheme:b})}function A(e,t){var n=o.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,i){return e.push(r),i<n.length-1&&e.push(o.cloneElement(t,{key:"separator-".concat(i)})),e}),[])}var k=function(e){var t=e.ownerState,n=e.theme,i=(0,a.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:n},(0,m.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,y.hB)(n),s=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),c=(0,m.P$)({values:t.direction,base:s}),u=(0,m.P$)({values:t.spacing,base:s});"object"===typeof c&&Object.keys(c).forEach((function(e,t,n){if(!c[e]){var r=t>0?c[n[t-1]]:"column";c[e]=r}}));i=(0,l.Z)(i,(0,m.k9)({theme:n},u,(function(e,n){return t.useFlexGap?{gap:(0,y.NA)(o,e)}:{"& > :not(style) + :not(style)":(0,r.Z)({margin:0},"margin".concat((i=n?c[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i])),(0,y.NA)(o,e))};var i})))}return i=(0,m.dt)(n.breakpoints,i)};var S=n(66934),Z=n(31402),P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?g:t,r=e.useThemeProps,l=void 0===r?j:r,d=e.componentName,p=void 0===d?"MuiStack":d,h=n(k),m=o.forwardRef((function(e,t){var n=l(e),r=(0,f.Z)(n),o=r.component,d=void 0===o?"div":o,m=r.direction,y=void 0===m?"column":m,b=r.spacing,g=void 0===b?0:b,j=r.divider,k=r.children,S=r.className,Z=r.useFlexGap,P=void 0!==Z&&Z,w=(0,i.Z)(r,x),E={direction:y,spacing:g,useFlexGap:P},O=(0,c.Z)({root:["root"]},(function(e){return(0,u.Z)(p,e)}),{});return(0,v.jsx)(h,(0,a.Z)({as:d,ownerState:E,ref:t,className:(0,s.Z)(O.root,S)},w,{children:j?A(k,j):k}))}));return m}({createStyledComponent:(0,S.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,Z.Z)({props:e,name:"MuiStack"})}}),w=P},38725:function(e,t,n){n.d(t,{v:function(){return l}});var r=n(625),i=n(57702),a=n(90466),o=n(12891),s=n(93137),l=(0,r.z)({chartName:"BarChart",GraphicalChild:i.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:a.K},{axisType:"yAxis",AxisComp:o.B}],formatAxisMap:s.t9})}}]);
|
|
//# sourceMappingURL=5661.e251dbd7.chunk.js.map
|