\ No newline at end of file
diff --git a/portal-ui/build/static/js/1199.39d0d82a.chunk.js.map b/portal-ui/build/static/js/1199.39d0d82a.chunk.js.map
deleted file mode 100644
index 8c3563156..000000000
--- a/portal-ui/build/static/js/1199.39d0d82a.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/1199.39d0d82a.chunk.js","mappings":"wVAwBMA,EAAc,SAAC,GAMd,IALLC,EAKI,EALJA,KACAC,EAII,EAJJA,YAKA,OACE,UAACC,EAAA,EAAD,CACEC,GAAI,CACFC,QAAS,OACT,cAAe,CACbC,YAAa,OACbC,OAAQ,OACRC,MAAO,OACPC,aAAc,SAPpB,UAWGR,EAAM,KACP,gBAAKS,MAAO,CAAEC,SAAU,OAAQC,UAAW,SAAUC,MAAO,WAA5D,SACGX,MAIR,EA4FD,EA3FiC,WAC/B,OACE,UAACC,EAAA,EAAD,CACEC,GAAI,CACFU,KAAM,EACNC,OAAQ,oBACRC,aAAc,MACdX,QAAS,OACTY,SAAU,SACVC,QAAS,OACTC,UAAW,CACTC,GAAI,QATV,WAaE,UAACjB,EAAA,EAAD,CACEC,GAAI,CACFO,SAAU,OACVU,WAAY,IACZhB,QAAS,OACTiB,WAAY,SACZb,aAAc,OACdc,cAAe,OAEf,cAAe,CACbhB,OAAQ,OACRC,MAAO,OACPF,YAAa,SAZnB,WAgBE,SAAC,MAAD,KACA,mEAEF,UAACH,EAAA,EAAD,CAAKC,GAAI,CAAEO,SAAU,OAAQF,aAAc,QAA3C,WACE,UAACN,EAAA,EAAD,CAAKC,GAAI,CAAEmB,cAAe,QAA1B,WACE,SAACvB,EAAD,CACEC,MAAM,SAAC,MAAD,IACNC,YAAW,6BAEb,SAACC,EAAA,EAAD,CAAKC,GAAI,CAAEoB,WAAY,QAAvB,gLAMF,UAACrB,EAAA,EAAD,CAAKC,GAAI,CAAEmB,cAAe,QAA1B,WACE,SAACvB,EAAD,CACEC,MAAM,SAAC,MAAD,IACNC,YAAW,+BAEb,SAAC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G,C,wBCjBH,SAASI,EAAgBC,GAItC,OAHAD,EAAkBE,OAAOC,eAAiBD,OAAOE,eAAeC,OAAS,SAAyBJ,GAChG,OAAOA,EAAEK,WAAaJ,OAAOE,eAAeH,EAC9C,EACOD,EAAgBC,EACzB,C,sGCJe,SAASM,EAAUC,EAAUC,GAC1C,GAA0B,oBAAfA,GAA4C,OAAfA,EACtC,MAAM,IAAIC,UAAU,sDAGtBF,EAASG,UAAYT,OAAOU,OAAOH,GAAcA,EAAWE,UAAW,CACrEE,YAAa,CACXnJ,MAAO8I,EACPM,UAAU,EACVC,cAAc,KAGlBb,OAAOc,eAAeR,EAAU,YAAa,CAC3CM,UAAU,IAERL,IAAY,OAAeD,EAAUC,EAC3C,C,kFCfe,SAASQ,EAA2BC,EAAMC,GACvD,GAAIA,IAA2B,YAAlB,OAAQA,IAAsC,oBAATA,GAChD,OAAOA,EACF,QAAa,IAATA,EACT,MAAM,IAAIT,UAAU,4DAGtB,OAAO,OAAsBQ,EAC/B,C","sources":["screens/Console/Account/AddServiceAccountHelpBox.tsx","screens/Console/Account/AddServiceAccountScreen.tsx","screens/Console/Common/CredentialsPrompt/CredentialItem.tsx","screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx","screens/Console/Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper.tsx","screens/Console/Common/ModalWrapper/ModalWrapper.tsx","screens/Console/Common/PanelTitle/PanelTitle.tsx","screens/Console/Common/TooltipWrapper/TooltipWrapper.tsx","../node_modules/@mui/icons-material/RemoveRedEye.js","../node_modules/@mui/icons-material/VisibilityOff.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport { Box } from \"@mui/material\";\nimport {\n HelpIconFilled,\n IAMPoliciesIcon,\n PasswordKeyIcon,\n ServiceAccountIcon,\n} from \"../../../icons\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n \n \n \n }\n description={`Create Service Accounts`}\n />\n \n Service Accounts inherit the policies explicitly attached to the\n parent user, and the policies attached to each group in which the\n parent user has membership.\n \n \n \n }\n description={`Assign Custom Credentials`}\n />\n \n Randomized access credentials are recommended, and provided by\n default. You may use your own custom Access Key and Secret Key by\n replacing the default values. After creation of any Service Account,\n you will be given the opportunity to view and download the account\n credentials.\n \n \n Service Accounts support programmatic access by applications. You\n cannot use a Service Account to log into the MinIO Console.\n \n \n \n }\n description={`Assign Access Policies`}\n />\n \n You can specify an optional JSON-formatted IAM policy to further\n restrict Service Account access to a subset of the actions and\n resources explicitly allowed for the parent user. Additional access\n beyond that of the parent user cannot be implemented through these\n policies.\n \n \n You cannot modify the optional Service Account IAM policy after\n saving.\n \n \n \n \n \n );\n};\n\nexport default AddServiceAccountHelpBox;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport { useNavigate } from \"react-router-dom\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n formFieldStyles,\n modalStyleUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box } from \"@mui/material\";\nimport {\n IAMPoliciesIcon,\n PasswordKeyIcon,\n ServiceAccountCredentialsIcon,\n} from \"../../../icons\";\nimport CodeMirrorWrapper from \"../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper\";\nimport PageHeader from \"../Common/PageHeader/PageHeader\";\nimport PageLayout from \"../Common/Layout/PageLayout\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport FormSwitchWrapper from \"../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport AddServiceAccountHelpBox from \"./AddServiceAccountHelpBox\";\nimport BackLink from \"../../../common/BackLink\";\nimport { NewServiceAccount } from \"../Common/CredentialsPrompt/types\";\nimport RemoveRedEyeIcon from \"@mui/icons-material/RemoveRedEye\";\nimport VisibilityOffIcon from \"@mui/icons-material/VisibilityOff\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport { ErrorResponseHandler } from \"../../../../src/common/types\";\nimport api from \"../../../../src/common/api\";\nimport CredentialsPrompt from \"../Common/CredentialsPrompt/CredentialsPrompt\";\n\nimport SectionTitle from \"../Common/SectionTitle\";\nimport { getRandomString } from \"../../../screens/Console/Tenants/utils\";\nimport PanelTitle from \"../Common/PanelTitle/PanelTitle\";\n\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\ninterface IAddServiceAccountProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n bottomContainer: {\n display: \"flex\",\n flexGrow: 1,\n alignItems: \"center\",\n margin: \"auto\",\n justifyContent: \"center\",\n \"& div\": {\n width: 150,\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n },\n ...formFieldStyles,\n ...modalStyleUtils,\n });\n\nconst AddServiceAccount = ({ classes }: IAddServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const [addSending, setAddSending] = useState(false);\n const [accessKey, setAccessKey] = useState(getRandomString(16));\n const [secretKey, setSecretKey] = useState(getRandomString(32));\n const [isRestrictedByPolicy, setIsRestrictedByPolicy] =\n useState(false);\n const [newServiceAccount, setNewServiceAccount] =\n useState(null);\n const [showPassword, setShowPassword] = useState(false);\n const [policyJSON, setPolicyJSON] = useState(\"\");\n\n useEffect(() => {\n if (addSending) {\n api\n .invoke(\"POST\", `/api/v1/service-account-credentials`, {\n policy: policyJSON,\n accessKey: accessKey,\n secretKey: secretKey,\n })\n .then((res) => {\n setAddSending(false);\n setNewServiceAccount({\n accessKey: res.accessKey || \"\",\n secretKey: res.secretKey || \"\",\n url: res.url || \"\",\n });\n })\n\n .catch((err: ErrorResponseHandler) => {\n setAddSending(false);\n dispatch(setErrorSnackMessage(err));\n });\n }\n }, [addSending, setAddSending, dispatch, policyJSON, accessKey, secretKey]);\n\n useEffect(() => {\n if (isRestrictedByPolicy) {\n api.invoke(\"GET\", `/api/v1/user/policy`).then((res: string) => {\n setPolicyJSON(JSON.stringify(JSON.parse(res), null, 4));\n });\n }\n }, [isRestrictedByPolicy]);\n\n const addServiceAccount = (e: React.FormEvent) => {\n e.preventDefault();\n setAddSending(true);\n };\n\n const resetForm = () => {\n setPolicyJSON(\"\");\n setNewServiceAccount(null);\n setAccessKey(\"\");\n setSecretKey(\"\");\n setShowPassword(false);\n };\n\n const closeCredentialsModal = () => {\n setNewServiceAccount(null);\n navigate(`${IAM_PAGES.ACCOUNT}`);\n };\n\n return (\n \n {newServiceAccount !== null && (\n {\n closeCredentialsModal();\n }}\n entity=\"Service Account\"\n />\n )}\n \n }\n />\n \n \n \n }>\n Create Service Account\n \n\n \n \n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(AddServiceAccount);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputAdornment, OutlinedInput } from \"@mui/material\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport { CopyIcon } from \"../../../../icons\";\nimport { fieldBasic } from \"../FormComponents/common/styleLibrary\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n container: {\n display: \"flex\",\n flexFlow: \"column\",\n padding: \"20px 0 8px 0\",\n },\n inputWithCopy: {\n \"& .MuiInputBase-root \": {\n width: \"100%\",\n background: \"#FBFAFA\",\n \"& .MuiInputBase-input\": {\n height: \".8rem\",\n },\n \"& .MuiInputAdornment-positionEnd\": {\n marginRight: \".5rem\",\n \"& .MuiButtonBase-root\": {\n height: \"2rem\",\n },\n },\n },\n \"& .MuiButtonBase-root .min-icon\": {\n width: \".8rem\",\n height: \".8rem\",\n },\n },\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontSize: \".8rem\",\n },\n });\n\nconst CredentialItem = ({\n label = \"\",\n value = \"\",\n classes = {},\n}: {\n label: string;\n value: string;\n classes: any;\n}) => {\n return (\n
\n
{label}:
\n
\n \n \n \n \n \n \n }\n />\n
\n
\n );\n};\n\nexport default withStyles(styles)(CredentialItem);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport get from \"lodash/get\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { NewServiceAccount } from \"./types\";\nimport ModalWrapper from \"../ModalWrapper/ModalWrapper\";\nimport Grid from \"@mui/material/Grid\";\nimport CredentialItem from \"./CredentialItem\";\nimport WarnIcon from \"../../../../icons/WarnIcon\";\nimport { DownloadIcon, ServiceAccountCredentialsIcon } from \"../../../../icons\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n warningBlock: {\n color: \"red\",\n fontSize: \".85rem\",\n margin: \".5rem 0 .5rem 0\",\n display: \"flex\",\n alignItems: \"center\",\n \"& svg \": {\n marginRight: \".3rem\",\n height: 16,\n width: 16,\n },\n },\n credentialTitle: {\n padding: \".8rem 0 0 0\",\n fontWeight: 600,\n fontSize: \".9rem\",\n },\n buttonContainer: {\n display: \"flex\",\n justifyContent: \"flex-end\",\n marginTop: \"1rem\",\n },\n credentialsPanel: {\n overflowY: \"auto\",\n maxHeight: 350,\n },\n promptTitle: {\n display: \"flex\",\n alignItems: \"center\",\n },\n buttonSpacer: {\n marginRight: \".9rem\",\n },\n });\n\ninterface ICredentialsPromptProps {\n classes: any;\n newServiceAccount: NewServiceAccount | null;\n open: boolean;\n entity: string;\n closeModal: () => void;\n}\n\nconst download = (filename: string, text: string) => {\n let element = document.createElement(\"a\");\n element.setAttribute(\"href\", \"data:text/plain;charset=utf-8,\" + text);\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n document.body.removeChild(element);\n};\n\nconst CredentialsPrompt = ({\n classes,\n newServiceAccount,\n open,\n closeModal,\n entity,\n}: ICredentialsPromptProps) => {\n if (!newServiceAccount) {\n return null;\n }\n const consoleCreds = get(newServiceAccount, \"console\", null);\n const idp = get(newServiceAccount, \"idp\", false);\n\n const downloadImport = () => {\n let consoleExtras = {};\n\n if (consoleCreds) {\n if (!Array.isArray(consoleCreds)) {\n consoleExtras = {\n url: consoleCreds.url,\n accessKey: consoleCreds.accessKey,\n secretKey: consoleCreds.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n } else {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n url: itemMap.url,\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n });\n consoleExtras = cCreds[0];\n }\n } else {\n consoleExtras = {\n url: newServiceAccount.url,\n accessKey: newServiceAccount.accessKey,\n secretKey: newServiceAccount.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n }\n\n download(\n \"credentials.json\",\n JSON.stringify({\n ...consoleExtras,\n })\n );\n };\n\n const downloaddAllCredentials = () => {\n let allCredentials = {};\n if (\n consoleCreds &&\n Array.isArray(consoleCreds) &&\n consoleCreds.length > 1\n ) {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n };\n });\n allCredentials = cCreds;\n }\n download(\n \"all_credentials.json\",\n JSON.stringify({\n ...allCredentials,\n })\n );\n };\n\n return (\n {\n closeModal();\n }}\n title={\n
\n
New {entity} Created
\n
\n }\n titleIcon={}\n >\n \n \n A new {entity} has been created with the following details:\n {!idp && consoleCreds && (\n \n \n
\n Please Login via the configured external identity provider.\n
\n ) : (\n
\n \n \n Write these down, as this is the only time the secret will be\n displayed.\n \n
\n )}\n \n \n {!idp && (\n <>\n \n }\n variant=\"callAction\"\n />\n \n\n {Array.isArray(consoleCreds) && consoleCreds.length > 1 && (\n \n }\n variant=\"callAction\"\n color=\"primary\"\n />\n \n )}\n >\n )}\n \n \n \n );\n};\n\nexport default withStyles(styles)(CredentialsPrompt);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box, InputLabel, Tooltip } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport { fieldBasic } from \"../common/styleLibrary\";\nimport { CopyIcon } from \"../../../../../icons\";\nimport { Button } from \"mds\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport CodeEditor from \"@uiw/react-textarea-code-editor\";\nimport TooltipWrapper from \"../../TooltipWrapper/TooltipWrapper\";\n\ninterface ICodeWrapper {\n value: string;\n label?: string;\n mode?: string;\n tooltip?: string;\n classes: any;\n onChange?: (editor: any, data: any, value: string) => any;\n onBeforeChange: (editor: any, data: any, value: string) => any;\n readOnly?: boolean;\n editorHeight?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n });\n\nconst CodeMirrorWrapper = ({\n value,\n label = \"\",\n tooltip = \"\",\n mode = \"json\",\n classes,\n onBeforeChange,\n readOnly = false,\n editorHeight = \"250px\",\n}: ICodeWrapper) => {\n return (\n \n \n \n {label}\n {tooltip !== \"\" && (\n
\n \n
\n \n
\n \n
\n )}\n \n \n\n \n {\n onBeforeChange(null, null, evn.target.value);\n }}\n id={\"code_wrapper\"}\n padding={15}\n style={{\n fontSize: 12,\n backgroundColor: \"#fefefe\",\n fontFamily:\n \"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace\",\n minHeight: editorHeight || \"initial\",\n color: \"#000000\",\n }}\n />\n \n \n \n \n \n }\n color={\"primary\"}\n variant={\"regular\"}\n />\n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(CodeMirrorWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { IconButtonProps } from \"@mui/material\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n padding: 0,\n margin: 0,\n fontSize: \".9rem\",\n },\n });\n\ninterface IPanelTitle extends IconButtonProps {\n classes: any;\n children: any;\n}\n\nconst PanelTitle = ({ classes, children }: IPanelTitle) => {\n return
{children}
;\n};\n\nexport default withStyles(styles)(PanelTitle);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z\"\n}), 'RemoveRedEye');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z\"\n}), 'VisibilityOff');\n\nexports.default = _default;","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}"],"names":["FeatureItem","icon","description","Box","sx","display","marginRight","height","width","marginBottom","style","fontSize","fontStyle","color","flex","border","borderRadius","flexFlow","padding","marginTop","xs","fontWeight","alignItems","paddingBottom","paddingTop","withStyles","theme","createStyles","bottomContainer","flexGrow","margin","justifyContent","formFieldStyles","modalStyleUtils","classes","dispatch","useAppDispatch","navigate","useNavigate","useState","addSending","setAddSending","getRandomString","accessKey","setAccessKey","secretKey","setSecretKey","isRestrictedByPolicy","setIsRestrictedByPolicy","newServiceAccount","setNewServiceAccount","showPassword","setShowPassword","policyJSON","setPolicyJSON","useEffect","api","policy","then","res","url","catch","err","setErrorSnackMessage","JSON","stringify","parse","Fragment","CredentialsPrompt","open","closeModal","IAM_PAGES","entity","Grid","item","PageHeader","label","BackLink","to","PageLayout","gap","gridTemplateColumns","md","SectionTitle","noValidate","autoComplete","onSubmit","e","preventDefault","addServiceAccount","container","spacing","className","stackedInputs","InputBoxWrapper","value","id","name","placeholder","onChange","target","type","overlayIcon","VisibilityOff","RemoveRedEye","overlayAction","FormSwitchWrapper","checked","event","tooltip","codeMirrorContainer","PanelTitle","formScrollable","CodeMirrorWrapper","onBeforeChange","editor","data","editorHeight","modalButtonBar","variant","onClick","inputWithCopy","background","inputLabel","fieldBasic","OutlinedInput","readOnly","endAdornment","InputAdornment","position","TooltipWrapper","text","onMouseDown","download","filename","element","document","createElement","setAttribute","body","appendChild","click","removeChild","warningBlock","credentialTitle","buttonContainer","credentialsPanel","overflowY","maxHeight","promptTitle","buttonSpacer","consoleCreds","get","idp","ModalWrapper","modalOpen","onClose","title","titleIcon","Array","isArray","map","credentialsPair","index","undefined","WarnIcon","consoleExtras","itemMap","path","length","allCredentials","mode","tooltipContainer","placement","overflow","language","evn","backgroundColor","fontFamily","minHeight","borderTop","paddingRight","marginLeft","deleteDialogStyles","content","customDialogSize","maxWidth","snackBarCommon","children","wideLimit","noContentPadding","openSnackbar","setOpenSnackbar","modalSnackMessage","useSelector","state","system","modalSnackBar","setModalSnackMessage","message","customSize","paper","fullWidth","detailedErrorMsg","scroll","reason","root","titleText","closeContainer","closeButton","disableRipple","size","isModal","snackBarModal","ContentProps","snackBar","errorSnackBar","autoHideDuration","errorProps","cloneElement","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","_getPrototypeOf","o","Object","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","TypeError","prototype","create","constructor","writable","configurable","defineProperty","_possibleConstructorReturn","self","call"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/1199.39d0d82a.chunk.js b/portal-ui/build/static/js/1199.503e1d6b.chunk.js
similarity index 70%
rename from portal-ui/build/static/js/1199.39d0d82a.chunk.js
rename to portal-ui/build/static/js/1199.503e1d6b.chunk.js
index 75ca31034..b6b3239f7 100644
--- a/portal-ui/build/static/js/1199.39d0d82a.chunk.js
+++ b/portal-ui/build/static/js/1199.503e1d6b.chunk.js
@@ -1,2 +1,2 @@
-"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1199],{65935:function(e,t,n){n.r(t),n.d(t,{default:function(){return B}});var i=n(29439),s=n(1413),r=n(72791),o=n(16871),c=n(75952),a=n(11135),l=n(25787),d=n(23814),u=n(61889),p=n(64554),x=n(38734),h=n(92217),m=n(32291),f=n(74794),y=n(21435),j=n(37516),g=n(80184),v=function(e){var t=e.icon,n=e.description;return(0,g.jsxs)(p.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[t," ",(0,g.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:n})]})},Z=function(){return(0,g.jsxs)(p.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:[(0,g.jsxs)(p.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,g.jsx)(x.M9A,{}),(0,g.jsx)("div",{children:"Learn more about Service Accounts"})]}),(0,g.jsxs)(p.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:[(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.nO6,{}),description:"Create Service Accounts"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"20px"},children:"Service Accounts inherit the policies explicitly attached to the parent user, and the policies attached to each group in which the parent user has membership."})]}),(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.tvm,{}),description:"Assign Custom Credentials"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"Randomized access credentials are recommended, and provided by default. You may use your own custom Access Key and Secret Key by replacing the default values. After creation of any Service Account, you will be given the opportunity to view and download the account credentials."}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"Service Accounts support programmatic access by applications. You cannot use a Service Account to log into the MinIO Console."})]}),(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.v42,{}),description:"Assign Access Policies"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"You can specify an optional JSON-formatted IAM policy to further restrict Service Account access to a subset of the actions and resources explicitly allowed for the parent user. Additional access beyond that of the parent user cannot be implemented through these policies."}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"You cannot modify the optional Service Account IAM policy after saving."})]})]}),(0,g.jsx)(p.Z,{sx:{display:"flex",flexFlow:"column"}})]})},b=n(84669),S=n(3579),A=n(20165),C=n(56087),w=n(81207),K=n(37798),N=n(50896),P=n(84741),M=n(60680),O=n(87995),k=n(25469),B=(0,l.Z)((function(e){return(0,a.Z)((0,s.Z)((0,s.Z)({bottomContainer:{display:"flex",flexGrow:1,alignItems:"center",margin:"auto",justifyContent:"center","& div":{width:150,"@media (max-width: 900px)":{flexFlow:"column"}}}},d.DF),d.ID))}))((function(e){var t=e.classes,n=(0,k.TL)(),s=(0,o.s0)(),a=(0,r.useState)(!1),l=(0,i.Z)(a,2),d=l[0],v=l[1],B=(0,r.useState)((0,P.zO)(16)),T=(0,i.Z)(B,2),z=T[0],I=T[1],E=(0,r.useState)((0,P.zO)(32)),F=(0,i.Z)(E,2),D=F[0],R=F[1],L=(0,r.useState)(!1),Y=(0,i.Z)(L,2),_=Y[0],J=Y[1],W=(0,r.useState)(null),H=(0,i.Z)(W,2),V=H[0],U=H[1],G=(0,r.useState)(!1),Q=(0,i.Z)(G,2),q=Q[0],X=Q[1],$=(0,r.useState)(""),ee=(0,i.Z)($,2),te=ee[0],ne=ee[1];(0,r.useEffect)((function(){d&&w.Z.invoke("POST","/api/v1/service-account-credentials",{policy:te,accessKey:z,secretKey:D}).then((function(e){v(!1),U({accessKey:e.accessKey||"",secretKey:e.secretKey||"",url:e.url||""})})).catch((function(e){v(!1),n((0,O.Ih)(e))}))}),[d,v,n,te,z,D]),(0,r.useEffect)((function(){_&&w.Z.invoke("GET","/api/v1/user/policy").then((function(e){ne(JSON.stringify(JSON.parse(e),null,4))}))}),[_]);return(0,g.jsxs)(r.Fragment,{children:[null!==V&&(0,g.jsx)(K.default,{newServiceAccount:V,open:null!==V,closeModal:function(){U(null),s("".concat(C.gA.ACCOUNT))},entity:"Service Account"}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,children:[(0,g.jsx)(m.Z,{label:(0,g.jsx)(b.Z,{to:C.gA.ACCOUNT,label:"Service Accounts"})}),(0,g.jsx)(f.Z,{children:(0,g.jsxs)(p.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,g.jsxs)(p.Z,{children:[(0,g.jsx)(N.Z,{icon:(0,g.jsx)(x.tVY,{}),children:"Create Service Account"}),(0,g.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault(),v(!0)}(e)},children:(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",sx:{marginTop:1},children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(u.ZP,{container:!0,item:!0,spacing:"20",children:(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsx)(u.ZP,{item:!0,xs:1,children:(0,g.jsx)(x.tvm,{})}),(0,g.jsx)(u.ZP,{item:!0,children:(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,children:[" ",(0,g.jsx)("div",{className:t.stackedInputs,children:(0,g.jsx)(y.Z,{value:z,label:"Access Key",id:"accessKey",name:"accessKey",placeholder:"Enter Access Key",onChange:function(e){I(e.target.value)}})})]}),(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)("div",{className:t.stackedInputs,children:(0,g.jsx)(y.Z,{value:D,label:"Secret Key",id:"secretKey",name:"secretKey",type:q?"text":"password",placeholder:"Enter Secret Key",onChange:function(e){R(e.target.value)},overlayIcon:q?(0,g.jsx)(A.Z,{}):(0,g.jsx)(S.Z,{}),overlayAction:function(){return X(!q)}})})})]})})]})})})}),(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsx)(u.ZP,{item:!0,xs:1,children:(0,g.jsx)(x.v42,{})}),(0,g.jsx)(u.ZP,{item:!0,xs:11,children:(0,g.jsx)(j.Z,{value:"serviceAccountPolicy",id:"serviceAccountPolicy",name:"serviceAccountPolicy",checked:_,onChange:function(e){J(e.target.checked)},label:"Restrict beyond user policy",tooltip:"You can specify an optional JSON-formatted IAM policy to further restrict Service Account access to a subset of the actions and resources explicitly allowed for the parent user. Additional access beyond that of the parent user cannot be implemented through these policies."})})]})}),_&&(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.codeMirrorContainer,children:[(0,g.jsx)("div",{children:(0,g.jsx)(M.Z,{children:"Current User Policy - edit the JSON to remove permissions for this service account"})}),(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:(0,g.jsx)(h.Z,{value:te,onBeforeChange:function(e,t,n){ne(n)},editorHeight:"350px"})})]})]}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,g.jsx)(c.z,{id:"clear",type:"button",variant:"regular",onClick:function(){ne(""),U(null),I(""),R(""),X(!1)},label:"Clear"}),(0,g.jsx)(c.z,{id:"create-sa",type:"submit",variant:"callAction",color:"primary",label:"Create"})]})]})})]}),(0,g.jsx)(Z,{})]})})]})]})}))},37798:function(e,t,n){n.r(t),n.d(t,{default:function(){return S}});var i=n(1413),s=n(72791),r=n(26181),o=n.n(r),c=n(75952),a=n(11135),l=n(25787),d=n(56028),u=n(61889),p=n(77196),x=n(63466),h=n(78029),m=n.n(h),f=n(38734),y=n(23814),j=n(27454),g=n(80184),v=(0,l.Z)((function(e){return(0,a.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,i.Z)((0,i.Z)({},y.YI.inputLabel),{},{fontSize:".8rem"})})}))((function(e){var t=e.label,n=void 0===t?"":t,i=e.value,s=void 0===i?"":i,r=e.classes,o=void 0===r?{}:r;return(0,g.jsxs)("div",{className:o.container,children:[(0,g.jsxs)("div",{className:o.inputLabel,children:[n,":"]}),(0,g.jsx)("div",{className:o.inputWithCopy,children:(0,g.jsx)(p.Z,{value:s,readOnly:!0,endAdornment:(0,g.jsx)(x.Z,{position:"end",children:(0,g.jsx)(j.Z,{tooltip:"Copy",children:(0,g.jsx)(m(),{text:s,children:(0,g.jsx)(c.z,{id:"copy-clipboard","aria-label":"copy",onClick:function(){},onMouseDown:function(){},style:{width:"28px",height:"28px",padding:"0px"},icon:(0,g.jsx)(f.TIy,{})})})})})})})]})})),Z=n(89357),b=function(e,t){var n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+t),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)},S=(0,l.Z)((function(e){return(0,a.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 t=e.classes,n=e.newServiceAccount,r=e.open,a=e.closeModal,l=e.entity;if(!n)return null;var p=o()(n,"console",null),x=o()(n,"idp",!1);return(0,g.jsx)(d.Z,{modalOpen:r,onClose:function(){a()},title:(0,g.jsx)("div",{className:t.promptTitle,children:(0,g.jsxs)("div",{children:["New ",l," Created"]})}),titleIcon:(0,g.jsx)(f.tVY,{}),children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:["A new ",l," has been created with the following details:",!x&&p&&(0,g.jsx)(s.Fragment,{children:(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.credentialsPanel,children:[(0,g.jsx)("div",{className:t.credentialTitle,children:"Console Credentials"}),Array.isArray(p)&&p.map((function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:e.accessKey}),(0,g.jsx)(v,{label:"Secret Key",value:e.secretKey})]})})),!Array.isArray(p)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:p.accessKey}),(0,g.jsx)(v,{label:"Secret Key",value:p.secretKey})]})]})}),(null===p||void 0===p)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:n.accessKey||""}),(0,g.jsx)(v,{label:"Secret Key",value:n.secretKey||""})]}),x?(0,g.jsx)("div",{className:t.warningBlock,children:"Please Login via the configured external identity provider."}):(0,g.jsxs)("div",{className:t.warningBlock,children:[(0,g.jsx)(Z.Z,{}),(0,g.jsx)("span",{children:"Write these down, as this is the only time the secret will be displayed."})]})]}),(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.buttonContainer,children:!x&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(j.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,g.jsx)(c.z,{id:"download-button",label:"Download for import",className:t.buttonSpacer,onClick:function(){var e={};p?e=Array.isArray(p)?p.map((function(e){return{url:e.url,accessKey:e.accessKey,secretKey:e.secretKey,api:"s3v4",path:"auto"}}))[0]:{url:p.url,accessKey:p.accessKey,secretKey:p.secretKey,api:"s3v4",path:"auto"}:e={url:n.url,accessKey:n.accessKey,secretKey:n.secretKey,api:"s3v4",path:"auto"};b("credentials.json",JSON.stringify((0,i.Z)({},e)))},icon:(0,g.jsx)(f._8t,{}),variant:"callAction"})}),Array.isArray(p)&&p.length>1&&(0,g.jsx)(j.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,g.jsx)(c.z,{id:"download-all-button",label:"Download all access credentials",className:t.buttonSpacer,onClick:function(){var e={};p&&Array.isArray(p)&&p.length>1&&(e=p.map((function(e){return{accessKey:e.accessKey,secretKey:e.secretKey}})));b("all_credentials.json",JSON.stringify((0,i.Z)({},e)))},icon:(0,g.jsx)(f._8t,{}),variant:"callAction",color:"primary"})})]})})]})})}))},92217:function(e,t,n){var i=n(1413),s=n(72791),r=n(61889),o=n(30829),c=n(20068),a=n(64554),l=n(11135),d=n(25787),u=n(84570),p=n(23814),x=n(38734),h=n(75952),m=n(78029),f=n.n(m),y=n(90932),j=n(27454),g=n(80184);t.Z=(0,d.Z)((function(e){return(0,l.Z)((0,i.Z)({},p.YI))}))((function(e){var t=e.value,n=e.label,i=void 0===n?"":n,l=e.tooltip,d=void 0===l?"":l,p=e.mode,m=void 0===p?"json":p,v=e.classes,Z=e.onBeforeChange,b=(e.readOnly,e.editorHeight),S=void 0===b?"250px":b;return(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,g.jsxs)(o.Z,{className:v.inputLabel,children:[(0,g.jsx)("span",{children:i}),""!==d&&(0,g.jsx)("div",{className:v.tooltipContainer,children:(0,g.jsx)(c.Z,{title:d,placement:"top-start",children:(0,g.jsx)("div",{className:v.tooltip,children:(0,g.jsx)(u.Z,{})})})})]})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,style:{maxHeight:S,overflow:"auto",border:"1px solid #eaeaea"},children:(0,g.jsx)(y.Z,{value:t,language:m,onChange:function(e){Z(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:S||"initial",color:"#000000"}})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,g.jsx)(a.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)(j.Z,{tooltip:"Copy to Clipboard",children:(0,g.jsx)(f(),{text:t,children:(0,g.jsx)(h.z,{type:"button",id:"copy-code-mirror",icon:(0,g.jsx)(x.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},56028:function(e,t,n){var i=n(29439),s=n(1413),r=n(72791),o=n(60364),c=n(13400),a=n(55646),l=n(5574),d=n(65661),u=n(39157),p=n(11135),x=n(25787),h=n(23814),m=n(25469),f=n(29823),y=n(28057),j=n(87995),g=n(80184);t.Z=(0,x.Z)((function(e){return(0,p.Z)((0,s.Z)((0,s.Z)({},h.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},h.sN))}))((function(e){var t=e.onClose,n=e.modalOpen,p=e.title,x=e.children,h=e.classes,v=e.wideLimit,Z=void 0===v||v,b=e.noContentPadding,S=e.titleIcon,A=void 0===S?null:S,C=(0,m.TL)(),w=(0,r.useState)(!1),K=(0,i.Z)(w,2),N=K[0],P=K[1],M=(0,o.v9)((function(e){return e.system.modalSnackBar}));(0,r.useEffect)((function(){C((0,j.MK)(""))}),[C]),(0,r.useEffect)((function(){if(M){if(""===M.message)return void P(!1);"error"!==M.type&&P(!0)}}),[M]);var O=Z?{classes:{paper:h.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},k="";return M&&(k=M.detailedErrorMsg,(""===M.detailedErrorMsg||M.detailedErrorMsg.length<5)&&(k=M.message)),(0,g.jsxs)(l.Z,(0,s.Z)((0,s.Z)({open:n,classes:h},O),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&t()},className:h.root,children:[(0,g.jsxs)(d.Z,{className:h.title,children:[(0,g.jsxs)("div",{className:h.titleText,children:[A," ",p]}),(0,g.jsx)("div",{className:h.closeContainer,children:(0,g.jsx)(c.Z,{"aria-label":"close",id:"close",className:h.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,g.jsx)(f.Z,{})})})]}),(0,g.jsx)(y.Z,{isModal:!0}),(0,g.jsx)(a.Z,{open:N,className:h.snackBarModal,onClose:function(){P(!1),C((0,j.MK)(""))},message:k,ContentProps:{className:"".concat(h.snackBar," ").concat(M&&"error"===M.type?h.errorSnackBar:"")},autoHideDuration:M&&"error"===M.type?1e4:5e3}),(0,g.jsx)(u.Z,{className:b?"":h.content,children:x})]}))}))},60680:function(e,t,n){n(72791);var i=n(11135),s=n(25787),r=n(80184);t.Z=(0,s.Z)((function(e){return(0,i.Z)({root:{padding:0,margin:0,fontSize:".9rem"}})}))((function(e){var t=e.classes,n=e.children;return(0,r.jsx)("h1",{className:t.root,children:n})}))},27454:function(e,t,n){var i=n(1413),s=n(72791),r=n(20068),o=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,c=e.errorProps,a=void 0===c?null:c;return(0,o.jsx)(r.Z,{title:t,children:(0,o.jsx)("span",{children:a?(0,s.cloneElement)(n,(0,i.Z)({},a)):n})})}},3579:function(e,t,n){var i=n(64836);t.Z=void 0;var s=i(n(45649)),r=n(80184),o=(0,s.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");t.Z=o},20165:function(e,t,n){var i=n(64836);t.Z=void 0;var s=i(n(45649)),r=n(80184),o=(0,s.default)((0,r.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.Z=o},61120:function(e,t,n){function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},60136:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(89611);function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.Z)(e,t)}},82963:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(71002),s=n(97326);function r(e,t){if(t&&("object"===(0,i.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.Z)(e)}}}]);
-//# sourceMappingURL=1199.39d0d82a.chunk.js.map
\ No newline at end of file
+"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[1199],{65935:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var i=n(29439),s=n(1413),r=n(72791),o=n(16871),a=n(75952),c=n(11135),l=n(25787),d=n(23814),u=n(61889),p=n(64554),x=n(38734),h=n(92217),m=n(32291),f=n(74794),y=n(21435),j=n(37516),g=n(80184),v=function(e){var t=e.icon,n=e.description;return(0,g.jsxs)(p.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[t," ",(0,g.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:n})]})},Z=function(){return(0,g.jsxs)(p.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:[(0,g.jsxs)(p.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px",paddingBottom:"20px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,g.jsx)(x.M9A,{}),(0,g.jsx)("div",{children:"Learn more about Service Accounts"})]}),(0,g.jsxs)(p.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:[(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.nO6,{}),description:"Create Service Accounts"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"20px"},children:"Service Accounts inherit the policies explicitly attached to the parent user, and the policies attached to each group in which the parent user has membership."})]}),(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.tvm,{}),description:"Assign Custom Credentials"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"Randomized access credentials are recommended, and provided by default. You may use your own custom Access Key and Secret Key by replacing the default values. After creation of any Service Account, you will be given the opportunity to view and download the account credentials."}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"Service Accounts support programmatic access by applications. You cannot use a Service Account to log into the MinIO Console."})]}),(0,g.jsxs)(p.Z,{sx:{paddingBottom:"20px"},children:[(0,g.jsx)(v,{icon:(0,g.jsx)(x.v42,{}),description:"Assign Access Policies"}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"You can specify an optional JSON-formatted IAM policy to further restrict Service Account access to a subset of the actions and resources explicitly allowed for the parent user. Additional access beyond that of the parent user cannot be implemented through these policies."}),(0,g.jsx)(p.Z,{sx:{paddingTop:"10px"},children:"You cannot modify the optional Service Account IAM policy after saving."})]})]}),(0,g.jsx)(p.Z,{sx:{display:"flex",flexFlow:"column"}})]})},b=n(84669),S=n(3579),A=n(20165),w=n(56087),C=n(81207),K=n(37798),N=n(50896),P=n(84741),O=n(60680),k=n(87995),B=n(25469),T=(0,l.Z)((function(e){return(0,c.Z)((0,s.Z)((0,s.Z)({bottomContainer:{display:"flex",flexGrow:1,alignItems:"center",margin:"auto",justifyContent:"center","& div":{width:150,"@media (max-width: 900px)":{flexFlow:"column"}}}},d.DF),d.ID))}))((function(e){var t=e.classes,n=(0,B.TL)(),s=(0,o.s0)(),c=(0,r.useState)(!1),l=(0,i.Z)(c,2),d=l[0],v=l[1],T=(0,r.useState)((0,P.zO)(16)),I=(0,i.Z)(T,2),M=I[0],z=I[1],E=(0,r.useState)((0,P.zO)(32)),F=(0,i.Z)(E,2),D=F[0],L=F[1],R=(0,r.useState)(!1),Y=(0,i.Z)(R,2),_=Y[0],J=Y[1],W=(0,r.useState)(null),H=(0,i.Z)(W,2),U=H[0],V=H[1],G=(0,r.useState)(!1),Q=(0,i.Z)(G,2),q=Q[0],X=Q[1],$=(0,r.useState)(""),ee=(0,i.Z)($,2),te=ee[0],ne=ee[1];(0,r.useEffect)((function(){d&&C.Z.invoke("POST","/api/v1/service-account-credentials",{policy:te,accessKey:M,secretKey:D}).then((function(e){v(!1),V({accessKey:e.accessKey||"",secretKey:e.secretKey||"",url:e.url||""})})).catch((function(e){v(!1),n((0,k.Ih)(e))}))}),[d,v,n,te,M,D]),(0,r.useEffect)((function(){_&&C.Z.invoke("GET","/api/v1/user/policy").then((function(e){ne(JSON.stringify(JSON.parse(e),null,4))}))}),[_]);return(0,g.jsxs)(r.Fragment,{children:[null!==U&&(0,g.jsx)(K.default,{newServiceAccount:U,open:null!==U,closeModal:function(){V(null),s("".concat(w.gA.ACCOUNT))},entity:"Service Account"}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,children:[(0,g.jsx)(m.Z,{label:(0,g.jsx)(b.Z,{to:w.gA.ACCOUNT,label:"Service Accounts"})}),(0,g.jsx)(f.Z,{children:(0,g.jsxs)(p.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,g.jsxs)(p.Z,{children:[(0,g.jsx)(N.Z,{icon:(0,g.jsx)(x.tVY,{}),children:"Create Service Account"}),(0,g.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){!function(e){e.preventDefault(),v(!0)}(e)},children:(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",sx:{marginTop:1},children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)(u.ZP,{container:!0,item:!0,spacing:"20",children:(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsx)(u.ZP,{item:!0,xs:1,children:(0,g.jsx)(x.tvm,{})}),(0,g.jsx)(u.ZP,{item:!0,children:(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,children:[" ",(0,g.jsx)("div",{className:t.stackedInputs,children:(0,g.jsx)(y.Z,{value:M,label:"Access Key",id:"accessKey",name:"accessKey",placeholder:"Enter Access Key",onChange:function(e){z(e.target.value)}})})]}),(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsx)("div",{className:t.stackedInputs,children:(0,g.jsx)(y.Z,{value:D,label:"Secret Key",id:"secretKey",name:"secretKey",type:q?"text":"password",placeholder:"Enter Secret Key",onChange:function(e){L(e.target.value)},overlayIcon:q?(0,g.jsx)(A.Z,{}):(0,g.jsx)(S.Z,{}),overlayAction:function(){return X(!q)}})})})]})})]})})})}),(0,g.jsxs)(u.ZP,{container:!0,item:!0,spacing:"20",children:[(0,g.jsx)(u.ZP,{item:!0,xs:12,children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsx)(u.ZP,{item:!0,xs:1,children:(0,g.jsx)(x.v42,{})}),(0,g.jsx)(u.ZP,{item:!0,xs:11,children:(0,g.jsx)(j.Z,{value:"serviceAccountPolicy",id:"serviceAccountPolicy",name:"serviceAccountPolicy",checked:_,onChange:function(e){J(e.target.checked)},label:"Restrict beyond user policy",tooltip:"You can specify an optional JSON-formatted IAM policy to further restrict Service Account access to a subset of the actions and resources explicitly allowed for the parent user. Additional access beyond that of the parent user cannot be implemented through these policies."})})]})}),_&&(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.codeMirrorContainer,children:[(0,g.jsx)("div",{children:(0,g.jsx)(O.Z,{children:"Current User Policy - edit the JSON to remove permissions for this service account"})}),(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:(0,g.jsx)(h.Z,{value:te,onBeforeChange:function(e,t,n){ne(n)},editorHeight:"350px"})})]})]}),(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,g.jsx)(a.z,{id:"clear",type:"button",variant:"regular",onClick:function(){ne(""),V(null),z(""),L(""),X(!1)},label:"Clear"}),(0,g.jsx)(a.z,{id:"create-sa",type:"submit",variant:"callAction",color:"primary",label:"Create"})]})]})})]}),(0,g.jsx)(Z,{})]})})]})]})}))},37798:function(e,t,n){n.r(t),n.d(t,{default:function(){return S}});var i=n(1413),s=n(72791),r=n(26181),o=n.n(r),a=n(75952),c=n(11135),l=n(25787),d=n(56028),u=n(61889),p=n(77196),x=n(63466),h=n(78029),m=n.n(h),f=n(38734),y=n(23814),j=n(27454),g=n(80184),v=(0,l.Z)((function(e){return(0,c.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,i.Z)((0,i.Z)({},y.YI.inputLabel),{},{fontSize:".8rem"})})}))((function(e){var t=e.label,n=void 0===t?"":t,i=e.value,s=void 0===i?"":i,r=e.classes,o=void 0===r?{}:r;return(0,g.jsxs)("div",{className:o.container,children:[(0,g.jsxs)("div",{className:o.inputLabel,children:[n,":"]}),(0,g.jsx)("div",{className:o.inputWithCopy,children:(0,g.jsx)(p.Z,{value:s,readOnly:!0,endAdornment:(0,g.jsx)(x.Z,{position:"end",children:(0,g.jsx)(j.Z,{tooltip:"Copy",children:(0,g.jsx)(m(),{text:s,children:(0,g.jsx)(a.z,{id:"copy-clipboard","aria-label":"copy",onClick:function(){},onMouseDown:function(){},style:{width:"28px",height:"28px",padding:"0px"},icon:(0,g.jsx)(f.TIy,{})})})})})})})]})})),Z=n(89357),b=function(e,t){var n=document.createElement("a");n.setAttribute("href","data:text/plain;charset=utf-8,"+t),n.setAttribute("download",e),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)},S=(0,l.Z)((function(e){return(0,c.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 t=e.classes,n=e.newServiceAccount,r=e.open,c=e.closeModal,l=e.entity;if(!n)return null;var p=o()(n,"console",null),x=o()(n,"idp",!1);return(0,g.jsx)(d.Z,{modalOpen:r,onClose:function(){c()},title:(0,g.jsx)("div",{className:t.promptTitle,children:(0,g.jsxs)("div",{children:["New ",l," Created"]})}),titleIcon:(0,g.jsx)(f.tVY,{}),children:(0,g.jsxs)(u.ZP,{container:!0,children:[(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.formScrollable,children:["A new ",l," has been created with the following details:",!x&&p&&(0,g.jsx)(s.Fragment,{children:(0,g.jsxs)(u.ZP,{item:!0,xs:12,className:t.credentialsPanel,children:[(0,g.jsx)("div",{className:t.credentialTitle,children:"Console Credentials"}),Array.isArray(p)&&p.map((function(e,t){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:e.accessKey}),(0,g.jsx)(v,{label:"Secret Key",value:e.secretKey})]})})),!Array.isArray(p)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:p.accessKey}),(0,g.jsx)(v,{label:"Secret Key",value:p.secretKey})]})]})}),(null===p||void 0===p)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(v,{label:"Access Key",value:n.accessKey||""}),(0,g.jsx)(v,{label:"Secret Key",value:n.secretKey||""})]}),x?(0,g.jsx)("div",{className:t.warningBlock,children:"Please Login via the configured external identity provider."}):(0,g.jsxs)("div",{className:t.warningBlock,children:[(0,g.jsx)(Z.Z,{}),(0,g.jsx)("span",{children:"Write these down, as this is the only time the secret will be displayed."})]})]}),(0,g.jsx)(u.ZP,{item:!0,xs:12,className:t.buttonContainer,children:!x&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(j.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,g.jsx)(a.z,{id:"download-button",label:"Download for import",className:t.buttonSpacer,onClick:function(){var e={};p?e=Array.isArray(p)?p.map((function(e){return{url:e.url,accessKey:e.accessKey,secretKey:e.secretKey,api:"s3v4",path:"auto"}}))[0]:{url:p.url,accessKey:p.accessKey,secretKey:p.secretKey,api:"s3v4",path:"auto"}:e={url:n.url,accessKey:n.accessKey,secretKey:n.secretKey,api:"s3v4",path:"auto"};b("credentials.json",JSON.stringify((0,i.Z)({},e)))},icon:(0,g.jsx)(f._8t,{}),variant:"callAction"})}),Array.isArray(p)&&p.length>1&&(0,g.jsx)(j.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,g.jsx)(a.z,{id:"download-all-button",label:"Download all access credentials",className:t.buttonSpacer,onClick:function(){var e={};p&&Array.isArray(p)&&p.length>1&&(e=p.map((function(e){return{accessKey:e.accessKey,secretKey:e.secretKey}})));b("all_credentials.json",JSON.stringify((0,i.Z)({},e)))},icon:(0,g.jsx)(f._8t,{}),variant:"callAction",color:"primary"})})]})})]})})}))},92217:function(e,t,n){var i=n(1413),s=n(72791),r=n(61889),o=n(30829),a=n(20068),c=n(64554),l=n(11135),d=n(25787),u=n(84570),p=n(23814),x=n(38734),h=n(75952),m=n(78029),f=n.n(m),y=n(90932),j=n(27454),g=n(80184);t.Z=(0,d.Z)((function(e){return(0,l.Z)((0,i.Z)({},p.YI))}))((function(e){var t=e.value,n=e.label,i=void 0===n?"":n,l=e.tooltip,d=void 0===l?"":l,p=e.mode,m=void 0===p?"json":p,v=e.classes,Z=e.onBeforeChange,b=(e.readOnly,e.editorHeight),S=void 0===b?"250px":b;return(0,g.jsxs)(s.Fragment,{children:[(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,g.jsxs)(o.Z,{className:v.inputLabel,children:[(0,g.jsx)("span",{children:i}),""!==d&&(0,g.jsx)("div",{className:v.tooltipContainer,children:(0,g.jsx)(a.Z,{title:d,placement:"top-start",children:(0,g.jsx)("div",{className:v.tooltip,children:(0,g.jsx)(u.Z,{})})})})]})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,style:{maxHeight:S,overflow:"auto",border:"1px solid #eaeaea"},children:(0,g.jsx)(y.Z,{value:t,language:m,onChange:function(e){Z(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:S||"initial",color:"#000000"}})}),(0,g.jsx)(r.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,g.jsx)(c.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)(j.Z,{tooltip:"Copy to Clipboard",children:(0,g.jsx)(f(),{text:t,children:(0,g.jsx)(h.z,{type:"button",id:"copy-code-mirror",icon:(0,g.jsx)(x.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},56028:function(e,t,n){var i=n(29439),s=n(1413),r=n(72791),o=n(60364),a=n(13400),c=n(55646),l=n(5574),d=n(65661),u=n(39157),p=n(11135),x=n(25787),h=n(23814),m=n(25469),f=n(29823),y=n(28057),j=n(87995),g=n(80184);t.Z=(0,x.Z)((function(e){return(0,p.Z)((0,s.Z)((0,s.Z)({},h.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},h.sN))}))((function(e){var t=e.onClose,n=e.modalOpen,p=e.title,x=e.children,h=e.classes,v=e.wideLimit,Z=void 0===v||v,b=e.noContentPadding,S=e.titleIcon,A=void 0===S?null:S,w=(0,m.TL)(),C=(0,r.useState)(!1),K=(0,i.Z)(C,2),N=K[0],P=K[1],O=(0,o.v9)((function(e){return e.system.modalSnackBar}));(0,r.useEffect)((function(){w((0,j.MK)(""))}),[w]),(0,r.useEffect)((function(){if(O){if(""===O.message)return void P(!1);"error"!==O.type&&P(!0)}}),[O]);var k=Z?{classes:{paper:h.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},B="";return O&&(B=O.detailedErrorMsg,(""===O.detailedErrorMsg||O.detailedErrorMsg.length<5)&&(B=O.message)),(0,g.jsxs)(l.Z,(0,s.Z)((0,s.Z)({open:n,classes:h},k),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&t()},className:h.root,children:[(0,g.jsxs)(d.Z,{className:h.title,children:[(0,g.jsxs)("div",{className:h.titleText,children:[A," ",p]}),(0,g.jsx)("div",{className:h.closeContainer,children:(0,g.jsx)(a.Z,{"aria-label":"close",id:"close",className:h.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,g.jsx)(f.Z,{})})})]}),(0,g.jsx)(y.Z,{isModal:!0}),(0,g.jsx)(c.Z,{open:N,className:h.snackBarModal,onClose:function(){P(!1),w((0,j.MK)(""))},message:B,ContentProps:{className:"".concat(h.snackBar," ").concat(O&&"error"===O.type?h.errorSnackBar:"")},autoHideDuration:O&&"error"===O.type?1e4:5e3}),(0,g.jsx)(u.Z,{className:b?"":h.content,children:x})]}))}))},60680:function(e,t,n){n(72791);var i=n(11135),s=n(25787),r=n(80184);t.Z=(0,s.Z)((function(e){return(0,i.Z)({root:{padding:0,margin:0,fontSize:".9rem"}})}))((function(e){var t=e.classes,n=e.children;return(0,r.jsx)("h1",{className:t.root,children:n})}))},27454:function(e,t,n){var i=n(1413),s=n(72791),r=n(20068),o=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,a=e.errorProps,c=void 0===a?null:a;return(0,o.jsx)(r.Z,{title:t,children:(0,o.jsx)("span",{children:c?(0,s.cloneElement)(n,(0,i.Z)({},c)):n})})}},61120:function(e,t,n){function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}n.d(t,{Z:function(){return i}})},60136:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(89611);function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.Z)(e,t)}},82963:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(71002),s=n(97326);function r(e,t){if(t&&("object"===(0,i.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.Z)(e)}}}]);
+//# sourceMappingURL=1199.503e1d6b.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/1199.503e1d6b.chunk.js.map b/portal-ui/build/static/js/1199.503e1d6b.chunk.js.map
new file mode 100644
index 000000000..6d0691563
--- /dev/null
+++ b/portal-ui/build/static/js/1199.503e1d6b.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/js/1199.503e1d6b.chunk.js","mappings":"wVAwBMA,EAAc,SAAC,GAMd,IALLC,EAKI,EALJA,KACAC,EAII,EAJJA,YAKA,OACE,UAACC,EAAA,EAAD,CACEC,GAAI,CACFC,QAAS,OACT,cAAe,CACbC,YAAa,OACbC,OAAQ,OACRC,MAAO,OACPC,aAAc,SAPpB,UAWGR,EAAM,KACP,gBAAKS,MAAO,CAAEC,SAAU,OAAQC,UAAW,SAAUC,MAAO,WAA5D,SACGX,MAIR,EA4FD,EA3FiC,WAC/B,OACE,UAACC,EAAA,EAAD,CACEC,GAAI,CACFU,KAAM,EACNC,OAAQ,oBACRC,aAAc,MACdX,QAAS,OACTY,SAAU,SACVC,QAAS,OACTC,UAAW,CACTC,GAAI,QATV,WAaE,UAACjB,EAAA,EAAD,CACEC,GAAI,CACFO,SAAU,OACVU,WAAY,IACZhB,QAAS,OACTiB,WAAY,SACZb,aAAc,OACdc,cAAe,OAEf,cAAe,CACbhB,OAAQ,OACRC,MAAO,OACPF,YAAa,SAZnB,WAgBE,SAAC,MAAD,KACA,mEAEF,UAACH,EAAA,EAAD,CAAKC,GAAI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AChG,OAAOA,EAAEK,WAAaJ,OAAOE,eAAeH,EAC9C,EACOD,EAAgBC,EACzB,C,sGCJe,SAASM,EAAUC,EAAUC,GAC1C,GAA0B,oBAAfA,GAA4C,OAAfA,EACtC,MAAM,IAAIC,UAAU,sDAGtBF,EAASG,UAAYT,OAAOU,OAAOH,GAAcA,EAAWE,UAAW,CACrEE,YAAa,CACX1I,MAAOqI,EACPM,UAAU,EACVC,cAAc,KAGlBb,OAAOc,eAAeR,EAAU,YAAa,CAC3CM,UAAU,IAERL,IAAY,OAAeD,EAAUC,EAC3C,C,kFCfe,SAASQ,EAA2BC,EAAMC,GACvD,GAAIA,IAA2B,YAAlB,OAAQA,IAAsC,oBAATA,GAChD,OAAOA,EACF,QAAa,IAATA,EACT,MAAM,IAAIT,UAAU,4DAGtB,OAAO,OAAsBQ,EAC/B,C","sources":["screens/Console/Account/AddServiceAccountHelpBox.tsx","screens/Console/Account/AddServiceAccountScreen.tsx","screens/Console/Common/CredentialsPrompt/CredentialItem.tsx","screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx","screens/Console/Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper.tsx","screens/Console/Common/ModalWrapper/ModalWrapper.tsx","screens/Console/Common/PanelTitle/PanelTitle.tsx","screens/Console/Common/TooltipWrapper/TooltipWrapper.tsx","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport { Box } from \"@mui/material\";\nimport {\n HelpIconFilled,\n IAMPoliciesIcon,\n PasswordKeyIcon,\n ServiceAccountIcon,\n} from \"../../../icons\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n \n \n \n }\n description={`Create Service Accounts`}\n />\n \n Service Accounts inherit the policies explicitly attached to the\n parent user, and the policies attached to each group in which the\n parent user has membership.\n \n \n \n }\n description={`Assign Custom Credentials`}\n />\n \n Randomized access credentials are recommended, and provided by\n default. You may use your own custom Access Key and Secret Key by\n replacing the default values. After creation of any Service Account,\n you will be given the opportunity to view and download the account\n credentials.\n \n \n Service Accounts support programmatic access by applications. You\n cannot use a Service Account to log into the MinIO Console.\n \n \n \n }\n description={`Assign Access Policies`}\n />\n \n You can specify an optional JSON-formatted IAM policy to further\n restrict Service Account access to a subset of the actions and\n resources explicitly allowed for the parent user. Additional access\n beyond that of the parent user cannot be implemented through these\n policies.\n \n \n You cannot modify the optional Service Account IAM policy after\n saving.\n \n \n \n \n \n );\n};\n\nexport default AddServiceAccountHelpBox;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport { useNavigate } from \"react-router-dom\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n formFieldStyles,\n modalStyleUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box } from \"@mui/material\";\nimport {\n IAMPoliciesIcon,\n PasswordKeyIcon,\n ServiceAccountCredentialsIcon,\n} from \"../../../icons\";\nimport CodeMirrorWrapper from \"../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper\";\nimport PageHeader from \"../Common/PageHeader/PageHeader\";\nimport PageLayout from \"../Common/Layout/PageLayout\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport FormSwitchWrapper from \"../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport AddServiceAccountHelpBox from \"./AddServiceAccountHelpBox\";\nimport BackLink from \"../../../common/BackLink\";\nimport { NewServiceAccount } from \"../Common/CredentialsPrompt/types\";\nimport RemoveRedEyeIcon from \"@mui/icons-material/RemoveRedEye\";\nimport VisibilityOffIcon from \"@mui/icons-material/VisibilityOff\";\nimport { IAM_PAGES } from \"../../../common/SecureComponent/permissions\";\nimport { ErrorResponseHandler } from \"../../../../src/common/types\";\nimport api from \"../../../../src/common/api\";\nimport CredentialsPrompt from \"../Common/CredentialsPrompt/CredentialsPrompt\";\n\nimport SectionTitle from \"../Common/SectionTitle\";\nimport { getRandomString } from \"../../../screens/Console/Tenants/utils\";\nimport PanelTitle from \"../Common/PanelTitle/PanelTitle\";\n\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\ninterface IAddServiceAccountProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n bottomContainer: {\n display: \"flex\",\n flexGrow: 1,\n alignItems: \"center\",\n margin: \"auto\",\n justifyContent: \"center\",\n \"& div\": {\n width: 150,\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n },\n ...formFieldStyles,\n ...modalStyleUtils,\n });\n\nconst AddServiceAccount = ({ classes }: IAddServiceAccountProps) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const [addSending, setAddSending] = useState(false);\n const [accessKey, setAccessKey] = useState(getRandomString(16));\n const [secretKey, setSecretKey] = useState(getRandomString(32));\n const [isRestrictedByPolicy, setIsRestrictedByPolicy] =\n useState(false);\n const [newServiceAccount, setNewServiceAccount] =\n useState(null);\n const [showPassword, setShowPassword] = useState(false);\n const [policyJSON, setPolicyJSON] = useState(\"\");\n\n useEffect(() => {\n if (addSending) {\n api\n .invoke(\"POST\", `/api/v1/service-account-credentials`, {\n policy: policyJSON,\n accessKey: accessKey,\n secretKey: secretKey,\n })\n .then((res) => {\n setAddSending(false);\n setNewServiceAccount({\n accessKey: res.accessKey || \"\",\n secretKey: res.secretKey || \"\",\n url: res.url || \"\",\n });\n })\n\n .catch((err: ErrorResponseHandler) => {\n setAddSending(false);\n dispatch(setErrorSnackMessage(err));\n });\n }\n }, [addSending, setAddSending, dispatch, policyJSON, accessKey, secretKey]);\n\n useEffect(() => {\n if (isRestrictedByPolicy) {\n api.invoke(\"GET\", `/api/v1/user/policy`).then((res: string) => {\n setPolicyJSON(JSON.stringify(JSON.parse(res), null, 4));\n });\n }\n }, [isRestrictedByPolicy]);\n\n const addServiceAccount = (e: React.FormEvent) => {\n e.preventDefault();\n setAddSending(true);\n };\n\n const resetForm = () => {\n setPolicyJSON(\"\");\n setNewServiceAccount(null);\n setAccessKey(\"\");\n setSecretKey(\"\");\n setShowPassword(false);\n };\n\n const closeCredentialsModal = () => {\n setNewServiceAccount(null);\n navigate(`${IAM_PAGES.ACCOUNT}`);\n };\n\n return (\n \n {newServiceAccount !== null && (\n {\n closeCredentialsModal();\n }}\n entity=\"Service Account\"\n />\n )}\n \n }\n />\n \n \n \n }>\n Create Service Account\n \n\n \n \n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(AddServiceAccount);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputAdornment, OutlinedInput } from \"@mui/material\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport { CopyIcon } from \"../../../../icons\";\nimport { fieldBasic } from \"../FormComponents/common/styleLibrary\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n container: {\n display: \"flex\",\n flexFlow: \"column\",\n padding: \"20px 0 8px 0\",\n },\n inputWithCopy: {\n \"& .MuiInputBase-root \": {\n width: \"100%\",\n background: \"#FBFAFA\",\n \"& .MuiInputBase-input\": {\n height: \".8rem\",\n },\n \"& .MuiInputAdornment-positionEnd\": {\n marginRight: \".5rem\",\n \"& .MuiButtonBase-root\": {\n height: \"2rem\",\n },\n },\n },\n \"& .MuiButtonBase-root .min-icon\": {\n width: \".8rem\",\n height: \".8rem\",\n },\n },\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontSize: \".8rem\",\n },\n });\n\nconst CredentialItem = ({\n label = \"\",\n value = \"\",\n classes = {},\n}: {\n label: string;\n value: string;\n classes: any;\n}) => {\n return (\n
\n
{label}:
\n
\n \n \n \n \n \n \n }\n />\n
\n
\n );\n};\n\nexport default withStyles(styles)(CredentialItem);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport get from \"lodash/get\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { NewServiceAccount } from \"./types\";\nimport ModalWrapper from \"../ModalWrapper/ModalWrapper\";\nimport Grid from \"@mui/material/Grid\";\nimport CredentialItem from \"./CredentialItem\";\nimport WarnIcon from \"../../../../icons/WarnIcon\";\nimport { DownloadIcon, ServiceAccountCredentialsIcon } from \"../../../../icons\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n warningBlock: {\n color: \"red\",\n fontSize: \".85rem\",\n margin: \".5rem 0 .5rem 0\",\n display: \"flex\",\n alignItems: \"center\",\n \"& svg \": {\n marginRight: \".3rem\",\n height: 16,\n width: 16,\n },\n },\n credentialTitle: {\n padding: \".8rem 0 0 0\",\n fontWeight: 600,\n fontSize: \".9rem\",\n },\n buttonContainer: {\n display: \"flex\",\n justifyContent: \"flex-end\",\n marginTop: \"1rem\",\n },\n credentialsPanel: {\n overflowY: \"auto\",\n maxHeight: 350,\n },\n promptTitle: {\n display: \"flex\",\n alignItems: \"center\",\n },\n buttonSpacer: {\n marginRight: \".9rem\",\n },\n });\n\ninterface ICredentialsPromptProps {\n classes: any;\n newServiceAccount: NewServiceAccount | null;\n open: boolean;\n entity: string;\n closeModal: () => void;\n}\n\nconst download = (filename: string, text: string) => {\n let element = document.createElement(\"a\");\n element.setAttribute(\"href\", \"data:text/plain;charset=utf-8,\" + text);\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n document.body.removeChild(element);\n};\n\nconst CredentialsPrompt = ({\n classes,\n newServiceAccount,\n open,\n closeModal,\n entity,\n}: ICredentialsPromptProps) => {\n if (!newServiceAccount) {\n return null;\n }\n const consoleCreds = get(newServiceAccount, \"console\", null);\n const idp = get(newServiceAccount, \"idp\", false);\n\n const downloadImport = () => {\n let consoleExtras = {};\n\n if (consoleCreds) {\n if (!Array.isArray(consoleCreds)) {\n consoleExtras = {\n url: consoleCreds.url,\n accessKey: consoleCreds.accessKey,\n secretKey: consoleCreds.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n } else {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n url: itemMap.url,\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n });\n consoleExtras = cCreds[0];\n }\n } else {\n consoleExtras = {\n url: newServiceAccount.url,\n accessKey: newServiceAccount.accessKey,\n secretKey: newServiceAccount.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n }\n\n download(\n \"credentials.json\",\n JSON.stringify({\n ...consoleExtras,\n })\n );\n };\n\n const downloaddAllCredentials = () => {\n let allCredentials = {};\n if (\n consoleCreds &&\n Array.isArray(consoleCreds) &&\n consoleCreds.length > 1\n ) {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n };\n });\n allCredentials = cCreds;\n }\n download(\n \"all_credentials.json\",\n JSON.stringify({\n ...allCredentials,\n })\n );\n };\n\n return (\n {\n closeModal();\n }}\n title={\n
\n
New {entity} Created
\n
\n }\n titleIcon={}\n >\n \n \n A new {entity} has been created with the following details:\n {!idp && consoleCreds && (\n \n \n
\n Please Login via the configured external identity provider.\n
\n ) : (\n
\n \n \n Write these down, as this is the only time the secret will be\n displayed.\n \n
\n )}\n \n \n {!idp && (\n <>\n \n }\n variant=\"callAction\"\n />\n \n\n {Array.isArray(consoleCreds) && consoleCreds.length > 1 && (\n \n }\n variant=\"callAction\"\n color=\"primary\"\n />\n \n )}\n >\n )}\n \n \n \n );\n};\n\nexport default withStyles(styles)(CredentialsPrompt);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box, InputLabel, Tooltip } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport { fieldBasic } from \"../common/styleLibrary\";\nimport { CopyIcon } from \"../../../../../icons\";\nimport { Button } from \"mds\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport CodeEditor from \"@uiw/react-textarea-code-editor\";\nimport TooltipWrapper from \"../../TooltipWrapper/TooltipWrapper\";\n\ninterface ICodeWrapper {\n value: string;\n label?: string;\n mode?: string;\n tooltip?: string;\n classes: any;\n onChange?: (editor: any, data: any, value: string) => any;\n onBeforeChange: (editor: any, data: any, value: string) => any;\n readOnly?: boolean;\n editorHeight?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n });\n\nconst CodeMirrorWrapper = ({\n value,\n label = \"\",\n tooltip = \"\",\n mode = \"json\",\n classes,\n onBeforeChange,\n readOnly = false,\n editorHeight = \"250px\",\n}: ICodeWrapper) => {\n return (\n \n \n \n {label}\n {tooltip !== \"\" && (\n
\n \n
\n \n
\n \n
\n )}\n \n \n\n \n {\n onBeforeChange(null, null, evn.target.value);\n }}\n id={\"code_wrapper\"}\n padding={15}\n style={{\n fontSize: 12,\n backgroundColor: \"#fefefe\",\n fontFamily:\n \"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace\",\n minHeight: editorHeight || \"initial\",\n color: \"#000000\",\n }}\n />\n \n \n \n \n \n }\n color={\"primary\"}\n variant={\"regular\"}\n />\n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(CodeMirrorWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { IconButtonProps } from \"@mui/material\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n padding: 0,\n margin: 0,\n fontSize: \".9rem\",\n },\n });\n\ninterface IPanelTitle extends IconButtonProps {\n classes: any;\n children: any;\n}\n\nconst PanelTitle = ({ classes, children }: IPanelTitle) => {\n return
{children}
;\n};\n\nexport default withStyles(styles)(PanelTitle);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}"],"names":["FeatureItem","icon","description","Box","sx","display","marginRight","height","width","marginBottom","style","fontSize","fontStyle","color","flex","border","borderRadius","flexFlow","padding","marginTop","xs","fontWeight","alignItems","paddingBottom","paddingTop","withStyles","theme","createStyles","bottomContainer","flexGrow","margin","justifyContent","formFieldStyles","modalStyleUtils","classes","dispatch","useAppDispatch","navigate","useNavigate","useState","addSending","setAddSending","getRandomString","accessKey","setAccessKey","secretKey","setSecretKey","isRestrictedByPolicy","setIsRestrictedByPolicy","newServiceAccount","setNewServiceAccount","showPassword","setShowPassword","policyJSON","setPolicyJSON","useEffect","api","policy","then","res","url","catch","err","setErrorSnackMessage","JSON","stringify","parse","Fragment","CredentialsPrompt","open","closeModal","IAM_PAGES","entity","Grid","item","PageHeader","label","BackLink","to","PageLayout","gap","gridTemplateColumns","md","SectionTitle","noValidate","autoComplete","onSubmit","e","preventDefault","addServiceAccount","container","spacing","className","stackedInputs","InputBoxWrapper","value","id","name","placeholder","onChange","target","type","overlayIcon","VisibilityOff","RemoveRedEye","overlayAction","FormSwitchWrapper","checked","event","tooltip","codeMirrorContainer","PanelTitle","formScrollable","CodeMirrorWrapper","onBeforeChange","editor","data","editorHeight","modalButtonBar","variant","onClick","inputWithCopy","background","inputLabel","fieldBasic","OutlinedInput","readOnly","endAdornment","InputAdornment","position","TooltipWrapper","text","onMouseDown","download","filename","element","document","createElement","setAttribute","body","appendChild","click","removeChild","warningBlock","credentialTitle","buttonContainer","credentialsPanel","overflowY","maxHeight","promptTitle","buttonSpacer","consoleCreds","get","idp","ModalWrapper","modalOpen","onClose","title","titleIcon","Array","isArray","map","credentialsPair","index","undefined","WarnIcon","consoleExtras","itemMap","path","length","allCredentials","mode","tooltipContainer","placement","overflow","language","evn","backgroundColor","fontFamily","minHeight","borderTop","paddingRight","marginLeft","deleteDialogStyles","content","customDialogSize","maxWidth","snackBarCommon","children","wideLimit","noContentPadding","openSnackbar","setOpenSnackbar","modalSnackMessage","useSelector","state","system","modalSnackBar","setModalSnackMessage","message","customSize","paper","fullWidth","detailedErrorMsg","scroll","reason","root","titleText","closeContainer","closeButton","disableRipple","size","isModal","snackBarModal","ContentProps","snackBar","errorSnackBar","autoHideDuration","errorProps","cloneElement","_getPrototypeOf","o","Object","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","TypeError","prototype","create","constructor","writable","configurable","defineProperty","_possibleConstructorReturn","self","call"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/2567.43362044.chunk.js b/portal-ui/build/static/js/2567.43362044.chunk.js
deleted file mode 100644
index 1c5a37555..000000000
--- a/portal-ui/build/static/js/2567.43362044.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2567],{26759:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");c.Z=n},70366:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");c.Z=n},13901:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"}),"CallToAction");c.Z=n},31292:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");c.Z=n},61809:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M8 19h3v3h2v-3h3l-4-4-4 4zm8-15h-3V1h-2v3H8l4 4 4-4zM4 9v2h16V9H4zm0 3h16v2H4z"}),"Compress");c.Z=n},67055:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"}),"FindReplace");c.Z=n},98095:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"}),"LocalHospital");c.Z=n},61248:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}),"LockOpen");c.Z=n},50521:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");c.Z=n},36909:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11c-.59-.57-1.07-1.25-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"PendingActions");c.Z=n},87569:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");c.Z=n},3579:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");c.Z=n},59314:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"}),"SdStorage");c.Z=n},97911:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");c.Z=n},20165:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");c.Z=n},21141:function(t,c,e){"use strict";var o=e(64836);c.Z=void 0;var a=o(e(45649)),r=e(80184),n=(0,a.default)((0,r.jsx)("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"VpnKey");c.Z=n},94454:function(t,c,e){"use strict";e.d(c,{Z:function(){return b}});var o=e(4942),a=e(63366),r=e(87462),n=e(72791),i=e(94419),v=e(12065),s=e(97278),l=e(76189),d=e(80184),h=(0,l.Z)((0,d.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=(0,l.Z)((0,d.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=(0,l.Z)((0,d.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-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),f=e(14036),m=e(31402),z=e(66934),Z=e(21217);function x(t){return(0,Z.Z)("MuiCheckbox",t)}var V=(0,e(75878).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),H=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],M=(0,z.ZP)(s.Z,{shouldForwardProp:function(t){return(0,z.FO)(t)||"classes"===t},name:"MuiCheckbox",slot:"Root",overridesResolver:function(t,c){var e=t.ownerState;return[c.root,e.indeterminate&&c.indeterminate,"default"!==e.color&&c["color".concat((0,f.Z)(e.color))]]}})((function(t){var c,e=t.theme,a=t.ownerState;return(0,r.Z)({color:(e.vars||e).palette.text.secondary},!a.disableRipple&&{"&:hover":{backgroundColor:e.vars?"rgba(".concat("default"===a.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.hoverOpacity,")"):(0,v.Fq)("default"===a.color?e.palette.action.active:e.palette[a.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==a.color&&(c={},(0,o.Z)(c,"&.".concat(V.checked,", &.").concat(V.indeterminate),{color:(e.vars||e).palette[a.color].main}),(0,o.Z)(c,"&.".concat(V.disabled),{color:(e.vars||e).palette.action.disabled}),c))})),C=(0,d.jsx)(u,{}),j=(0,d.jsx)(h,{}),k=(0,d.jsx)(p,{}),b=n.forwardRef((function(t,c){var e,o,v=(0,m.Z)({props:t,name:"MuiCheckbox"}),s=v.checkedIcon,l=void 0===s?C:s,h=v.color,u=void 0===h?"primary":h,p=v.icon,z=void 0===p?j:p,Z=v.indeterminate,V=void 0!==Z&&Z,b=v.indeterminateIcon,L=void 0===b?k:b,S=v.inputProps,y=v.size,w=void 0===y?"medium":y,g=(0,a.Z)(v,H),P=V?L:z,R=V?L:l,I=(0,r.Z)({},v,{color:u,indeterminate:V,size:w}),O=function(t){var c=t.classes,e=t.indeterminate,o=t.color,a={root:["root",e&&"indeterminate","color".concat((0,f.Z)(o))]},n=(0,i.Z)(a,x,c);return(0,r.Z)({},c,n)}(I);return(0,d.jsx)(M,(0,r.Z)({type:"checkbox",inputProps:(0,r.Z)({"data-indeterminate":V},S),icon:n.cloneElement(P,{fontSize:null!=(e=P.props.fontSize)?e:w}),checkedIcon:n.cloneElement(R,{fontSize:null!=(o=R.props.fontSize)?o:w}),ownerState:I,ref:c},g,{classes:O}))}))},26769:function(t,c,e){var o=e(39066),a=e(93629),r=e(43141);t.exports=function(t){return"string"==typeof t||!a(t)&&r(t)&&"[object String]"==o(t)}}}]);
-//# sourceMappingURL=2567.43362044.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/2567.43362044.chunk.js.map b/portal-ui/build/static/js/2567.43362044.chunk.js.map
deleted file mode 100644
index 5446f19d1..000000000
--- a/portal-ui/build/static/js/2567.43362044.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/2567.43362044.chunk.js","mappings":"iHAEIA,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpFC,EAAG,mBACD,iBAEJN,EAAQ,EAAUG,C,yCCfdL,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpFC,EAAG,mBACD,eAEJN,EAAQ,EAAUG,C,yCCfdL,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpFC,EAAG,iGACD,gBAEJN,EAAQ,EAAUG,C,yCCfdL,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAA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,CAAC,EAAGR,EAAO,CACrCK,MAAAA,EACAD,cAAAA,EACAuC,KAAAA,IAGIG,EA/EkB,SAAA5C,GACxB,IACE4C,EAGE5C,EAHF4C,QACA1C,EAEEF,EAFFE,cACAC,EACEH,EADFG,MAEI0C,EAAQ,CACZ5C,KAAM,CAAC,OAAQC,GAAiB,gBAA1B,gBAAmDE,EAAAA,EAAAA,GAAWD,MAEhE2C,GAAkBC,EAAAA,EAAAA,GAAeF,EAAO5D,EAAyB2D,GACvE,OAAOtC,EAAAA,EAAAA,GAAS,CAAC,EAAGsC,EAASE,EAC9B,CAoEiBE,CAAkBhD,GAClC,OAAoBhB,EAAAA,EAAAA,KAAKM,GAAcgB,EAAAA,EAAAA,GAAS,CAC9C2C,KAAM,WACNT,YAAYlC,EAAAA,EAAAA,GAAS,CACnB,qBAAsBJ,GACrBsC,GACHJ,KAAmBP,EAAAA,aAAmBO,EAAM,CAC1Cc,SAA0D,OAA/ClB,EAAuBI,EAAKtC,MAAMoD,UAAoBlB,EAAuBS,IAE1FN,YAA0BN,EAAAA,aAAmBS,EAAmB,CAC9DY,SAAwE,OAA7DjB,EAAwBK,EAAkBxC,MAAMoD,UAAoBjB,EAAwBQ,IAEzGzC,WAAYA,EACZ+B,IAAKA,GACJW,EAAO,CACRE,QAASA,IAEZ,G,wBClHD,IAAIO,EAAa5E,EAAQ,OACrB6E,EAAU7E,EAAQ,OAClB8E,EAAe9E,EAAQ,OA2B3B+E,EAAO9E,QALP,SAAkB+E,GAChB,MAAuB,iBAATA,IACVH,EAAQG,IAAUF,EAAaE,IArBrB,mBAqB+BJ,EAAWI,EACzD,C","sources":["../node_modules/@mui/icons-material/ArrowDropDown.js","../node_modules/@mui/icons-material/ArrowDropUp.js","../node_modules/@mui/icons-material/CallToAction.js","../node_modules/@mui/icons-material/Code.js","../node_modules/@mui/icons-material/Compress.js","../node_modules/@mui/icons-material/FindReplace.js","../node_modules/@mui/icons-material/LocalHospital.js","../node_modules/@mui/icons-material/LockOpen.js","../node_modules/@mui/icons-material/Login.js","../node_modules/@mui/icons-material/PendingActions.js","../node_modules/@mui/icons-material/Public.js","../node_modules/@mui/icons-material/RemoveRedEye.js","../node_modules/@mui/icons-material/SdStorage.js","../node_modules/@mui/icons-material/ViewColumn.js","../node_modules/@mui/icons-material/VisibilityOff.js","../node_modules/@mui/icons-material/VpnKey.js","../node_modules/@mui/material/internal/svg-icons/CheckBoxOutlineBlank.js","../node_modules/@mui/material/internal/svg-icons/CheckBox.js","../node_modules/@mui/material/internal/svg-icons/IndeterminateCheckBox.js","../node_modules/@mui/material/Checkbox/checkboxClasses.js","../node_modules/@mui/material/Checkbox/Checkbox.js","../node_modules/lodash/isString.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m7 10 5 5 5-5z\"\n}), 'ArrowDropDown');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m7 14 5-5 5 5z\"\n}), 'ArrowDropUp');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z\"\n}), 'CallToAction');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\"\n}), 'Code');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M8 19h3v3h2v-3h3l-4-4-4 4zm8-15h-3V1h-2v3H8l4 4 4-4zM4 9v2h16V9H4zm0 3h16v2H4z\"\n}), 'Compress');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z\"\n}), 'FindReplace');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z\"\n}), 'LocalHospital');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z\"\n}), 'LockOpen');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z\"\n}), 'Login');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11c-.59-.57-1.07-1.25-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z\"\n}), 'PendingActions');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z\"\n}), 'Public');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z\"\n}), 'RemoveRedEye');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z\"\n}), 'SdStorage');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z\"\n}), 'ViewColumn');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z\"\n}), 'VisibilityOff');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z\"\n}), 'VpnKey');\n\nexports.default = _default;","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n 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-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import { generateUtilityClass, generateUtilityClasses } from '@mui/base';\nexport function getCheckboxUtilityClass(slot) {\n return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary']);\nexport default checkboxClasses;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"checkedIcon\", \"color\", \"icon\", \"indeterminate\", \"indeterminateIcon\", \"inputProps\", \"size\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { refType } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport SwitchBase from '../internal/SwitchBase';\nimport CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank';\nimport CheckBoxIcon from '../internal/svg-icons/CheckBox';\nimport IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckBox';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n indeterminate,\n color\n } = ownerState;\n const slots = {\n root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`]\n };\n const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n\nconst CheckboxRoot = styled(SwitchBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiCheckbox',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.indeterminate && styles.indeterminate, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n color: (theme.vars || theme).palette.text.secondary\n}, !ownerState.disableRipple && {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n}, ownerState.color !== 'default' && {\n [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n color: (theme.vars || theme).palette[ownerState.color].main\n },\n [`&.${checkboxClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n}));\n\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\n\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\n\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\n\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n var _icon$props$fontSize, _indeterminateIcon$pr;\n\n const props = useThemeProps({\n props: inProps,\n name: 'MuiCheckbox'\n });\n\n const {\n checkedIcon = defaultCheckedIcon,\n color = 'primary',\n icon: iconProp = defaultIcon,\n indeterminate = false,\n indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n inputProps,\n size = 'medium'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const icon = indeterminate ? indeterminateIconProp : iconProp;\n const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n\n const ownerState = _extends({}, props, {\n color,\n indeterminate,\n size\n });\n\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CheckboxRoot, _extends({\n type: \"checkbox\",\n inputProps: _extends({\n 'data-indeterminate': indeterminate\n }, inputProps),\n icon: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: (_icon$props$fontSize = icon.props.fontSize) != null ? _icon$props$fontSize : size\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n fontSize: (_indeterminateIcon$pr = indeterminateIcon.props.fontSize) != null ? _indeterminateIcon$pr : size\n }),\n ownerState: ownerState,\n ref: ref\n }, other, {\n classes: classes\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.propTypes\n/* remove-proptypes */\n= {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n\n /**\n * The icon to display when the component is checked.\n * @default \n */\n checkedIcon: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).\n * @default 'primary'\n */\n color: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect is disabled.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * The icon to display when the component is unchecked.\n * @default \n */\n icon: PropTypes.node,\n\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n\n /**\n * If `true`, the component appears indeterminate.\n * This does not set the native input element to indeterminate due\n * to inconsistent behavior across browsers.\n * However, we set a `data-indeterminate` attribute on the `input`.\n * @default false\n */\n indeterminate: PropTypes.bool,\n\n /**\n * The icon to display when the component is indeterminate.\n * @default \n */\n indeterminateIcon: PropTypes.node,\n\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n\n /**\n * If `true`, the `input` element is required.\n */\n required: PropTypes.bool,\n\n /**\n * The size of the component.\n * `small` is equivalent to the dense checkbox styling.\n * @default 'medium'\n */\n size: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Checkbox;","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n"],"names":["_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","createSvgIcon","_jsx","getCheckboxUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","CheckboxRoot","styled","SwitchBase","shouldForwardProp","prop","rootShouldForwardProp","name","overridesResolver","props","styles","ownerState","root","indeterminate","color","capitalize","theme","_extends","vars","palette","text","secondary","disableRipple","backgroundColor","action","activeChannel","primary","mainChannel","hoverOpacity","alpha","active","main","checkboxClasses","disabled","defaultCheckedIcon","CheckBoxIcon","defaultIcon","CheckBoxOutlineBlankIcon","defaultIndeterminateIcon","IndeterminateCheckBoxIcon","React","inProps","ref","_icon$props$fontSize","_indeterminateIcon$pr","useThemeProps","checkedIcon","icon","iconProp","indeterminateIcon","indeterminateIconProp","inputProps","size","other","_objectWithoutPropertiesLoose","classes","slots","composedClasses","composeClasses","useUtilityClasses","type","fontSize","baseGetTag","isArray","isObjectLike","module","value"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/2763.02eb6b42.chunk.js.map b/portal-ui/build/static/js/2763.02eb6b42.chunk.js.map
deleted file mode 100644
index d99fd2407..000000000
--- a/portal-ui/build/static/js/2763.02eb6b42.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/2763.02eb6b42.chunk.js","mappings":"+VAoOA,GAAeA,EAAAA,EAAAA,IAhMA,SAACC,GAAD,OACbC,EAAAA,EAAAA,IAAa,gBACX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CD,EAAMI,EAAiBH,GACnBF,EAASM,QAAQL,IAAQ,GACxBE,OAAOI,UAAUC,qBAAqBC,KAAKV,EAAQE,KACxDlH,EAAOkH,GAAOF,EAAOE,GAEzB,CAEA,OAAOlH,CACT,C","sources":["screens/Console/Support/GetApiKeyModal.tsx","screens/Console/Support/ApiKeyRegister.tsx","screens/Console/Support/RegisterHelpBox.tsx","screens/Console/Support/RegistrationStatusBanner.tsx","screens/Console/Support/utils.tsx","screens/shared/tabs.tsx","../node_modules/@mui/icons-material/LockOutlined.js","../node_modules/@mui/icons-material/RemoveRedEye.js","../node_modules/@mui/icons-material/VisibilityOff.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport RemoveRedEyeIcon from \"@mui/icons-material/RemoveRedEye\";\nimport VisibilityOffIcon from \"@mui/icons-material/VisibilityOff\";\nimport LockOutlinedIcon from \"@mui/icons-material/LockOutlined\";\nimport {\n containerForHeader,\n spacingUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport React, { useState } from \"react\";\nimport { InfoIcon, UsersIcon } from \"../../../icons\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useAppDispatch } from \"../../../store\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { Box } from \"@mui/material\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n pageTitle: {\n fontSize: 18,\n marginBottom: 20,\n textAlign: \"center\",\n },\n pageSubTitle: {\n textAlign: \"center\",\n },\n sizedLabel: {\n minWidth: \"75px\",\n },\n ...containerForHeader(theme.spacing(4)),\n ...spacingUtils,\n });\n\ninterface IGetApiKeyModalProps {\n open: boolean;\n closeModal: () => void;\n onSet: (apiKey: string) => void;\n classes: any;\n}\n\nconst GetApiKeyModal = ({\n open,\n closeModal,\n classes,\n onSet,\n}: IGetApiKeyModalProps) => {\n const dispatch = useAppDispatch();\n const [email, setEmail] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [showPassword, setShowPassword] = useState(false);\n const [mfaToken, setMfaToken] = useState(\"\");\n const [subnetOTP, setSubnetOTP] = useState(\"\");\n\n const onError = (err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n closeModal();\n setEmail(\"\");\n setPassword(\"\");\n setShowPassword(false);\n setMfaToken(\"\");\n setSubnetOTP(\"\");\n };\n\n const onSuccess = (res: any) => {\n if (res.mfa_token) {\n setMfaToken(res.mfa_token);\n } else if (res.access_token) {\n invokeApi(\"GET\", `/api/v1/subnet/apikey?token=${res.access_token}`);\n } else {\n onSet(res.apiKey);\n closeModal();\n }\n };\n\n const [isLoading, invokeApi] = useApi(onSuccess, onError);\n\n const onConfirm = () => {\n if (mfaToken !== \"\") {\n invokeApi(\"POST\", \"/api/v1/subnet/login/mfa\", {\n username: email,\n otp: subnetOTP,\n mfa_token: mfaToken,\n });\n } else {\n invokeApi(\"POST\", \"/api/v1/subnet/login\", { username: email, password });\n }\n };\n\n const getDialogContent = () => {\n if (mfaToken === \"\") {\n return getCredentialsDialog();\n }\n return getMFADialog();\n };\n\n const getCredentialsDialog = () => {\n return (\n \n ) =>\n setEmail(event.target.value)\n }\n label=\"Email\"\n value={email}\n overlayIcon={}\n />\n ) =>\n setPassword(event.target.value)\n }\n label=\"Password\"\n type={showPassword ? \"text\" : \"password\"}\n value={password}\n overlayIcon={\n showPassword ? : \n }\n overlayAction={() => setShowPassword(!showPassword)}\n />\n \n );\n };\n\n const getMFADialog = () => {\n return (\n \n \n \n Two-Factor Authentication\n \n\n \n Please enter the 6-digit verification code that was sent to your\n email address. This code will be valid for 5 minutes.\n \n\n \n }\n id=\"subnet-otp\"\n name=\"subnet-otp\"\n onChange={(event: React.ChangeEvent) =>\n setSubnetOTP(event.target.value)\n }\n placeholder=\"\"\n label=\"\"\n value={subnetOTP}\n />\n \n \n \n \n );\n };\n\n return open ? (\n }\n isLoading={isLoading}\n cancelText={\"Cancel\"}\n onConfirm={onConfirm}\n onClose={closeModal}\n confirmButtonProps={{\n variant: \"callAction\",\n disabled: !email || !password || isLoading,\n hidden: true,\n }}\n cancelButtonProps={{\n disabled: isLoading,\n }}\n confirmationContent={getDialogContent()}\n />\n ) : null;\n};\n\nexport default withStyles(styles)(GetApiKeyModal);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Box } from \"@mui/material\";\nimport { Button } from \"mds\";\nimport { OnlineRegistrationIcon } from \"../../../icons\";\nimport { FormTitle } from \"./utils\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport GetApiKeyModal from \"./GetApiKeyModal\";\nimport RegisterHelpBox from \"./RegisterHelpBox\";\nimport { SubnetLoginRequest, SubnetLoginResponse } from \"../License/types\";\nimport api from \"../../../common/api\";\nimport { useAppDispatch } from \"../../../store\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport { useCallback } from \"react\";\nimport { spacingUtils } from \"../Common/FormComponents/common/styleLibrary\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\n\ninterface IApiKeyRegister {\n classes: any;\n registerEndpoint: string;\n afterRegister: () => void;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n sizedLabel: {\n minWidth: \"75px\",\n },\n ...spacingUtils,\n });\n\nconst ApiKeyRegister = ({\n classes,\n registerEndpoint,\n afterRegister,\n}: IApiKeyRegister) => {\n const [showApiKeyModal, setShowApiKeyModal] = useState(false);\n const [apiKey, setApiKey] = useState(\"\");\n const [loading, setLoading] = useState(false);\n const [fromModal, setFromModal] = useState(false);\n const dispatch = useAppDispatch();\n\n const onRegister = useCallback(() => {\n if (loading) {\n return;\n }\n setLoading(true);\n let request: SubnetLoginRequest = { apiKey };\n api\n .invoke(\"POST\", registerEndpoint, request)\n .then((resp: SubnetLoginResponse) => {\n setLoading(false);\n if (resp && resp.registered) {\n reset();\n afterRegister();\n }\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n reset();\n });\n }, [afterRegister, apiKey, dispatch, loading, registerEndpoint]);\n\n useEffect(() => {\n if (fromModal) {\n onRegister();\n }\n }, [fromModal, onRegister]);\n\n const reset = () => {\n setApiKey(\"\");\n setFromModal(false);\n };\n\n return (\n \n \n }\n title={`Register cluster with API key`}\n />\n \n \n \n \n Use your MinIO Subscription Network API Key to register this\n cluster.\n \n \n ) =>\n setApiKey(event.target.value)\n }\n label=\"API Key\"\n value={apiKey}\n />\n\n \n \n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(ApiKeyRegister);\n","import { Box } from \"@mui/material\";\nimport {\n CallHomeFeatureIcon,\n DiagnosticsFeatureIcon,\n HelpIconFilled,\n PerformanceFeatureIcon,\n} from \"../../../icons\";\nimport React from \"react\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n \n \n For airgap/firewalled environments it is possible to{\" \"}\n \n configure a proxy\n {\" \"}\n to connect to SUBNET .\n \n \n {displaySubnetProxy && (\n {}}\n label=\"\"\n value={proxyConfigurationCommand}\n overlayIcon={}\n extraInputProps={{\n readOnly: true,\n }}\n overlayAction={() =>\n navigator.clipboard.writeText(proxyConfigurationCommand)\n }\n />\n )}\n \n \n \n ) => {\n setDisplaySubnetProxy(event.target.checked);\n }}\n />\n \n \n \n );\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n index: any;\n value: any;\n}\n\nexport const TabPanel = (props: TabPanelProps) => {\n const { children, value, index, ...other } = props;\n\n return (\n
\n {value === index && {children}}\n
\n );\n};\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z\"\n}), 'LockOutlined');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z\"\n}), 'RemoveRedEye');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z\"\n}), 'VisibilityOff');\n\nexports.default = _default;","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}"],"names":["withStyles","theme","createStyles","pageTitle","fontSize","marginBottom","textAlign","pageSubTitle","sizedLabel","minWidth","containerForHeader","spacing","spacingUtils","open","closeModal","classes","onSet","dispatch","useAppDispatch","useState","email","setEmail","password","setPassword","showPassword","setShowPassword","mfaToken","setMfaToken","subnetOTP","setSubnetOTP","useApi","res","mfa_token","access_token","invokeApi","apiKey","err","setErrorSnackMessage","isLoading","getCredentialsDialog","Box","sx","width","InputBoxWrapper","className","spacerBottom","inputLabel","id","name","onChange","event","target","value","label","overlayIcon","type","VisibilityOff","RemoveRedEye","overlayAction","getMFADialog","display","flexFlow","flex","marginTop","LockOutlined","placeholder","alignItems","justifyContent","ConfirmDialog","title","confirmText","isOpen","titleIcon","cancelText","onConfirm","username","otp","onClose","confirmButtonProps","variant","disabled","hidden","cancelButtonProps","confirmationContent","registerEndpoint","afterRegister","showApiKeyModal","setShowApiKeyModal","setApiKey","loading","setLoading","fromModal","setFromModal","onRegister","useCallback","request","api","then","resp","registered","reset","catch","useEffect","Fragment","marginLeft","fontWeight","icon","xs","md","spacerRight","onClick","trim","length","RegisterHelpBox","FeatureItem","description","marginRight","height","style","fontStyle","color","hasMargin","border","borderRadius","padding","sm","position","top","left","backgroundColor","fill","FormTitle","ClusterRegistered","linkClass","item","cursor","href","ProxyConfiguration","proxyConfigurationCommand","displaySubnetProxy","setDisplaySubnetProxy","extraInputProps","readOnly","navigator","clipboard","writeText","checked","TabPanel","props","children","index","other","role","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","_objectWithoutProperties","source","excluded","key","i","Object","getOwnPropertySymbols","sourceSymbolKeys","indexOf","prototype","propertyIsEnumerable","call"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/2763.02eb6b42.chunk.js b/portal-ui/build/static/js/2763.2e00e8e0.chunk.js
similarity index 55%
rename from portal-ui/build/static/js/2763.02eb6b42.chunk.js
rename to portal-ui/build/static/js/2763.2e00e8e0.chunk.js
index e976fad9c..e73d89bba 100644
--- a/portal-ui/build/static/js/2763.02eb6b42.chunk.js
+++ b/portal-ui/build/static/js/2763.2e00e8e0.chunk.js
@@ -1,2 +1,2 @@
-"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2763],{13438:function(e,n,t){t.d(n,{Z:function(){return z}});var i=t(29439),s=t(1413),r=t(72791),a=t(64554),o=t(75952),l=t(38734),c=t(79786),x=t(21435),d=t(11135),u=t(25787),f=t(3579),p=t(20165),m=t(30403),h=t(23814),g=t(23508),j=t(9505),Z=t(25469),b=t(87995),v=t(80184),y=(0,u.Z)((function(e){return(0,d.Z)((0,s.Z)((0,s.Z)({pageTitle:{fontSize:18,marginBottom:20,textAlign:"center"},pageSubTitle:{textAlign:"center"},sizedLabel:{minWidth:"75px"}},(0,h.Bz)(e.spacing(4))),h.bK))}))((function(e){var n=e.open,t=e.closeModal,s=e.classes,o=e.onSet,c=(0,Z.TL)(),d=(0,r.useState)(""),u=(0,i.Z)(d,2),h=u[0],y=u[1],w=(0,r.useState)(""),S=(0,i.Z)(w,2),z=S[0],C=S[1],k=(0,r.useState)(!1),I=(0,i.Z)(k,2),T=I[0],P=I[1],B=(0,r.useState)(""),L=(0,i.Z)(B,2),N=L[0],M=L[1],O=(0,r.useState)(""),A=(0,i.Z)(O,2),F=A[0],R=A[1],E=(0,j.Z)((function(e){e.mfa_token?M(e.mfa_token):e.access_token?K("GET","/api/v1/subnet/apikey?token=".concat(e.access_token)):(o(e.apiKey),t())}),(function(e){c((0,b.Ih)(e)),t(),y(""),C(""),P(!1),M(""),R("")})),W=(0,i.Z)(E,2),_=W[0],K=W[1],U=function(){return(0,v.jsxs)(a.Z,{sx:{width:500},children:[(0,v.jsx)(x.Z,{className:s.spacerBottom,classes:{inputLabel:s.sizedLabel},id:"subnet-email",name:"subnet-email",onChange:function(e){return y(e.target.value)},label:"Email",value:h,overlayIcon:(0,v.jsx)(l.oyc,{})}),(0,v.jsx)(x.Z,{className:s.spacerBottom,classes:{inputLabel:s.sizedLabel},id:"subnet-password",name:"subnet-password",onChange:function(e){return C(e.target.value)},label:"Password",type:T?"text":"password",value:z,overlayIcon:T?(0,v.jsx)(p.Z,{}):(0,v.jsx)(f.Z,{}),overlayAction:function(){return P(!T)}})]})},H=function(){return(0,v.jsx)(a.Z,{sx:{display:"flex"},children:(0,v.jsxs)(a.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,v.jsx)(a.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Two-Factor Authentication"}),(0,v.jsx)(a.Z,{children:"Please enter the 6-digit verification code that was sent to your email address. This code will be valid for 5 minutes."}),(0,v.jsx)(a.Z,{sx:{flex:"1",marginTop:"30px"},children:(0,v.jsx)(x.Z,{overlayIcon:(0,v.jsx)(m.Z,{}),id:"subnet-otp",name:"subnet-otp",onChange:function(e){return R(e.target.value)},placeholder:"",label:"",value:F})}),(0,v.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end"}})]})})};return n?(0,v.jsx)(g.Z,{title:"Get API Key from SUBNET",confirmText:"Get API Key",isOpen:n,titleIcon:(0,v.jsx)(l.szr,{}),isLoading:_,cancelText:"Cancel",onConfirm:function(){""!==N?K("POST","/api/v1/subnet/login/mfa",{username:h,otp:F,mfa_token:N}):K("POST","/api/v1/subnet/login",{username:h,password:z})},onClose:t,confirmButtonProps:{variant:"callAction",disabled:!h||!z||_,hidden:!0},cancelButtonProps:{disabled:_},confirmationContent:""===N?U():H()}):null})),w=t(65810),S=t(81207),z=(0,u.Z)((function(e){return(0,d.Z)((0,s.Z)({sizedLabel:{minWidth:"75px"}},h.bK))}))((function(e){var n=e.classes,t=e.registerEndpoint,s=e.afterRegister,d=(0,r.useState)(!1),u=(0,i.Z)(d,2),f=u[0],p=u[1],m=(0,r.useState)(""),h=(0,i.Z)(m,2),g=h[0],j=h[1],z=(0,r.useState)(!1),C=(0,i.Z)(z,2),k=C[0],I=C[1],T=(0,r.useState)(!1),P=(0,i.Z)(T,2),B=P[0],L=P[1],N=(0,Z.TL)(),M=(0,r.useCallback)((function(){if(!k){I(!0);var e={apiKey:g};S.Z.invoke("POST",t,e).then((function(e){I(!1),e&&e.registered&&(O(),s())})).catch((function(e){N((0,b.Ih)(e)),I(!1),O()}))}}),[s,g,N,k,t]);(0,r.useEffect)((function(){B&&M()}),[B,M]);var O=function(){j(""),L(!1)};return(0,v.jsxs)(r.Fragment,{children:[(0,v.jsx)(a.Z,{sx:{"& .title-text":{marginLeft:"27px",fontWeight:600}},children:(0,v.jsx)(c.vw,{icon:(0,v.jsx)(l.dRy,{}),title:"Register cluster with API key"})}),(0,v.jsxs)(a.Z,{sx:{display:"flex",flexFlow:{xs:"column",md:"row"}},children:[(0,v.jsxs)(a.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,v.jsx)(a.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Use your MinIO Subscription Network API Key to register this cluster."}),(0,v.jsxs)(a.Z,{sx:{flex:"1"},children:[(0,v.jsx)(x.Z,{className:n.spacerBottom,classes:{inputLabel:n.sizedLabel},id:"api-key",name:"api-key",onChange:function(e){return j(e.target.value)},label:"API Key",value:g}),(0,v.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,v.jsx)(o.z,{id:"get-from-subnet",variant:"regular",className:n.spacerRight,disabled:k,onClick:function(){return p(!0)},label:"Get from SUBNET"}),(0,v.jsx)(o.z,{id:"register",type:"submit",variant:"callAction",disabled:k||0===g.trim().length,onClick:function(){return M()},label:"Register"}),(0,v.jsx)(y,{open:f,closeModal:function(){return p(!1)},onSet:function(e){j(e),L(!0)}})]})]})]}),(0,v.jsx)(w.Z,{})]})]})}))},65810:function(e,n,t){var i=t(64554),s=t(38734),r=(t(72791),t(80184)),a=function(e){var n=e.icon,t=e.description;return(0,r.jsxs)(i.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[n," ",(0,r.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:t})]})};n.Z=function(e){var n=e.hasMargin,t=void 0===n||n;return(0,r.jsxs)(i.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginLeft:{xs:"0px",sm:"0px",md:t?"30px":""},marginTop:{xs:"0px",sm:t?"30px":""}},children:[(0,r.jsxs)(i.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,r.jsx)(s.M9A,{}),(0,r.jsx)("div",{children:"Why should I register?"})]}),(0,r.jsx)(i.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:"Registering this cluster with the MinIO Subscription Network (SUBNET) provides the following benefits in addition to the commercial license and SLA backed support."}),(0,r.jsxs)(i.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,r.jsx)(a,{icon:(0,r.jsx)(s._qw,{}),description:"Call Home Monitoring"}),(0,r.jsx)(a,{icon:(0,r.jsx)(s.toM,{}),description:"Health Diagnostics"}),(0,r.jsx)(a,{icon:(0,r.jsx)(s.Fsz,{}),description:"Performance Analysis"})]})]})}},74440:function(e,n,t){t(72791);var i=t(64554),s=t(97506),r=t(80184);n.Z=function(e){var n=e.email,t=void 0===n?"":n;return(0,r.jsxs)(i.Z,{sx:{height:"67px",color:"#ffffff",display:"flex",position:"relative",top:"-30px",left:"-32px",width:"calc(100% + 64px)",alignItems:"center",justifyContent:"space-between",backgroundColor:"#2781B0",padding:"0 25px 0 25px","& .registered-box, .reg-badge-box":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"& .reg-badge-box":{marginLeft:"20px","& .min-icon":{fill:"#2781B0"}}},children:[(0,r.jsxs)(i.Z,{className:"registered-box",children:[(0,r.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Register status:"}),(0,r.jsxs)(i.Z,{className:"reg-badge-box",children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(i.Z,{sx:{fontWeight:600},children:"Registered"})]})]}),(0,r.jsxs)(i.Z,{className:"registered-acc-box",sx:{alignItems:"center",justifyContent:"flex-start",display:{sm:"flex",xs:"none"}},children:[(0,r.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Registered to:"}),(0,r.jsx)(i.Z,{sx:{marginLeft:"8px",fontWeight:600},children:t})]})]})}},79786:function(e,n,t){t.d(n,{B4:function(){return m},vw:function(){return f},xr:function(){return p}});var i=t(29439),s=t(64554),r=t(61889),a=t(50533),o=t(72791),l=t(38734),c=t(37516),x=t(21435),d=t(74440),u=t(80184),f=function(e){var n=e.icon,t=void 0===n?null:n,i=e.title;return(0,u.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[t,(0,u.jsx)("div",{className:"title-text",children:i})]})},p=function(e){var n=e.email,t=e.linkClass;return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)(d.Z,{email:n}),(0,u.jsx)(r.ZP,{item:!0,xs:12,marginTop:"25px",children:(0,u.jsxs)(s.Z,{sx:{padding:"20px","& a":{color:"#2781B0",cursor:"pointer"}},children:["Login to"," ",(0,u.jsx)(a.Z,{href:"https://subnet.min.io",target:"_blank",className:t,children:"SUBNET"})," ","to avail support for this MinIO cluster"]})})]})},m=function(e){var n=e.linkClass,t="mc admin config set {alias} subnet proxy={proxy}",r=(0,o.useState)(!1),d=(0,i.Z)(r,2),f=d[0],p=d[1];return(0,u.jsx)(o.Fragment,{children:(0,u.jsxs)(s.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",padding:"23px",marginTop:"40px",alignItems:"start",justifyContent:"space-between"},children:[(0,u.jsxs)(s.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,u.jsxs)(s.Z,{sx:{display:"flex","& .min-icon":{height:"22px",width:"22px"}},children:[(0,u.jsx)(l.ewm,{}),(0,u.jsx)("div",{style:{marginLeft:"10px",fontWeight:600},children:"Proxy Configuration"})]}),(0,u.jsxs)(s.Z,{sx:{marginTop:"10px",marginBottom:"10px",fontSize:"14px"},children:["For airgap/firewalled environments it is possible to"," ",(0,u.jsx)(a.Z,{className:n,href:"https://docs.min.io/docs/minio-server-configuration-guide.html?ref=con",target:"_blank",children:"configure a proxy"})," ","to connect to SUBNET ."]}),(0,u.jsx)(s.Z,{children:f&&(0,u.jsx)(x.Z,{disabled:!0,id:"subnetProxy",name:"subnetProxy",placeholder:"",onChange:function(){},label:"",value:t,overlayIcon:(0,u.jsx)(l.TIy,{}),extraInputProps:{readOnly:!0},overlayAction:function(){return navigator.clipboard.writeText(t)}})})]}),(0,u.jsx)(s.Z,{sx:{display:"flex"},children:(0,u.jsx)(c.Z,{value:"enableProxy",id:"enableProxy",name:"enableProxy",checked:f,onChange:function(e){p(e.target.checked)}})})]})})}},19847:function(e,n,t){t.d(n,{x:function(){return l}});var i=t(1413),s=t(45987),r=t(72791),a=t(80184),o=["children","value","index"],l=function(e){var n=e.children,t=e.value,l=e.index,c=(0,s.Z)(e,o);return(0,a.jsx)("div",(0,i.Z)((0,i.Z)({role:"tabpanel",hidden:t!==l,id:"simple-tabpanel-".concat(l),"aria-labelledby":"simple-tab-".concat(l),style:{marginTop:"5px"}},c),{},{children:t===l&&(0,a.jsx)(r.Fragment,{children:n})}))}},30403:function(e,n,t){var i=t(64836);n.Z=void 0;var s=i(t(45649)),r=t(80184),a=(0,s.default)((0,r.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");n.Z=a},3579:function(e,n,t){var i=t(64836);n.Z=void 0;var s=i(t(45649)),r=t(80184),a=(0,s.default)((0,r.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"RemoveRedEye");n.Z=a},20165:function(e,n,t){var i=t(64836);n.Z=void 0;var s=i(t(45649)),r=t(80184),a=(0,s.default)((0,r.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");n.Z=a},45987:function(e,n,t){t.d(n,{Z:function(){return s}});var i=t(63366);function s(e,n){if(null==e)return{};var t,s,r=(0,i.Z)(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}}}]);
-//# sourceMappingURL=2763.02eb6b42.chunk.js.map
\ No newline at end of file
+"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2763],{13438:function(e,n,t){t.d(n,{Z:function(){return k}});var i=t(29439),s=t(1413),r=t(72791),a=t(64554),o=t(75952),l=t(38734),c=t(79786),x=t(21435),d=t(11135),u=t(25787),p=t(3579),f=t(20165),m=t(30403),h=t(23814),g=t(23508),j=t(9505),b=t(25469),Z=t(87995),y=t(80184),v=(0,u.Z)((function(e){return(0,d.Z)((0,s.Z)((0,s.Z)({pageTitle:{fontSize:18,marginBottom:20,textAlign:"center"},pageSubTitle:{textAlign:"center"},sizedLabel:{minWidth:"75px"}},(0,h.Bz)(e.spacing(4))),h.bK))}))((function(e){var n=e.open,t=e.closeModal,s=e.classes,o=e.onSet,c=(0,b.TL)(),d=(0,r.useState)(""),u=(0,i.Z)(d,2),h=u[0],v=u[1],w=(0,r.useState)(""),S=(0,i.Z)(w,2),k=S[0],C=S[1],I=(0,r.useState)(!1),T=(0,i.Z)(I,2),z=T[0],P=T[1],B=(0,r.useState)(""),L=(0,i.Z)(B,2),N=L[0],A=L[1],F=(0,r.useState)(""),O=(0,i.Z)(F,2),E=O[0],R=O[1],M=(0,j.Z)((function(e){e.mfa_token?A(e.mfa_token):e.access_token?K("GET","/api/v1/subnet/apikey?token=".concat(e.access_token)):(o(e.apiKey),t())}),(function(e){c((0,Z.Ih)(e)),t(),v(""),C(""),P(!1),A(""),R("")})),W=(0,i.Z)(M,2),_=W[0],K=W[1],U=function(){return(0,y.jsxs)(a.Z,{sx:{width:500},children:[(0,y.jsx)(x.Z,{className:s.spacerBottom,classes:{inputLabel:s.sizedLabel},id:"subnet-email",name:"subnet-email",onChange:function(e){return v(e.target.value)},label:"Email",value:h,overlayIcon:(0,y.jsx)(l.oyc,{})}),(0,y.jsx)(x.Z,{className:s.spacerBottom,classes:{inputLabel:s.sizedLabel},id:"subnet-password",name:"subnet-password",onChange:function(e){return C(e.target.value)},label:"Password",type:z?"text":"password",value:k,overlayIcon:z?(0,y.jsx)(f.Z,{}):(0,y.jsx)(p.Z,{}),overlayAction:function(){return P(!z)}})]})},H=function(){return(0,y.jsx)(a.Z,{sx:{display:"flex"},children:(0,y.jsxs)(a.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,y.jsx)(a.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Two-Factor Authentication"}),(0,y.jsx)(a.Z,{children:"Please enter the 6-digit verification code that was sent to your email address. This code will be valid for 5 minutes."}),(0,y.jsx)(a.Z,{sx:{flex:"1",marginTop:"30px"},children:(0,y.jsx)(x.Z,{overlayIcon:(0,y.jsx)(m.Z,{}),id:"subnet-otp",name:"subnet-otp",onChange:function(e){return R(e.target.value)},placeholder:"",label:"",value:E})}),(0,y.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end"}})]})})};return n?(0,y.jsx)(g.Z,{title:"Get API Key from SUBNET",confirmText:"Get API Key",isOpen:n,titleIcon:(0,y.jsx)(l.szr,{}),isLoading:_,cancelText:"Cancel",onConfirm:function(){""!==N?K("POST","/api/v1/subnet/login/mfa",{username:h,otp:E,mfa_token:N}):K("POST","/api/v1/subnet/login",{username:h,password:k})},onClose:t,confirmButtonProps:{variant:"callAction",disabled:!h||!k||_,hidden:!0},cancelButtonProps:{disabled:_},confirmationContent:""===N?U():H()}):null})),w=t(65810),S=t(81207),k=(0,u.Z)((function(e){return(0,d.Z)((0,s.Z)({sizedLabel:{minWidth:"75px"}},h.bK))}))((function(e){var n=e.classes,t=e.registerEndpoint,s=e.afterRegister,d=(0,r.useState)(!1),u=(0,i.Z)(d,2),p=u[0],f=u[1],m=(0,r.useState)(""),h=(0,i.Z)(m,2),g=h[0],j=h[1],k=(0,r.useState)(!1),C=(0,i.Z)(k,2),I=C[0],T=C[1],z=(0,r.useState)(!1),P=(0,i.Z)(z,2),B=P[0],L=P[1],N=(0,b.TL)(),A=(0,r.useCallback)((function(){if(!I){T(!0);var e={apiKey:g};S.Z.invoke("POST",t,e).then((function(e){T(!1),e&&e.registered&&(F(),s())})).catch((function(e){N((0,Z.Ih)(e)),T(!1),F()}))}}),[s,g,N,I,t]);(0,r.useEffect)((function(){B&&A()}),[B,A]);var F=function(){j(""),L(!1)};return(0,y.jsxs)(r.Fragment,{children:[(0,y.jsx)(a.Z,{sx:{"& .title-text":{marginLeft:"27px",fontWeight:600}},children:(0,y.jsx)(c.vw,{icon:(0,y.jsx)(l.dRy,{}),title:"Register cluster with API key"})}),(0,y.jsxs)(a.Z,{sx:{display:"flex",flexFlow:{xs:"column",md:"row"}},children:[(0,y.jsxs)(a.Z,{sx:{display:"flex",flexFlow:"column",flex:"2"},children:[(0,y.jsx)(a.Z,{sx:{fontSize:"16px",display:"flex",flexFlow:"column",marginTop:"30px",marginBottom:"30px"},children:"Use your MinIO Subscription Network API Key to register this cluster."}),(0,y.jsxs)(a.Z,{sx:{flex:"1"},children:[(0,y.jsx)(x.Z,{className:n.spacerBottom,classes:{inputLabel:n.sizedLabel},id:"api-key",name:"api-key",onChange:function(e){return j(e.target.value)},label:"API Key",value:g}),(0,y.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end","& button":{marginLeft:"8px"}},children:[(0,y.jsx)(o.z,{id:"get-from-subnet",variant:"regular",className:n.spacerRight,disabled:I,onClick:function(){return f(!0)},label:"Get from SUBNET"}),(0,y.jsx)(o.z,{id:"register",type:"submit",variant:"callAction",disabled:I||0===g.trim().length,onClick:function(){return A()},label:"Register"}),(0,y.jsx)(v,{open:p,closeModal:function(){return f(!1)},onSet:function(e){j(e),L(!0)}})]})]})]}),(0,y.jsx)(w.Z,{})]})]})}))},65810:function(e,n,t){var i=t(64554),s=t(38734),r=(t(72791),t(80184)),a=function(e){var n=e.icon,t=e.description;return(0,r.jsxs)(i.Z,{sx:{display:"flex","& .min-icon":{marginRight:"10px",height:"23px",width:"23px",marginBottom:"10px"}},children:[n," ",(0,r.jsx)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:t})]})};n.Z=function(e){var n=e.hasMargin,t=void 0===n||n;return(0,r.jsxs)(i.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginLeft:{xs:"0px",sm:"0px",md:t?"30px":""},marginTop:{xs:"0px",sm:t?"30px":""}},children:[(0,r.jsxs)(i.Z,{sx:{fontSize:"16px",fontWeight:600,display:"flex",alignItems:"center",marginBottom:"16px","& .min-icon":{height:"21px",width:"21px",marginRight:"15px"}},children:[(0,r.jsx)(s.M9A,{}),(0,r.jsx)("div",{children:"Why should I register?"})]}),(0,r.jsx)(i.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:"Registering this cluster with the MinIO Subscription Network (SUBNET) provides the following benefits in addition to the commercial license and SLA backed support."}),(0,r.jsxs)(i.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,r.jsx)(a,{icon:(0,r.jsx)(s._qw,{}),description:"Call Home Monitoring"}),(0,r.jsx)(a,{icon:(0,r.jsx)(s.toM,{}),description:"Health Diagnostics"}),(0,r.jsx)(a,{icon:(0,r.jsx)(s.Fsz,{}),description:"Performance Analysis"})]})]})}},74440:function(e,n,t){t(72791);var i=t(64554),s=t(97506),r=t(80184);n.Z=function(e){var n=e.email,t=void 0===n?"":n;return(0,r.jsxs)(i.Z,{sx:{height:"67px",color:"#ffffff",display:"flex",position:"relative",top:"-30px",left:"-32px",width:"calc(100% + 64px)",alignItems:"center",justifyContent:"space-between",backgroundColor:"#2781B0",padding:"0 25px 0 25px","& .registered-box, .reg-badge-box":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"& .reg-badge-box":{marginLeft:"20px","& .min-icon":{fill:"#2781B0"}}},children:[(0,r.jsxs)(i.Z,{className:"registered-box",children:[(0,r.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Register status:"}),(0,r.jsxs)(i.Z,{className:"reg-badge-box",children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(i.Z,{sx:{fontWeight:600},children:"Registered"})]})]}),(0,r.jsxs)(i.Z,{className:"registered-acc-box",sx:{alignItems:"center",justifyContent:"flex-start",display:{sm:"flex",xs:"none"}},children:[(0,r.jsx)(i.Z,{sx:{fontSize:"16px",fontWeight:400},children:"Registered to:"}),(0,r.jsx)(i.Z,{sx:{marginLeft:"8px",fontWeight:600},children:t})]})]})}},79786:function(e,n,t){t.d(n,{B4:function(){return m},vw:function(){return p},xr:function(){return f}});var i=t(29439),s=t(64554),r=t(61889),a=t(50533),o=t(72791),l=t(38734),c=t(37516),x=t(21435),d=t(74440),u=t(80184),p=function(e){var n=e.icon,t=void 0===n?null:n,i=e.title;return(0,u.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:[t,(0,u.jsx)("div",{className:"title-text",children:i})]})},f=function(e){var n=e.email,t=e.linkClass;return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)(d.Z,{email:n}),(0,u.jsx)(r.ZP,{item:!0,xs:12,marginTop:"25px",children:(0,u.jsxs)(s.Z,{sx:{padding:"20px","& a":{color:"#2781B0",cursor:"pointer"}},children:["Login to"," ",(0,u.jsx)(a.Z,{href:"https://subnet.min.io",target:"_blank",className:t,children:"SUBNET"})," ","to avail support for this MinIO cluster"]})})]})},m=function(e){var n=e.linkClass,t="mc admin config set {alias} subnet proxy={proxy}",r=(0,o.useState)(!1),d=(0,i.Z)(r,2),p=d[0],f=d[1];return(0,u.jsx)(o.Fragment,{children:(0,u.jsxs)(s.Z,{sx:{border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",padding:"23px",marginTop:"40px",alignItems:"start",justifyContent:"space-between"},children:[(0,u.jsxs)(s.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,u.jsxs)(s.Z,{sx:{display:"flex","& .min-icon":{height:"22px",width:"22px"}},children:[(0,u.jsx)(l.ewm,{}),(0,u.jsx)("div",{style:{marginLeft:"10px",fontWeight:600},children:"Proxy Configuration"})]}),(0,u.jsxs)(s.Z,{sx:{marginTop:"10px",marginBottom:"10px",fontSize:"14px"},children:["For airgap/firewalled environments it is possible to"," ",(0,u.jsx)(a.Z,{className:n,href:"https://docs.min.io/docs/minio-server-configuration-guide.html?ref=con",target:"_blank",children:"configure a proxy"})," ","to connect to SUBNET ."]}),(0,u.jsx)(s.Z,{children:p&&(0,u.jsx)(x.Z,{disabled:!0,id:"subnetProxy",name:"subnetProxy",placeholder:"",onChange:function(){},label:"",value:t,overlayIcon:(0,u.jsx)(l.TIy,{}),extraInputProps:{readOnly:!0},overlayAction:function(){return navigator.clipboard.writeText(t)}})})]}),(0,u.jsx)(s.Z,{sx:{display:"flex"},children:(0,u.jsx)(c.Z,{value:"enableProxy",id:"enableProxy",name:"enableProxy",checked:p,onChange:function(e){f(e.target.checked)}})})]})})}},19847:function(e,n,t){t.d(n,{x:function(){return l}});var i=t(1413),s=t(45987),r=t(72791),a=t(80184),o=["children","value","index"],l=function(e){var n=e.children,t=e.value,l=e.index,c=(0,s.Z)(e,o);return(0,a.jsx)("div",(0,i.Z)((0,i.Z)({role:"tabpanel",hidden:t!==l,id:"simple-tabpanel-".concat(l),"aria-labelledby":"simple-tab-".concat(l),style:{marginTop:"5px"}},c),{},{children:t===l&&(0,a.jsx)(r.Fragment,{children:n})}))}},30403:function(e,n,t){var i=t(64836);n.Z=void 0;var s=i(t(45649)),r=t(80184),a=(0,s.default)((0,r.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOutlined");n.Z=a},45987:function(e,n,t){t.d(n,{Z:function(){return s}});var i=t(63366);function s(e,n){if(null==e)return{};var t,s,r=(0,i.Z)(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}}}]);
+//# sourceMappingURL=2763.2e00e8e0.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/2763.2e00e8e0.chunk.js.map b/portal-ui/build/static/js/2763.2e00e8e0.chunk.js.map
new file mode 100644
index 000000000..1958d92e7
--- /dev/null
+++ b/portal-ui/build/static/js/2763.2e00e8e0.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/js/2763.2e00e8e0.chunk.js","mappings":"+VAoOA,GAAeA,EAAAA,EAAAA,IAhMA,SAACC,GAAD,OACbC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T0F,EAAsB1F,EAAMC,OAAO+F,QACpC,UAMZ,C,sICpIYC,EAAW,SAACC,GACvB,IAAQC,EAAqCD,EAArCC,SAAUjG,EAA2BgG,EAA3BhG,MAAOkG,EAAoBF,EAApBE,MAAUC,GAAnC,OAA6CH,EAA7C,GAEA,OACE,gCACEI,KAAK,WACLvE,OAAQ7B,IAAUkG,EAClBvG,GAAE,0BAAqBuG,GACvB,uCAA+BA,GAC/BhC,MAAO,CAAEvD,UAAW,QAChBwF,GANN,aAQGnG,IAAUkG,IAAS,SAAC,EAAA/C,SAAD,UAAW8C,MAGpC,C,4BCrCGI,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpFC,EAAG,gOACD,gBAEJN,EAAQ,EAAUG,C,uEChBH,SAASI,EAAyBC,EAAQC,GACvD,GAAc,MAAVD,EAAgB,MAAO,CAAC,EAC5B,IACIE,EAAKC,EADLnH,GAAS,OAA6BgH,EAAQC,GAGlD,GAAIG,OAAOC,sBAAuB,CAChC,IAAIC,EAAmBF,OAAOC,sBAAsBL,GAEpD,IAAKG,EAAI,EAAGA,EAAIG,EAAiBzD,OAAQsD,IACvCD,EAAMI,EAAiBH,GACnBF,EAASM,QAAQL,IAAQ,GACxBE,OAAOI,UAAUC,qBAAqBC,KAAKV,EAAQE,KACxDlH,EAAOkH,GAAOF,EAAOE,GAEzB,CAEA,OAAOlH,CACT,C","sources":["screens/Console/Support/GetApiKeyModal.tsx","screens/Console/Support/ApiKeyRegister.tsx","screens/Console/Support/RegisterHelpBox.tsx","screens/Console/Support/RegistrationStatusBanner.tsx","screens/Console/Support/utils.tsx","screens/shared/tabs.tsx","../node_modules/@mui/icons-material/LockOutlined.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport RemoveRedEyeIcon from \"@mui/icons-material/RemoveRedEye\";\nimport VisibilityOffIcon from \"@mui/icons-material/VisibilityOff\";\nimport LockOutlinedIcon from \"@mui/icons-material/LockOutlined\";\nimport {\n containerForHeader,\n spacingUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\nimport ConfirmDialog from \"../Common/ModalWrapper/ConfirmDialog\";\nimport useApi from \"../Common/Hooks/useApi\";\nimport React, { useState } from \"react\";\nimport { InfoIcon, UsersIcon } from \"../../../icons\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useAppDispatch } from \"../../../store\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { Box } from \"@mui/material\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n pageTitle: {\n fontSize: 18,\n marginBottom: 20,\n textAlign: \"center\",\n },\n pageSubTitle: {\n textAlign: \"center\",\n },\n sizedLabel: {\n minWidth: \"75px\",\n },\n ...containerForHeader(theme.spacing(4)),\n ...spacingUtils,\n });\n\ninterface IGetApiKeyModalProps {\n open: boolean;\n closeModal: () => void;\n onSet: (apiKey: string) => void;\n classes: any;\n}\n\nconst GetApiKeyModal = ({\n open,\n closeModal,\n classes,\n onSet,\n}: IGetApiKeyModalProps) => {\n const dispatch = useAppDispatch();\n const [email, setEmail] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [showPassword, setShowPassword] = useState(false);\n const [mfaToken, setMfaToken] = useState(\"\");\n const [subnetOTP, setSubnetOTP] = useState(\"\");\n\n const onError = (err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n closeModal();\n setEmail(\"\");\n setPassword(\"\");\n setShowPassword(false);\n setMfaToken(\"\");\n setSubnetOTP(\"\");\n };\n\n const onSuccess = (res: any) => {\n if (res.mfa_token) {\n setMfaToken(res.mfa_token);\n } else if (res.access_token) {\n invokeApi(\"GET\", `/api/v1/subnet/apikey?token=${res.access_token}`);\n } else {\n onSet(res.apiKey);\n closeModal();\n }\n };\n\n const [isLoading, invokeApi] = useApi(onSuccess, onError);\n\n const onConfirm = () => {\n if (mfaToken !== \"\") {\n invokeApi(\"POST\", \"/api/v1/subnet/login/mfa\", {\n username: email,\n otp: subnetOTP,\n mfa_token: mfaToken,\n });\n } else {\n invokeApi(\"POST\", \"/api/v1/subnet/login\", { username: email, password });\n }\n };\n\n const getDialogContent = () => {\n if (mfaToken === \"\") {\n return getCredentialsDialog();\n }\n return getMFADialog();\n };\n\n const getCredentialsDialog = () => {\n return (\n \n ) =>\n setEmail(event.target.value)\n }\n label=\"Email\"\n value={email}\n overlayIcon={}\n />\n ) =>\n setPassword(event.target.value)\n }\n label=\"Password\"\n type={showPassword ? \"text\" : \"password\"}\n value={password}\n overlayIcon={\n showPassword ? : \n }\n overlayAction={() => setShowPassword(!showPassword)}\n />\n \n );\n };\n\n const getMFADialog = () => {\n return (\n \n \n \n Two-Factor Authentication\n \n\n \n Please enter the 6-digit verification code that was sent to your\n email address. This code will be valid for 5 minutes.\n \n\n \n }\n id=\"subnet-otp\"\n name=\"subnet-otp\"\n onChange={(event: React.ChangeEvent) =>\n setSubnetOTP(event.target.value)\n }\n placeholder=\"\"\n label=\"\"\n value={subnetOTP}\n />\n \n \n \n \n );\n };\n\n return open ? (\n }\n isLoading={isLoading}\n cancelText={\"Cancel\"}\n onConfirm={onConfirm}\n onClose={closeModal}\n confirmButtonProps={{\n variant: \"callAction\",\n disabled: !email || !password || isLoading,\n hidden: true,\n }}\n cancelButtonProps={{\n disabled: isLoading,\n }}\n confirmationContent={getDialogContent()}\n />\n ) : null;\n};\n\nexport default withStyles(styles)(GetApiKeyModal);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { Box } from \"@mui/material\";\nimport { Button } from \"mds\";\nimport { OnlineRegistrationIcon } from \"../../../icons\";\nimport { FormTitle } from \"./utils\";\nimport InputBoxWrapper from \"../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport GetApiKeyModal from \"./GetApiKeyModal\";\nimport RegisterHelpBox from \"./RegisterHelpBox\";\nimport { SubnetLoginRequest, SubnetLoginResponse } from \"../License/types\";\nimport api from \"../../../common/api\";\nimport { useAppDispatch } from \"../../../store\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport { useCallback } from \"react\";\nimport { spacingUtils } from \"../Common/FormComponents/common/styleLibrary\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\n\ninterface IApiKeyRegister {\n classes: any;\n registerEndpoint: string;\n afterRegister: () => void;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n sizedLabel: {\n minWidth: \"75px\",\n },\n ...spacingUtils,\n });\n\nconst ApiKeyRegister = ({\n classes,\n registerEndpoint,\n afterRegister,\n}: IApiKeyRegister) => {\n const [showApiKeyModal, setShowApiKeyModal] = useState(false);\n const [apiKey, setApiKey] = useState(\"\");\n const [loading, setLoading] = useState(false);\n const [fromModal, setFromModal] = useState(false);\n const dispatch = useAppDispatch();\n\n const onRegister = useCallback(() => {\n if (loading) {\n return;\n }\n setLoading(true);\n let request: SubnetLoginRequest = { apiKey };\n api\n .invoke(\"POST\", registerEndpoint, request)\n .then((resp: SubnetLoginResponse) => {\n setLoading(false);\n if (resp && resp.registered) {\n reset();\n afterRegister();\n }\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n setLoading(false);\n reset();\n });\n }, [afterRegister, apiKey, dispatch, loading, registerEndpoint]);\n\n useEffect(() => {\n if (fromModal) {\n onRegister();\n }\n }, [fromModal, onRegister]);\n\n const reset = () => {\n setApiKey(\"\");\n setFromModal(false);\n };\n\n return (\n \n \n }\n title={`Register cluster with API key`}\n />\n \n \n \n \n Use your MinIO Subscription Network API Key to register this\n cluster.\n \n \n ) =>\n setApiKey(event.target.value)\n }\n label=\"API Key\"\n value={apiKey}\n />\n\n \n setShowApiKeyModal(true)}\n label={\"Get from SUBNET\"}\n />\n onRegister()}\n label={\"Register\"}\n />\n setShowApiKeyModal(false)}\n onSet={(value) => {\n setApiKey(value);\n setFromModal(true);\n }}\n />\n \n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(ApiKeyRegister);\n","import { Box } from \"@mui/material\";\nimport {\n CallHomeFeatureIcon,\n DiagnosticsFeatureIcon,\n HelpIconFilled,\n PerformanceFeatureIcon,\n} from \"../../../icons\";\nimport React from \"react\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n \n \n For airgap/firewalled environments it is possible to{\" \"}\n \n configure a proxy\n {\" \"}\n to connect to SUBNET .\n \n \n {displaySubnetProxy && (\n {}}\n label=\"\"\n value={proxyConfigurationCommand}\n overlayIcon={}\n extraInputProps={{\n readOnly: true,\n }}\n overlayAction={() =>\n navigator.clipboard.writeText(proxyConfigurationCommand)\n }\n />\n )}\n \n \n \n ) => {\n setDisplaySubnetProxy(event.target.checked);\n }}\n />\n \n \n \n );\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n index: any;\n value: any;\n}\n\nexport const TabPanel = (props: TabPanelProps) => {\n const { children, value, index, ...other } = props;\n\n return (\n
\n {value === index && {children}}\n
\n );\n};\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z\"\n}), 'LockOutlined');\n\nexports.default = _default;","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}"],"names":["withStyles","theme","createStyles","pageTitle","fontSize","marginBottom","textAlign","pageSubTitle","sizedLabel","minWidth","containerForHeader","spacing","spacingUtils","open","closeModal","classes","onSet","dispatch","useAppDispatch","useState","email","setEmail","password","setPassword","showPassword","setShowPassword","mfaToken","setMfaToken","subnetOTP","setSubnetOTP","useApi","res","mfa_token","access_token","invokeApi","apiKey","err","setErrorSnackMessage","isLoading","getCredentialsDialog","Box","sx","width","InputBoxWrapper","className","spacerBottom","inputLabel","id","name","onChange","event","target","value","label","overlayIcon","type","VisibilityOff","RemoveRedEye","overlayAction","getMFADialog","display","flexFlow","flex","marginTop","LockOutlined","placeholder","alignItems","justifyContent","ConfirmDialog","title","confirmText","isOpen","titleIcon","cancelText","onConfirm","username","otp","onClose","confirmButtonProps","variant","disabled","hidden","cancelButtonProps","confirmationContent","registerEndpoint","afterRegister","showApiKeyModal","setShowApiKeyModal","setApiKey","loading","setLoading","fromModal","setFromModal","onRegister","useCallback","request","api","then","resp","registered","reset","catch","useEffect","Fragment","marginLeft","fontWeight","icon","xs","md","spacerRight","onClick","trim","length","RegisterHelpBox","FeatureItem","description","marginRight","height","style","fontStyle","color","hasMargin","border","borderRadius","padding","sm","position","top","left","backgroundColor","fill","FormTitle","ClusterRegistered","linkClass","item","cursor","href","ProxyConfiguration","proxyConfigurationCommand","displaySubnetProxy","setDisplaySubnetProxy","extraInputProps","readOnly","navigator","clipboard","writeText","checked","TabPanel","props","children","index","other","role","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","_objectWithoutProperties","source","excluded","key","i","Object","getOwnPropertySymbols","sourceSymbolKeys","indexOf","prototype","propertyIsEnumerable","call"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/48.115b7eb1.chunk.js b/portal-ui/build/static/js/48.115b7eb1.chunk.js
new file mode 100644
index 000000000..10dcac7ea
--- /dev/null
+++ b/portal-ui/build/static/js/48.115b7eb1.chunk.js
@@ -0,0 +1,2 @@
+(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[48],{23804:function(e,t,o){"use strict";o(72791);var n=o(11135),r=o(25787),i=o(61889),a=o(80184);t.Z=(0,r.Z)((function(e){return(0,n.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,o=e.iconComponent,n=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(i.ZP,{container:!0,children:[(0,a.jsxs)(i.ZP,{item:!0,xs:12,className:t.leftItems,children:[o,n]}),(0,a.jsx)(i.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},14048:function(e,t,o){"use strict";var n=o(29439),r=o(1413),i=o(72791),a=o(75952),l=o(11135),c=o(25787),s=o(61889),d=o(23814),u=o(81207),p=o(56028),m=o(38734),h=o(92217),f=o(45248),v=o(87995),g=o(25469),x=o(80184);(0,l.Z)((0,r.Z)((0,r.Z)({},d.ID),d.bK));t.Z=(0,c.Z)((function(e){return(0,l.Z)((0,r.Z)((0,r.Z)((0,r.Z)({codeMirrorContainer:{marginBottom:20,"& label":{marginBottom:".5rem"},"& label + div":{display:"none"}}},d.DF),d.ID),d.bK))}))((function(e){var t=e.classes,o=e.open,r=e.selectedAccessKey,l=e.closeModalAndRefresh,c=(0,g.TL)(),d=(0,i.useState)(!0),b=(0,n.Z)(d,2),y=b[0],Z=b[1],j=(0,i.useState)(""),C=(0,n.Z)(j,2),k=C[0],_=C[1];(0,i.useEffect)((function(){y&&u.Z.invoke("GET","/api/v1/service-accounts/".concat((0,f.LL)(r),"/policy")).then((function(e){Z(!1),_(e)})).catch((function(e){Z(!1),c((0,v.zb)(e))}))}),[y,Z,c,r]);return(0,x.jsx)(p.Z,{title:"Service Account Policy",modalOpen:o,onClose:function(){l()},titleIcon:(0,x.jsx)(m.QXQ,{}),children:(0,x.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){var t;t=k,e.preventDefault(),u.Z.invoke("PUT","/api/v1/service-accounts/".concat((0,f.LL)(r),"/policy"),{policy:t}).then((function(e){l()})).catch((function(e){c((0,v.zb)(e))}))},children:(0,x.jsxs)(s.ZP,{container:!0,children:[(0,x.jsx)(s.ZP,{item:!0,xs:12,className:t.codeMirrorContainer,children:(0,x.jsx)(h.Z,{label:"Service Account Policy",value:k,onBeforeChange:function(e,t,o){_(o)},editorHeight:"350px"})}),(0,x.jsxs)(s.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,x.jsx)(a.z,{id:"cancel-sa-policy",type:"button",variant:"regular",onClick:function(){l()},disabled:y,label:"Cancel"}),(0,x.jsx)(a.z,{id:"save-sa-policy",type:"submit",variant:"callAction",color:"primary",disabled:y,label:"Set"})]})]})})})}))},75578:function(e,t,o){"use strict";var n=o(1413),r=o(72791),i=o(80184);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function o(o){return(0,i.jsx)(r.Suspense,{fallback:t,children:(0,i.jsx)(e,(0,n.Z)({},o))})}return o}},92217:function(e,t,o){"use strict";var n=o(1413),r=o(72791),i=o(61889),a=o(30829),l=o(20068),c=o(64554),s=o(11135),d=o(25787),u=o(84570),p=o(23814),m=o(38734),h=o(75952),f=o(78029),v=o.n(f),g=o(90932),x=o(27454),b=o(80184);t.Z=(0,d.Z)((function(e){return(0,s.Z)((0,n.Z)({},p.YI))}))((function(e){var t=e.value,o=e.label,n=void 0===o?"":o,s=e.tooltip,d=void 0===s?"":s,p=e.mode,f=void 0===p?"json":p,y=e.classes,Z=e.onBeforeChange,j=(e.readOnly,e.editorHeight),C=void 0===j?"250px":j;return(0,b.jsxs)(r.Fragment,{children:[(0,b.jsx)(i.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,b.jsxs)(a.Z,{className:y.inputLabel,children:[(0,b.jsx)("span",{children:n}),""!==d&&(0,b.jsx)("div",{className:y.tooltipContainer,children:(0,b.jsx)(l.Z,{title:d,placement:"top-start",children:(0,b.jsx)("div",{className:y.tooltip,children:(0,b.jsx)(u.Z,{})})})})]})}),(0,b.jsx)(i.ZP,{item:!0,xs:12,style:{maxHeight:C,overflow:"auto",border:"1px solid #eaeaea"},children:(0,b.jsx)(g.Z,{value:t,language:f,onChange:function(e){Z(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:C||"initial",color:"#000000"}})}),(0,b.jsx)(i.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,b.jsx)(c.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,b.jsx)(x.Z,{tooltip:"Copy to Clipboard",children:(0,b.jsx)(v(),{text:t,children:(0,b.jsx)(h.z,{type:"button",id:"copy-code-mirror",icon:(0,b.jsx)(m.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},56028:function(e,t,o){"use strict";var n=o(29439),r=o(1413),i=o(72791),a=o(60364),l=o(13400),c=o(55646),s=o(5574),d=o(65661),u=o(39157),p=o(11135),m=o(25787),h=o(23814),f=o(25469),v=o(29823),g=o(28057),x=o(87995),b=o(80184);t.Z=(0,m.Z)((function(e){return(0,p.Z)((0,r.Z)((0,r.Z)({},h.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},h.sN))}))((function(e){var t=e.onClose,o=e.modalOpen,p=e.title,m=e.children,h=e.classes,y=e.wideLimit,Z=void 0===y||y,j=e.noContentPadding,C=e.titleIcon,k=void 0===C?null:C,_=(0,f.TL)(),w=(0,i.useState)(!1),E=(0,n.Z)(w,2),S=E[0],q=E[1],z=(0,a.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){_((0,x.MK)(""))}),[_]),(0,i.useEffect)((function(){if(z){if(""===z.message)return void q(!1);"error"!==z.type&&q(!0)}}),[z]);var L=Z?{classes:{paper:h.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},M="";return z&&(M=z.detailedErrorMsg,(""===z.detailedErrorMsg||z.detailedErrorMsg.length<5)&&(M=z.message)),(0,b.jsxs)(s.Z,(0,r.Z)((0,r.Z)({open:o,classes:h},L),{},{scroll:"paper",onClose:function(e,o){"backdropClick"!==o&&t()},className:h.root,children:[(0,b.jsxs)(d.Z,{className:h.title,children:[(0,b.jsxs)("div",{className:h.titleText,children:[k," ",p]}),(0,b.jsx)("div",{className:h.closeContainer,children:(0,b.jsx)(l.Z,{"aria-label":"close",id:"close",className:h.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,b.jsx)(v.Z,{})})})]}),(0,b.jsx)(g.Z,{isModal:!0}),(0,b.jsx)(c.Z,{open:S,className:h.snackBarModal,onClose:function(){q(!1),_((0,x.MK)(""))},message:M,ContentProps:{className:"".concat(h.snackBar," ").concat(z&&"error"===z.type?h.errorSnackBar:"")},autoHideDuration:z&&"error"===z.type?1e4:5e3}),(0,b.jsx)(u.Z,{className:j?"":h.content,children:m})]}))}))},59114:function(e,t,o){"use strict";var n=o(4942),r=o(1413),i=(o(72791),o(63466)),a=o(74900),l=o(27391),c=o(25787),s=o(11135),d=o(23814),u=o(80184);t.Z=(0,c.Z)((function(e){return(0,s.Z)({searchField:(0,r.Z)({},d.qg.searchField),adornment:{}})}))((function(e){var t=e.placeholder,o=void 0===t?"":t,r=e.classes,c=e.onChange,s=e.adornmentPosition,d=void 0===s?"end":s,p=e.overrideClass,m=e.value,h=(0,n.Z)({disableUnderline:!0},"".concat(d,"Adornment"),(0,u.jsx)(i.Z,{position:d,className:r.adornment,children:(0,u.jsx)(a.Z,{})}));return(0,u.jsx)(l.Z,{placeholder:o,className:p||r.searchField,id:"search-resource",label:"",InputProps:h,onChange:function(e){c(e.target.value)},variant:"standard",value:m})}))},27454:function(e,t,o){"use strict";var n=o(1413),r=o(72791),i=o(20068),a=o(80184);t.Z=function(e){var t=e.tooltip,o=e.children,l=e.errorProps,c=void 0===l?null:l;return(0,a.jsx)(i.Z,{title:t,children:(0,a.jsx)("span",{children:c?(0,r.cloneElement)(o,(0,n.Z)({},c)):o})})}},58493:function(e,t,o){"use strict";o.d(t,{DD:function(){return x},DP:function(){return g},_0:function(){return b},bx:function(){return v}});var n=o(93433),r=(o(72791),o(87569)),i=o(59314),a=o(61809),l=o(31292),c=o(98095),s=o(67055),d=o(21141),u=o(61248),p=o(50521),m=o(36909),h=o(13901),f=o(80184),v=[{icon:(0,f.jsx)(r.Z,{}),configuration_id:"region",configuration_label:"Region"},{icon:(0,f.jsx)(i.Z,{}),configuration_id:"cache",configuration_label:"Cache"},{icon:(0,f.jsx)(a.Z,{}),configuration_id:"compression",configuration_label:"Compression"},{icon:(0,f.jsx)(l.Z,{}),configuration_id:"api",configuration_label:"API"},{icon:(0,f.jsx)(c.Z,{}),configuration_id:"heal",configuration_label:"Heal"},{icon:(0,f.jsx)(s.Z,{}),configuration_id:"scanner",configuration_label:"Scanner"},{icon:(0,f.jsx)(d.Z,{}),configuration_id:"etcd",configuration_label:"Etcd"},{icon:(0,f.jsx)(u.Z,{}),configuration_id:"identity_openid",configuration_label:"Identity Openid"},{icon:(0,f.jsx)(p.Z,{}),configuration_id:"identity_ldap",configuration_label:"Identity LDAP"},{icon:(0,f.jsx)(h.Z,{}),configuration_id:"logger_webhook",configuration_label:"Logger Webhook"},{icon:(0,f.jsx)(m.Z,{}),configuration_id:"audit_webhook",configuration_label:"Audit Webhook"}],g={region:[{name:"name",required:!0,label:"Server Location",tooltip:'Name of the location of the server e.g. "us-west-rack2"',type:"string",placeholder:"e.g. us-west-rack-2"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",placeholder:"Enter custom notes if any"}],cache:[{name:"drives",required:!0,label:"Drives",tooltip:'Mountpoints e.g. "/optane1" or "/optane2", you can write one per field',type:"csv",placeholder:"Enter Mount Point"},{name:"expiry",required:!1,label:"Expiry",tooltip:'Cache expiry duration in days e.g. "90"',type:"number",placeholder:"Enter Number of Days"},{name:"quota",required:!1,label:"Quota",tooltip:'Limit cache drive usage in percentage e.g. "90"',type:"number",placeholder:"Enter in %"},{name:"exclude",required:!1,label:"Exclude",tooltip:'Wildcard exclusion patterns e.g. "bucket/*.tmp" or "*.exe", you can write one per field',type:"csv",placeholder:"Enter Wildcard Exclusion Patterns"},{name:"after",required:!1,label:"After",tooltip:"Minimum number of access before caching an object",type:"number",placeholder:"Enter Number of Attempts"},{name:"watermark_low",required:!1,label:"Watermark Low",tooltip:"Watermark Low",type:"number",placeholder:"Enter Watermark Low"},{name:"watermark_high",required:!1,label:"Watermark High",tooltip:"Watermark High",type:"number",placeholder:"Enter Watermark High"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter custom notes if any"}],compression:[{name:"extensions",required:!1,label:"Extensions",tooltip:'Extensions to compress e.g. ".txt",".log" or ".csv", you can write one per field',type:"csv",placeholder:"Enter an Extension",withBorder:!0},{name:"mime_types",required:!1,label:"Mime Types",tooltip:'Mime types e.g. "text/*","application/json" or "application/xml", you can write one per field',type:"csv",placeholder:"Enter a Mime Type",withBorder:!0}],api:[{name:"requests_max",required:!1,label:"Requests Max",tooltip:"Maximum number of concurrent requests, e.g. '1600'",type:"number",placeholder:"Enter Requests Max"},{name:"cors_allow_origin",required:!1,label:"Cors Allow Origin",tooltip:"List of origins allowed for CORS requests",type:"csv",placeholder:"Enter allowed origin e.g. https://example.com"},{name:"replication_workers",required:!1,label:"Replication Workers",tooltip:"Number of replication workers, defaults to 100",type:"number",placeholder:"Enter Replication Workers"},{name:"replication_failed_workers",required:!1,label:"Replication Failed Workers",tooltip:"Number of replication workers for recently failed replicas, defaults to 4",type:"number",placeholder:"Enter Replication Failed Workers"}],heal:[{name:"bitrotscan",required:!1,label:"Bitrot Scan",tooltip:"Perform bitrot scan on disks when checking objects during scanner",type:"on|off"},{name:"max_sleep",required:!1,label:"Max Sleep",tooltip:"Maximum sleep duration between objects to slow down heal operation. eg. 2s",type:"duration",placeholder:"Enter Max Sleep duration"},{name:"max_io",required:!1,label:"Max IO",tooltip:"Maximum IO requests allowed between objects to slow down heal operation. eg. 3",type:"number",placeholder:"Enter Max IO"}],scanner:[{name:"delay",required:!1,label:"Delay multiplier",tooltip:"Scanner delay multiplier, defaults to '10.0'",type:"number",placeholder:"Enter Delay"},{name:"max_wait",required:!1,label:"Max Wait",tooltip:"Maximum wait time between operations, defaults to '15s'",type:"duration",placeholder:"Enter Max Wait"},{name:"cycle",required:!1,label:"Cycle",tooltip:"Time duration between scanner cycles, defaults to '1m'",type:"duration",placeholder:"Enter Cycle"}],etcd:[{name:"endpoints",required:!0,label:"Endpoints",tooltip:'List of etcd endpoints e.g. "http://localhost:2379", you can write one per field',type:"csv",placeholder:"Enter Endpoint"},{name:"path_prefix",required:!1,label:"Path Prefix",tooltip:'Namespace prefix to isolate tenants e.g. "customer1/"',type:"string",placeholder:"Enter Path Prefix"},{name:"coredns_path",required:!1,label:"Coredns Path",tooltip:'Shared bucket DNS records, default is "/skydns"',type:"string",placeholder:"Enter Coredns Path"},{name:"client_cert",required:!1,label:"Client Cert",tooltip:"Client cert for mTLS authentication",type:"string",placeholder:"Enter Client Cert"},{name:"client_cert_key",required:!1,label:"Client Cert Key",tooltip:"Client cert key for mTLS authentication",type:"string",placeholder:"Enter Client Cert Key"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter custom notes if any"}],identity_openid:[{name:"config_url",required:!1,label:"Config URL",tooltip:"Config URL for identity provider configuration",type:"string",placeholder:"https://identity-provider-url/.well-known/openid-configuration"},{name:"client_id",required:!1,label:"Client ID",type:"string",placeholder:"Enter Client ID"},{name:"client_secret",required:!1,label:"Secret ID",type:"string",placeholder:"Enter Secret ID"},{name:"claim_name",required:!1,label:"Claim Name",tooltip:"Claim from which MinIO will read the policy or role to use",type:"string",placeholder:"Enter Claim Name"},{name:"claim_prefix",required:!1,label:"Claim Prefix",tooltip:"Claim Prefix",type:"string",placeholder:"Enter Claim Prefix"},{name:"claim_userinfo",required:!1,label:"Claim UserInfo",type:"on|off"},{name:"redirect_uri",required:!1,label:"Redirect URI",type:"string",placeholder:"https://console-endpoint-url/oauth_callback"},{name:"scopes",required:!1,label:"Scopes",type:"string",placeholder:"openid,profile,email"}],identity_ldap:[{name:"server_addr",required:!0,label:"Server Addr",tooltip:'AD/LDAP server address e.g. "myldapserver.com:636"',type:"string",placeholder:"myldapserver.com:636"},{name:"tls_skip_verify",required:!1,label:"TLS Skip Verify",tooltip:'Trust server TLS without verification, defaults to "off" (verify)',type:"on|off"},{name:"server_insecure",required:!1,label:"Server Insecure",tooltip:'Allow plain text connection to AD/LDAP server, defaults to "off"',type:"on|off"},{name:"server_starttls",required:!1,label:"Start TLS connection to AD/LDAP server",tooltip:"Use StartTLS connection to AD/LDAP server",type:"on|off"},{name:"lookup_bind_dn",required:!0,label:"Lookup Bind DN",tooltip:"DN for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"cn=admin,dc=min,dc=io"},{name:"lookup_bind_password",required:!1,label:"Lookup Bind Password",tooltip:"Password for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"admin"},{name:"user_dn_search_base_dn",required:!1,label:"User DN Search Base DN",tooltip:"Base LDAP DN to search for user DN",type:"csv",placeholder:"dc=myldapserver"},{name:"user_dn_search_filter",required:!1,label:"User DN Search Filter",tooltip:"Search filter to lookup user DN",type:"string",placeholder:"(sAMAcountName=%s)"},{name:"group_search_filter",required:!1,label:"Group Search Filter",tooltip:"Search filter for groups",type:"string",placeholder:"(&(objectclass=groupOfNames)(member=%d))"},{name:"group_search_base_dn",required:!1,label:"Group Search Base DN",tooltip:"List of group search base DNs",type:"csv",placeholder:"dc=minioad,dc=local"},{name:"comment",required:!1,label:"Comment",tooltip:"Optionally add a comment to this setting",type:"comment",placeholder:"Enter custom notes if any"}],logger_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}],audit_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}]},x=function(e){return e.filter((function(e){return""!==e.value}))},b=function(e,t,o){var r=e.target,i=r.value,a=r.checked,l=(0,n.Z)(o);return a?l.push(i):l=l.filter((function(e){return e!==i})),t(l),l}},18303:function(e,t,o){"use strict";var n=o(29439),r=(o(72791),o(51691)),i=o(9505),a=o(23508),l=o(38734),c=o(87995),s=o(25469),d=o(80184);t.Z=function(e){var t=e.closeDeleteModalAndRefresh,o=e.deleteOpen,u=e.selectedSAs,p=(0,s.TL)(),m=(0,i.Z)((function(){return t(!0)}),(function(e){return p((0,c.Ih)(e))})),h=(0,n.Z)(m,2),f=h[0],v=h[1];if(!u)return null;return(0,d.jsx)(a.Z,{title:"Delete Service Accounts",confirmText:"Delete",isOpen:o,titleIcon:(0,d.jsx)(l.NvT,{}),isLoading:f,onConfirm:function(){v("DELETE","/api/v1/service-accounts/delete-multi",u)},onClose:function(){return t(!1)},confirmationContent:(0,d.jsxs)(r.Z,{children:["Are you sure you want to delete the selected ",u.length," ","service accounts?"," "]})})}},21639:function(e,t,o){"use strict";o.d(t,{KE:function(){return a},LQ:function(){return n},V2:function(){return i},g4:function(){return r}});var n=function(e,t){return e.accessKey>t.accessKey?1:e.accessKeyt.name?1:e.namet?1:et.policy?1:e.policy.\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n border: \"1px solid #E2E2E2\",\n borderRadius: 2,\n backgroundColor: \"#FBFAFA\",\n paddingLeft: 25,\n paddingTop: 31,\n paddingBottom: 21,\n paddingRight: 30,\n },\n leftItems: {\n fontSize: 16,\n fontWeight: \"bold\",\n marginBottom: 15,\n display: \"flex\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: 15,\n height: 28,\n width: 38,\n },\n },\n helpText: {\n fontSize: 16,\n paddingLeft: 5,\n },\n });\n\ninterface IHelpBox {\n classes: any;\n iconComponent: any;\n title: string;\n help: any;\n}\n\nconst HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect, useState } from \"react\";\n\nimport { Button } from \"mds\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\nimport {\n formFieldStyles,\n modalStyleUtils,\n spacingUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\n\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport api from \"../../../common/api\";\nimport ModalWrapper from \"../Common/ModalWrapper/ModalWrapper\";\nimport { ChangeAccessPolicyIcon } from \"../../../icons\";\nimport CodeMirrorWrapper from \"../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setModalErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n codeMirrorContainer: {\n marginBottom: 20,\n \"& label\": {\n marginBottom: \".5rem\",\n },\n \"& label + div\": {\n display: \"none\",\n },\n },\n ...formFieldStyles,\n ...modalStyleUtils,\n ...spacingUtils,\n });\ncreateStyles({\n ...modalStyleUtils,\n ...spacingUtils,\n});\n\ninterface IServiceAccountPolicyProps {\n classes: any;\n open: boolean;\n selectedAccessKey: string | null;\n closeModalAndRefresh: () => void;\n}\n\nconst ServiceAccountPolicy = ({\n classes,\n open,\n selectedAccessKey,\n closeModalAndRefresh,\n}: IServiceAccountPolicyProps) => {\n const dispatch = useAppDispatch();\n const [loading, setLoading] = useState(true);\n const [policyDefinition, setPolicyDefinition] = useState(\"\");\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/service-accounts/${encodeURLString(\n selectedAccessKey\n )}/policy`\n )\n .then((res) => {\n setLoading(false);\n setPolicyDefinition(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n });\n }\n }, [loading, setLoading, dispatch, selectedAccessKey]);\n\n const setPolicy = (event: React.FormEvent, newPolicy: string) => {\n event.preventDefault();\n api\n .invoke(\n \"PUT\",\n `/api/v1/service-accounts/${encodeURLString(selectedAccessKey)}/policy`,\n {\n policy: newPolicy,\n }\n )\n .then((res) => {\n closeModalAndRefresh();\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setModalErrorSnackMessage(err));\n });\n };\n\n return (\n {\n closeModalAndRefresh();\n }}\n titleIcon={}\n >\n \n \n );\n};\n\nexport default withStyles(styles)(ServiceAccountPolicy);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense
(\n WrappedComponent: ComponentType
,\n fallback: SuspenseProps[\"fallback\"] = null\n) {\n function ComponentWithSuspense(props: P) {\n return (\n \n \n \n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box, InputLabel, Tooltip } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport { fieldBasic } from \"../common/styleLibrary\";\nimport { CopyIcon } from \"../../../../../icons\";\nimport { Button } from \"mds\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport CodeEditor from \"@uiw/react-textarea-code-editor\";\nimport TooltipWrapper from \"../../TooltipWrapper/TooltipWrapper\";\n\ninterface ICodeWrapper {\n value: string;\n label?: string;\n mode?: string;\n tooltip?: string;\n classes: any;\n onChange?: (editor: any, data: any, value: string) => any;\n onBeforeChange: (editor: any, data: any, value: string) => any;\n readOnly?: boolean;\n editorHeight?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n });\n\nconst CodeMirrorWrapper = ({\n value,\n label = \"\",\n tooltip = \"\",\n mode = \"json\",\n classes,\n onBeforeChange,\n readOnly = false,\n editorHeight = \"250px\",\n}: ICodeWrapper) => {\n return (\n \n \n \n {label}\n {tooltip !== \"\" && (\n
\n \n
\n \n
\n \n
\n )}\n \n \n\n \n {\n onBeforeChange(null, null, evn.target.value);\n }}\n id={\"code_wrapper\"}\n padding={15}\n style={{\n fontSize: 12,\n backgroundColor: \"#fefefe\",\n fontFamily:\n \"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace\",\n minHeight: editorHeight || \"initial\",\n color: \"#000000\",\n }}\n />\n \n \n \n \n \n }\n color={\"primary\"}\n variant={\"regular\"}\n />\n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(CodeMirrorWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport InputAdornment from \"@mui/material/InputAdornment\";\nimport SearchIcon from \"../../../icons/SearchIcon\";\nimport TextField from \"@mui/material/TextField\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport { searchField } from \"./FormComponents/common/styleLibrary\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n searchField: {\n ...searchField.searchField,\n },\n adornment: {},\n });\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n classes: any;\n onChange: (value: string) => void;\n adornmentPosition?: \"start\" | \"end\";\n overrideClass?: any;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n classes,\n onChange,\n adornmentPosition = \"end\",\n overrideClass,\n value,\n}: SearchBoxProps) => {\n const inputProps = {\n disableUnderline: true,\n [`${adornmentPosition}Adornment`]: (\n \n \n \n ),\n };\n return (\n {\n onChange(e.target.value);\n }}\n variant=\"standard\"\n value={value}\n />\n );\n};\n\nexport default withStyles(styles)(SearchBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport PublicIcon from \"@mui/icons-material/Public\";\nimport SdStorageIcon from \"@mui/icons-material/SdStorage\";\nimport CompressIcon from \"@mui/icons-material/Compress\";\nimport CodeIcon from \"@mui/icons-material/Code\";\nimport LocalHospitalIcon from \"@mui/icons-material/LocalHospital\";\nimport FindReplaceIcon from \"@mui/icons-material/FindReplace\";\nimport VpnKeyIcon from \"@mui/icons-material/VpnKey\";\nimport LockOpenIcon from \"@mui/icons-material/LockOpen\";\nimport LoginIcon from \"@mui/icons-material/Login\";\nimport PendingActionsIcon from \"@mui/icons-material/PendingActions\";\nimport CallToActionIcon from \"@mui/icons-material/CallToAction\";\nimport { IElement, IElementValue } from \"./types\";\n\nexport const configurationElements: IElement[] = [\n {\n icon: ,\n configuration_id: \"region\",\n configuration_label: \"Region\",\n },\n {\n icon: ,\n configuration_id: \"cache\",\n configuration_label: \"Cache\",\n },\n {\n icon: ,\n configuration_id: \"compression\",\n configuration_label: \"Compression\",\n },\n {\n icon: ,\n configuration_id: \"api\",\n configuration_label: \"API\",\n },\n {\n icon: ,\n configuration_id: \"heal\",\n configuration_label: \"Heal\",\n },\n {\n icon: ,\n configuration_id: \"scanner\",\n configuration_label: \"Scanner\",\n },\n {\n icon: ,\n configuration_id: \"etcd\",\n configuration_label: \"Etcd\",\n },\n {\n icon: ,\n configuration_id: \"identity_openid\",\n configuration_label: \"Identity Openid\",\n },\n {\n icon: ,\n configuration_id: \"identity_ldap\",\n configuration_label: \"Identity LDAP\",\n },\n {\n icon: ,\n configuration_id: \"logger_webhook\",\n configuration_label: \"Logger Webhook\",\n },\n {\n icon: ,\n configuration_id: \"audit_webhook\",\n configuration_label: \"Audit Webhook\",\n },\n];\n\nexport const fieldsConfigurations: any = {\n region: [\n {\n name: \"name\",\n required: true,\n label: \"Server Location\",\n tooltip: 'Name of the location of the server e.g. \"us-west-rack2\"',\n type: \"string\",\n placeholder: \"e.g. us-west-rack-2\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n ],\n cache: [\n {\n name: \"drives\",\n required: true,\n label: \"Drives\",\n tooltip:\n 'Mountpoints e.g. \"/optane1\" or \"/optane2\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Mount Point\",\n },\n {\n name: \"expiry\",\n required: false,\n label: \"Expiry\",\n tooltip: 'Cache expiry duration in days e.g. \"90\"',\n type: \"number\",\n placeholder: \"Enter Number of Days\",\n },\n {\n name: \"quota\",\n required: false,\n label: \"Quota\",\n tooltip: 'Limit cache drive usage in percentage e.g. \"90\"',\n type: \"number\",\n placeholder: \"Enter in %\",\n },\n {\n name: \"exclude\",\n required: false,\n label: \"Exclude\",\n tooltip:\n 'Wildcard exclusion patterns e.g. \"bucket/*.tmp\" or \"*.exe\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Wildcard Exclusion Patterns\",\n },\n {\n name: \"after\",\n required: false,\n label: \"After\",\n tooltip: \"Minimum number of access before caching an object\",\n type: \"number\",\n placeholder: \"Enter Number of Attempts\",\n },\n {\n name: \"watermark_low\",\n required: false,\n label: \"Watermark Low\",\n tooltip: \"Watermark Low\",\n type: \"number\",\n placeholder: \"Enter Watermark Low\",\n },\n {\n name: \"watermark_high\",\n required: false,\n label: \"Watermark High\",\n tooltip: \"Watermark High\",\n type: \"number\",\n placeholder: \"Enter Watermark High\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n multiline: true,\n placeholder: \"Enter custom notes if any\",\n },\n ],\n compression: [\n {\n name: \"extensions\",\n required: false,\n label: \"Extensions\",\n tooltip:\n 'Extensions to compress e.g. \".txt\",\".log\" or \".csv\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter an Extension\",\n withBorder: true,\n },\n {\n name: \"mime_types\",\n required: false,\n label: \"Mime Types\",\n tooltip:\n 'Mime types e.g. \"text/*\",\"application/json\" or \"application/xml\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter a Mime Type\",\n withBorder: true,\n },\n ],\n api: [\n {\n name: \"requests_max\",\n required: false,\n label: \"Requests Max\",\n tooltip: \"Maximum number of concurrent requests, e.g. '1600'\",\n type: \"number\",\n placeholder: \"Enter Requests Max\",\n },\n {\n name: \"cors_allow_origin\",\n required: false,\n label: \"Cors Allow Origin\",\n tooltip: \"List of origins allowed for CORS requests\",\n type: \"csv\",\n placeholder: \"Enter allowed origin e.g. https://example.com\",\n },\n {\n name: \"replication_workers\",\n required: false,\n label: \"Replication Workers\",\n tooltip: \"Number of replication workers, defaults to 100\",\n type: \"number\",\n placeholder: \"Enter Replication Workers\",\n },\n {\n name: \"replication_failed_workers\",\n required: false,\n label: \"Replication Failed Workers\",\n tooltip:\n \"Number of replication workers for recently failed replicas, defaults to 4\",\n type: \"number\",\n placeholder: \"Enter Replication Failed Workers\",\n },\n ],\n heal: [\n {\n name: \"bitrotscan\",\n required: false,\n label: \"Bitrot Scan\",\n tooltip:\n \"Perform bitrot scan on disks when checking objects during scanner\",\n type: \"on|off\",\n },\n {\n name: \"max_sleep\",\n required: false,\n label: \"Max Sleep\",\n tooltip:\n \"Maximum sleep duration between objects to slow down heal operation. eg. 2s\",\n type: \"duration\",\n placeholder: \"Enter Max Sleep duration\",\n },\n {\n name: \"max_io\",\n required: false,\n label: \"Max IO\",\n tooltip:\n \"Maximum IO requests allowed between objects to slow down heal operation. eg. 3\",\n type: \"number\",\n placeholder: \"Enter Max IO\",\n },\n ],\n scanner: [\n {\n name: \"delay\",\n required: false,\n label: \"Delay multiplier\",\n tooltip: \"Scanner delay multiplier, defaults to '10.0'\",\n type: \"number\",\n placeholder: \"Enter Delay\",\n },\n {\n name: \"max_wait\",\n required: false,\n label: \"Max Wait\",\n tooltip: \"Maximum wait time between operations, defaults to '15s'\",\n type: \"duration\",\n placeholder: \"Enter Max Wait\",\n },\n {\n name: \"cycle\",\n required: false,\n label: \"Cycle\",\n tooltip: \"Time duration between scanner cycles, defaults to '1m'\",\n type: \"duration\",\n placeholder: \"Enter Cycle\",\n },\n ],\n etcd: [\n {\n name: \"endpoints\",\n required: true,\n label: \"Endpoints\",\n tooltip:\n 'List of etcd endpoints e.g. \"http://localhost:2379\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"path_prefix\",\n required: false,\n label: \"Path Prefix\",\n tooltip: 'Namespace prefix to isolate tenants e.g. \"customer1/\"',\n type: \"string\",\n placeholder: \"Enter Path Prefix\",\n },\n {\n name: \"coredns_path\",\n required: false,\n label: \"Coredns Path\",\n tooltip: 'Shared bucket DNS records, default is \"/skydns\"',\n type: \"string\",\n placeholder: \"Enter Coredns Path\",\n },\n {\n name: \"client_cert\",\n required: false,\n label: \"Client Cert\",\n tooltip: \"Client cert for mTLS authentication\",\n type: \"string\",\n placeholder: \"Enter Client Cert\",\n },\n {\n name: \"client_cert_key\",\n required: false,\n label: \"Client Cert Key\",\n tooltip: \"Client cert key for mTLS authentication\",\n type: \"string\",\n placeholder: \"Enter Client Cert Key\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n multiline: true,\n placeholder: \"Enter custom notes if any\",\n },\n ],\n identity_openid: [\n {\n name: \"config_url\",\n required: false,\n label: \"Config URL\",\n tooltip: \"Config URL for identity provider configuration\",\n type: \"string\",\n placeholder:\n \"https://identity-provider-url/.well-known/openid-configuration\",\n },\n {\n name: \"client_id\",\n required: false,\n label: \"Client ID\",\n type: \"string\",\n placeholder: \"Enter Client ID\",\n },\n {\n name: \"client_secret\",\n required: false,\n label: \"Secret ID\",\n type: \"string\",\n placeholder: \"Enter Secret ID\",\n },\n {\n name: \"claim_name\",\n required: false,\n label: \"Claim Name\",\n tooltip: \"Claim from which MinIO will read the policy or role to use\",\n type: \"string\",\n placeholder: \"Enter Claim Name\",\n },\n {\n name: \"claim_prefix\",\n required: false,\n label: \"Claim Prefix\",\n tooltip: \"Claim Prefix\",\n type: \"string\",\n placeholder: \"Enter Claim Prefix\",\n },\n {\n name: \"claim_userinfo\",\n required: false,\n label: \"Claim UserInfo\",\n type: \"on|off\",\n },\n {\n name: \"redirect_uri\",\n required: false,\n label: \"Redirect URI\",\n type: \"string\",\n placeholder: \"https://console-endpoint-url/oauth_callback\",\n },\n {\n name: \"scopes\",\n required: false,\n label: \"Scopes\",\n type: \"string\",\n placeholder: \"openid,profile,email\",\n },\n ],\n identity_ldap: [\n {\n name: \"server_addr\",\n required: true,\n label: \"Server Addr\",\n tooltip: 'AD/LDAP server address e.g. \"myldapserver.com:636\"',\n type: \"string\",\n placeholder: \"myldapserver.com:636\",\n },\n {\n name: \"tls_skip_verify\",\n required: false,\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"off\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"server_insecure\",\n required: false,\n label: \"Server Insecure\",\n tooltip:\n 'Allow plain text connection to AD/LDAP server, defaults to \"off\"',\n type: \"on|off\",\n },\n {\n name: \"server_starttls\",\n required: false,\n label: \"Start TLS connection to AD/LDAP server\",\n tooltip: \"Use StartTLS connection to AD/LDAP server\",\n type: \"on|off\",\n },\n {\n name: \"lookup_bind_dn\",\n required: true,\n label: \"Lookup Bind DN\",\n tooltip:\n \"DN for LDAP read-only service account used to perform DN and group lookups\",\n type: \"string\",\n placeholder: \"cn=admin,dc=min,dc=io\",\n },\n {\n name: \"lookup_bind_password\",\n required: false,\n label: \"Lookup Bind Password\",\n tooltip:\n \"Password for LDAP read-only service account used to perform DN and group lookups\",\n type: \"string\",\n placeholder: \"admin\",\n },\n {\n name: \"user_dn_search_base_dn\",\n required: false,\n label: \"User DN Search Base DN\",\n tooltip: \"Base LDAP DN to search for user DN\",\n type: \"csv\",\n placeholder: \"dc=myldapserver\",\n },\n {\n name: \"user_dn_search_filter\",\n required: false,\n label: \"User DN Search Filter\",\n tooltip: \"Search filter to lookup user DN\",\n type: \"string\",\n placeholder: \"(sAMAcountName=%s)\",\n },\n {\n name: \"group_search_filter\",\n required: false,\n label: \"Group Search Filter\",\n tooltip: \"Search filter for groups\",\n type: \"string\",\n placeholder: \"(&(objectclass=groupOfNames)(member=%d))\",\n },\n {\n name: \"group_search_base_dn\",\n required: false,\n label: \"Group Search Base DN\",\n tooltip: \"List of group search base DNs\",\n type: \"csv\",\n placeholder: \"dc=minioad,dc=local\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"Optionally add a comment to this setting\",\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n ],\n logger_webhook: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n type: \"string\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n required: true,\n label: \"Auth Token\",\n type: \"string\",\n placeholder: \"Enter Auth Token\",\n },\n ],\n audit_webhook: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n type: \"string\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n required: true,\n label: \"Auth Token\",\n type: \"string\",\n placeholder: \"Enter Auth Token\",\n },\n ],\n};\n\nexport const removeEmptyFields = (formFields: IElementValue[]) => {\n const nonEmptyFields = formFields.filter((field) => field.value !== \"\");\n\n return nonEmptyFields;\n};\n\nexport const selectSAs = (\n e: React.ChangeEvent,\n setSelectedSAs: Function,\n selectedSAs: string[]\n) => {\n const targetD = e.target;\n const value = targetD.value;\n const checked = targetD.checked;\n\n let elements: string[] = [...selectedSAs]; // We clone the selectedSAs array\n if (checked) {\n // If the user has checked this field we need to push this to selectedSAs\n elements.push(value);\n } else {\n // User has unchecked this field, we need to remove it from the list\n elements = elements.filter((element) => element !== value);\n }\n setSelectedSAs(elements);\n return elements;\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../../../screens/Console/Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../../screens/Console/Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\ninterface IDeleteMultiSAsProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedSAs: string[];\n}\n\nconst DeleteMultipleSAs = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedSAs,\n}: IDeleteMultiSAsProps) => {\n const dispatch = useAppDispatch();\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n if (!selectedSAs) {\n return null;\n }\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/service-accounts/delete-multi`,\n selectedSAs\n );\n };\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n \n Are you sure you want to delete the selected {selectedSAs.length}{\" \"}\n service accounts?{\" \"}\n \n }\n />\n );\n};\n\nexport default DeleteMultipleSAs;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\ninterface userInterface {\n accessKey: string;\n}\n\ninterface policyInterface {\n name: string;\n}\n\ninterface policyDetailsInterface {\n policy: string;\n}\n\nexport const usersSort = (a: userInterface, b: userInterface) => {\n if (a.accessKey > b.accessKey) {\n return 1;\n }\n if (a.accessKey < b.accessKey) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const policySort = (a: policyInterface, b: policyInterface) => {\n if (a.name > b.name) {\n return 1;\n }\n if (a.name < b.name) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const stringSort = (a: string, b: string) => {\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const policyDetailsSort = (\n a: policyDetailsInterface,\n b: policyDetailsInterface\n) => {\n if (a.policy > b.policy) {\n return 1;\n }\n if (a.policy < b.policy) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m7 10 5 5 5-5z\"\n}), 'ArrowDropDown');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m7 14 5-5 5 5z\"\n}), 'ArrowDropUp');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z\"\n}), 'CallToAction');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z\"\n}), 'Code');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M8 19h3v3h2v-3h3l-4-4-4 4zm8-15h-3V1h-2v3H8l4 4 4-4zM4 9v2h16V9H4zm0 3h16v2H4z\"\n}), 'Compress');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z\"\n}), 'FindReplace');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z\"\n}), 'LocalHospital');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z\"\n}), 'LockOpen');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z\"\n}), 'Login');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M17 12c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm1.65 7.35L16.5 17.2V14h1v2.79l1.85 1.85-.7.71zM18 3h-3.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H6c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h6.11c-.59-.57-1.07-1.25-1.42-2H6V5h2v3h8V5h2v5.08c.71.1 1.38.31 2 .6V5c0-1.1-.9-2-2-2zm-6 2c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z\"\n}), 'PendingActions');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z\"\n}), 'Public');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z\"\n}), 'SdStorage');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z\"\n}), 'ViewColumn');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z\"\n}), 'VpnKey');\n\nexports.default = _default;","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z\"\n}), 'CheckBoxOutlineBlank');","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckBox');","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n 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-2zm-2 10H7v-2h10v2z\"\n}), 'IndeterminateCheckBox');","import { generateUtilityClass, generateUtilityClasses } from '@mui/base';\nexport function getCheckboxUtilityClass(slot) {\n return generateUtilityClass('MuiCheckbox', slot);\n}\nconst checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary']);\nexport default checkboxClasses;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"checkedIcon\", \"color\", \"icon\", \"indeterminate\", \"indeterminateIcon\", \"inputProps\", \"size\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { refType } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport SwitchBase from '../internal/SwitchBase';\nimport CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank';\nimport CheckBoxIcon from '../internal/svg-icons/CheckBox';\nimport IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckBox';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n indeterminate,\n color\n } = ownerState;\n const slots = {\n root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`]\n };\n const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n\nconst CheckboxRoot = styled(SwitchBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiCheckbox',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.indeterminate && styles.indeterminate, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n color: (theme.vars || theme).palette.text.secondary\n}, !ownerState.disableRipple && {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n}, ownerState.color !== 'default' && {\n [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n color: (theme.vars || theme).palette[ownerState.color].main\n },\n [`&.${checkboxClasses.disabled}`]: {\n color: (theme.vars || theme).palette.action.disabled\n }\n}));\n\nconst defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});\n\nconst defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});\n\nconst defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});\n\nconst Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {\n var _icon$props$fontSize, _indeterminateIcon$pr;\n\n const props = useThemeProps({\n props: inProps,\n name: 'MuiCheckbox'\n });\n\n const {\n checkedIcon = defaultCheckedIcon,\n color = 'primary',\n icon: iconProp = defaultIcon,\n indeterminate = false,\n indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,\n inputProps,\n size = 'medium'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const icon = indeterminate ? indeterminateIconProp : iconProp;\n const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n\n const ownerState = _extends({}, props, {\n color,\n indeterminate,\n size\n });\n\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CheckboxRoot, _extends({\n type: \"checkbox\",\n inputProps: _extends({\n 'data-indeterminate': indeterminate\n }, inputProps),\n icon: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: (_icon$props$fontSize = icon.props.fontSize) != null ? _icon$props$fontSize : size\n }),\n checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n fontSize: (_indeterminateIcon$pr = indeterminateIcon.props.fontSize) != null ? _indeterminateIcon$pr : size\n }),\n ownerState: ownerState,\n ref: ref\n }, other, {\n classes: classes\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Checkbox.propTypes\n/* remove-proptypes */\n= {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n\n /**\n * The icon to display when the component is checked.\n * @default \n */\n checkedIcon: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).\n * @default 'primary'\n */\n color: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect is disabled.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * The icon to display when the component is unchecked.\n * @default \n */\n icon: PropTypes.node,\n\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n\n /**\n * If `true`, the component appears indeterminate.\n * This does not set the native input element to indeterminate due\n * to inconsistent behavior across browsers.\n * However, we set a `data-indeterminate` attribute on the `input`.\n * @default false\n */\n indeterminate: PropTypes.bool,\n\n /**\n * The icon to display when the component is indeterminate.\n * @default \n */\n indeterminateIcon: PropTypes.node,\n\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n\n /**\n * If `true`, the `input` element is required.\n */\n required: PropTypes.bool,\n\n /**\n * The size of the component.\n * `small` is equivalent to the dense checkbox styling.\n * @default 'medium'\n */\n size: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Checkbox;","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n"],"names":["withStyles","theme","createStyles","root","border","borderRadius","backgroundColor","paddingLeft","paddingTop","paddingBottom","paddingRight","leftItems","fontSize","fontWeight","marginBottom","display","alignItems","marginRight","height","width","helpText","classes","iconComponent","title","help","className","container","item","xs","modalStyleUtils","spacingUtils","codeMirrorContainer","formFieldStyles","open","selectedAccessKey","closeModalAndRefresh","dispatch","useAppDispatch","useState","loading","setLoading","policyDefinition","setPolicyDefinition","useEffect","api","encodeURLString","then","res","catch","err","setModalErrorSnackMessage","modalOpen","onClose","titleIcon","noValidate","autoComplete","onSubmit","e","newPolicy","preventDefault","policy","label","value","onBeforeChange","editor","data","editorHeight","modalButtonBar","id","type","variant","onClick","disabled","color","WrappedComponent","fallback","ComponentWithSuspense","props","Suspense","fieldBasic","tooltip","mode","readOnly","sx","inputLabel","tooltipContainer","placement","style","maxHeight","overflow","language","onChange","evn","target","padding","fontFamily","minHeight","background","borderTop","justifyContent","marginLeft","text","icon","deleteDialogStyles","content","customDialogSize","maxWidth","snackBarCommon","children","wideLimit","noContentPadding","openSnackbar","setOpenSnackbar","modalSnackMessage","useSelector","state","system","modalSnackBar","setModalSnackMessage","message","customSize","paper","fullWidth","detailedErrorMsg","length","scroll","event","reason","titleText","closeContainer","closeButton","disableRipple","size","isModal","snackBarModal","ContentProps","snackBar","errorSnackBar","autoHideDuration","searchField","adornment","placeholder","adornmentPosition","overrideClass","inputProps","disableUnderline","position","InputProps","errorProps","cloneElement","configurationElements","configuration_id","configuration_label","fieldsConfigurations","region","name","required","cache","multiline","compression","withBorder","heal","scanner","etcd","identity_openid","identity_ldap","logger_webhook","audit_webhook","removeEmptyFields","formFields","filter","field","selectSAs","setSelectedSAs","selectedSAs","targetD","checked","elements","push","element","closeDeleteModalAndRefresh","deleteOpen","useApi","setErrorSnackMessage","deleteLoading","invokeDeleteApi","confirmText","isOpen","isLoading","onConfirm","confirmationContent","usersSort","a","b","accessKey","policySort","stringSort","policyDetailsSort","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","createSvgIcon","_jsx","getCheckboxUtilityClass","slot","generateUtilityClass","generateUtilityClasses","_excluded","CheckboxRoot","styled","SwitchBase","shouldForwardProp","prop","rootShouldForwardProp","overridesResolver","styles","ownerState","indeterminate","capitalize","_extends","vars","palette","secondary","action","activeChannel","primary","mainChannel","hoverOpacity","alpha","active","main","checkboxClasses","defaultCheckedIcon","CheckBoxIcon","defaultIcon","CheckBoxOutlineBlankIcon","defaultIndeterminateIcon","IndeterminateCheckBoxIcon","React","inProps","ref","_icon$props$fontSize","_indeterminateIcon$pr","useThemeProps","checkedIcon","iconProp","indeterminateIcon","indeterminateIconProp","other","_objectWithoutPropertiesLoose","slots","composedClasses","composeClasses","useUtilityClasses","baseGetTag","isArray","isObjectLike","module"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/5289.bed1d51e.chunk.js b/portal-ui/build/static/js/5289.bed1d51e.chunk.js
deleted file mode 100644
index 65aa1fef7..000000000
--- a/portal-ui/build/static/js/5289.bed1d51e.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[5289],{23804:function(e,t,n){n(72791);var o=n(11135),r=n(25787),i=n(61889),a=n(80184);t.Z=(0,r.Z)((function(e){return(0,o.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,n=e.iconComponent,o=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(i.ZP,{container:!0,children:[(0,a.jsxs)(i.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,o]}),(0,a.jsx)(i.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},14048:function(e,t,n){var o=n(29439),r=n(1413),i=n(72791),a=n(75952),l=n(11135),c=n(25787),s=n(61889),d=n(23814),u=n(81207),p=n(56028),m=n(38734),f=n(92217),h=n(45248),g=n(87995),b=n(25469),y=n(80184);(0,l.Z)((0,r.Z)((0,r.Z)({},d.ID),d.bK));t.Z=(0,c.Z)((function(e){return(0,l.Z)((0,r.Z)((0,r.Z)((0,r.Z)({codeMirrorContainer:{marginBottom:20,"& label":{marginBottom:".5rem"},"& label + div":{display:"none"}}},d.DF),d.ID),d.bK))}))((function(e){var t=e.classes,n=e.open,r=e.selectedAccessKey,l=e.closeModalAndRefresh,c=(0,b.TL)(),d=(0,i.useState)(!0),x=(0,o.Z)(d,2),v=x[0],Z=x[1],_=(0,i.useState)(""),j=(0,o.Z)(_,2),k=j[0],C=j[1];(0,i.useEffect)((function(){v&&u.Z.invoke("GET","/api/v1/service-accounts/".concat((0,h.LL)(r),"/policy")).then((function(e){Z(!1),C(e)})).catch((function(e){Z(!1),c((0,g.zb)(e))}))}),[v,Z,c,r]);return(0,y.jsx)(p.Z,{title:"Service Account Policy",modalOpen:n,onClose:function(){l()},titleIcon:(0,y.jsx)(m.QXQ,{}),children:(0,y.jsx)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){var t;t=k,e.preventDefault(),u.Z.invoke("PUT","/api/v1/service-accounts/".concat((0,h.LL)(r),"/policy"),{policy:t}).then((function(e){l()})).catch((function(e){c((0,g.zb)(e))}))},children:(0,y.jsxs)(s.ZP,{container:!0,children:[(0,y.jsx)(s.ZP,{item:!0,xs:12,className:t.codeMirrorContainer,children:(0,y.jsx)(f.Z,{label:"Service Account Policy",value:k,onBeforeChange:function(e,t,n){C(n)},editorHeight:"350px"})}),(0,y.jsxs)(s.ZP,{item:!0,xs:12,className:t.modalButtonBar,children:[(0,y.jsx)(a.z,{id:"cancel-sa-policy",type:"button",variant:"regular",onClick:function(){l()},disabled:v,label:"Cancel"}),(0,y.jsx)(a.z,{id:"save-sa-policy",type:"submit",variant:"callAction",color:"primary",disabled:v,label:"Set"})]})]})})})}))},75578:function(e,t,n){var o=n(1413),r=n(72791),i=n(80184);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;function n(n){return(0,i.jsx)(r.Suspense,{fallback:t,children:(0,i.jsx)(e,(0,o.Z)({},n))})}return n}},92217:function(e,t,n){var o=n(1413),r=n(72791),i=n(61889),a=n(30829),l=n(20068),c=n(64554),s=n(11135),d=n(25787),u=n(84570),p=n(23814),m=n(38734),f=n(75952),h=n(78029),g=n.n(h),b=n(90932),y=n(27454),x=n(80184);t.Z=(0,d.Z)((function(e){return(0,s.Z)((0,o.Z)({},p.YI))}))((function(e){var t=e.value,n=e.label,o=void 0===n?"":n,s=e.tooltip,d=void 0===s?"":s,p=e.mode,h=void 0===p?"json":p,v=e.classes,Z=e.onBeforeChange,_=(e.readOnly,e.editorHeight),j=void 0===_?"250px":_;return(0,x.jsxs)(r.Fragment,{children:[(0,x.jsx)(i.ZP,{item:!0,xs:12,sx:{marginBottom:"10px"},children:(0,x.jsxs)(a.Z,{className:v.inputLabel,children:[(0,x.jsx)("span",{children:o}),""!==d&&(0,x.jsx)("div",{className:v.tooltipContainer,children:(0,x.jsx)(l.Z,{title:d,placement:"top-start",children:(0,x.jsx)("div",{className:v.tooltip,children:(0,x.jsx)(u.Z,{})})})})]})}),(0,x.jsx)(i.ZP,{item:!0,xs:12,style:{maxHeight:j,overflow:"auto",border:"1px solid #eaeaea"},children:(0,x.jsx)(b.Z,{value:t,language:h,onChange:function(e){Z(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:j||"initial",color:"#000000"}})}),(0,x.jsx)(i.ZP,{item:!0,xs:12,sx:{background:"#f7f7f7",border:"1px solid #eaeaea",borderTop:0},children:(0,x.jsx)(c.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,x.jsx)(y.Z,{tooltip:"Copy to Clipboard",children:(0,x.jsx)(g(),{text:t,children:(0,x.jsx)(f.z,{type:"button",id:"copy-code-mirror",icon:(0,x.jsx)(m.TIy,{}),color:"primary",variant:"regular"})})})})})]})}))},56028:function(e,t,n){var o=n(29439),r=n(1413),i=n(72791),a=n(60364),l=n(13400),c=n(55646),s=n(5574),d=n(65661),u=n(39157),p=n(11135),m=n(25787),f=n(23814),h=n(25469),g=n(29823),b=n(28057),y=n(87995),x=n(80184);t.Z=(0,m.Z)((function(e){return(0,p.Z)((0,r.Z)((0,r.Z)({},f.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},f.sN))}))((function(e){var t=e.onClose,n=e.modalOpen,p=e.title,m=e.children,f=e.classes,v=e.wideLimit,Z=void 0===v||v,_=e.noContentPadding,j=e.titleIcon,k=void 0===j?null:j,C=(0,h.TL)(),E=(0,i.useState)(!1),q=(0,o.Z)(E,2),w=q[0],S=q[1],D=(0,a.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){C((0,y.MK)(""))}),[C]),(0,i.useEffect)((function(){if(D){if(""===D.message)return void S(!1);"error"!==D.type&&S(!0)}}),[D]);var L=Z?{classes:{paper:f.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},N="";return D&&(N=D.detailedErrorMsg,(""===D.detailedErrorMsg||D.detailedErrorMsg.length<5)&&(N=D.message)),(0,x.jsxs)(s.Z,(0,r.Z)((0,r.Z)({open:n,classes:f},L),{},{scroll:"paper",onClose:function(e,n){"backdropClick"!==n&&t()},className:f.root,children:[(0,x.jsxs)(d.Z,{className:f.title,children:[(0,x.jsxs)("div",{className:f.titleText,children:[k," ",p]}),(0,x.jsx)("div",{className:f.closeContainer,children:(0,x.jsx)(l.Z,{"aria-label":"close",id:"close",className:f.closeButton,onClick:t,disableRipple:!0,size:"small",children:(0,x.jsx)(g.Z,{})})})]}),(0,x.jsx)(b.Z,{isModal:!0}),(0,x.jsx)(c.Z,{open:w,className:f.snackBarModal,onClose:function(){S(!1),C((0,y.MK)(""))},message:N,ContentProps:{className:"".concat(f.snackBar," ").concat(D&&"error"===D.type?f.errorSnackBar:"")},autoHideDuration:D&&"error"===D.type?1e4:5e3}),(0,x.jsx)(u.Z,{className:_?"":f.content,children:m})]}))}))},59114:function(e,t,n){var o=n(4942),r=n(1413),i=(n(72791),n(63466)),a=n(74900),l=n(27391),c=n(25787),s=n(11135),d=n(23814),u=n(80184);t.Z=(0,c.Z)((function(e){return(0,s.Z)({searchField:(0,r.Z)({},d.qg.searchField),adornment:{}})}))((function(e){var t=e.placeholder,n=void 0===t?"":t,r=e.classes,c=e.onChange,s=e.adornmentPosition,d=void 0===s?"end":s,p=e.overrideClass,m=e.value,f=(0,o.Z)({disableUnderline:!0},"".concat(d,"Adornment"),(0,u.jsx)(i.Z,{position:d,className:r.adornment,children:(0,u.jsx)(a.Z,{})}));return(0,u.jsx)(l.Z,{placeholder:n,className:p||r.searchField,id:"search-resource",label:"",InputProps:f,onChange:function(e){c(e.target.value)},variant:"standard",value:m})}))},27454:function(e,t,n){var o=n(1413),r=n(72791),i=n(20068),a=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,l=e.errorProps,c=void 0===l?null:l;return(0,a.jsx)(i.Z,{title:t,children:(0,a.jsx)("span",{children:c?(0,r.cloneElement)(n,(0,o.Z)({},c)):n})})}},58493:function(e,t,n){n.d(t,{DD:function(){return y},DP:function(){return b},_0:function(){return x},bx:function(){return g}});var o=n(93433),r=(n(72791),n(87569)),i=n(59314),a=n(61809),l=n(31292),c=n(98095),s=n(67055),d=n(21141),u=n(61248),p=n(50521),m=n(36909),f=n(13901),h=n(80184),g=[{icon:(0,h.jsx)(r.Z,{}),configuration_id:"region",configuration_label:"Region"},{icon:(0,h.jsx)(i.Z,{}),configuration_id:"cache",configuration_label:"Cache"},{icon:(0,h.jsx)(a.Z,{}),configuration_id:"compression",configuration_label:"Compression"},{icon:(0,h.jsx)(l.Z,{}),configuration_id:"api",configuration_label:"API"},{icon:(0,h.jsx)(c.Z,{}),configuration_id:"heal",configuration_label:"Heal"},{icon:(0,h.jsx)(s.Z,{}),configuration_id:"scanner",configuration_label:"Scanner"},{icon:(0,h.jsx)(d.Z,{}),configuration_id:"etcd",configuration_label:"Etcd"},{icon:(0,h.jsx)(u.Z,{}),configuration_id:"identity_openid",configuration_label:"Identity Openid"},{icon:(0,h.jsx)(p.Z,{}),configuration_id:"identity_ldap",configuration_label:"Identity LDAP"},{icon:(0,h.jsx)(f.Z,{}),configuration_id:"logger_webhook",configuration_label:"Logger Webhook"},{icon:(0,h.jsx)(m.Z,{}),configuration_id:"audit_webhook",configuration_label:"Audit Webhook"}],b={region:[{name:"name",required:!0,label:"Server Location",tooltip:'Name of the location of the server e.g. "us-west-rack2"',type:"string",placeholder:"e.g. us-west-rack-2"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",placeholder:"Enter custom notes if any"}],cache:[{name:"drives",required:!0,label:"Drives",tooltip:'Mountpoints e.g. "/optane1" or "/optane2", you can write one per field',type:"csv",placeholder:"Enter Mount Point"},{name:"expiry",required:!1,label:"Expiry",tooltip:'Cache expiry duration in days e.g. "90"',type:"number",placeholder:"Enter Number of Days"},{name:"quota",required:!1,label:"Quota",tooltip:'Limit cache drive usage in percentage e.g. "90"',type:"number",placeholder:"Enter in %"},{name:"exclude",required:!1,label:"Exclude",tooltip:'Wildcard exclusion patterns e.g. "bucket/*.tmp" or "*.exe", you can write one per field',type:"csv",placeholder:"Enter Wildcard Exclusion Patterns"},{name:"after",required:!1,label:"After",tooltip:"Minimum number of access before caching an object",type:"number",placeholder:"Enter Number of Attempts"},{name:"watermark_low",required:!1,label:"Watermark Low",tooltip:"Watermark Low",type:"number",placeholder:"Enter Watermark Low"},{name:"watermark_high",required:!1,label:"Watermark High",tooltip:"Watermark High",type:"number",placeholder:"Enter Watermark High"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter custom notes if any"}],compression:[{name:"extensions",required:!1,label:"Extensions",tooltip:'Extensions to compress e.g. ".txt",".log" or ".csv", you can write one per field',type:"csv",placeholder:"Enter an Extension",withBorder:!0},{name:"mime_types",required:!1,label:"Mime Types",tooltip:'Mime types e.g. "text/*","application/json" or "application/xml", you can write one per field',type:"csv",placeholder:"Enter a Mime Type",withBorder:!0}],api:[{name:"requests_max",required:!1,label:"Requests Max",tooltip:"Maximum number of concurrent requests, e.g. '1600'",type:"number",placeholder:"Enter Requests Max"},{name:"cors_allow_origin",required:!1,label:"Cors Allow Origin",tooltip:"List of origins allowed for CORS requests",type:"csv",placeholder:"Enter allowed origin e.g. https://example.com"},{name:"replication_workers",required:!1,label:"Replication Workers",tooltip:"Number of replication workers, defaults to 100",type:"number",placeholder:"Enter Replication Workers"},{name:"replication_failed_workers",required:!1,label:"Replication Failed Workers",tooltip:"Number of replication workers for recently failed replicas, defaults to 4",type:"number",placeholder:"Enter Replication Failed Workers"}],heal:[{name:"bitrotscan",required:!1,label:"Bitrot Scan",tooltip:"Perform bitrot scan on disks when checking objects during scanner",type:"on|off"},{name:"max_sleep",required:!1,label:"Max Sleep",tooltip:"Maximum sleep duration between objects to slow down heal operation. eg. 2s",type:"duration",placeholder:"Enter Max Sleep duration"},{name:"max_io",required:!1,label:"Max IO",tooltip:"Maximum IO requests allowed between objects to slow down heal operation. eg. 3",type:"number",placeholder:"Enter Max IO"}],scanner:[{name:"delay",required:!1,label:"Delay multiplier",tooltip:"Scanner delay multiplier, defaults to '10.0'",type:"number",placeholder:"Enter Delay"},{name:"max_wait",required:!1,label:"Max Wait",tooltip:"Maximum wait time between operations, defaults to '15s'",type:"duration",placeholder:"Enter Max Wait"},{name:"cycle",required:!1,label:"Cycle",tooltip:"Time duration between scanner cycles, defaults to '1m'",type:"duration",placeholder:"Enter Cycle"}],etcd:[{name:"endpoints",required:!0,label:"Endpoints",tooltip:'List of etcd endpoints e.g. "http://localhost:2379", you can write one per field',type:"csv",placeholder:"Enter Endpoint"},{name:"path_prefix",required:!1,label:"Path Prefix",tooltip:'Namespace prefix to isolate tenants e.g. "customer1/"',type:"string",placeholder:"Enter Path Prefix"},{name:"coredns_path",required:!1,label:"Coredns Path",tooltip:'Shared bucket DNS records, default is "/skydns"',type:"string",placeholder:"Enter Coredns Path"},{name:"client_cert",required:!1,label:"Client Cert",tooltip:"Client cert for mTLS authentication",type:"string",placeholder:"Enter Client Cert"},{name:"client_cert_key",required:!1,label:"Client Cert Key",tooltip:"Client cert key for mTLS authentication",type:"string",placeholder:"Enter Client Cert Key"},{name:"comment",required:!1,label:"Comment",tooltip:"You can add a comment to this setting",type:"comment",multiline:!0,placeholder:"Enter custom notes if any"}],identity_openid:[{name:"config_url",required:!1,label:"Config URL",tooltip:"Config URL for identity provider configuration",type:"string",placeholder:"https://identity-provider-url/.well-known/openid-configuration"},{name:"client_id",required:!1,label:"Client ID",type:"string",placeholder:"Enter Client ID"},{name:"client_secret",required:!1,label:"Secret ID",type:"string",placeholder:"Enter Secret ID"},{name:"claim_name",required:!1,label:"Claim Name",tooltip:"Claim from which MinIO will read the policy or role to use",type:"string",placeholder:"Enter Claim Name"},{name:"claim_prefix",required:!1,label:"Claim Prefix",tooltip:"Claim Prefix",type:"string",placeholder:"Enter Claim Prefix"},{name:"claim_userinfo",required:!1,label:"Claim UserInfo",type:"on|off"},{name:"redirect_uri",required:!1,label:"Redirect URI",type:"string",placeholder:"https://console-endpoint-url/oauth_callback"},{name:"scopes",required:!1,label:"Scopes",type:"string",placeholder:"openid,profile,email"}],identity_ldap:[{name:"server_addr",required:!0,label:"Server Addr",tooltip:'AD/LDAP server address e.g. "myldapserver.com:636"',type:"string",placeholder:"myldapserver.com:636"},{name:"tls_skip_verify",required:!1,label:"TLS Skip Verify",tooltip:'Trust server TLS without verification, defaults to "off" (verify)',type:"on|off"},{name:"server_insecure",required:!1,label:"Server Insecure",tooltip:'Allow plain text connection to AD/LDAP server, defaults to "off"',type:"on|off"},{name:"server_starttls",required:!1,label:"Start TLS connection to AD/LDAP server",tooltip:"Use StartTLS connection to AD/LDAP server",type:"on|off"},{name:"lookup_bind_dn",required:!0,label:"Lookup Bind DN",tooltip:"DN for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"cn=admin,dc=min,dc=io"},{name:"lookup_bind_password",required:!1,label:"Lookup Bind Password",tooltip:"Password for LDAP read-only service account used to perform DN and group lookups",type:"string",placeholder:"admin"},{name:"user_dn_search_base_dn",required:!1,label:"User DN Search Base DN",tooltip:"Base LDAP DN to search for user DN",type:"csv",placeholder:"dc=myldapserver"},{name:"user_dn_search_filter",required:!1,label:"User DN Search Filter",tooltip:"Search filter to lookup user DN",type:"string",placeholder:"(sAMAcountName=%s)"},{name:"group_search_filter",required:!1,label:"Group Search Filter",tooltip:"Search filter for groups",type:"string",placeholder:"(&(objectclass=groupOfNames)(member=%d))"},{name:"group_search_base_dn",required:!1,label:"Group Search Base DN",tooltip:"List of group search base DNs",type:"csv",placeholder:"dc=minioad,dc=local"},{name:"comment",required:!1,label:"Comment",tooltip:"Optionally add a comment to this setting",type:"comment",placeholder:"Enter custom notes if any"}],logger_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}],audit_webhook:[{name:"endpoint",required:!0,label:"Endpoint",type:"string",placeholder:"Enter Endpoint"},{name:"auth_token",required:!0,label:"Auth Token",type:"string",placeholder:"Enter Auth Token"}]},y=function(e){return e.filter((function(e){return""!==e.value}))},x=function(e,t,n){var r=e.target,i=r.value,a=r.checked,l=(0,o.Z)(n);return a?l.push(i):l=l.filter((function(e){return e!==i})),t(l),l}},18303:function(e,t,n){var o=n(29439),r=(n(72791),n(51691)),i=n(9505),a=n(23508),l=n(38734),c=n(87995),s=n(25469),d=n(80184);t.Z=function(e){var t=e.closeDeleteModalAndRefresh,n=e.deleteOpen,u=e.selectedSAs,p=(0,s.TL)(),m=(0,i.Z)((function(){return t(!0)}),(function(e){return p((0,c.Ih)(e))})),f=(0,o.Z)(m,2),h=f[0],g=f[1];if(!u)return null;return(0,d.jsx)(a.Z,{title:"Delete Service Accounts",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(l.NvT,{}),isLoading:h,onConfirm:function(){g("DELETE","/api/v1/service-accounts/delete-multi",u)},onClose:function(){return t(!1)},confirmationContent:(0,d.jsxs)(r.Z,{children:["Are you sure you want to delete the selected ",u.length," ","service accounts?"," "]})})}},21639:function(e,t,n){n.d(t,{KE:function(){return a},LQ:function(){return o},V2:function(){return i},g4:function(){return r}});var o=function(e,t){return e.accessKey>t.accessKey?1:e.accessKeyt.name?1:e.namet?1:et.policy?1:e.policy.\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n border: \"1px solid #E2E2E2\",\n borderRadius: 2,\n backgroundColor: \"#FBFAFA\",\n paddingLeft: 25,\n paddingTop: 31,\n paddingBottom: 21,\n paddingRight: 30,\n },\n leftItems: {\n fontSize: 16,\n fontWeight: \"bold\",\n marginBottom: 15,\n display: \"flex\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: 15,\n height: 28,\n width: 38,\n },\n },\n helpText: {\n fontSize: 16,\n paddingLeft: 5,\n },\n });\n\ninterface IHelpBox {\n classes: any;\n iconComponent: any;\n title: string;\n help: any;\n}\n\nconst HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect, useState } from \"react\";\n\nimport { Button } from \"mds\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\nimport {\n formFieldStyles,\n modalStyleUtils,\n spacingUtils,\n} from \"../Common/FormComponents/common/styleLibrary\";\n\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport api from \"../../../common/api\";\nimport ModalWrapper from \"../Common/ModalWrapper/ModalWrapper\";\nimport { ChangeAccessPolicyIcon } from \"../../../icons\";\nimport CodeMirrorWrapper from \"../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper\";\nimport { encodeURLString } from \"../../../common/utils\";\nimport { setModalErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n codeMirrorContainer: {\n marginBottom: 20,\n \"& label\": {\n marginBottom: \".5rem\",\n },\n \"& label + div\": {\n display: \"none\",\n },\n },\n ...formFieldStyles,\n ...modalStyleUtils,\n ...spacingUtils,\n });\ncreateStyles({\n ...modalStyleUtils,\n ...spacingUtils,\n});\n\ninterface IServiceAccountPolicyProps {\n classes: any;\n open: boolean;\n selectedAccessKey: string | null;\n closeModalAndRefresh: () => void;\n}\n\nconst ServiceAccountPolicy = ({\n classes,\n open,\n selectedAccessKey,\n closeModalAndRefresh,\n}: IServiceAccountPolicyProps) => {\n const dispatch = useAppDispatch();\n const [loading, setLoading] = useState(true);\n const [policyDefinition, setPolicyDefinition] = useState(\"\");\n useEffect(() => {\n if (loading) {\n api\n .invoke(\n \"GET\",\n `/api/v1/service-accounts/${encodeURLString(\n selectedAccessKey\n )}/policy`\n )\n .then((res) => {\n setLoading(false);\n setPolicyDefinition(res);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n });\n }\n }, [loading, setLoading, dispatch, selectedAccessKey]);\n\n const setPolicy = (event: React.FormEvent, newPolicy: string) => {\n event.preventDefault();\n api\n .invoke(\n \"PUT\",\n `/api/v1/service-accounts/${encodeURLString(selectedAccessKey)}/policy`,\n {\n policy: newPolicy,\n }\n )\n .then((res) => {\n closeModalAndRefresh();\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setModalErrorSnackMessage(err));\n });\n };\n\n return (\n {\n closeModalAndRefresh();\n }}\n titleIcon={}\n >\n \n \n );\n};\n\nexport default withStyles(styles)(ServiceAccountPolicy);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { ComponentType, Suspense, SuspenseProps } from \"react\";\n\nfunction withSuspense
(\n WrappedComponent: ComponentType
,\n fallback: SuspenseProps[\"fallback\"] = null\n) {\n function ComponentWithSuspense(props: P) {\n return (\n \n \n \n );\n }\n\n return ComponentWithSuspense;\n}\n\nexport default withSuspense;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { Box, InputLabel, Tooltip } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport { fieldBasic } from \"../common/styleLibrary\";\nimport { CopyIcon } from \"../../../../../icons\";\nimport { Button } from \"mds\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport CodeEditor from \"@uiw/react-textarea-code-editor\";\nimport TooltipWrapper from \"../../TooltipWrapper/TooltipWrapper\";\n\ninterface ICodeWrapper {\n value: string;\n label?: string;\n mode?: string;\n tooltip?: string;\n classes: any;\n onChange?: (editor: any, data: any, value: string) => any;\n onBeforeChange: (editor: any, data: any, value: string) => any;\n readOnly?: boolean;\n editorHeight?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n });\n\nconst CodeMirrorWrapper = ({\n value,\n label = \"\",\n tooltip = \"\",\n mode = \"json\",\n classes,\n onBeforeChange,\n readOnly = false,\n editorHeight = \"250px\",\n}: ICodeWrapper) => {\n return (\n \n \n \n {label}\n {tooltip !== \"\" && (\n
\n \n
\n \n
\n \n
\n )}\n \n \n\n \n {\n onBeforeChange(null, null, evn.target.value);\n }}\n id={\"code_wrapper\"}\n padding={15}\n style={{\n fontSize: 12,\n backgroundColor: \"#fefefe\",\n fontFamily:\n \"ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace\",\n minHeight: editorHeight || \"initial\",\n color: \"#000000\",\n }}\n />\n \n \n \n \n \n }\n color={\"primary\"}\n variant={\"regular\"}\n />\n \n \n \n \n \n );\n};\n\nexport default withStyles(styles)(CodeMirrorWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport InputAdornment from \"@mui/material/InputAdornment\";\nimport SearchIcon from \"../../../icons/SearchIcon\";\nimport TextField from \"@mui/material/TextField\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport { searchField } from \"./FormComponents/common/styleLibrary\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n searchField: {\n ...searchField.searchField,\n },\n adornment: {},\n });\n\ntype SearchBoxProps = {\n placeholder?: string;\n value: string;\n classes: any;\n onChange: (value: string) => void;\n adornmentPosition?: \"start\" | \"end\";\n overrideClass?: any;\n};\n\nconst SearchBox = ({\n placeholder = \"\",\n classes,\n onChange,\n adornmentPosition = \"end\",\n overrideClass,\n value,\n}: SearchBoxProps) => {\n const inputProps = {\n disableUnderline: true,\n [`${adornmentPosition}Adornment`]: (\n \n \n \n ),\n };\n return (\n {\n onChange(e.target.value);\n }}\n variant=\"standard\"\n value={value}\n />\n );\n};\n\nexport default withStyles(styles)(SearchBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport PublicIcon from \"@mui/icons-material/Public\";\nimport SdStorageIcon from \"@mui/icons-material/SdStorage\";\nimport CompressIcon from \"@mui/icons-material/Compress\";\nimport CodeIcon from \"@mui/icons-material/Code\";\nimport LocalHospitalIcon from \"@mui/icons-material/LocalHospital\";\nimport FindReplaceIcon from \"@mui/icons-material/FindReplace\";\nimport VpnKeyIcon from \"@mui/icons-material/VpnKey\";\nimport LockOpenIcon from \"@mui/icons-material/LockOpen\";\nimport LoginIcon from \"@mui/icons-material/Login\";\nimport PendingActionsIcon from \"@mui/icons-material/PendingActions\";\nimport CallToActionIcon from \"@mui/icons-material/CallToAction\";\nimport { IElement, IElementValue } from \"./types\";\n\nexport const configurationElements: IElement[] = [\n {\n icon: ,\n configuration_id: \"region\",\n configuration_label: \"Region\",\n },\n {\n icon: ,\n configuration_id: \"cache\",\n configuration_label: \"Cache\",\n },\n {\n icon: ,\n configuration_id: \"compression\",\n configuration_label: \"Compression\",\n },\n {\n icon: ,\n configuration_id: \"api\",\n configuration_label: \"API\",\n },\n {\n icon: ,\n configuration_id: \"heal\",\n configuration_label: \"Heal\",\n },\n {\n icon: ,\n configuration_id: \"scanner\",\n configuration_label: \"Scanner\",\n },\n {\n icon: ,\n configuration_id: \"etcd\",\n configuration_label: \"Etcd\",\n },\n {\n icon: ,\n configuration_id: \"identity_openid\",\n configuration_label: \"Identity Openid\",\n },\n {\n icon: ,\n configuration_id: \"identity_ldap\",\n configuration_label: \"Identity LDAP\",\n },\n {\n icon: ,\n configuration_id: \"logger_webhook\",\n configuration_label: \"Logger Webhook\",\n },\n {\n icon: ,\n configuration_id: \"audit_webhook\",\n configuration_label: \"Audit Webhook\",\n },\n];\n\nexport const fieldsConfigurations: any = {\n region: [\n {\n name: \"name\",\n required: true,\n label: \"Server Location\",\n tooltip: 'Name of the location of the server e.g. \"us-west-rack2\"',\n type: \"string\",\n placeholder: \"e.g. us-west-rack-2\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n ],\n cache: [\n {\n name: \"drives\",\n required: true,\n label: \"Drives\",\n tooltip:\n 'Mountpoints e.g. \"/optane1\" or \"/optane2\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Mount Point\",\n },\n {\n name: \"expiry\",\n required: false,\n label: \"Expiry\",\n tooltip: 'Cache expiry duration in days e.g. \"90\"',\n type: \"number\",\n placeholder: \"Enter Number of Days\",\n },\n {\n name: \"quota\",\n required: false,\n label: \"Quota\",\n tooltip: 'Limit cache drive usage in percentage e.g. \"90\"',\n type: \"number\",\n placeholder: \"Enter in %\",\n },\n {\n name: \"exclude\",\n required: false,\n label: \"Exclude\",\n tooltip:\n 'Wildcard exclusion patterns e.g. \"bucket/*.tmp\" or \"*.exe\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Wildcard Exclusion Patterns\",\n },\n {\n name: \"after\",\n required: false,\n label: \"After\",\n tooltip: \"Minimum number of access before caching an object\",\n type: \"number\",\n placeholder: \"Enter Number of Attempts\",\n },\n {\n name: \"watermark_low\",\n required: false,\n label: \"Watermark Low\",\n tooltip: \"Watermark Low\",\n type: \"number\",\n placeholder: \"Enter Watermark Low\",\n },\n {\n name: \"watermark_high\",\n required: false,\n label: \"Watermark High\",\n tooltip: \"Watermark High\",\n type: \"number\",\n placeholder: \"Enter Watermark High\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n multiline: true,\n placeholder: \"Enter custom notes if any\",\n },\n ],\n compression: [\n {\n name: \"extensions\",\n required: false,\n label: \"Extensions\",\n tooltip:\n 'Extensions to compress e.g. \".txt\",\".log\" or \".csv\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter an Extension\",\n withBorder: true,\n },\n {\n name: \"mime_types\",\n required: false,\n label: \"Mime Types\",\n tooltip:\n 'Mime types e.g. \"text/*\",\"application/json\" or \"application/xml\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter a Mime Type\",\n withBorder: true,\n },\n ],\n api: [\n {\n name: \"requests_max\",\n required: false,\n label: \"Requests Max\",\n tooltip: \"Maximum number of concurrent requests, e.g. '1600'\",\n type: \"number\",\n placeholder: \"Enter Requests Max\",\n },\n {\n name: \"cors_allow_origin\",\n required: false,\n label: \"Cors Allow Origin\",\n tooltip: \"List of origins allowed for CORS requests\",\n type: \"csv\",\n placeholder: \"Enter allowed origin e.g. https://example.com\",\n },\n {\n name: \"replication_workers\",\n required: false,\n label: \"Replication Workers\",\n tooltip: \"Number of replication workers, defaults to 100\",\n type: \"number\",\n placeholder: \"Enter Replication Workers\",\n },\n {\n name: \"replication_failed_workers\",\n required: false,\n label: \"Replication Failed Workers\",\n tooltip:\n \"Number of replication workers for recently failed replicas, defaults to 4\",\n type: \"number\",\n placeholder: \"Enter Replication Failed Workers\",\n },\n ],\n heal: [\n {\n name: \"bitrotscan\",\n required: false,\n label: \"Bitrot Scan\",\n tooltip:\n \"Perform bitrot scan on disks when checking objects during scanner\",\n type: \"on|off\",\n },\n {\n name: \"max_sleep\",\n required: false,\n label: \"Max Sleep\",\n tooltip:\n \"Maximum sleep duration between objects to slow down heal operation. eg. 2s\",\n type: \"duration\",\n placeholder: \"Enter Max Sleep duration\",\n },\n {\n name: \"max_io\",\n required: false,\n label: \"Max IO\",\n tooltip:\n \"Maximum IO requests allowed between objects to slow down heal operation. eg. 3\",\n type: \"number\",\n placeholder: \"Enter Max IO\",\n },\n ],\n scanner: [\n {\n name: \"delay\",\n required: false,\n label: \"Delay multiplier\",\n tooltip: \"Scanner delay multiplier, defaults to '10.0'\",\n type: \"number\",\n placeholder: \"Enter Delay\",\n },\n {\n name: \"max_wait\",\n required: false,\n label: \"Max Wait\",\n tooltip: \"Maximum wait time between operations, defaults to '15s'\",\n type: \"duration\",\n placeholder: \"Enter Max Wait\",\n },\n {\n name: \"cycle\",\n required: false,\n label: \"Cycle\",\n tooltip: \"Time duration between scanner cycles, defaults to '1m'\",\n type: \"duration\",\n placeholder: \"Enter Cycle\",\n },\n ],\n etcd: [\n {\n name: \"endpoints\",\n required: true,\n label: \"Endpoints\",\n tooltip:\n 'List of etcd endpoints e.g. \"http://localhost:2379\", you can write one per field',\n type: \"csv\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"path_prefix\",\n required: false,\n label: \"Path Prefix\",\n tooltip: 'Namespace prefix to isolate tenants e.g. \"customer1/\"',\n type: \"string\",\n placeholder: \"Enter Path Prefix\",\n },\n {\n name: \"coredns_path\",\n required: false,\n label: \"Coredns Path\",\n tooltip: 'Shared bucket DNS records, default is \"/skydns\"',\n type: \"string\",\n placeholder: \"Enter Coredns Path\",\n },\n {\n name: \"client_cert\",\n required: false,\n label: \"Client Cert\",\n tooltip: \"Client cert for mTLS authentication\",\n type: \"string\",\n placeholder: \"Enter Client Cert\",\n },\n {\n name: \"client_cert_key\",\n required: false,\n label: \"Client Cert Key\",\n tooltip: \"Client cert key for mTLS authentication\",\n type: \"string\",\n placeholder: \"Enter Client Cert Key\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"You can add a comment to this setting\",\n type: \"comment\",\n multiline: true,\n placeholder: \"Enter custom notes if any\",\n },\n ],\n identity_openid: [\n {\n name: \"config_url\",\n required: false,\n label: \"Config URL\",\n tooltip: \"Config URL for identity provider configuration\",\n type: \"string\",\n placeholder:\n \"https://identity-provider-url/.well-known/openid-configuration\",\n },\n {\n name: \"client_id\",\n required: false,\n label: \"Client ID\",\n type: \"string\",\n placeholder: \"Enter Client ID\",\n },\n {\n name: \"client_secret\",\n required: false,\n label: \"Secret ID\",\n type: \"string\",\n placeholder: \"Enter Secret ID\",\n },\n {\n name: \"claim_name\",\n required: false,\n label: \"Claim Name\",\n tooltip: \"Claim from which MinIO will read the policy or role to use\",\n type: \"string\",\n placeholder: \"Enter Claim Name\",\n },\n {\n name: \"claim_prefix\",\n required: false,\n label: \"Claim Prefix\",\n tooltip: \"Claim Prefix\",\n type: \"string\",\n placeholder: \"Enter Claim Prefix\",\n },\n {\n name: \"claim_userinfo\",\n required: false,\n label: \"Claim UserInfo\",\n type: \"on|off\",\n },\n {\n name: \"redirect_uri\",\n required: false,\n label: \"Redirect URI\",\n type: \"string\",\n placeholder: \"https://console-endpoint-url/oauth_callback\",\n },\n {\n name: \"scopes\",\n required: false,\n label: \"Scopes\",\n type: \"string\",\n placeholder: \"openid,profile,email\",\n },\n ],\n identity_ldap: [\n {\n name: \"server_addr\",\n required: true,\n label: \"Server Addr\",\n tooltip: 'AD/LDAP server address e.g. \"myldapserver.com:636\"',\n type: \"string\",\n placeholder: \"myldapserver.com:636\",\n },\n {\n name: \"tls_skip_verify\",\n required: false,\n label: \"TLS Skip Verify\",\n tooltip:\n 'Trust server TLS without verification, defaults to \"off\" (verify)',\n type: \"on|off\",\n },\n {\n name: \"server_insecure\",\n required: false,\n label: \"Server Insecure\",\n tooltip:\n 'Allow plain text connection to AD/LDAP server, defaults to \"off\"',\n type: \"on|off\",\n },\n {\n name: \"server_starttls\",\n required: false,\n label: \"Start TLS connection to AD/LDAP server\",\n tooltip: \"Use StartTLS connection to AD/LDAP server\",\n type: \"on|off\",\n },\n {\n name: \"lookup_bind_dn\",\n required: true,\n label: \"Lookup Bind DN\",\n tooltip:\n \"DN for LDAP read-only service account used to perform DN and group lookups\",\n type: \"string\",\n placeholder: \"cn=admin,dc=min,dc=io\",\n },\n {\n name: \"lookup_bind_password\",\n required: false,\n label: \"Lookup Bind Password\",\n tooltip:\n \"Password for LDAP read-only service account used to perform DN and group lookups\",\n type: \"string\",\n placeholder: \"admin\",\n },\n {\n name: \"user_dn_search_base_dn\",\n required: false,\n label: \"User DN Search Base DN\",\n tooltip: \"Base LDAP DN to search for user DN\",\n type: \"csv\",\n placeholder: \"dc=myldapserver\",\n },\n {\n name: \"user_dn_search_filter\",\n required: false,\n label: \"User DN Search Filter\",\n tooltip: \"Search filter to lookup user DN\",\n type: \"string\",\n placeholder: \"(sAMAcountName=%s)\",\n },\n {\n name: \"group_search_filter\",\n required: false,\n label: \"Group Search Filter\",\n tooltip: \"Search filter for groups\",\n type: \"string\",\n placeholder: \"(&(objectclass=groupOfNames)(member=%d))\",\n },\n {\n name: \"group_search_base_dn\",\n required: false,\n label: \"Group Search Base DN\",\n tooltip: \"List of group search base DNs\",\n type: \"csv\",\n placeholder: \"dc=minioad,dc=local\",\n },\n {\n name: \"comment\",\n required: false,\n label: \"Comment\",\n tooltip: \"Optionally add a comment to this setting\",\n type: \"comment\",\n placeholder: \"Enter custom notes if any\",\n },\n ],\n logger_webhook: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n type: \"string\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n required: true,\n label: \"Auth Token\",\n type: \"string\",\n placeholder: \"Enter Auth Token\",\n },\n ],\n audit_webhook: [\n {\n name: \"endpoint\",\n required: true,\n label: \"Endpoint\",\n type: \"string\",\n placeholder: \"Enter Endpoint\",\n },\n {\n name: \"auth_token\",\n required: true,\n label: \"Auth Token\",\n type: \"string\",\n placeholder: \"Enter Auth Token\",\n },\n ],\n};\n\nexport const removeEmptyFields = (formFields: IElementValue[]) => {\n const nonEmptyFields = formFields.filter((field) => field.value !== \"\");\n\n return nonEmptyFields;\n};\n\nexport const selectSAs = (\n e: React.ChangeEvent,\n setSelectedSAs: Function,\n selectedSAs: string[]\n) => {\n const targetD = e.target;\n const value = targetD.value;\n const checked = targetD.checked;\n\n let elements: string[] = [...selectedSAs]; // We clone the selectedSAs array\n if (checked) {\n // If the user has checked this field we need to push this to selectedSAs\n elements.push(value);\n } else {\n // User has unchecked this field, we need to remove it from the list\n elements = elements.filter((element) => element !== value);\n }\n setSelectedSAs(elements);\n return elements;\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\n\nimport { DialogContentText } from \"@mui/material\";\nimport { ErrorResponseHandler } from \"../../../common/types\";\nimport useApi from \"../../../screens/Console/Common/Hooks/useApi\";\nimport ConfirmDialog from \"../../../screens/Console/Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmDeleteIcon } from \"../../../icons\";\nimport { setErrorSnackMessage } from \"../../../systemSlice\";\nimport { useAppDispatch } from \"../../../store\";\n\ninterface IDeleteMultiSAsProps {\n closeDeleteModalAndRefresh: (refresh: boolean) => void;\n deleteOpen: boolean;\n selectedSAs: string[];\n}\n\nconst DeleteMultipleSAs = ({\n closeDeleteModalAndRefresh,\n deleteOpen,\n selectedSAs,\n}: IDeleteMultiSAsProps) => {\n const dispatch = useAppDispatch();\n const onDelSuccess = () => closeDeleteModalAndRefresh(true);\n const onDelError = (err: ErrorResponseHandler) =>\n dispatch(setErrorSnackMessage(err));\n const onClose = () => closeDeleteModalAndRefresh(false);\n const [deleteLoading, invokeDeleteApi] = useApi(onDelSuccess, onDelError);\n if (!selectedSAs) {\n return null;\n }\n const onConfirmDelete = () => {\n invokeDeleteApi(\n \"DELETE\",\n `/api/v1/service-accounts/delete-multi`,\n selectedSAs\n );\n };\n return (\n }\n isLoading={deleteLoading}\n onConfirm={onConfirmDelete}\n onClose={onClose}\n confirmationContent={\n \n Are you sure you want to delete the selected {selectedSAs.length}{\" \"}\n service accounts?{\" \"}\n \n }\n />\n );\n};\n\nexport default DeleteMultipleSAs;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\ninterface userInterface {\n accessKey: string;\n}\n\ninterface policyInterface {\n name: string;\n}\n\ninterface policyDetailsInterface {\n policy: string;\n}\n\nexport const usersSort = (a: userInterface, b: userInterface) => {\n if (a.accessKey > b.accessKey) {\n return 1;\n }\n if (a.accessKey < b.accessKey) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const policySort = (a: policyInterface, b: policyInterface) => {\n if (a.name > b.name) {\n return 1;\n }\n if (a.name < b.name) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const stringSort = (a: string, b: string) => {\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n\nexport const policyDetailsSort = (\n a: policyDetailsInterface,\n b: policyDetailsInterface\n) => {\n if (a.policy > b.policy) {\n return 1;\n }\n if (a.policy < b.policy) {\n return -1;\n }\n // a must be equal to b\n return 0;\n};\n"],"names":["withStyles","theme","createStyles","root","border","borderRadius","backgroundColor","paddingLeft","paddingTop","paddingBottom","paddingRight","leftItems","fontSize","fontWeight","marginBottom","display","alignItems","marginRight","height","width","helpText","classes","iconComponent","title","help","className","container","item","xs","modalStyleUtils","spacingUtils","codeMirrorContainer","formFieldStyles","open","selectedAccessKey","closeModalAndRefresh","dispatch","useAppDispatch","useState","loading","setLoading","policyDefinition","setPolicyDefinition","useEffect","api","encodeURLString","then","res","catch","err","setModalErrorSnackMessage","modalOpen","onClose","titleIcon","noValidate","autoComplete","onSubmit","e","newPolicy","preventDefault","policy","label","value","onBeforeChange","editor","data","editorHeight","modalButtonBar","id","type","variant","onClick","disabled","color","WrappedComponent","fallback","ComponentWithSuspense","props","Suspense","fieldBasic","tooltip","mode","readOnly","sx","inputLabel","tooltipContainer","placement","style","maxHeight","overflow","language","onChange","evn","target","padding","fontFamily","minHeight","background","borderTop","justifyContent","marginLeft","text","icon","deleteDialogStyles","content","customDialogSize","maxWidth","snackBarCommon","children","wideLimit","noContentPadding","openSnackbar","setOpenSnackbar","modalSnackMessage","useSelector","state","system","modalSnackBar","setModalSnackMessage","message","customSize","paper","fullWidth","detailedErrorMsg","length","scroll","event","reason","titleText","closeContainer","closeButton","disableRipple","size","isModal","snackBarModal","ContentProps","snackBar","errorSnackBar","autoHideDuration","searchField","adornment","placeholder","adornmentPosition","overrideClass","inputProps","disableUnderline","position","InputProps","errorProps","cloneElement","configurationElements","configuration_id","configuration_label","fieldsConfigurations","region","name","required","cache","multiline","compression","withBorder","heal","scanner","etcd","identity_openid","identity_ldap","logger_webhook","audit_webhook","removeEmptyFields","formFields","filter","field","selectSAs","setSelectedSAs","selectedSAs","targetD","checked","elements","push","element","closeDeleteModalAndRefresh","deleteOpen","useApi","setErrorSnackMessage","deleteLoading","invokeDeleteApi","confirmText","isOpen","isLoading","onConfirm","confirmationContent","usersSort","a","b","accessKey","policySort","stringSort","policyDetailsSort"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/6683.aa56755a.chunk.js.map b/portal-ui/build/static/js/6683.aa56755a.chunk.js.map
deleted file mode 100644
index c8a9039dd..000000000
--- a/portal-ui/build/static/js/6683.aa56755a.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/6683.aa56755a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AAElN,QAAS,OAAQ2L,eAAgB,YAA1D,UACE,SAAC,IAAD,CACE1R,GAAI,kBACJmD,KAAK,SACL8D,QAAQ,aACRrF,UAAWwJ,GACXzG,QAAS,kBAAMiI,IAAe,EAArB,EACTpL,MAAO,gBAMlB,G,mFC/sDD,KAAepB,EAAAA,EAAAA,IA5BA,SAACC,GAAD,aACbC,EAAAA,EAAAA,GAAa,CACX4S,WAAY,CACVzO,OAAO,UAAApE,EAAM8S,eAAN,eAAepR,MAAMqR,OAAQ,YAH3B,GA4Bf,EAfmB,SAAC,GAIK,IAHvB3R,EAGsB,EAHtBA,QACAwD,EAEsB,EAFtBA,aAEsB,IADtBoO,UAAAA,OACsB,SACtB,OACE,UAAC,WAAD,WACGA,IAAa,mBACd,SAAC,IAAD,CAAY3O,UAAU,IAAIuC,QAAQ,QAAQpH,UAAW4B,EAAQyR,WAA7D,SACGjO,MAIR,G,2BC/BGqO,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpF5T,EAAG,sNACD,gBAEJuT,EAAQ,EAAUG,C,4BCfdL,EAAyBC,EAAQ,OAKrCC,EAAQ,OAAU,EAElB,IAAIC,EAAiBH,EAAuBC,EAAQ,QAEhDG,EAAcH,EAAQ,OAEtBI,GAAW,EAAIF,EAAeG,UAAuB,EAAIF,EAAYG,KAAK,OAAQ,CACpF5T,EAAG,8fACD,iBAEJuT,EAAQ,EAAUG,C","sources":["icons/CertificateIcon.tsx","screens/Console/Common/FormComponents/FileSelector/FileSelector.tsx","screens/Console/Common/FormComponents/FileSelector/utils.ts","screens/Console/Common/TLSCertificate/TLSCertificate.tsx","screens/Console/Tenants/TenantDetails/TenantEncryption.tsx","screens/shared/ErrorBlock.tsx","../node_modules/@mui/icons-material/RemoveRedEye.js","../node_modules/@mui/icons-material/VisibilityOff.js"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst CertificateIcon = (props: SVGProps) => {\n return (\n \n );\n};\nexport default CertificateIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState } from \"react\";\nimport get from \"lodash/get\";\nimport { Grid, InputLabel, Tooltip } from \"@mui/material\";\nimport IconButton from \"@mui/material/IconButton\";\nimport AttachFileIcon from \"@mui/icons-material/AttachFile\";\nimport CancelIcon from \"@mui/icons-material/Cancel\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n fieldBasic,\n fileInputStyles,\n tooltipHelper,\n} from \"../common/styleLibrary\";\nimport { fileProcess } from \"./utils\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport ErrorBlock from \"../../../../shared/ErrorBlock\";\n\ninterface InputBoxProps {\n label: string;\n classes: any;\n onChange: (e: string, i: string) => void;\n id: string;\n name: string;\n disabled?: boolean;\n tooltip?: string;\n required?: boolean;\n error?: string;\n accept?: string;\n value?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n ...tooltipHelper,\n valueString: {\n maxWidth: 350,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n marginTop: 2,\n },\n fileInputField: {\n margin: \"13px 0\",\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n ...fileInputStyles,\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontWeight: \"normal\",\n },\n textBoxContainer: {\n ...fieldBasic.textBoxContainer,\n maxWidth: \"100%\",\n border: \"1px solid #eaeaea\",\n paddingLeft: \"15px\",\n },\n });\n\nconst FileSelector = ({\n label,\n classes,\n onChange,\n id,\n name,\n disabled = false,\n tooltip = \"\",\n required,\n error = \"\",\n accept = \"\",\n value = \"\",\n}: InputBoxProps) => {\n const [showFileSelector, setShowSelector] = useState(false);\n\n return (\n \n \n {label !== \"\" && (\n \n \n {label}\n {required ? \"*\" : \"\"}\n \n {tooltip !== \"\" && (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { setName, setIsDirty } from \"./addBucketsSlice\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\n\nconst AddBucketName = ({ hasErrors }: { hasErrors: boolean }) => {\n const dispatch = useAppDispatch();\n\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n return (\n {\n dispatch(setIsDirty(true));\n }}\n onChange={(event: React.ChangeEvent) => {\n dispatch(setName(event.target.value));\n }}\n label=\"Bucket Name\"\n value={bucketName}\n required\n />\n );\n};\n\nexport default AddBucketName;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst ShowTextIcon = (props: SVGProps) => (\n \n);\n\nexport default ShowTextIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst HideTextIcon = (props: SVGProps) => (\n \n);\n\nexport default HideTextIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { ConfirmModalIcon } from \"../../../../../icons\";\n\ninterface IValidRule {\n ruleText: string;\n}\n\nconst ValidRule = ({ ruleText }: IValidRule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default ValidRule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { ConfirmDeleteIcon } from \"../../../../../icons\";\n\ninterface IInvalidRule {\n ruleText: string;\n}\n\nconst InvalidRule = ({ ruleText }: IInvalidRule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default InvalidRule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { CircleIcon } from \"../../../../../icons\";\n\ninterface INARule {\n ruleText: string;\n}\n\nconst NARule = ({ ruleText }: INARule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default NARule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { LinearProgress } from \"@mui/material\";\nimport { AppState } from \"../../../../../store\";\nimport { useSelector } from \"react-redux\";\nimport ShowTextIcon from \"../../../../../icons/ShowTextIcon\";\nimport HideTextIcon from \"../../../../../icons/HideTextIcon\";\nimport { Button } from \"mds\";\nimport ValidRule from \"./ValidRule\";\nimport InvalidRule from \"./InvalidRule\";\nimport NARule from \"./NARule\";\n\nconst BucketNamingRules = ({ errorList }: { errorList: boolean[] }) => {\n const lengthRuleText =\n \"Bucket names must be between 3 (min) and 63 (max) characters long.\";\n const characterRuleText =\n \"Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).\";\n const periodRuleText =\n \"Bucket names must not contain two adjacent periods, or a period adjacent to a hyphen.\";\n const ipRuleText =\n \"Bucket names must not be formatted as an IP address (for example, 192.168.5.4).\";\n const prefixRuleText = \"Bucket names must not start with the prefix xn--.\";\n const suffixRuleText =\n \"Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names.\";\n const uniqueRuleText = \"Bucket names must be unique within a partition.\";\n\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n\n const [showNamingRules, setShowNamingRules] = useState(false);\n\n const addLoading = useSelector((state: AppState) => state.addBucket.loading);\n\n const [\n lengthRule,\n validCharacters,\n noAdjacentPeriods,\n notIPFormat,\n noPrefix,\n noSuffix,\n uniqueName,\n ] = errorList;\n\n const toggleNamingRules = () => {\n setShowNamingRules(!showNamingRules);\n };\n\n return (\n \n {\n toggleNamingRules();\n }}\n icon={showNamingRules ? : }\n label={(showNamingRules ? \"Hide\" : \"View\") + \" Bucket Naming Rules\"}\n style={{\n height: \"10px\",\n width: \"200px\",\n textAlign: \"left\",\n paddingLeft: 0,\n fontSize: \"9px\",\n border: \"none\",\n }}\n />\n {showNamingRules && (\n \n \n {bucketName.length === 0 ? (\n \n ) : lengthRule ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : validCharacters ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : noAdjacentPeriods ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : notIPFormat ? (\n \n ) : (\n \n )}\n \n \n {bucketName.length === 0 ? (\n \n ) : noPrefix ? (\n \n ) : (\n \n )}\n\n {bucketName.length === 0 ? (\n \n ) : noSuffix ? (\n \n ) : (\n \n )}\n\n {bucketName.length === 0 ? (\n \n ) : uniqueName ? (\n \n ) : (\n \n )}\n \n \n )}\n\n {addLoading && (\n \n \n \n )}\n \n );\n};\n\nexport default BucketNamingRules;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { LinearProgress } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport { useNavigate } from \"react-router-dom\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { containerForHeader } from \"../../../Common/FormComponents/common/styleLibrary\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport { k8sScalarUnitsExcluding } from \"../../../../../common/utils\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { useSelector } from \"react-redux\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport PageHeader from \"../../../Common/PageHeader/PageHeader\";\nimport BackLink from \"../../../../../common/BackLink\";\nimport { BucketsIcon, InfoIcon } from \"../../../../../icons\";\nimport { setErrorSnackMessage } from \"../../../../../systemSlice\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { BucketList } from \"../../types\";\nimport api from \"../../../../../common/api\";\nimport PageLayout from \"../../../Common/Layout/PageLayout\";\nimport InputUnitMenu from \"../../../Common/FormComponents/InputUnitMenu/InputUnitMenu\";\nimport FormLayout from \"../../../Common/FormLayout\";\nimport HelpBox from \"../../../../../common/HelpBox\";\nimport TooltipWrapper from \"../../../Common/TooltipWrapper/TooltipWrapper\";\nimport SectionTitle from \"../../../Common/SectionTitle\";\nimport { selDistSet, selSiteRep } from \"../../../../../systemSlice\";\nimport {\n resetForm,\n setEnableObjectLocking,\n setIsDirty,\n setName,\n setQuota,\n setQuotaSize,\n setQuotaUnit,\n setRetention,\n setRetentionMode,\n setRetentionUnit,\n setRetentionValidity,\n setVersioning,\n} from \"./addBucketsSlice\";\nimport { addBucketAsync } from \"./addBucketThunks\";\nimport AddBucketName from \"./AddBucketName\";\nimport { IAM_SCOPES } from \"../../../../../common/SecureComponent/permissions\";\nimport { hasPermission } from \"../../../../../common/SecureComponent\";\nimport BucketNamingRules from \"./BucketNamingRules\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n buttonContainer: {\n marginTop: 24,\n display: \"flex\",\n justifyContent: \"flex-end\",\n \"& button\": {\n marginLeft: 8,\n },\n },\n error: {\n color: \"#b53b4b\",\n border: \"1px solid #b53b4b\",\n padding: 8,\n borderRadius: 3,\n },\n alertVersioning: {\n border: \"#E2E2E2 1px solid\",\n backgroundColor: \"#FBFAFA\",\n borderRadius: 3,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"10px\",\n color: \"#767676\",\n \"& > .min-icon \": {\n width: 20,\n height: 20,\n marginRight: 10,\n },\n },\n title: {\n marginBottom: 8,\n },\n headTitle: {\n fontWeight: \"bold\",\n fontSize: 16,\n paddingLeft: 8,\n },\n h6title: {\n fontWeight: \"bold\",\n color: \"#000000\",\n fontSize: 20,\n },\n ...containerForHeader(theme.spacing(4)),\n });\n\ninterface IsetProps {\n classes: any;\n}\n\nconst AddBucket = ({ classes }: IsetProps) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const validBucketCharacters = new RegExp(`^[a-z0-9.-]*$`);\n const ipAddressFormat = new RegExp(\n \"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}$\"\n );\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n const isDirty = useSelector((state: AppState) => state.addBucket.isDirty);\n const [validationResult, setValidationResult] = useState([]);\n const errorList = validationResult.filter((v) => !v);\n const hasErrors = errorList.length > 0;\n const [records, setRecords] = useState([]);\n const versioningEnabled = useSelector(\n (state: AppState) => state.addBucket.versioningEnabled\n );\n const lockingEnabled = useSelector(\n (state: AppState) => state.addBucket.lockingEnabled\n );\n const quotaEnabled = useSelector(\n (state: AppState) => state.addBucket.quotaEnabled\n );\n const quotaSize = useSelector((state: AppState) => state.addBucket.quotaSize);\n const quotaUnit = useSelector((state: AppState) => state.addBucket.quotaUnit);\n const retentionEnabled = useSelector(\n (state: AppState) => state.addBucket.retentionEnabled\n );\n const retentionMode = useSelector(\n (state: AppState) => state.addBucket.retentionMode\n );\n const retentionUnit = useSelector(\n (state: AppState) => state.addBucket.retentionUnit\n );\n const retentionValidity = useSelector(\n (state: AppState) => state.addBucket.retentionValidity\n );\n const addLoading = useSelector((state: AppState) => state.addBucket.loading);\n const invalidFields = useSelector(\n (state: AppState) => state.addBucket.invalidFields\n );\n const lockingFieldDisabled = useSelector(\n (state: AppState) => state.addBucket.lockingFieldDisabled\n );\n const distributedSetup = useSelector(selDistSet);\n const siteReplicationInfo = useSelector(selSiteRep);\n const navigateTo = useSelector(\n (state: AppState) => state.addBucket.navigateTo\n );\n\n const lockingAllowed = hasPermission(\n \"*\",\n [\n IAM_SCOPES.S3_PUT_BUCKET_VERSIONING,\n IAM_SCOPES.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION,\n ],\n true\n );\n\n const versioningAllowed = hasPermission(\"*\", [\n IAM_SCOPES.S3_PUT_BUCKET_VERSIONING,\n ]);\n\n useEffect(() => {\n const bucketNameErrors = [\n !(isDirty && (bucketName.length < 3 || bucketName.length > 63)),\n validBucketCharacters.test(bucketName),\n !(\n bucketName.includes(\".-\") ||\n bucketName.includes(\"-.\") ||\n bucketName.includes(\"..\")\n ),\n !ipAddressFormat.test(bucketName),\n !bucketName.startsWith(\"xn--\"),\n !bucketName.endsWith(\"-s3alias\"),\n !records.includes(bucketName),\n ];\n setValidationResult(bucketNameErrors);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [bucketName, isDirty]);\n\n useEffect(() => {\n dispatch(setName(\"\"));\n dispatch(setIsDirty(false));\n const fetchRecords = () => {\n api\n .invoke(\"GET\", `/api/v1/buckets`)\n .then((res: BucketList) => {\n var bucketList: string[] = [];\n if (res.buckets != null && res.buckets.length > 0) {\n res.buckets.forEach((bucket) => {\n bucketList.push(bucket.name);\n });\n }\n setRecords(bucketList);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n });\n };\n fetchRecords();\n }, [dispatch]);\n\n const resForm = () => {\n dispatch(resetForm());\n };\n\n useEffect(() => {\n if (navigateTo !== \"\") {\n const goTo = `${navigateTo}`;\n dispatch(resetForm());\n navigate(goTo);\n }\n }, [navigateTo, navigate, dispatch]);\n\n return (\n \n } />\n \n }\n helpbox={\n }\n title={\"Buckets\"}\n help={\n \n MinIO uses buckets to organize objects. A bucket is similar to\n a folder or directory in a filesystem, where each bucket can\n hold an arbitrary number of objects.\n \n \n Versioning allows to keep multiple versions of the same\n object under the same key.\n \n \n Object Locking prevents objects from being deleted.\n Required to support retention and legal hold. Can only be\n enabled at bucket creation.\n \n \n Quota limits the amount of data in the bucket.\n {lockingAllowed && (\n \n \n \n Retention imposes rules to prevent object deletion\n for a period of time. Versioning must be enabled in order\n to set bucket retention policies.\n \n )}\n \n \n \n }\n />\n }\n >\n \n \n \n \n );\n};\n\nexport default withStyles(styles)(AddBucket);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Box } from \"@mui/material\";\nimport SectionTitle from \"./SectionTitle\";\n\ntype Props = {\n title: string;\n icon: React.ReactNode;\n helpbox?: React.ReactNode;\n children: React.ReactNode;\n};\n\nconst FormLayout: React.FC = ({ children, title, helpbox, icon }) => {\n return (\n \n \n {title}\n \n {children}\n \n\n {helpbox}\n \n );\n};\n\nexport default FormLayout;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n"],"names":["withStyles","theme","createStyles","root","border","borderRadius","backgroundColor","paddingLeft","paddingTop","paddingBottom","paddingRight","leftItems","fontSize","fontWeight","marginBottom","display","alignItems","marginRight","height","width","helpText","classes","iconComponent","title","help","className","container","item","xs","hasErrors","dispatch","useAppDispatch","bucketName","useSelector","state","addBucket","name","InputBoxWrapper","id","error","onFocus","setIsDirty","onChange","event","setName","target","value","label","required","props","xmlns","fill","viewBox","transform","d","ruleText","Fragment","Grid","style","justifyContent","color","errorList","lengthRuleText","characterRuleText","periodRuleText","ipRuleText","prefixRuleText","suffixRuleText","uniqueRuleText","useState","showNamingRules","setShowNamingRules","addLoading","loading","lengthRule","validCharacters","noAdjacentPeriods","notIPFormat","noPrefix","noSuffix","uniqueName","type","onClick","icon","textAlign","length","LinearProgress","buttonContainer","marginTop","marginLeft","padding","alertVersioning","headTitle","h6title","containerForHeader","spacing","navigate","useNavigate","validBucketCharacters","RegExp","ipAddressFormat","isDirty","validationResult","setValidationResult","filter","v","records","setRecords","versioningEnabled","lockingEnabled","quotaEnabled","quotaSize","quotaUnit","retentionEnabled","retentionMode","retentionUnit","retentionValidity","invalidFields","lockingFieldDisabled","distributedSetup","selDistSet","siteReplicationInfo","selSiteRep","navigateTo","lockingAllowed","hasPermission","IAM_SCOPES","versioningAllowed","useEffect","bucketNameErrors","test","includes","startsWith","endsWith","api","then","res","bucketList","buckets","forEach","bucket","push","catch","err","setErrorSnackMessage","goTo","resetForm","PageHeader","BackLink","to","PageLayout","FormLayout","helpbox","HelpBox","noValidate","autoComplete","onSubmit","e","preventDefault","addBucketAsync","SectionTitle","href","rel","enabled","TooltipWrapper","tooltip","FormSwitchWrapper","checked","setVersioning","disabled","setEnableObjectLocking","setQuota","setQuotaSize","min","overlayObject","InputUnitMenu","onUnitChange","newValue","setQuotaUnit","unitSelected","unitsList","k8sScalarUnitsExcluding","setRetention","RadioGroupSelector","currentSelection","setRetentionMode","selectorOptions","setRetentionValidity","valueAsNumber","String","setRetentionUnit","variant","clearButton","children","sx","gap","gridTemplateColumns","md","errorProps","cloneElement"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/8277.5ccf5bdb.chunk.js b/portal-ui/build/static/js/8277.f96cd195.chunk.js
similarity index 64%
rename from portal-ui/build/static/js/8277.5ccf5bdb.chunk.js
rename to portal-ui/build/static/js/8277.f96cd195.chunk.js
index e30a77ad1..0aa02ae31 100644
--- a/portal-ui/build/static/js/8277.5ccf5bdb.chunk.js
+++ b/portal-ui/build/static/js/8277.f96cd195.chunk.js
@@ -1,2 +1,2 @@
-"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[8277],{23804:function(e,t,n){n(72791);var i=n(11135),r=n(25787),s=n(61889),a=n(80184);t.Z=(0,r.Z)((function(e){return(0,i.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,n=e.iconComponent,i=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(s.ZP,{container:!0,children:[(0,a.jsxs)(s.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,i]}),(0,a.jsx)(s.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},38277:function(e,t,n){n.r(t),n.d(t,{default:function(){return A}});var i=n(29439),r=n(1413),s=n(72791),a=n(61889),o=n(40986),l=n(16871),c=n(75952),d=n(11135),u=n(25787),x=n(23814),h=n(21435),f=n(83679),j=n(45248),m=n(25469),g=n(60364),b=n(37516),p=n(32291),v=n(84669),k=n(38734),Z=n(87995),T=n(81207),y=n(74794),C=n(56578),B=n(25739),_=n(23804),P=n(27454),E=n(50896),w=n(64561),F=n(92717),N=n(80184),L=function(e){var t=e.hasErrors,n=(0,m.TL)(),i=(0,g.v9)((function(e){return e.addBucket.name}));return(0,N.jsx)(h.Z,{id:"bucket-name",name:"bucket-name",error:t?"Invalid bucket name":"",onFocus:function(){n((0,w.hU)(!0))},onChange:function(e){n((0,w.qC)(e.target.value))},label:"Bucket Name",value:i,required:!0})},R=n(56087),S=n(38442),I=function(e){return(0,N.jsx)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 15 15"},e),{},{children:(0,N.jsxs)("g",{id:"OpenListIcon-full",transform:"translate(4 4.984)",children:[(0,N.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(0.167 4.016) rotate(-90)",children:(0,N.jsx)("path",{id:"Trazado_6842","data-name":"Trazado 6842",d:"M.422,0a.433.433,0,0,0-.3.117.37.37,0,0,0,0,.557L2.983,3.325.126,5.986a.37.37,0,0,0,0,.557.443.443,0,0,0,.6,0L3.889,3.609a.373.373,0,0,0,.126-.274.344.344,0,0,0-.126-.274L.727.127A.443.443,0,0,0,.422,0Z",transform:"translate(0 0)"})}),(0,N.jsx)("rect",{id:"Rect\xe1ngulo_896","data-name":"Rect\xe1ngulo 896",width:"0.462",height:"0.462",transform:"translate(0 1.75)",fill:"none"})]})}))},z=function(e){return(0,N.jsx)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 15 15"},e),{},{children:(0,N.jsx)("g",{id:"Grupo_2449","data-name":"Grupo 2449",transform:"translate(-140 -181)",children:(0,N.jsxs)("g",{id:"OpenListIcon-full",transform:"translate(144 250.612)",children:[(0,N.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(6.827 -63.612) rotate(90)",children:(0,N.jsx)("path",{id:"Trazado_6842","data-name":"Trazado 6842",d:"M.422,6.661a.433.433,0,0,1-.3-.117.37.37,0,0,1,0-.557L2.983,3.335.126.675a.37.37,0,0,1,0-.557.443.443,0,0,1,.6,0L3.889,3.052a.373.373,0,0,1,.126.274.344.344,0,0,1-.126.274L.727,6.533a.443.443,0,0,1-.306.127Z",transform:"translate(0 0)"})}),(0,N.jsx)("rect",{id:"Rect\xe1ngulo_896","data-name":"Rect\xe1ngulo 896",width:"0.462",height:"0.462",transform:"translate(0 -61.808)",fill:"none"})]})})}))},O=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.EjK,{width:"16px",height:"16px",style:{color:"#18BF42"}})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#8f949c",display:"flex",justifyContent:"flex-start"},children:t})]})})},q=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{color:"#C83B51",display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.NvT,{width:"16px",height:"16px"})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#C83B51",display:"flex",justifyContent:"flex-start"},children:t})]})})},U=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.J$M,{width:"12px",height:"12px",style:{color:"#8f949c"}})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#8f949c",display:"flex",justifyContent:"flex-start"},children:t})]})})},V=function(e){var t=e.errorList,n="Bucket names must be between 3 (min) and 63 (max) characters long.",r="Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).",l="Bucket names must not contain two adjacent periods, or a period adjacent to a hyphen.",d="Bucket names must not be formatted as an IP address (for example, 192.168.5.4).",u="Bucket names must not start with the prefix xn--.",x="Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names.",h="Bucket names must be unique within a partition.",f=(0,g.v9)((function(e){return e.addBucket.name})),j=(0,s.useState)(!1),m=(0,i.Z)(j,2),b=m[0],p=m[1],v=(0,g.v9)((function(e){return e.addBucket.loading})),k=(0,i.Z)(t,7),Z=k[0],T=k[1],y=k[2],C=k[3],B=k[4],_=k[5],P=k[6];return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(c.z,{type:"button",id:"toggle-naming-rules",onClick:function(){p(!b)},icon:b?(0,N.jsx)(I,{}):(0,N.jsx)(z,{}),label:(b?"Hide":"View")+" Bucket Naming Rules",style:{height:"10px",width:"200px",textAlign:"left",paddingLeft:0,fontSize:"9px",border:"none"}}),b&&(0,N.jsxs)(a.ZP,{container:!0,fontSize:14,paddingTop:2,children:[(0,N.jsxs)(a.ZP,{item:!0,xs:6,children:[0===f.length?(0,N.jsx)(U,{ruleText:n}):Z?(0,N.jsx)(O,{ruleText:n}):(0,N.jsx)(q,{ruleText:n}),0===f.length?(0,N.jsx)(U,{ruleText:r}):T?(0,N.jsx)(O,{ruleText:r}):(0,N.jsx)(q,{ruleText:r}),0===f.length?(0,N.jsx)(U,{ruleText:l}):y?(0,N.jsx)(O,{ruleText:l}):(0,N.jsx)(q,{ruleText:l}),0===f.length?(0,N.jsx)(U,{ruleText:d}):C?(0,N.jsx)(O,{ruleText:d}):(0,N.jsx)(q,{ruleText:d})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:6,children:[0===f.length?(0,N.jsx)(U,{ruleText:u}):B?(0,N.jsx)(O,{ruleText:u}):(0,N.jsx)(q,{ruleText:u}),0===f.length?(0,N.jsx)(U,{ruleText:x}):_?(0,N.jsx)(O,{ruleText:x}):(0,N.jsx)(q,{ruleText:x}),0===f.length?(0,N.jsx)(U,{ruleText:h}):P?(0,N.jsx)(O,{ruleText:h}):(0,N.jsx)(q,{ruleText:h})]})]}),v&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(o.Z,{})})]})},A=(0,u.Z)((function(e){return(0,d.Z)((0,r.Z)({buttonContainer:{marginTop:24,display:"flex",justifyContent:"flex-end","& button":{marginLeft:8}},error:{color:"#b53b4b",border:"1px solid #b53b4b",padding:8,borderRadius:3},alertVersioning:{border:"#E2E2E2 1px solid",backgroundColor:"#FBFAFA",borderRadius:3,display:"flex",alignItems:"center",padding:"10px",color:"#767676","& > .min-icon ":{width:20,height:20,marginRight:10}},title:{marginBottom:8},headTitle:{fontWeight:"bold",fontSize:16,paddingLeft:8},h6title:{fontWeight:"bold",color:"#000000",fontSize:20}},(0,x.Bz)(e.spacing(4))))}))((function(e){var t=e.classes,n=(0,m.TL)(),r=(0,l.s0)(),d=new RegExp("^[a-z0-9.-]*$"),u=new RegExp("^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}$"),x=(0,g.v9)((function(e){return e.addBucket.name})),I=(0,g.v9)((function(e){return e.addBucket.isDirty})),z=(0,s.useState)([]),O=(0,i.Z)(z,2),q=O[0],U=O[1],A=q.filter((function(e){return!e})).length>0,K=(0,s.useState)([]),G=(0,i.Z)(K,2),M=G[0],D=G[1],W=(0,g.v9)((function(e){return e.addBucket.versioningEnabled})),$=(0,g.v9)((function(e){return e.addBucket.lockingEnabled})),J=(0,g.v9)((function(e){return e.addBucket.quotaEnabled})),Q=(0,g.v9)((function(e){return e.addBucket.quotaSize})),Y=(0,g.v9)((function(e){return e.addBucket.quotaUnit})),H=(0,g.v9)((function(e){return e.addBucket.retentionEnabled})),X=(0,g.v9)((function(e){return e.addBucket.retentionMode})),ee=(0,g.v9)((function(e){return e.addBucket.retentionUnit})),te=(0,g.v9)((function(e){return e.addBucket.retentionValidity})),ne=(0,g.v9)((function(e){return e.addBucket.loading})),ie=(0,g.v9)((function(e){return e.addBucket.invalidFields})),re=(0,g.v9)((function(e){return e.addBucket.lockingFieldDisabled})),se=(0,g.v9)(Z.N5),ae=(0,g.v9)(Z.gw),oe=(0,g.v9)((function(e){return e.addBucket.navigateTo})),le=(0,S.F)("*",[R.Ft.S3_PUT_BUCKET_VERSIONING,R.Ft.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION],!0),ce=(0,S.F)("*",[R.Ft.S3_PUT_BUCKET_VERSIONING]);(0,s.useEffect)((function(){var e=[!(I&&(x.length<3||x.length>63)),d.test(x),!(x.includes(".-")||x.includes("-.")||x.includes("..")),!u.test(x),!x.startsWith("xn--"),!x.endsWith("-s3alias"),!M.includes(x)];U(e)}),[x,I]),(0,s.useEffect)((function(){n((0,w.qC)("")),n((0,w.hU)(!1));T.Z.invoke("GET","/api/v1/buckets").then((function(e){var t=[];null!=e.buckets&&e.buckets.length>0&&e.buckets.forEach((function(e){t.push(e.name)})),D(t)})).catch((function(e){n((0,Z.Ih)(e))}))}),[n]);return(0,s.useEffect)((function(){if(""!==oe){var e="".concat(oe);n((0,w.Fx)()),r(e)}}),[oe,r,n]),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(p.Z,{label:(0,N.jsx)(v.Z,{to:"/buckets",label:"Buckets"})}),(0,N.jsx)(y.Z,{children:(0,N.jsx)(B.Z,{title:"Create Bucket",icon:(0,N.jsx)(k.wNb,{}),helpbox:(0,N.jsx)(_.Z,{iconComponent:(0,N.jsx)(k.wNb,{}),title:"Buckets",help:(0,N.jsxs)(s.Fragment,{children:["MinIO uses buckets to organize objects. A bucket is similar to a folder or directory in a filesystem, where each bucket can hold an arbitrary number of objects.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Versioning"})," allows to keep multiple versions of the same object under the same key.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Object Locking"})," prevents objects from being deleted. Required to support retention and legal hold. Can only be enabled at bucket creation.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Quota"})," limits the amount of data in the bucket.",le&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Retention"})," imposes rules to prevent object deletion for a period of time. Versioning must be enabled in order to set bucket retention policies."]}),(0,N.jsx)("br",{}),(0,N.jsx)("br",{})]})}),children:(0,N.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),n((0,F.I)())},children:[(0,N.jsxs)(a.ZP,{container:!0,marginTop:1,spacing:2,children:[(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(L,{hasErrors:A})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(V,{errorList:q})}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,children:[(0,N.jsx)(E.Z,{children:"Features"}),!se&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)("div",{className:t.error,children:["These features are unavailable in a single-disk setup.",(0,N.jsx)("br",{}),"Please deploy a server in"," ",(0,N.jsx)("a",{href:"https://docs.min.io/minio/baremetal/installation/deploy-minio-distributed.html?ref=con",target:"_blank",rel:"noreferrer",children:"Distributed Mode"})," ","to use these features."]}),(0,N.jsx)("br",{}),(0,N.jsx)("br",{})]})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,spacing:2,children:[ae.enabled&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsxs)("div",{className:t.alertVersioning,children:[(0,N.jsx)(k.szr,{})," Versioning setting cannot be changed as cluster replication is enabled for this site."]}),(0,N.jsx)("br",{})]}),(0,N.jsx)(P.Z,{tooltip:ce?"":"You require additional permissions in order to enable Versioning. Please ask your MinIO administrator to grant you "+R.Ft.S3_PUT_BUCKET_VERSIONING+" permission in order to enable Versioning.",children:(0,N.jsx)(b.Z,{value:"versioned",id:"versioned",name:"versioned",checked:W,onChange:function(e){n((0,w.E2)(e.target.checked))},label:"Versioning",disabled:!se||$||ae.enabled||!ce})})]}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(P.Z,{tooltip:le?"":"You require additional permissions in order to enable Locking. Please ask your MinIO administrator to grant you "+(ce?"":R.Ft.S3_PUT_BUCKET_VERSIONING+" and ")+R.Ft.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION+" permissions in order to enable Locking.",children:(0,N.jsx)(b.Z,{value:"locking",id:"locking",name:"locking",disabled:re||!se||!le,checked:$,onChange:function(e){n((0,w.j9)(e.target.checked)),e.target.checked&&!ae.enabled&&n((0,w.E2)(!0))},label:"Object Locking"})})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(b.Z,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:J,onChange:function(e){n((0,w.WC)(e.target.checked))},label:"Quota",disabled:!se})}),J&&se&&(0,N.jsx)(s.Fragment,{children:(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(h.Z,{type:"string",id:"quota_size",name:"quota_size",onChange:function(e){n((0,w.Rj)(e.target.value))},label:"Capacity",value:Q,required:!0,min:"1",overlayObject:(0,N.jsx)(C.Z,{id:"quota_unit",onUnitChange:function(e){n((0,w.ND)(e))},unitSelected:Y,unitsList:(0,j.zQ)(["Ki"]),disabled:!1}),error:ie.includes("quotaSize")?"Please enter a valid quota":""})})}),W&&se&&le&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(b.Z,{value:"bucket_retention",id:"bucket_retention",name:"bucket_retention",checked:H,onChange:function(e){n((0,w.bc)(e.target.checked))},label:"Retention"})}),H&&se&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(f.Z,{currentSelection:X,id:"retention_mode",name:"retention_mode",label:"Mode",onChange:function(e){n((0,w.VK)(e.target.value))},selectorOptions:[{value:"compliance",label:"Compliance"},{value:"governance",label:"Governance"}]})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(h.Z,{type:"number",id:"retention_validity",name:"retention_validity",onChange:function(e){n((0,w.Mn)(e.target.valueAsNumber))},label:"Validity",value:String(te),required:!0,overlayObject:(0,N.jsx)(C.Z,{id:"retention_unit",onUnitChange:function(e){n((0,w.hx)(e))},unitSelected:ee,unitsList:[{value:"days",label:"Days"},{value:"years",label:"Years"}],disabled:!1})})})]})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,className:t.buttonContainer,children:[(0,N.jsx)(c.z,{id:"clear",type:"button",variant:"regular",className:t.clearButton,onClick:function(){n((0,w.Fx)())},label:"Clear"}),(0,N.jsx)(c.z,{id:"create-bucket",type:"submit",variant:"callAction",color:"primary",disabled:ne||ie.length>0||!I||A,label:"Create Bucket"})]}),ne&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(o.Z,{})})]})})})]})}))},25739:function(e,t,n){n(72791);var i=n(64554),r=n(50896),s=n(80184);t.Z=function(e){var t=e.children,n=e.title,a=e.helpbox,o=e.icon;return(0,s.jsxs)(i.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(r.Z,{icon:o,children:n}),(0,s.jsx)(i.Z,{sx:{height:16}}),t]}),a]})}},27454:function(e,t,n){var i=n(1413),r=n(72791),s=n(20068),a=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,o=e.errorProps,l=void 0===o?null:o;return(0,a.jsx)(s.Z,{title:t,children:(0,a.jsx)("span",{children:l?(0,r.cloneElement)(n,(0,i.Z)({},l)):n})})}}}]);
-//# sourceMappingURL=8277.5ccf5bdb.chunk.js.map
\ No newline at end of file
+"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[8277],{23804:function(e,t,n){n(72791);var i=n(11135),r=n(25787),s=n(61889),a=n(80184);t.Z=(0,r.Z)((function(e){return(0,i.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var t=e.classes,n=e.iconComponent,i=e.title,r=e.help;return(0,a.jsx)("div",{className:t.root,children:(0,a.jsxs)(s.ZP,{container:!0,children:[(0,a.jsxs)(s.ZP,{item:!0,xs:12,className:t.leftItems,children:[n,i]}),(0,a.jsx)(s.ZP,{item:!0,xs:12,className:t.helpText,children:r})]})})}))},38277:function(e,t,n){n.r(t),n.d(t,{default:function(){return K}});var i=n(29439),r=n(1413),s=n(72791),a=n(61889),l=n(40986),o=n(16871),c=n(75952),d=n(11135),u=n(25787),x=n(23814),h=n(21435),f=n(83679),j=n(45248),m=n(25469),g=n(60364),b=n(37516),p=n(32291),v=n(84669),k=n(38734),Z=n(87995),T=n(81207),y=n(74794),C=n(56578),B=n(25739),_=n(23804),P=n(27454),E=n(50896),w=n(64561),F=n(92717),N=n(80184),L=function(e){var t=e.hasErrors,n=(0,m.TL)(),i=(0,g.v9)((function(e){return e.addBucket.name}));return(0,N.jsx)(h.Z,{id:"bucket-name",name:"bucket-name",error:t?"Invalid bucket name":"",onFocus:function(){n((0,w.hU)(!0))},onChange:function(e){n((0,w.qC)(e.target.value))},label:"Bucket Name",value:i,required:!0})},R=n(56087),S=n(38442),I=function(e){return(0,N.jsx)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 15 15"},e),{},{children:(0,N.jsxs)("g",{id:"OpenListIcon-full",transform:"translate(4 4.984)",children:[(0,N.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(0.167 4.016) rotate(-90)",children:(0,N.jsx)("path",{id:"Trazado_6842","data-name":"Trazado 6842",d:"M.422,0a.433.433,0,0,0-.3.117.37.37,0,0,0,0,.557L2.983,3.325.126,5.986a.37.37,0,0,0,0,.557.443.443,0,0,0,.6,0L3.889,3.609a.373.373,0,0,0,.126-.274.344.344,0,0,0-.126-.274L.727.127A.443.443,0,0,0,.422,0Z",transform:"translate(0 0)"})}),(0,N.jsx)("rect",{id:"Rect\xe1ngulo_896","data-name":"Rect\xe1ngulo 896",width:"0.462",height:"0.462",transform:"translate(0 1.75)",fill:"none"})]})}))},z=function(e){return(0,N.jsx)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 15 15"},e),{},{children:(0,N.jsx)("g",{id:"Grupo_2449","data-name":"Grupo 2449",transform:"translate(-140 -181)",children:(0,N.jsxs)("g",{id:"OpenListIcon-full",transform:"translate(144 250.612)",children:[(0,N.jsx)("g",{id:"noun_chevron_2320228",transform:"translate(6.827 -63.612) rotate(90)",children:(0,N.jsx)("path",{id:"Trazado_6842","data-name":"Trazado 6842",d:"M.422,6.661a.433.433,0,0,1-.3-.117.37.37,0,0,1,0-.557L2.983,3.335.126.675a.37.37,0,0,1,0-.557.443.443,0,0,1,.6,0L3.889,3.052a.373.373,0,0,1,.126.274.344.344,0,0,1-.126.274L.727,6.533a.443.443,0,0,1-.306.127Z",transform:"translate(0 0)"})}),(0,N.jsx)("rect",{id:"Rect\xe1ngulo_896","data-name":"Rect\xe1ngulo 896",width:"0.462",height:"0.462",transform:"translate(0 -61.808)",fill:"none"})]})})}))},O=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.EjK,{width:"16px",height:"16px",style:{color:"#18BF42"}})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#8f949c",display:"flex",justifyContent:"flex-start"},children:t})]})})},U=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{color:"#C83B51",display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.NvT,{width:"16px",height:"16px"})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#C83B51",display:"flex",justifyContent:"flex-start"},children:t})]})})},q=function(e){var t=e.ruleText;return(0,N.jsx)(s.Fragment,{children:(0,N.jsxs)(a.ZP,{container:!0,style:{display:"flex",justifyContent:"flex-start"},children:[(0,N.jsx)(a.ZP,{item:!0,xs:1,paddingRight:1,children:(0,N.jsx)(k.J$M,{width:"12px",height:"12px",style:{color:"#8f949c"}})}),(0,N.jsx)(a.ZP,{item:!0,xs:9,paddingLeft:1,style:{color:"#8f949c",display:"flex",justifyContent:"flex-start"},children:t})]})})},V=function(e){var t=e.errorList,n="Bucket names must be between 3 (min) and 63 (max) characters long.",r="Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).",o="Bucket names must not contain two adjacent periods, or a period adjacent to a hyphen.",d="Bucket names must not be formatted as an IP address (for example, 192.168.5.4).",u="Bucket names must not start with the prefix xn--.",x="Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names.",h="Bucket names must be unique within a partition.",f=(0,g.v9)((function(e){return e.addBucket.name})),j=(0,s.useState)(!1),m=(0,i.Z)(j,2),b=m[0],p=m[1],v=(0,g.v9)((function(e){return e.addBucket.loading})),k=(0,i.Z)(t,7),Z=k[0],T=k[1],y=k[2],C=k[3],B=k[4],_=k[5],P=k[6];return(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(c.z,{type:"button",id:"toggle-naming-rules",onClick:function(){p(!b)},icon:b?(0,N.jsx)(I,{}):(0,N.jsx)(z,{}),label:(b?"Hide":"View")+" Bucket Naming Rules",style:{height:"10px",width:"200px",textAlign:"left",paddingLeft:0,fontSize:"9px",border:"none"}}),b&&(0,N.jsxs)(a.ZP,{container:!0,fontSize:14,paddingTop:2,children:[(0,N.jsxs)(a.ZP,{item:!0,xs:6,children:[0===f.length?(0,N.jsx)(q,{ruleText:n}):Z?(0,N.jsx)(O,{ruleText:n}):(0,N.jsx)(U,{ruleText:n}),0===f.length?(0,N.jsx)(q,{ruleText:r}):T?(0,N.jsx)(O,{ruleText:r}):(0,N.jsx)(U,{ruleText:r}),0===f.length?(0,N.jsx)(q,{ruleText:o}):y?(0,N.jsx)(O,{ruleText:o}):(0,N.jsx)(U,{ruleText:o}),0===f.length?(0,N.jsx)(q,{ruleText:d}):C?(0,N.jsx)(O,{ruleText:d}):(0,N.jsx)(U,{ruleText:d})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:6,children:[0===f.length?(0,N.jsx)(q,{ruleText:u}):B?(0,N.jsx)(O,{ruleText:u}):(0,N.jsx)(U,{ruleText:u}),0===f.length?(0,N.jsx)(q,{ruleText:x}):_?(0,N.jsx)(O,{ruleText:x}):(0,N.jsx)(U,{ruleText:x}),0===f.length?(0,N.jsx)(q,{ruleText:h}):P?(0,N.jsx)(O,{ruleText:h}):(0,N.jsx)(U,{ruleText:h})]})]}),v&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(l.Z,{})})]})},K=(0,u.Z)((function(e){return(0,d.Z)((0,r.Z)({buttonContainer:{marginTop:24,display:"flex",justifyContent:"flex-end","& button":{marginLeft:8}},error:{color:"#b53b4b",border:"1px solid #b53b4b",padding:8,borderRadius:3},alertVersioning:{border:"#E2E2E2 1px solid",backgroundColor:"#FBFAFA",borderRadius:3,display:"flex",alignItems:"center",padding:"10px",color:"#767676","& > .min-icon ":{width:20,height:20,marginRight:10}},title:{marginBottom:8},headTitle:{fontWeight:"bold",fontSize:16,paddingLeft:8},h6title:{fontWeight:"bold",color:"#000000",fontSize:20}},(0,x.Bz)(e.spacing(4))))}))((function(e){var t=e.classes,n=(0,m.TL)(),r=(0,o.s0)(),d=new RegExp("^[a-z0-9.-]*$"),u=new RegExp("^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}$"),x=(0,g.v9)((function(e){return e.addBucket.name})),I=(0,g.v9)((function(e){return e.addBucket.isDirty})),z=(0,s.useState)([]),O=(0,i.Z)(z,2),U=O[0],q=O[1],K=U.filter((function(e){return!e})).length>0,A=(0,s.useState)([]),G=(0,i.Z)(A,2),M=G[0],D=G[1],W=(0,g.v9)((function(e){return e.addBucket.versioningEnabled})),$=(0,g.v9)((function(e){return e.addBucket.lockingEnabled})),J=(0,g.v9)((function(e){return e.addBucket.quotaEnabled})),Q=(0,g.v9)((function(e){return e.addBucket.quotaSize})),Y=(0,g.v9)((function(e){return e.addBucket.quotaUnit})),H=(0,g.v9)((function(e){return e.addBucket.retentionEnabled})),X=(0,g.v9)((function(e){return e.addBucket.retentionMode})),ee=(0,g.v9)((function(e){return e.addBucket.retentionUnit})),te=(0,g.v9)((function(e){return e.addBucket.retentionValidity})),ne=(0,g.v9)((function(e){return e.addBucket.loading})),ie=(0,g.v9)((function(e){return e.addBucket.invalidFields})),re=(0,g.v9)((function(e){return e.addBucket.lockingFieldDisabled})),se=(0,g.v9)(Z.N5),ae=(0,g.v9)(Z.gw),le=(0,g.v9)((function(e){return e.addBucket.navigateTo})),oe=(0,S.F)("*",[R.Ft.S3_PUT_BUCKET_VERSIONING,R.Ft.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION],!0),ce=(0,S.F)("*",[R.Ft.S3_PUT_BUCKET_VERSIONING]);(0,s.useEffect)((function(){var e=[!(I&&(x.length<3||x.length>63)),d.test(x),!(x.includes(".-")||x.includes("-.")||x.includes("..")),!u.test(x),!x.startsWith("xn--"),!x.endsWith("-s3alias"),!M.includes(x)];q(e)}),[x,I]),(0,s.useEffect)((function(){n((0,w.qC)("")),n((0,w.hU)(!1));T.Z.invoke("GET","/api/v1/buckets").then((function(e){var t=[];null!=e.buckets&&e.buckets.length>0&&e.buckets.forEach((function(e){t.push(e.name)})),D(t)})).catch((function(e){n((0,Z.Ih)(e))}))}),[n]);return(0,s.useEffect)((function(){if(""!==le){var e="".concat(le);n((0,w.Fx)()),r(e)}}),[le,r,n]),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(p.Z,{label:(0,N.jsx)(v.Z,{to:"/buckets",label:"Buckets"})}),(0,N.jsx)(y.Z,{children:(0,N.jsx)(B.Z,{title:"Create Bucket",icon:(0,N.jsx)(k.wNb,{}),helpbox:(0,N.jsx)(_.Z,{iconComponent:(0,N.jsx)(k.wNb,{}),title:"Buckets",help:(0,N.jsxs)(s.Fragment,{children:["MinIO uses buckets to organize objects. A bucket is similar to a folder or directory in a filesystem, where each bucket can hold an arbitrary number of objects.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Versioning"})," allows to keep multiple versions of the same object under the same key.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Object Locking"})," prevents objects from being deleted. Required to support retention and legal hold. Can only be enabled at bucket creation.",(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Quota"})," limits the amount of data in the bucket.",oe&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsx)("br",{}),(0,N.jsx)("b",{children:"Retention"})," imposes rules to prevent object deletion for a period of time. Versioning must be enabled in order to set bucket retention policies."]}),(0,N.jsx)("br",{}),(0,N.jsx)("br",{})]})}),children:(0,N.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:function(e){e.preventDefault(),n((0,F.I)())},children:[(0,N.jsxs)(a.ZP,{container:!0,marginTop:1,spacing:2,children:[(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(L,{hasErrors:K})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(V,{errorList:U})}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,children:[(0,N.jsx)(E.Z,{children:"Features"}),!se&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)("div",{className:t.error,children:["These features are unavailable in a single-disk setup.",(0,N.jsx)("br",{}),"Please deploy a server in"," ",(0,N.jsx)("a",{href:"https://docs.min.io/minio/baremetal/installation/deploy-minio-distributed.html?ref=con",target:"_blank",rel:"noreferrer",children:"Distributed Mode"})," ","to use these features."]}),(0,N.jsx)("br",{}),(0,N.jsx)("br",{})]})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,spacing:2,children:[ae.enabled&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)("br",{}),(0,N.jsxs)("div",{className:t.alertVersioning,children:[(0,N.jsx)(k.szr,{})," Versioning setting cannot be changed as cluster replication is enabled for this site."]}),(0,N.jsx)("br",{})]}),(0,N.jsx)(P.Z,{tooltip:ce?$&&W?"You must disable Locking before Versioning can be disabled":"":(0,R.MK)([R.Ft.S3_PUT_BUCKET_VERSIONING],"Versioning"),children:(0,N.jsx)(b.Z,{value:"versioned",id:"versioned",name:"versioned",checked:W,onChange:function(e){n((0,w.E2)(e.target.checked))},label:"Versioning",disabled:!se||$||ae.enabled||!ce})})]}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(P.Z,{tooltip:oe?"":(0,R.MK)([R.Ft.S3_PUT_BUCKET_VERSIONING,R.Ft.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION],"Locking"),children:(0,N.jsx)(b.Z,{value:"locking",id:"locking",name:"locking",disabled:re||!se||!oe,checked:$,onChange:function(e){n((0,w.j9)(e.target.checked)),e.target.checked&&!ae.enabled&&n((0,w.E2)(!0))},label:"Object Locking"})})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(b.Z,{value:"bucket_quota",id:"bucket_quota",name:"bucket_quota",checked:J,onChange:function(e){n((0,w.WC)(e.target.checked))},label:"Quota",disabled:!se})}),J&&se&&(0,N.jsx)(s.Fragment,{children:(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(h.Z,{type:"string",id:"quota_size",name:"quota_size",onChange:function(e){n((0,w.Rj)(e.target.value))},label:"Capacity",value:Q,required:!0,min:"1",overlayObject:(0,N.jsx)(C.Z,{id:"quota_unit",onUnitChange:function(e){n((0,w.ND)(e))},unitSelected:Y,unitsList:(0,j.zQ)(["Ki"]),disabled:!1}),error:ie.includes("quotaSize")?"Please enter a valid quota":""})})}),W&&se&&oe&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(b.Z,{value:"bucket_retention",id:"bucket_retention",name:"bucket_retention",checked:H,onChange:function(e){n((0,w.bc)(e.target.checked))},label:"Retention"})}),H&&se&&(0,N.jsxs)(s.Fragment,{children:[(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(f.Z,{currentSelection:X,id:"retention_mode",name:"retention_mode",label:"Mode",onChange:function(e){n((0,w.VK)(e.target.value))},selectorOptions:[{value:"compliance",label:"Compliance"},{value:"governance",label:"Governance"}]})}),(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(h.Z,{type:"number",id:"retention_validity",name:"retention_validity",onChange:function(e){n((0,w.Mn)(e.target.valueAsNumber))},label:"Validity",value:String(te),required:!0,overlayObject:(0,N.jsx)(C.Z,{id:"retention_unit",onUnitChange:function(e){n((0,w.hx)(e))},unitSelected:ee,unitsList:[{value:"days",label:"Days"},{value:"years",label:"Years"}],disabled:!1})})})]})]}),(0,N.jsxs)(a.ZP,{item:!0,xs:12,className:t.buttonContainer,children:[(0,N.jsx)(c.z,{id:"clear",type:"button",variant:"regular",className:t.clearButton,onClick:function(){n((0,w.Fx)())},label:"Clear"}),(0,N.jsx)(P.Z,{tooltip:ie.length>0||!I||K?"You must apply a valid name to the bucket":"",children:(0,N.jsx)(c.z,{id:"create-bucket",type:"submit",variant:"callAction",color:"primary",disabled:ne||ie.length>0||!I||K,label:"Create Bucket"})})]}),ne&&(0,N.jsx)(a.ZP,{item:!0,xs:12,children:(0,N.jsx)(l.Z,{})})]})})})]})}))},25739:function(e,t,n){n(72791);var i=n(64554),r=n(50896),s=n(80184);t.Z=function(e){var t=e.children,n=e.title,a=e.helpbox,l=e.icon;return(0,s.jsxs)(i.Z,{sx:{display:"grid",padding:"25px",gap:"25px",gridTemplateColumns:{md:"2fr 1.2fr",xs:"1fr"},border:"1px solid #eaeaea"},children:[(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(r.Z,{icon:l,children:n}),(0,s.jsx)(i.Z,{sx:{height:16}}),t]}),a]})}},27454:function(e,t,n){var i=n(1413),r=n(72791),s=n(20068),a=n(80184);t.Z=function(e){var t=e.tooltip,n=e.children,l=e.errorProps,o=void 0===l?null:l;return(0,a.jsx)(s.Z,{title:t,children:(0,a.jsx)("span",{children:o?(0,r.cloneElement)(n,(0,i.Z)({},o)):n})})}}}]);
+//# sourceMappingURL=8277.f96cd195.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/8277.f96cd195.chunk.js.map b/portal-ui/build/static/js/8277.f96cd195.chunk.js.map
new file mode 100644
index 000000000..79de0e7a7
--- /dev/null
+++ b/portal-ui/build/static/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ACGkC,GAAaC,EAAAA,EAAAA,cAAaN,GAAD,UAAgBK,IAAgBL,KAIjE,C","sources":["common/HelpBox.tsx","screens/Console/Buckets/ListBuckets/AddBucket/AddBucketName.tsx","icons/ShowTextIcon.tsx","icons/HideTextIcon.tsx","screens/Console/Buckets/ListBuckets/AddBucket/ValidRule.tsx","screens/Console/Buckets/ListBuckets/AddBucket/InvalidRule.tsx","screens/Console/Buckets/ListBuckets/AddBucket/NARule.tsx","screens/Console/Buckets/ListBuckets/AddBucket/BucketNamingRules.tsx","screens/Console/Buckets/ListBuckets/AddBucket/AddBucket.tsx","screens/Console/Common/FormLayout.tsx","screens/Console/Common/TooltipWrapper/TooltipWrapper.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n border: \"1px solid #E2E2E2\",\n borderRadius: 2,\n backgroundColor: \"#FBFAFA\",\n paddingLeft: 25,\n paddingTop: 31,\n paddingBottom: 21,\n paddingRight: 30,\n },\n leftItems: {\n fontSize: 16,\n fontWeight: \"bold\",\n marginBottom: 15,\n display: \"flex\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: 15,\n height: 28,\n width: 38,\n },\n },\n helpText: {\n fontSize: 16,\n paddingLeft: 5,\n },\n });\n\ninterface IHelpBox {\n classes: any;\n iconComponent: any;\n title: string;\n help: any;\n}\n\nconst HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { setName, setIsDirty } from \"./addBucketsSlice\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\n\nconst AddBucketName = ({ hasErrors }: { hasErrors: boolean }) => {\n const dispatch = useAppDispatch();\n\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n return (\n {\n dispatch(setIsDirty(true));\n }}\n onChange={(event: React.ChangeEvent) => {\n dispatch(setName(event.target.value));\n }}\n label=\"Bucket Name\"\n value={bucketName}\n required\n />\n );\n};\n\nexport default AddBucketName;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst ShowTextIcon = (props: SVGProps) => (\n \n);\n\nexport default ShowTextIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst HideTextIcon = (props: SVGProps) => (\n \n);\n\nexport default HideTextIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { ConfirmModalIcon } from \"../../../../../icons\";\n\ninterface IValidRule {\n ruleText: string;\n}\n\nconst ValidRule = ({ ruleText }: IValidRule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default ValidRule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { ConfirmDeleteIcon } from \"../../../../../icons\";\n\ninterface IInvalidRule {\n ruleText: string;\n}\n\nconst InvalidRule = ({ ruleText }: IInvalidRule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default InvalidRule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { CircleIcon } from \"../../../../../icons\";\n\ninterface INARule {\n ruleText: string;\n}\n\nconst NARule = ({ ruleText }: INARule) => {\n return (\n \n \n \n \n \n \n {ruleText}\n \n \n \n );\n};\n\nexport default NARule;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { LinearProgress } from \"@mui/material\";\nimport { AppState } from \"../../../../../store\";\nimport { useSelector } from \"react-redux\";\nimport ShowTextIcon from \"../../../../../icons/ShowTextIcon\";\nimport HideTextIcon from \"../../../../../icons/HideTextIcon\";\nimport { Button } from \"mds\";\nimport ValidRule from \"./ValidRule\";\nimport InvalidRule from \"./InvalidRule\";\nimport NARule from \"./NARule\";\n\nconst BucketNamingRules = ({ errorList }: { errorList: boolean[] }) => {\n const lengthRuleText =\n \"Bucket names must be between 3 (min) and 63 (max) characters long.\";\n const characterRuleText =\n \"Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).\";\n const periodRuleText =\n \"Bucket names must not contain two adjacent periods, or a period adjacent to a hyphen.\";\n const ipRuleText =\n \"Bucket names must not be formatted as an IP address (for example, 192.168.5.4).\";\n const prefixRuleText = \"Bucket names must not start with the prefix xn--.\";\n const suffixRuleText =\n \"Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names.\";\n const uniqueRuleText = \"Bucket names must be unique within a partition.\";\n\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n\n const [showNamingRules, setShowNamingRules] = useState(false);\n\n const addLoading = useSelector((state: AppState) => state.addBucket.loading);\n\n const [\n lengthRule,\n validCharacters,\n noAdjacentPeriods,\n notIPFormat,\n noPrefix,\n noSuffix,\n uniqueName,\n ] = errorList;\n\n const toggleNamingRules = () => {\n setShowNamingRules(!showNamingRules);\n };\n\n return (\n \n {\n toggleNamingRules();\n }}\n icon={showNamingRules ? : }\n label={(showNamingRules ? \"Hide\" : \"View\") + \" Bucket Naming Rules\"}\n style={{\n height: \"10px\",\n width: \"200px\",\n textAlign: \"left\",\n paddingLeft: 0,\n fontSize: \"9px\",\n border: \"none\",\n }}\n />\n {showNamingRules && (\n \n \n {bucketName.length === 0 ? (\n \n ) : lengthRule ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : validCharacters ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : noAdjacentPeriods ? (\n \n ) : (\n \n )}\n {bucketName.length === 0 ? (\n \n ) : notIPFormat ? (\n \n ) : (\n \n )}\n \n \n {bucketName.length === 0 ? (\n \n ) : noPrefix ? (\n \n ) : (\n \n )}\n\n {bucketName.length === 0 ? (\n \n ) : noSuffix ? (\n \n ) : (\n \n )}\n\n {bucketName.length === 0 ? (\n \n ) : uniqueName ? (\n \n ) : (\n \n )}\n \n \n )}\n\n {addLoading && (\n \n \n \n )}\n \n );\n};\n\nexport default BucketNamingRules;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport { LinearProgress } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport { useNavigate } from \"react-router-dom\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { containerForHeader } from \"../../../Common/FormComponents/common/styleLibrary\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport { k8sScalarUnitsExcluding } from \"../../../../../common/utils\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { useSelector } from \"react-redux\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport PageHeader from \"../../../Common/PageHeader/PageHeader\";\nimport BackLink from \"../../../../../common/BackLink\";\nimport { BucketsIcon, InfoIcon } from \"../../../../../icons\";\nimport { setErrorSnackMessage } from \"../../../../../systemSlice\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { BucketList } from \"../../types\";\nimport api from \"../../../../../common/api\";\nimport PageLayout from \"../../../Common/Layout/PageLayout\";\nimport InputUnitMenu from \"../../../Common/FormComponents/InputUnitMenu/InputUnitMenu\";\nimport FormLayout from \"../../../Common/FormLayout\";\nimport HelpBox from \"../../../../../common/HelpBox\";\nimport TooltipWrapper from \"../../../Common/TooltipWrapper/TooltipWrapper\";\nimport SectionTitle from \"../../../Common/SectionTitle\";\nimport { selDistSet, selSiteRep } from \"../../../../../systemSlice\";\nimport {\n resetForm,\n setEnableObjectLocking,\n setIsDirty,\n setName,\n setQuota,\n setQuotaSize,\n setQuotaUnit,\n setRetention,\n setRetentionMode,\n setRetentionUnit,\n setRetentionValidity,\n setVersioning,\n} from \"./addBucketsSlice\";\nimport { addBucketAsync } from \"./addBucketThunks\";\nimport AddBucketName from \"./AddBucketName\";\nimport {\n IAM_SCOPES,\n permissionTooltipHelper,\n} from \"../../../../../common/SecureComponent/permissions\";\nimport { hasPermission } from \"../../../../../common/SecureComponent\";\nimport BucketNamingRules from \"./BucketNamingRules\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n buttonContainer: {\n marginTop: 24,\n display: \"flex\",\n justifyContent: \"flex-end\",\n \"& button\": {\n marginLeft: 8,\n },\n },\n error: {\n color: \"#b53b4b\",\n border: \"1px solid #b53b4b\",\n padding: 8,\n borderRadius: 3,\n },\n alertVersioning: {\n border: \"#E2E2E2 1px solid\",\n backgroundColor: \"#FBFAFA\",\n borderRadius: 3,\n display: \"flex\",\n alignItems: \"center\",\n padding: \"10px\",\n color: \"#767676\",\n \"& > .min-icon \": {\n width: 20,\n height: 20,\n marginRight: 10,\n },\n },\n title: {\n marginBottom: 8,\n },\n headTitle: {\n fontWeight: \"bold\",\n fontSize: 16,\n paddingLeft: 8,\n },\n h6title: {\n fontWeight: \"bold\",\n color: \"#000000\",\n fontSize: 20,\n },\n ...containerForHeader(theme.spacing(4)),\n });\n\ninterface IsetProps {\n classes: any;\n}\n\nconst AddBucket = ({ classes }: IsetProps) => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const validBucketCharacters = new RegExp(`^[a-z0-9.-]*$`);\n const ipAddressFormat = new RegExp(\n \"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}$\"\n );\n const bucketName = useSelector((state: AppState) => state.addBucket.name);\n const isDirty = useSelector((state: AppState) => state.addBucket.isDirty);\n const [validationResult, setValidationResult] = useState([]);\n const errorList = validationResult.filter((v) => !v);\n const hasErrors = errorList.length > 0;\n const [records, setRecords] = useState([]);\n const versioningEnabled = useSelector(\n (state: AppState) => state.addBucket.versioningEnabled\n );\n const lockingEnabled = useSelector(\n (state: AppState) => state.addBucket.lockingEnabled\n );\n const quotaEnabled = useSelector(\n (state: AppState) => state.addBucket.quotaEnabled\n );\n const quotaSize = useSelector((state: AppState) => state.addBucket.quotaSize);\n const quotaUnit = useSelector((state: AppState) => state.addBucket.quotaUnit);\n const retentionEnabled = useSelector(\n (state: AppState) => state.addBucket.retentionEnabled\n );\n const retentionMode = useSelector(\n (state: AppState) => state.addBucket.retentionMode\n );\n const retentionUnit = useSelector(\n (state: AppState) => state.addBucket.retentionUnit\n );\n const retentionValidity = useSelector(\n (state: AppState) => state.addBucket.retentionValidity\n );\n const addLoading = useSelector((state: AppState) => state.addBucket.loading);\n const invalidFields = useSelector(\n (state: AppState) => state.addBucket.invalidFields\n );\n const lockingFieldDisabled = useSelector(\n (state: AppState) => state.addBucket.lockingFieldDisabled\n );\n const distributedSetup = useSelector(selDistSet);\n const siteReplicationInfo = useSelector(selSiteRep);\n const navigateTo = useSelector(\n (state: AppState) => state.addBucket.navigateTo\n );\n\n const lockingAllowed = hasPermission(\n \"*\",\n [\n IAM_SCOPES.S3_PUT_BUCKET_VERSIONING,\n IAM_SCOPES.S3_PUT_BUCKET_OBJECT_LOCK_CONFIGURATION,\n ],\n true\n );\n\n const versioningAllowed = hasPermission(\"*\", [\n IAM_SCOPES.S3_PUT_BUCKET_VERSIONING,\n ]);\n\n useEffect(() => {\n const bucketNameErrors = [\n !(isDirty && (bucketName.length < 3 || bucketName.length > 63)),\n validBucketCharacters.test(bucketName),\n !(\n bucketName.includes(\".-\") ||\n bucketName.includes(\"-.\") ||\n bucketName.includes(\"..\")\n ),\n !ipAddressFormat.test(bucketName),\n !bucketName.startsWith(\"xn--\"),\n !bucketName.endsWith(\"-s3alias\"),\n !records.includes(bucketName),\n ];\n setValidationResult(bucketNameErrors);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [bucketName, isDirty]);\n\n useEffect(() => {\n dispatch(setName(\"\"));\n dispatch(setIsDirty(false));\n const fetchRecords = () => {\n api\n .invoke(\"GET\", `/api/v1/buckets`)\n .then((res: BucketList) => {\n var bucketList: string[] = [];\n if (res.buckets != null && res.buckets.length > 0) {\n res.buckets.forEach((bucket) => {\n bucketList.push(bucket.name);\n });\n }\n setRecords(bucketList);\n })\n .catch((err: ErrorResponseHandler) => {\n dispatch(setErrorSnackMessage(err));\n });\n };\n fetchRecords();\n }, [dispatch]);\n\n const resForm = () => {\n dispatch(resetForm());\n };\n\n useEffect(() => {\n if (navigateTo !== \"\") {\n const goTo = `${navigateTo}`;\n dispatch(resetForm());\n navigate(goTo);\n }\n }, [navigateTo, navigate, dispatch]);\n\n return (\n \n } />\n \n }\n helpbox={\n }\n title={\"Buckets\"}\n help={\n \n MinIO uses buckets to organize objects. A bucket is similar to\n a folder or directory in a filesystem, where each bucket can\n hold an arbitrary number of objects.\n \n \n Versioning allows to keep multiple versions of the same\n object under the same key.\n \n \n Object Locking prevents objects from being deleted.\n Required to support retention and legal hold. Can only be\n enabled at bucket creation.\n \n \n Quota limits the amount of data in the bucket.\n {lockingAllowed && (\n \n \n \n Retention imposes rules to prevent object deletion\n for a period of time. Versioning must be enabled in order\n to set bucket retention policies.\n \n )}\n \n \n \n }\n />\n }\n >\n \n \n \n \n );\n};\n\nexport default withStyles(styles)(AddBucket);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Box } from \"@mui/material\";\nimport SectionTitle from \"./SectionTitle\";\n\ntype Props = {\n title: string;\n icon: React.ReactNode;\n helpbox?: React.ReactNode;\n children: React.ReactNode;\n};\n\nconst FormLayout: React.FC = ({ children, title, helpbox, icon }) => {\n return (\n \n \n {title}\n \n {children}\n \n\n {helpbox}\n \n );\n};\n\nexport default FormLayout;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n"],"names":["withStyles","theme","createStyles","root","border","borderRadius","backgroundColor","paddingLeft","paddingTop","paddingBottom","paddingRight","leftItems","fontSize","fontWeight","marginBottom","display","alignItems","marginRight","height","width","helpText","classes","iconComponent","title","help","className","container","item","xs","hasErrors","dispatch","useAppDispatch","bucketName","useSelector","state","addBucket","name","InputBoxWrapper","id","error","onFocus","setIsDirty","onChange","event","setName","target","value","label","required","props","xmlns","fill","viewBox","transform","d","ruleText","Fragment","Grid","style","justifyContent","color","errorList","lengthRuleText","characterRuleText","periodRuleText","ipRuleText","prefixRuleText","suffixRuleText","uniqueRuleText","useState","showNamingRules","setShowNamingRules","addLoading","loading","lengthRule","validCharacters","noAdjacentPeriods","notIPFormat","noPrefix","noSuffix","uniqueName","type","onClick","icon","textAlign","length","LinearProgress","buttonContainer","marginTop","marginLeft","padding","alertVersioning","headTitle","h6title","containerForHeader","spacing","navigate","useNavigate","validBucketCharacters","RegExp","ipAddressFormat","isDirty","validationResult","setValidationResult","filter","v","records","setRecords","versioningEnabled","lockingEnabled","quotaEnabled","quotaSize","quotaUnit","retentionEnabled","retentionMode","retentionUnit","retentionValidity","invalidFields","lockingFieldDisabled","distributedSetup","selDistSet","siteReplicationInfo","selSiteRep","navigateTo","lockingAllowed","hasPermission","IAM_SCOPES","versioningAllowed","useEffect","bucketNameErrors","test","includes","startsWith","endsWith","api","then","res","bucketList","buckets","forEach","bucket","push","catch","err","setErrorSnackMessage","goTo","resetForm","PageHeader","BackLink","to","PageLayout","FormLayout","helpbox","HelpBox","noValidate","autoComplete","onSubmit","e","preventDefault","addBucketAsync","SectionTitle","href","rel","enabled","TooltipWrapper","tooltip","permissionTooltipHelper","FormSwitchWrapper","checked","setVersioning","disabled","setEnableObjectLocking","setQuota","setQuotaSize","min","overlayObject","InputUnitMenu","onUnitChange","newValue","setQuotaUnit","unitSelected","unitsList","k8sScalarUnitsExcluding","setRetention","RadioGroupSelector","currentSelection","setRetentionMode","selectorOptions","setRetentionValidity","valueAsNumber","String","setRetentionUnit","variant","clearButton","children","sx","gap","gridTemplateColumns","md","errorProps","cloneElement"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/839.94b8b36e.chunk.js b/portal-ui/build/static/js/839.94b8b36e.chunk.js
deleted file mode 100644
index a1a49847c..000000000
--- a/portal-ui/build/static/js/839.94b8b36e.chunk.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[839],{23804:function(e,n,t){t(72791);var r=t(11135),a=t(25787),i=t(61889),s=t(80184);n.Z=(0,a.Z)((function(e){return(0,r.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var n=e.classes,t=e.iconComponent,r=e.title,a=e.help;return(0,s.jsx)("div",{className:n.root,children:(0,s.jsxs)(i.ZP,{container:!0,children:[(0,s.jsxs)(i.ZP,{item:!0,xs:12,className:n.leftItems,children:[t,r]}),(0,s.jsx)(i.ZP,{item:!0,xs:12,className:n.helpText,children:a})]})})}))},46707:function(e,n,t){var r=t(1413),a=(t(72791),t(80184));n.Z=function(e){return(0,a.jsxs)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 256 256"},e),{},{children:[(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"certificate_svg__a",children:(0,a.jsx)("path",{"data-name":"Rect\\xE1ngulo 2156",fill:"#07193e",d:"M0 0h256v222.048H0z"})})}),(0,a.jsxs)("g",{"data-name":"Grupo 4763",transform:"translate(0 17)",clipPath:"url(#certificate_svg__a)",fill:"#07193e",children:[(0,a.jsx)("path",{"data-name":"Trazado 8152",d:"M240-.002H16a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h120l4.64-5.6 7.44-9.12A66.72 66.72 0 0 1 256 98.958v-82.96a16 16 0 0 0-16-16m-130.96 149.7H47.3a7.3 7.3 0 1 1 0-14.592h61.74a7.3 7.3 0 1 1 0 14.592m0-56H47.3a7.3 7.3 0 1 1 0-14.592h61.74a7.3 7.3 0 0 1 0 14.592m66.96-39.3a6.419 6.419 0 0 1-6.4 6.4H46.4a6.419 6.419 0 0 1-6.4-6.4v-1.792a6.419 6.419 0 0 1 6.4-6.4h123.2a6.419 6.419 0 0 1 6.4 6.4Z"}),(0,a.jsx)("path",{"data-name":"Trazado 8153",d:"M256 137.486a50.96 50.96 0 1 0-86.16 36.72l-15.52 18.96 7.2 28.88 29.28-35.68a50.018 50.018 0 0 0 28.4 0l29.28 35.68 7.2-28.88-15.52-18.96a50.75 50.75 0 0 0 15.84-36.72m-50.928 29.688a29.688 29.688 0 0 1-.072-59.376h.072a29.688 29.688 0 0 1 0 59.376"})]}),(0,a.jsx)("path",{"data-name":"Rect\\xE1ngulo 2157",fill:"none",d:"M0 0h256v256H0z"})]}))}},37798:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});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),h=t(78029),x=t.n(h),p=t(38734),g=t(23814),v=t(27454),y=t(80184),j=(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)({},g.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,y.jsxs)("div",{className:s.container,children:[(0,y.jsxs)("div",{className:s.inputLabel,children:[t,":"]}),(0,y.jsx)("div",{className:s.inputWithCopy,children:(0,y.jsx)(m.Z,{value:a,readOnly:!0,endAdornment:(0,y.jsx)(f.Z,{position:"end",children:(0,y.jsx)(v.Z,{tooltip:"Copy",children:(0,y.jsx)(x(),{text:a,children:(0,y.jsx)(o.z,{id:"copy-clipboard","aria-label":"copy",onClick:function(){},onMouseDown:function(){},style:{width:"28px",height:"28px",padding:"0px"},icon:(0,y.jsx)(p.TIy,{})})})})})})})]})})),Z=t(89357),C=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)},b=(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,y.jsx)(u.Z,{modalOpen:i,onClose:function(){l()},title:(0,y.jsx)("div",{className:n.promptTitle,children:(0,y.jsxs)("div",{children:["New ",c," Created"]})}),titleIcon:(0,y.jsx)(p.tVY,{}),children:(0,y.jsxs)(d.ZP,{container:!0,children:[(0,y.jsxs)(d.ZP,{item:!0,xs:12,className:n.formScrollable,children:["A new ",c," has been created with the following details:",!f&&m&&(0,y.jsx)(a.Fragment,{children:(0,y.jsxs)(d.ZP,{item:!0,xs:12,className:n.credentialsPanel,children:[(0,y.jsx)("div",{className:n.credentialTitle,children:"Console Credentials"}),Array.isArray(m)&&m.map((function(e,n){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:e.accessKey}),(0,y.jsx)(j,{label:"Secret Key",value:e.secretKey})]})})),!Array.isArray(m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:m.accessKey}),(0,y.jsx)(j,{label:"Secret Key",value:m.secretKey})]})]})}),(null===m||void 0===m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:t.accessKey||""}),(0,y.jsx)(j,{label:"Secret Key",value:t.secretKey||""})]}),f?(0,y.jsx)("div",{className:n.warningBlock,children:"Please Login via the configured external identity provider."}):(0,y.jsxs)("div",{className:n.warningBlock,children:[(0,y.jsx)(Z.Z,{}),(0,y.jsx)("span",{children:"Write these down, as this is the only time the secret will be displayed."})]})]}),(0,y.jsx)(d.ZP,{item:!0,xs:12,className:n.buttonContainer,children:!f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.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,y.jsx)(o.z,{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"};C("credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,y.jsx)(p._8t,{}),variant:"callAction"})}),Array.isArray(m)&&m.length>1&&(0,y.jsx)(v.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,y.jsx)(o.z,{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}})));C("all_credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,y.jsx)(p._8t,{}),variant:"callAction",color:"primary"})})]})})]})})}))},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),h=t(11135),x=t(25787),p=t(23814),g=t(84570),v=t(22512),y=t(80184),j=(0,x.Z)((function(e){return(0,h.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,h=e.name,x=e.disabled,p=void 0!==x&&x,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,P=void 0===A?"":A,T=(0,i.useState)(!1),I=(0,r.Z)(T,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.Z,{})})})})]}),k||""===P?(0,y.jsxs)("div",{className:t.textBoxContainer,children:[(0,y.jsx)("input",{type:"file",name:h,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}),""!==P&&(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:P}),(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,{})})]})]})})}))},56028:function(e,n,t){var r=t(29439),a=t(1413),i=t(72791),s=t(60364),o=t(13400),l=t(55646),c=t(5574),u=t(65661),d=t(39157),m=t(11135),f=t(25787),h=t(23814),x=t(25469),p=t(29823),g=t(28057),v=t(87995),y=t(80184);n.Z=(0,f.Z)((function(e){return(0,m.Z)((0,a.Z)((0,a.Z)({},h.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},h.sN))}))((function(e){var n=e.onClose,t=e.modalOpen,m=e.title,f=e.children,h=e.classes,j=e.wideLimit,Z=void 0===j||j,C=e.noContentPadding,b=e.titleIcon,_=void 0===b?null:b,S=(0,x.TL)(),N=(0,i.useState)(!1),A=(0,r.Z)(N,2),P=A[0],T=A[1],I=(0,s.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){S((0,v.MK)(""))}),[S]),(0,i.useEffect)((function(){if(I){if(""===I.message)return void T(!1);"error"!==I.type&&T(!0)}}),[I]);var k=Z?{classes:{paper:h.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},w="";return I&&(w=I.detailedErrorMsg,(""===I.detailedErrorMsg||I.detailedErrorMsg.length<5)&&(w=I.message)),(0,y.jsxs)(c.Z,(0,a.Z)((0,a.Z)({open:t,classes:h},k),{},{scroll:"paper",onClose:function(e,t){"backdropClick"!==t&&n()},className:h.root,children:[(0,y.jsxs)(u.Z,{className:h.title,children:[(0,y.jsxs)("div",{className:h.titleText,children:[_," ",m]}),(0,y.jsx)("div",{className:h.closeContainer,children:(0,y.jsx)(o.Z,{"aria-label":"close",id:"close",className:h.closeButton,onClick:n,disableRipple:!0,size:"small",children:(0,y.jsx)(p.Z,{})})})]}),(0,y.jsx)(g.Z,{isModal:!0}),(0,y.jsx)(l.Z,{open:P,className:h.snackBarModal,onClose:function(){T(!1),S((0,v.MK)(""))},message:w,ContentProps:{className:"".concat(h.snackBar," ").concat(I&&"error"===I.type?h.errorSnackBar:"")},autoHideDuration:I&&"error"===I.type?1e4:5e3}),(0,y.jsx)(d.Z,{className:C?"":h.content,children:f})]}))}))},27454:function(e,n,t){var r=t(1413),a=t(72791),i=t(20068),s=t(80184);n.Z=function(e){var n=e.tooltip,t=e.children,o=e.errorProps,l=void 0===o?null:o;return(0,s.jsx)(i.Z,{title:n,children:(0,s.jsx)("span",{children:l?(0,a.cloneElement)(t,(0,r.Z)({},l)):t})})}},41260:function(e,n,t){t.r(n),t.d(n,{default:function(){return Je}});var r=t(29439),a=t(1413),i=t(72791),s=t(26181),o=t.n(s),l=t(60364),c=t(61889),u=t(40986),d=t(11135),m=t(23814),f=t(28371),h=t(25469),x=t(93433),p=t(25787),g=t(10703),v=t(13400),y=t(84741),j=t(40968),Z=t(37516),C=t(21435),b=t(42419),_=t(51979),S=t(76773),N=t(90673),A=t(80184),P=(0,p.Z)((function(e){return(0,d.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},overlayAction:{marginLeft:10,display:"flex",alignItems:"center","& svg":{width:15,height:15},"& button":{background:"#EAEAEA"}}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,h.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.tenantSecurityContext})),P=(0,i.useState)({}),T=(0,r.Z)(P,2),I=T[0],k=T[1],w=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];if(f&&(e=[].concat((0,x.Z)(e),[{fieldKey:"tenant_securityContext_runAsUser",required:!0,value:p.runAsUser,customValidation:""===p.runAsUser||parseInt(p.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"tenant_securityContext_runAsGroup",required:!0,value:p.runAsGroup,customValidation:""===p.runAsGroup||parseInt(p.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"tenant_securityContext_fsGroup",required:!0,value:p.fsGroup,customValidation:""===p.fsGroup||parseInt(p.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,x.Z)(e),(0,x.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,j.R)(e);t((0,S.NO)({pageName:"configure",valid:0===Object.keys(r).length})),k(r)}),[t,f,p,u,d,m]);var R=function(e){k((0,y.he)(I,e))};return(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)("div",{className:n.headerElement,children:[(0,A.jsx)("h3",{className:n.h3Section,children:"Configure"}),(0,A.jsx)("span",{className:n.descriptionText,children:"Basic configurations for tenant management"})]}),(0,A.jsxs)("div",{className:n.headerElement,children:[(0,A.jsx)("h3",{className:n.h3Section,children:"Services"}),(0,A.jsx)("span",{className:n.descriptionText,children:"Whether the tenant's services should request an external IP via LoadBalancer service type."})]}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)(Z.Z,{value:"expose_minio",id:"expose_minio",name:"expose_minio",checked:s,onChange:function(e){var n=e.target.checked;w("exposeMinIO",n)},label:"Expose MinIO Service"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)(Z.Z,{value:"expose_console",id:"expose_console",name:"expose_console",checked:o,onChange:function(e){var n=e.target.checked;w("exposeConsole",n)},label:"Expose Console Service"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)(Z.Z,{value:"custom_domains",id:"custom_domains",name:"custom_domains",checked:u,onChange:function(e){var n=e.target.checked;w("setDomains",n)},label:"Set Custom Domains"})}),u&&(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.tenantCustomizationFields,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Custom Domains for MinIO"}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:[(0,A.jsx)("div",{className:n.containerItem,children:(0,A.jsx)(C.Z,{id:"console_domain",name:"console_domain",onChange:function(e){w("consoleDomain",e.target.value),R("tenant_securityContext_runAsUser")},label:"Console Domain",value:d,placeholder:"Eg. http://subdomain.domain:port/subpath1/subpath2",error:I.console_domain||""})}),(0,A.jsxs)("div",{children:[(0,A.jsx)("h4",{children:"MinIO Domains"}),(0,A.jsx)("div",{className:"".concat(n.responsiveSectionItem),children:m.map((function(e,r){return(0,A.jsxs)("div",{className:"".concat(n.containerItem," ").concat(n.wrapperContainer),children:[(0,A.jsx)(C.Z,{id:"minio-domain-".concat(r.toString()),name:"minio-domain-".concat(r.toString()),onChange:function(e){!function(e,n){var t=(0,x.Z)(m);t[n]=e,w("minioDomains",t)}(e.target.value,r)},label:"MinIO Domain ".concat(r+1),value:e,placeholder:"Eg. http://subdomain.domain",error:I["minio-domain-".concat(r.toString())]||""}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){return t((0,S.x_)())},disabled:r!==m.length-1,children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){return t((0,S.JL)(r))},disabled:m.length<=1,children:(0,A.jsx)(_.Z,{})})})]},"minio-domain-key-".concat(r.toString()))}))})]})]})]})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)(Z.Z,{value:"tenantConfig",id:"tenant_configuration",name:"tenant_configuration",checked:f,onChange:function(e){var n=e.target.checked;w("tenantCustom",n)},label:"Security Context"})}),f&&(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.tenantCustomizationFields,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for MinIO"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.containerItem,children:(0,A.jsx)(C.Z,{type:"number",id:"tenant_securityContext_runAsUser",name:"tenant_securityContext_runAsUser",onChange:function(e){w("tenantSecurityContext",(0,a.Z)((0,a.Z)({},p),{},{runAsUser:e.target.value})),R("tenant_securityContext_runAsUser")},label:"Run As User",value:p.runAsUser,required:!0,error:I.tenant_securityContext_runAsUser||"",min:"0"})}),(0,A.jsx)("div",{className:n.containerItem,children:(0,A.jsx)(C.Z,{type:"number",id:"tenant_securityContext_runAsGroup",name:"tenant_securityContext_runAsGroup",onChange:function(e){w("tenantSecurityContext",(0,a.Z)((0,a.Z)({},p),{},{runAsGroup:e.target.value})),R("tenant_securityContext_runAsGroup")},label:"Run As Group",value:p.runAsGroup,required:!0,error:I.tenant_securityContext_runAsGroup||"",min:"0"})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:"".concat(n.configSectionItem),children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.containerItem,children:(0,A.jsx)(C.Z,{type:"number",id:"tenant_securityContext_fsGroup",name:"tenant_securityContext_fsGroup",onChange:function(e){w("tenantSecurityContext",(0,a.Z)((0,a.Z)({},p),{},{fsGroup:e.target.value})),R("tenant_securityContext_fsGroup")},label:"FsGroup",value:p.fsGroup,required:!0,error:I.tenant_securityContext_fsGroup||"",min:"0"})}),(0,A.jsx)("div",{className:n.containerItem,children:(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(N.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:p.fsGroupChangePolicy,onChange:function(e){w("tenantSecurityContext",(0,a.Z)((0,a.Z)({},p),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(Z.Z,{value:"tenantSecurityContextRunAsNonRoot",id:"tenant_securityContext_runAsNonRoot",name:"tenant_securityContext_runAsNonRoot",checked:p.runAsNonRoot,onChange:function(e){var n=e.target.checked;w("tenantSecurityContext",(0,a.Z)((0,a.Z)({},p),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})})]})})),T=t(83679),I=t(20890),k=t(20068),w=t(72455),R=t(27247),F=(0,w.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))})),D=function(){var e=(0,h.TL)(),n=F(),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})),_=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADUserDNSearchBaseDN})),N=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADUserDNSearchFilter})),P=(0,l.v9)((function(e){return e.createTenant.fields.identityProvider.ADServerStartTLS})),T=(0,i.useState)({}),w=(0,r.Z)(T,2),D=w[0],G=w[1],K=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"identityProvider",field:n,value:t}))}),[e]),E=function(e){G((0,y.he)(D,e))};return(0,i.useEffect)((function(){var n=[];"AD"===t&&(n=[].concat((0,x.Z)(n),[{fieldKey:"AD_URL",required:!0,value:a},{fieldKey:"ad_lookupBindDN",required:!0,value:p}]));var r=(0,j.R)(n);e((0,S.NO)({pageName:"identityProvider",valid:0===Object.keys(r).length})),G(r)}),[p,t,a,u,d,m,f,e]),(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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:D.AD_URL||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(Z.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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(Z.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,A.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,A.jsx)(I.Z,{className:n.error,variant:"caption",display:"block",gutterBottom:!0,children:"Warning: All traffic with Active Directory will be unencrypted"}),(0,A.jsx)("br",{})]}):null,(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(Z.Z,{value:"ad_serverStartTLS",id:"ad_serverStartTLS",name:"ad_serverStartTLS",checked:P,onChange:function(e){var n=e.target.checked;K("ADServerStartTLS",n)},label:"Start TLS connection to AD/LDAP server"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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:D.ad_lookupBindDN||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"ad_lookupBindPassword",name:"ad_lookupBindPassword",onChange:function(e){K("ADLookupBindPassword",e.target.value)},label:"Lookup Bind Password",value:g,placeholder:"admin"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"ad_userDNSearchBaseDN",name:"ad_userDNSearchBaseDN",onChange:function(e){K("ADUserDNSearchBaseDN",e.target.value)},label:"User DN Search Base DN",value:_,placeholder:"dc=min,dc=io"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"ad_userDNSearchFilter",name:"ad_userDNSearchFilter",onChange:function(e){K("ADUserDNSearchFilter",e.target.value)},label:"User DN Search Filter",value:N,placeholder:"(sAMAcountName=%s)"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"List of user DNs (Distinguished Names) to be Tenant Administrators"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:m.map((function(t,r){return(0,A.jsx)(i.Fragment,{children:(0,A.jsxs)("div",{className:n.adUserDnRows,children:[(0,A.jsx)(C.Z,{id:"ad-userdn-".concat(r.toString()),label:"",placeholder:"",name:"ad-userdn-".concat(r.toString()),value:m[r],onChange:function(n){e((0,S.hK)({index:r,userDN:n.target.value})),E("ad-userdn-".concat(r.toString()))},index:r,error:D["ad-userdn-".concat(r.toString())]||""},"csv-ad-userdn-".concat(r.toString())),(0,A.jsxs)("div",{className:n.buttonTray,children:[(0,A.jsx)(k.Z,{title:"Add User","aria-label":"add",children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){e((0,S.Y$)())},children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)(k.Z,{title:"Remove","aria-label":"add",children:(0,A.jsx)(v.Z,{size:"small",style:{marginLeft:16},onClick:function(){m.length>1&&e((0,S.GU)(r))},children:(0,A.jsx)(R.Z,{})})})]})]})},"identityField-".concat(r.toString()))}))})]}),(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"List of group DNs (Distinguished Names) to be Tenant Administrators"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:f.map((function(t,r){return(0,A.jsx)(i.Fragment,{children:(0,A.jsxs)("div",{className:n.adUserDnRows,children:[(0,A.jsx)(C.Z,{id:"ad-groupdn-".concat(r.toString()),label:"",placeholder:"",name:"ad-groupdn-".concat(r.toString()),value:f[r],onChange:function(n){e((0,S.in)({index:r,userDN:n.target.value})),E("ad-groupdn-".concat(r.toString()))},index:r,error:D["ad-groupdn-".concat(r.toString())]||""},"csv-ad-groupdn-".concat(r.toString())),(0,A.jsxs)("div",{className:n.buttonTray,children:[(0,A.jsx)(k.Z,{title:"Add Group","aria-label":"add",children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){e((0,S.Fe)())},children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)(k.Z,{title:"Remove","aria-label":"add",children:(0,A.jsx)(v.Z,{size:"small",style:{marginLeft:16},onClick:function(){f.length>1&&e((0,S.Hu)(r))},children:(0,A.jsx)(R.Z,{})})})]})]})},"identityField-".concat(r.toString()))}))})]})]})},G=(0,w.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))})),K=function(){var e=(0,h.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.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],Z=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"identityProvider",field:n,value:t}))}),[e]),b=function(e){v((0,y.he)(g,e))};return(0,i.useEffect)((function(){var n=[];"OpenID"===t&&(n=[].concat((0,x.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,j.R)(n);e((0,S.NO)({pageName:"identityProvider",valid:0===Object.keys(r).length})),v(r)}),[t,s,o,a,d,e]),(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_CONFIGURATION_URL",name:"openID_CONFIGURATION_URL",onChange:function(e){Z("openIDConfigurationURL",e.target.value),b("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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_clientID",name:"openID_clientID",onChange:function(e){Z("openIDClientID",e.target.value),b("openID_clientID")},label:"Client ID",value:s,error:g.openID_clientID||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_secretID",name:"openID_secretID",onChange:function(e){Z("openIDSecretID",e.target.value),b("openID_secretID")},label:"Secret ID",value:o,error:g.openID_secretID||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_callbackURL",name:"openID_callbackURL",onChange:function(e){Z("openIDCallbackURL",e.target.value),b("openID_callbackURL")},label:"Callback URL",value:u,placeholder:"https://your-console-endpoint:9443/oauth_callback",error:g.openID_callbackURL||""})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_claimName",name:"openID_claimName",onChange:function(e){Z("openIDClaimName",e.target.value),b("openID_claimName")},label:"Claim Name",value:d,error:g.openID_claimName||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"openID_scopes",name:"openID_scopes",onChange:function(e){Z("openIDScopes",e.target.value),b("openID_scopes")},label:"Scopes",value:m})})]})},E=t(22918),L=(0,w.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))})),O=function(){var e=(0,h.TL)(),n=L(),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,y.he)(u,e))};return(0,i.useEffect)((function(){var n=[];if("Built-in"===t){n=(0,x.Z)(n);for(var r=0;r"})),n=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.tenantName||""}));return(0,A.jsx)(V.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:(0,A.jsxs)(V.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,A.jsx)(H,{icon:(0,A.jsx)(B.Z,{}),description:"TLS Certificates Warning"}),(0,A.jsxs)(V.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Automatic certificate generation is not enabled.",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"If you wish to continue only with ",(0,A.jsx)("b",{children:"custom certificates"})," make sure they are valid for the following internode hostnames, i.e.:",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),(0,A.jsxs)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:["minio.",e,(0,A.jsx)("br",{}),"minio.",e,".svc",(0,A.jsx)("br",{}),"minio.",e,".svc.",(0,A.jsx)("br",{}),"*.",n,"-hl.",e,".svc.",(0,A.jsx)("br",{}),"*.",e,".svc."]}),(0,A.jsx)("br",{}),"Replace ",(0,A.jsx)("em",{children:""}),","," ",(0,A.jsx)("em",{children:""})," and",(0,A.jsx)("em",{children:""})," with the actual values for your MinIO tenant.",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"You can learn more at our"," ",(0,A.jsx)("a",{href:"https://docs.min.io/minio/k8s/security/security.html?ref=op#id5",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})]})})},$=(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,h.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,S.HM)({pageName:"security",field:e,value:n}))}),[t]);return(0,i.useEffect)((function(){t(r?a||s?(0,S.NO)({pageName:"security",valid:!0}):(0,S.NO)({pageName:"security",valid:!1}):(0,S.NO)({pageName:"security",valid:!0}))}),[r,a,s,t]),(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsx)("div",{className:n.headerElement,children:(0,A.jsx)("h3",{className:n.h3Section,children:"Security"})}),(0,A.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(Z.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,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(Z.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,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(Z.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,A.jsxs)(i.Fragment,{children:[!a&&(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(W,{})}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,A.jsx)("h5",{children:"MinIO Server Certificates"}),o.map((function(e,r){return(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertificateRows,children:[(0,A.jsxs)(c.ZP,{item:!0,xs:10,className:n.fileItem,children:[(0,A.jsx)(q.Z,{onChange:function(n,r){t((0,S.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,A.jsx)(q.Z,{onChange:function(n,r){t((0,S.aN)({id:e.id,key:"key",fileName:r,value:n}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})]}),(0,A.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.Mg)())},disabled:r!==o.length-1,children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.XX)(e.id))},disabled:o.length<=1,children:(0,A.jsx)(_.Z,{})})})]})]},"minio-certs-".concat(e.id))}))]}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,A.jsx)("h5",{children:"MinIO Client Certificates"}),u.map((function(e,r){return(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertificateRows,children:[(0,A.jsxs)(c.ZP,{item:!0,xs:10,className:n.fileItem,children:[(0,A.jsx)(q.Z,{onChange:function(n,r){t((0,S.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,A.jsx)(q.Z,{onChange:function(n,r){t((0,S.fE)({id:e.id,key:"key",fileName:r,value:n}))},accept:".key,.pem",id:"tlsKey",name:"tlsKey",label:"Key",value:e.key})]}),(0,A.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.ee)())},disabled:r!==u.length-1,children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.o_)(e.id))},disabled:u.length<=1,children:(0,A.jsx)(_.Z,{})})})]})]},"minio-certs-".concat(e.id))}))]}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCertsContainer,children:[(0,A.jsx)("h5",{children:"MinIO CA Certificates"}),d.map((function(e,r){return(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.minioCACertsRow,children:[(0,A.jsx)(c.ZP,{item:!0,xs:6,children:(0,A.jsx)(q.Z,{onChange:function(n,r){t((0,S.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,A.jsx)(c.ZP,{item:!0,xs:6,children:(0,A.jsxs)("div",{className:n.rowActions,children:[(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.fK)())},disabled:r!==d.length-1,children:(0,A.jsx)(b.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.IG)(e.id))},disabled:d.length<=1,children:(0,A.jsx)(_.Z,{})})})]})})]},"minio-CA-certs-".concat(e.id))}))]})]})]})]})]})})),Q=function(e){var n=e.children;return(0,A.jsx)("h1",{style:{margin:0,marginBottom:".8rem",fontSize:"1.3rem"},children:n})},Y=(0,w.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))})),J=function(){var e=(0,h.TL)(),n=Y(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultEngine})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultNamespace})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPrefix})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultAppRoleEngine})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultId})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultSecret})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultRetry})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPing})),g=(0,l.v9)((function(e){return e.createTenant.certificates.vaultCertificate})),v=(0,l.v9)((function(e){return e.createTenant.certificates.vaultCA})),Z=(0,i.useState)({}),b=(0,r.Z)(Z,2),_=b[0],N=b[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,x.Z)(n),[{fieldKey:"vault_endpoint",required:!0,value:t},{fieldKey:"vault_id",required:!0,value:d},{fieldKey:"vault_secret",required:!0,value:m},{fieldKey:"vault_ping",required:!1,value:p,customValidation:parseInt(p)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:f,customValidation:parseInt(f)<0,customValidationMessage:"Value needs to be 0 or greater"}]);var r=(0,j.R)(n);e((0,S.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),N(r)}),[t,a,d,m,p,f,e]);var P=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"encryption",field:n,value:t}))}),[e]),T=function(e){N((0,y.he)(_,e))};return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_endpoint",name:"vault_endpoint",onChange:function(e){P("vaultEndpoint",e.target.value),T("vault_endpoint")},label:"Endpoint",value:t,error:_.vault_endpoint||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_engine",name:"vault_engine",onChange:function(e){P("vaultEngine",e.target.value),T("vault_engine")},label:"Engine",value:a})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_namespace",name:"vault_namespace",onChange:function(e){P("vaultNamespace",e.target.value)},label:"Namespace",value:s})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_prefix",name:"vault_prefix",onChange:function(e){P("vaultPrefix",e.target.value)},label:"Prefix",value:o})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"App Role"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_approle_engine",name:"vault_approle_engine",onChange:function(e){P("vaultAppRoleEngine",e.target.value)},label:"Engine",value:u})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_id",name:"vault_id",onChange:function(e){P("vaultId",e.target.value),T("vault_id")},label:"AppRole ID",value:d,error:_.vault_id||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"vault_secret",name:"vault_secret",onChange:function(e){P("vaultSecret",e.target.value),T("vault_secret")},label:"AppRole Secret",value:m,error:_.vault_secret||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{type:"number",min:"0",id:"vault_retry",name:"vault_retry",onChange:function(e){P("vaultRetry",e.target.value),T("vault_retry")},label:"Retry (Seconds)",value:f,error:_.vault_retry||""})})]})}),(0,A.jsx)(c.ZP,{container:!0,className:n.mutualTlsConfig,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Mutual TLS authentication (optional)"}),(0,A.jsx)(q.Z,{onChange:function(n,t){e((0,S.cl)({key:"key",fileName:t,value:n})),T("vault_key")},accept:".key,.pem",id:"vault_key",name:"vault_key",label:"Key",value:g.key}),(0,A.jsx)(q.Z,{onChange:function(n,t){e((0,S.cl)({key:"cert",fileName:t,value:n})),T("vault_cert")},accept:".cer,.crt,.cert,.pem",id:"vault_cert",name:"vault_cert",label:"Cert",value:g.cert}),(0,A.jsx)(q.Z,{onChange:function(n,t){e((0,S.fk)({fileName:t,value:n})),T("vault_ca")},accept:".cer,.crt,.cert,.pem",id:"vault_ca",name:"vault_ca",label:"CA",value:v.cert})]})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,style:{marginTop:15},children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Status"}),(0,A.jsx)(C.Z,{type:"number",min:"0",id:"vault_ping",name:"vault_ping",onChange:function(e){P("vaultPing",e.target.value),T("vault_ping")},label:"Ping (Seconds)",value:p,error:_.vault_ping||""})]})})]})},X=(0,w.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))})),ee=function(){var e=(0,h.TL)(),n=X(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureTenantID})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientID})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientSecret})),u=(0,i.useState)({}),d=(0,r.Z)(u,2),m=d[0],f=d[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,x.Z)(n),[{fieldKey:"azure_endpoint",required:!0,value:t},{fieldKey:"azure_tenant_id",required:!0,value:a},{fieldKey:"azure_client_id",required:!0,value:s},{fieldKey:"azure_client_secret",required:!0,value:o}]);var r=(0,j.R)(n);e((0,S.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),f(r)}),[t,a,s,o,e]);var p=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"encryption",field:n,value:t}))}),[e]),g=function(e){f((0,y.he)(m,e))};return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"azure_endpoint",name:"azure_endpoint",onChange:function(e){p("azureEndpoint",e.target.value),g("azure_endpoint")},label:"Endpoint",value:t,error:m.azure_endpoint||""})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"azure_tenant_id",name:"azure_tenant_id",onChange:function(e){p("azureTenantID",e.target.value),g("azure_tenant_id")},label:"Tenant ID",value:a,error:m.azure_tenant_id||""})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"azure_client_id",name:"azure_client_id",onChange:function(e){p("azureClientID",e.target.value),g("azure_client_id")},label:"Client ID",value:s,error:m.azure_client_id||""})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"azure_client_secret",name:"azure_client_secret",onChange:function(e){p("azureClientSecret",e.target.value),g("azure_client_secret")},label:"Client Secret",value:o,error:m.azure_client_secret||""})})]})})]})},ne=(0,w.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))})),te=function(){var e=ne(),n=(0,h.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,S.HM)({pageName:"encryption",field:e,value:t}))}),[n]);return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.Z,{id:"gcp_project_id",name:"gcp_project_id",onChange:function(e){d("gcpProjectID",e.target.value)},label:"Project ID",value:t})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.Z,{id:"gcp_endpoint",name:"gcp_endpoint",onChange:function(e){d("gcpEndpoint",e.target.value)},label:"Endpoint",value:r})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("fieldset",{className:e.fieldGroup,children:[(0,A.jsx)("legend",{className:e.descriptionText,children:"Credentials"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.Z,{id:"gcp_client_email",name:"gcp_client_email",onChange:function(e){d("gcpClientEmail",e.target.value)},label:"Client Email",value:a})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.Z,{id:"gcp_client_id",name:"gcp_client_id",onChange:function(e){d("gcpClientID",e.target.value)},label:"Client ID",value:s})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.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,A.jsx)(c.ZP,{item:!0,xs:12,className:e.formFieldRow,children:(0,A.jsx)(C.Z,{id:"gcp_private_key",name:"gcp_private_key",onChange:function(e){d("gcpPrivateKey",e.target.value)},label:"Private Key",value:u})})]})})]})},re=(0,w.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))})),ae=function(){var e=(0,h.TL)(),n=re(),t=(0,l.v9)((function(e){return e.createTenant.certificates.gemaltoCA})),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=[];n=[].concat((0,x.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 t=(0,j.R)(n);e((0,S.NO)({pageName:"encryption",valid:0===Object.keys(t).length})),p(t)}),[a,s,o,u,e]);var g=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"encryption",field:n,value:t}))}),[e]),v=function(e){p((0,y.he)(f,e))};return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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,A.jsx)(c.ZP,{item:!0,xs:12,style:{marginBottom:15},children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.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||""})})]})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,style:{marginBottom:15},children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Custom CA Root certificate verification"}),(0,A.jsx)(q.Z,{onChange:function(n,t){e((0,S.MX)({fileName:t,value:n})),v("gemalto_ca")},accept:".cer,.crt,.cert,.pem",id:"gemalto_ca",name:"gemalto_ca",label:"CA",value:t.cert})]})})]})},ie=(0,w.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))})),se=function(){var e=(0,h.TL)(),n=ie(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsRegion})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsKMSKey})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsAccessKey})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsSecretKey})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsToken})),m=(0,i.useState)({}),f=(0,r.Z)(m,2),p=f[0],g=f[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,x.Z)(n),[{fieldKey:"aws_endpoint",required:!0,value:t},{fieldKey:"aws_region",required:!0,value:a},{fieldKey:"aws_accessKey",required:!0,value:o},{fieldKey:"aws_secretKey",required:!0,value:u}]);var r=(0,j.R)(n);e((0,S.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),g(r)}),[t,a,u,o,e]);var v=(0,i.useCallback)((function(n,t){e((0,S.HM)({pageName:"encryption",field:n,value:t}))}),[e]),Z=function(e){g((0,y.he)(p,e))};return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_endpoint",name:"aws_endpoint",onChange:function(e){v("awsEndpoint",e.target.value),Z("aws_endpoint")},label:"Endpoint",value:t,error:p.aws_endpoint||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_region",name:"aws_region",onChange:function(e){v("awsRegion",e.target.value),Z("aws_region")},label:"Region",value:a,error:p.aws_region||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_kmsKey",name:"aws_kmsKey",onChange:function(e){v("awsKMSKey",e.target.value)},label:"KMS Key",value:s})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Credentials"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_accessKey",name:"aws_accessKey",onChange:function(e){v("awsAccessKey",e.target.value),Z("aws_accessKey")},label:"Access Key",value:o,error:p.aws_accessKey||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_secretKey",name:"aws_secretKey",onChange:function(e){v("awsSecretKey",e.target.value),Z("aws_secretKey")},label:"Secret Key",value:u,error:p.aws_secretKey||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"aws_token",name:"aws_token",onChange:function(e){v("awsToken",e.target.value)},label:"Token",value:d})})]})})]})},oe=(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,h.TL)(),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.replicas})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.enableEncryption})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionType})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpProjectID})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpEndpoint})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientEmail})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientID})),v=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKeyID})),b=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKey})),_=(0,l.v9)((function(e){return e.createTenant.fields.encryption.enableCustomCertsForKES})),P=(0,l.v9)((function(e){return e.createTenant.fields.security.enableAutoCert})),I=(0,l.v9)((function(e){return e.createTenant.fields.security.enableTLS})),k=(0,l.v9)((function(e){return e.createTenant.certificates.minioServerCertificates})),w=(0,l.v9)((function(e){return e.createTenant.certificates.serverCertificate})),R=(0,l.v9)((function(e){return e.createTenant.certificates.clientCertificate})),F=(0,l.v9)((function(e){return e.createTenant.fields.security.enableCustomCerts})),D=(0,l.v9)((function(e){return e.createTenant.fields.encryption.kesSecurityContext})),G=(0,i.useState)({}),K=(0,r.Z)(G,2),E=K[0],L=K[1],O=!1;I&&(P||k&&k.filter((function(e){return e.encoded_key&&e.encoded_cert})).length>0)&&(O=!0);var z=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"encryption",field:e,value:n}))}),[t]),M=function(e){L((0,y.he)(E,e))};return(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,x.Z)(e),[{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:D.runAsUser,customValidation:""===D.runAsUser||parseInt(D.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:D.runAsGroup,customValidation:""===D.runAsGroup||parseInt(D.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:D.fsGroup,customValidation:""===D.fsGroup||parseInt(D.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]),F&&(e=[].concat((0,x.Z)(e),[{fieldKey:"serverKey",required:!P,value:w.encoded_key},{fieldKey:"serverCert",required:!P,value:w.encoded_cert},{fieldKey:"clientKey",required:!P,value:R.encoded_key},{fieldKey:"clientCert",required:!P,value:R.encoded_cert}])));var n=(0,j.R)(e);t((0,S.NO)({pageName:"encryption",valid:0===Object.keys(n).length})),L(n)}),[o,u,d,m,f,p,v,b,t,P,F,w.encoded_key,w.encoded_cert,R.encoded_key,R.encoded_cert,D,s]),(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,A.jsx)(c.ZP,{item:!0,xs:!0,children:(0,A.jsx)(Q,{children:"Encryption"})}),(0,A.jsx)(c.ZP,{item:!0,xs:4,justifyContent:"end",textAlign:"right",children:(0,A.jsx)(Z.Z,{label:"",indicatorLabels:["Enabled","Disabled"],checked:o,value:"tenant_encryption",id:"tenant-encryption",name:"tenant-encryption",onChange:function(e){var n=e.target.checked;z("enableEncryption",n)},description:"",disabled:!O})})]}),(0,A.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.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,A.jsx)(c.ZP,{xs:12,children:(0,A.jsx)("hr",{className:n.hrClass})}),o&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.encryptionTypeOptions,children:(0,A.jsx)(T.Z,{currentSelection:u,id:"encryptionType",name:"encryptionType",label:"Encryption Options",onChange:function(e){z("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"===u&&(0,A.jsx)(J,{}),"azure"===u&&(0,A.jsx)(ee,{}),"gcp"===u&&(0,A.jsx)(te,{}),"aws"===u&&(0,A.jsx)(se,{}),"gemalto"===u&&(0,A.jsx)(ae,{}),(0,A.jsx)("div",{className:n.headerElement,children:(0,A.jsx)("h4",{className:n.h3Section,children:"Additional Configurations"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(Z.Z,{value:"enableCustomCertsForKES",id:"enableCustomCertsForKES",name:"enableCustomCertsForKES",checked:_||!P,onChange:function(e){var n=e.target.checked;z("enableCustomCertsForKES",n)},label:"Custom Certificates",disabled:!P})}),(_||!P)&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{container:!0,children:(0,A.jsx)(c.ZP,{item:!0,xs:12,style:{marginBottom:15},children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Encryption Service Certificates"}),(0,A.jsx)(q.Z,{onChange:function(e,n){t((0,S.$1)({key:"key",fileName:n,value:e})),M("serverKey")},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",error:E.serverKey||"",value:w.key,required:!P}),(0,A.jsx)(q.Z,{onChange:function(e,n){t((0,S.$1)({key:"cert",fileName:n,value:e})),M("serverCert")},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",error:E.serverCert||"",value:w.cert,required:!P})]})})}),(0,A.jsx)(c.ZP,{container:!0,style:{marginBottom:15},children:(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"Mutual TLS authentication with MinIO"}),(0,A.jsx)(q.Z,{onChange:function(e,n){t((0,S.BI)({key:"key",fileName:n,value:e})),M("clientKey")},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",error:E.clientKey||"",value:R.key,required:!P}),(0,A.jsx)(q.Z,{onChange:function(e,n){t((0,S.BI)({key:"cert",fileName:n,value:e})),M("clientCert")},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",error:E.clientCert||"",value:R.cert,required:!P})]})})})]}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,classes:n.formFieldRow,children:(0,A.jsx)(C.Z,{type:"number",min:"1",id:"replicas",name:"replicas",onChange:function(e){z("replicas",e.target.value),M("replicas")},label:"Replicas",value:s,required:!0,error:E.replicas||""})}),(0,A.jsxs)("fieldset",{className:n.fieldGroup,style:{marginTop:15},children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for KES pods"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.kesSecurityContext,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveContainer),children:[(0,A.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,A.jsx)(C.Z,{type:"number",id:"kes_securityContext_runAsUser",name:"kes_securityContext_runAsUser",onChange:function(e){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsUser:e.target.value})),M("kes_securityContext_runAsUser")},label:"Run As User",value:D.runAsUser,required:!0,error:E.kes_securityContext_runAsUser||"",min:"0"})}),(0,A.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,A.jsx)(C.Z,{type:"number",id:"kes_securityContext_runAsGroup",name:"kes_securityContext_runAsGroup",onChange:function(e){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsGroup:e.target.value})),M("kes_securityContext_runAsGroup")},label:"Run As Group",value:D.runAsGroup,required:!0,error:E.kes_securityContext_runAsGroup||"",min:"0"})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.kesSecurityContext,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveContainer),children:[(0,A.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,A.jsx)(C.Z,{type:"number",id:"kes_securityContext_fsGroup",name:"kes_securityContext_fsGroup",onChange:function(e){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{fsGroup:e.target.value})),M("kes_securityContext_fsGroup")},label:"FsGroup",value:D.fsGroup,required:!0,error:E.kes_securityContext_fsGroup||"",min:"0"})}),(0,A.jsx)("div",{className:"".concat(n.formFieldRow," ").concat(n.rightSpacer),children:(0,A.jsx)(N.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:D.fsGroupChangePolicy,onChange:function(e){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(Z.Z,{value:"kesSecurityContextRunAsNonRoot",id:"kes_securityContext_runAsNonRoot",name:"kes_securityContext_runAsNonRoot",checked:D.runAsNonRoot,onChange:function(e){var n=e.target.checked;z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})]})]})]})})),le=t(4942),ce=t(81207),ue=t(47919),de=t(45660),me=t(87995),fe=(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,h.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],b=p[1],P=(0,i.useState)(!0),I=(0,r.Z)(P,2),k=I[0],w=I[1],R=(0,i.useState)({}),F=(0,r.Z)(R,2),D=F[0],G=F[1],K=(0,i.useState)([]),E=(0,r.Z)(K,2),L=E[0],O=E[1],z=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"affinity",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){k&&ce.Z.invoke("GET","/api/v1/nodes/labels").then((function(e){w(!1),G(e);var n=[];for(var t in e)n.push({label:t,value:t});O(n)})).catch((function(e){w(!1),t((0,me.zb)(e)),G({})}))}),[t,k]),(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("&");z("nodeSelectorLabels",e)}}),[d,z]),(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,x.Z)(e),[{fieldKey:"labels",required:!0,value:o,customValidation:!n,customValidationMessage:"You need to add at least one label key-pair"}])}var a=(0,j.R)(e);t((0,S.NO)({pageName:"affinity",valid:0===Object.keys(a).length})),b(a)}),[t,s,o]);var M=function(e,n,r){var i=(0,a.Z)((0,a.Z)({},m[e]),{},(0,le.Z)({},n,r));t((0,S.iU)({index:e,tolerationValue:i}))};return(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)("div",{className:n.headerElement,children:[(0,A.jsx)("h3",{className:n.h3Section,children:"Pod Placement"}),(0,A.jsx)("span",{className:n.descriptionText,children:"Configure how pods will be assigned to nodes"})]}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.affinityConfigField,children:(0,A.jsxs)(c.ZP,{item:!0,className:n.affinityFieldLabel,children:[(0,A.jsx)("div",{className:n.label,children:"Type"}),(0,A.jsx)("div",{className:"".concat(n.descriptionText," ").concat(n.affinityHelpText),children:"MinIO supports multiple configurations for Pod Affinity"}),(0,A.jsx)(c.ZP,{item:!0,className:n.radioField,children:(0,A.jsx)(T.Z,{currentSelection:s,id:"affinity-options",name:"affinity-options",label:" ",onChange:function(e){z("podAffinity",e.target.value)},selectorOptions:[{label:"None",value:"none"},{label:"Default (Pod Anti-Affinity)",value:"default"},{label:"Node Selector",value:"nodeSelector"}]})})]})}),"nodeSelector"===s&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(Z.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;z("withPodAntiAffinity",n)},label:"With Pod Anti-Affinity"})}),(0,A.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,A.jsx)("h3",{children:"Labels"}),(0,A.jsx)("span",{className:n.error,children:y.labels}),(0,A.jsx)(c.ZP,{container:!0,children:d&&d.map((function(e,r){return(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.affinityRow,children:[(0,A.jsxs)(c.ZP,{item:!0,xs:5,className:n.affinityLabelKey,children:[L.length>0&&(0,A.jsx)(N.Z,{onChange:function(e){var n=e.target.value,a={key:n,value:D[n][0]},i=(0,x.Z)(d);i[r]=a,t((0,S.i$)(i))},id:"select-access-policy",name:"select-access-policy",label:"",value:e.key,options:L}),0===L.length&&(0,A.jsx)(C.Z,{id:"nodeselector-key-".concat(r.toString()),label:"",name:"nodeselector-".concat(r.toString()),value:e.key,onChange:function(e){var n=(0,x.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,S.i$)(n))},index:r,placeholder:"Key"})]}),(0,A.jsxs)(c.ZP,{item:!0,xs:5,className:n.affinityLabelValue,children:[L.length>0&&(0,A.jsx)(N.Z,{onChange:function(e){var n=(0,x.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,S.i$)(n))},id:"select-access-policy",name:"select-access-policy",label:"",value:e.value,options:D[e.key]?D[e.key].map((function(e){return{label:e,value:e}})):[]}),0===L.length&&(0,A.jsx)(C.Z,{id:"nodeselector-value-".concat(r.toString()),label:"",name:"nodeselector-".concat(r.toString()),value:e.value,onChange:function(e){var n=(0,x.Z)(d);n[r]={key:n[r].key,value:e.target.value},t((0,S.i$)(n))},index:r,placeholder:"value"})]}),(0,A.jsxs)(c.ZP,{item:!0,xs:2,className:n.rowActions,children:[(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){var e=(0,x.Z)(d);L.length>0?e.push({key:L[0].value,value:D[L[0].value][0]}):e.push({key:"",value:""}),t((0,S.i$)(e))},disabled:r!==d.length-1,children:(0,A.jsx)(ue.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){var e=d.filter((function(e,n){return n!==r}));t((0,S.i$)(e))},disabled:d.length<=1,children:(0,A.jsx)(_.Z,{})})})]})]},"affinity-keyVal-".concat(r.toString()))}))})]})]}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.affinityConfigField,children:(0,A.jsxs)(c.ZP,{item:!0,className:n.affinityFieldLabel,children:[(0,A.jsx)("h3",{children:"Tolerations"}),(0,A.jsx)("span",{className:n.error,children:y.tolerations}),(0,A.jsx)(c.ZP,{container:!0,children:m&&m.map((function(e,r){var a;return(0,A.jsxs)(c.ZP,{item:!0,xs:12,className:n.affinityRow,children:[(0,A.jsx)(de.Z,{effect:e.effect,onEffectChange:function(e){M(r,"effect",e)},tolerationKey:e.key,onTolerationKeyChange:function(e){M(r,"key",e)},operator:e.operator,onOperatorChange:function(e){M(r,"operator",e)},value:e.value,onValueChange:function(e){M(r,"value",e)},tolerationSeconds:(null===(a=e.tolerationSeconds)||void 0===a?void 0:a.seconds)||0,onSecondsChange:function(e){M(r,"tolerationSeconds",{seconds:e})},index:r}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){t((0,S.ly)())},disabled:r!==m.length-1,children:(0,A.jsx)(ue.Z,{})})}),(0,A.jsx)("div",{className:n.overlayAction,children:(0,A.jsx)(v.Z,{size:"small",onClick:function(){return t((0,S.JX)(r))},disabled:m.length<=1,children:(0,A.jsx)(_.Z,{})})})]},"affinity-keyVal-".concat(r.toString()))}))})]})})]})})),he=t(32291),xe=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.DF),m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,h.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})),b=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchVolumeSize})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusVolumeSize})),N=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchSelectedStorageClass})),P=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchImage})),T=(0,l.v9)((function(e){return e.createTenant.fields.configure.kesImage})),I=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresImage})),k=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresInitImage})),w=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSelectedStorageClass})),R=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusImage})),F=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSidecarImage})),D=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusInitImage})),G=(0,i.useState)({}),K=(0,r.Z)(G,2),E=K[0],L=K[1],O=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];f&&(e=[].concat((0,x.Z)(e),[{fieldKey:"prometheus_storage_class",required:!0,value:w,customValidation:""===w,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,x.Z)(e),[{fieldKey:"log_search_storage_class",required:!0,value:N,customValidation:""===N,customValidationMessage:"Field cannot be empty"},{fieldKey:"log_search_volume_size",required:!0,value:b,customValidation:""===b||parseInt(b)<=0,customValidationMessage:"Volume size must be present and be greatter than 0"}])),a&&(e=[].concat((0,x.Z)(e),[{fieldKey:"image",required:!1,value:s,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/minio:VERSION'"},{fieldKey:"logSearchImage",required:!1,value:P,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/operator:VERSION'"},{fieldKey:"kesImage",required:!1,value:T,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"},{fieldKey:"logSearchPostgresImage",required:!1,value:I,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/postgres:VERSION'"},{fieldKey:"logSearchPostgresInitImage",required:!1,value:k,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"},{fieldKey:"prometheusImage",required:!1,value:R,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/prometheus:VERSION'"},{fieldKey:"prometheusSidecarImage",required:!1,value:F,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'project/container:VERSION'"},{fieldKey:"prometheusInitImage",required:!1,value:D,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"}]),o&&(e=[].concat((0,x.Z)(e),[{fieldKey:"registry",required:!0,value:u},{fieldKey:"registryUsername",required:!0,value:d},{fieldKey:"registryPassword",required:!0,value:m}])));var n=(0,j.R)(e);t((0,S.NO)({pageName:"configure",valid:0===Object.keys(n).length})),L(n)}),[a,s,P,T,I,k,R,F,D,o,u,d,m,t,f,p,v,w,_,N,b]);var z=function(e){L((0,y.he)(E,e))};return(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)("div",{className:n.headerElement,children:[(0,A.jsx)("h3",{className:n.h3Section,children:"Container Images"}),(0,A.jsx)("span",{className:n.descriptionText,children:"Specify the container images used by the Tenant and it's features."})]}),(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"image",name:"image",onChange:function(e){O("imageName",e.target.value),z("image")},label:"MinIO",value:s,error:E.image||"",placeholder:"minio/minio:RELEASE.2022-02-26T02-54-46Z"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"kesImage",name:"kesImage",onChange:function(e){O("kesImage",e.target.value),z("kesImage")},label:"KES",value:T,error:E.kesImage||"",placeholder:"minio/kes:v0.17.6"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)("h4",{children:"Log Search"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"logSearchImage",name:"logSearchImage",onChange:function(e){O("logSearchImage",e.target.value),z("logSearchImage")},label:"API",value:P,error:E.logSearchImage||"",placeholder:"minio/operator:v4.4.22"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"logSearchPostgresImage",name:"logSearchPostgresImage",onChange:function(e){O("logSearchPostgresImage",e.target.value),z("logSearchPostgresImage")},label:"PostgreSQL",value:I,error:E.logSearchPostgresImage||"",placeholder:"library/postgres:13"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"logSearchPostgresInitImage",name:"logSearchPostgresInitImage",onChange:function(e){O("logSearchPostgresInitImage",e.target.value),z("logSearchPostgresInitImage")},label:"PostgreSQL Init",value:k,error:E.logSearchPostgresInitImage||"",placeholder:"library/busybox:1.33.1"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)("h4",{children:"Monitoring"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"prometheusImage",name:"prometheusImage",onChange:function(e){O("prometheusImage",e.target.value),z("prometheusImage")},label:"Prometheus",value:R,error:E.prometheusImage||"",placeholder:"quay.io/prometheus/prometheus:latest"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"prometheusSidecarImage",name:"prometheusSidecarImage",onChange:function(e){O("prometheusSidecarImage",e.target.value),z("prometheusSidecarImage")},label:"Prometheus Sidecar",value:F,error:E.prometheusSidecarImage||"",placeholder:"library/alpine:latest"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"prometheusInitImage",name:"prometheusInitImage",onChange:function(e){O("prometheusInitImage",e.target.value),z("prometheusInitImage")},label:"Prometheus Init",value:D,error:E.prometheusInitImage||"",placeholder:"library/busybox:1.33.1"})})]}),a&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)("h4",{children:"Custom Container Registry"})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(Z.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,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"registry",name:"registry",onChange:function(e){O("imageRegistry",e.target.value)},label:"Endpoint",value:u,error:E.registry||"",placeholder:"https://index.docker.io/v1/",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"registryUsername",name:"registryUsername",onChange:function(e){O("imageRegistryUsername",e.target.value)},label:"Username",value:d,error:E.registryUsername||"",required:!0})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(C.Z,{id:"registryPassword",name:"registryPassword",onChange:function(e){O("imageRegistryPassword",e.target.value)},label:"Password",value:m,error:E.registryPassword||"",required:!0})})]})]})})),pe=t(74794),ge=t(84669),ve=t(79836),ye=t(53382),je=t(53994),Ze=t(35855),Ce=t(45248),be=t(94721),_e=(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,A.jsxs)("div",{className:n.root,children:[(0,A.jsx)("h4",{children:"Resource Allocation"}),(0,A.jsx)(be.Z,{}),(0,A.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,A.jsxs)(ye.Z,{children:[(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Number of Servers"}),(0,A.jsx)(je.Z,{align:"right",children:parseInt(t)>0?t:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Drives per Server"}),(0,A.jsx)(je.Z,{align:"right",children:s?s.disks:"-"})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Drive Capacity"}),(0,A.jsx)(je.Z,{align:"right",children:s?(0,Ce.ae)(s.pvSize):"-"})]})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Total Volumes"}),(0,A.jsx)(je.Z,{align:"right",children:s?s.persistentVolumes:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Memory per Node"}),(0,A.jsxs)(je.Z,{align:"right",children:[r," Gi"]})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"CPU Selection"}),(0,A.jsx)(je.Z,{style:{borderBottom:0},align:"right",children:c})]})]})]})}),0===o.error&&d&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("h4",{children:"Erasure Code Configuration"}),(0,A.jsx)(be.Z,{}),(0,A.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,A.jsxs)(ye.Z,{children:[(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"EC Parity"}),(0,A.jsx)(je.Z,{align:"right",children:""!==a?a:"-"})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Raw Capacity"}),(0,A.jsx)(je.Z,{align:"right",children:(0,Ce.ae)(o.rawCapacity)})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Usable Capacity"}),(0,A.jsx)(je.Z,{align:"right",children:(0,Ce.ae)(d.maxCapacity)})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"Server Failures Tolerated"}),(0,A.jsx)(je.Z,{style:{borderBottom:0},align:"right",children:s?Math.floor(d.maxFailureTolerations/s.disks):"-"})]})]})})]}),""!==u.typeSelection&&""!==u.storageClass&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("h4",{children:"Single Instance Configuration"}),(0,A.jsx)(be.Z,{}),(0,A.jsx)(ve.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,A.jsxs)(ye.Z,{children:[(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"CPU"}),(0,A.jsx)(je.Z,{align:"right",children:0!==u.CPU?u.CPU:"-"})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Memory"}),(0,A.jsx)(je.Z,{align:"right",children:0!==u.memory?"".concat(u.memory," Gi"):"-"})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{scope:"row",children:"Drives per Server"}),(0,A.jsx)(je.Z,{align:"right",children:0!==u.drivesPerServer?"".concat(u.drivesPerServer):"-"})]}),(0,A.jsxs)(Ze.Z,{children:[(0,A.jsx)(je.Z,{style:{borderBottom:0},scope:"row",children:"Drive Size"}),(0,A.jsxs)(je.Z,{style:{borderBottom:0},align:"right",children:[u.driveSize.driveSize,u.driveSize.sizeUnit]})]})]})})]})]})})),Se=t(19720),Ne=t(45884),Ae=t(46078),Pe=t(51691),Te=t(23508),Ie=t(38734),ke=t(98222),we=(0,w.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))})),Re=function(){var e=(0,h.TL)(),n=we(),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,A.jsx)(Te.Z,{title:"New namespace",confirmText:"Create",confirmButtonProps:{variant:"callAction"},isOpen:a,titleIcon:(0,A.jsx)(Ie.EjK,{}),isLoading:r,onConfirm:function(){e((0,ke.QD)())},onClose:function(){e((0,S.pb)())},confirmationContent:(0,A.jsxs)(i.Fragment,{children:[r&&(0,A.jsx)(u.Z,{}),(0,A.jsxs)(Pe.Z,{children:["Are you sure you want to add a namespace called",(0,A.jsx)("br",{}),(0,A.jsx)("b",{className:n.wrapText,children:t}),"?"]})]})})},Fe=t(48573),De=t.n(Fe),Ge=function(e){e.formToRender;var n=(0,h.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 De()((function(){n((0,ke.IO)())}),500)}),[n]);(0,i.useEffect)((function(){if(""!==t)return o(),o.cancel}),[o,t]);return(0,A.jsxs)(i.Fragment,{children:[s&&(0,A.jsx)(Re,{}),(0,A.jsx)(C.Z,{id:"namespace",name:"namespace",onChange:function(e){n((0,S.Zx)(e.target.value))},label:"Namespace",value:t,error:a||"",overlayId:"add-namespace",overlayIcon:r?(0,A.jsx)(ue.Z,{}):null,overlayAction:function(){n((0,S.Oj)())},required:!0})]})},Ke=function(){var e=(0,h.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,A.jsx)(C.Z,{id:"tenant-name",name:"tenant-name",onChange:function(n){e((0,S.V7)(n.target.value))},label:"Name",value:n,required:!0,error:t||""})},Ee=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({sizePreview:{position:"fixed",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,h.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)(Ae.$4),m=(0,i.useCallback)((function(e,n){r((0,S.HM)({pageName:"nameTenant",field:e,value:n}))}),[r]);return(0,i.useEffect)((function(){var e=t===Ne.cy.default&&u.length>0||t!==Ne.cy.default&&""!==s;r((0,S.NO)({pageName:"nameTenant",valid:e}))}),[u,r,s,t]),(0,A.jsx)(i.Fragment,{children:(0,A.jsxs)(c.ZP,{container:!0,children:[(0,A.jsx)(c.ZP,{item:!0,sx:{width:"calc(100% - 300px)"},children:(0,A.jsx)(g.Z,{className:n.paperWrapper,sx:{minHeight:550},children:(0,A.jsxs)(c.ZP,{container:!0,children:[(0,A.jsxs)(c.ZP,{item:!0,xs:12,children:[(0,A.jsxs)("div",{className:n.headerElement,children:[(0,A.jsx)("h3",{className:n.h3Section,children:"Name"}),(0,A.jsx)("span",{className:n.descriptionText,children:"How would you like to name this new tenant?"})]}),(0,A.jsx)("div",{className:n.formFieldRow,children:(0,A.jsx)(Ke,{})})]}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(Ge,{formToRender:t})}),t===Ne.cy.default?(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(N.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,A.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,A.jsx)(N.Z,{id:"storage_type",name:"storage_type",onChange:function(e){r((0,S.Qy)({storageType:e.target.value,features:d}))},label:o()(Ne.Hd,"".concat(t,".variantSelectorLabel"),"Storage Type"),value:s,options:o()(Ne.Hd,"".concat(t,".variantSelectorValues"),[])})}),t===Ne.cy.default?(0,A.jsx)(Se.Z,{}):o()(Ne.Hd,"".concat(t,".sizingComponent"),null)]})})}),(0,A.jsx)(c.ZP,{item:!0,children:(0,A.jsx)("div",{className:n.sizePreview,children:(0,A.jsx)(_e,{})})})]})})})),Le=function(){var e=(0,l.v9)(Ae.$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=Ne.cy.default;e&&0!==e.length&&Object.keys(Ne.I8).forEach((function(t){e.includes(t)&&(n=o()(Ne.I8,t,Ne.cy.default))}));s(n)}),[e]),null===a?null:(0,A.jsx)(Ee,{formToRender:a})},Oe=t(56578),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}}},logSearchEnabledFields:{marginLeft:20,padding:10,width:"90%",margin:"auto"},fieldSpaceTop:{marginTop:15}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,h.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})),b=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchSecurityContext})),P=(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,x.Z)(s)),F=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,x.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:P.runAsUser,customValidation:""===P.runAsUser||parseInt(P.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"postgres_securityContext_runAsGroup",required:!0,value:_.runAsGroup,customValidation:""===P.runAsGroup||parseInt(P.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"postgres_securityContext_fsGroup",required:!0,value:P.fsGroup,customValidation:""===P.fsGroup||parseInt(P.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]));var n=(0,j.R)(e);t((0,S.NO)({pageName:"configure",valid:0===Object.keys(n).length})),w(n)}),[m,f,p,t,o,d,u,b,_,P]),(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,y.he)(k,e))};return(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,A.jsx)(c.ZP,{item:!0,xs:!0,children:(0,A.jsx)(Q,{children:"Audit Log"})}),(0,A.jsx)(c.ZP,{item:!0,xs:4,children:(0,A.jsx)(Z.Z,{value:"enableLogging",id:"enableLogging",name:"enableLogging",checked:o,onChange:function(e){var n=e.target.checked;F("logSearchEnabled",n)},indicatorLabels:["Enabled","Disabled"]})})]}),(0,A.jsxs)(c.ZP,{container:!0,spacing:1,children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("span",{className:n.descriptionText,children:"Deploys a small PostgreSQL database and stores access logs of all calls into the tenant."})}),(0,A.jsx)(c.ZP,{xs:12,children:(0,A.jsx)("hr",{className:n.hrClass})}),o&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(N.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,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(C.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,A.jsx)(Oe.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,A.jsxs)("fieldset",{className:"".concat(n.fieldGroup," ").concat(n.fieldSpaceTop),children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for LogSearch"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(N.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,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(Z.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,A.jsxs)("fieldset",{className:n.fieldGroup,children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"SecurityContext for PostgreSQL"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.Z,{type:"number",id:"postgres_securityContext_runAsUser",name:"postgres_securityContext_runAsUser",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},P),{},{runAsUser:e.target.value})),D("postgres_securityContext_runAsUser")},label:"Run As User",value:P.runAsUser,required:!0,error:k.postgres_securityContext_runAsUser||"",min:"0"})}),(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.Z,{type:"number",id:"postgres_securityContext_runAsGroup",name:"postgres_securityContext_runAsGroup",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},P),{},{runAsGroup:e.target.value})),D("postgres_securityContext_runAsGroup")},label:"Run As Group",value:P.runAsGroup,required:!0,error:k.postgres_securityContext_runAsGroup||"",min:"0"})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.Z,{type:"number",id:"postgres_securityContext_fsGroup",name:"postgres_securityContext_fsGroup",onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},P),{},{fsGroup:e.target.value})),D("postgres_securityContext_fsGroup")},label:"FsGroup",value:P.fsGroup,required:!0,error:k.postgres_securityContext_fsGroup||"",min:"0"})}),(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(N.Z,{label:"FsGroupChangePolicy",id:"securityContext_fsGroupChangePolicy",name:"securityContext_fsGroupChangePolicy",value:P.fsGroupChangePolicy,onChange:function(e){F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},P),{},{fsGroupChangePolicy:e.target.value}))},options:[{label:"Always",value:"Always"},{label:"OnRootMismatch",value:"OnRootMismatch"}]})})]})}),(0,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(Z.Z,{value:"postgresSecurityContextRunAsNonRoot",id:"postgres_securityContext_runAsNonRoot",name:"postgres_securityContext_runAsNonRoot",checked:P.runAsNonRoot,onChange:function(e){var n=e.target.checked;F("logSearchPostgresSecurityContext",(0,a.Z)((0,a.Z)({},P),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})]})]})})),Me=(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},prometheusEnabledFields:{marginLeft:20,padding:10,width:"90%",margin:"auto"}},m.oO),m.AK))}))((function(e){var n=e.classes,t=(0,h.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})),b=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),_=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSecurityContext})),P=(0,i.useState)({}),T=(0,r.Z)(P,2),I=T[0],k=T[1],w=[{label:"Default",value:"default"}].concat((0,x.Z)(s)),R=(0,i.useCallback)((function(e,n){t((0,S.HM)({pageName:"configure",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,x.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,j.R)(e);t((0,S.NO)({pageName:"configure",valid:0===Object.keys(n).length})),k(n)}),[m,f,p,t,o,d,u,b,_]),(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,y.he)(I,e))};return(0,A.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,A.jsxs)(c.ZP,{container:!0,alignItems:"center",children:[(0,A.jsx)(c.ZP,{item:!0,xs:!0,children:(0,A.jsx)(Q,{children:"Monitoring"})}),(0,A.jsx)(c.ZP,{item:!0,xs:4,children:(0,A.jsx)(Z.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,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("span",{className:n.descriptionText,children:"A small Prometheus will be deployed to keep metrics about the tenant."})}),(0,A.jsx)(c.ZP,{xs:12,children:(0,A.jsx)("hr",{className:n.hrClass})}),(0,A.jsx)(c.ZP,{container:!0,spacing:1,children:o&&(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(N.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,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)("div",{className:n.multiContainer,children:(0,A.jsx)(C.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,A.jsx)(Oe.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,A.jsxs)("fieldset",{className:"".concat(n.fieldGroup," ").concat(n.fieldSpaceTop),children:[(0,A.jsx)("legend",{className:n.descriptionText,children:"SecurityContext"}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsxs)("div",{className:"".concat(n.multiContainer," ").concat(n.responsiveSectionItem),children:[(0,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(C.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,A.jsx)("div",{className:n.configSectionItem,children:(0,A.jsx)(N.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,A.jsx)("br",{}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:n.configSectionItem,children:(0,A.jsx)("div",{className:"".concat(n.multiContainer," ").concat(n.fieldSpaceTop),children:(0,A.jsx)(Z.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"})})})]})]})})]})})),Ue=t(23804),qe=t(75952),Ve=["nameTenant","tenantSize","configure","affinity","identityProvider","security","encryption"],Be=t(84218),He=function(){var e=(0,h.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&&Ve.every((function(e){return t.includes(e)}));return(0,A.jsx)(qe.z,{id:"wizard-button-Create",variant:"callAction",color:"primary",onClick:function(){e((0,Be.e)())},disabled:!a,label:"Create"},"button-AddTenant-Create")},We=t(37798),$e=t(16871),Qe=function(){var e=(0,h.TL)(),n=(0,$e.s0)(),t=(0,l.v9)((function(e){return e.createTenant.showNewCredentials})),r=(0,l.v9)((function(e){return e.createTenant.createdAccount}));return(0,A.jsx)(i.Fragment,{children:t&&(0,A.jsx)(We.default,{newServiceAccount:r,open:t,closeModal:function(){e((0,S.dS)()),n("/tenants")},entity:"Tenant"})})},Ye=(0,w.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))})),Je=function(){var e=(0,h.TL)(),n=(0,$e.s0)(),t=Ye(),a=(0,l.v9)(Ae.$4),s=(0,l.v9)((function(e){return e.createTenant.addingTenant})),d=(0,i.useState)(null),m=(0,r.Z)(d,2),x=m[0],p=m[1];(0,i.useEffect)((function(){var e=Ne.cy.default;a&&0!==a.length&&Object.keys(Ne.I8).forEach((function(n){a.includes(n)&&(e=o()(Ne.I8,n,Ne.cy.default))}));p(e)}),[a]);var g={label:"Cancel",type:"other",enabled:!0,action:function(){e((0,S.dS)()),n("/tenants")}},v={componentRender:(0,A.jsx)(He,{},"create-tenant")},y=[{label:"Setup",componentRender:(0,A.jsx)(Le,{}),buttons:[g,v]},{label:"Configure",advancedOnly:!0,componentRender:(0,A.jsx)(P,{}),buttons:[g,v]},{label:"Images",advancedOnly:!0,componentRender:(0,A.jsx)(xe,{}),buttons:[g,v]},{label:"Pod Placement",advancedOnly:!0,componentRender:(0,A.jsx)(fe,{}),buttons:[g,v]},{label:"Identity Provider",advancedOnly:!0,componentRender:(0,A.jsx)(U,{}),buttons:[g,v]},{label:"Security",advancedOnly:!0,componentRender:(0,A.jsx)($,{}),buttons:[g,v]},{label:"Encryption",advancedOnly:!0,componentRender:(0,A.jsx)(oe,{}),buttons:[g,v]},{label:"Audit Log",advancedOnly:!0,componentRender:(0,A.jsx)(ze,{}),buttons:[g,v]},{label:"Monitoring",advancedOnly:!0,componentRender:(0,A.jsx)(Me,{}),buttons:[g,v]}];return(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)(Qe,{}),(0,A.jsx)(he.Z,{label:(0,A.jsx)(ge.Z,{to:"/tenants",label:"Tenants",executeOnClick:function(){e((0,S.dS)())}})}),(0,A.jsxs)(pe.Z,{children:[s&&(0,A.jsx)(c.ZP,{item:!0,xs:12,children:(0,A.jsx)(u.Z,{})}),(0,A.jsx)(c.ZP,{item:!0,xs:12,className:t.pageBox,children:(0,A.jsx)(f.Z,{wizardSteps:y})}),x===Ne.cy.aws&&(0,A.jsx)(c.ZP,{item:!0,xs:12,style:{marginTop:16},children:(0,A.jsx)(Ue.Z,{title:"EBS Volume Configuration.",iconComponent:(0,A.jsx)(Ie.idV,{}),help:(0,A.jsxs)(i.Fragment,{children:[(0,A.jsx)("b",{children:"Performance Optimized"}),": Uses the ",(0,A.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,A.jsx)("b",{children:"32Gi"}),".",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),(0,A.jsx)("b",{children:"Storage Optimized"}),": Uses the ",(0,A.jsx)("i",{children:"sc1"})," EBS storage class, however the minimum volume size for this type of EBS volume is \xa0",(0,A.jsx)("b",{children:"16Ti"})," to unlock their maximum throughput speed of 250Mi/s."]})})})]})]})}},68456:function(e,n,t){t.d(n,{QT:function(){return l},YH:function(){return c},mo:function(){return o}});var r=t(61889),a=t(98021),i=t(38734),s=t(80184),o=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(i.gyG,{width:"16px",height:"16px"})}),(0,s.jsx)(r.ZP,{item:!0,children:"Open ID"})]})},l=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(a.Z,{width:"16px",height:"16px"})}),(0,s.jsx)(r.ZP,{item:!0,children:"LDAP / Active Directory"})]})},c=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(i.oyc,{width:"16px",height:"16px"})}),(0,s.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})]})}))}}]);
-//# sourceMappingURL=839.94b8b36e.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/839.94b8b36e.chunk.js.map b/portal-ui/build/static/js/839.94b8b36e.chunk.js.map
deleted file mode 100644
index 72a55bbb6..000000000
--- a/portal-ui/build/static/js/839.94b8b36e.chunk.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/839.94b8b36e.chunk.js","mappings":"qKA0EA,KAAeA,EAAAA,EAAAA,IApDA,SAACC,GAAD,OACbC,EAAAA,EAAAA,GAAa,CACXC,KAAM,CACJC,OAAQ,oBACRC,aAAc,EACdC,gBAAiB,UACjBC,YAAa,GACbC,WAAY,GACZC,cAAe,GACfC,aAAc,IAEhBC,UAAW,CACTC,SAAU,GACVC,WAAY,OACZC,aAAc,GACdC,QAAS,OACTC,WAAY,SACZ,cAAe,CACbC,YAAa,GACbC,OAAQ,GACRC,MAAO,KAGXC,SAAU,CACRR,SAAU,GACVL,YAAa,IAzBJ,GAoDf,EAhBgB,SAAC,GAAuD,IAArDc,EAAoD,EAApDA,QAASC,EAA2C,EAA3CA,cAAeC,EAA4B,EAA5BA,MAAOC,EAAqB,EAArBA,KAChD,OACE,gBAAKC,UAAWJ,EAAQlB,KAAxB,UACE,UAAC,KAAD,CAAMuB,WAAS,EAAf,WACE,UAAC,KAAD,CAAMC,MAAI,EAACC,GAAI,GAAIH,UAAWJ,EAAQV,UAAtC,UACGW,EACAC,MAEH,SAAC,KAAD,CAAMI,MAAI,EAACC,GAAI,GAAIH,UAAWJ,EAAQD,SAAtC,SACGI,QAKV,G,4DChBD,IArCwB,SAACK,GACvB,OACE,iCACEC,MAAM,6BACNL,UAAS,WACTM,KAAM,eACNC,QAAQ,eACJH,GALN,eAOE,2BACE,qBAAUI,GAAG,qBAAb,UACE,iBACE,YAAU,sBACVF,KAAK,UACLG,EAAE,6BAIR,eACE,YAAU,aACVC,UAAU,kBACVC,SAAS,2BACTL,KAAK,UAJP,WAME,iBACE,YAAU,eACVG,EAAE,kZAEJ,iBACE,YAAU,eACVA,EAAE,kQAG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,iDADF,eACyC,+BADzC,gJAIY,gCAJZ,KAKE,mBACA,mBACA,6CAPF,eAOqC,+BAPrC,2FAUE,gCAVF,oEAoBf,C,yJC7MY6V,EAAkB,WAC7B,OACE,UAAC,KAAD,CAAM3mB,WAAS,EAAC4mB,UAAW,EAA3B,WACE,SAAC,KAAD,WACE,SAAC,MAAD,CAAUnnB,MAAO,OAAQD,OAAQ,YAEnC,SAAC,KAAD,CAAMS,MAAI,EAAV,uBAGL,EAEY4mB,EAAkB,WAC7B,OACE,UAAC,KAAD,CAAM7mB,WAAS,EAAC4mB,UAAW,EAA3B,WACE,SAAC,KAAD,WACE,SAAC,IAAD,CAAUnnB,MAAO,OAAQD,OAAQ,YAEnC,SAAC,KAAD,CAAMS,MAAI,EAAV,uCAGL,EAEY6mB,EAAqB,WAChC,OACE,UAAC,KAAD,CAAM9mB,WAAS,EAAC4mB,UAAW,EAA3B,WACE,SAAC,KAAD,WACE,SAAC,MAAD,CAAWnnB,MAAO,OAAQD,OAAQ,YAEpC,SAAC,KAAD,CAAMS,MAAI,EAAV,wBAGL,C,mFCjBD,KAAe3B,EAAAA,EAAAA,IA5BA,SAACC,GAAD,aACbC,EAAAA,EAAAA,GAAa,CACXuoB,WAAY,CACVrkB,OAAO,UAAAnE,EAAMyoB,eAAN,eAAe9gB,MAAM+gB,OAAQ,YAH3B,GA4Bf,EAfmB,SAAC,GAIK,IAHvBtnB,EAGsB,EAHtBA,QACAgJ,EAEsB,EAFtBA,aAEsB,IADtBue,UAAAA,OACsB,SACtB,OACE,UAAC,WAAD,WACGA,IAAa,mBACd,SAAC,IAAD,CAAY7e,UAAU,IAAInD,QAAQ,QAAQnF,UAAWJ,EAAQonB,WAA7D,SACGpe,MAIR,G","sources":["common/HelpBox.tsx","icons/CertificateIcon.tsx","screens/Console/Common/CredentialsPrompt/CredentialItem.tsx","screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx","screens/Console/Common/FormComponents/FileSelector/FileSelector.tsx","screens/Console/Common/FormComponents/FileSelector/utils.ts","screens/Console/Common/ModalWrapper/ModalWrapper.tsx","screens/Console/Common/TooltipWrapper/TooltipWrapper.tsx","screens/Console/Tenants/AddTenant/Steps/Configure.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPActiveDirectory.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPOpenID.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPBuiltIn.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider.tsx","screens/Console/Tenants/HelpBox/TLSHelpBox.tsx","screens/Console/Tenants/AddTenant/Steps/Security.tsx","screens/Console/Common/SectionH1.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/VaultKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/AzureKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/GCPKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/GemaltoKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/AWSKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption.tsx","screens/Console/Tenants/AddTenant/Steps/Affinity.tsx","screens/Console/Tenants/AddTenant/Steps/Images.tsx","screens/Console/Tenants/AddTenant/Steps/SizePreview.tsx","screens/Console/Tenants/AddTenant/Steps/helpers/AddNamespaceModal.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/NamespaceSelector.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/NameTenantMain.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/TenantResources.tsx","screens/Console/Tenants/AddTenant/Steps/ConfigLogSearch.tsx","screens/Console/Tenants/AddTenant/Steps/ConfigPrometheus.tsx","screens/Console/Tenants/AddTenant/common.ts","screens/Console/Tenants/AddTenant/CreateTenantButton.tsx","screens/Console/Tenants/AddTenant/NewTenantCredentials.tsx","screens/Console/Tenants/AddTenant/AddTenant.tsx","screens/Console/Tenants/LogoComponents.tsx","screens/shared/ErrorBlock.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n border: \"1px solid #E2E2E2\",\n borderRadius: 2,\n backgroundColor: \"#FBFAFA\",\n paddingLeft: 25,\n paddingTop: 31,\n paddingBottom: 21,\n paddingRight: 30,\n },\n leftItems: {\n fontSize: 16,\n fontWeight: \"bold\",\n marginBottom: 15,\n display: \"flex\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: 15,\n height: 28,\n width: 38,\n },\n },\n helpText: {\n fontSize: 16,\n paddingLeft: 5,\n },\n });\n\ninterface IHelpBox {\n classes: any;\n iconComponent: any;\n title: string;\n help: any;\n}\n\nconst HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst CertificateIcon = (props: SVGProps) => {\n return (\n \n );\n};\nexport default CertificateIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputAdornment, OutlinedInput } from \"@mui/material\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport { CopyIcon } from \"../../../../icons\";\nimport { fieldBasic } from \"../FormComponents/common/styleLibrary\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n container: {\n display: \"flex\",\n flexFlow: \"column\",\n padding: \"20px 0 8px 0\",\n },\n inputWithCopy: {\n \"& .MuiInputBase-root \": {\n width: \"100%\",\n background: \"#FBFAFA\",\n \"& .MuiInputBase-input\": {\n height: \".8rem\",\n },\n \"& .MuiInputAdornment-positionEnd\": {\n marginRight: \".5rem\",\n \"& .MuiButtonBase-root\": {\n height: \"2rem\",\n },\n },\n },\n \"& .MuiButtonBase-root .min-icon\": {\n width: \".8rem\",\n height: \".8rem\",\n },\n },\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontSize: \".8rem\",\n },\n });\n\nconst CredentialItem = ({\n label = \"\",\n value = \"\",\n classes = {},\n}: {\n label: string;\n value: string;\n classes: any;\n}) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(CredentialItem);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport get from \"lodash/get\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { NewServiceAccount } from \"./types\";\nimport ModalWrapper from \"../ModalWrapper/ModalWrapper\";\nimport Grid from \"@mui/material/Grid\";\nimport CredentialItem from \"./CredentialItem\";\nimport WarnIcon from \"../../../../icons/WarnIcon\";\nimport { DownloadIcon, ServiceAccountCredentialsIcon } from \"../../../../icons\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n warningBlock: {\n color: \"red\",\n fontSize: \".85rem\",\n margin: \".5rem 0 .5rem 0\",\n display: \"flex\",\n alignItems: \"center\",\n \"& svg \": {\n marginRight: \".3rem\",\n height: 16,\n width: 16,\n },\n },\n credentialTitle: {\n padding: \".8rem 0 0 0\",\n fontWeight: 600,\n fontSize: \".9rem\",\n },\n buttonContainer: {\n display: \"flex\",\n justifyContent: \"flex-end\",\n marginTop: \"1rem\",\n },\n credentialsPanel: {\n overflowY: \"auto\",\n maxHeight: 350,\n },\n promptTitle: {\n display: \"flex\",\n alignItems: \"center\",\n },\n buttonSpacer: {\n marginRight: \".9rem\",\n },\n });\n\ninterface ICredentialsPromptProps {\n classes: any;\n newServiceAccount: NewServiceAccount | null;\n open: boolean;\n entity: string;\n closeModal: () => void;\n}\n\nconst download = (filename: string, text: string) => {\n let element = document.createElement(\"a\");\n element.setAttribute(\"href\", \"data:text/plain;charset=utf-8,\" + text);\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n document.body.removeChild(element);\n};\n\nconst CredentialsPrompt = ({\n classes,\n newServiceAccount,\n open,\n closeModal,\n entity,\n}: ICredentialsPromptProps) => {\n if (!newServiceAccount) {\n return null;\n }\n const consoleCreds = get(newServiceAccount, \"console\", null);\n const idp = get(newServiceAccount, \"idp\", false);\n\n const downloadImport = () => {\n let consoleExtras = {};\n\n if (consoleCreds) {\n if (!Array.isArray(consoleCreds)) {\n consoleExtras = {\n url: consoleCreds.url,\n accessKey: consoleCreds.accessKey,\n secretKey: consoleCreds.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n } else {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n url: itemMap.url,\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n });\n consoleExtras = cCreds[0];\n }\n } else {\n consoleExtras = {\n url: newServiceAccount.url,\n accessKey: newServiceAccount.accessKey,\n secretKey: newServiceAccount.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n }\n\n download(\n \"credentials.json\",\n JSON.stringify({\n ...consoleExtras,\n })\n );\n };\n\n const downloaddAllCredentials = () => {\n let allCredentials = {};\n if (\n consoleCreds &&\n Array.isArray(consoleCreds) &&\n consoleCreds.length > 1\n ) {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n };\n });\n allCredentials = cCreds;\n }\n download(\n \"all_credentials.json\",\n JSON.stringify({\n ...allCredentials,\n })\n );\n };\n\n return (\n {\n closeModal();\n }}\n title={\n
\n
New {entity} Created
\n
\n }\n titleIcon={}\n >\n \n \n A new {entity} has been created with the following details:\n {!idp && consoleCreds && (\n \n \n
\n Please Login via the configured external identity provider.\n
\n ) : (\n
\n \n \n Write these down, as this is the only time the secret will be\n displayed.\n \n
\n )}\n \n \n {!idp && (\n <>\n \n }\n variant=\"callAction\"\n />\n \n\n {Array.isArray(consoleCreds) && consoleCreds.length > 1 && (\n \n }\n variant=\"callAction\"\n color=\"primary\"\n />\n \n )}\n >\n )}\n \n \n \n );\n};\n\nexport default withStyles(styles)(CredentialsPrompt);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState } from \"react\";\nimport get from \"lodash/get\";\nimport { Grid, InputLabel, Tooltip } from \"@mui/material\";\nimport IconButton from \"@mui/material/IconButton\";\nimport AttachFileIcon from \"@mui/icons-material/AttachFile\";\nimport CancelIcon from \"@mui/icons-material/Cancel\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n fieldBasic,\n fileInputStyles,\n tooltipHelper,\n} from \"../common/styleLibrary\";\nimport { fileProcess } from \"./utils\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport ErrorBlock from \"../../../../shared/ErrorBlock\";\n\ninterface InputBoxProps {\n label: string;\n classes: any;\n onChange: (e: string, i: string) => void;\n id: string;\n name: string;\n disabled?: boolean;\n tooltip?: string;\n required?: boolean;\n error?: string;\n accept?: string;\n value?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n ...tooltipHelper,\n valueString: {\n maxWidth: 350,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n marginTop: 2,\n },\n fileInputField: {\n margin: \"13px 0\",\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n ...fileInputStyles,\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontWeight: \"normal\",\n },\n textBoxContainer: {\n ...fieldBasic.textBoxContainer,\n maxWidth: \"100%\",\n border: \"1px solid #eaeaea\",\n paddingLeft: \"15px\",\n },\n });\n\nconst FileSelector = ({\n label,\n classes,\n onChange,\n id,\n name,\n disabled = false,\n tooltip = \"\",\n required,\n error = \"\",\n accept = \"\",\n value = \"\",\n}: InputBoxProps) => {\n const [showFileSelector, setShowSelector] = useState(false);\n\n return (\n \n \n {label !== \"\" && (\n \n \n {label}\n {required ? \"*\" : \"\"}\n \n {tooltip !== \"\" && (\n
\n )}\n \n \n );\n};\n\nexport default withStyles(styles)(FileSelector);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nexport const fileProcess = (evt: any, callback: any) => {\n const file = evt.target.files[0];\n const reader = new FileReader();\n reader.readAsDataURL(file);\n\n reader.onload = () => {\n // reader.readAsDataURL(file) output will be something like: data:application/x-x509-ca-cert;base64,LS0tLS1CRUdJTiBDRVJUSU\n // we care only about the actual base64 part (everything after \"data:application/x-x509-ca-cert;base64,\")\n const fileBase64 = reader.result;\n if (fileBase64) {\n const fileArray = fileBase64.toString().split(\"base64,\");\n\n if (fileArray.length === 2) {\n callback(fileArray[1]);\n }\n }\n };\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Grid, IconButton, Paper, SelectChangeEvent } from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\n\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport RemoveIcon from \"../../../../../icons/RemoveIcon\";\nimport {\n addNewMinIODomain,\n isPageValid,\n removeMinIODomain,\n updateAddField,\n} from \"../createTenantSlice\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\n\ninterface IConfigureProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n configSectionItem: {\n marginRight: 15,\n marginBottom: 15,\n\n \"& .multiContainer\": {\n border: \"1px solid red\",\n },\n },\n tenantCustomizationFields: {\n marginLeft: 30, // 2nd Level(15+15)\n width: \"88%\",\n margin: \"auto\",\n },\n containerItem: {\n marginRight: 15,\n },\n fieldGroup: {\n ...createTenantCommon.fieldGroup,\n paddingTop: 15,\n marginBottom: 25,\n },\n responsiveSectionItem: {\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n alignItems: \"flex-start\",\n\n \"& div > div\": {\n marginBottom: 5,\n marginRight: 0,\n },\n },\n },\n wrapperContainer: {\n display: \"flex\",\n marginBottom: 15,\n },\n overlayAction: {\n marginLeft: 10,\n display: \"flex\",\n alignItems: \"center\",\n \"& svg\": {\n width: 15,\n height: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst Configure = ({ classes }: IConfigureProps) => {\n const dispatch = useAppDispatch();\n\n const exposeMinIO = useSelector(\n (state: AppState) => state.createTenant.fields.configure.exposeMinIO\n );\n const exposeConsole = useSelector(\n (state: AppState) => state.createTenant.fields.configure.exposeConsole\n );\n const setDomains = useSelector(\n (state: AppState) => state.createTenant.fields.configure.setDomains\n );\n const consoleDomain = useSelector(\n (state: AppState) => state.createTenant.fields.configure.consoleDomain\n );\n const minioDomains = useSelector(\n (state: AppState) => state.createTenant.fields.configure.minioDomains\n );\n const tenantCustom = useSelector(\n (state: AppState) => state.createTenant.fields.configure.tenantCustom\n );\n const tenantSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.tenantSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"configure\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n if (tenantCustom) {\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"tenant_securityContext_runAsUser\",\n required: true,\n value: tenantSecurityContext.runAsUser,\n customValidation:\n tenantSecurityContext.runAsUser === \"\" ||\n parseInt(tenantSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"tenant_securityContext_runAsGroup\",\n required: true,\n value: tenantSecurityContext.runAsGroup,\n customValidation:\n tenantSecurityContext.runAsGroup === \"\" ||\n parseInt(tenantSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"tenant_securityContext_fsGroup\",\n required: true,\n value: tenantSecurityContext.fsGroup,\n customValidation:\n tenantSecurityContext.fsGroup === \"\" ||\n parseInt(tenantSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n }\n\n if (setDomains) {\n const minioExtraValidations = minioDomains.map((validation, index) => {\n return {\n fieldKey: `minio-domain-${index.toString()}`,\n required: false,\n value: validation,\n pattern: /^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?$/,\n customPatternMessage:\n \"MinIO domain is not in the form of http|https://subdomain.domain\",\n };\n });\n\n customAccountValidation = [\n ...customAccountValidation,\n ...minioExtraValidations,\n {\n fieldKey: \"console_domain\",\n required: false,\n value: consoleDomain,\n pattern:\n /^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-./]*)?$/,\n customPatternMessage:\n \"Console domain is not in the form of http|https://subdomain.domain:port/subpath1/subpath2\",\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"configure\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n dispatch,\n tenantCustom,\n tenantSecurityContext,\n setDomains,\n consoleDomain,\n minioDomains,\n ]);\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n const updateMinIODomain = (value: string, index: number) => {\n const copyDomains = [...minioDomains];\n copyDomains[index] = value;\n\n updateField(\"minioDomains\", copyDomains);\n };\n\n return (\n \n
\n
Configure
\n \n Basic configurations for tenant management\n \n
\n
\n
Services
\n \n Whether the tenant's services should request an external IP via\n LoadBalancer service type.\n \n
\n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"exposeMinIO\", checked);\n }}\n label={\"Expose MinIO Service\"}\n />\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"exposeConsole\", checked);\n }}\n label={\"Expose Console Service\"}\n />\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"setDomains\", checked);\n }}\n label={\"Set Custom Domains\"}\n />\n \n {setDomains && (\n \n \n \n )}\n\n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"tenantCustom\", checked);\n }}\n label={\"Security Context\"}\n />\n \n {tenantCustom && (\n \n \n \n )}\n \n );\n};\n\nexport default withStyles(styles)(Configure);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Grid, IconButton, Tooltip, Typography } from \"@mui/material\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport FormSwitchWrapper from \"../../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport {\n addIDPADUsrAtIndex,\n isPageValid,\n removeIDPADUsrAtIndex,\n setIDPADUsrAtIndex,\n updateAddField,\n addIDPADGroupAtIndex,\n removeIDPADGroupAtIndex,\n setIDPADGroupAtIndex,\n} from \"../../createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { clearValidationError } from \"../../../utils\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport DeleteIcon from \"@mui/icons-material/Delete\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n adUserDnRows: {\n display: \"flex\",\n marginBottom: 10,\n },\n buttonTray: {\n marginLeft: 10,\n display: \"flex\",\n height: 38,\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n overlayAction: {\n marginLeft: 10,\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst IDPActiveDirectory = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const idpSelection = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.idpSelection\n );\n const ADURL = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.ADURL\n );\n const ADSkipTLS = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.ADSkipTLS\n );\n const ADServerInsecure = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADServerInsecure\n );\n const ADGroupSearchBaseDN = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADGroupSearchBaseDN\n );\n const ADGroupSearchFilter = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADGroupSearchFilter\n );\n const ADUserDNs = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.ADUserDNs\n );\n const ADGroupDNs = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.ADGroupDNs\n );\n const ADLookupBindDN = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADLookupBindDN\n );\n const ADLookupBindPassword = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADLookupBindPassword\n );\n const ADUserDNSearchBaseDN = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADUserDNSearchBaseDN\n );\n const ADUserDNSearchFilter = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADUserDNSearchFilter\n );\n const ADServerStartTLS = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.ADServerStartTLS\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({\n pageName: \"identityProvider\",\n field: field,\n value: value,\n })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n // Validation\n useEffect(() => {\n let customIDPValidation: IValidation[] = [];\n\n if (idpSelection === \"AD\") {\n customIDPValidation = [\n ...customIDPValidation,\n {\n fieldKey: \"AD_URL\",\n required: true,\n value: ADURL,\n },\n {\n fieldKey: \"ad_lookupBindDN\",\n required: true,\n value: ADLookupBindDN,\n },\n ];\n }\n\n const commonVal = commonFormValidation(customIDPValidation);\n\n dispatch(\n isPageValid({\n pageName: \"identityProvider\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n ADLookupBindDN,\n idpSelection,\n ADURL,\n ADGroupSearchBaseDN,\n ADGroupSearchFilter,\n ADUserDNs,\n ADGroupDNs,\n dispatch,\n ]);\n\n return (\n \n \n ) => {\n updateField(\"ADURL\", e.target.value);\n cleanValidation(\"AD_URL\");\n }}\n label=\"LDAP Server Address\"\n value={ADURL}\n placeholder=\"ldap-server:636\"\n error={validationErrors[\"AD_URL\"] || \"\"}\n required\n />\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n updateField(\"ADSkipTLS\", checked);\n }}\n label={\"Skip TLS Verification\"}\n />\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n updateField(\"ADServerInsecure\", checked);\n }}\n label={\"Server Insecure\"}\n />\n \n {ADServerInsecure ? (\n \n \n Warning: All traffic with Active Directory will be unencrypted\n \n \n \n ) : null}\n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n updateField(\"ADServerStartTLS\", checked);\n }}\n label={\"Start TLS connection to AD/LDAP server\"}\n />\n \n \n ) => {\n updateField(\"ADLookupBindDN\", e.target.value);\n cleanValidation(\"ad_lookupBindDN\");\n }}\n label=\"Lookup Bind DN\"\n value={ADLookupBindDN}\n placeholder=\"cn=admin,dc=min,dc=io\"\n error={validationErrors[\"ad_lookupBindDN\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"ADLookupBindPassword\", e.target.value);\n }}\n label=\"Lookup Bind Password\"\n value={ADLookupBindPassword}\n placeholder=\"admin\"\n />\n \n \n ) => {\n updateField(\"ADUserDNSearchBaseDN\", e.target.value);\n }}\n label=\"User DN Search Base DN\"\n value={ADUserDNSearchBaseDN}\n placeholder=\"dc=min,dc=io\"\n />\n \n \n ) => {\n updateField(\"ADUserDNSearchFilter\", e.target.value);\n }}\n label=\"User DN Search Filter\"\n value={ADUserDNSearchFilter}\n placeholder=\"(sAMAcountName=%s)\"\n />\n \n \n ) => {\n updateField(\"ADGroupSearchBaseDN\", e.target.value);\n }}\n label=\"Group Search Base DN\"\n value={ADGroupSearchBaseDN}\n placeholder=\"ou=hwengg,dc=min,dc=io;ou=swengg,dc=min,dc=io\"\n />\n \n \n ) => {\n updateField(\"ADGroupSearchFilter\", e.target.value);\n }}\n label=\"Group Search Filter\"\n value={ADGroupSearchFilter}\n placeholder=\"(&(objectclass=groupOfNames)(member=%s))\"\n />\n \n \n \n \n );\n};\n\nexport default IDPActiveDirectory;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Grid } from \"@mui/material\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { isPageValid, updateAddField } from \"../../createTenantSlice\";\nimport { clearValidationError } from \"../../../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n buttonTray: {\n marginLeft: 10,\n display: \"flex\",\n height: 38,\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n overlayAction: {\n marginLeft: 10,\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst IDPOpenID = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const idpSelection = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.idpSelection\n );\n const openIDConfigurationURL = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.openIDConfigurationURL\n );\n const openIDClientID = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.openIDClientID\n );\n const openIDSecretID = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.openIDSecretID\n );\n const openIDCallbackURL = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.openIDCallbackURL\n );\n const openIDClaimName = useSelector(\n (state: AppState) =>\n state.createTenant.fields.identityProvider.openIDClaimName\n );\n const openIDScopes = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.openIDScopes\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({\n pageName: \"identityProvider\",\n field: field,\n value: value,\n })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n // Validation\n useEffect(() => {\n let customIDPValidation: IValidation[] = [];\n\n if (idpSelection === \"OpenID\") {\n customIDPValidation = [\n ...customIDPValidation,\n {\n fieldKey: \"openID_CONFIGURATION_URL\",\n required: true,\n value: openIDConfigurationURL,\n },\n {\n fieldKey: \"openID_clientID\",\n required: true,\n value: openIDClientID,\n },\n {\n fieldKey: \"openID_secretID\",\n required: true,\n value: openIDSecretID,\n },\n {\n fieldKey: \"openID_claimName\",\n required: true,\n value: openIDClaimName,\n },\n ];\n }\n\n const commonVal = commonFormValidation(customIDPValidation);\n\n dispatch(\n isPageValid({\n pageName: \"identityProvider\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n idpSelection,\n openIDClientID,\n openIDSecretID,\n openIDConfigurationURL,\n openIDClaimName,\n dispatch,\n ]);\n\n return (\n \n \n ) => {\n updateField(\"openIDConfigurationURL\", e.target.value);\n cleanValidation(\"openID_CONFIGURATION_URL\");\n }}\n label=\"Configuration URL\"\n value={openIDConfigurationURL}\n placeholder=\"https://your-identity-provider.com/.well-known/openid-configuration\"\n error={validationErrors[\"openID_CONFIGURATION_URL\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"openIDClientID\", e.target.value);\n cleanValidation(\"openID_clientID\");\n }}\n label=\"Client ID\"\n value={openIDClientID}\n error={validationErrors[\"openID_clientID\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"openIDSecretID\", e.target.value);\n cleanValidation(\"openID_secretID\");\n }}\n label=\"Secret ID\"\n value={openIDSecretID}\n error={validationErrors[\"openID_secretID\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"openIDCallbackURL\", e.target.value);\n cleanValidation(\"openID_callbackURL\");\n }}\n label=\"Callback URL\"\n value={openIDCallbackURL}\n placeholder=\"https://your-console-endpoint:9443/oauth_callback\"\n error={validationErrors[\"openID_callbackURL\"] || \"\"}\n />\n \n \n ) => {\n updateField(\"openIDClaimName\", e.target.value);\n cleanValidation(\"openID_claimName\");\n }}\n label=\"Claim Name\"\n value={openIDClaimName}\n error={validationErrors[\"openID_claimName\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"openIDScopes\", e.target.value);\n cleanValidation(\"openID_scopes\");\n }}\n label=\"Scopes\"\n value={openIDScopes}\n />\n \n \n );\n};\n\nexport default IDPOpenID;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport {\n addIDPNewKeyPair,\n isPageValid,\n removeIDPKeyPairAtIndex,\n setIDPPwdAtIndex,\n setIDPUsrAtIndex,\n} from \"../../createTenantSlice\";\nimport { IconButton, Tooltip } from \"@mui/material\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport RemoveIcon from \"../../../../../../icons/RemoveIcon\";\nimport { clearValidationError, getRandomString } from \"../../../utils\";\nimport CasinoIcon from \"@mui/icons-material/Casino\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n buttonTray: {\n marginLeft: 10,\n display: \"flex\",\n height: 38,\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n overlayAction: {\n marginLeft: 10,\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n shortened: {\n gridTemplateColumns: \"auto auto 50px 50px\",\n display: \"grid\",\n gridGap: 15,\n marginBottom: 10,\n \"& input\": {\n fontWeight: 400,\n },\n },\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst IDPBuiltIn = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const idpSelection = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.idpSelection\n );\n const accessKeys = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.accessKeys\n );\n const secretKeys = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.secretKeys\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n // Validation\n useEffect(() => {\n let customIDPValidation: IValidation[] = [];\n\n if (idpSelection === \"Built-in\") {\n customIDPValidation = [...customIDPValidation];\n for (var i = 0; i < accessKeys.length; i++) {\n customIDPValidation.push({\n fieldKey: `accesskey-${i.toString()}`,\n required: true,\n value: accessKeys[i],\n pattern: /^[a-zA-Z0-9-]{8,63}$/,\n customPatternMessage: \"Keys must be at least length 8\",\n });\n customIDPValidation.push({\n fieldKey: `secretkey-${i.toString()}`,\n required: true,\n value: secretKeys[i],\n pattern: /^[a-zA-Z0-9-]{8,63}$/,\n customPatternMessage: \"Keys must be at least length 8\",\n });\n }\n }\n\n const commonVal = commonFormValidation(customIDPValidation);\n\n dispatch(\n isPageValid({\n pageName: \"identityProvider\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [idpSelection, accessKeys, secretKeys, dispatch]);\n\n return (\n \n Add additional users\n {accessKeys.map((_, index) => {\n return (\n \n
\n \n );\n })}\n \n );\n};\n\nexport default IDPBuiltIn;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport { Grid, Paper } from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport { setIDP } from \"../createTenantSlice\";\nimport IDPActiveDirectory from \"./IdentityProvider/IDPActiveDirectory\";\nimport IDPOpenID from \"./IdentityProvider/IDPOpenID\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport IDPBuiltIn from \"./IdentityProvider/IDPBuiltIn\";\nimport {\n OIDCLogoElement,\n LDAPLogoElement,\n BuiltInLogoElement,\n} from \"../../LogoComponents\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n protocolRadioOptions: {\n display: \"flex\",\n flexFlow: \"column\",\n marginBottom: 10,\n\n \"& label\": {\n fontSize: 16,\n fontWeight: 600,\n },\n \"& div\": {\n display: \"flex\",\n flexFlow: \"row\",\n alignItems: \"top\",\n },\n },\n ...createTenantCommon,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst IdentityProvider = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const idpSelection = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.idpSelection\n );\n\n return (\n \n
\n
Identity Provider
\n \n Access to the tenant can be controlled via an external Identity\n Manager.\n \n
\n \n {\n dispatch(setIDP(e.target.value));\n }}\n selectorOptions={[\n { label: , value: \"Built-in\" },\n { label: , value: \"OpenID\" },\n { label: , value: \"AD\" },\n ]}\n />\n \n {idpSelection === \"Built-in\" && }\n {idpSelection === \"OpenID\" && }\n {idpSelection === \"AD\" && }\n \n );\n};\n\nexport default IdentityProvider;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Box } from \"@mui/material\";\nimport CertificateIcon from \"../../../../icons/CertificateIcon\";\nimport { AppState } from \"../../../../store\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n {description}\n
\n \n );\n};\nconst TLSHelpBox = () => {\n const namespace = useSelector((state: AppState) => {\n return state.createTenant.fields.nameTenant.namespace || \"\";\n });\n\n const tenantName = useSelector((state: AppState) => {\n return state.createTenant.fields.nameTenant.tenantName || \"\";\n });\n\n return (\n \n \n }\n description={`TLS Certificates Warning`}\n />\n \n Automatic certificate generation is not enabled.\n \n \n If you wish to continue only with custom certificates make sure\n they are valid for the following internode hostnames, i.e.:\n \n \n
\n \n \n ))}\n \n \n )}\n \n )}\n \n \n );\n};\n\nexport default withStyles(styles)(Security);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\n\ntype Props = {\n children: string;\n};\n\nconst SectionH1: React.FC = ({ children }) => {\n return (\n
\n {children}\n
\n );\n};\n\nexport default SectionH1;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\n\nimport FileSelector from \"../../../../Common/FormComponents/FileSelector/FileSelector\";\nimport {\n addFileVaultCa,\n addFileVaultCert,\n isPageValid,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst VaultKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const vaultEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultEndpoint\n );\n const vaultEngine = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultEngine\n );\n const vaultNamespace = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultNamespace\n );\n const vaultPrefix = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultPrefix\n );\n const vaultAppRoleEngine = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultAppRoleEngine\n );\n const vaultId = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultId\n );\n const vaultSecret = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultSecret\n );\n const vaultRetry = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultRetry\n );\n const vaultPing = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultPing\n );\n const vaultCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.vaultCertificate\n );\n const vaultCA = useSelector(\n (state: AppState) => state.createTenant.certificates.vaultCA\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"vault_endpoint\",\n required: true,\n value: vaultEndpoint,\n },\n {\n fieldKey: \"vault_id\",\n required: true,\n value: vaultId,\n },\n {\n fieldKey: \"vault_secret\",\n required: true,\n value: vaultSecret,\n },\n {\n fieldKey: \"vault_ping\",\n required: false,\n value: vaultPing,\n customValidation: parseInt(vaultPing) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n {\n fieldKey: \"vault_retry\",\n required: false,\n value: vaultRetry,\n customValidation: parseInt(vaultRetry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n vaultEndpoint,\n vaultEngine,\n vaultId,\n vaultSecret,\n vaultPing,\n vaultRetry,\n dispatch,\n ]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"vaultEndpoint\", e.target.value);\n cleanValidation(\"vault_endpoint\");\n }}\n label=\"Endpoint\"\n value={vaultEndpoint}\n error={validationErrors[\"vault_endpoint\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"vaultEngine\", e.target.value);\n cleanValidation(\"vault_engine\");\n }}\n label=\"Engine\"\n value={vaultEngine}\n />\n \n \n ) => {\n updateField(\"vaultNamespace\", e.target.value);\n }}\n label=\"Namespace\"\n value={vaultNamespace}\n />\n \n \n ) => {\n updateField(\"vaultPrefix\", e.target.value);\n }}\n label=\"Prefix\"\n value={vaultPrefix}\n />\n \n\n \n \n \n\n \n \n \n \n \n \n \n );\n};\n\nexport default VaultKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { isPageValid, updateAddField } from \"../../createTenantSlice\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst AzureKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const azureEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureEndpoint\n );\n const azureTenantID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureTenantID\n );\n const azureClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureClientID\n );\n const azureClientSecret = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureClientSecret\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"azure_endpoint\",\n required: true,\n value: azureEndpoint,\n },\n {\n fieldKey: \"azure_tenant_id\",\n required: true,\n value: azureTenantID,\n },\n {\n fieldKey: \"azure_client_id\",\n required: true,\n value: azureClientID,\n },\n {\n fieldKey: \"azure_client_secret\",\n required: true,\n value: azureClientSecret,\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n azureEndpoint,\n azureTenantID,\n azureClientID,\n azureClientSecret,\n dispatch,\n ]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"azureEndpoint\", e.target.value);\n cleanValidation(\"azure_endpoint\");\n }}\n label=\"Endpoint\"\n value={azureEndpoint}\n error={validationErrors[\"azure_endpoint\"] || \"\"}\n />\n \n \n \n \n \n );\n};\n\nexport default AzureKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { updateAddField } from \"../../createTenantSlice\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst GCPKMSAdd = () => {\n const classes = useStyles();\n const dispatch = useAppDispatch();\n\n const gcpProjectID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpProjectID\n );\n const gcpEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpEndpoint\n );\n const gcpClientEmail = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientEmail\n );\n const gcpClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientID\n );\n const gcpPrivateKeyID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKeyID\n );\n const gcpPrivateKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKey\n );\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n return (\n \n \n ) => {\n updateField(\"gcpProjectID\", e.target.value);\n }}\n label=\"Project ID\"\n value={gcpProjectID}\n />\n \n \n ) => {\n updateField(\"gcpEndpoint\", e.target.value);\n }}\n label=\"Endpoint\"\n value={gcpEndpoint}\n />\n \n \n \n \n \n );\n};\n\nexport default GCPKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport FileSelector from \"../../../../Common/FormComponents/FileSelector/FileSelector\";\nimport {\n addFileGemaltoCa,\n isPageValid,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst GemaltoKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const gemaltoCA = useSelector(\n (state: AppState) => state.createTenant.certificates.gemaltoCA\n );\n const gemaltoEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoEndpoint\n );\n const gemaltoToken = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoToken\n );\n const gemaltoDomain = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoDomain\n );\n const gemaltoRetry = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoRetry\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"gemalto_endpoint\",\n required: true,\n value: gemaltoEndpoint,\n },\n {\n fieldKey: \"gemalto_token\",\n required: true,\n value: gemaltoToken,\n },\n {\n fieldKey: \"gemalto_domain\",\n required: true,\n value: gemaltoDomain,\n },\n {\n fieldKey: \"gemalto_retry\",\n required: false,\n value: gemaltoRetry,\n customValidation: parseInt(gemaltoRetry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [gemaltoEndpoint, gemaltoToken, gemaltoDomain, gemaltoRetry, dispatch]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"gemaltoEndpoint\", e.target.value);\n cleanValidation(\"gemalto_endpoint\");\n }}\n label=\"Endpoint\"\n value={gemaltoEndpoint}\n error={validationErrors[\"gemalto_endpoint\"] || \"\"}\n required\n />\n \n \n \n \n \n \n \n \n );\n};\n\nexport default GemaltoKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { isPageValid, updateAddField } from \"../../createTenantSlice\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst AWSKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const awsEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsEndpoint\n );\n const awsRegion = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsRegion\n );\n const awsKMSKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsKMSKey\n );\n const awsAccessKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsAccessKey\n );\n const awsSecretKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsSecretKey\n );\n const awsToken = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsToken\n );\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"aws_endpoint\",\n required: true,\n value: awsEndpoint,\n },\n {\n fieldKey: \"aws_region\",\n required: true,\n value: awsRegion,\n },\n {\n fieldKey: \"aws_accessKey\",\n required: true,\n value: awsAccessKey,\n },\n {\n fieldKey: \"aws_secretKey\",\n required: true,\n value: awsSecretKey,\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [awsEndpoint, awsRegion, awsSecretKey, awsAccessKey, dispatch]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"awsEndpoint\", e.target.value);\n cleanValidation(\"aws_endpoint\");\n }}\n label=\"Endpoint\"\n value={awsEndpoint}\n error={validationErrors[\"aws_endpoint\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"awsRegion\", e.target.value);\n cleanValidation(\"aws_region\");\n }}\n label=\"Region\"\n value={awsRegion}\n error={validationErrors[\"aws_region\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"awsKMSKey\", e.target.value);\n }}\n label=\"KMS Key\"\n value={awsKMSKey}\n />\n \n \n \n \n \n );\n};\n\nexport default AWSKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Paper, SelectChangeEvent } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\n\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport FileSelector from \"../../../Common/FormComponents/FileSelector/FileSelector\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport SectionH1 from \"../../../Common/SectionH1\";\nimport {\n addFileClientCert,\n addFileServerCert,\n isPageValid,\n updateAddField,\n} from \"../createTenantSlice\";\nimport VaultKMSAdd from \"./Encryption/VaultKMSAdd\";\nimport AzureKMSAdd from \"./Encryption/AzureKMSAdd\";\nimport GCPKMSAdd from \"./Encryption/GCPKMSAdd\";\nimport GemaltoKMSAdd from \"./Encryption/GemaltoKMSAdd\";\nimport AWSKMSAdd from \"./Encryption/AWSKMSAdd\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\n\ninterface IEncryptionProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n encryptionTypeOptions: {\n marginBottom: 15,\n },\n mutualTlsConfig: {\n marginTop: 15,\n \"& fieldset\": {\n flex: 1,\n },\n },\n rightSpacer: {\n marginRight: 15,\n },\n responsiveContainer: {\n \"@media (max-width: 900px)\": {\n display: \"flex\",\n flexFlow: \"column\",\n },\n },\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst Encryption = ({ classes }: IEncryptionProps) => {\n const dispatch = useAppDispatch();\n\n const replicas = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.replicas\n );\n const enableEncryption = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.enableEncryption\n );\n const encryptionType = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.encryptionType\n );\n\n const gcpProjectID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpProjectID\n );\n const gcpEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpEndpoint\n );\n const gcpClientEmail = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientEmail\n );\n const gcpClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientID\n );\n const gcpPrivateKeyID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKeyID\n );\n const gcpPrivateKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKey\n );\n const enableCustomCertsForKES = useSelector(\n (state: AppState) =>\n state.createTenant.fields.encryption.enableCustomCertsForKES\n );\n const enableAutoCert = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableAutoCert\n );\n const enableTLS = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableTLS\n );\n const minioServerCertificates = useSelector(\n (state: AppState) => state.createTenant.certificates.minioServerCertificates\n );\n const serverCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.serverCertificate\n );\n const clientCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.clientCertificate\n );\n\n const enableCustomCerts = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableCustomCerts\n );\n const kesSecurityContext = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.kesSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n let encryptionAvailable = false;\n if (\n enableTLS &&\n (enableAutoCert ||\n (minioServerCertificates &&\n minioServerCertificates.filter(\n (item) => item.encoded_key && item.encoded_cert\n ).length > 0))\n ) {\n encryptionAvailable = true;\n }\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n if (enableEncryption) {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"replicas\",\n required: true,\n value: replicas,\n customValidation: parseInt(replicas) < 1,\n customValidationMessage: \"Replicas needs to be 1 or greater\",\n },\n {\n fieldKey: \"kes_securityContext_runAsUser\",\n required: true,\n value: kesSecurityContext.runAsUser,\n customValidation:\n kesSecurityContext.runAsUser === \"\" ||\n parseInt(kesSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_runAsGroup\",\n required: true,\n value: kesSecurityContext.runAsGroup,\n customValidation:\n kesSecurityContext.runAsGroup === \"\" ||\n parseInt(kesSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_fsGroup\",\n required: true,\n value: kesSecurityContext.fsGroup,\n customValidation:\n kesSecurityContext.fsGroup === \"\" ||\n parseInt(kesSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n\n if (enableCustomCerts) {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"serverKey\",\n required: !enableAutoCert,\n value: serverCertificate.encoded_key,\n },\n {\n fieldKey: \"serverCert\",\n required: !enableAutoCert,\n value: serverCertificate.encoded_cert,\n },\n {\n fieldKey: \"clientKey\",\n required: !enableAutoCert,\n value: clientCertificate.encoded_key,\n },\n {\n fieldKey: \"clientCert\",\n required: !enableAutoCert,\n value: clientCertificate.encoded_cert,\n },\n ];\n }\n }\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n enableEncryption,\n encryptionType,\n gcpProjectID,\n gcpEndpoint,\n gcpClientEmail,\n gcpClientID,\n gcpPrivateKeyID,\n gcpPrivateKey,\n dispatch,\n enableAutoCert,\n enableCustomCerts,\n serverCertificate.encoded_key,\n serverCertificate.encoded_cert,\n clientCertificate.encoded_key,\n clientCertificate.encoded_cert,\n kesSecurityContext,\n replicas,\n ]);\n\n return (\n \n \n \n Encryption\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"enableEncryption\", checked);\n }}\n description=\"\"\n disabled={!encryptionAvailable}\n />\n \n \n \n \n \n MinIO Server-Side Encryption (SSE) protects objects as part of write\n operations, allowing clients to take advantage of server processing\n power to secure objects at the storage layer (encryption-at-rest).\n SSE also provides key functionality to regulatory and compliance\n requirements around secure locking and erasure.\n \n \n \n \n \n\n {enableEncryption && (\n \n \n {\n updateField(\"encryptionType\", e.target.value);\n }}\n selectorOptions={[\n { label: \"Vault\", value: \"vault\" },\n { label: \"AWS\", value: \"aws\" },\n { label: \"Gemalto\", value: \"gemalto\" },\n { label: \"GCP\", value: \"gcp\" },\n { label: \"Azure\", value: \"azure\" },\n ]}\n />\n \n {encryptionType === \"vault\" && }\n {encryptionType === \"azure\" && }\n {encryptionType === \"gcp\" && }\n {encryptionType === \"aws\" && }\n {encryptionType === \"gemalto\" && }\n
\n
Additional Configurations
\n
\n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"enableCustomCertsForKES\", checked);\n }}\n label={\"Custom Certificates\"}\n disabled={!enableAutoCert}\n />\n \n {(enableCustomCertsForKES || !enableAutoCert) && (\n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n ) => {\n updateField(\"replicas\", e.target.value);\n cleanValidation(\"replicas\");\n }}\n label=\"Replicas\"\n value={replicas}\n required\n error={validationErrors[\"replicas\"] || \"\"}\n />\n \n\n \n \n \n )}\n \n \n );\n};\n\nexport default withStyles(styles)(Encryption);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Grid, IconButton, Paper, SelectChangeEvent } from \"@mui/material\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\n\nimport {\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { LabelKeyPair } from \"../../types\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport api from \"../../../../../common/api\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport AddIcon from \"../../../../../icons/AddIcon\";\nimport RemoveIcon from \"../../../../../icons/RemoveIcon\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport TolerationSelector from \"../../../Common/TolerationSelector/TolerationSelector\";\nimport { setModalErrorSnackMessage } from \"../../../../../systemSlice\";\nimport {\n addNewToleration,\n isPageValid,\n removeToleration,\n setKeyValuePairs,\n setTolerationInfo,\n updateAddField,\n} from \"../createTenantSlice\";\n\ninterface IAffinityProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n overlayAction: {\n marginLeft: 10,\n display: \"flex\",\n alignItems: \"center\",\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n affinityConfigField: {\n display: \"flex\",\n },\n affinityFieldLabel: {\n display: \"flex\",\n flexFlow: \"column\",\n flex: 1,\n },\n radioField: {\n display: \"flex\",\n alignItems: \"flex-start\",\n marginTop: 10,\n \"& div:first-child\": {\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"baseline\",\n textAlign: \"left !important\",\n },\n },\n affinityLabelKey: {\n \"& div:first-child\": {\n marginBottom: 0,\n },\n },\n affinityLabelValue: {\n marginLeft: 10,\n \"& div:first-child\": {\n marginBottom: 0,\n },\n },\n rowActions: {\n display: \"flex\",\n alignItems: \"center\",\n },\n affinityRow: {\n marginBottom: 10,\n display: \"flex\",\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\ninterface OptionPair {\n label: string;\n value: string;\n}\n\nconst Affinity = ({ classes }: IAffinityProps) => {\n const dispatch = useAppDispatch();\n\n const podAffinity = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.podAffinity\n );\n const nodeSelectorLabels = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.nodeSelectorLabels\n );\n const withPodAntiAffinity = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.withPodAntiAffinity\n );\n const keyValuePairs = useSelector(\n (state: AppState) => state.createTenant.nodeSelectorPairs\n );\n const tolerations = useSelector(\n (state: AppState) => state.createTenant.tolerations\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n const [loading, setLoading] = useState(true);\n const [keyValueMap, setKeyValueMap] = useState<{ [key: string]: string[] }>(\n {}\n );\n const [keyOptions, setKeyOptions] = useState([]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({\n pageName: \"affinity\",\n field: field,\n value: value,\n })\n );\n },\n [dispatch]\n );\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\"GET\", `/api/v1/nodes/labels`)\n .then((res: { [key: string]: string[] }) => {\n setLoading(false);\n setKeyValueMap(res);\n let keys: OptionPair[] = [];\n for (let k in res) {\n keys.push({\n label: k,\n value: k,\n });\n }\n setKeyOptions(keys);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n setKeyValueMap({});\n });\n }\n }, [dispatch, loading]);\n\n useEffect(() => {\n if (keyValuePairs) {\n const vlr = keyValuePairs\n .filter((kvp) => kvp.key !== \"\")\n .map((kvp) => `${kvp.key}=${kvp.value}`)\n .filter((kvs, i, a) => a.indexOf(kvs) === i);\n const vl = vlr.join(\"&\");\n updateField(\"nodeSelectorLabels\", vl);\n }\n }, [keyValuePairs, updateField]);\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n\n if (podAffinity === \"nodeSelector\") {\n let valid = true;\n\n const splittedLabels = nodeSelectorLabels.split(\"&\");\n\n if (splittedLabels.length === 1 && splittedLabels[0] === \"\") {\n valid = false;\n }\n\n splittedLabels.forEach((item: string, index: number) => {\n const splitItem = item.split(\"=\");\n\n if (splitItem.length !== 2) {\n valid = false;\n }\n\n if (index + 1 !== splittedLabels.length) {\n if (splitItem[0] === \"\" || splitItem[1] === \"\") {\n valid = false;\n }\n }\n });\n\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"labels\",\n required: true,\n value: nodeSelectorLabels,\n customValidation: !valid,\n customValidationMessage:\n \"You need to add at least one label key-pair\",\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"affinity\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [dispatch, podAffinity, nodeSelectorLabels]);\n\n const updateToleration = (index: number, field: string, value: any) => {\n const alterToleration = { ...tolerations[index], [field]: value };\n\n dispatch(\n setTolerationInfo({\n index: index,\n tolerationValue: alterToleration,\n })\n );\n };\n\n return (\n \n
\n
Pod Placement
\n \n Configure how pods will be assigned to nodes\n \n
\n \n \n
Type
\n
\n MinIO supports multiple configurations for Pod Affinity\n
\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"customDockerhub\", checked);\n }}\n label={\"Use a private container registry\"}\n />\n \n \n )}\n {customDockerhub && (\n \n \n ) => {\n updateField(\"imageRegistry\", e.target.value);\n }}\n label=\"Endpoint\"\n value={imageRegistry}\n error={validationErrors[\"registry\"] || \"\"}\n placeholder=\"https://index.docker.io/v1/\"\n required\n />\n \n \n ) => {\n updateField(\"imageRegistryUsername\", e.target.value);\n }}\n label=\"Username\"\n value={imageRegistryUsername}\n error={validationErrors[\"registryUsername\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"imageRegistryPassword\", e.target.value);\n }}\n label=\"Password\"\n value={imageRegistryPassword}\n error={validationErrors[\"registryPassword\"] || \"\"}\n required\n />\n \n \n )}\n \n );\n};\n\nexport default withStyles(styles)(Images);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { AppState } from \"../../../../../store\";\nimport {\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableRow from \"@mui/material/TableRow\";\nimport { niceBytes } from \"../../../../../common/utils\";\n\nimport { Divider } from \"@mui/material\";\n\ninterface ISizePreviewProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n margin: 4,\n },\n table: {\n \"& .MuiTableCell-root\": {\n fontSize: 13,\n },\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst SizePreview = ({ classes }: ISizePreviewProps) => {\n const nodes = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.nodes\n );\n const memoryNode = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.resourcesMemoryRequest\n );\n const ecParity = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.ecParity\n );\n\n const distribution = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.distribution\n );\n const ecParityCalc = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.ecParityCalc\n );\n\n const cpuToUse = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.resourcesCPURequest\n );\n const integrationSelection = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.integrationSelection\n );\n\n const usableInformation = ecParityCalc.storageFactors.find(\n (element) => element.erasureCode === ecParity\n );\n\n return (\n
\n );\n};\n\nexport default withStyles(styles)(SizePreview);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { DialogContentText, LinearProgress } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n deleteDialogStyles,\n modalBasic,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport ConfirmDialog from \"../../../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"../../../../../../icons\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { closeAddNSModal } from \"../../createTenantSlice\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { createNamespaceAsync } from \"../../thunks/namespaceThunks\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n wrapText: {\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n },\n ...modalBasic,\n ...deleteDialogStyles,\n })\n);\n\nconst AddNamespaceModal = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const namespace = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.namespace\n );\n const addNamespaceLoading = useSelector(\n (state: AppState) => state.createTenant.addNSLoading\n );\n const addNamespaceOpen = useSelector(\n (state: AppState) => state.createTenant.addNSOpen\n );\n\n return (\n }\n isLoading={addNamespaceLoading}\n onConfirm={() => {\n dispatch(createNamespaceAsync());\n }}\n onClose={() => {\n dispatch(closeAddNSModal());\n }}\n confirmationContent={\n \n {addNamespaceLoading && }\n \n Are you sure you want to add a namespace called\n \n {namespace}?\n \n \n }\n />\n );\n};\n\nexport default AddNamespaceModal;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useMemo } from \"react\";\nimport AddIcon from \"../../../../../../icons/AddIcon\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { openAddNSModal, setNamespace } from \"../../createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport AddNamespaceModal from \"../helpers/AddNamespaceModal\";\nimport debounce from \"lodash/debounce\";\nimport { IMkEnvs } from \"./utils\";\nimport { validateNamespaceAsync } from \"../../thunks/namespaceThunks\";\n\nconst NamespaceSelector = ({ formToRender }: { formToRender?: IMkEnvs }) => {\n const dispatch = useAppDispatch();\n\n const namespace = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.namespace\n );\n\n const showNSCreateButton = useSelector(\n (state: AppState) => state.createTenant.showNSCreateButton\n );\n\n const namespaceError = useSelector(\n (state: AppState) => state.createTenant.validationErrors[\"namespace\"]\n );\n const openAddNSConfirm = useSelector(\n (state: AppState) => state.createTenant.addNSOpen\n );\n\n const debounceNamespace = useMemo(\n () =>\n debounce(() => {\n dispatch(validateNamespaceAsync());\n }, 500),\n [dispatch]\n );\n\n useEffect(() => {\n if (namespace !== \"\") {\n debounceNamespace();\n // Cancel previous debounce calls during useEffect cleanup.\n return debounceNamespace.cancel;\n }\n }, [debounceNamespace, namespace]);\n\n const addNamespace = () => {\n dispatch(openAddNSModal());\n };\n\n return (\n \n {openAddNSConfirm && }\n ) => {\n dispatch(setNamespace(e.target.value));\n }}\n label=\"Namespace\"\n value={namespace}\n error={namespaceError || \"\"}\n overlayId={\"add-namespace\"}\n overlayIcon={showNSCreateButton ? : null}\n overlayAction={addNamespace}\n required\n />\n \n );\n};\nexport default NamespaceSelector;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport get from \"lodash/get\";\nimport Grid from \"@mui/material/Grid\";\nimport {\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport SelectWrapper from \"../../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport SizePreview from \"../SizePreview\";\nimport TenantSize from \"./TenantSize\";\nimport { Paper, SelectChangeEvent } from \"@mui/material\";\nimport { IMkEnvs, mkPanelConfigurations } from \"./utils\";\nimport {\n isPageValid,\n setStorageType,\n setTenantName,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport { selFeatures } from \"../../../../consoleSlice\";\nimport NamespaceSelector from \"./NamespaceSelector\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n sizePreview: {\n position: \"fixed\",\n marginLeft: 10,\n background: \"#FFFFFF\",\n border: \"1px solid #EAEAEA\",\n padding: 2,\n marginTop: 20,\n },\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst NameTenantField = () => {\n const dispatch = useAppDispatch();\n const tenantName = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.tenantName\n );\n\n const tenantNameError = useSelector(\n (state: AppState) => state.createTenant.validationErrors[\"tenant-name\"]\n );\n\n return (\n ) => {\n dispatch(setTenantName(e.target.value));\n }}\n label=\"Name\"\n value={tenantName}\n required\n error={tenantNameError || \"\"}\n />\n );\n};\n\ninterface INameTenantMainScreen {\n classes: any;\n formToRender?: IMkEnvs;\n}\n\nconst NameTenantMain = ({ classes, formToRender }: INameTenantMainScreen) => {\n const dispatch = useAppDispatch();\n\n const selectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageClass\n );\n const selectedStorageType = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageType\n );\n const storageClasses = useSelector(\n (state: AppState) => state.createTenant.storageClasses\n );\n const features = useSelector(selFeatures);\n\n // Common\n const updateField = useCallback(\n (field: string, value: string) => {\n dispatch(\n updateAddField({ pageName: \"nameTenant\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n const isValid =\n (formToRender === IMkEnvs.default && storageClasses.length > 0) ||\n (formToRender !== IMkEnvs.default && selectedStorageType !== \"\");\n\n dispatch(isPageValid({ pageName: \"nameTenant\", valid: isValid }));\n }, [storageClasses, dispatch, selectedStorageType, formToRender]);\n\n return (\n \n \n \n \n \n \n
\n
Name
\n \n How would you like to name this new tenant?\n \n
\n \n \n \n );\n};\n\nexport default withStyles(styles)(NameTenantMain);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport get from \"lodash/get\";\nimport NameTenantMain from \"./NameTenantMain\";\nimport { IMkEnvs, resourcesConfigurations } from \"./utils\";\nimport { selFeatures } from \"../../../../consoleSlice\";\n\nconst TenantResources = () => {\n const features = useSelector(selFeatures);\n const [formRender, setFormRender] = useState(null);\n\n useEffect(() => {\n let setConfiguration = IMkEnvs.default;\n\n if (features && features.length !== 0) {\n const possibleVariables = Object.keys(resourcesConfigurations);\n\n possibleVariables.forEach((element) => {\n if (features.includes(element)) {\n setConfiguration = get(\n resourcesConfigurations,\n element,\n IMkEnvs.default\n );\n }\n });\n }\n\n setFormRender(setConfiguration);\n }, [features]);\n\n if (formRender === null) {\n return null;\n }\n\n return ;\n};\n\nexport default TenantResources;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Grid, Paper, SelectChangeEvent } from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport InputUnitMenu from \"../../../Common/FormComponents/InputUnitMenu/InputUnitMenu\";\nimport SectionH1 from \"../../../Common/SectionH1\";\nimport { isPageValid, updateAddField } from \"../createTenantSlice\";\n\ninterface IConfigureProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n configSectionItem: {\n marginRight: 15,\n\n \"& .multiContainer\": {\n border: \"1px solid red\",\n },\n },\n fieldGroup: {\n ...createTenantCommon.fieldGroup,\n paddingTop: 15,\n marginBottom: 25,\n },\n responsiveSectionItem: {\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n alignItems: \"flex-start\",\n\n \"& div > div\": {\n marginBottom: 5,\n marginRight: 0,\n },\n },\n },\n\n logSearchEnabledFields: {\n marginLeft: 20, // 2nd Level(15+15)\n padding: 10,\n width: \"90%\",\n margin: \"auto\",\n },\n fieldSpaceTop: {\n marginTop: 15,\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst ConfigLogSearch = ({ classes }: IConfigureProps) => {\n const dispatch = useAppDispatch();\n\n const storageClasses = useSelector(\n (state: AppState) => state.createTenant.storageClasses\n );\n const logSearchEnabled = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchEnabled\n );\n const logSearchVolumeSize = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchVolumeSize\n );\n const logSearchSelectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchSelectedStorageClass\n );\n const logSearchImage = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchImage\n );\n const logSearchPostgresImage = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresImage\n );\n const logSearchPostgresInitImage = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresInitImage\n );\n const selectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageClass\n );\n const tenantSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.tenantSecurityContext\n );\n const logSearchSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchSecurityContext\n );\n const logSearchPostgresSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n const configureSTClasses = [\n { label: \"Default\", value: \"default\" },\n ...storageClasses,\n ];\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"configure\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n\n if (logSearchEnabled) {\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"log_search_storage_class\",\n required: true,\n value: logSearchSelectedStorageClass,\n customValidation: logSearchSelectedStorageClass === \"\",\n customValidationMessage: \"Field cannot be empty\",\n },\n {\n fieldKey: \"log_search_volume_size\",\n required: true,\n value: logSearchVolumeSize,\n customValidation:\n logSearchVolumeSize === \"\" || parseInt(logSearchVolumeSize) <= 0,\n customValidationMessage: `Volume size must be present and be greatter than 0`,\n },\n {\n fieldKey: \"logSearch_securityContext_runAsUser\",\n required: true,\n value: logSearchSecurityContext.runAsUser,\n customValidation:\n logSearchSecurityContext.runAsUser === \"\" ||\n parseInt(logSearchSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"logSearch_securityContext_runAsGroup\",\n required: true,\n value: logSearchSecurityContext.runAsGroup,\n customValidation:\n logSearchSecurityContext.runAsGroup === \"\" ||\n parseInt(logSearchSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"logSearch_securityContext_fsGroup\",\n required: true,\n value: logSearchSecurityContext.fsGroup,\n customValidation:\n logSearchSecurityContext.fsGroup === \"\" ||\n parseInt(logSearchSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_runAsUser\",\n required: true,\n value: logSearchPostgresSecurityContext.runAsUser,\n customValidation:\n logSearchPostgresSecurityContext.runAsUser === \"\" ||\n parseInt(logSearchPostgresSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_runAsGroup\",\n required: true,\n value: logSearchSecurityContext.runAsGroup,\n customValidation:\n logSearchPostgresSecurityContext.runAsGroup === \"\" ||\n parseInt(logSearchPostgresSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_fsGroup\",\n required: true,\n value: logSearchPostgresSecurityContext.fsGroup,\n customValidation:\n logSearchPostgresSecurityContext.fsGroup === \"\" ||\n parseInt(logSearchPostgresSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"configure\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n logSearchImage,\n logSearchPostgresImage,\n logSearchPostgresInitImage,\n dispatch,\n logSearchEnabled,\n logSearchSelectedStorageClass,\n logSearchVolumeSize,\n tenantSecurityContext,\n logSearchSecurityContext,\n logSearchPostgresSecurityContext,\n ]);\n\n useEffect(() => {\n // New default values in current selection is invalid\n if (storageClasses.length > 0) {\n const filterLogSearch = storageClasses.filter(\n (item: any) => item.value === logSearchSelectedStorageClass\n );\n if (filterLogSearch.length === 0) {\n updateField(\"logSearchSelectedStorageClass\", \"default\");\n }\n }\n }, [\n logSearchSelectedStorageClass,\n selectedStorageClass,\n storageClasses,\n updateField,\n ]);\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n \n Audit Log\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"logSearchEnabled\", checked);\n }}\n indicatorLabels={[\"Enabled\", \"Disabled\"]}\n />\n \n \n \n \n \n Deploys a small PostgreSQL database and stores access logs of all\n calls into the tenant.\n \n \n \n \n \n {logSearchEnabled && (\n \n \n ) => {\n updateField(\n \"logSearchSelectedStorageClass\",\n e.target.value as string\n );\n }}\n label=\"Log Search Storage Class\"\n value={logSearchSelectedStorageClass}\n options={configureSTClasses}\n disabled={configureSTClasses.length < 1}\n />\n \n \n
\n \n \n \n )}\n \n \n );\n};\n\nexport default withStyles(styles)(ConfigPrometheus);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nexport const requiredPages = [\n \"nameTenant\",\n \"tenantSize\",\n \"configure\",\n \"affinity\",\n \"identityProvider\",\n \"security\",\n \"encryption\",\n];\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Button } from \"mds\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { requiredPages } from \"./common\";\nimport { createTenantAsync } from \"./thunks/createTenantThunk\";\n\nconst CreateTenantButton = () => {\n const dispatch = useAppDispatch();\n\n const addSending = useSelector(\n (state: AppState) => state.createTenant.addingTenant\n );\n\n const validPages = useSelector(\n (state: AppState) => state.createTenant.validPages\n );\n\n const selectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageClass\n );\n\n const enabled =\n !addSending &&\n selectedStorageClass !== \"\" &&\n requiredPages.every((v) => validPages.includes(v));\n\n return (\n {\n dispatch(createTenantAsync());\n }}\n disabled={!enabled}\n key={`button-AddTenant-Create`}\n label={\"Create\"}\n />\n );\n};\n\nexport default CreateTenantButton;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport CredentialsPrompt from \"../../Common/CredentialsPrompt/CredentialsPrompt\";\nimport { resetAddTenantForm } from \"./createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport { useNavigate } from \"react-router-dom\";\n\nconst NewTenantCredentials = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n\n const showNewCredentials = useSelector(\n (state: AppState) => state.createTenant.showNewCredentials\n );\n const createdAccount = useSelector(\n (state: AppState) => state.createTenant.createdAccount\n );\n\n return (\n \n {showNewCredentials && (\n {\n dispatch(resetAddTenantForm());\n navigate(\"/tenants\");\n }}\n entity=\"Tenant\"\n />\n )}\n \n );\n};\n\nexport default NewTenantCredentials;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport get from \"lodash/get\";\nimport { useSelector } from \"react-redux\";\nimport Grid from \"@mui/material/Grid\";\nimport { LinearProgress } from \"@mui/material\";\n\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n modalBasic,\n settingsCommon,\n wizardCommon,\n} from \"../../Common/FormComponents/common/styleLibrary\";\nimport GenericWizard from \"../../Common/GenericWizard/GenericWizard\";\nimport {\n IWizardButton,\n IWizardElement,\n} from \"../../Common/GenericWizard/types\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport Configure from \"./Steps/Configure\";\nimport IdentityProvider from \"./Steps/IdentityProvider\";\nimport Security from \"./Steps/Security\";\nimport Encryption from \"./Steps/Encryption\";\nimport Affinity from \"./Steps/Affinity\";\nimport PageHeader from \"../../Common/PageHeader/PageHeader\";\nimport Images from \"./Steps/Images\";\nimport PageLayout from \"../../Common/Layout/PageLayout\";\nimport BackLink from \"../../../../common/BackLink\";\nimport TenantResources from \"./Steps/TenantResources/TenantResources\";\nimport ConfigLogSearch from \"./Steps/ConfigLogSearch\";\nimport ConfigPrometheus from \"./Steps/ConfigPrometheus\";\nimport {\n IMkEnvs,\n resourcesConfigurations,\n} from \"./Steps/TenantResources/utils\";\nimport HelpBox from \"../../../../common/HelpBox\";\nimport { StorageIcon } from \"../../../../icons\";\nimport { selFeatures } from \"../../consoleSlice\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { resetAddTenantForm } from \"./createTenantSlice\";\nimport CreateTenantButton from \"./CreateTenantButton\";\nimport NewTenantCredentials from \"./NewTenantCredentials\";\nimport { useNavigate } from \"react-router-dom\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n pageBox: {\n border: \"1px solid #EAEAEA\",\n },\n ...modalBasic,\n ...wizardCommon,\n ...settingsCommon,\n })\n);\n\nconst AddTenant = () => {\n const dispatch = useAppDispatch();\n const navigate = useNavigate();\n const classes = useStyles();\n\n const features = useSelector(selFeatures);\n\n // Fields\n const addSending = useSelector(\n (state: AppState) => state.createTenant.addingTenant\n );\n const [formRender, setFormRender] = useState(null);\n\n useEffect(() => {\n let setConfiguration = IMkEnvs.default;\n\n if (features && features.length !== 0) {\n const possibleVariables = Object.keys(resourcesConfigurations);\n\n possibleVariables.forEach((element) => {\n if (features.includes(element)) {\n setConfiguration = get(\n resourcesConfigurations,\n element,\n IMkEnvs.default\n );\n }\n });\n }\n\n setFormRender(setConfiguration);\n }, [features]);\n\n const cancelButton = {\n label: \"Cancel\",\n type: \"other\",\n enabled: true,\n action: () => {\n dispatch(resetAddTenantForm());\n navigate(\"/tenants\");\n },\n };\n\n const createButton: IWizardButton = {\n componentRender: ,\n };\n\n const wizardSteps: IWizardElement[] = [\n {\n label: \"Setup\",\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Configure\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Images\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Pod Placement\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Identity Provider\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Security\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Encryption\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Audit Log\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n {\n label: \"Monitoring\",\n advancedOnly: true,\n componentRender: ,\n buttons: [cancelButton, createButton],\n },\n ];\n\n let filteredWizardSteps = wizardSteps;\n\n return (\n \n \n {\n dispatch(resetAddTenantForm());\n }}\n />\n }\n />\n\n \n {addSending && (\n \n \n \n )}\n \n \n \n {formRender === IMkEnvs.aws && (\n \n }\n help={\n \n Performance Optimized: Uses the gp3 EBS storage\n class class configured at 1,000Mi/s throughput and 16,000\n IOPS, however the minimum volume size for this type of EBS\n volume is 32Gi.\n \n \n Storage Optimized: Uses the sc1 EBS storage\n class, however the minimum volume size for this type of EBS\n volume is \n 16Ti to unlock their maximum throughput speed of\n 250Mi/s.\n \n }\n />\n \n )}\n \n \n );\n};\n\nexport default AddTenant;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport { Grid } from \"@mui/material\";\nimport LDAPIcon from \"../../../icons/LDAPIcon\";\nimport { OIDCIcon } from \"../../../icons\";\nimport { UsersIcon } from \"../../../icons\";\n\nexport const OIDCLogoElement = () => {\n return (\n \n \n \n \n Open ID\n \n );\n};\n\nexport const LDAPLogoElement = () => {\n return (\n \n \n \n \n LDAP / Active Directory\n \n );\n};\n\nexport const BuiltInLogoElement = () => {\n return (\n \n \n \n \n Built-in\n \n );\n};\n","import React from \"react\";\nimport Typography from \"@mui/material/Typography\";\nimport { Theme } from \"@mui/material/styles\";\n\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n errorBlock: {\n color: theme.palette?.error.main || \"#C83B51\",\n },\n });\n\ninterface IErrorBlockProps {\n classes: any;\n errorMessage: string;\n withBreak?: boolean;\n}\n\nconst ErrorBlock = ({\n classes,\n errorMessage,\n withBreak = true,\n}: IErrorBlockProps) => {\n return (\n \n {withBreak && }\n \n {errorMessage}\n \n \n );\n};\n\nexport default withStyles(styles)(ErrorBlock);\n"],"names":["withStyles","theme","createStyles","root","border","borderRadius","backgroundColor","paddingLeft","paddingTop","paddingBottom","paddingRight","leftItems","fontSize","fontWeight","marginBottom","display","alignItems","marginRight","height","width","helpText","classes","iconComponent","title","help","className","container","item","xs","props","xmlns","fill","viewBox","id","d","transform","clipPath","flexFlow","padding","inputWithCopy","background","inputLabel","fieldBasic","label","value","OutlinedInput","readOnly","endAdornment","InputAdornment","position","TooltipWrapper","tooltip","text","onClick","onMouseDown","style","icon","download","filename","element","document","createElement","setAttribute","body","appendChild","click","removeChild","warningBlock","color","margin","credentialTitle","buttonContainer","justifyContent","marginTop","credentialsPanel","overflowY","maxHeight","promptTitle","buttonSpacer","newServiceAccount","open","closeModal","entity","consoleCreds","get","idp","ModalWrapper","modalOpen","onClose","titleIcon","Grid","formScrollable","Array","isArray","map","credentialsPair","index","accessKey","secretKey","undefined","WarnIcon","consoleExtras","itemMap","url","api","path","JSON","stringify","variant","length","allCredentials","tooltipHelper","valueString","maxWidth","whiteSpace","overflow","textOverflow","fileInputField","fileInputStyles","textBoxContainer","onChange","name","disabled","required","error","accept","useState","showFileSelector","setShowSelector","fieldBottom","fieldContainer","errorInField","InputLabel","htmlFor","fieldLabelError","tooltipContainer","Tooltip","placement","HelpIcon","type","e","fileName","evt","callback","file","target","files","reader","FileReader","readAsDataURL","onload","fileBase64","result","fileArray","toString","split","fileProcess","data","IconButton","component","disableRipple","disableFocusRipple","size","Cancel","ErrorBlock","errorMessage","fileReselect","AttachFile","deleteDialogStyles","content","customDialogSize","snackBarCommon","children","wideLimit","noContentPadding","dispatch","useAppDispatch","openSnackbar","setOpenSnackbar","modalSnackMessage","useSelector","state","system","modalSnackBar","useEffect","setModalSnackMessage","message","customSize","paper","fullWidth","detailedErrorMsg","scroll","event","reason","titleText","closeContainer","closeButton","isModal","snackBarModal","ContentProps","snackBar","errorSnackBar","autoHideDuration","errorProps","cloneElement","configSectionItem","tenantCustomizationFields","marginLeft","containerItem","fieldGroup","createTenantCommon","responsiveSectionItem","wrapperContainer","overlayAction","modalBasic","wizardCommon","exposeMinIO","createTenant","fields","configure","exposeConsole","setDomains","consoleDomain","minioDomains","tenantCustom","tenantSecurityContext","validationErrors","setValidationErrors","updateField","useCallback","field","updateAddField","pageName","customAccountValidation","fieldKey","runAsUser","customValidation","parseInt","customValidationMessage","runAsGroup","fsGroup","minioExtraValidations","validation","pattern","customPatternMessage","commonVal","commonFormValidation","isPageValid","valid","Object","keys","cleanValidation","fieldName","clearValidationError","Paper","paperWrapper","headerElement","h3Section","descriptionText","FormSwitchWrapper","checked","InputBoxWrapper","placeholder","domain","copyDomains","updateMinIODomain","addNewMinIODomain","Add","removeMinIODomain","RemoveIcon","multiContainer","min","SelectWrapper","fsGroupChangePolicy","options","runAsNonRoot","useStyles","makeStyles","adUserDnRows","buttonTray","formFieldStyles","idpSelection","identityProvider","ADURL","ADSkipTLS","ADServerInsecure","ADGroupSearchBaseDN","ADGroupSearchFilter","ADUserDNs","ADGroupDNs","ADLookupBindDN","ADLookupBindPassword","ADUserDNSearchBaseDN","ADUserDNSearchFilter","ADServerStartTLS","customIDPValidation","Fragment","formFieldRow","Typography","gutterBottom","_","setIDPADUsrAtIndex","userDN","addIDPADUsrAtIndex","removeIDPADUsrAtIndex","Delete","setIDPADGroupAtIndex","addIDPADGroupAtIndex","removeIDPADGroupAtIndex","openIDConfigurationURL","openIDClientID","openIDSecretID","openIDCallbackURL","openIDClaimName","openIDScopes","shortened","gridTemplateColumns","gridGap","accessKeys","secretKeys","i","push","setIDPUsrAtIndex","setIDPPwdAtIndex","addIDPNewKeyPair","removeIDPKeyPairAtIndex","getRandomString","Casino","protocolRadioOptions","RadioGroupSelector","currentSelection","setIDP","selectorOptions","FeatureItem","description","Box","sx","fontStyle","namespace","nameTenant","tenantName","flex","CertificateIcon","href","rel","minioCertificateRows","borderBottom","fileItem","minWidth","minioCertsContainer","minioCACertsRow","rowActions","enableTLS","security","enableAutoCert","enableCustomCerts","minioCertificates","certificates","minioServerCertificates","minioClientCertificates","caCertificates","minioCAsCertificates","spacing","keyPair","FileSelector","encodedValue","addFileToKeyPair","key","cert","addKeyPair","deleteKeyPair","addFileToClientKeyPair","addClientKeyPair","deleteClientKeyPair","addFileToCaCertificates","addCaCertificate","deleteCaCertificate","vaultEndpoint","encryption","vaultEngine","vaultNamespace","vaultPrefix","vaultAppRoleEngine","vaultId","vaultSecret","vaultRetry","vaultPing","vaultCertificate","vaultCA","encryptionValidation","mutualTlsConfig","addFileVaultCert","addFileVaultCa","azureEndpoint","azureTenantID","azureClientID","azureClientSecret","gcpProjectID","gcpEndpoint","gcpClientEmail","gcpClientID","gcpPrivateKeyID","gcpPrivateKey","gemaltoCA","gemaltoEndpoint","gemaltoToken","gemaltoDomain","gemaltoRetry","addFileGemaltoCa","awsEndpoint","awsRegion","awsKMSKey","awsAccessKey","awsSecretKey","awsToken","encryptionTypeOptions","rightSpacer","responsiveContainer","replicas","enableEncryption","encryptionType","enableCustomCertsForKES","serverCertificate","clientCertificate","kesSecurityContext","encryptionAvailable","filter","encoded_key","encoded_cert","textAlign","indicatorLabels","hrClass","addFileServerCert","addFileClientCert","affinityConfigField","affinityFieldLabel","radioField","affinityLabelKey","affinityLabelValue","affinityRow","podAffinity","affinity","nodeSelectorLabels","withPodAntiAffinity","keyValuePairs","nodeSelectorPairs","tolerations","loading","setLoading","keyValueMap","setKeyValueMap","keyOptions","setKeyOptions","then","res","k","catch","err","setModalErrorSnackMessage","vl","kvp","kvs","a","indexOf","join","splittedLabels","forEach","splitItem","updateToleration","alterToleration","setTolerationInfo","tolerationValue","affinityHelpText","newKey","newLKP","arrCp","setKeyValuePairs","v","AddIcon","tol","TolerationSelector","effect","onEffectChange","tolerationKey","onTolerationKeyChange","operator","onOperatorChange","onValueChange","tolerationSeconds","seconds","onSecondsChange","addNewToleration","removeToleration","customImage","imageName","customDockerhub","imageRegistry","imageRegistryUsername","imageRegistryPassword","prometheusCustom","prometheusEnabled","logSearchCustom","logSearchEnabled","logSearchVolumeSize","prometheusVolumeSize","logSearchSelectedStorageClass","logSearchImage","kesImage","logSearchPostgresImage","logSearchPostgresInitImage","prometheusSelectedStorageClass","prometheusImage","prometheusSidecarImage","prometheusInitImage","table","nodes","tenantSize","memoryNode","resourcesMemoryRequest","ecParity","distribution","ecParityCalc","cpuToUse","resourcesCPURequest","integrationSelection","usableInformation","storageFactors","find","erasureCode","Divider","Table","TableBody","TableRow","TableCell","scope","align","typeSelection","storageClass","disks","niceBytes","pvSize","persistentVolumes","rawCapacity","maxCapacity","Math","floor","maxFailureTolerations","CPU","memory","drivesPerServer","driveSize","sizeUnit","wrapText","wordWrap","addNamespaceLoading","addNSLoading","addNamespaceOpen","addNSOpen","ConfirmDialog","confirmText","confirmButtonProps","isOpen","isLoading","onConfirm","createNamespaceAsync","closeAddNSModal","confirmationContent","LinearProgress","DialogContentText","formToRender","showNSCreateButton","namespaceError","openAddNSConfirm","debounceNamespace","useMemo","debounce","validateNamespaceAsync","cancel","setNamespace","overlayId","overlayIcon","openAddNSModal","NameTenantField","tenantNameError","setTenantName","sizePreview","selectedStorageClass","selectedStorageType","storageClasses","features","selFeatures","isValid","IMkEnvs","minHeight","setStorageType","storageType","mkPanelConfigurations","TenantSize","formRender","setFormRender","setConfiguration","resourcesConfigurations","includes","logSearchEnabledFields","fieldSpaceTop","logSearchSecurityContext","logSearchPostgresSecurityContext","configureSTClasses","overlayObject","InputUnitMenu","onUnitChange","unitSelected","unitsList","prometheusEnabledFields","prometheusSecurityContext","requiredPages","addSending","addingTenant","validPages","enabled","every","createTenantAsync","navigate","useNavigate","showNewCredentials","createdAccount","CredentialsPrompt","resetAddTenantForm","pageBox","settingsCommon","cancelButton","action","createButton","componentRender","filteredWizardSteps","buttons","advancedOnly","PageHeader","BackLink","to","executeOnClick","PageLayout","GenericWizard","wizardSteps","HelpBox","OIDCLogoElement","columnGap","LDAPLogoElement","BuiltInLogoElement","errorBlock","palette","main","withBreak"],"sourceRoot":""}
\ No newline at end of file
diff --git a/portal-ui/build/static/js/839.c37e55ae.chunk.js b/portal-ui/build/static/js/839.c37e55ae.chunk.js
new file mode 100644
index 000000000..f5814574f
--- /dev/null
+++ b/portal-ui/build/static/js/839.c37e55ae.chunk.js
@@ -0,0 +1,2 @@
+"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[839],{23804:function(e,n,t){t(72791);var r=t(11135),a=t(25787),i=t(61889),s=t(80184);n.Z=(0,a.Z)((function(e){return(0,r.Z)({root:{border:"1px solid #E2E2E2",borderRadius:2,backgroundColor:"#FBFAFA",paddingLeft:25,paddingTop:31,paddingBottom:21,paddingRight:30},leftItems:{fontSize:16,fontWeight:"bold",marginBottom:15,display:"flex",alignItems:"center","& .min-icon":{marginRight:15,height:28,width:38}},helpText:{fontSize:16,paddingLeft:5}})}))((function(e){var n=e.classes,t=e.iconComponent,r=e.title,a=e.help;return(0,s.jsx)("div",{className:n.root,children:(0,s.jsxs)(i.ZP,{container:!0,children:[(0,s.jsxs)(i.ZP,{item:!0,xs:12,className:n.leftItems,children:[t,r]}),(0,s.jsx)(i.ZP,{item:!0,xs:12,className:n.helpText,children:a})]})})}))},46707:function(e,n,t){var r=t(1413),a=(t(72791),t(80184));n.Z=function(e){return(0,a.jsxs)("svg",(0,r.Z)((0,r.Z)({xmlns:"http://www.w3.org/2000/svg",className:"min-icon",fill:"currentcolor",viewBox:"0 0 256 256"},e),{},{children:[(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"certificate_svg__a",children:(0,a.jsx)("path",{"data-name":"Rect\\xE1ngulo 2156",fill:"#07193e",d:"M0 0h256v222.048H0z"})})}),(0,a.jsxs)("g",{"data-name":"Grupo 4763",transform:"translate(0 17)",clipPath:"url(#certificate_svg__a)",fill:"#07193e",children:[(0,a.jsx)("path",{"data-name":"Trazado 8152",d:"M240-.002H16a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h120l4.64-5.6 7.44-9.12A66.72 66.72 0 0 1 256 98.958v-82.96a16 16 0 0 0-16-16m-130.96 149.7H47.3a7.3 7.3 0 1 1 0-14.592h61.74a7.3 7.3 0 1 1 0 14.592m0-56H47.3a7.3 7.3 0 1 1 0-14.592h61.74a7.3 7.3 0 0 1 0 14.592m66.96-39.3a6.419 6.419 0 0 1-6.4 6.4H46.4a6.419 6.419 0 0 1-6.4-6.4v-1.792a6.419 6.419 0 0 1 6.4-6.4h123.2a6.419 6.419 0 0 1 6.4 6.4Z"}),(0,a.jsx)("path",{"data-name":"Trazado 8153",d:"M256 137.486a50.96 50.96 0 1 0-86.16 36.72l-15.52 18.96 7.2 28.88 29.28-35.68a50.018 50.018 0 0 0 28.4 0l29.28 35.68 7.2-28.88-15.52-18.96a50.75 50.75 0 0 0 15.84-36.72m-50.928 29.688a29.688 29.688 0 0 1-.072-59.376h.072a29.688 29.688 0 0 1 0 59.376"})]}),(0,a.jsx)("path",{"data-name":"Rect\\xE1ngulo 2157",fill:"none",d:"M0 0h256v256H0z"})]}))}},37798:function(e,n,t){t.r(n),t.d(n,{default:function(){return b}});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(38734),g=t(23814),v=t(27454),y=t(80184),j=(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)({},g.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,y.jsxs)("div",{className:s.container,children:[(0,y.jsxs)("div",{className:s.inputLabel,children:[t,":"]}),(0,y.jsx)("div",{className:s.inputWithCopy,children:(0,y.jsx)(m.Z,{value:a,readOnly:!0,endAdornment:(0,y.jsx)(f.Z,{position:"end",children:(0,y.jsx)(v.Z,{tooltip:"Copy",children:(0,y.jsx)(h(),{text:a,children:(0,y.jsx)(o.z,{id:"copy-clipboard","aria-label":"copy",onClick:function(){},onMouseDown:function(){},style:{width:"28px",height:"28px",padding:"0px"},icon:(0,y.jsx)(p.TIy,{})})})})})})})]})})),Z=t(89357),C=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)},b=(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,y.jsx)(u.Z,{modalOpen:i,onClose:function(){l()},title:(0,y.jsx)("div",{className:n.promptTitle,children:(0,y.jsxs)("div",{children:["New ",c," Created"]})}),titleIcon:(0,y.jsx)(p.tVY,{}),children:(0,y.jsxs)(d.ZP,{container:!0,children:[(0,y.jsxs)(d.ZP,{item:!0,xs:12,className:n.formScrollable,children:["A new ",c," has been created with the following details:",!f&&m&&(0,y.jsx)(a.Fragment,{children:(0,y.jsxs)(d.ZP,{item:!0,xs:12,className:n.credentialsPanel,children:[(0,y.jsx)("div",{className:n.credentialTitle,children:"Console Credentials"}),Array.isArray(m)&&m.map((function(e,n){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:e.accessKey}),(0,y.jsx)(j,{label:"Secret Key",value:e.secretKey})]})})),!Array.isArray(m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:m.accessKey}),(0,y.jsx)(j,{label:"Secret Key",value:m.secretKey})]})]})}),(null===m||void 0===m)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(j,{label:"Access Key",value:t.accessKey||""}),(0,y.jsx)(j,{label:"Secret Key",value:t.secretKey||""})]}),f?(0,y.jsx)("div",{className:n.warningBlock,children:"Please Login via the configured external identity provider."}):(0,y.jsxs)("div",{className:n.warningBlock,children:[(0,y.jsx)(Z.Z,{}),(0,y.jsx)("span",{children:"Write these down, as this is the only time the secret will be displayed."})]})]}),(0,y.jsx)(d.ZP,{item:!0,xs:12,className:n.buttonContainer,children:!f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.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,y.jsx)(o.z,{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"};C("credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,y.jsx)(p._8t,{}),variant:"callAction"})}),Array.isArray(m)&&m.length>1&&(0,y.jsx)(v.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,y.jsx)(o.z,{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}})));C("all_credentials.json",JSON.stringify((0,r.Z)({},e)))},icon:(0,y.jsx)(p._8t,{}),variant:"callAction",color:"primary"})})]})})]})})}))},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(84570),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,P=void 0===A?"":A,T=(0,i.useState)(!1),I=(0,r.Z)(T,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.Z,{})})})})]}),k||""===P?(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}),""!==P&&(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:P}),(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,{})})]})]})})}))},56028:function(e,n,t){var r=t(29439),a=t(1413),i=t(72791),s=t(60364),o=t(13400),l=t(55646),c=t(5574),u=t(65661),d=t(39157),m=t(11135),f=t(25787),x=t(23814),h=t(25469),p=t(29823),g=t(28057),v=t(87995),y=t(80184);n.Z=(0,f.Z)((function(e){return(0,m.Z)((0,a.Z)((0,a.Z)({},x.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},x.sN))}))((function(e){var n=e.onClose,t=e.modalOpen,m=e.title,f=e.children,x=e.classes,j=e.wideLimit,Z=void 0===j||j,C=e.noContentPadding,b=e.titleIcon,_=void 0===b?null:b,S=(0,h.TL)(),N=(0,i.useState)(!1),A=(0,r.Z)(N,2),P=A[0],T=A[1],I=(0,s.v9)((function(e){return e.system.modalSnackBar}));(0,i.useEffect)((function(){S((0,v.MK)(""))}),[S]),(0,i.useEffect)((function(){if(I){if(""===I.message)return void T(!1);"error"!==I.type&&T(!0)}}),[I]);var k=Z?{classes:{paper:x.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},w="";return I&&(w=I.detailedErrorMsg,(""===I.detailedErrorMsg||I.detailedErrorMsg.length<5)&&(w=I.message)),(0,y.jsxs)(c.Z,(0,a.Z)((0,a.Z)({open:t,classes:x},k),{},{scroll:"paper",onClose:function(e,t){"backdropClick"!==t&&n()},className:x.root,children:[(0,y.jsxs)(u.Z,{className:x.title,children:[(0,y.jsxs)("div",{className:x.titleText,children:[_," ",m]}),(0,y.jsx)("div",{className:x.closeContainer,children:(0,y.jsx)(o.Z,{"aria-label":"close",id:"close",className:x.closeButton,onClick:n,disableRipple:!0,size:"small",children:(0,y.jsx)(p.Z,{})})})]}),(0,y.jsx)(g.Z,{isModal:!0}),(0,y.jsx)(l.Z,{open:P,className:x.snackBarModal,onClose:function(){T(!1),S((0,v.MK)(""))},message:w,ContentProps:{className:"".concat(x.snackBar," ").concat(I&&"error"===I.type?x.errorSnackBar:"")},autoHideDuration:I&&"error"===I.type?1e4:5e3}),(0,y.jsx)(d.Z,{className:C?"":x.content,children:f})]}))}))},27454:function(e,n,t){var r=t(1413),a=t(72791),i=t(20068),s=t(80184);n.Z=function(e){var n=e.tooltip,t=e.children,o=e.errorProps,l=void 0===o?null:o;return(0,s.jsx)(i.Z,{title:n,children:(0,s.jsx)("span",{children:l?(0,a.cloneElement)(t,(0,r.Z)({},l)):t})})}},41260:function(e,n,t){t.r(n),t.d(n,{default:function(){return Je}});var r=t(29439),a=t(1413),i=t(72791),s=t(26181),o=t.n(s),l=t(60364),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(10703),v=t(13400),y=t(94721),j=t(84741),Z=t(40968),C=t(37516),b=t(21435),_=t(42419),S=t(51979),N=t(76773),A=t(90673),P=t(80184),T=(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})),T=(0,l.v9)((function(e){return e.createTenant.fields.configure.tenantSecurityContext})),I=(0,i.useState)({}),k=(0,r.Z)(I,2),w=k[0],R=k[1],F=(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:T.runAsUser,customValidation:""===T.runAsUser||parseInt(T.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"tenant_securityContext_runAsGroup",required:!0,value:T.runAsGroup,customValidation:""===T.runAsGroup||parseInt(T.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"tenant_securityContext_fsGroup",required:!0,value:T.fsGroup,customValidation:""===T.fsGroup||parseInt(T.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})),R(r)}),[t,f,T,u,d,m]);var D=function(e){R((0,j.he)(w,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)("h3",{className:n.h3Section,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;F("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;F("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;F("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){F("consoleDomain",e.target.value),D("tenant_securityContext_runAsUser")},label:"Console Domain",value:d,placeholder:"Eg. http://subdomain.domain:port/subpath1/subpath2",error:w.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,F("minioDomains",t)}(e.target.value,r)},label:"MinIO Domain ".concat(r+1),value:e,placeholder:"Eg. http://subdomain.domain",error:w["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.Z,{})})})]},"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;F("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){F("tenantSecurityContext",(0,a.Z)((0,a.Z)({},T),{},{runAsUser:e.target.value})),D("tenant_securityContext_runAsUser")},label:"Run As User",value:T.runAsUser,required:!0,error:w.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){F("tenantSecurityContext",(0,a.Z)((0,a.Z)({},T),{},{runAsGroup:e.target.value})),D("tenant_securityContext_runAsGroup")},label:"Run As Group",value:T.runAsGroup,required:!0,error:w.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){F("tenantSecurityContext",(0,a.Z)((0,a.Z)({},T),{},{fsGroup:e.target.value})),D("tenant_securityContext_fsGroup")},label:"FsGroup",value:T.fsGroup,required:!0,error:w.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:T.fsGroupChangePolicy,onChange:function(e){F("tenantSecurityContext",(0,a.Z)((0,a.Z)({},T),{},{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:T.runAsNonRoot,onChange:function(e){var n=e.target.checked;F("tenantSecurityContext",(0,a.Z)((0,a.Z)({},T),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})}),(0,P.jsx)(y.Z,{}),(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)("h3",{className:n.h3Section,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.Z,{})})})]})]},"tenant-envVar-".concat(r.toString()))}))})]})})),I=t(83679),k=t(20890),w=t(20068),R=t(72455),F=t(27247),D=(0,R.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))})),G=function(){var e=(0,x.TL)(),n=D(),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),R=I[0],G=I[1],K=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"identityProvider",field:n,value:t}))}),[e]),E=function(e){G((0,j.he)(R,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})),G(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:R.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)(k.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:R.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:R["ad-userdn-".concat(r.toString())]||""},"csv-ad-userdn-".concat(r.toString())),(0,P.jsxs)("div",{className:n.buttonTray,children:[(0,P.jsx)(w.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)(w.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)(F.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:R["ad-groupdn-".concat(r.toString())]||""},"csv-ad-groupdn-".concat(r.toString())),(0,P.jsxs)("div",{className:n.buttonTray,children:[(0,P.jsx)(w.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)(w.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)(F.Z,{})})})]})]})},"identityField-".concat(r.toString()))}))})]})]})},K=(0,R.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))})),E=function(){var e=(0,x.TL)(),n=K(),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})})]})},O=t(22918),L=(0,R.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))})),z=function(){var e=(0,x.TL)(),n=L(),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"})),n=(0,l.v9)((function(e){return e.createTenant.fields.nameTenant.tenantName||""}));return(0,P.jsx)(B.Z,{sx:{flex:1,border:"1px solid #eaeaea",borderRadius:"2px",display:"flex",flexFlow:"column",padding:"20px",marginTop:{xs:"0px"}},children:(0,P.jsxs)(B.Z,{sx:{display:"flex",flexFlow:"column"},children:[(0,P.jsx)(W,{icon:(0,P.jsx)(H.Z,{}),description:"TLS Certificates Warning"}),(0,P.jsxs)(B.Z,{sx:{fontSize:"14px",marginBottom:"15px"},children:["Automatic certificate generation is not enabled.",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"If you wish to continue only with ",(0,P.jsx)("b",{children:"custom certificates"})," make sure they are valid for the following internode hostnames, i.e.:",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),(0,P.jsxs)("div",{style:{fontSize:"14px",fontStyle:"italic",color:"#5E5E5E"},children:["minio.",e,(0,P.jsx)("br",{}),"minio.",e,".svc",(0,P.jsx)("br",{}),"minio.",e,".svc.",(0,P.jsx)("br",{}),"*.",n,"-hl.",e,".svc.",(0,P.jsx)("br",{}),"*.",e,".svc."]}),(0,P.jsx)("br",{}),"Replace ",(0,P.jsx)("em",{children:""}),","," ",(0,P.jsx)("em",{children:""})," and",(0,P.jsx)("em",{children:""})," with the actual values for your MinIO tenant.",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"You can learn more at our"," ",(0,P.jsx)("a",{href:"https://docs.min.io/minio/k8s/security/security.html?ref=op#id5",target:"_blank",rel:"noreferrer",children:"documentation"}),"."]})]})})},Q=(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)("h3",{className:n.h3Section,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)($,{})}),(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)(V.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)(V.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.Z,{})})})]})]},"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)(V.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)(V.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.Z,{})})})]})]},"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)(V.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.Z,{})})})]})})]},"minio-CA-certs-".concat(e.id))}))]})]})]})]})]})})),Y=function(e){var n=e.children;return(0,P.jsx)("h1",{style:{margin:0,marginBottom:".8rem",fontSize:"1.3rem"},children:n})},J=(0,R.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.vaultEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultEngine})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultNamespace})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPrefix})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultAppRoleEngine})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultId})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultSecret})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultRetry})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.vaultPing})),g=(0,l.v9)((function(e){return e.createTenant.certificates.vaultCertificate})),v=(0,l.v9)((function(e){return e.createTenant.certificates.vaultCA})),y=(0,i.useState)({}),C=(0,r.Z)(y,2),_=C[0],S=C[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,h.Z)(n),[{fieldKey:"vault_endpoint",required:!0,value:t},{fieldKey:"vault_id",required:!0,value:d},{fieldKey:"vault_secret",required:!0,value:m},{fieldKey:"vault_ping",required:!1,value:p,customValidation:parseInt(p)<0,customValidationMessage:"Value needs to be 0 or greater"},{fieldKey:"vault_retry",required:!1,value:f,customValidation:parseInt(f)<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})),S(r)}),[t,a,d,m,p,f,e]);var A=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),T=function(e){S((0,j.he)(_,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){A("vaultEndpoint",e.target.value),T("vault_endpoint")},label:"Endpoint",value:t,error:_.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){A("vaultEngine",e.target.value),T("vault_engine")},label:"Engine",value:a})}),(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){A("vaultNamespace",e.target.value)},label:"Namespace",value:s})}),(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){A("vaultPrefix",e.target.value)},label:"Prefix",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:"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){A("vaultAppRoleEngine",e.target.value)},label:"Engine",value:u})}),(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){A("vaultId",e.target.value),T("vault_id")},label:"AppRole ID",value:d,error:_.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){A("vaultSecret",e.target.value),T("vault_secret")},label:"AppRole Secret",value:m,error:_.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){A("vaultRetry",e.target.value),T("vault_retry")},label:"Retry (Seconds)",value:f,error:_.vault_retry||""})})]})}),(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:"Mutual TLS authentication (optional)"}),(0,P.jsx)(V.Z,{onChange:function(n,t){e((0,N.cl)({key:"key",fileName:t,value:n})),T("vault_key")},accept:".key,.pem",id:"vault_key",name:"vault_key",label:"Key",value:g.key}),(0,P.jsx)(V.Z,{onChange:function(n,t){e((0,N.cl)({key:"cert",fileName:t,value:n})),T("vault_cert")},accept:".cer,.crt,.cert,.pem",id:"vault_cert",name:"vault_cert",label:"Cert",value:g.cert}),(0,P.jsx)(V.Z,{onChange:function(n,t){e((0,N.fk)({fileName:t,value:n})),T("vault_ca")},accept:".cer,.crt,.cert,.pem",id:"vault_ca",name:"vault_ca",label:"CA",value:v.cert})]})}),(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){A("vaultPing",e.target.value),T("vault_ping")},label:"Ping (Seconds)",value:p,error:_.vault_ping||""})]})})]})},ee=(0,R.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=(0,x.TL)(),n=ee(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureTenantID})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientID})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.azureClientSecret})),u=(0,i.useState)({}),d=(0,r.Z)(u,2),m=d[0],f=d[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,h.Z)(n),[{fieldKey:"azure_endpoint",required:!0,value:t},{fieldKey:"azure_tenant_id",required:!0,value:a},{fieldKey:"azure_client_id",required:!0,value:s},{fieldKey:"azure_client_secret",required:!0,value:o}]);var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),f(r)}),[t,a,s,o,e]);var p=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),g=function(e){f((0,j.he)(m,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){p("azureEndpoint",e.target.value),g("azure_endpoint")},label:"Endpoint",value:t,error:m.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){p("azureTenantID",e.target.value),g("azure_tenant_id")},label:"Tenant ID",value:a,error:m.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){p("azureClientID",e.target.value),g("azure_client_id")},label:"Client ID",value:s,error:m.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){p("azureClientSecret",e.target.value),g("azure_client_secret")},label:"Client Secret",value:o,error:m.azure_client_secret||""})})]})})]})},te=(0,R.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=te(),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})})]})})]})},ae=(0,R.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.certificates.gemaltoCA})),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=[];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 t=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(t).length})),p(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||""})})]})}),(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:"Custom CA Root certificate verification"}),(0,P.jsx)(V.Z,{onChange:function(n,t){e((0,N.MX)({fileName:t,value:n})),v("gemalto_ca")},accept:".cer,.crt,.cert,.pem",id:"gemalto_ca",name:"gemalto_ca",label:"CA",value:t.cert})]})})]})},se=(0,R.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))})),oe=function(){var e=(0,x.TL)(),n=se(),t=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsEndpoint})),a=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsRegion})),s=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsKMSKey})),o=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsAccessKey})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsSecretKey})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.awsToken})),m=(0,i.useState)({}),f=(0,r.Z)(m,2),p=f[0],g=f[1];(0,i.useEffect)((function(){var n=[];n=[].concat((0,h.Z)(n),[{fieldKey:"aws_endpoint",required:!0,value:t},{fieldKey:"aws_region",required:!0,value:a},{fieldKey:"aws_accessKey",required:!0,value:o},{fieldKey:"aws_secretKey",required:!0,value:u}]);var r=(0,Z.R)(n);e((0,N.NO)({pageName:"encryption",valid:0===Object.keys(r).length})),g(r)}),[t,a,u,o,e]);var v=(0,i.useCallback)((function(n,t){e((0,N.HM)({pageName:"encryption",field:n,value:t}))}),[e]),y=function(e){g((0,j.he)(p,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){v("awsEndpoint",e.target.value),y("aws_endpoint")},label:"Endpoint",value:t,error:p.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){v("awsRegion",e.target.value),y("aws_region")},label:"Region",value:a,error:p.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){v("awsKMSKey",e.target.value)},label:"KMS Key",value:s})}),(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){v("awsAccessKey",e.target.value),y("aws_accessKey")},label:"Access Key",value:o,error:p.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){v("awsSecretKey",e.target.value),y("aws_secretKey")},label:"Secret Key",value:u,error:p.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){v("awsToken",e.target.value)},label:"Token",value:d})})]})})]})},le=(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.enableEncryption})),u=(0,l.v9)((function(e){return e.createTenant.fields.encryption.encryptionType})),d=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpProjectID})),m=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpEndpoint})),f=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientEmail})),p=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpClientID})),v=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKeyID})),y=(0,l.v9)((function(e){return e.createTenant.fields.encryption.gcpPrivateKey})),_=(0,l.v9)((function(e){return e.createTenant.fields.encryption.enableCustomCertsForKES})),S=(0,l.v9)((function(e){return e.createTenant.fields.security.enableAutoCert})),T=(0,l.v9)((function(e){return e.createTenant.fields.security.enableTLS})),k=(0,l.v9)((function(e){return e.createTenant.certificates.minioServerCertificates})),w=(0,l.v9)((function(e){return e.createTenant.certificates.serverCertificate})),R=(0,l.v9)((function(e){return e.createTenant.certificates.clientCertificate})),F=(0,l.v9)((function(e){return e.createTenant.fields.security.enableCustomCerts})),D=(0,l.v9)((function(e){return e.createTenant.fields.encryption.kesSecurityContext})),G=(0,i.useState)({}),K=(0,r.Z)(G,2),E=K[0],O=K[1],L=!1;T&&(S||k&&k.filter((function(e){return e.encoded_key&&e.encoded_cert})).length>0)&&(L=!0);var z=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"encryption",field:e,value:n}))}),[t]),M=function(e){O((0,j.he)(E,e))};return(0,i.useEffect)((function(){var e=[];o&&(e=[].concat((0,h.Z)(e),[{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:D.runAsUser,customValidation:""===D.runAsUser||parseInt(D.runAsUser)<0,customValidationMessage:"runAsUser must be present and be 0 or more"},{fieldKey:"kes_securityContext_runAsGroup",required:!0,value:D.runAsGroup,customValidation:""===D.runAsGroup||parseInt(D.runAsGroup)<0,customValidationMessage:"runAsGroup must be present and be 0 or more"},{fieldKey:"kes_securityContext_fsGroup",required:!0,value:D.fsGroup,customValidation:""===D.fsGroup||parseInt(D.fsGroup)<0,customValidationMessage:"fsGroup must be present and be 0 or more"}]),F&&(e=[].concat((0,h.Z)(e),[{fieldKey:"serverKey",required:!S,value:w.encoded_key},{fieldKey:"serverCert",required:!S,value:w.encoded_cert},{fieldKey:"clientKey",required:!S,value:R.encoded_key},{fieldKey:"clientCert",required:!S,value:R.encoded_cert}])));var n=(0,Z.R)(e);t((0,N.NO)({pageName:"encryption",valid:0===Object.keys(n).length})),O(n)}),[o,u,d,m,f,p,v,y,t,S,F,w.encoded_key,w.encoded_cert,R.encoded_key,R.encoded_cert,D,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)(Y,{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:o,value:"tenant_encryption",id:"tenant-encryption",name:"tenant-encryption",onChange:function(e){var n=e.target.checked;z("enableEncryption",n)},description:"",disabled:!L})})]}),(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)("hr",{className:n.hrClass})}),o&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.encryptionTypeOptions,children:(0,P.jsx)(I.Z,{currentSelection:u,id:"encryptionType",name:"encryptionType",label:"Encryption Options",onChange:function(e){z("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"===u&&(0,P.jsx)(X,{}),"azure"===u&&(0,P.jsx)(ne,{}),"gcp"===u&&(0,P.jsx)(re,{}),"aws"===u&&(0,P.jsx)(oe,{}),"gemalto"===u&&(0,P.jsx)(ie,{}),(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:_||!S,onChange:function(e){var n=e.target.checked;z("enableCustomCertsForKES",n)},label:"Custom Certificates",disabled:!S})}),(_||!S)&&(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 Service Certificates"}),(0,P.jsx)(V.Z,{onChange:function(e,n){t((0,N.$1)({key:"key",fileName:n,value:e})),M("serverKey")},accept:".key,.pem",id:"serverKey",name:"serverKey",label:"Key",error:E.serverKey||"",value:w.key,required:!S}),(0,P.jsx)(V.Z,{onChange:function(e,n){t((0,N.$1)({key:"cert",fileName:n,value:e})),M("serverCert")},accept:".cer,.crt,.cert,.pem",id:"serverCert",name:"serverCert",label:"Cert",error:E.serverCert||"",value:w.cert,required:!S})]})})}),(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:"Mutual TLS authentication with MinIO"}),(0,P.jsx)(V.Z,{onChange:function(e,n){t((0,N.BI)({key:"key",fileName:n,value:e})),M("clientKey")},accept:".key,.pem",id:"clientKey",name:"clientKey",label:"Key",error:E.clientKey||"",value:R.key,required:!S}),(0,P.jsx)(V.Z,{onChange:function(e,n){t((0,N.BI)({key:"cert",fileName:n,value:e})),M("clientCert")},accept:".cer,.crt,.cert,.pem",id:"clientCert",name:"clientCert",label:"Cert",error:E.clientCert||"",value:R.cert,required:!S})]})})})]}),(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){z("replicas",e.target.value),M("replicas")},label:"Replicas",value:s,required:!0,error:E.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){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsUser:e.target.value})),M("kes_securityContext_runAsUser")},label:"Run As User",value:D.runAsUser,required:!0,error:E.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){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsGroup:e.target.value})),M("kes_securityContext_runAsGroup")},label:"Run As Group",value:D.runAsGroup,required:!0,error:E.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){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{fsGroup:e.target.value})),M("kes_securityContext_fsGroup")},label:"FsGroup",value:D.fsGroup,required:!0,error:E.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:D.fsGroupChangePolicy,onChange:function(e){z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{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:D.runAsNonRoot,onChange:function(e){var n=e.target.checked;z("kesSecurityContext",(0,a.Z)((0,a.Z)({},D),{},{runAsNonRoot:n}))},label:"Do not run as Root"})})})]})]})]})]})]})})),ce=t(4942),ue=t(81207),de=t(47919),me=t(45660),fe=t(87995),xe=(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),T=(0,r.Z)(_,2),k=T[0],w=T[1],R=(0,i.useState)({}),F=(0,r.Z)(R,2),D=F[0],G=F[1],K=(0,i.useState)([]),E=(0,r.Z)(K,2),O=E[0],L=E[1],z=(0,i.useCallback)((function(e,n){t((0,N.HM)({pageName:"affinity",field:e,value:n}))}),[t]);(0,i.useEffect)((function(){k&&ue.Z.invoke("GET","/api/v1/nodes/labels").then((function(e){w(!1),G(e);var n=[];for(var t in e)n.push({label:t,value:t});L(n)})).catch((function(e){w(!1),t((0,fe.zb)(e)),G({})}))}),[t,k]),(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("&");z("nodeSelectorLabels",e)}}),[d,z]),(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 M=function(e,n,r){var i=(0,a.Z)((0,a.Z)({},m[e]),{},(0,ce.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)("h3",{className:n.h3Section,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)(I.Z,{currentSelection:s,id:"affinity-options",name:"affinity-options",label:" ",onChange:function(e){z("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;z("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:[O.length>0&&(0,P.jsx)(A.Z,{onChange:function(e){var n=e.target.value,a={key:n,value:D[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:O}),0===O.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:[O.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:D[e.key]?D[e.key].map((function(e){return{label:e,value:e}})):[]}),0===O.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);O.length>0?e.push({key:O[0].value,value:D[O[0].value][0]}):e.push({key:"",value:""}),t((0,N.i$)(e))},disabled:r!==d.length-1,children:(0,P.jsx)(de.Z,{})})}),(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.Z,{})})})]})]},"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)(me.Z,{effect:e.effect,onEffectChange:function(e){M(r,"effect",e)},tolerationKey:e.key,onTolerationKeyChange:function(e){M(r,"key",e)},operator:e.operator,onOperatorChange:function(e){M(r,"operator",e)},value:e.value,onValueChange:function(e){M(r,"value",e)},tolerationSeconds:(null===(a=e.tolerationSeconds)||void 0===a?void 0:a.seconds)||0,onSecondsChange:function(e){M(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)(de.Z,{})})}),(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.Z,{})})})]},"affinity-keyVal-".concat(r.toString()))}))})]})})]})})),he=t(32291),pe=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},m.DF),m.oO),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})),T=(0,l.v9)((function(e){return e.createTenant.fields.configure.kesImage})),I=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresImage})),k=(0,l.v9)((function(e){return e.createTenant.fields.configure.logSearchPostgresInitImage})),w=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSelectedStorageClass})),R=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusImage})),F=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusSidecarImage})),D=(0,l.v9)((function(e){return e.createTenant.fields.configure.prometheusInitImage})),G=(0,i.useState)({}),K=(0,r.Z)(G,2),E=K[0],O=K[1],L=(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:w,customValidation:""===w,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:T,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/kes:VERSION'"},{fieldKey:"logSearchPostgresImage",required:!1,value:I,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/postgres:VERSION'"},{fieldKey:"logSearchPostgresInitImage",required:!1,value:k,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'library/busybox:VERSION'"},{fieldKey:"prometheusImage",required:!1,value:R,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'minio/prometheus:VERSION'"},{fieldKey:"prometheusSidecarImage",required:!1,value:F,pattern:/^((.*?)\/(.*?):(.+))$/,customPatternMessage:"Format must be of form: 'project/container:VERSION'"},{fieldKey:"prometheusInitImage",required:!1,value:D,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})),O(n)}),[a,s,A,T,I,k,R,F,D,o,u,d,m,t,f,p,v,w,_,S,y]);var z=function(e){O((0,j.he)(E,e))};return(0,P.jsxs)(g.Z,{className:n.paperWrapper,children:[(0,P.jsxs)("div",{className:n.headerElement,children:[(0,P.jsx)("h3",{className:n.h3Section,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){L("imageName",e.target.value),z("image")},label:"MinIO",value:s,error:E.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){L("kesImage",e.target.value),z("kesImage")},label:"KES",value:T,error:E.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){L("logSearchImage",e.target.value),z("logSearchImage")},label:"API",value:A,error:E.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){L("logSearchPostgresImage",e.target.value),z("logSearchPostgresImage")},label:"PostgreSQL",value:I,error:E.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){L("logSearchPostgresInitImage",e.target.value),z("logSearchPostgresInitImage")},label:"PostgreSQL Init",value:k,error:E.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){L("prometheusImage",e.target.value),z("prometheusImage")},label:"Prometheus",value:R,error:E.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){L("prometheusSidecarImage",e.target.value),z("prometheusSidecarImage")},label:"Prometheus Sidecar",value:F,error:E.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){L("prometheusInitImage",e.target.value),z("prometheusInitImage")},label:"Prometheus Init",value:D,error:E.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;L("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){L("imageRegistry",e.target.value)},label:"Endpoint",value:u,error:E.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){L("imageRegistryUsername",e.target.value)},label:"Username",value:d,error:E.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){L("imageRegistryPassword",e.target.value)},label:"Password",value:m,error:E.registryPassword||"",required:!0})})]})]})})),ge=t(74794),ve=t(84669),ye=t(79836),je=t(53382),Ze=t(53994),Ce=t(35855),be=t(45248),_e=(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)(ye.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(je.Z,{children:[(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Number of Servers"}),(0,P.jsx)(Ze.Z,{align:"right",children:parseInt(t)>0?t:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Drives per Server"}),(0,P.jsx)(Ze.Z,{align:"right",children:s?s.disks:"-"})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Drive Capacity"}),(0,P.jsx)(Ze.Z,{align:"right",children:s?(0,be.ae)(s.pvSize):"-"})]})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Total Volumes"}),(0,P.jsx)(Ze.Z,{align:"right",children:s?s.persistentVolumes:"-"})]}),""===u.typeSelection&&""===u.storageClass&&(0,P.jsxs)(i.Fragment,{children:[(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Memory per Node"}),(0,P.jsxs)(Ze.Z,{align:"right",children:[r," Gi"]})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{style:{borderBottom:0},scope:"row",children:"CPU Selection"}),(0,P.jsx)(Ze.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)(ye.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(je.Z,{children:[(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"EC Parity"}),(0,P.jsx)(Ze.Z,{align:"right",children:""!==a?a:"-"})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Raw Capacity"}),(0,P.jsx)(Ze.Z,{align:"right",children:(0,be.ae)(o.rawCapacity)})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Usable Capacity"}),(0,P.jsx)(Ze.Z,{align:"right",children:(0,be.ae)(d.maxCapacity)})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{style:{borderBottom:0},scope:"row",children:"Server Failures Tolerated"}),(0,P.jsx)(Ze.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)(ye.Z,{className:n.table,"aria-label":"simple table",size:"small",children:(0,P.jsxs)(je.Z,{children:[(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"CPU"}),(0,P.jsx)(Ze.Z,{align:"right",children:0!==u.CPU?u.CPU:"-"})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Memory"}),(0,P.jsx)(Ze.Z,{align:"right",children:0!==u.memory?"".concat(u.memory," Gi"):"-"})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{scope:"row",children:"Drives per Server"}),(0,P.jsx)(Ze.Z,{align:"right",children:0!==u.drivesPerServer?"".concat(u.drivesPerServer):"-"})]}),(0,P.jsxs)(Ce.Z,{children:[(0,P.jsx)(Ze.Z,{style:{borderBottom:0},scope:"row",children:"Drive Size"}),(0,P.jsxs)(Ze.Z,{style:{borderBottom:0},align:"right",children:[u.driveSize.driveSize,u.driveSize.sizeUnit]})]})]})})]})]})})),Se=t(19720),Ne=t(45884),Ae=t(46078),Pe=t(51691),Te=t(23508),Ie=t(38734),ke=t(98222),we=(0,R.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))})),Re=function(){var e=(0,x.TL)(),n=we(),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)(Ie.EjK,{}),isLoading:r,onConfirm:function(){e((0,ke.QD)())},onClose:function(){e((0,N.pb)())},confirmationContent:(0,P.jsxs)(i.Fragment,{children:[r&&(0,P.jsx)(u.Z,{}),(0,P.jsxs)(Pe.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}),"?"]})]})})},Fe=t(48573),De=t.n(Fe),Ge=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 De()((function(){n((0,ke.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)(Re,{}),(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)(de.Z,{}):null,overlayAction:function(){n((0,N.Oj)())},required:!0})]})},Ke=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||""})},Ee=(0,p.Z)((function(e){return(0,d.Z)((0,a.Z)((0,a.Z)((0,a.Z)({sizePreview:{position:"fixed",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)(Ae.$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===Ne.cy.default&&u.length>0||t!==Ne.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% - 300px)"},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)("h3",{className:n.h3Section,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)(Ke,{})})]}),(0,P.jsx)(c.ZP,{item:!0,xs:12,className:n.formFieldRow,children:(0,P.jsx)(Ge,{formToRender:t})}),t===Ne.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()(Ne.Hd,"".concat(t,".variantSelectorLabel"),"Storage Type"),value:s,options:o()(Ne.Hd,"".concat(t,".variantSelectorValues"),[])})}),t===Ne.cy.default?(0,P.jsx)(Se.Z,{}):o()(Ne.Hd,"".concat(t,".sizingComponent"),null)]})})}),(0,P.jsx)(c.ZP,{item:!0,children:(0,P.jsx)("div",{className:n.sizePreview,children:(0,P.jsx)(_e,{})})})]})})})),Oe=function(){var e=(0,l.v9)(Ae.$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=Ne.cy.default;e&&0!==e.length&&Object.keys(Ne.I8).forEach((function(t){e.includes(t)&&(n=o()(Ne.I8,t,Ne.cy.default))}));s(n)}),[e]),null===a?null:(0,P.jsx)(Ee,{formToRender:a})},Le=t(56578),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}}},logSearchEnabledFields:{marginLeft:20,padding:10,width:"90%",margin:"auto"},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)(Y,{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)("hr",{className:n.hrClass})}),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)(Le.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"})})})]})]})]})]})})),Me=(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},prometheusEnabledFields:{marginLeft:20,padding:10,width:"90%",margin:"auto"}},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)(Y,{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)("hr",{className:n.hrClass})}),(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)(Le.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"})})})]})]})})]})})),Ue=t(23804),qe=t(75952),Ve=["nameTenant","tenantSize","configure","affinity","identityProvider","security","encryption"],Be=t(84218),He=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&&Ve.every((function(e){return t.includes(e)}));return(0,P.jsx)(qe.z,{id:"wizard-button-Create",variant:"callAction",color:"primary",onClick:function(){e((0,Be.e)())},disabled:!a,label:"Create"},"button-AddTenant-Create")},We=t(37798),$e=t(16871),Qe=function(){var e=(0,x.TL)(),n=(0,$e.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)(We.default,{newServiceAccount:r,open:t,closeModal:function(){e((0,N.dS)()),n("/tenants")},entity:"Tenant"})})},Ye=(0,R.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))})),Je=function(){var e=(0,x.TL)(),n=(0,$e.s0)(),t=Ye(),a=(0,l.v9)(Ae.$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=Ne.cy.default;a&&0!==a.length&&Object.keys(Ne.I8).forEach((function(n){a.includes(n)&&(e=o()(Ne.I8,n,Ne.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)(He,{},"create-tenant")},y=[{label:"Setup",componentRender:(0,P.jsx)(Oe,{}),buttons:[g,v]},{label:"Configure",advancedOnly:!0,componentRender:(0,P.jsx)(T,{}),buttons:[g,v]},{label:"Images",advancedOnly:!0,componentRender:(0,P.jsx)(pe,{}),buttons:[g,v]},{label:"Pod Placement",advancedOnly:!0,componentRender:(0,P.jsx)(xe,{}),buttons:[g,v]},{label:"Identity Provider",advancedOnly:!0,componentRender:(0,P.jsx)(q,{}),buttons:[g,v]},{label:"Security",advancedOnly:!0,componentRender:(0,P.jsx)(Q,{}),buttons:[g,v]},{label:"Encryption",advancedOnly:!0,componentRender:(0,P.jsx)(le,{}),buttons:[g,v]},{label:"Audit Log",advancedOnly:!0,componentRender:(0,P.jsx)(ze,{}),buttons:[g,v]},{label:"Monitoring",advancedOnly:!0,componentRender:(0,P.jsx)(Me,{}),buttons:[g,v]}];return(0,P.jsxs)(i.Fragment,{children:[(0,P.jsx)(Qe,{}),(0,P.jsx)(he.Z,{label:(0,P.jsx)(ve.Z,{to:"/tenants",label:"Tenants",executeOnClick:function(){e((0,N.dS)())}})}),(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===Ne.cy.aws&&(0,P.jsx)(c.ZP,{item:!0,xs:12,style:{marginTop:16},children:(0,P.jsx)(Ue.Z,{title:"EBS Volume Configuration.",iconComponent:(0,P.jsx)(Ie.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."]})})})]})]})}},68456:function(e,n,t){t.d(n,{QT:function(){return l},YH:function(){return c},mo:function(){return o}});var r=t(61889),a=t(98021),i=t(38734),s=t(80184),o=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(i.gyG,{width:"16px",height:"16px"})}),(0,s.jsx)(r.ZP,{item:!0,children:"Open ID"})]})},l=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(a.Z,{width:"16px",height:"16px"})}),(0,s.jsx)(r.ZP,{item:!0,children:"LDAP / Active Directory"})]})},c=function(){return(0,s.jsxs)(r.ZP,{container:!0,columnGap:1,children:[(0,s.jsx)(r.ZP,{children:(0,s.jsx)(i.oyc,{width:"16px",height:"16px"})}),(0,s.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})]})}))}}]);
+//# sourceMappingURL=839.c37e55ae.chunk.js.map
\ No newline at end of file
diff --git a/portal-ui/build/static/js/839.c37e55ae.chunk.js.map b/portal-ui/build/static/js/839.c37e55ae.chunk.js.map
new file mode 100644
index 000000000..c0233ebc5
--- /dev/null
+++ b/portal-ui/build/static/js/839.c37e55ae.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/js/839.c37e55ae.chunk.js","mappings":"qKA0EA,KAAeA,EAAAA,EAAAA,IApDA,SAACC,GAAD,OACbC,EAAAA,EAAAA,GAAa,CACXC,KAAM,CACJC,OAAQ,oBACRC,aAAc,EACdC,gBAAiB,UACjBC,YAAa,GACbC,WAAY,GACZC,cAAe,GACfC,aAAc,IAEhBC,UAAW,CACTC,SAAU,GACVC,WAAY,OACZC,aAAc,GACdC,QAAS,OACTC,WAAY,SACZ,cAAe,CACbC,YAAa,GACbC,OAAQ,GACRC,MAAO,KAGXC,SAAU,CACRR,SAAU,GACVL,YAAa,IAzBJ,GAoDf,EAhBgB,SAAC,GAAuD,IAArDc,EAAoD,EAApDA,QAASC,EAA2C,EAA3CA,cAAeC,EAA4B,EAA5BA,MAAOC,EAAqB,EAArBA,KAChD,OACE,gBAAKC,UAAWJ,EAAQlB,KAAxB,UACE,UAAC,KAAD,CAAMuB,WAAS,EAAf,W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AO,UAAAnE,EAAMgpB,eAAN,eAAerhB,MAAMshB,OAAQ,YAH3B,GA4Bf,EAfmB,SAAC,GAIK,IAHvB7nB,EAGsB,EAHtBA,QACAgJ,EAEsB,EAFtBA,aAEsB,IADtB8e,UAAAA,OACsB,SACtB,OACE,UAAC,WAAD,WACGA,IAAa,mBACd,SAAC,IAAD,CAAYpf,UAAU,IAAInD,QAAQ,QAAQnF,UAAWJ,EAAQ2nB,WAA7D,SACG3e,MAIR,G","sources":["common/HelpBox.tsx","icons/CertificateIcon.tsx","screens/Console/Common/CredentialsPrompt/CredentialItem.tsx","screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx","screens/Console/Common/FormComponents/FileSelector/FileSelector.tsx","screens/Console/Common/FormComponents/FileSelector/utils.ts","screens/Console/Common/ModalWrapper/ModalWrapper.tsx","screens/Console/Common/TooltipWrapper/TooltipWrapper.tsx","screens/Console/Tenants/AddTenant/Steps/Configure.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPActiveDirectory.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPOpenID.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider/IDPBuiltIn.tsx","screens/Console/Tenants/AddTenant/Steps/IdentityProvider.tsx","screens/Console/Tenants/HelpBox/TLSHelpBox.tsx","screens/Console/Tenants/AddTenant/Steps/Security.tsx","screens/Console/Common/SectionH1.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/VaultKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/AzureKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/GCPKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/GemaltoKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption/AWSKMSAdd.tsx","screens/Console/Tenants/AddTenant/Steps/Encryption.tsx","screens/Console/Tenants/AddTenant/Steps/Affinity.tsx","screens/Console/Tenants/AddTenant/Steps/Images.tsx","screens/Console/Tenants/AddTenant/Steps/SizePreview.tsx","screens/Console/Tenants/AddTenant/Steps/helpers/AddNamespaceModal.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/NamespaceSelector.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/NameTenantMain.tsx","screens/Console/Tenants/AddTenant/Steps/TenantResources/TenantResources.tsx","screens/Console/Tenants/AddTenant/Steps/ConfigLogSearch.tsx","screens/Console/Tenants/AddTenant/Steps/ConfigPrometheus.tsx","screens/Console/Tenants/AddTenant/common.ts","screens/Console/Tenants/AddTenant/CreateTenantButton.tsx","screens/Console/Tenants/AddTenant/NewTenantCredentials.tsx","screens/Console/Tenants/AddTenant/AddTenant.tsx","screens/Console/Tenants/LogoComponents.tsx","screens/shared/ErrorBlock.tsx"],"sourcesContent":["// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport Grid from \"@mui/material/Grid\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n border: \"1px solid #E2E2E2\",\n borderRadius: 2,\n backgroundColor: \"#FBFAFA\",\n paddingLeft: 25,\n paddingTop: 31,\n paddingBottom: 21,\n paddingRight: 30,\n },\n leftItems: {\n fontSize: 16,\n fontWeight: \"bold\",\n marginBottom: 15,\n display: \"flex\",\n alignItems: \"center\",\n \"& .min-icon\": {\n marginRight: 15,\n height: 28,\n width: 38,\n },\n },\n helpText: {\n fontSize: 16,\n paddingLeft: 5,\n },\n });\n\ninterface IHelpBox {\n classes: any;\n iconComponent: any;\n title: string;\n help: any;\n}\n\nconst HelpBox = ({ classes, iconComponent, title, help }: IHelpBox) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(HelpBox);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport * as React from \"react\";\nimport { SVGProps } from \"react\";\n\nconst CertificateIcon = (props: SVGProps) => {\n return (\n \n );\n};\nexport default CertificateIcon;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { InputAdornment, OutlinedInput } from \"@mui/material\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport CopyToClipboard from \"react-copy-to-clipboard\";\nimport { CopyIcon } from \"../../../../icons\";\nimport { fieldBasic } from \"../FormComponents/common/styleLibrary\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n container: {\n display: \"flex\",\n flexFlow: \"column\",\n padding: \"20px 0 8px 0\",\n },\n inputWithCopy: {\n \"& .MuiInputBase-root \": {\n width: \"100%\",\n background: \"#FBFAFA\",\n \"& .MuiInputBase-input\": {\n height: \".8rem\",\n },\n \"& .MuiInputAdornment-positionEnd\": {\n marginRight: \".5rem\",\n \"& .MuiButtonBase-root\": {\n height: \"2rem\",\n },\n },\n },\n \"& .MuiButtonBase-root .min-icon\": {\n width: \".8rem\",\n height: \".8rem\",\n },\n },\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontSize: \".8rem\",\n },\n });\n\nconst CredentialItem = ({\n label = \"\",\n value = \"\",\n classes = {},\n}: {\n label: string;\n value: string;\n classes: any;\n}) => {\n return (\n
\n );\n};\n\nexport default withStyles(styles)(CredentialItem);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport get from \"lodash/get\";\nimport { Theme } from \"@mui/material/styles\";\nimport { Button } from \"mds\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { NewServiceAccount } from \"./types\";\nimport ModalWrapper from \"../ModalWrapper/ModalWrapper\";\nimport Grid from \"@mui/material/Grid\";\nimport CredentialItem from \"./CredentialItem\";\nimport WarnIcon from \"../../../../icons/WarnIcon\";\nimport { DownloadIcon, ServiceAccountCredentialsIcon } from \"../../../../icons\";\nimport TooltipWrapper from \"../TooltipWrapper/TooltipWrapper\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n warningBlock: {\n color: \"red\",\n fontSize: \".85rem\",\n margin: \".5rem 0 .5rem 0\",\n display: \"flex\",\n alignItems: \"center\",\n \"& svg \": {\n marginRight: \".3rem\",\n height: 16,\n width: 16,\n },\n },\n credentialTitle: {\n padding: \".8rem 0 0 0\",\n fontWeight: 600,\n fontSize: \".9rem\",\n },\n buttonContainer: {\n display: \"flex\",\n justifyContent: \"flex-end\",\n marginTop: \"1rem\",\n },\n credentialsPanel: {\n overflowY: \"auto\",\n maxHeight: 350,\n },\n promptTitle: {\n display: \"flex\",\n alignItems: \"center\",\n },\n buttonSpacer: {\n marginRight: \".9rem\",\n },\n });\n\ninterface ICredentialsPromptProps {\n classes: any;\n newServiceAccount: NewServiceAccount | null;\n open: boolean;\n entity: string;\n closeModal: () => void;\n}\n\nconst download = (filename: string, text: string) => {\n let element = document.createElement(\"a\");\n element.setAttribute(\"href\", \"data:text/plain;charset=utf-8,\" + text);\n element.setAttribute(\"download\", filename);\n\n element.style.display = \"none\";\n document.body.appendChild(element);\n\n element.click();\n document.body.removeChild(element);\n};\n\nconst CredentialsPrompt = ({\n classes,\n newServiceAccount,\n open,\n closeModal,\n entity,\n}: ICredentialsPromptProps) => {\n if (!newServiceAccount) {\n return null;\n }\n const consoleCreds = get(newServiceAccount, \"console\", null);\n const idp = get(newServiceAccount, \"idp\", false);\n\n const downloadImport = () => {\n let consoleExtras = {};\n\n if (consoleCreds) {\n if (!Array.isArray(consoleCreds)) {\n consoleExtras = {\n url: consoleCreds.url,\n accessKey: consoleCreds.accessKey,\n secretKey: consoleCreds.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n } else {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n url: itemMap.url,\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n });\n consoleExtras = cCreds[0];\n }\n } else {\n consoleExtras = {\n url: newServiceAccount.url,\n accessKey: newServiceAccount.accessKey,\n secretKey: newServiceAccount.secretKey,\n api: \"s3v4\",\n path: \"auto\",\n };\n }\n\n download(\n \"credentials.json\",\n JSON.stringify({\n ...consoleExtras,\n })\n );\n };\n\n const downloaddAllCredentials = () => {\n let allCredentials = {};\n if (\n consoleCreds &&\n Array.isArray(consoleCreds) &&\n consoleCreds.length > 1\n ) {\n const cCreds = consoleCreds.map((itemMap) => {\n return {\n accessKey: itemMap.accessKey,\n secretKey: itemMap.secretKey,\n };\n });\n allCredentials = cCreds;\n }\n download(\n \"all_credentials.json\",\n JSON.stringify({\n ...allCredentials,\n })\n );\n };\n\n return (\n {\n closeModal();\n }}\n title={\n
\n
New {entity} Created
\n
\n }\n titleIcon={}\n >\n \n \n A new {entity} has been created with the following details:\n {!idp && consoleCreds && (\n \n \n
\n Please Login via the configured external identity provider.\n
\n ) : (\n
\n \n \n Write these down, as this is the only time the secret will be\n displayed.\n \n
\n )}\n \n \n {!idp && (\n <>\n \n }\n variant=\"callAction\"\n />\n \n\n {Array.isArray(consoleCreds) && consoleCreds.length > 1 && (\n \n }\n variant=\"callAction\"\n color=\"primary\"\n />\n \n )}\n >\n )}\n \n \n \n );\n};\n\nexport default withStyles(styles)(CredentialsPrompt);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useState } from \"react\";\nimport get from \"lodash/get\";\nimport { Grid, InputLabel, Tooltip } from \"@mui/material\";\nimport IconButton from \"@mui/material/IconButton\";\nimport AttachFileIcon from \"@mui/icons-material/AttachFile\";\nimport CancelIcon from \"@mui/icons-material/Cancel\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n fieldBasic,\n fileInputStyles,\n tooltipHelper,\n} from \"../common/styleLibrary\";\nimport { fileProcess } from \"./utils\";\nimport HelpIcon from \"../../../../../icons/HelpIcon\";\nimport ErrorBlock from \"../../../../shared/ErrorBlock\";\n\ninterface InputBoxProps {\n label: string;\n classes: any;\n onChange: (e: string, i: string) => void;\n id: string;\n name: string;\n disabled?: boolean;\n tooltip?: string;\n required?: boolean;\n error?: string;\n accept?: string;\n value?: string;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...fieldBasic,\n ...tooltipHelper,\n valueString: {\n maxWidth: 350,\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n marginTop: 2,\n },\n fileInputField: {\n margin: \"13px 0\",\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n ...fileInputStyles,\n inputLabel: {\n ...fieldBasic.inputLabel,\n fontWeight: \"normal\",\n },\n textBoxContainer: {\n ...fieldBasic.textBoxContainer,\n maxWidth: \"100%\",\n border: \"1px solid #eaeaea\",\n paddingLeft: \"15px\",\n },\n });\n\nconst FileSelector = ({\n label,\n classes,\n onChange,\n id,\n name,\n disabled = false,\n tooltip = \"\",\n required,\n error = \"\",\n accept = \"\",\n value = \"\",\n}: InputBoxProps) => {\n const [showFileSelector, setShowSelector] = useState(false);\n\n return (\n \n \n {label !== \"\" && (\n \n \n {label}\n {required ? \"*\" : \"\"}\n \n {tooltip !== \"\" && (\n
\n )}\n \n \n );\n};\n\nexport default withStyles(styles)(FileSelector);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nexport const fileProcess = (evt: any, callback: any) => {\n const file = evt.target.files[0];\n const reader = new FileReader();\n reader.readAsDataURL(file);\n\n reader.onload = () => {\n // reader.readAsDataURL(file) output will be something like: data:application/x-x509-ca-cert;base64,LS0tLS1CRUdJTiBDRVJUSU\n // we care only about the actual base64 part (everything after \"data:application/x-x509-ca-cert;base64,\")\n const fileBase64 = reader.result;\n if (fileBase64) {\n const fileArray = fileBase64.toString().split(\"base64,\");\n\n if (fileArray.length === 2) {\n callback(fileArray[1]);\n }\n }\n };\n};\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport IconButton from \"@mui/material/IconButton\";\nimport Snackbar from \"@mui/material/Snackbar\";\nimport { Dialog, DialogContent, DialogTitle } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n deleteDialogStyles,\n snackBarCommon,\n} from \"../FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../store\";\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport MainError from \"../MainError/MainError\";\nimport { setModalSnackMessage } from \"../../../../systemSlice\";\n\ninterface IModalProps {\n classes: any;\n onClose: () => void;\n modalOpen: boolean;\n title: string | React.ReactNode;\n children: any;\n wideLimit?: boolean;\n noContentPadding?: boolean;\n titleIcon?: React.ReactNode;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n ...deleteDialogStyles,\n content: {\n padding: 25,\n paddingBottom: 0,\n },\n customDialogSize: {\n width: \"100%\",\n maxWidth: 765,\n },\n ...snackBarCommon,\n });\n\nconst ModalWrapper = ({\n onClose,\n modalOpen,\n title,\n children,\n classes,\n wideLimit = true,\n noContentPadding,\n titleIcon = null,\n}: IModalProps) => {\n const dispatch = useAppDispatch();\n const [openSnackbar, setOpenSnackbar] = useState(false);\n\n const modalSnackMessage = useSelector(\n (state: AppState) => state.system.modalSnackBar\n );\n\n useEffect(() => {\n dispatch(setModalSnackMessage(\"\"));\n }, [dispatch]);\n\n useEffect(() => {\n if (modalSnackMessage) {\n if (modalSnackMessage.message === \"\") {\n setOpenSnackbar(false);\n return;\n }\n // Open SnackBar\n if (modalSnackMessage.type !== \"error\") {\n setOpenSnackbar(true);\n }\n }\n }, [modalSnackMessage]);\n\n const closeSnackBar = () => {\n setOpenSnackbar(false);\n dispatch(setModalSnackMessage(\"\"));\n };\n\n const customSize = wideLimit\n ? {\n classes: {\n paper: classes.customDialogSize,\n },\n }\n : { maxWidth: \"lg\" as const, fullWidth: true };\n\n let message = \"\";\n\n if (modalSnackMessage) {\n message = modalSnackMessage.detailedErrorMsg;\n if (\n modalSnackMessage.detailedErrorMsg === \"\" ||\n modalSnackMessage.detailedErrorMsg.length < 5\n ) {\n message = modalSnackMessage.message;\n }\n }\n\n return (\n \n );\n};\n\nexport default withStyles(styles)(ModalWrapper);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { cloneElement } from \"react\";\nimport { Tooltip } from \"@mui/material\";\n\ninterface ITooltipWrapperProps {\n tooltip: string;\n children: any;\n errorProps?: any;\n}\n\nconst TooltipWrapper = ({\n tooltip,\n children,\n errorProps = null,\n}: ITooltipWrapperProps) => {\n return (\n \n \n {errorProps ? cloneElement(children, { ...errorProps }) : children}\n \n \n );\n};\n\nexport default TooltipWrapper;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport {\n Divider,\n Grid,\n IconButton,\n Paper,\n SelectChangeEvent,\n} from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n formFieldStyles,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\n\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport AddIcon from \"@mui/icons-material/Add\";\nimport RemoveIcon from \"../../../../../icons/RemoveIcon\";\nimport {\n addNewMinIODomain,\n isPageValid,\n removeMinIODomain,\n setEnvVars,\n updateAddField,\n} from \"../createTenantSlice\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\n\ninterface IConfigureProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n configSectionItem: {\n marginRight: 15,\n marginBottom: 15,\n\n \"& .multiContainer\": {\n border: \"1px solid red\",\n },\n },\n tenantCustomizationFields: {\n marginLeft: 30, // 2nd Level(15+15)\n width: \"88%\",\n margin: \"auto\",\n },\n containerItem: {\n marginRight: 15,\n },\n fieldGroup: {\n ...createTenantCommon.fieldGroup,\n paddingTop: 15,\n marginBottom: 25,\n },\n responsiveSectionItem: {\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n alignItems: \"flex-start\",\n\n \"& div > div\": {\n marginBottom: 5,\n marginRight: 0,\n },\n },\n },\n wrapperContainer: {\n display: \"flex\",\n marginBottom: 15,\n },\n envVarRow: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n \"&:last-child\": {\n borderBottom: 0,\n },\n \"@media (max-width: 900px)\": {\n flex: 1,\n\n \"& div label\": {\n minWidth: 50,\n },\n },\n },\n fileItem: {\n marginRight: 10,\n display: \"flex\",\n \"& div label\": {\n minWidth: 50,\n },\n\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n },\n },\n rowActions: {\n display: \"flex\",\n justifyContent: \"flex-end\",\n \"@media (max-width: 900px)\": {\n flex: 1,\n },\n },\n overlayAction: {\n marginLeft: 10,\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n ...modalBasic,\n ...wizardCommon,\n ...formFieldStyles,\n });\n\nconst Configure = ({ classes }: IConfigureProps) => {\n const dispatch = useAppDispatch();\n\n const exposeMinIO = useSelector(\n (state: AppState) => state.createTenant.fields.configure.exposeMinIO\n );\n const exposeConsole = useSelector(\n (state: AppState) => state.createTenant.fields.configure.exposeConsole\n );\n const setDomains = useSelector(\n (state: AppState) => state.createTenant.fields.configure.setDomains\n );\n const consoleDomain = useSelector(\n (state: AppState) => state.createTenant.fields.configure.consoleDomain\n );\n const minioDomains = useSelector(\n (state: AppState) => state.createTenant.fields.configure.minioDomains\n );\n const tenantCustom = useSelector(\n (state: AppState) => state.createTenant.fields.configure.tenantCustom\n );\n const tenantEnvVars = useSelector(\n (state: AppState) => state.createTenant.fields.configure.envVars\n );\n const tenantSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.tenantSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"configure\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n if (tenantCustom) {\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"tenant_securityContext_runAsUser\",\n required: true,\n value: tenantSecurityContext.runAsUser,\n customValidation:\n tenantSecurityContext.runAsUser === \"\" ||\n parseInt(tenantSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"tenant_securityContext_runAsGroup\",\n required: true,\n value: tenantSecurityContext.runAsGroup,\n customValidation:\n tenantSecurityContext.runAsGroup === \"\" ||\n parseInt(tenantSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"tenant_securityContext_fsGroup\",\n required: true,\n value: tenantSecurityContext.fsGroup,\n customValidation:\n tenantSecurityContext.fsGroup === \"\" ||\n parseInt(tenantSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n }\n\n if (setDomains) {\n const minioExtraValidations = minioDomains.map((validation, index) => {\n return {\n fieldKey: `minio-domain-${index.toString()}`,\n required: false,\n value: validation,\n pattern: /^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?$/,\n customPatternMessage:\n \"MinIO domain is not in the form of http|https://subdomain.domain\",\n };\n });\n\n customAccountValidation = [\n ...customAccountValidation,\n ...minioExtraValidations,\n {\n fieldKey: \"console_domain\",\n required: false,\n value: consoleDomain,\n pattern:\n /^(https?):\\/\\/([a-zA-Z0-9\\-.]+)(:[0-9]+)?(\\/[a-zA-Z0-9\\-./]*)?$/,\n customPatternMessage:\n \"Console domain is not in the form of http|https://subdomain.domain:port/subpath1/subpath2\",\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"configure\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n dispatch,\n tenantCustom,\n tenantSecurityContext,\n setDomains,\n consoleDomain,\n minioDomains,\n ]);\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n const updateMinIODomain = (value: string, index: number) => {\n const copyDomains = [...minioDomains];\n copyDomains[index] = value;\n\n updateField(\"minioDomains\", copyDomains);\n };\n\n return (\n \n
\n
Configure
\n \n Basic configurations for tenant management\n \n
\n
\n
Services
\n \n Whether the tenant's services should request an external IP via\n LoadBalancer service type.\n \n
\n \n );\n })}\n \n );\n};\n\nexport default IDPBuiltIn;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport { Grid, Paper } from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport { setIDP } from \"../createTenantSlice\";\nimport IDPActiveDirectory from \"./IdentityProvider/IDPActiveDirectory\";\nimport IDPOpenID from \"./IdentityProvider/IDPOpenID\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport IDPBuiltIn from \"./IdentityProvider/IDPBuiltIn\";\nimport {\n OIDCLogoElement,\n LDAPLogoElement,\n BuiltInLogoElement,\n} from \"../../LogoComponents\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n protocolRadioOptions: {\n display: \"flex\",\n flexFlow: \"column\",\n marginBottom: 10,\n\n \"& label\": {\n fontSize: 16,\n fontWeight: 600,\n },\n \"& div\": {\n display: \"flex\",\n flexFlow: \"row\",\n alignItems: \"top\",\n },\n },\n ...createTenantCommon,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst IdentityProvider = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const idpSelection = useSelector(\n (state: AppState) => state.createTenant.fields.identityProvider.idpSelection\n );\n\n return (\n \n
\n
Identity Provider
\n \n Access to the tenant can be controlled via an external Identity\n Manager.\n \n
\n \n {\n dispatch(setIDP(e.target.value));\n }}\n selectorOptions={[\n { label: , value: \"Built-in\" },\n { label: , value: \"OpenID\" },\n { label: , value: \"AD\" },\n ]}\n />\n \n {idpSelection === \"Built-in\" && }\n {idpSelection === \"OpenID\" && }\n {idpSelection === \"AD\" && }\n \n );\n};\n\nexport default IdentityProvider;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Box } from \"@mui/material\";\nimport CertificateIcon from \"../../../../icons/CertificateIcon\";\nimport { AppState } from \"../../../../store\";\n\nconst FeatureItem = ({\n icon,\n description,\n}: {\n icon: any;\n description: string;\n}) => {\n return (\n \n {icon}{\" \"}\n
\n {description}\n
\n \n );\n};\nconst TLSHelpBox = () => {\n const namespace = useSelector((state: AppState) => {\n return state.createTenant.fields.nameTenant.namespace || \"\";\n });\n\n const tenantName = useSelector((state: AppState) => {\n return state.createTenant.fields.nameTenant.tenantName || \"\";\n });\n\n return (\n \n \n }\n description={`TLS Certificates Warning`}\n />\n \n Automatic certificate generation is not enabled.\n \n \n If you wish to continue only with custom certificates make sure\n they are valid for the following internode hostnames, i.e.:\n \n \n
\n \n \n ))}\n \n \n )}\n \n )}\n \n \n );\n};\n\nexport default withStyles(styles)(Security);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\n\ntype Props = {\n children: string;\n};\n\nconst SectionH1: React.FC = ({ children }) => {\n return (\n
\n {children}\n
\n );\n};\n\nexport default SectionH1;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\n\nimport FileSelector from \"../../../../Common/FormComponents/FileSelector/FileSelector\";\nimport {\n addFileVaultCa,\n addFileVaultCert,\n isPageValid,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst VaultKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const vaultEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultEndpoint\n );\n const vaultEngine = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultEngine\n );\n const vaultNamespace = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultNamespace\n );\n const vaultPrefix = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultPrefix\n );\n const vaultAppRoleEngine = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultAppRoleEngine\n );\n const vaultId = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultId\n );\n const vaultSecret = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultSecret\n );\n const vaultRetry = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultRetry\n );\n const vaultPing = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.vaultPing\n );\n const vaultCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.vaultCertificate\n );\n const vaultCA = useSelector(\n (state: AppState) => state.createTenant.certificates.vaultCA\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"vault_endpoint\",\n required: true,\n value: vaultEndpoint,\n },\n {\n fieldKey: \"vault_id\",\n required: true,\n value: vaultId,\n },\n {\n fieldKey: \"vault_secret\",\n required: true,\n value: vaultSecret,\n },\n {\n fieldKey: \"vault_ping\",\n required: false,\n value: vaultPing,\n customValidation: parseInt(vaultPing) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n {\n fieldKey: \"vault_retry\",\n required: false,\n value: vaultRetry,\n customValidation: parseInt(vaultRetry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n vaultEndpoint,\n vaultEngine,\n vaultId,\n vaultSecret,\n vaultPing,\n vaultRetry,\n dispatch,\n ]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"vaultEndpoint\", e.target.value);\n cleanValidation(\"vault_endpoint\");\n }}\n label=\"Endpoint\"\n value={vaultEndpoint}\n error={validationErrors[\"vault_endpoint\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"vaultEngine\", e.target.value);\n cleanValidation(\"vault_engine\");\n }}\n label=\"Engine\"\n value={vaultEngine}\n />\n \n \n ) => {\n updateField(\"vaultNamespace\", e.target.value);\n }}\n label=\"Namespace\"\n value={vaultNamespace}\n />\n \n \n ) => {\n updateField(\"vaultPrefix\", e.target.value);\n }}\n label=\"Prefix\"\n value={vaultPrefix}\n />\n \n\n \n \n \n\n \n \n \n \n \n \n \n );\n};\n\nexport default VaultKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { isPageValid, updateAddField } from \"../../createTenantSlice\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst AzureKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const azureEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureEndpoint\n );\n const azureTenantID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureTenantID\n );\n const azureClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureClientID\n );\n const azureClientSecret = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.azureClientSecret\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"azure_endpoint\",\n required: true,\n value: azureEndpoint,\n },\n {\n fieldKey: \"azure_tenant_id\",\n required: true,\n value: azureTenantID,\n },\n {\n fieldKey: \"azure_client_id\",\n required: true,\n value: azureClientID,\n },\n {\n fieldKey: \"azure_client_secret\",\n required: true,\n value: azureClientSecret,\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n azureEndpoint,\n azureTenantID,\n azureClientID,\n azureClientSecret,\n dispatch,\n ]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"azureEndpoint\", e.target.value);\n cleanValidation(\"azure_endpoint\");\n }}\n label=\"Endpoint\"\n value={azureEndpoint}\n error={validationErrors[\"azure_endpoint\"] || \"\"}\n />\n \n \n \n \n \n );\n};\n\nexport default AzureKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { updateAddField } from \"../../createTenantSlice\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst GCPKMSAdd = () => {\n const classes = useStyles();\n const dispatch = useAppDispatch();\n\n const gcpProjectID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpProjectID\n );\n const gcpEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpEndpoint\n );\n const gcpClientEmail = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientEmail\n );\n const gcpClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientID\n );\n const gcpPrivateKeyID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKeyID\n );\n const gcpPrivateKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKey\n );\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n return (\n \n \n ) => {\n updateField(\"gcpProjectID\", e.target.value);\n }}\n label=\"Project ID\"\n value={gcpProjectID}\n />\n \n \n ) => {\n updateField(\"gcpEndpoint\", e.target.value);\n }}\n label=\"Endpoint\"\n value={gcpEndpoint}\n />\n \n \n \n \n \n );\n};\n\nexport default GCPKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport FileSelector from \"../../../../Common/FormComponents/FileSelector/FileSelector\";\nimport {\n addFileGemaltoCa,\n isPageValid,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst GemaltoKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const gemaltoCA = useSelector(\n (state: AppState) => state.createTenant.certificates.gemaltoCA\n );\n const gemaltoEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoEndpoint\n );\n const gemaltoToken = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoToken\n );\n const gemaltoDomain = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoDomain\n );\n const gemaltoRetry = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gemaltoRetry\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"gemalto_endpoint\",\n required: true,\n value: gemaltoEndpoint,\n },\n {\n fieldKey: \"gemalto_token\",\n required: true,\n value: gemaltoToken,\n },\n {\n fieldKey: \"gemalto_domain\",\n required: true,\n value: gemaltoDomain,\n },\n {\n fieldKey: \"gemalto_retry\",\n required: false,\n value: gemaltoRetry,\n customValidation: parseInt(gemaltoRetry) < 0,\n customValidationMessage: \"Value needs to be 0 or greater\",\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [gemaltoEndpoint, gemaltoToken, gemaltoDomain, gemaltoRetry, dispatch]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"gemaltoEndpoint\", e.target.value);\n cleanValidation(\"gemalto_endpoint\");\n }}\n label=\"Endpoint\"\n value={gemaltoEndpoint}\n error={validationErrors[\"gemalto_endpoint\"] || \"\"}\n required\n />\n \n \n \n \n \n \n \n \n );\n};\n\nexport default GemaltoKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport Grid from \"@mui/material/Grid\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../../utils/validationFunctions\";\nimport { isPageValid, updateAddField } from \"../../createTenantSlice\";\nimport { clearValidationError } from \"../../../utils\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n })\n);\n\nconst AWSKMSAdd = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const awsEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsEndpoint\n );\n const awsRegion = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsRegion\n );\n const awsKMSKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsKMSKey\n );\n const awsAccessKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsAccessKey\n );\n const awsSecretKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsSecretKey\n );\n const awsToken = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.awsToken\n );\n const [validationErrors, setValidationErrors] = useState({});\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"aws_endpoint\",\n required: true,\n value: awsEndpoint,\n },\n {\n fieldKey: \"aws_region\",\n required: true,\n value: awsRegion,\n },\n {\n fieldKey: \"aws_accessKey\",\n required: true,\n value: awsAccessKey,\n },\n {\n fieldKey: \"aws_secretKey\",\n required: true,\n value: awsSecretKey,\n },\n ];\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [awsEndpoint, awsRegion, awsSecretKey, awsAccessKey, dispatch]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n ) => {\n updateField(\"awsEndpoint\", e.target.value);\n cleanValidation(\"aws_endpoint\");\n }}\n label=\"Endpoint\"\n value={awsEndpoint}\n error={validationErrors[\"aws_endpoint\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"awsRegion\", e.target.value);\n cleanValidation(\"aws_region\");\n }}\n label=\"Region\"\n value={awsRegion}\n error={validationErrors[\"aws_region\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"awsKMSKey\", e.target.value);\n }}\n label=\"KMS Key\"\n value={awsKMSKey}\n />\n \n \n \n \n \n );\n};\n\nexport default AWSKMSAdd;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Paper, SelectChangeEvent } from \"@mui/material\";\nimport Grid from \"@mui/material/Grid\";\n\nimport {\n createTenantCommon,\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport FileSelector from \"../../../Common/FormComponents/FileSelector/FileSelector\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport SectionH1 from \"../../../Common/SectionH1\";\nimport {\n addFileClientCert,\n addFileServerCert,\n isPageValid,\n updateAddField,\n} from \"../createTenantSlice\";\nimport VaultKMSAdd from \"./Encryption/VaultKMSAdd\";\nimport AzureKMSAdd from \"./Encryption/AzureKMSAdd\";\nimport GCPKMSAdd from \"./Encryption/GCPKMSAdd\";\nimport GemaltoKMSAdd from \"./Encryption/GemaltoKMSAdd\";\nimport AWSKMSAdd from \"./Encryption/AWSKMSAdd\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\n\ninterface IEncryptionProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n encryptionTypeOptions: {\n marginBottom: 15,\n },\n mutualTlsConfig: {\n marginTop: 15,\n \"& fieldset\": {\n flex: 1,\n },\n },\n rightSpacer: {\n marginRight: 15,\n },\n responsiveContainer: {\n \"@media (max-width: 900px)\": {\n display: \"flex\",\n flexFlow: \"column\",\n },\n },\n ...createTenantCommon,\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst Encryption = ({ classes }: IEncryptionProps) => {\n const dispatch = useAppDispatch();\n\n const replicas = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.replicas\n );\n const enableEncryption = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.enableEncryption\n );\n const encryptionType = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.encryptionType\n );\n\n const gcpProjectID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpProjectID\n );\n const gcpEndpoint = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpEndpoint\n );\n const gcpClientEmail = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientEmail\n );\n const gcpClientID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpClientID\n );\n const gcpPrivateKeyID = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKeyID\n );\n const gcpPrivateKey = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.gcpPrivateKey\n );\n const enableCustomCertsForKES = useSelector(\n (state: AppState) =>\n state.createTenant.fields.encryption.enableCustomCertsForKES\n );\n const enableAutoCert = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableAutoCert\n );\n const enableTLS = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableTLS\n );\n const minioServerCertificates = useSelector(\n (state: AppState) => state.createTenant.certificates.minioServerCertificates\n );\n const serverCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.serverCertificate\n );\n const clientCertificate = useSelector(\n (state: AppState) => state.createTenant.certificates.clientCertificate\n );\n\n const enableCustomCerts = useSelector(\n (state: AppState) => state.createTenant.fields.security.enableCustomCerts\n );\n const kesSecurityContext = useSelector(\n (state: AppState) => state.createTenant.fields.encryption.kesSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n let encryptionAvailable = false;\n if (\n enableTLS &&\n (enableAutoCert ||\n (minioServerCertificates &&\n minioServerCertificates.filter(\n (item) => item.encoded_key && item.encoded_cert\n ).length > 0))\n ) {\n encryptionAvailable = true;\n }\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"encryption\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n // Validation\n useEffect(() => {\n let encryptionValidation: IValidation[] = [];\n\n if (enableEncryption) {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"replicas\",\n required: true,\n value: replicas,\n customValidation: parseInt(replicas) < 1,\n customValidationMessage: \"Replicas needs to be 1 or greater\",\n },\n {\n fieldKey: \"kes_securityContext_runAsUser\",\n required: true,\n value: kesSecurityContext.runAsUser,\n customValidation:\n kesSecurityContext.runAsUser === \"\" ||\n parseInt(kesSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_runAsGroup\",\n required: true,\n value: kesSecurityContext.runAsGroup,\n customValidation:\n kesSecurityContext.runAsGroup === \"\" ||\n parseInt(kesSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"kes_securityContext_fsGroup\",\n required: true,\n value: kesSecurityContext.fsGroup,\n customValidation:\n kesSecurityContext.fsGroup === \"\" ||\n parseInt(kesSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n\n if (enableCustomCerts) {\n encryptionValidation = [\n ...encryptionValidation,\n {\n fieldKey: \"serverKey\",\n required: !enableAutoCert,\n value: serverCertificate.encoded_key,\n },\n {\n fieldKey: \"serverCert\",\n required: !enableAutoCert,\n value: serverCertificate.encoded_cert,\n },\n {\n fieldKey: \"clientKey\",\n required: !enableAutoCert,\n value: clientCertificate.encoded_key,\n },\n {\n fieldKey: \"clientCert\",\n required: !enableAutoCert,\n value: clientCertificate.encoded_cert,\n },\n ];\n }\n }\n\n const commonVal = commonFormValidation(encryptionValidation);\n\n dispatch(\n isPageValid({\n pageName: \"encryption\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n enableEncryption,\n encryptionType,\n gcpProjectID,\n gcpEndpoint,\n gcpClientEmail,\n gcpClientID,\n gcpPrivateKeyID,\n gcpPrivateKey,\n dispatch,\n enableAutoCert,\n enableCustomCerts,\n serverCertificate.encoded_key,\n serverCertificate.encoded_cert,\n clientCertificate.encoded_key,\n clientCertificate.encoded_cert,\n kesSecurityContext,\n replicas,\n ]);\n\n return (\n \n \n \n Encryption\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"enableEncryption\", checked);\n }}\n description=\"\"\n disabled={!encryptionAvailable}\n />\n \n \n \n \n \n MinIO Server-Side Encryption (SSE) protects objects as part of write\n operations, allowing clients to take advantage of server processing\n power to secure objects at the storage layer (encryption-at-rest).\n SSE also provides key functionality to regulatory and compliance\n requirements around secure locking and erasure.\n \n \n \n \n \n\n {enableEncryption && (\n \n \n {\n updateField(\"encryptionType\", e.target.value);\n }}\n selectorOptions={[\n { label: \"Vault\", value: \"vault\" },\n { label: \"AWS\", value: \"aws\" },\n { label: \"Gemalto\", value: \"gemalto\" },\n { label: \"GCP\", value: \"gcp\" },\n { label: \"Azure\", value: \"azure\" },\n ]}\n />\n \n {encryptionType === \"vault\" && }\n {encryptionType === \"azure\" && }\n {encryptionType === \"gcp\" && }\n {encryptionType === \"aws\" && }\n {encryptionType === \"gemalto\" && }\n
\n
Additional Configurations
\n
\n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"enableCustomCertsForKES\", checked);\n }}\n label={\"Custom Certificates\"}\n disabled={!enableAutoCert}\n />\n \n {(enableCustomCertsForKES || !enableAutoCert) && (\n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n ) => {\n updateField(\"replicas\", e.target.value);\n cleanValidation(\"replicas\");\n }}\n label=\"Replicas\"\n value={replicas}\n required\n error={validationErrors[\"replicas\"] || \"\"}\n />\n \n\n \n \n \n )}\n \n \n );\n};\n\nexport default withStyles(styles)(Encryption);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Grid, IconButton, Paper, SelectChangeEvent } from \"@mui/material\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\n\nimport {\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport { ErrorResponseHandler } from \"../../../../../common/types\";\nimport { LabelKeyPair } from \"../../types\";\nimport RadioGroupSelector from \"../../../Common/FormComponents/RadioGroupSelector/RadioGroupSelector\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport api from \"../../../../../common/api\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport AddIcon from \"../../../../../icons/AddIcon\";\nimport RemoveIcon from \"../../../../../icons/RemoveIcon\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport TolerationSelector from \"../../../Common/TolerationSelector/TolerationSelector\";\nimport { setModalErrorSnackMessage } from \"../../../../../systemSlice\";\nimport {\n addNewToleration,\n isPageValid,\n removeToleration,\n setKeyValuePairs,\n setTolerationInfo,\n updateAddField,\n} from \"../createTenantSlice\";\n\ninterface IAffinityProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n overlayAction: {\n marginLeft: 10,\n display: \"flex\",\n alignItems: \"center\",\n \"& svg\": {\n maxWidth: 15,\n maxHeight: 15,\n },\n \"& button\": {\n background: \"#EAEAEA\",\n },\n },\n affinityConfigField: {\n display: \"flex\",\n },\n affinityFieldLabel: {\n display: \"flex\",\n flexFlow: \"column\",\n flex: 1,\n },\n radioField: {\n display: \"flex\",\n alignItems: \"flex-start\",\n marginTop: 10,\n \"& div:first-child\": {\n display: \"flex\",\n flexFlow: \"column\",\n alignItems: \"baseline\",\n textAlign: \"left !important\",\n },\n },\n affinityLabelKey: {\n \"& div:first-child\": {\n marginBottom: 0,\n },\n },\n affinityLabelValue: {\n marginLeft: 10,\n \"& div:first-child\": {\n marginBottom: 0,\n },\n },\n rowActions: {\n display: \"flex\",\n alignItems: \"center\",\n },\n affinityRow: {\n marginBottom: 10,\n display: \"flex\",\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\ninterface OptionPair {\n label: string;\n value: string;\n}\n\nconst Affinity = ({ classes }: IAffinityProps) => {\n const dispatch = useAppDispatch();\n\n const podAffinity = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.podAffinity\n );\n const nodeSelectorLabels = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.nodeSelectorLabels\n );\n const withPodAntiAffinity = useSelector(\n (state: AppState) => state.createTenant.fields.affinity.withPodAntiAffinity\n );\n const keyValuePairs = useSelector(\n (state: AppState) => state.createTenant.nodeSelectorPairs\n );\n const tolerations = useSelector(\n (state: AppState) => state.createTenant.tolerations\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n const [loading, setLoading] = useState(true);\n const [keyValueMap, setKeyValueMap] = useState<{ [key: string]: string[] }>(\n {}\n );\n const [keyOptions, setKeyOptions] = useState([]);\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({\n pageName: \"affinity\",\n field: field,\n value: value,\n })\n );\n },\n [dispatch]\n );\n\n useEffect(() => {\n if (loading) {\n api\n .invoke(\"GET\", `/api/v1/nodes/labels`)\n .then((res: { [key: string]: string[] }) => {\n setLoading(false);\n setKeyValueMap(res);\n let keys: OptionPair[] = [];\n for (let k in res) {\n keys.push({\n label: k,\n value: k,\n });\n }\n setKeyOptions(keys);\n })\n .catch((err: ErrorResponseHandler) => {\n setLoading(false);\n dispatch(setModalErrorSnackMessage(err));\n setKeyValueMap({});\n });\n }\n }, [dispatch, loading]);\n\n useEffect(() => {\n if (keyValuePairs) {\n const vlr = keyValuePairs\n .filter((kvp) => kvp.key !== \"\")\n .map((kvp) => `${kvp.key}=${kvp.value}`)\n .filter((kvs, i, a) => a.indexOf(kvs) === i);\n const vl = vlr.join(\"&\");\n updateField(\"nodeSelectorLabels\", vl);\n }\n }, [keyValuePairs, updateField]);\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n\n if (podAffinity === \"nodeSelector\") {\n let valid = true;\n\n const splittedLabels = nodeSelectorLabels.split(\"&\");\n\n if (splittedLabels.length === 1 && splittedLabels[0] === \"\") {\n valid = false;\n }\n\n splittedLabels.forEach((item: string, index: number) => {\n const splitItem = item.split(\"=\");\n\n if (splitItem.length !== 2) {\n valid = false;\n }\n\n if (index + 1 !== splittedLabels.length) {\n if (splitItem[0] === \"\" || splitItem[1] === \"\") {\n valid = false;\n }\n }\n });\n\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"labels\",\n required: true,\n value: nodeSelectorLabels,\n customValidation: !valid,\n customValidationMessage:\n \"You need to add at least one label key-pair\",\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"affinity\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [dispatch, podAffinity, nodeSelectorLabels]);\n\n const updateToleration = (index: number, field: string, value: any) => {\n const alterToleration = { ...tolerations[index], [field]: value };\n\n dispatch(\n setTolerationInfo({\n index: index,\n tolerationValue: alterToleration,\n })\n );\n };\n\n return (\n \n
\n
Pod Placement
\n \n Configure how pods will be assigned to nodes\n \n
\n \n \n
Type
\n
\n MinIO supports multiple configurations for Pod Affinity\n
\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"customDockerhub\", checked);\n }}\n label={\"Use a private container registry\"}\n />\n \n \n )}\n {customDockerhub && (\n \n \n ) => {\n updateField(\"imageRegistry\", e.target.value);\n }}\n label=\"Endpoint\"\n value={imageRegistry}\n error={validationErrors[\"registry\"] || \"\"}\n placeholder=\"https://index.docker.io/v1/\"\n required\n />\n \n \n ) => {\n updateField(\"imageRegistryUsername\", e.target.value);\n }}\n label=\"Username\"\n value={imageRegistryUsername}\n error={validationErrors[\"registryUsername\"] || \"\"}\n required\n />\n \n \n ) => {\n updateField(\"imageRegistryPassword\", e.target.value);\n }}\n label=\"Password\"\n value={imageRegistryPassword}\n error={validationErrors[\"registryPassword\"] || \"\"}\n required\n />\n \n \n )}\n \n );\n};\n\nexport default withStyles(styles)(Images);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { AppState } from \"../../../../../store\";\nimport {\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport Table from \"@mui/material/Table\";\nimport TableBody from \"@mui/material/TableBody\";\nimport TableCell from \"@mui/material/TableCell\";\nimport TableRow from \"@mui/material/TableRow\";\nimport { niceBytes } from \"../../../../../common/utils\";\n\nimport { Divider } from \"@mui/material\";\n\ninterface ISizePreviewProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n root: {\n margin: 4,\n },\n table: {\n \"& .MuiTableCell-root\": {\n fontSize: 13,\n },\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst SizePreview = ({ classes }: ISizePreviewProps) => {\n const nodes = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.nodes\n );\n const memoryNode = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.resourcesMemoryRequest\n );\n const ecParity = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.ecParity\n );\n\n const distribution = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.distribution\n );\n const ecParityCalc = useSelector(\n (state: AppState) => state.createTenant.fields.tenantSize.ecParityCalc\n );\n\n const cpuToUse = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.resourcesCPURequest\n );\n const integrationSelection = useSelector(\n (state: AppState) =>\n state.createTenant.fields.tenantSize.integrationSelection\n );\n\n const usableInformation = ecParityCalc.storageFactors.find(\n (element) => element.erasureCode === ecParity\n );\n\n return (\n
\n );\n};\n\nexport default withStyles(styles)(SizePreview);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { DialogContentText, LinearProgress } from \"@mui/material\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport {\n deleteDialogStyles,\n modalBasic,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport ConfirmDialog from \"../../../../Common/ModalWrapper/ConfirmDialog\";\nimport { ConfirmModalIcon } from \"../../../../../../icons\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport { closeAddNSModal } from \"../../createTenantSlice\";\nimport makeStyles from \"@mui/styles/makeStyles\";\nimport { createNamespaceAsync } from \"../../thunks/namespaceThunks\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n wrapText: {\n maxWidth: \"200px\",\n whiteSpace: \"normal\",\n wordWrap: \"break-word\",\n },\n ...modalBasic,\n ...deleteDialogStyles,\n })\n);\n\nconst AddNamespaceModal = () => {\n const dispatch = useAppDispatch();\n const classes = useStyles();\n\n const namespace = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.namespace\n );\n const addNamespaceLoading = useSelector(\n (state: AppState) => state.createTenant.addNSLoading\n );\n const addNamespaceOpen = useSelector(\n (state: AppState) => state.createTenant.addNSOpen\n );\n\n return (\n }\n isLoading={addNamespaceLoading}\n onConfirm={() => {\n dispatch(createNamespaceAsync());\n }}\n onClose={() => {\n dispatch(closeAddNSModal());\n }}\n confirmationContent={\n \n {addNamespaceLoading && }\n \n Are you sure you want to add a namespace called\n \n {namespace}?\n \n \n }\n />\n );\n};\n\nexport default AddNamespaceModal;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useEffect, useMemo } from \"react\";\nimport AddIcon from \"../../../../../../icons/AddIcon\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport { openAddNSModal, setNamespace } from \"../../createTenantSlice\";\nimport { useSelector } from \"react-redux\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport AddNamespaceModal from \"../helpers/AddNamespaceModal\";\nimport debounce from \"lodash/debounce\";\nimport { IMkEnvs } from \"./utils\";\nimport { validateNamespaceAsync } from \"../../thunks/namespaceThunks\";\n\nconst NamespaceSelector = ({ formToRender }: { formToRender?: IMkEnvs }) => {\n const dispatch = useAppDispatch();\n\n const namespace = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.namespace\n );\n\n const showNSCreateButton = useSelector(\n (state: AppState) => state.createTenant.showNSCreateButton\n );\n\n const namespaceError = useSelector(\n (state: AppState) => state.createTenant.validationErrors[\"namespace\"]\n );\n const openAddNSConfirm = useSelector(\n (state: AppState) => state.createTenant.addNSOpen\n );\n\n const debounceNamespace = useMemo(\n () =>\n debounce(() => {\n dispatch(validateNamespaceAsync());\n }, 500),\n [dispatch]\n );\n\n useEffect(() => {\n if (namespace !== \"\") {\n debounceNamespace();\n // Cancel previous debounce calls during useEffect cleanup.\n return debounceNamespace.cancel;\n }\n }, [debounceNamespace, namespace]);\n\n const addNamespace = () => {\n dispatch(openAddNSModal());\n };\n\n return (\n \n {openAddNSConfirm && }\n ) => {\n dispatch(setNamespace(e.target.value));\n }}\n label=\"Namespace\"\n value={namespace}\n error={namespaceError || \"\"}\n overlayId={\"add-namespace\"}\n overlayIcon={showNSCreateButton ? : null}\n overlayAction={addNamespace}\n required\n />\n \n );\n};\nexport default NamespaceSelector;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport get from \"lodash/get\";\nimport Grid from \"@mui/material/Grid\";\nimport {\n formFieldStyles,\n modalBasic,\n wizardCommon,\n} from \"../../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../../store\";\nimport InputBoxWrapper from \"../../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport SelectWrapper from \"../../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport SizePreview from \"../SizePreview\";\nimport TenantSize from \"./TenantSize\";\nimport { Paper, SelectChangeEvent } from \"@mui/material\";\nimport { IMkEnvs, mkPanelConfigurations } from \"./utils\";\nimport {\n isPageValid,\n setStorageType,\n setTenantName,\n updateAddField,\n} from \"../../createTenantSlice\";\nimport { selFeatures } from \"../../../../consoleSlice\";\nimport NamespaceSelector from \"./NamespaceSelector\";\n\nconst styles = (theme: Theme) =>\n createStyles({\n sizePreview: {\n position: \"fixed\",\n marginLeft: 10,\n background: \"#FFFFFF\",\n border: \"1px solid #EAEAEA\",\n padding: 2,\n marginTop: 20,\n },\n ...formFieldStyles,\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst NameTenantField = () => {\n const dispatch = useAppDispatch();\n const tenantName = useSelector(\n (state: AppState) => state.createTenant.fields.nameTenant.tenantName\n );\n\n const tenantNameError = useSelector(\n (state: AppState) => state.createTenant.validationErrors[\"tenant-name\"]\n );\n\n return (\n ) => {\n dispatch(setTenantName(e.target.value));\n }}\n label=\"Name\"\n value={tenantName}\n required\n error={tenantNameError || \"\"}\n />\n );\n};\n\ninterface INameTenantMainScreen {\n classes: any;\n formToRender?: IMkEnvs;\n}\n\nconst NameTenantMain = ({ classes, formToRender }: INameTenantMainScreen) => {\n const dispatch = useAppDispatch();\n\n const selectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageClass\n );\n const selectedStorageType = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageType\n );\n const storageClasses = useSelector(\n (state: AppState) => state.createTenant.storageClasses\n );\n const features = useSelector(selFeatures);\n\n // Common\n const updateField = useCallback(\n (field: string, value: string) => {\n dispatch(\n updateAddField({ pageName: \"nameTenant\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n const isValid =\n (formToRender === IMkEnvs.default && storageClasses.length > 0) ||\n (formToRender !== IMkEnvs.default && selectedStorageType !== \"\");\n\n dispatch(isPageValid({ pageName: \"nameTenant\", valid: isValid }));\n }, [storageClasses, dispatch, selectedStorageType, formToRender]);\n\n return (\n \n \n \n \n \n \n
\n
Name
\n \n How would you like to name this new tenant?\n \n
\n \n \n \n );\n};\n\nexport default withStyles(styles)(NameTenantMain);\n","// This file is part of MinIO Console Server\n// Copyright (c) 2021 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport get from \"lodash/get\";\nimport NameTenantMain from \"./NameTenantMain\";\nimport { IMkEnvs, resourcesConfigurations } from \"./utils\";\nimport { selFeatures } from \"../../../../consoleSlice\";\n\nconst TenantResources = () => {\n const features = useSelector(selFeatures);\n const [formRender, setFormRender] = useState(null);\n\n useEffect(() => {\n let setConfiguration = IMkEnvs.default;\n\n if (features && features.length !== 0) {\n const possibleVariables = Object.keys(resourcesConfigurations);\n\n possibleVariables.forEach((element) => {\n if (features.includes(element)) {\n setConfiguration = get(\n resourcesConfigurations,\n element,\n IMkEnvs.default\n );\n }\n });\n }\n\n setFormRender(setConfiguration);\n }, [features]);\n\n if (formRender === null) {\n return null;\n }\n\n return ;\n};\n\nexport default TenantResources;\n","// This file is part of MinIO Console Server\n// Copyright (c) 2022 MinIO, Inc.\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see .\n\nimport React, { Fragment, useCallback, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Theme } from \"@mui/material/styles\";\nimport createStyles from \"@mui/styles/createStyles\";\nimport withStyles from \"@mui/styles/withStyles\";\nimport { Grid, Paper, SelectChangeEvent } from \"@mui/material\";\nimport {\n createTenantCommon,\n modalBasic,\n wizardCommon,\n} from \"../../../Common/FormComponents/common/styleLibrary\";\nimport { AppState, useAppDispatch } from \"../../../../../store\";\nimport { clearValidationError } from \"../../utils\";\nimport {\n commonFormValidation,\n IValidation,\n} from \"../../../../../utils/validationFunctions\";\nimport FormSwitchWrapper from \"../../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper\";\nimport InputBoxWrapper from \"../../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper\";\nimport SelectWrapper from \"../../../Common/FormComponents/SelectWrapper/SelectWrapper\";\nimport InputUnitMenu from \"../../../Common/FormComponents/InputUnitMenu/InputUnitMenu\";\nimport SectionH1 from \"../../../Common/SectionH1\";\nimport { isPageValid, updateAddField } from \"../createTenantSlice\";\n\ninterface IConfigureProps {\n classes: any;\n}\n\nconst styles = (theme: Theme) =>\n createStyles({\n configSectionItem: {\n marginRight: 15,\n\n \"& .multiContainer\": {\n border: \"1px solid red\",\n },\n },\n fieldGroup: {\n ...createTenantCommon.fieldGroup,\n paddingTop: 15,\n marginBottom: 25,\n },\n responsiveSectionItem: {\n \"@media (max-width: 900px)\": {\n flexFlow: \"column\",\n alignItems: \"flex-start\",\n\n \"& div > div\": {\n marginBottom: 5,\n marginRight: 0,\n },\n },\n },\n\n logSearchEnabledFields: {\n marginLeft: 20, // 2nd Level(15+15)\n padding: 10,\n width: \"90%\",\n margin: \"auto\",\n },\n fieldSpaceTop: {\n marginTop: 15,\n },\n ...modalBasic,\n ...wizardCommon,\n });\n\nconst ConfigLogSearch = ({ classes }: IConfigureProps) => {\n const dispatch = useAppDispatch();\n\n const storageClasses = useSelector(\n (state: AppState) => state.createTenant.storageClasses\n );\n const logSearchEnabled = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchEnabled\n );\n const logSearchVolumeSize = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchVolumeSize\n );\n const logSearchSelectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchSelectedStorageClass\n );\n const logSearchImage = useSelector(\n (state: AppState) => state.createTenant.fields.configure.logSearchImage\n );\n const logSearchPostgresImage = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresImage\n );\n const logSearchPostgresInitImage = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresInitImage\n );\n const selectedStorageClass = useSelector(\n (state: AppState) =>\n state.createTenant.fields.nameTenant.selectedStorageClass\n );\n const tenantSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.tenantSecurityContext\n );\n const logSearchSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchSecurityContext\n );\n const logSearchPostgresSecurityContext = useSelector(\n (state: AppState) =>\n state.createTenant.fields.configure.logSearchPostgresSecurityContext\n );\n\n const [validationErrors, setValidationErrors] = useState({});\n\n const configureSTClasses = [\n { label: \"Default\", value: \"default\" },\n ...storageClasses,\n ];\n\n // Common\n const updateField = useCallback(\n (field: string, value: any) => {\n dispatch(\n updateAddField({ pageName: \"configure\", field: field, value: value })\n );\n },\n [dispatch]\n );\n\n // Validation\n useEffect(() => {\n let customAccountValidation: IValidation[] = [];\n\n if (logSearchEnabled) {\n customAccountValidation = [\n ...customAccountValidation,\n {\n fieldKey: \"log_search_storage_class\",\n required: true,\n value: logSearchSelectedStorageClass,\n customValidation: logSearchSelectedStorageClass === \"\",\n customValidationMessage: \"Field cannot be empty\",\n },\n {\n fieldKey: \"log_search_volume_size\",\n required: true,\n value: logSearchVolumeSize,\n customValidation:\n logSearchVolumeSize === \"\" || parseInt(logSearchVolumeSize) <= 0,\n customValidationMessage: `Volume size must be present and be greatter than 0`,\n },\n {\n fieldKey: \"logSearch_securityContext_runAsUser\",\n required: true,\n value: logSearchSecurityContext.runAsUser,\n customValidation:\n logSearchSecurityContext.runAsUser === \"\" ||\n parseInt(logSearchSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"logSearch_securityContext_runAsGroup\",\n required: true,\n value: logSearchSecurityContext.runAsGroup,\n customValidation:\n logSearchSecurityContext.runAsGroup === \"\" ||\n parseInt(logSearchSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"logSearch_securityContext_fsGroup\",\n required: true,\n value: logSearchSecurityContext.fsGroup,\n customValidation:\n logSearchSecurityContext.fsGroup === \"\" ||\n parseInt(logSearchSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_runAsUser\",\n required: true,\n value: logSearchPostgresSecurityContext.runAsUser,\n customValidation:\n logSearchPostgresSecurityContext.runAsUser === \"\" ||\n parseInt(logSearchPostgresSecurityContext.runAsUser) < 0,\n customValidationMessage: `runAsUser must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_runAsGroup\",\n required: true,\n value: logSearchSecurityContext.runAsGroup,\n customValidation:\n logSearchPostgresSecurityContext.runAsGroup === \"\" ||\n parseInt(logSearchPostgresSecurityContext.runAsGroup) < 0,\n customValidationMessage: `runAsGroup must be present and be 0 or more`,\n },\n {\n fieldKey: \"postgres_securityContext_fsGroup\",\n required: true,\n value: logSearchPostgresSecurityContext.fsGroup,\n customValidation:\n logSearchPostgresSecurityContext.fsGroup === \"\" ||\n parseInt(logSearchPostgresSecurityContext.fsGroup) < 0,\n customValidationMessage: `fsGroup must be present and be 0 or more`,\n },\n ];\n }\n\n const commonVal = commonFormValidation(customAccountValidation);\n\n dispatch(\n isPageValid({\n pageName: \"configure\",\n valid: Object.keys(commonVal).length === 0,\n })\n );\n\n setValidationErrors(commonVal);\n }, [\n logSearchImage,\n logSearchPostgresImage,\n logSearchPostgresInitImage,\n dispatch,\n logSearchEnabled,\n logSearchSelectedStorageClass,\n logSearchVolumeSize,\n tenantSecurityContext,\n logSearchSecurityContext,\n logSearchPostgresSecurityContext,\n ]);\n\n useEffect(() => {\n // New default values in current selection is invalid\n if (storageClasses.length > 0) {\n const filterLogSearch = storageClasses.filter(\n (item: any) => item.value === logSearchSelectedStorageClass\n );\n if (filterLogSearch.length === 0) {\n updateField(\"logSearchSelectedStorageClass\", \"default\");\n }\n }\n }, [\n logSearchSelectedStorageClass,\n selectedStorageClass,\n storageClasses,\n updateField,\n ]);\n\n const cleanValidation = (fieldName: string) => {\n setValidationErrors(clearValidationError(validationErrors, fieldName));\n };\n\n return (\n \n \n \n Audit Log\n \n \n {\n const targetD = e.target;\n const checked = targetD.checked;\n\n updateField(\"logSearchEnabled\", checked);\n }}\n indicatorLabels={[\"Enabled\", \"Disabled\"]}\n />\n \n \n \n \n \n Deploys a small PostgreSQL database and stores access logs of all\n calls into the tenant.\n \n \n \n \n \n {logSearchEnabled && (\n \n \n ) => {\n updateField(\n \"logSearchSelectedStorageClass\",\n e.target.value as string\n );\n }}\n label=\"Log Search Storage Class\"\n value={logSearchSelectedStorageClass}\n options={configureSTClasses}\n disabled={configureSTClasses.length < 1}\n />\n \n \n