Files
openmaxio-object-browser/portal-ui/build/static/js/1275.772f5972.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
119 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1275],{37798:function(e,n,t){t.r(n),t.d(n,{default:function(){return Z}});var r=t(1413),a=t(72791),i=t(26181),s=t.n(i),o=t(75952),l=t(11135),c=t(25787),u=t(56028),d=t(61889),m=t(77196),f=t(63466),x=t(78029),h=t.n(x),p=t(23814),g=t(27454),v=t(80184),y=(0,c.Z)((function(e){return(0,l.Z)({container:{display:"flex",flexFlow:"column",padding:"20px 0 8px 0"},inputWithCopy:{"& .MuiInputBase-root ":{width:"100%",background:"#FBFAFA","& .MuiInputBase-input":{height:".8rem"},"& .MuiInputAdornment-positionEnd":{marginRight:".5rem","& .MuiButtonBase-root":{height:"2rem"}}},"& .MuiButtonBase-root .min-icon":{width:".8rem",height:".8rem"}},inputLabel:(0,r.Z)((0,r.Z)({},p.YI.inputLabel),{},{fontSize:".8rem"})})}))((function(e){var n=e.label,t=void 0===n?"":n,r=e.value,a=void 0===r?"":r,i=e.classes,s=void 0===i?{}:i;return(0,v.jsxs)("div",{className:s.container,children:[(0,v.jsxs)("div",{className:s.inputLabel,children:[t,":"]}),(0,v.jsx)("div",{className:s.inputWithCopy,children:(0,v.jsx)(m.Z,{value:a,readOnly:!0,endAdornment:(0,v.jsx)(f.Z,{position:"end",children:(0,v.jsx)(g.Z,{tooltip:"Copy",children:(0,v.jsx)(h(),{text:a,children:(0,v.jsx)(o.zxk,{id:"copy-clipboard","aria-label":"copy",onClick:function(){},onMouseDown:function(){},style:{width:"28px",height:"28px",padding:"0px"},icon:(0,v.jsx)(o.TIy,{})})})})})})})]})})),j=function(e,n){var t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+n),t.setAttribute("download",e),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},Z=(0,c.Z)((function(e){return(0,l.Z)({warningBlock:{color:"red",fontSize:".85rem",margin:".5rem 0 .5rem 0",display:"flex",alignItems:"center","& svg ":{marginRight:".3rem",height:16,width:16}},credentialTitle:{padding:".8rem 0 0 0",fontWeight:600,fontSize:".9rem"},buttonContainer:{display:"flex",justifyContent:"flex-end",marginTop:"1rem"},credentialsPanel:{overflowY:"auto",maxHeight:350},promptTitle:{display:"flex",alignItems:"center"},buttonSpacer:{marginRight:".9rem"}})}))((function(e){var n=e.classes,t=e.newServiceAccount,i=e.open,l=e.closeModal,c=e.entity;if(!t)return null;var m=s()(t,"console",null),f=s()(t,"idp",!1);return(0,v.jsx)(u.Z,{modalOpen:i,onClose:function(){l()},title:(0,v.jsx)("div",{className:n.promptTitle,children:(0,v.jsxs)("div",{children:["New ",c," Created"]})}),titleIcon:(0,v.jsx)(o.tVY,{}),children:(0,v.jsxs)(d.ZP,{container:!0,children:[(0,v.jsxs)(d.ZP,{item:!0,xs:12,className:n.formScrollable,children:["A new ",c," has been created with the following details:",!f&&m&&(0,v.jsx)(a.Fragment,{children:(0,v.jsxs)(d.ZP,{item:!0,xs:12,className:n.credentialsPanel,children:[(0,v.jsx)("div",{className:n.credentialTitle,children:"Console Credentials"}),Array.isArray(m)&&m.map((function(e,n){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y,{label:"Access Key",value:e.accessKey}),(0,v.jsx)(y,{label:"Secret Key",value:e.secretKey})]})})),!Array.isArray(m)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y,{label:"Access Key",value:m.accessKey}),(0,v.jsx)(y,{label:"Secret Key",value:m.secretKey})]})]})}),(null===m||void 0===m)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(y,{label:"Access Key",value:t.accessKey||""}),(0,v.jsx)(y,{label:"Secret Key",value:t.secretKey||""})]}),f?(0,v.jsx)("div",{className:n.warningBlock,children:"Please Login via the configured external identity provider."}):(0,v.jsxs)("div",{className:n.warningBlock,children:[(0,v.jsx)(o.e6P,{}),(0,v.jsx)("span",{children:"Write these down, as this is the only time the secret will be displayed."})]})]}),(0,v.jsx)(d.ZP,{item:!0,xs:12,className:n.buttonContainer,children:!f&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(g.Z,{tooltip:"Download credentials in a JSON file formatted for import using mc alias import. This will only include the default login credentials.",children:(0,v.jsx)(o.zxk,{id:"download-button",label:"Download for import",className:n.buttonSpacer,onClick:function(){var e={};m?e=Array.isArray(m)?m.map((function(e){return{url:e.url,accessKey:e.accessKey,secretKey:e.secretKey,api:"s3v4",path:"auto"}}))[0]:{url:m.url,accessKey:m.accessKey,secretKey:m.secretKey,api:"s3v4",path:"auto"}:e={url:t.url,accessKey:t.accessKey,secretKey:t.secretKey,api:"s3v4",path:"auto"};j("credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,v.jsx)(o._8t,{}),variant:"callAction"})}),Array.isArray(m)&&m.length>1&&(0,v.jsx)(g.Z,{tooltip:"Download all access credentials to a JSON file. NOTE: This file is not formatted for import using mc alias import. If you plan to import this alias from the file, please use the Download for Import button. ",children:(0,v.jsx)(o.zxk,{id:"download-all-button",label:"Download all access credentials",className:n.buttonSpacer,onClick:function(){var e={};m&&Array.isArray(m)&&m.length>1&&(e=m.map((function(e){return{accessKey:e.accessKey,secretKey:e.secretKey}})));j("all_credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,v.jsx)(o._8t,{}),variant:"callAction",color:"primary"})})]})})]})})}))},92217:function(e,n,t){var r=t(1413),a=t(72791),i=t(61889),s=t(30829),o=t(20068),l=t(64554),c=t(11135),u=t(25787),d=t(75952),m=t(23814),f=t(78029),x=t.n(f),h=t(60655),p=t(27454),g=t(80184);n.Z=(0,u.Z)((function(e){return(0,c.Z)((0,r.Z)({},m.YI))}))((function(e){var n=e.value,t=e.label,r=void 0===t?"":t,c=e.tooltip,u=void 0===c?"":c,m=e.mode,f=void 0===m?"json":m,v=e.classes,y=e.onBeforeChange,j=(e.readOnly,e.editorHeight),Z=void 0===j?"250px":j;return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsx)(i.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,g.jsxs)(s.Z,{className:v.inputLabel,children:[(0,g.jsx)("span",{children:r}),""!==u&&(0,g.jsx)("div",{className:v.tooltipContainer,children:(0,g.jsx)(o.Z,{title:u,placement:"top-start",children:(0,g.jsx)("div",{className:v.tooltip,children:(0,g.jsx)(d.byK,{})})})})]})}),(0,g.jsx)(i.ZP,{item:!0,xs:12,style:{maxHeight:Z,overflow:"auto",border:"1px solid #eaeaea"},children:(0,g.jsx)(h.Z,{value:n,language:f,onChange:function(e){y(null,null,e.target.value)},id:"code_wrapper",padding:15,style:{fontSize:12,backgroundColor:"#fefefe",fontFamily:"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",minHeight:Z||"initial",color:"#000000"}})}),(0,g.jsx)(i.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,g.jsx)(l.Z,{sx:{display:"flex",alignItems:"center",padding:"2px",paddingRight:"5px",justifyContent:"flex-end","& button":{height:"26px",width:"26px",padding:"2px"," .min-icon":{marginLeft:"0"}}},children:(0,g.jsx)(p.Z,{tooltip:"Copy to Clipboard",children:(0,g.jsx)(x(),{text:n,children:(0,g.jsx)(d.zxk,{type:"button",id:"copy-code-mirror",icon:(0,g.jsx)(d.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},54639:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(29439),a=t(1413),i=t(72791),s=t(26181),o=t.n(s),l=t(61889),c=t(30829),u=t(20068),d=t(13400),m=t(99663),f=t(86711),x=t(11135),h=t(25787),p=t(23814),g=t(75952),v=t(22512),y=t(80184),j=(0,h.Z)((function(e){return(0,x.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},p.YI),p.Hr),{},{valueString:{maxWidth:350,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginTop:2},fileInputField:{margin:"13px 0","@media (max-width: 900px)":{flexFlow:"column"}}},p.bV),{},{inputLabel:(0,a.Z)((0,a.Z)({},p.YI.inputLabel),{},{fontWeight:"normal"}),textBoxContainer:(0,a.Z)((0,a.Z)({},p.YI.textBoxContainer),{},{maxWidth:"100%",border:"1px solid #eaeaea",paddingLeft:"15px"})}))}))((function(e){var n=e.label,t=e.classes,a=e.onChange,s=e.id,x=e.name,h=e.disabled,p=void 0!==h&&h,j=e.tooltip,Z=void 0===j?"":j,C=e.required,b=e.error,_=void 0===b?"":b,S=e.accept,N=void 0===S?"":S,A=e.value,T=void 0===A?"":A,P=(0,i.useState)(!1),I=(0,r.Z)(P,2),k=I[0],w=I[1];return(0,y.jsx)(i.Fragment,{children:(0,y.jsxs)(l.ZP,{item:!0,xs:12,className:"".concat(t.fileInputField," ").concat(t.fieldBottom," ").concat(t.fieldContainer," ").concat(""!==_?t.errorInField:""),children:[""!==n&&(0,y.jsxs)(c.Z,{htmlFor:s,className:"".concat(""!==_?t.fieldLabelError:""," ").concat(t.inputLabel),children:[(0,y.jsxs)("span",{children:[n,C?"*":""]}),""!==Z&&(0,y.jsx)("div",{className:t.tooltipContainer,children:(0,y.jsx)(u.Z,{title:Z,placement:"top-start",children:(0,y.jsx)("div",{className:t.tooltip,children:(0,y.jsx)(g.byK,{})})})})]}),k||""===T?(0,y.jsxs)("div",{className:t.textBoxContainer,children:[(0,y.jsx)("input",{type:"file",name:x,onChange:function(e){var n=o()(e,"target.files[0].name","");!function(e,n){var t=e.target.files[0],r=new FileReader;r.readAsDataURL(t),r.onload=function(){var e=r.result;if(e){var t=e.toString().split("base64,");2===t.length&&n(t[1])}}}(e,(function(e){a(e,n)}))},accept:N,required:C,disabled:p,className:t.fileInputField}),""!==T&&(0,y.jsx)(d.Z,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){w(!1)},disableRipple:!1,disableFocusRipple:!1,size:"small",children:(0,y.jsx)(f.Z,{})}),""!==_&&(0,y.jsx)(v.Z,{errorMessage:_})]}):(0,y.jsxs)("div",{className:t.fileReselect,children:[(0,y.jsx)("div",{className:t.valueString,children:T}),(0,y.jsx)(d.Z,{color:"primary","aria-label":"upload picture",component:"span",onClick:function(){w(!0)},disableRipple:!1,disableFocusRipple:!1,size:"small",children:(0,y.jsx)(m.Z,{})})]})]})})}))},13871:function(e,n,t){var r,a=t(30168),i=(0,t(26088).Z)("hr")(r||(r=(0,a.Z)(["\n border-top: 0;\n border-left: 0;\n border-right: 0;\n border-color: #999999;\n background-color: transparent;\n"])));n.Z=i},45997:function(e,n,t){t.r(n),t.d(n,{default:function(){return Qe}});var r=t(29439),a=t(1413),i=t(72791),s=t(26181),o=t.n(s),l=t(78687),c=t(61889),u=t(40986),d=t(11135),m=t(23814),f=t(28371),x=t(25469),h=t(93433),p=t(25787),g=t(35527),v=t(13400),y=t(94721),j=t(84741),Z=t(40968),C=t(37516),b=t(21435),_=t(42419),S=t(75952),N=t(76773),A=t(90673),T=t(80007),P=t(80184),I=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({configSectionItem:{marginRight:15,marginBottom:15,"& .multiContainer":{border:"1px solid red"}},tenantCustomizationFields:{marginLeft:30,width:"88%",margin:"auto"},containerItem:{marginRight:15},fieldGroup:(0,a.Z)((0,a.Z)({},m.QV.fieldGroup),{},{paddingTop:15,marginBottom:25}),responsiveSectionItem:{"@media (max-width: 900px)":{flexFlow:"column",alignItems:"flex-start","& div > div":{marginBottom:5,marginRight:0}}},wrapperContainer:{display:"flex",marginBottom:15},envVarRow:{display:"flex",alignItems:"center",justifyContent:"flex-start","&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1,"& div label":{minWidth:50}}},fileItem:{marginRight:10,display:"flex","& div label":{minWidth:50},"@media (max-width: 900px)":{flexFlow:"column"}},rowActions:{display:"flex",justifyContent:"flex-end","@media (max-width: 900px)":{flex:1}},overlayAction:{marginLeft:10,"& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}}},m.oO),m.AK),m.DF))}))((function(e){var n=e.classes,t=(0,x.TL)(),s=(0,l.v9)((function(e){return e.createTenant.fields.configure.exposeMinIO})),o=(0,l.v9)((function(e){return e.createTenant.fields.configure.exposeConsole})),u=(0,l.v9)((function(e){return e.createTenant.fields.configure.setDomains})),d=(0,l.v9)((function(e){return e.createTenant.fields.configure.consoleDomain})),m=(0,l.v9)((function(e){return e.createTenant.fields.configure.minioDomains})),f=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantCustom})),p=(0,l.v9)((function(e){return e.createTenant.fields.configure.envVars})),I=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),k=(0,l.v9)((function(e){return e.createTenant.fields.configure.customRuntime})),w=(0,l.v9)((function(e){return e.createTenant.fields.configure.runtimeClassName})),R=(0,i.useState)({}),F=(0,r.Z)(R,2),D=F[0],G=F[1],K=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];if(f&&(e=[].concat((0,h.Z)(e),[{fieldKey:"tenant_securityContext_runAsUser",required:!0,value:I.runAsUser,customValidation:""===I.runAsUser||parseInt(I.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"tenant_securityContext_runAsGroup",required:!0,value:I.runAsGroup,customValidation:""===I.runAsGroup||parseInt(I.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"tenant_securityContext_fsGroup",required:!0,value:I.fsGroup,customValidation:""===I.fsGroup||parseInt(I.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}])),u){var n=m.map((function(e,n){return{fieldKey:"minio-domain-".concat(n.toString()),required:!1,value:e,pattern:/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?$/,customPatternMessage:"MinIO domain is not in the form of http|https://subdomain.domain"}}));e=[].concat((0,h.Z)(e),(0,h.Z)(n),[{fieldKey:"console_domain",required:!1,value:d,pattern:/^(https?):\/\/([a-zA-Z0-9\-.]+)(:[0-9]+)?(\/[a-zA-Z0-9\-./]*)?$/,customPatternMessage:"Console domain is not in the form of http|https://subdomain.domain:port/subpath1/subpath2"}])}var r=(0,Z.R)(e);t((0,N.NO)({pageName:"configure",valid:0===Object.keys(r).length})),G(r)}),[t,f,I,u,d,m]);var E=function(e){G((0,j.he)(D,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Configure"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Basic configurations for tenant management"})]}),(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)("h4",{className:n.h3Section,children:"Services"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Whether the tenant's services should request an external IP via LoadBalancer service type."})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)(C.Z,{value:"expose_minio",id:"expose_minio",name:"expose_minio",checked:s,onChange:function(e){var n=e.target.checked;K("exposeMinIO",n)},label:"Expose MinIO Service"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)(C.Z,{value:"expose_console",id:"expose_console",name:"expose_console",checked:o,onChange:function(e){var n=e.target.checked;K("exposeConsole",n)},label:"Expose Console Service"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)(C.Z,{value:"custom_domains",id:"custom_domains",name:"custom_domains",checked:u,onChange:function(e){var n=e.target.checked;K("setDomains",n)},label:"Set Custom Domains"})}),u&&(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.tenantCustomizationFields,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Custom Domains for MinIO"}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:[(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)(b.Z,{id:"console_domain",name:"console_domain",onChange:function(e){K("consoleDomain",e.target.value),E("tenant_securityContext_runAsUser")},label:"Console Domain",value:d,placeholder:"Eg. http://subdomain.domain:port/subpath1/subpath2",error:D.console_domain||""})}),(0,P.jsxs)("div",{children:[(0,P.jsx)("h4",{children:"MinIO Domains"}),(0,P.jsx)("div",{className:"".concat(n.responsiveSectionItem),children:m.map((function(e,r){return(0,P.jsxs)("div",{className:"".concat(n.containerItem," ").concat(n.wrapperContainer),children:[(0,P.jsx)(b.Z,{id:"minio-domain-".concat(r.toString()),name:"minio-domain-".concat(r.toString()),onChange:function(e){!function(e,n){var t=(0,h.Z)(m);t[n]=e,K("minioDomains",t)}(e.target.value,r)},label:"MinIO Domain ".concat(r+1),value:e,placeholder:"Eg. http://subdomain.domain",error:D["minio-domain-".concat(r.toString())]||""}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){return t((0,N.x_)())},disabled:r!==m.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){return t((0,N.JL)(r))},disabled:m.length<=1,children:(0,P.jsx)(S.HFL,{})})})]},"minio-domain-key-".concat(r.toString()))}))})]})]})]})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)(C.Z,{value:"tenantConfig",id:"tenant_configuration",name:"tenant_configuration",checked:f,onChange:function(e){var n=e.target.checked;K("tenantCustom",n)},label:"Security Context"})}),f&&(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.tenantCustomizationFields,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for MinIO"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)(b.Z,{type:"number",id:"tenant_securityContext_runAsUser",name:"tenant_securityContext_runAsUser",onChange:function(e){K("tenantSecurityContext",(0,a.Z)((0,a.Z)({},I),{},{runAsUser:e.target.value})),E("tenant_securityContext_runAsUser")},label:"Run As User",value:I.runAsUser,required:!0,error:D.tenant_securityContext_runAsUser||"",min:"0"})}),(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)(b.Z,{type:"number",id:"tenant_securityContext_runAsGroup",name:"tenant_securityContext_runAsGroup",onChange:function(e){K("tenantSecurityContext",(0,a.Z)((0,a.Z)({},I),{},{runAsGroup:e.target.value})),E("tenant_securityContext_runAsGroup")},label:"Run As Group",value:I.runAsGroup,required:!0,error:D.tenant_securityContext_runAsGroup||"",min:"0"})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)(b.Z,{type:"number",id:"tenant_securityContext_fsGroup",name:"tenant_securityContext_fsGroup",onChange:function(e){K("tenantSecurityContext",(0,a.Z)((0,a.Z)({},I),{},{fsGroup:e.target.value})),E("tenant_securityContext_fsGroup")},label:"FsGroup",value:I.fsGroup,required:!0,error:D.tenant_securityContext_fsGroup||"",min:"0"})}),(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(A.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:I.fsGroupChangePolicy,onChange:function(e){K("tenantSecurityContext",(0,a.Z)((0,a.Z)({},I),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(C.Z,{value:"tenantSecurityContextRunAsNonRoot",id:"tenant_securityContext_runAsNonRoot",name:"tenant_securityContext_runAsNonRoot",checked:I.runAsNonRoot,onChange:function(e){var n=e.target.checked;K("tenantSecurityContext",(0,a.Z)((0,a.Z)({},I),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)(C.Z,{value:"customRuntime",id:"tenant_custom_runtime",name:"tenant_custom_runtime",checked:k,onChange:function(e){var n=e.target.checked;K("customRuntime",n)},label:"Custom Runtime Configurations"})}),k&&(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.tenantCustomizationFields,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Custom Runtime Configurations"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:(0,P.jsx)("div",{className:n.containerItem,children:(0,P.jsx)(b.Z,{id:"tenant_runtime_runtimeClassName",name:"tenant_runtime_runtimeClassName",onChange:function(e){K("runtimeClassName",e.target.value),E("tenant_runtime_runtimeClassName")},label:"Runtime Class Name",value:w,error:D.tenant_runtime_runtimeClassName||""})})})]})}),(0,P.jsx)(y.Z,{}),(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Additional Environment Variables"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Define additional environment variables to be used by your MinIO pods"})]}),(0,P.jsx)(c.ZP,{container:!0,children:p.map((function(e,r){return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:"".concat(n.formFieldRow," ").concat(n.envVarRow),children:[(0,P.jsx)(c.ZP,{item:!0,xs:5,className:n.fileItem,children:(0,P.jsx)(b.Z,{id:"env_var_key",name:"env_var_key",label:"Key",value:e.key,onChange:function(e){var n=(0,h.Z)(p);t((0,N.Ct)(n.map((function(n,t){return t===r?{key:e.target.value,value:n.value}:n}))))},index:r},"env_var_key_".concat(r.toString()))}),(0,P.jsx)(c.ZP,{item:!0,xs:5,className:n.fileItem,children:(0,P.jsx)(b.Z,{id:"env_var_value",name:"env_var_value",label:"Value",value:e.value,onChange:function(e){var n=(0,h.Z)(p);t((0,N.Ct)(n.map((function(n,t){return t===r?{key:n.key,value:e.target.value}:n}))))},index:r},"env_var_value_".concat(r.toString()))}),(0,P.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){var e=(0,h.Z)(p);e.push({key:"",value:""}),t((0,N.Ct)(e))},disabled:r!==p.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){var e=p.filter((function(e,n){return n!==r}));t((0,N.Ct)(e))},disabled:p.length<=1,children:(0,P.jsx)(S.HFL,{})})})]})]},"tenant-envVar-".concat(r.toString()))}))})]})})),k=t(83679),w=t(20890),R=t(20068),F=t(72455),D=t(27247),G=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({adUserDnRows:{display:"flex",marginBottom:10},buttonTray:{marginLeft:10,display:"flex",height:38,"& button":{background:"#EAEAEA"}},overlayAction:{marginLeft:10,"& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}}},m.QV),m.DF),m.oO),m.AK))})),K=function(){var e=(0,x.TL)(),n=G(),t=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.idpSelection})),a=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADURL})),s=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADSkipTLS})),o=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADServerInsecure})),u=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADGroupSearchBaseDN})),d=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADGroupSearchFilter})),m=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADUserDNs})),f=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADGroupDNs})),p=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADLookupBindDN})),g=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADLookupBindPassword})),y=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADUserDNSearchBaseDN})),S=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADUserDNSearchFilter})),A=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADServerStartTLS})),T=(0,i.useState)({}),I=(0,r.Z)(T,2),k=I[0],F=I[1],K=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"identityProvider",field:n,value:t}))}),[e]),E=function(e){F((0,j.he)(k,e))};return(0,i.useEffect)((function(){var n=[];"AD"===t&&(n=[].concat((0,h.Z)(n),[{fieldKey:"AD_URL",required:!0,value:a},{fieldKey:"ad_lookupBindDN",required:!0,value:p}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"identityProvider",valid:0===Object.keys(r).length})),F(r)}),[p,t,a,u,d,m,f,e]),(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"AD_URL",name:"AD_URL",onChange:function(e){K("ADURL",e.target.value),E("AD_URL")},label:"LDAP Server Address",value:a,placeholder:"ldap-server:636",error:k.AD_URL||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(C.Z,{value:"ad_skipTLS",id:"ad_skipTLS",name:"ad_skipTLS",checked:s,onChange:function(e){var n=e.target.checked;K("ADSkipTLS",n)},label:"Skip TLS Verification"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(C.Z,{value:"ad_serverInsecure",id:"ad_serverInsecure",name:"ad_serverInsecure",checked:o,onChange:function(e){var n=e.target.checked;K("ADServerInsecure",n)},label:"Server Insecure"})}),o?(0,P.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,P.jsx)(w.Z,{className:n.error,variant:"caption",display:"block",gutterBottom:!0,children:"Warning: All traffic with Active Directory will be unencrypted"}),(0,P.jsx)("br",{})]}):null,(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(C.Z,{value:"ad_serverStartTLS",id:"ad_serverStartTLS",name:"ad_serverStartTLS",checked:A,onChange:function(e){var n=e.target.checked;K("ADServerStartTLS",n)},label:"Start TLS connection to AD/LDAP server"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_lookupBindDN",name:"ad_lookupBindDN",onChange:function(e){K("ADLookupBindDN",e.target.value),E("ad_lookupBindDN")},label:"Lookup Bind DN",value:p,placeholder:"cn=admin,dc=min,dc=io",error:k.ad_lookupBindDN||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_lookupBindPassword",name:"ad_lookupBindPassword",onChange:function(e){K("ADLookupBindPassword",e.target.value)},label:"Lookup Bind Password",value:g,placeholder:"admin"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_userDNSearchBaseDN",name:"ad_userDNSearchBaseDN",onChange:function(e){K("ADUserDNSearchBaseDN",e.target.value)},label:"User DN Search Base DN",value:y,placeholder:"dc=min,dc=io"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_userDNSearchFilter",name:"ad_userDNSearchFilter",onChange:function(e){K("ADUserDNSearchFilter",e.target.value)},label:"User DN Search Filter",value:S,placeholder:"(sAMAcountName=%s)"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_groupSearchBaseDN",name:"ad_groupSearchBaseDN",onChange:function(e){K("ADGroupSearchBaseDN",e.target.value)},label:"Group Search Base DN",value:u,placeholder:"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"ad_groupSearchFilter",name:"ad_groupSearchFilter",onChange:function(e){K("ADGroupSearchFilter",e.target.value)},label:"Group Search Filter",value:d,placeholder:"(&(objectclass=groupOfNames)(member=%s))"})}),(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"List of user DNs (Distinguished Names) to be Tenant Administrators"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:m.map((function(t,r){return(0,P.jsx)(i.Fragment,{children:(0,P.jsxs)("div",{className:n.adUserDnRows,children:[(0,P.jsx)(b.Z,{id:"ad-userdn-".concat(r.toString()),label:"",placeholder:"",name:"ad-userdn-".concat(r.toString()),value:m[r],onChange:function(n){e((0,N.hK)({index:r,userDN:n.target.value})),E("ad-userdn-".concat(r.toString()))},index:r,error:k["ad-userdn-".concat(r.toString())]||""},"csv-ad-userdn-".concat(r.toString())),(0,P.jsxs)("div",{className:n.buttonTray,children:[(0,P.jsx)(R.Z,{title:"Add User","aria-label":"add",children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){e((0,N.Y$)())},children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)(R.Z,{title:"Remove","aria-label":"add",children:(0,P.jsx)(v.Z,{size:"small",style:{marginLeft:16},onClick:function(){m.length>1&&e((0,N.GU)(r))},children:(0,P.jsx)(D.Z,{})})})]})]})},"identityField-".concat(r.toString()))}))})]}),(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"List of group DNs (Distinguished Names) to be Tenant Administrators"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:f.map((function(t,r){return(0,P.jsx)(i.Fragment,{children:(0,P.jsxs)("div",{className:n.adUserDnRows,children:[(0,P.jsx)(b.Z,{id:"ad-groupdn-".concat(r.toString()),label:"",placeholder:"",name:"ad-groupdn-".concat(r.toString()),value:f[r],onChange:function(n){e((0,N.in)({index:r,userDN:n.target.value})),E("ad-groupdn-".concat(r.toString()))},index:r,error:k["ad-groupdn-".concat(r.toString())]||""},"csv-ad-groupdn-".concat(r.toString())),(0,P.jsxs)("div",{className:n.buttonTray,children:[(0,P.jsx)(R.Z,{title:"Add Group","aria-label":"add",children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){e((0,N.Fe)())},children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)(R.Z,{title:"Remove","aria-label":"add",children:(0,P.jsx)(v.Z,{size:"small",style:{marginLeft:16},onClick:function(){f.length>1&&e((0,N.Hu)(r))},children:(0,P.jsx)(D.Z,{})})})]})]})},"identityField-".concat(r.toString()))}))})]})]})},E=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({buttonTray:{marginLeft:10,display:"flex",height:38,"& button":{background:"#EAEAEA"}},overlayAction:{marginLeft:10,"& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}}},m.QV),m.DF),m.oO),m.AK))})),L=function(){var e=(0,x.TL)(),n=E(),t=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.idpSelection})),a=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDConfigurationURL})),s=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDClientID})),o=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDSecretID})),u=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDCallbackURL})),d=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDClaimName})),m=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.openIDScopes})),f=(0,i.useState)({}),p=(0,r.Z)(f,2),g=p[0],v=p[1],y=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"identityProvider",field:n,value:t}))}),[e]),C=function(e){v((0,j.he)(g,e))};return(0,i.useEffect)((function(){var n=[];"OpenID"===t&&(n=[].concat((0,h.Z)(n),[{fieldKey:"openID_CONFIGURATION_URL",required:!0,value:a},{fieldKey:"openID_clientID",required:!0,value:s},{fieldKey:"openID_secretID",required:!0,value:o},{fieldKey:"openID_claimName",required:!0,value:d}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"identityProvider",valid:0===Object.keys(r).length})),v(r)}),[t,s,o,a,d,e]),(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_CONFIGURATION_URL",name:"openID_CONFIGURATION_URL",onChange:function(e){y("openIDConfigurationURL",e.target.value),C("openID_CONFIGURATION_URL")},label:"Configuration URL",value:a,placeholder:"https://your-identity-provider.com/.well-known/openid-configuration",error:g.openID_CONFIGURATION_URL||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_clientID",name:"openID_clientID",onChange:function(e){y("openIDClientID",e.target.value),C("openID_clientID")},label:"Client ID",value:s,error:g.openID_clientID||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_secretID",name:"openID_secretID",onChange:function(e){y("openIDSecretID",e.target.value),C("openID_secretID")},label:"Secret ID",value:o,error:g.openID_secretID||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_callbackURL",name:"openID_callbackURL",onChange:function(e){y("openIDCallbackURL",e.target.value),C("openID_callbackURL")},label:"Callback URL",value:u,placeholder:"https://your-console-endpoint:9443/oauth_callback",error:g.openID_callbackURL||""})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_claimName",name:"openID_claimName",onChange:function(e){y("openIDClaimName",e.target.value),C("openID_claimName")},label:"Claim Name",value:d,error:g.openID_claimName||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"openID_scopes",name:"openID_scopes",onChange:function(e){y("openIDScopes",e.target.value),C("openID_scopes")},label:"Scopes",value:m})})]})},z=t(22918),O=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({buttonTray:{marginLeft:10,display:"flex",height:38,"& button":{background:"#EAEAEA"}},overlayAction:{marginLeft:10,"& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}},shortened:{gridTemplateColumns:"auto auto 50px 50px",display:"grid",gridGap:15,marginBottom:10,"& input":{fontWeight:400}}},m.QV),m.DF),m.oO),m.AK))})),M=function(){var e=(0,x.TL)(),n=O(),t=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.idpSelection})),a=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.accessKeys})),s=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.secretKeys})),o=(0,i.useState)({}),c=(0,r.Z)(o,2),u=c[0],d=c[1],m=function(e){d((0,j.he)(u,e))};return(0,i.useEffect)((function(){var n=[];if("Built-in"===t){n=(0,h.Z)(n);for(var r=0;r<a.length;r++)n.push({fieldKey:"accesskey-".concat(r.toString()),required:!0,value:a[r],pattern:/^[a-zA-Z0-9-]{8,63}$/,customPatternMessage:"Keys must be at least length 8"}),n.push({fieldKey:"secretkey-".concat(r.toString()),required:!0,value:s[r],pattern:/^[a-zA-Z0-9-]{8,63}$/,customPatternMessage:"Keys must be at least length 8"})}var i=(0,Z.R)(n);e((0,N.NO)({pageName:"identityProvider",valid:0===Object.keys(i).length})),d(i)}),[t,a,s,e]),(0,P.jsxs)(i.Fragment,{children:["Add additional users",a.map((function(t,r){return(0,P.jsx)(i.Fragment,{children:(0,P.jsxs)("div",{className:n.shortened,children:[(0,P.jsx)(b.Z,{id:"accesskey-".concat(r.toString()),label:"",placeholder:"Access Key",name:"accesskey-".concat(r.toString()),value:a[r],onChange:function(n){e((0,N.ys)({index:r,accessKey:n.target.value})),m("accesskey-".concat(r.toString()))},index:r,error:u["accesskey-".concat(r.toString())]||""},"csv-accesskey-".concat(r.toString())),(0,P.jsx)(b.Z,{id:"secretkey-".concat(r.toString()),label:"",placeholder:"Secret Key",name:"secretkey-".concat(r.toString()),value:s[r],onChange:function(n){e((0,N.OL)({index:r,secretKey:n.target.value})),m("secretkey-".concat(r.toString()))},index:r,error:u["secretkey-".concat(r.toString())]||""},"csv-secretkey-".concat(r.toString())),(0,P.jsxs)("div",{className:n.buttonTray,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){e((0,N.x$)())},disabled:r!==a.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){e((0,N.iA)(r))},disabled:a.length<=1,children:(0,P.jsx)(S.HFL,{})})}),(0,P.jsx)(R.Z,{title:"Randomize Credentials","aria-label":"add",children:(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{onClick:function(){e((0,N.ys)({index:r,accessKey:(0,j.zO)(16)})),e((0,N.OL)({index:r,secretKey:(0,j.zO)(16)}))},size:"small",children:(0,P.jsx)(z.Z,{})})})})]})]})},"identityField-".concat(r.toString()))}))]})},V=t(68456),U=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({protocolRadioOptions:{display:"flex",flexFlow:"column",marginBottom:10,"& label":{fontSize:16,fontWeight:600},"& div":{display:"flex",flexFlow:"row",alignItems:"top"}}},m.QV),m.oO),m.AK))})),q=function(){var e=(0,x.TL)(),n=U(),t=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.idpSelection}));return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Identity Provider"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Access to the tenant can be controlled via an external Identity Manager."})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,padding:"10px",children:(0,P.jsx)(k.Z,{currentSelection:t,id:"idp-options",name:"idp-options",label:"Protocol",onChange:function(n){e((0,N.BH)(n.target.value))},selectorOptions:[{label:(0,P.jsx)(V.YH,{}),value:"Built-in"},{label:(0,P.jsx)(V.mo,{}),value:"OpenID"},{label:(0,P.jsx)(V.QT,{}),value:"AD"}]})}),"Built-in"===t&&(0,P.jsx)(M,{}),"OpenID"===t&&(0,P.jsx)(L,{}),"AD"===t&&(0,P.jsx)(K,{})]})},B=t(54639),H=t(88070),W=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({minioCertificateRows:{display:"flex",alignItems:"center",justifyContent:"flex-start",borderBottom:"1px solid #EAEAEA","&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1}},fileItem:{marginRight:10,display:"flex","& div label":{minWidth:50},"@media (max-width: 900px)":{flexFlow:"column"}},minioCertsContainer:{marginBottom:15},minioCACertsRow:{display:"flex",alignItems:"center",justifyContent:"flex-start",borderBottom:"1px solid #EAEAEA","&:last-child":{borderBottom:0},"@media (max-width: 900px)":{flex:1,"& div label":{minWidth:50}}},rowActions:{display:"flex",justifyContent:"flex-end","@media (max-width: 900px)":{flex:1}},overlayAction:{marginLeft:10,"& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}}},m.QV),m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),r=(0,l.v9)((function(e){return e.createTenant.fields.security.enableTLS})),a=(0,l.v9)((function(e){return e.createTenant.fields.security.enableAutoCert})),s=(0,l.v9)((function(e){return e.createTenant.fields.security.enableCustomCerts})),o=(0,l.v9)((function(e){return e.createTenant.certificates.minioServerCertificates})),u=(0,l.v9)((function(e){return e.createTenant.certificates.minioClientCertificates})),d=(0,l.v9)((function(e){return e.createTenant.certificates.minioCAsCertificates})),m=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"security",field:e,value:n}))}),[t]);return(0,i.useEffect)((function(){t(r?a||s?(0,N.NO)({pageName:"security",valid:!0}):(0,N.NO)({pageName:"security",valid:!1}):(0,N.NO)({pageName:"security",valid:!0}))}),[r,a,s,t]),(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsx)("div",{className:n.headerElement,children:(0,P.jsx)(T.Z,{children:"Security"})}),(0,P.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(C.Z,{value:"enableTLS",id:"enableTLS",name:"enableTLS",checked:r,onChange:function(e){var n=e.target.checked;m("enableTLS",n)},label:"TLS",description:"Securing all the traffic using TLS. This is required for Encryption Configuration"})}),r&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(C.Z,{value:"enableAutoCert",id:"enableAutoCert",name:"enableAutoCert",checked:a,onChange:function(e){var n=e.target.checked;m("enableAutoCert",n)},label:"AutoCert",description:"The internode certificates will be generated and managed by MinIO Operator"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(C.Z,{value:"enableCustomCerts",id:"enableCustomCerts",name:"enableCustomCerts",checked:s,onChange:function(e){var n=e.target.checked;m("enableCustomCerts",n)},label:"Custom Certificates",description:"Certificates used to terminated TLS at MinIO"})}),s&&(0,P.jsxs)(i.Fragment,{children:[!a&&(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(H.Z,{})}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,P.jsx)("h5",{children:"MinIO Server Certificates"}),o.map((function(e,r){return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertificateRows,children:[(0,P.jsxs)(c.ZP,{item:!0,xs:10,className:n.fileItem,children:[(0,P.jsx)(B.Z,{onChange:function(n,r){t((0,N.aN)({id:e.id,key:"cert",fileName:r,value:n}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert}),(0,P.jsx)(B.Z,{onChange:function(n,r){t((0,N.aN)({id:e.id,key:"key",fileName:r,value:n}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})]}),(0,P.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.Mg)())},disabled:r!==o.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.XX)(e.id))},disabled:o.length<=1,children:(0,P.jsx)(S.HFL,{})})})]})]},"minio-certs-".concat(e.id))}))]}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,P.jsx)("h5",{children:"MinIO Client Certificates"}),u.map((function(e,r){return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertificateRows,children:[(0,P.jsxs)(c.ZP,{item:!0,xs:10,className:n.fileItem,children:[(0,P.jsx)(B.Z,{onChange:function(n,r){t((0,N.fE)({id:e.id,key:"cert",fileName:r,value:n}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert}),(0,P.jsx)(B.Z,{onChange:function(n,r){t((0,N.fE)({id:e.id,key:"key",fileName:r,value:n}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})]}),(0,P.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.ee)())},disabled:r!==u.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.o_)(e.id))},disabled:u.length<=1,children:(0,P.jsx)(S.HFL,{})})})]})]},"minio-certs-".concat(e.id))}))]}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,P.jsx)("h5",{children:"MinIO CA Certificates"}),d.map((function(e,r){return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCACertsRow,children:[(0,P.jsx)(c.ZP,{item:!0,xs:6,children:(0,P.jsx)(B.Z,{onChange:function(n,r){t((0,N.Eq)({id:e.id,key:"cert",fileName:r,value:n}))},accept:".cer,.crt,.cert,.pem",id:"tlsCert",name:"tlsCert",label:"Cert",value:e.cert})}),(0,P.jsx)(c.ZP,{item:!0,xs:6,children:(0,P.jsxs)("div",{className:n.rowActions,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.fK)())},disabled:r!==d.length-1,children:(0,P.jsx)(_.Z,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.IG)(e.id))},disabled:d.length<=1,children:(0,P.jsx)(S.HFL,{})})})]})})]},"minio-CA-certs-".concat(e.id))}))]})]})]})]})]})})),Q=function(e){var n=e.children;return(0,P.jsx)("h1",{style:{margin:0,marginBottom:".8rem",fontSize:"1.3rem"},children:n})},$=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.QV),m.DF),m.oO),m.AK))})),Y=function(){var e=(0,x.TL)(),n=$(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionTab})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultEndpoint})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultEngine})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultNamespace})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPrefix})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultAppRoleEngine})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultId})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultSecret})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultRetry})),g=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPing})),v=(0,i.useState)({}),y=(0,r.Z)(v,2),C=y[0],_=y[1];(0,i.useEffect)((function(){var n=[];t||(n=[].concat((0,h.Z)(n),[{fieldKey:"vault_endpoint",required:!0,value:a},{fieldKey:"vault_id",required:!0,value:m},{fieldKey:"vault_secret",required:!0,value:f},{fieldKey:"vault_ping",required:!1,value:g,customValidation:parseInt(g)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:p,customValidation:parseInt(p)<0,customValidationMessage:"Value needs to be 0 or greater"}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),_(r)}),[t,a,s,m,f,g,p,e]);var S=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),A=function(e){_((0,j.he)(C,e))};return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_endpoint",name:"vault_endpoint",onChange:function(e){S("vaultEndpoint",e.target.value),A("vault_endpoint")},label:"Endpoint",value:a,error:C.vault_endpoint||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_engine",name:"vault_engine",onChange:function(e){S("vaultEngine",e.target.value),A("vault_engine")},label:"Engine",value:s})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_namespace",name:"vault_namespace",onChange:function(e){S("vaultNamespace",e.target.value)},label:"Namespace",value:o})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_prefix",name:"vault_prefix",onChange:function(e){S("vaultPrefix",e.target.value)},label:"Prefix",value:u})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"App Role"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_approle_engine",name:"vault_approle_engine",onChange:function(e){S("vaultAppRoleEngine",e.target.value)},label:"Engine",value:d})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_id",name:"vault_id",onChange:function(e){S("vaultId",e.target.value),A("vault_id")},label:"AppRole ID",value:m,error:C.vault_id||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"vault_secret",name:"vault_secret",onChange:function(e){S("vaultSecret",e.target.value),A("vault_secret")},label:"AppRole Secret",value:f,error:C.vault_secret||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{type:"number",min:"0",id:"vault_retry",name:"vault_retry",onChange:function(e){S("vaultRetry",e.target.value),A("vault_retry")},label:"Retry (Seconds)",value:p,error:C.vault_retry||""})})]})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,style:{marginTop:15},children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Status"}),(0,P.jsx)(b.Z,{type:"number",min:"0",id:"vault_ping",name:"vault_ping",onChange:function(e){S("vaultPing",e.target.value),A("vault_ping")},label:"Ping (Seconds)",value:g,error:C.vault_ping||""})]})})]})},J=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.QV),m.DF),m.oO),m.AK))})),X=function(){var e=(0,x.TL)(),n=J(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionTab})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureEndpoint})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureTenantID})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientID})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientSecret})),d=(0,i.useState)({}),m=(0,r.Z)(d,2),f=m[0],p=m[1];(0,i.useEffect)((function(){var n=[];t||(n=[].concat((0,h.Z)(n),[{fieldKey:"azure_endpoint",required:!0,value:a},{fieldKey:"azure_tenant_id",required:!0,value:s},{fieldKey:"azure_client_id",required:!0,value:o},{fieldKey:"azure_client_secret",required:!0,value:u}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),p(r)}),[t,a,s,o,u,e]);var g=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),v=function(e){p((0,j.he)(f,e))};return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"azure_endpoint",name:"azure_endpoint",onChange:function(e){g("azureEndpoint",e.target.value),v("azure_endpoint")},label:"Endpoint",value:a,error:f.azure_endpoint||""})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"azure_tenant_id",name:"azure_tenant_id",onChange:function(e){g("azureTenantID",e.target.value),v("azure_tenant_id")},label:"Tenant ID",value:s,error:f.azure_tenant_id||""})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"azure_client_id",name:"azure_client_id",onChange:function(e){g("azureClientID",e.target.value),v("azure_client_id")},label:"Client ID",value:o,error:f.azure_client_id||""})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"azure_client_secret",name:"azure_client_secret",onChange:function(e){g("azureClientSecret",e.target.value),v("azure_client_secret")},label:"Client Secret",value:u,error:f.azure_client_secret||""})})]})})]})},ee=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.QV),m.DF),m.oO),m.AK))})),ne=function(){var e=ee(),n=(0,x.TL)(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpProjectID})),r=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientEmail})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientID})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKeyID})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKey})),d=(0,i.useCallback)((function(e,t){n((0,N.HM)({pageName:"encryption",field:e,value:t}))}),[n]);return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_project_id",name:"gcp_project_id",onChange:function(e){d("gcpProjectID",e.target.value)},label:"Project ID",value:t})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_endpoint",name:"gcp_endpoint",onChange:function(e){d("gcpEndpoint",e.target.value)},label:"Endpoint",value:r})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("fieldset",{className:e.fieldGroup,children:[(0,P.jsx)("legend",{className:e.descriptionText,children:"Credentials"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_client_email",name:"gcp_client_email",onChange:function(e){d("gcpClientEmail",e.target.value)},label:"Client Email",value:a})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_client_id",name:"gcp_client_id",onChange:function(e){d("gcpClientID",e.target.value)},label:"Client ID",value:s})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_private_key_id",name:"gcp_private_key_id",onChange:function(e){d("gcpPrivateKeyID",e.target.value)},label:"Private Key ID",value:o})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gcp_private_key",name:"gcp_private_key",onChange:function(e){d("gcpPrivateKey",e.target.value)},label:"Private Key",value:u})})]})})]})},te=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.QV),m.DF),m.oO),m.AK))})),re=function(){var e=(0,x.TL)(),n=te(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionTab})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gemaltoEndpoint})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gemaltoToken})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gemaltoDomain})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gemaltoRetry})),d=(0,i.useState)({}),m=(0,r.Z)(d,2),f=m[0],p=m[1];(0,i.useEffect)((function(){var n=[];t||(n=[].concat((0,h.Z)(n),[{fieldKey:"gemalto_endpoint",required:!0,value:a},{fieldKey:"gemalto_token",required:!0,value:s},{fieldKey:"gemalto_domain",required:!0,value:o},{fieldKey:"gemalto_retry",required:!1,value:u,customValidation:parseInt(u)<0,customValidationMessage:"Value needs to be 0 or greater"}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),p(r)}),[t,a,s,o,u,e]);var g=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),v=function(e){p((0,j.he)(f,e))};return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gemalto_endpoint",name:"gemalto_endpoint",onChange:function(e){g("gemaltoEndpoint",e.target.value),v("gemalto_endpoint")},label:"Endpoint",value:a,error:f.gemalto_endpoint||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,style:{marginBottom:15},children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gemalto_token",name:"gemalto_token",onChange:function(e){g("gemaltoToken",e.target.value),v("gemalto_token")},label:"Token",value:s,error:f.gemalto_token||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"gemalto_domain",name:"gemalto_domain",onChange:function(e){g("gemaltoDomain",e.target.value),v("gemalto_domain")},label:"Domain",value:o,error:f.gemalto_domain||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{type:"number",min:"0",id:"gemalto_retry",name:"gemalto_retry",onChange:function(e){g("gemaltoRetry",e.target.value),v("gemalto_retry")},label:"Retry (seconds)",value:u,error:f.gemalto_retry||""})})]})})]})},ae=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.QV),m.DF),m.oO),m.AK))})),ie=function(){var e=(0,x.TL)(),n=ae(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionTab})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsEndpoint})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsRegion})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsKMSKey})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsAccessKey})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsSecretKey})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsToken})),f=(0,i.useState)({}),p=(0,r.Z)(f,2),g=p[0],v=p[1];(0,i.useEffect)((function(){var n=[];t||(n=[].concat((0,h.Z)(n),[{fieldKey:"aws_endpoint",required:!0,value:a},{fieldKey:"aws_region",required:!0,value:s},{fieldKey:"aws_accessKey",required:!0,value:u},{fieldKey:"aws_secretKey",required:!0,value:d}]));var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),v(r)}),[t,a,s,d,u,e]);var y=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),C=function(e){v((0,j.he)(g,e))};return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_endpoint",name:"aws_endpoint",onChange:function(e){y("awsEndpoint",e.target.value),C("aws_endpoint")},label:"Endpoint",value:a,error:g.aws_endpoint||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_region",name:"aws_region",onChange:function(e){y("awsRegion",e.target.value),C("aws_region")},label:"Region",value:s,error:g.aws_region||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_kmsKey",name:"aws_kmsKey",onChange:function(e){y("awsKMSKey",e.target.value)},label:"KMS Key",value:o})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_accessKey",name:"aws_accessKey",onChange:function(e){y("awsAccessKey",e.target.value),C("aws_accessKey")},label:"Access Key",value:u,error:g.aws_accessKey||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_secretKey",name:"aws_secretKey",onChange:function(e){y("awsSecretKey",e.target.value),C("aws_secretKey")},label:"Secret Key",value:d,error:g.aws_secretKey||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"aws_token",name:"aws_token",onChange:function(e){y("awsToken",e.target.value)},label:"Token",value:m})})]})})]})},se=t(18073),oe=t(43896),le=t(92217),ce=t(13871),ue=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({encryptionTypeOptions:{marginBottom:15},mutualTlsConfig:{marginTop:15,"& fieldset":{flex:1}},rightSpacer:{marginRight:15},responsiveContainer:{"@media (max-width: 900px)":{display:"flex",flexFlow:"column"}}},m.QV),m.DF),m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.replicas})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.rawConfiguration})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionTab})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.enableEncryption})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionType})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpProjectID})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpEndpoint})),v=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientEmail})),y=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientID})),_=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKeyID})),S=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKey})),T=(0,l.v9)((function(e){return e.createTenant.fields.encryption.enableCustomCertsForKES})),I=(0,l.v9)((function(e){return e.createTenant.fields.security.enableAutoCert})),w=(0,l.v9)((function(e){return e.createTenant.fields.security.enableTLS})),R=(0,l.v9)((function(e){return e.createTenant.certificates.minioServerCertificates})),F=(0,l.v9)((function(e){return e.createTenant.certificates.kesServerCertificate})),D=(0,l.v9)((function(e){return e.createTenant.certificates.minioMTLSCertificate})),G=(0,l.v9)((function(e){return e.createTenant.certificates.kmsMTLSCertificate})),K=(0,l.v9)((function(e){return e.createTenant.certificates.kmsCA})),E=(0,l.v9)((function(e){return e.createTenant.fields.security.enableCustomCerts})),L=(0,l.v9)((function(e){return e.createTenant.fields.encryption.kesSecurityContext})),z=(0,i.useState)({}),O=(0,r.Z)(z,2),M=O[0],V=O[1],U=!1;w&&(I||R&&R.filter((function(e){return e.encoded_key&&e.encoded_cert})).length>0)&&(U=!0);var q=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"encryption",field:e,value:n}))}),[t]),H=function(e){V((0,j.he)(M,e))};return(0,i.useEffect)((function(){var e=[];d&&(e=[].concat((0,h.Z)(e),[{fieldKey:"rawConfiguration",required:u>0,value:o},{fieldKey:"replicas",required:!0,value:s,customValidation:parseInt(s)<1,customValidationMessage:"Replicas needs to be 1 or greater"},{fieldKey:"kes_securityContext_runAsUser",required:!0,value:L.runAsUser,customValidation:""===L.runAsUser||parseInt(L.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:L.runAsGroup,customValidation:""===L.runAsGroup||parseInt(L.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:L.fsGroup,customValidation:""===L.fsGroup||parseInt(L.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]),E&&(e=[].concat((0,h.Z)(e),[{fieldKey:"serverKey",required:!I,value:F.encoded_key},{fieldKey:"serverCert",required:!I,value:F.encoded_cert},{fieldKey:"clientKey",required:!I,value:D.encoded_key},{fieldKey:"clientCert",required:!I,value:D.encoded_cert}])));var n=(0,Z.R)(e);t((0,N.NO)({pageName:"encryption",valid:0===Object.keys(n).length})),V(n)}),[o,u,d,m,f,p,v,y,_,S,t,I,E,F.encoded_key,F.encoded_cert,D.encoded_key,D.encoded_cert,L,s]),(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,P.jsx)(c.ZP,{item:!0,xs:!0,children:(0,P.jsx)(Q,{children:"Encryption"})}),(0,P.jsx)(c.ZP,{item:!0,xs:4,justifyContent:"end",textAlign:"right",children:(0,P.jsx)(C.Z,{label:"",indicatorLabels:["Enabled","Disabled"],checked:d,value:"tenant_encryption",id:"tenant-encryption",name:"tenant-encryption",onChange:function(e){var n=e.target.checked;q("enableEncryption",n)},description:"",disabled:!U})})]}),(0,P.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("span",{className:n.descriptionText,children:"MinIO Server-Side Encryption (SSE) protects objects as part of write operations, allowing clients to take advantage of server processing power to secure objects at the storage layer (encryption-at-rest). SSE also provides key functionality to regulatory and compliance requirements around secure locking and erasure."})}),(0,P.jsx)(c.ZP,{xs:12,children:(0,P.jsx)(ce.Z,{})}),d&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)(se.Z,{value:u,onChange:function(e,n){q("encryptionTab",n)},indicatorColor:"primary",textColor:"primary","aria-label":"cluster-tabs",variant:"scrollable",scrollButtons:"auto",children:[(0,P.jsx)(oe.Z,{id:"kms-options",label:"Options"}),(0,P.jsx)(oe.Z,{id:"kms-raw-configuration",label:"Raw Edit"})]})}),u?(0,P.jsx)(i.Fragment,{children:(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(le.Z,{value:o,mode:"yaml",onBeforeChange:function(e,n,t){q("rawConfiguration",t)},editorHeight:"550px"})})}):(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.encryptionTypeOptions,children:(0,P.jsx)(k.Z,{currentSelection:m,id:"encryptionType",name:"encryptionType",label:"KMS",onChange:function(e){q("encryptionType",e.target.value)},selectorOptions:[{label:"Vault",value:"vault"},{label:"AWS",value:"aws"},{label:"Gemalto",value:"gemalto"},{label:"GCP",value:"gcp"},{label:"Azure",value:"azure"}]})}),"vault"===m&&(0,P.jsx)(Y,{}),"azure"===m&&(0,P.jsx)(X,{}),"gcp"===m&&(0,P.jsx)(ne,{}),"aws"===m&&(0,P.jsx)(ie,{}),"gemalto"===m&&(0,P.jsx)(re,{})]}),(0,P.jsx)("div",{className:n.headerElement,children:(0,P.jsx)("h4",{className:n.h3Section,children:"Additional Configurations"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(C.Z,{value:"enableCustomCertsForKES",id:"enableCustomCertsForKES",name:"enableCustomCertsForKES",checked:T||!I,onChange:function(e){var n=e.target.checked;q("enableCustomCertsForKES",n)},label:"Custom Certificates",disabled:!I})}),(T||!I)&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{container:!0,children:(0,P.jsx)(c.ZP,{item:!0,xs:12,style:{marginBottom:15},children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"Encryption server certificates"}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.uN)({key:"key",fileName:n,value:e})),H("serverKey")},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",error:M.serverKey||"",value:F.key,required:!I}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.uN)({key:"cert",fileName:n,value:e})),H("serverCert")},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",error:M.serverCert||"",value:F.cert,required:!I})]})})}),(0,P.jsx)(c.ZP,{container:!0,style:{marginBottom:15},children:(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"MinIO mTLS certificates (connection between MinIO and the Encryption server)"}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.Ud)({key:"key",fileName:n,value:e})),H("clientKey")},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",error:M.clientKey||"",value:D.key,required:!I}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.Ud)({key:"cert",fileName:n,value:e})),H("clientCert")},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",error:M.clientCert||"",value:D.cert,required:!I})]})})}),(0,P.jsx)(c.ZP,{container:!0,className:n.mutualTlsConfig,children:(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"KMS mTLS certificates (connection between the Encryption server and the KMS)"}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.Tr)({key:"key",fileName:n,value:e})),H("vault_key")},accept:".key,.pem",id:"vault_key",name:"vault_key",label:"Key",value:G.key}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.Tr)({key:"cert",fileName:n,value:e})),H("vault_cert")},accept:".cer,.crt,.cert,.pem",id:"vault_cert",name:"vault_cert",label:"Cert",value:G.cert}),(0,P.jsx)(B.Z,{onChange:function(e,n){t((0,N.b9)({fileName:n,value:e})),H("vault_ca")},accept:".cer,.crt,.cert,.pem",id:"vault_ca",name:"vault_ca",label:"CA",value:K.cert})]})})]}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,classes:n.formFieldRow,children:(0,P.jsx)(b.Z,{type:"number",min:"1",id:"replicas",name:"replicas",onChange:function(e){q("replicas",e.target.value),H("replicas")},label:"Replicas",value:s,required:!0,error:M.replicas||""})}),(0,P.jsxs)("fieldset",{className:n.fieldGroup,style:{marginTop:15},children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for KES pods"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.kesSecurityContext,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveContainer),children:[(0,P.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,P.jsx)(b.Z,{type:"number",id:"kes_securityContext_runAsUser",name:"kes_securityContext_runAsUser",onChange:function(e){q("kesSecurityContext",(0,a.Z)((0,a.Z)({},L),{},{runAsUser:e.target.value})),H("kes_securityContext_runAsUser")},label:"Run As User",value:L.runAsUser,required:!0,error:M.kes_securityContext_runAsUser||"",min:"0"})}),(0,P.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,P.jsx)(b.Z,{type:"number",id:"kes_securityContext_runAsGroup",name:"kes_securityContext_runAsGroup",onChange:function(e){q("kesSecurityContext",(0,a.Z)((0,a.Z)({},L),{},{runAsGroup:e.target.value})),H("kes_securityContext_runAsGroup")},label:"Run As Group",value:L.runAsGroup,required:!0,error:M.kes_securityContext_runAsGroup||"",min:"0"})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.kesSecurityContext,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveContainer),children:[(0,P.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,P.jsx)(b.Z,{type:"number",id:"kes_securityContext_fsGroup",name:"kes_securityContext_fsGroup",onChange:function(e){q("kesSecurityContext",(0,a.Z)((0,a.Z)({},L),{},{fsGroup:e.target.value})),H("kes_securityContext_fsGroup")},label:"FsGroup",value:L.fsGroup,required:!0,error:M.kes_securityContext_fsGroup||"",min:"0"})}),(0,P.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,P.jsx)(A.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:L.fsGroupChangePolicy,onChange:function(e){q("kesSecurityContext",(0,a.Z)((0,a.Z)({},L),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(C.Z,{value:"kesSecurityContextRunAsNonRoot",id:"kes_securityContext_runAsNonRoot",name:"kes_securityContext_runAsNonRoot",checked:L.runAsNonRoot,onChange:function(e){var n=e.target.checked;q("kesSecurityContext",(0,a.Z)((0,a.Z)({},L),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})]})]})]})})),de=t(4942),me=t(81207),fe=t(45660),xe=t(87995),he=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({overlayAction:{marginLeft:10,display:"flex",alignItems:"center","& svg":{maxWidth:15,maxHeight:15},"& button":{background:"#EAEAEA"}},affinityConfigField:{display:"flex"},affinityFieldLabel:{display:"flex",flexFlow:"column",flex:1},radioField:{display:"flex",alignItems:"flex-start",marginTop:10,"& div:first-child":{display:"flex",flexFlow:"column",alignItems:"baseline",textAlign:"left !important"}},affinityLabelKey:{"& div:first-child":{marginBottom:0}},affinityLabelValue:{marginLeft:10,"& div:first-child":{marginBottom:0}},rowActions:{display:"flex",alignItems:"center"},affinityRow:{marginBottom:10,display:"flex"}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),s=(0,l.v9)((function(e){return e.createTenant.fields.affinity.podAffinity})),o=(0,l.v9)((function(e){return e.createTenant.fields.affinity.nodeSelectorLabels})),u=(0,l.v9)((function(e){return e.createTenant.fields.affinity.withPodAntiAffinity})),d=(0,l.v9)((function(e){return e.createTenant.nodeSelectorPairs})),m=(0,l.v9)((function(e){return e.createTenant.tolerations})),f=(0,i.useState)({}),p=(0,r.Z)(f,2),y=p[0],j=p[1],_=(0,i.useState)(!0),I=(0,r.Z)(_,2),w=I[0],R=I[1],F=(0,i.useState)({}),D=(0,r.Z)(F,2),G=D[0],K=D[1],E=(0,i.useState)([]),L=(0,r.Z)(E,2),z=L[0],O=L[1],M=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"affinity",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){w&&me.Z.invoke("GET","/api/v1/nodes/labels").then((function(e){R(!1),K(e);var n=[];for(var t in e)n.push({label:t,value:t});O(n)})).catch((function(e){R(!1),t((0,xe.zb)(e)),K({})}))}),[t,w]),(0,i.useEffect)((function(){if(d){var e=d.filter((function(e){return""!==e.key})).map((function(e){return"".concat(e.key,"=").concat(e.value)})).filter((function(e,n,t){return t.indexOf(e)===n})).join("&");M("nodeSelectorLabels",e)}}),[d,M]),(0,i.useEffect)((function(){var e=[];if("nodeSelector"===s){var n=!0,r=o.split("&");1===r.length&&""===r[0]&&(n=!1),r.forEach((function(e,t){var a=e.split("=");2!==a.length&&(n=!1),t+1!==r.length&&(""!==a[0]&&""!==a[1]||(n=!1))})),e=[].concat((0,h.Z)(e),[{fieldKey:"labels",required:!0,value:o,customValidation:!n,customValidationMessage:"You need to add at least one label key-pair"}])}var a=(0,Z.R)(e);t((0,N.NO)({pageName:"affinity",valid:0===Object.keys(a).length})),j(a)}),[t,s,o]);var V=function(e,n,r){var i=(0,a.Z)((0,a.Z)({},m[e]),{},(0,de.Z)({},n,r));t((0,N.iU)({index:e,tolerationValue:i}))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Pod Placement"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Configure how pods will be assigned to nodes"})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.affinityConfigField,children:(0,P.jsxs)(c.ZP,{item:!0,className:n.affinityFieldLabel,children:[(0,P.jsx)("div",{className:n.label,children:"Type"}),(0,P.jsx)("div",{className:"".concat(n.descriptionText," ").concat(n.affinityHelpText),children:"MinIO supports multiple configurations for Pod Affinity"}),(0,P.jsx)(c.ZP,{item:!0,className:n.radioField,children:(0,P.jsx)(k.Z,{currentSelection:s,id:"affinity-options",name:"affinity-options",label:" ",onChange:function(e){M("podAffinity",e.target.value)},selectorOptions:[{label:"None",value:"none"},{label:"Default (Pod Anti-Affinity)",value:"default"},{label:"Node Selector",value:"nodeSelector"}]})})]})}),"nodeSelector"===s&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(C.Z,{value:"with_pod_anti_affinity",id:"with_pod_anti_affinity",name:"with_pod_anti_affinity",checked:u,onChange:function(e){var n=e.target.checked;M("withPodAntiAffinity",n)},label:"With Pod Anti-Affinity"})}),(0,P.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,P.jsx)("h3",{children:"Labels"}),(0,P.jsx)("span",{className:n.error,children:y.labels}),(0,P.jsx)(c.ZP,{container:!0,children:d&&d.map((function(e,r){return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.affinityRow,children:[(0,P.jsxs)(c.ZP,{item:!0,xs:5,className:n.affinityLabelKey,children:[z.length>0&&(0,P.jsx)(A.Z,{onChange:function(e){var n=e.target.value,a={key:n,value:G[n][0]},i=(0,h.Z)(d);i[r]=a,t((0,N.i$)(i))},id:"select-access-policy",name:"select-access-policy",label:"",value:e.key,options:z}),0===z.length&&(0,P.jsx)(b.Z,{id:"nodeselector-key-".concat(r.toString()),label:"",name:"nodeselector-".concat(r.toString()),value:e.key,onChange:function(e){var n=(0,h.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,N.i$)(n))},index:r,placeholder:"Key"})]}),(0,P.jsxs)(c.ZP,{item:!0,xs:5,className:n.affinityLabelValue,children:[z.length>0&&(0,P.jsx)(A.Z,{onChange:function(e){var n=(0,h.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,N.i$)(n))},id:"select-access-policy",name:"select-access-policy",label:"",value:e.value,options:G[e.key]?G[e.key].map((function(e){return{label:e,value:e}})):[]}),0===z.length&&(0,P.jsx)(b.Z,{id:"nodeselector-value-".concat(r.toString()),label:"",name:"nodeselector-".concat(r.toString()),value:e.value,onChange:function(e){var n=(0,h.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,N.i$)(n))},index:r,placeholder:"value"})]}),(0,P.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){var e=(0,h.Z)(d);z.length>0?e.push({key:z[0].value,value:G[z[0].value][0]}):e.push({key:"",value:""}),t((0,N.i$)(e))},disabled:r!==d.length-1,children:(0,P.jsx)(S.dtP,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){var e=d.filter((function(e,n){return n!==r}));t((0,N.i$)(e))},disabled:d.length<=1,children:(0,P.jsx)(S.HFL,{})})})]})]},"affinity-keyVal-".concat(r.toString()))}))})]})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.affinityConfigField,children:(0,P.jsxs)(c.ZP,{item:!0,className:n.affinityFieldLabel,children:[(0,P.jsx)("h3",{children:"Tolerations"}),(0,P.jsx)("span",{className:n.error,children:y.tolerations}),(0,P.jsx)(c.ZP,{container:!0,children:m&&m.map((function(e,r){var a;return(0,P.jsxs)(c.ZP,{item:!0,xs:12,className:n.affinityRow,children:[(0,P.jsx)(fe.Z,{effect:e.effect,onEffectChange:function(e){V(r,"effect",e)},tolerationKey:e.key,onTolerationKeyChange:function(e){V(r,"key",e)},operator:e.operator,onOperatorChange:function(e){V(r,"operator",e)},value:e.value,onValueChange:function(e){V(r,"value",e)},tolerationSeconds:(null===(a=e.tolerationSeconds)||void 0===a?void 0:a.seconds)||0,onSecondsChange:function(e){V(r,"tolerationSeconds",{seconds:e})},index:r}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){t((0,N.ly)())},disabled:r!==m.length-1,children:(0,P.jsx)(S.dtP,{})})}),(0,P.jsx)("div",{className:n.overlayAction,children:(0,P.jsx)(v.Z,{size:"small",onClick:function(){return t((0,N.JX)(r))},disabled:m.length<=1,children:(0,P.jsx)(S.HFL,{})})})]},"affinity-keyVal-".concat(r.toString()))}))})]})})]})})),pe=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({},m.DF),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),a=(0,l.v9)((function(e){return e.createTenant.fields.configure.customImage})),s=(0,l.v9)((function(e){return e.createTenant.fields.configure.imageName})),o=(0,l.v9)((function(e){return e.createTenant.fields.configure.customDockerhub})),u=(0,l.v9)((function(e){return e.createTenant.fields.configure.imageRegistry})),d=(0,l.v9)((function(e){return e.createTenant.fields.configure.imageRegistryUsername})),m=(0,l.v9)((function(e){return e.createTenant.fields.configure.imageRegistryPassword})),f=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusEnabled})),p=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantCustom})),v=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchEnabled})),y=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchVolumeSize})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusVolumeSize})),S=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchSelectedStorageClass})),A=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchImage})),I=(0,l.v9)((function(e){return e.createTenant.fields.configure.kesImage})),k=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresImage})),w=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresInitImage})),R=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSelectedStorageClass})),F=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusImage})),D=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSidecarImage})),G=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusInitImage})),K=(0,i.useState)({}),E=(0,r.Z)(K,2),L=E[0],z=E[1],O=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];f&&(e=[].concat((0,h.Z)(e),[{fieldKey:"prometheus_storage_class",required:!0,value:R,customValidation:""===R,customValidationMessage:"Field cannot be empty"},{fieldKey:"prometheus_volume_size",required:!0,value:_,customValidation:""===_||parseInt(_)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"}])),v&&(e=[].concat((0,h.Z)(e),[{fieldKey:"log_search_storage_class",required:!0,value:S,customValidation:""===S,customValidationMessage:"Field cannot be empty"},{fieldKey:"log_search_volume_size",required:!0,value:y,customValidation:""===y||parseInt(y)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"}])),a&&(e=[].concat((0,h.Z)(e),[{fieldKey:"image",required:!1,value:s,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/minio:VERSION'"},{fieldKey:"logSearchImage",required:!1,value:A,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/operator:VERSION'"},{fieldKey:"kesImage",required:!1,value:I,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"},{fieldKey:"logSearchPostgresImage",required:!1,value:k,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/postgres:VERSION'"},{fieldKey:"logSearchPostgresInitImage",required:!1,value:w,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"},{fieldKey:"prometheusImage",required:!1,value:F,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/prometheus:VERSION'"},{fieldKey:"prometheusSidecarImage",required:!1,value:D,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'project/container:VERSION'"},{fieldKey:"prometheusInitImage",required:!1,value:G,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"}]),o&&(e=[].concat((0,h.Z)(e),[{fieldKey:"registry",required:!0,value:u},{fieldKey:"registryUsername",required:!0,value:d},{fieldKey:"registryPassword",required:!0,value:m}])));var n=(0,Z.R)(e);t((0,N.NO)({pageName:"configure",valid:0===Object.keys(n).length})),z(n)}),[a,s,A,I,k,w,F,D,G,o,u,d,m,t,f,p,v,R,_,S,y]);var M=function(e){z((0,j.he)(L,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Container Images"}),(0,P.jsx)("span",{className:n.descriptionText,children:"Specify the container images used by the Tenant and it's features."})]}),(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"image",name:"image",onChange:function(e){O("imageName",e.target.value),M("image")},label:"MinIO",value:s,error:L.image||"",placeholder:"minio/minio:RELEASE.2022-02-26T02-54-46Z"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"kesImage",name:"kesImage",onChange:function(e){O("kesImage",e.target.value),M("kesImage")},label:"KES",value:I,error:L.kesImage||"",placeholder:"minio/kes:v0.17.6"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)("h4",{children:"Log Search"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"logSearchImage",name:"logSearchImage",onChange:function(e){O("logSearchImage",e.target.value),M("logSearchImage")},label:"API",value:A,error:L.logSearchImage||"",placeholder:"minio/operator:v4.4.22"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"logSearchPostgresImage",name:"logSearchPostgresImage",onChange:function(e){O("logSearchPostgresImage",e.target.value),M("logSearchPostgresImage")},label:"PostgreSQL",value:k,error:L.logSearchPostgresImage||"",placeholder:"library/postgres:13"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"logSearchPostgresInitImage",name:"logSearchPostgresInitImage",onChange:function(e){O("logSearchPostgresInitImage",e.target.value),M("logSearchPostgresInitImage")},label:"PostgreSQL Init",value:w,error:L.logSearchPostgresInitImage||"",placeholder:"library/busybox:1.33.1"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)("h4",{children:"Monitoring"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"prometheusImage",name:"prometheusImage",onChange:function(e){O("prometheusImage",e.target.value),M("prometheusImage")},label:"Prometheus",value:F,error:L.prometheusImage||"",placeholder:"quay.io/prometheus/prometheus:latest"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"prometheusSidecarImage",name:"prometheusSidecarImage",onChange:function(e){O("prometheusSidecarImage",e.target.value),M("prometheusSidecarImage")},label:"Prometheus Sidecar",value:D,error:L.prometheusSidecarImage||"",placeholder:"library/alpine:latest"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"prometheusInitImage",name:"prometheusInitImage",onChange:function(e){O("prometheusInitImage",e.target.value),M("prometheusInitImage")},label:"Prometheus Init",value:G,error:L.prometheusInitImage||"",placeholder:"library/busybox:1.33.1"})})]}),a&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)("h4",{children:"Custom Container Registry"})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(C.Z,{value:"custom_docker_hub",id:"custom_docker_hub",name:"custom_docker_hub",checked:o,onChange:function(e){var n=e.target.checked;O("customDockerhub",n)},label:"Use a private container registry"})})]}),o&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"registry",name:"registry",onChange:function(e){O("imageRegistry",e.target.value)},label:"Endpoint",value:u,error:L.registry||"",placeholder:"https://index.docker.io/v1/",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"registryUsername",name:"registryUsername",onChange:function(e){O("imageRegistryUsername",e.target.value)},label:"Username",value:d,error:L.registryUsername||"",required:!0})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(b.Z,{id:"registryPassword",name:"registryPassword",onChange:function(e){O("imageRegistryPassword",e.target.value)},label:"Password",value:m,error:L.registryPassword||"",required:!0})})]})]})})),ge=t(74794),ve=t(79836),ye=t(53382),je=t(53994),Ze=t(35855),Ce=t(45248),be=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({root:{margin:4},table:{"& .MuiTableCell-root":{fontSize:13}}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.nodes})),r=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.resourcesMemoryRequest})),a=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.ecParity})),s=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.distribution})),o=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.ecParityCalc})),c=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.resourcesCPURequest})),u=(0,l.v9)((function(e){return e.createTenant.fields.tenantSize.integrationSelection})),d=o.storageFactors.find((function(e){return e.erasureCode===a}));return(0,P.jsxs)("div",{className:n.root,children:[(0,P.jsx)("h4",{children:"Resource Allocation"}),(0,P.jsx)(y.Z,{}),(0,P.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(ye.Z,{children:[(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Number of Servers"}),(0,P.jsx)(je.Z,{align:"right",children:parseInt(t)>0?t:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Drives per Server"}),(0,P.jsx)(je.Z,{align:"right",children:s?s.disks:"-"})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Drive Capacity"}),(0,P.jsx)(je.Z,{align:"right",children:s?(0,Ce.ae)(s.pvSize):"-"})]})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Total Volumes"}),(0,P.jsx)(je.Z,{align:"right",children:s?s.persistentVolumes:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Memory per Node"}),(0,P.jsxs)(je.Z,{align:"right",children:[r," Gi"]})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"CPU Selection"}),(0,P.jsx)(je.Z,{style:{borderBottom:0},align:"right",children:c})]})]})]})}),0===o.error&&d&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)("h4",{children:"Erasure Code Configuration"}),(0,P.jsx)(y.Z,{}),(0,P.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(ye.Z,{children:[(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"EC Parity"}),(0,P.jsx)(je.Z,{align:"right",children:""!==a?a:"-"})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Raw Capacity"}),(0,P.jsx)(je.Z,{align:"right",children:(0,Ce.ae)(o.rawCapacity)})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Usable Capacity"}),(0,P.jsx)(je.Z,{align:"right",children:(0,Ce.ae)(d.maxCapacity)})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"Server Failures Tolerated"}),(0,P.jsx)(je.Z,{style:{borderBottom:0},align:"right",children:s?Math.floor(d.maxFailureTolerations/s.disks):"-"})]})]})})]}),""!==u.typeSelection&&""!==u.storageClass&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)("h4",{children:"Single Instance Configuration"}),(0,P.jsx)(y.Z,{}),(0,P.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(ye.Z,{children:[(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"CPU"}),(0,P.jsx)(je.Z,{align:"right",children:0!==u.CPU?u.CPU:"-"})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Memory"}),(0,P.jsx)(je.Z,{align:"right",children:0!==u.memory?"".concat(u.memory," Gi"):"-"})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{scope:"row",children:"Drives per Server"}),(0,P.jsx)(je.Z,{align:"right",children:0!==u.drivesPerServer?"".concat(u.drivesPerServer):"-"})]}),(0,P.jsxs)(Ze.Z,{children:[(0,P.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"Drive Size"}),(0,P.jsxs)(je.Z,{style:{borderBottom:0},align:"right",children:[u.driveSize.driveSize,u.driveSize.sizeUnit]})]})]})})]})]})})),_e=t(19720),Se=t(45884),Ne=t(46078),Ae=t(51691),Te=t(23508),Pe=t(98222),Ie=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({wrapText:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"}},m.oO),m.Qw))})),ke=function(){var e=(0,x.TL)(),n=Ie(),t=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.namespace})),r=(0,l.v9)((function(e){return e.createTenant.addNSLoading})),a=(0,l.v9)((function(e){return e.createTenant.addNSOpen}));return(0,P.jsx)(Te.Z,{title:"New namespace",confirmText:"Create",confirmButtonProps:{variant:"callAction"},isOpen:a,titleIcon:(0,P.jsx)(S.EjK,{}),isLoading:r,onConfirm:function(){e((0,Pe.QD)())},onClose:function(){e((0,N.pb)())},confirmationContent:(0,P.jsxs)(i.Fragment,{children:[r&&(0,P.jsx)(u.Z,{}),(0,P.jsxs)(Ae.Z,{children:["Are you sure you want to add a namespace called",(0,P.jsx)("br",{}),(0,P.jsx)("b",{className:n.wrapText,children:t}),"?"]})]})})},we=t(48573),Re=t.n(we),Fe=function(e){e.formToRender;var n=(0,x.TL)(),t=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.namespace})),r=(0,l.v9)((function(e){return e.createTenant.showNSCreateButton})),a=(0,l.v9)((function(e){return e.createTenant.validationErrors.namespace})),s=(0,l.v9)((function(e){return e.createTenant.addNSOpen})),o=(0,i.useMemo)((function(){return Re()((function(){n((0,Pe.IO)())}),500)}),[n]);(0,i.useEffect)((function(){if(""!==t)return o(),o.cancel}),[o,t]);return(0,P.jsxs)(i.Fragment,{children:[s&&(0,P.jsx)(ke,{}),(0,P.jsx)(b.Z,{id:"namespace",name:"namespace",onChange:function(e){n((0,N.Zx)(e.target.value))},label:"Namespace",value:t,error:a||"",overlayId:"add-namespace",overlayIcon:r?(0,P.jsx)(S.dtP,{}):null,overlayAction:function(){n((0,N.Oj)())},required:!0})]})},De=function(){var e=(0,x.TL)(),n=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.tenantName})),t=(0,l.v9)((function(e){return e.createTenant.validationErrors["tenant-name"]}));return(0,P.jsx)(b.Z,{id:"tenant-name",name:"tenant-name",onChange:function(n){e((0,N.V7)(n.target.value))},label:"Name",value:n,required:!0,error:t||""})},Ge=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({sizePreview:{marginLeft:10,background:"#FFFFFF",border:"1px solid #EAEAEA",padding:2,marginTop:20}},m.DF),m.oO),m.AK))}))((function(e){var n=e.classes,t=e.formToRender,r=(0,x.TL)(),a=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.selectedStorageClass})),s=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.selectedStorageType})),u=(0,l.v9)((function(e){return e.createTenant.storageClasses})),d=(0,l.v9)(Ne.$4),m=(0,i.useCallback)((function(e,n){r((0,N.HM)({pageName:"nameTenant",field:e,value:n}))}),[r]);return(0,i.useEffect)((function(){var e=t===Se.cy.default&&u.length>0||t!==Se.cy.default&&""!==s;r((0,N.NO)({pageName:"nameTenant",valid:e}))}),[u,r,s,t]),(0,P.jsx)(i.Fragment,{children:(0,P.jsxs)(c.ZP,{container:!0,children:[(0,P.jsx)(c.ZP,{item:!0,sx:{width:"calc(100% - 320px)"},children:(0,P.jsx)(g.Z,{className:n.paperWrapper,sx:{minHeight:550},children:(0,P.jsxs)(c.ZP,{container:!0,children:[(0,P.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)(T.Z,{children:"Name"}),(0,P.jsx)("span",{className:n.descriptionText,children:"How would you like to name this new tenant?"})]}),(0,P.jsx)("div",{className:n.formFieldRow,children:(0,P.jsx)(De,{})})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(Fe,{formToRender:t})}),t===Se.cy.default?(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(A.Z,{id:"storage_class",name:"storage_class",onChange:function(e){m("selectedStorageClass",e.target.value)},label:"Storage Class",value:a,options:u,disabled:u.length<1})}):(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(A.Z,{id:"storage_type",name:"storage_type",onChange:function(e){r((0,N.Qy)({storageType:e.target.value,features:d}))},label:o()(Se.Hd,"".concat(t,".variantSelectorLabel"),"Storage Type"),value:s,options:o()(Se.Hd,"".concat(t,".variantSelectorValues"),[])})}),t===Se.cy.default?(0,P.jsx)(_e.Z,{}):o()(Se.Hd,"".concat(t,".sizingComponent"),null)]})})}),(0,P.jsx)(c.ZP,{item:!0,children:(0,P.jsx)("div",{className:n.sizePreview,children:(0,P.jsx)(be,{})})})]})})})),Ke=function(){var e=(0,l.v9)(Ne.$4),n=(0,i.useState)(null),t=(0,r.Z)(n,2),a=t[0],s=t[1];return(0,i.useEffect)((function(){var n=Se.cy.default;e&&0!==e.length&&Object.keys(Se.I8).forEach((function(t){e.includes(t)&&(n=o()(Se.I8,t,Se.cy.default))}));s(n)}),[e]),null===a?null:(0,P.jsx)(Ge,{formToRender:a})},Ee=t(56578),Le=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({configSectionItem:{marginRight:15,"& .multiContainer":{border:"1px solid red"}},fieldGroup:(0,a.Z)((0,a.Z)({},m.QV.fieldGroup),{},{paddingTop:15,marginBottom:25}),responsiveSectionItem:{"@media (max-width: 900px)":{flexFlow:"column",alignItems:"flex-start","& div > div":{marginBottom:5,marginRight:0}}},fieldSpaceTop:{marginTop:15}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),s=(0,l.v9)((function(e){return e.createTenant.storageClasses})),o=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchEnabled})),u=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchVolumeSize})),d=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchSelectedStorageClass})),m=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchImage})),f=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresImage})),p=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresInitImage})),v=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.selectedStorageClass})),y=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchSecurityContext})),S=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresSecurityContext})),T=(0,i.useState)({}),I=(0,r.Z)(T,2),k=I[0],w=I[1],R=[{label:"Default",value:"default"}].concat((0,h.Z)(s)),F=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,h.Z)(e),[{fieldKey:"log_search_storage_class",required:!0,value:d,customValidation:""===d,customValidationMessage:"Field cannot be empty"},{fieldKey:"log_search_volume_size",required:!0,value:u,customValidation:""===u||parseInt(u)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"},{fieldKey:"logSearch_securityContext_runAsUser",required:!0,value:_.runAsUser,customValidation:""===_.runAsUser||parseInt(_.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"logSearch_securityContext_runAsGroup",required:!0,value:_.runAsGroup,customValidation:""===_.runAsGroup||parseInt(_.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"logSearch_securityContext_fsGroup",required:!0,value:_.fsGroup,customValidation:""===_.fsGroup||parseInt(_.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"},{fieldKey:"postgres_securityContext_runAsUser",required:!0,value:S.runAsUser,customValidation:""===S.runAsUser||parseInt(S.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"postgres_securityContext_runAsGroup",required:!0,value:_.runAsGroup,customValidation:""===S.runAsGroup||parseInt(S.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"postgres_securityContext_fsGroup",required:!0,value:S.fsGroup,customValidation:""===S.fsGroup||parseInt(S.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]));var n=(0,Z.R)(e);t((0,N.NO)({pageName:"configure",valid:0===Object.keys(n).length})),w(n)}),[m,f,p,t,o,d,u,y,_,S]),(0,i.useEffect)((function(){s.length>0&&(0===s.filter((function(e){return e.value===d})).length&&F("logSearchSelectedStorageClass","default"))}),[d,v,s,F]);var D=function(e){w((0,j.he)(k,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,P.jsx)(c.ZP,{item:!0,xs:!0,children:(0,P.jsx)(Q,{children:"Audit Log"})}),(0,P.jsx)(c.ZP,{item:!0,xs:4,children:(0,P.jsx)(C.Z,{value:"enableLogging",id:"enableLogging",name:"enableLogging",checked:o,onChange:function(e){var n=e.target.checked;F("logSearchEnabled",n)},indicatorLabels:["Enabled","Disabled"]})})]}),(0,P.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("span",{className:n.descriptionText,children:"Deploys a small PostgreSQL database and stores access logs of all calls into the tenant."})}),(0,P.jsx)(c.ZP,{xs:12,children:(0,P.jsx)(ce.Z,{})}),o&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(A.Z,{id:"log_search_storage_class",name:"log_search_storage_class",onChange:function(e){F("logSearchSelectedStorageClass",e.target.value)},label:"Log Search Storage Class",value:d,options:R,disabled:R.length<1})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(b.Z,{type:"number",id:"log_search_volume_size",name:"log_search_volume_size",onChange:function(e){F("logSearchVolumeSize",e.target.value),D("log_search_volume_size")},label:"Storage Size",overlayObject:(0,P.jsx)(Ee.Z,{id:"size-unit",onUnitChange:function(){},unitSelected:"Gi",unitsList:[{label:"Gi",value:"Gi"}],disabled:!0}),value:u,required:!0,error:k.log_search_volume_size||"",min:"0"})})}),(0,P.jsxs)("fieldset",{className:"".concat(n.fieldGroup," ").concat(n.fieldSpaceTop),children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for LogSearch"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"logSearch_securityContext_runAsUser",name:"logSearch_securityContext_runAsUser",onChange:function(e){F("logSearchSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsUser:e.target.value})),D("logSearch_securityContext_runAsUser")},label:"Run As User",value:_.runAsUser,required:!0,error:k.logSearch_securityContext_runAsUser||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"logSearch_securityContext_runAsGroup",name:"logSearch_securityContext_runAsGroup",onChange:function(e){F("logSearchSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsGroup:e.target.value})),D("logSearch_securityContext_runAsGroup")},label:"Run As Group",value:_.runAsGroup,required:!0,error:k.logSearch_securityContext_runAsGroup||"",min:"0"})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"logSearch_securityContext_fsGroup",name:"logSearch_securityContext_fsGroup",onChange:function(e){F("logSearchSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{fsGroup:e.target.value})),D("logSearch_securityContext_fsGroup")},label:"FsGroup",value:_.fsGroup,required:!0,error:k.logSearch_securityContext_fsGroup||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(A.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:_.fsGroupChangePolicy,onChange:function(e){F("logSearchSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(C.Z,{value:"logSearchSecurityContextRunAsNonRoot",id:"logSearch_securityContext_runAsNonRoot",name:"logSearch_securityContext_runAsNonRoot",checked:_.runAsNonRoot,onChange:function(e){var n=e.target.checked;F("logSearchSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]}),(0,P.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for PostgreSQL"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"postgres_securityContext_runAsUser",name:"postgres_securityContext_runAsUser",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},S),{},{runAsUser:e.target.value})),D("postgres_securityContext_runAsUser")},label:"Run As User",value:S.runAsUser,required:!0,error:k.postgres_securityContext_runAsUser||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"postgres_securityContext_runAsGroup",name:"postgres_securityContext_runAsGroup",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},S),{},{runAsGroup:e.target.value})),D("postgres_securityContext_runAsGroup")},label:"Run As Group",value:S.runAsGroup,required:!0,error:k.postgres_securityContext_runAsGroup||"",min:"0"})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"postgres_securityContext_fsGroup",name:"postgres_securityContext_fsGroup",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},S),{},{fsGroup:e.target.value})),D("postgres_securityContext_fsGroup")},label:"FsGroup",value:S.fsGroup,required:!0,error:k.postgres_securityContext_fsGroup||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(A.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:S.fsGroupChangePolicy,onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},S),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(C.Z,{value:"postgresSecurityContextRunAsNonRoot",id:"postgres_securityContext_runAsNonRoot",name:"postgres_securityContext_runAsNonRoot",checked:S.runAsNonRoot,onChange:function(e){var n=e.target.checked;F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},S),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})]})]})})),ze=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)({configSectionItem:{marginRight:15,"& .multiContainer":{border:"1px solid red"}},fieldGroup:(0,a.Z)((0,a.Z)({},m.QV.fieldGroup),{},{paddingTop:15,marginBottom:25}),responsiveSectionItem:{"@media (max-width: 900px)":{flexFlow:"column",alignItems:"flex-start","& div > div":{marginBottom:5,marginRight:0}}},fieldSpaceTop:{marginTop:15}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,x.TL)(),s=(0,l.v9)((function(e){return e.createTenant.storageClasses})),o=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusEnabled})),u=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusVolumeSize})),d=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSelectedStorageClass})),m=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusImage})),f=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSidecarImage})),p=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusInitImage})),v=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.selectedStorageClass})),y=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSecurityContext})),S=(0,i.useState)({}),T=(0,r.Z)(S,2),I=T[0],k=T[1],w=[{label:"Default",value:"default"}].concat((0,h.Z)(s)),R=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,h.Z)(e),[{fieldKey:"prometheus_storage_class",required:!0,value:d,customValidation:""===d,customValidationMessage:"Field cannot be empty"},{fieldKey:"prometheus_volume_size",required:!0,value:u,customValidation:""===u||parseInt(u)<=0,customValidationMessage:"Volume size must be present and be greater than 0"},{fieldKey:"prometheus_securityContext_runAsUser",required:!0,value:_.runAsUser,customValidation:""===_.runAsUser||parseInt(_.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"prometheus_securityContext_runAsGroup",required:!0,value:_.runAsGroup,customValidation:""===_.runAsGroup||parseInt(_.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"prometheus_securityContext_fsGroup",required:!0,value:_.fsGroup,customValidation:""===_.fsGroup||parseInt(_.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]));var n=(0,Z.R)(e);t((0,N.NO)({pageName:"configure",valid:0===Object.keys(n).length})),k(n)}),[m,f,p,t,o,d,u,y,_]),(0,i.useEffect)((function(){s.length>0&&(0===s.filter((function(e){return e.value===d})).length&&R("prometheusSelectedStorageClass","default"))}),[d,v,s,R]);var F=function(e){k((0,j.he)(I,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,P.jsx)(c.ZP,{item:!0,xs:!0,children:(0,P.jsx)(Q,{children:"Monitoring"})}),(0,P.jsx)(c.ZP,{item:!0,xs:4,children:(0,P.jsx)(C.Z,{indicatorLabels:["Enabled","Disabled"],checked:o,value:"monitoring_status",id:"monitoring-status",name:"monitoring-status",onChange:function(e){var n=e.target.checked;R("prometheusEnabled",n)},description:""})})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("span",{className:n.descriptionText,children:"A small Prometheus will be deployed to keep metrics about the tenant."})}),(0,P.jsx)(c.ZP,{xs:12,children:(0,P.jsx)(ce.Z,{})}),(0,P.jsx)(c.ZP,{container:!0,spacing:1,children:o&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(A.Z,{id:"prometheus_storage_class",name:"prometheus_storage_class",onChange:function(e){R("prometheusSelectedStorageClass",e.target.value)},label:"Storage Class",value:d,options:w,disabled:w.length<1})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)("div",{className:n.multiContainer,children:(0,P.jsx)(b.Z,{type:"number",id:"prometheus_volume_size",name:"prometheus_volume_size",onChange:function(e){R("prometheusVolumeSize",e.target.value),F("prometheus_volume_size")},label:"Storage Size",overlayObject:(0,P.jsx)(Ee.Z,{id:"size-unit",onUnitChange:function(){},unitSelected:"Gi",unitsList:[{label:"Gi",value:"Gi"}],disabled:!0}),value:u,required:!0,error:I.prometheus_volume_size||"",min:"0"})})}),(0,P.jsxs)("fieldset",{className:"".concat(n.fieldGroup," ").concat(n.fieldSpaceTop),children:[(0,P.jsx)("legend",{className:n.descriptionText,children:"SecurityContext"}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"prometheus_securityContext_runAsUser",name:"prometheus_securityContext_runAsUser",onChange:function(e){R("prometheusSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsUser:e.target.value})),F("prometheus_securityContext_runAsUser")},label:"Run As User",value:_.runAsUser,required:!0,error:I.prometheus_securityContext_runAsUser||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"prometheus_securityContext_runAsGroup",name:"prometheus_securityContext_runAsGroup",onChange:function(e){R("prometheusSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsGroup:e.target.value})),F("prometheus_securityContext_runAsGroup")},label:"Run As Group",value:_.runAsGroup,required:!0,error:I.prometheus_securityContext_runAsGroup||"",min:"0"})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(b.Z,{type:"number",id:"prometheus_securityContext_fsGroup",name:"prometheus_securityContext_fsGroup",onChange:function(e){R("prometheusSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{fsGroup:e.target.value})),F("prometheus_securityContext_fsGroup")},label:"FsGroup",value:_.fsGroup,required:!0,error:I.prometheus_securityContext_fsGroup||"",min:"0"})}),(0,P.jsx)("div",{className:n.configSectionItem,children:(0,P.jsx)(A.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:_.fsGroupChangePolicy,onChange:function(e){R("prometheusSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,P.jsx)("br",{}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,P.jsx)("div",{className:"".concat(n.multiContainer," ").concat(n.fieldSpaceTop),children:(0,P.jsx)(C.Z,{value:"prometheusSecurityContextRunAsNonRoot",id:"prometheus_securityContext_runAsNonRoot",name:"prometheus_securityContext_runAsNonRoot",checked:_.runAsNonRoot,onChange:function(e){var n=e.target.checked;R("prometheusSecurityContext",(0,a.Z)((0,a.Z)({},_),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})})]})})),Oe=["nameTenant","tenantSize","configure","affinity","identityProvider","security","encryption"],Me=t(84218),Ve=function(){var e=(0,x.TL)(),n=(0,l.v9)((function(e){return e.createTenant.addingTenant})),t=(0,l.v9)((function(e){return e.createTenant.validPages})),r=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.selectedStorageClass})),a=!n&&""!==r&&Oe.every((function(e){return t.includes(e)}));return(0,P.jsx)(S.zxk,{id:"wizard-button-Create",variant:"callAction",color:"primary",onClick:function(){e((0,Me.e)())},disabled:!a,label:"Create"},"button-AddTenant-Create")},Ue=t(37798),qe=t(57689),Be=function(){var e=(0,x.TL)(),n=(0,qe.s0)(),t=(0,l.v9)((function(e){return e.createTenant.showNewCredentials})),r=(0,l.v9)((function(e){return e.createTenant.createdAccount}));return(0,P.jsx)(i.Fragment,{children:t&&(0,P.jsx)(Ue.default,{newServiceAccount:r,open:t,closeModal:function(){e((0,N.dS)()),n("/tenants")},entity:"Tenant"})})},He=t(47974),We=(0,F.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({pageBox:{border:"1px solid #EAEAEA"}},m.oO),m.AK),m.Je))})),Qe=function(){var e=(0,x.TL)(),n=(0,qe.s0)(),t=We(),a=(0,l.v9)(Ne.$4),s=(0,l.v9)((function(e){return e.createTenant.addingTenant})),d=(0,i.useState)(null),m=(0,r.Z)(d,2),h=m[0],p=m[1];(0,i.useEffect)((function(){var e=Se.cy.default;a&&0!==a.length&&Object.keys(Se.I8).forEach((function(n){a.includes(n)&&(e=o()(Se.I8,n,Se.cy.default))}));p(e)}),[a]);var g={label:"Cancel",type:"other",enabled:!0,action:function(){e((0,N.dS)()),n("/tenants")}},v={componentRender:(0,P.jsx)(Ve,{},"create-tenant")},y=[{label:"Setup",componentRender:(0,P.jsx)(Ke,{}),buttons:[g,v]},{label:"Configure",advancedOnly:!0,componentRender:(0,P.jsx)(I,{}),buttons:[g,v]},{label:"Images",advancedOnly:!0,componentRender:(0,P.jsx)(pe,{}),buttons:[g,v]},{label:"Pod Placement",advancedOnly:!0,componentRender:(0,P.jsx)(he,{}),buttons:[g,v]},{label:"Identity Provider",advancedOnly:!0,componentRender:(0,P.jsx)(q,{}),buttons:[g,v]},{label:"Security",advancedOnly:!0,componentRender:(0,P.jsx)(W,{}),buttons:[g,v]},{label:"Encryption",advancedOnly:!0,componentRender:(0,P.jsx)(ue,{}),buttons:[g,v]},{label:"Audit Log",advancedOnly:!1,componentRender:(0,P.jsx)(Le,{}),buttons:[g,v]},{label:"Monitoring",advancedOnly:!1,componentRender:(0,P.jsx)(ze,{}),buttons:[g,v]}];return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(Be,{}),(0,P.jsx)(He.Z,{label:(0,P.jsx)(S.hbI,{onClick:function(){e((0,N.dS)()),n("/tenants")},label:"Tenants"})}),(0,P.jsxs)(ge.Z,{children:[s&&(0,P.jsx)(c.ZP,{item:!0,xs:12,children:(0,P.jsx)(u.Z,{})}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:t.pageBox,children:(0,P.jsx)(f.Z,{wizardSteps:y})}),h===Se.cy.aws&&(0,P.jsx)(c.ZP,{item:!0,xs:12,style:{marginTop:16},children:(0,P.jsx)(S.KfX,{title:"EBS Volume Configuration.",iconComponent:(0,P.jsx)(S.idV,{}),help:(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)("b",{children:"Performance Optimized"}),": Uses the ",(0,P.jsx)("i",{children:"gp3"})," EBS storage class class configured at 1,000Mi/s throughput and 16,000 IOPS, however the minimum volume size for this type of EBS volume is ",(0,P.jsx)("b",{children:"32Gi"}),".",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),(0,P.jsx)("b",{children:"Storage Optimized"}),": Uses the ",(0,P.jsx)("i",{children:"sc1"})," EBS storage class, however the minimum volume size for this type of EBS volume is \xa0",(0,P.jsx)("b",{children:"16Ti"})," to unlock their maximum throughput speed of 250Mi/s."]})})})]})]})}},88070:function(e,n,t){t(72791);var r=t(78687),a=t(64554),i=t(75952),s=t(57689),o=t(80184),l=function(e){var n=e.icon,t=e.description;return(0,o.jsxs)(a.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[n," ",(0,o.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:t})]})};n.Z=function(){var e=(0,s.UO)(),n=e.tenantName||"",t=e.tenantNamespace||"",c=(0,r.v9)((function(e){return""!==t?t:""!==e.createTenant.fields.nameTenant.namespace?e.createTenant.fields.nameTenant.namespace:"<namespace>"})),u=(0,r.v9)((function(e){return""!==n?n:""!==e.createTenant.fields.nameTenant.tenantName?e.createTenant.fields.nameTenant.tenantName:"<tenant-name>"}));return(0,o.jsx)(a.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:(0,o.jsxs)(a.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,o.jsx)(l,{icon:(0,o.jsx)(i.Baz,{}),description:"TLS Certificates Warning"}),(0,o.jsxs)(a.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Automatic certificate generation is not enabled.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"If you wish to continue only with ",(0,o.jsx)("b",{children:"custom certificates"})," make sure they are valid for the following internode hostnames, i.e.:",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsxs)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:["minio.",c,(0,o.jsx)("br",{}),"minio.",c,".svc",(0,o.jsx)("br",{}),"minio.",c,".svc.<cluster domain>",(0,o.jsx)("br",{}),"*.",u,"-hl.",c,".svc.<cluster domain>",(0,o.jsx)("br",{}),"*.",c,".svc.<cluster domain>"]}),(0,o.jsx)("br",{}),"Replace ",(0,o.jsx)("em",{children:"<tenant-name>"}),","," ",(0,o.jsx)("em",{children:"<namespace>"})," and",(0,o.jsx)("em",{children:"<cluster domain>"})," with the actual values for your MinIO tenant.",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"You can learn more at our"," ",(0,o.jsx)("a",{href:"https://min.io/docs/minio/kubernetes/upstream/operations/network-encryption.html?ref=op#id5",target:"_blank",rel:"noopener",children:"documentation"}),"."]})]})})}},68456:function(e,n,t){t.d(n,{QT:function(){return o},YH:function(){return l},mo:function(){return s}});var r=t(61889),a=t(75952),i=t(80184),s=function(){return(0,i.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,i.jsx)(r.ZP,{children:(0,i.jsx)(a.gyG,{width:"16px",height:"16px"})}),(0,i.jsx)(r.ZP,{item:!0,children:"Open ID"})]})},o=function(){return(0,i.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,i.jsx)(r.ZP,{children:(0,i.jsx)(a.vcZ,{width:"16px",height:"16px"})}),(0,i.jsx)(r.ZP,{item:!0,children:"LDAP / Active Directory"})]})},l=function(){return(0,i.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,i.jsx)(r.ZP,{children:(0,i.jsx)(a.oyc,{width:"16px",height:"16px"})}),(0,i.jsx)(r.ZP,{item:!0,children:"Built-in"})]})}},22512:function(e,n,t){var r=t(72791),a=t(20890),i=t(11135),s=t(25787),o=t(80184);n.Z=(0,s.Z)((function(e){var n;return(0,i.Z)({errorBlock:{color:(null===(n=e.palette)||void 0===n?void 0:n.error.main)||"#C83B51"}})}))((function(e){var n=e.classes,t=e.errorMessage,i=e.withBreak,s=void 0===i||i;return(0,o.jsxs)(r.Fragment,{children:[s&&(0,o.jsx)("br",{}),(0,o.jsx)(a.Z,{component:"p",variant:"body1",className:n.errorBlock,children:t})]})}))},42419:function(e,n,t){var r=t(64836);n.Z=void 0;var a=r(t(45649)),i=t(80184),s=(0,a.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");n.Z=s},99663:function(e,n,t){var r=t(64836);n.Z=void 0;var a=r(t(45649)),i=t(80184),s=(0,a.default)((0,i.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");n.Z=s},86711:function(e,n,t){var r=t(64836);n.Z=void 0;var a=r(t(45649)),i=t(80184),s=(0,a.default)((0,i.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");n.Z=s},22918:function(e,n,t){var r=t(64836);n.Z=void 0;var a=r(t(45649)),i=t(80184),s=(0,a.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18zm0-9C6.67 9 6 8.33 6 7.5S6.67 6 7.5 6 9 6.67 9 7.5 8.33 9 7.5 9zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm0-9c-.83 0-1.5-.67-1.5-1.5S15.67 6 16.5 6s1.5.67 1.5 1.5S17.33 9 16.5 9z"}),"Casino");n.Z=s},27247:function(e,n,t){var r=t(64836);n.Z=void 0;var a=r(t(45649)),i=t(80184),s=(0,a.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");n.Z=s},94721:function(e,n,t){var r=t(63366),a=t(87462),i=t(72791),s=t(28182),o=t(94419),l=t(12065),c=t(66934),u=t(31402),d=t(90133),m=t(80184),f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],x=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,t.absolute&&n.absolute,n[t.variant],t.light&&n.light,"vertical"===t.orientation&&n.vertical,t.flexItem&&n.flexItem,t.children&&n.withChildren,t.children&&"vertical"===t.orientation&&n.withChildrenVertical,"right"===t.textAlign&&"vertical"!==t.orientation&&n.textAlignRight,"left"===t.textAlign&&"vertical"!==t.orientation&&n.textAlignLeft]}})((function(e){var n=e.theme,t=e.ownerState;return(0,a.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(n.vars||n).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:n.vars?"rgba(".concat(n.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(n.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:n.spacing(2),marginRight:n.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:n.spacing(1),marginBottom:n.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var n=e.theme,t=e.ownerState;return(0,a.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat((n.vars||n).palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(function(e){var n=e.theme,t=e.ownerState;return(0,a.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat((n.vars||n).palette.divider),transform:"translateX(0%)"}})}),(function(e){var n=e.ownerState;return(0,a.Z)({},"right"===n.textAlign&&"vertical"!==n.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===n.textAlign&&"vertical"!==n.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),h=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,n){var t=e.ownerState;return[n.wrapper,"vertical"===t.orientation&&n.wrapperVertical]}})((function(e){var n=e.theme,t=e.ownerState;return(0,a.Z)({display:"inline-block",paddingLeft:"calc(".concat(n.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(n.spacing(1)," * 1.2)")},"vertical"===t.orientation&&{paddingTop:"calc(".concat(n.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(n.spacing(1)," * 1.2)")})})),p=i.forwardRef((function(e,n){var t=(0,u.Z)({props:e,name:"MuiDivider"}),i=t.absolute,l=void 0!==i&&i,c=t.children,p=t.className,g=t.component,v=void 0===g?c?"div":"hr":g,y=t.flexItem,j=void 0!==y&&y,Z=t.light,C=void 0!==Z&&Z,b=t.orientation,_=void 0===b?"horizontal":b,S=t.role,N=void 0===S?"hr"!==v?"separator":void 0:S,A=t.textAlign,T=void 0===A?"center":A,P=t.variant,I=void 0===P?"fullWidth":P,k=(0,r.Z)(t,f),w=(0,a.Z)({},t,{absolute:l,component:v,flexItem:j,light:C,orientation:_,role:N,textAlign:T,variant:I}),R=function(e){var n=e.absolute,t=e.children,r=e.classes,a=e.flexItem,i=e.light,s=e.orientation,l=e.textAlign,c={root:["root",n&&"absolute",e.variant,i&&"light","vertical"===s&&"vertical",a&&"flexItem",t&&"withChildren",t&&"vertical"===s&&"withChildrenVertical","right"===l&&"vertical"!==s&&"textAlignRight","left"===l&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,o.Z)(c,d.V,r)}(w);return(0,m.jsx)(x,(0,a.Z)({as:v,className:(0,s.Z)(R.root,p),role:N,ref:n,ownerState:w},k,{children:c?(0,m.jsx)(h,{className:R.wrapper,ownerState:w,children:c}):null}))}));n.Z=p}}]);
//# sourceMappingURL=1275.772f5972.chunk.js.map