"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[5608],{24298:function(e,n,t){t.r(n);var r=t(29439),a=t(1413),o=t(72791),s=t(60364),i=t(11135),c=t(25787),u=t(87995),l=t(23814),Z=t(81207),d=t(39281),f=t(10703),h=t(79836),p=t(56890),m=t(35855),v=t(53994),x=t(53382),j=t(16871),b=t(25469),T=t(80184);n.default=(0,c.Z)((function(e){return(0,i.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({tableWrapper:{height:"450px"}},l.OR),l.qg),l.VX),(0,l.Bz)(e.spacing(4))))}))((function(e){var n=e.classes,t=(0,b.TL)(),a=(0,j.UO)(),i=a.tenantName,c=a.tenantNamespace,l=(0,s.v9)((function(e){return e.tenants.loadingTenant})),g=(0,o.useState)(!0),N=(0,r.Z)(g,2),w=N[0],M=N[1],R=(0,o.useState)([""]),S=(0,r.Z)(R,1)[0],C=(0,o.useState)([""]),k=(0,r.Z)(C,1)[0],E=(0,o.useState)([""]),H=(0,r.Z)(E,1)[0];return(0,o.useEffect)((function(){l&&M(!0)}),[l]),(0,o.useEffect)((function(){w&&Z.Z.invoke("GET","/api/v1/namespaces/".concat(c||"","/tenants/").concat(i||"","/csr")).then((function(e){for(var n=0;n<e.csrElement.length;n++){var t=e.csrElement[n];S.push(t.status),k.push(t.name),H.push(t.annotations)}M(!1)})).catch((function(e){t((0,u.Ih)(e))}))}),[w,c,i,H,k,S,t]),(0,T.jsxs)(o.Fragment,{children:[(0,T.jsx)("h1",{className:n.sectionTitle,children:"Certificate Signing Requests"}),(0,T.jsx)(d.Z,{component:f.Z,children:(0,T.jsxs)(h.Z,{"aria-label":"collapsible table",children:[(0,T.jsx)(p.Z,{children:(0,T.jsxs)(m.Z,{children:[(0,T.jsx)(v.Z,{children:"Name"}),(0,T.jsx)(v.Z,{children:"Status"}),(0,T.jsx)(v.Z,{children:"Annotation"}),(0,T.jsx)(v.Z,{})]})}),(0,T.jsx)(x.Z,{children:(0,T.jsxs)(m.Z,{children:[(0,T.jsx)(v.Z,{children:k.map((function(e){return(0,T.jsx)("p",{children:e})}))}),(0,T.jsx)(v.Z,{children:S.map((function(e){return(0,T.jsx)("p",{children:e})}))}),(0,T.jsx)(v.Z,{children:H.map((function(e){return(0,T.jsx)("p",{children:e})}))})]})})]})})]})}))},39281:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(87462),a=t(63366),o=t(72791),s=t(28182),i=t(94419),c=t(31402),u=t(66934),l=t(21217);function Z(e){return(0,l.Z)("MuiTableContainer",e)}(0,t(75878).Z)("MuiTableContainer",["root"]);var d=t(80184),f=["className","component"],h=(0,u.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:function(e,n){return n.root}})({width:"100%",overflowX:"auto"}),p=o.forwardRef((function(e,n){var t=(0,c.Z)({props:e,name:"MuiTableContainer"}),o=t.className,u=t.component,l=void 0===u?"div":u,p=(0,a.Z)(t,f),m=(0,r.Z)({},t,{component:l}),v=function(e){var n=e.classes;return(0,i.Z)({root:["root"]},Z,n)}(m);return(0,d.jsx)(h,(0,r.Z)({ref:n,as:l,className:(0,s.Z)(v.root,o),ownerState:m},p))}))},56890:function(e,n,t){t.d(n,{Z:function(){return x}});var r=t(87462),a=t(63366),o=t(72791),s=t(28182),i=t(94419),c=t(829),u=t(31402),l=t(66934),Z=t(21217);function d(e){return(0,Z.Z)("MuiTableHead",e)}(0,t(75878).Z)("MuiTableHead",["root"]);var f=t(80184),h=["className","component"],p=(0,l.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,n){return n.root}})({display:"table-header-group"}),m={variant:"head"},v="thead",x=o.forwardRef((function(e,n){var t=(0,u.Z)({props:e,name:"MuiTableHead"}),o=t.className,l=t.component,Z=void 0===l?v:l,x=(0,a.Z)(t,h),j=(0,r.Z)({},t,{component:Z}),b=function(e){var n=e.classes;return(0,i.Z)({root:["root"]},d,n)}(j);return(0,f.jsx)(c.Z.Provider,{value:m,children:(0,f.jsx)(p,(0,r.Z)({as:Z,className:(0,s.Z)(b.root,o),ref:n,role:Z===v?null:"rowgroup",ownerState:j},x))})}))}}]);
//# sourceMappingURL=5608.bf0a4f01.chunk.js.map