"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[9772],{54716:function(e,n,a){var t=a(57223),r=a(537),s=a(73130),i=a(11927),o=a(4481),c=a(26211),l=a(9385),d=a(38422),m=a(17398),p=a(70783),u=a(18054),h={toggleList:m.kQ},x=(0,r.$j)((function(e){return{sidebarOpen:e.system.sidebarOpen,operatorMode:e.system.operatorMode,managerObjects:e.objectBrowser.objectManager.objectsToManage,features:e.console.session.features}}),h);n.Z=x((0,o.Z)((function(e){return(0,i.Z)({headerContainer:{width:"100%",minHeight:79,display:"flex",backgroundColor:"#fff",left:0,boxShadow:"rgba(0,0,0,.08) 0 3px 10px"},label:{display:"flex",justifyContent:"flex-start",alignItems:"center"},labelStyle:{color:"#000",fontSize:18,fontWeight:700,marginLeft:34,marginTop:8},rightMenu:{textAlign:"right"},logo:{marginLeft:34,fill:e.palette.primary.main,"& .min-icon":{width:120}},middleComponent:{display:"flex",justifyContent:"center",alignItems:"center"}})}))((function(e){var n=e.classes,a=e.label,r=e.actions,i=e.sidebarOpen,o=(e.operatorMode,e.managerObjects),m=e.toggleList,h=e.middleComponent;return e.features.includes("hide-menu")?(0,u.jsx)(t.Fragment,{}):(0,u.jsxs)(s.ZP,{container:!0,className:"".concat(n.headerContainer," page-header"),direction:"row",alignItems:"center",children:[(0,u.jsxs)(s.ZP,{item:!0,xs:12,sm:12,md:h?3:6,className:n.label,sx:{paddingTop:["15px","15px","0","0"]},children:[!i&&(0,u.jsx)("div",{className:n.logo,children:(0,u.jsx)(d.Z,{})}),(0,u.jsx)(c.Z,{variant:"h4",className:n.labelStyle,children:a})]}),h&&(0,u.jsx)(s.ZP,{item:!0,xs:12,sm:12,md:6,className:n.middleComponent,sx:{marginTop:["10px","10px","0","0"]},children:h}),(0,u.jsxs)(s.ZP,{item:!0,xs:12,sm:12,md:h?3:6,className:n.rightMenu,children:[r&&r,o&&o.length>0&&(0,u.jsx)(l.Z,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){m()},size:"large",children:(0,u.jsx)(p.gx,{})})]})]})})))},59772:function(e,n,a){a.r(n);var t=a(77439),r=a(49058),s=a(57223),i=a(11927),o=a(4481),c=a(52736),l=a(95492),d=a(9385),m=a(47178),p=a(54716),u=a(70466),h=a(58509),x=a(47939),f=a(39912),g=a(18054);n.default=(0,o.Z)((function(e){return(0,i.Z)((0,r.Z)({breadcrumLink:{textDecoration:"none",color:"black"},iframeStyle:{border:0,position:"absolute",height:"calc(100vh - 77px)",width:"100%"},divContainer:{position:"absolute",left:0,top:80,height:"calc(100vh - 81px)",width:"100%"},loader:{width:100,margin:"auto",marginTop:80},pageHeader:{borderBottom:"1px solid #dedede"}},(0,u.Bz)(e.spacing(4))))}))((function(e){var n=e.classes,a=e.match,r=(0,s.useState)(!0),i=(0,t.Z)(r,2),o=i[0],u=i[1],j=a.params.tenantName,b=a.params.tenantNamespace,Z=s.useRef(null);return(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(l.Z,{className:n.pageHeader,children:(0,g.jsx)(p.Z,{label:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(c.rU,{to:"/tenants",className:n.breadcrumLink,children:"Tenants"})," > ",(0,g.jsx)(c.rU,{to:"/namespaces/".concat(b,"/tenants/").concat(j),className:n.breadcrumLink,children:a.params.tenantName})," > Management"]}),actions:(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(d.Z,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){if(null!==Z&&null!==Z.current&&null!==Z.current.contentDocument){var e=Z.current.contentDocument.location.toString(),n="&";if(e.indexOf("?")<0&&(n="?"),e.indexOf("cp=y")<0){var a="".concat(e).concat(n,"cp=y");Z.current.contentDocument.location.replace(a)}else Z.current.contentDocument.location.reload()}},size:"large",children:(0,g.jsx)(f.default,{})}),(0,g.jsx)(d.Z,{color:"primary","aria-label":"Refresh List",component:"span",onClick:function(){x.Z.push("/namespaces/".concat(b,"/tenants/").concat(j))},size:"large",children:(0,g.jsx)(h.Z,{})})]})})}),(0,g.jsxs)("div",{className:n.divContainer,children:[o&&(0,g.jsx)("div",{className:n.loader,children:(0,g.jsx)(m.Z,{})}),(0,g.jsx)("iframe",{ref:Z,className:n.iframeStyle,title:"metrics",src:"/api/proxy/".concat(b,"/").concat(j,"/?cp=y"),onLoad:function(e){u(!1)}})]})]})}))},58509:function(e,n,a){var t=a(16060);n.Z=void 0;var r=t(a(92572)),s=a(18054),i=(0,r.default)((0,s.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");n.Z=i}}]);
//# sourceMappingURL=9772.d0feef32.chunk.js.map