From 325594ef4bfa77fc102606c6973ca901749ef82b Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 13:02:38 -0500 Subject: [PATCH 01/18] fix(striker-ui): always show test button in init host --- striker-ui/components/PrepareHostForm.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/striker-ui/components/PrepareHostForm.tsx b/striker-ui/components/PrepareHostForm.tsx index 0aeeab04..47a7324b 100644 --- a/striker-ui/components/PrepareHostForm.tsx +++ b/striker-ui/components/PrepareHostForm.tsx @@ -88,7 +88,6 @@ const PrepareHostForm: FC = () => { useState(true); const [isShowAccessSection, setIsShowAccessSection] = useState(false); - const [isShowAccessSubmit, setIsShowAccessSubmit] = useState(true); const [isShowOptionalSection, setIsShowOptionalSection] = useState(false); const [isShowRedhatPassword, setIsShowRedhatPassword] = @@ -191,7 +190,6 @@ const PrepareHostForm: FC = () => { const accessSection = useMemo( () => ( { if (connectedHostIPAddress) { const isIdentifierChanged = value !== connectedHostIPAddress; - setIsShowAccessSubmit(isIdentifierChanged); setIsShowOptionalSection(!isIdentifierChanged); setIsShowRedhatSection(!isIdentifierChanged); } @@ -254,7 +251,6 @@ const PrepareHostForm: FC = () => { setConnectedHostPassword(password); setConnectedHostUUID(hostUUID); - setIsShowAccessSubmit(false); setIsShowOptionalSection(true); } else { setGateMessage({ @@ -274,17 +270,10 @@ const PrepareHostForm: FC = () => { }); }} passphraseLabel="Host root password" - submitLabel="Test access" + submitLabel={`${connectedHostUUID ? 'Retest' : 'Test'} access`} /> ), - [ - isShowAccessSection, - isShowAccessSubmit, - connectedHostIPAddress, - setConnectedHostPassword, - setConnectedHostUUID, - testInput, - ], + [connectedHostIPAddress, connectedHostUUID, isShowAccessSection, testInput], ); const optionalSection = useMemo( From e8ac1a9c4f92281fbba8e2ba2f5c3fb851bcd404 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 18:23:06 -0500 Subject: [PATCH 02/18] fix(striker-ui): expose id, name in radio group --- striker-ui/components/RadioGroupWithLabel.tsx | 15 ++++++++++++--- striker-ui/types/RadioGroupWithLabel.d.ts | 15 ++++++++++----- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/striker-ui/components/RadioGroupWithLabel.tsx b/striker-ui/components/RadioGroupWithLabel.tsx index 54221029..41ec9a1a 100644 --- a/striker-ui/components/RadioGroupWithLabel.tsx +++ b/striker-ui/components/RadioGroupWithLabel.tsx @@ -18,10 +18,12 @@ const RadioGroupWithLabel: FC = ({ formLabelProps, id, label, + name, onChange: onRadioGroupChange, radioItems, radioProps: { sx: radioSx, ...restRadioProps } = {}, radioGroupProps, + value, }) => { const labelElement = useMemo( () => (typeof label === 'string' ? {label} : label), @@ -30,7 +32,7 @@ const RadioGroupWithLabel: FC = ({ const itemElements = useMemo(() => { const items = Object.entries(radioItems); - return items.map(([itemId, { label: itemLabel, value }]) => { + return items.map(([itemId, { label: itemLabel, value: itemValue }]) => { const itemLabelElement = typeof itemLabel === 'string' ? ( {itemLabel} @@ -53,7 +55,7 @@ const RadioGroupWithLabel: FC = ({ /> } key={`${id}-${itemId}`} - value={value} + value={itemValue} label={itemLabelElement} {...formControlLabelProps} /> @@ -64,7 +66,14 @@ const RadioGroupWithLabel: FC = ({ return ( {labelElement} - + {itemElements} diff --git a/striker-ui/types/RadioGroupWithLabel.d.ts b/striker-ui/types/RadioGroupWithLabel.d.ts index 5845b7a2..f966e6f0 100644 --- a/striker-ui/types/RadioGroupWithLabel.d.ts +++ b/striker-ui/types/RadioGroupWithLabel.d.ts @@ -3,18 +3,23 @@ type RadioItem = { value: RadioItemValue; }; +type RadioItemList = Record>; + type RadioGroupWithLabelOptionalProps = { formControlProps?: import('@mui/material').FormControlProps; formControlLabelProps?: import('@mui/material').FormControlLabelProps; formLabelProps?: import('@mui/material').FormLabelProps; label?: import('react').ReactNode; - onChange?: import('@mui/material').RadioGroupProps['onChange']; radioProps?: import('@mui/material').RadioProps; radioGroupProps?: import('@mui/material').RadioGroupProps; }; type RadioGroupWithLabelProps = - RadioGroupWithLabelOptionalProps & { - id: string; - radioItems: { [id: string]: RadioItem }; - }; + RadioGroupWithLabelOptionalProps & + Pick< + import('@mui/material').RadioGroupProps, + 'name' | 'onChange' | 'value' + > & { + id: string; + radioItems: RadioItemList; + }; From 1cfd5884489430b35c1f9685d0fbc09a805e3b64 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 18:26:17 -0500 Subject: [PATCH 03/18] fix(striker-ui): allow skip entry in form summary --- striker-ui/components/FormSummary.tsx | 46 +++++++++++++++++---------- striker-ui/types/FormSummary.d.ts | 6 ++++ 2 files changed, 36 insertions(+), 16 deletions(-) diff --git a/striker-ui/components/FormSummary.tsx b/striker-ui/components/FormSummary.tsx index 6fa35c19..8ebd3329 100644 --- a/striker-ui/components/FormSummary.tsx +++ b/striker-ui/components/FormSummary.tsx @@ -42,6 +42,7 @@ const buildEntryList = ({ maxDepth, renderEntry, renderEntryValue, + skip, }: { depth?: number; entries: FormEntries; @@ -52,6 +53,7 @@ const buildEntryList = ({ maxDepth: number; renderEntry: RenderFormEntryFunction; renderEntryValue: RenderFormValueFunction; + skip: Exclude; }): ReactElement => { const result: ReactElement[] = []; @@ -59,24 +61,33 @@ const buildEntryList = ({ const itemId = `form-summary-entry-${itemKey}`; const nest = entry !== null && typeof entry === 'object'; + const value = nest ? null : entry; - result.push( - - {renderEntry({ - depth, - entry: value, - getLabel: getEntryLabel, - key: itemKey, - nest, - renderValue: renderEntryValue, - })} - , - ); + const fnArgs: CommonFormEntryHandlerArgs = { + depth, + entry: value, + key: itemKey, + }; + + if (skip(({ key }) => !/confirm/i.test(key), fnArgs)) { + result.push( + + {renderEntry({ + depth, + entry: value, + getLabel: getEntryLabel, + key: itemKey, + nest, + renderValue: renderEntryValue, + })} + , + ); + } if (nest && depth < maxDepth) { result.push( @@ -88,6 +99,7 @@ const buildEntryList = ({ maxDepth, renderEntry, renderEntryValue, + skip, }), ); } @@ -134,6 +146,7 @@ const FormSummary = ({ ? renderEntryValueWithPassword(args) : renderEntryValueWithMono(args); }, + skip = (base, ...args) => base(...args), }: FormSummaryProps): ReturnType>> => buildEntryList({ entries, @@ -143,6 +156,7 @@ const FormSummary = ({ maxDepth, renderEntry, renderEntryValue, + skip, }); export default FormSummary; diff --git a/striker-ui/types/FormSummary.d.ts b/striker-ui/types/FormSummary.d.ts index 72f44bde..6806060f 100644 --- a/striker-ui/types/FormSummary.d.ts +++ b/striker-ui/types/FormSummary.d.ts @@ -40,6 +40,8 @@ type RenderFormEntryFunction = ( }, ) => import('react').ReactElement; +type SkipFormEntryFunction = (args: CommonFormEntryHandlerArgs) => boolean; + type FormSummaryOptionalProps = { getEntryLabel?: GetFormEntryLabelFunction; getListProps?: GetFormEntriesPropsFunction; @@ -48,6 +50,10 @@ type FormSummaryOptionalProps = { maxDepth?: number; renderEntry?: RenderFormEntryFunction; renderEntryValue?: RenderFormValueFunction; + skip?: ( + base: SkipFormEntryFunction, + ...args: Parameters + ) => ReturnType; }; type FormSummaryProps = FormSummaryOptionalProps & { From d40efa9289ac6131e9b8aefc01c94b03fd3f5a4a Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 19:20:15 -0500 Subject: [PATCH 04/18] fix(striker-ui): add option to disable autofill in outlined input --- .../OutlinedInput/OutlinedInput.tsx | 42 ++++++++++++++----- .../components/OutlinedInputWithLabel.tsx | 4 +- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/striker-ui/components/OutlinedInput/OutlinedInput.tsx b/striker-ui/components/OutlinedInput/OutlinedInput.tsx index 730887d9..a0d91429 100644 --- a/striker-ui/components/OutlinedInput/OutlinedInput.tsx +++ b/striker-ui/components/OutlinedInput/OutlinedInput.tsx @@ -15,6 +15,7 @@ import { GREY, TEXT, UNSELECTED } from '../../lib/consts/DEFAULT_THEME'; import INPUT_TYPES from '../../lib/consts/INPUT_TYPES'; type OutlinedInputOptionalProps = { + disableAutofill?: boolean; onPasswordVisibilityAppend?: ( inputType: string, ...restArgs: Parameters> @@ -25,13 +26,15 @@ type OutlinedInputProps = MUIOutlinedInputProps & OutlinedInputOptionalProps; const OUTLINED_INPUT_DEFAULT_PROPS: Pick< OutlinedInputOptionalProps, - 'onPasswordVisibilityAppend' + 'disableAutofill' | 'onPasswordVisibilityAppend' > = { + disableAutofill: false, onPasswordVisibilityAppend: undefined, }; const OutlinedInput: FC = (outlinedInputProps) => { const { + disableAutofill = false, endAdornment, label, onPasswordVisibilityAppend, @@ -68,6 +71,7 @@ const OutlinedInput: FC = (outlinedInputProps) => { ); }, [initialType, onPasswordVisibilityAppend, type]); + const combinedSx = useMemo( () => ({ color: GREY, @@ -102,6 +106,7 @@ const OutlinedInput: FC = (outlinedInputProps) => { }), [label, sx], ); + const combinedEndAdornment = useMemo(() => { let result; @@ -125,18 +130,33 @@ const OutlinedInput: FC = (outlinedInputProps) => { return result; }, [passwordVisibilityButton, endAdornment]); + const autofillLock = useMemo< + Pick | undefined + >( + () => + disableAutofill + ? { + onFocus: (...args) => { + const [event] = args; + + event.target.readOnly = false; + + outlinedInputRestProps?.onFocus?.call(null, ...args); + }, + readOnly: true, + } + : undefined, + [disableAutofill, outlinedInputRestProps?.onFocus], + ); + return ( ); }; diff --git a/striker-ui/components/OutlinedInputWithLabel.tsx b/striker-ui/components/OutlinedInputWithLabel.tsx index 3ee5adfb..bb048d7e 100644 --- a/striker-ui/components/OutlinedInputWithLabel.tsx +++ b/striker-ui/components/OutlinedInputWithLabel.tsx @@ -44,7 +44,7 @@ type OutlinedInputWithLabelOptionalProps = type OutlinedInputWithLabelProps = Pick< OutlinedInputProps, - 'name' | 'onBlur' | 'onChange' | 'onFocus' + 'disableAutofill' | 'name' | 'onBlur' | 'onChange' | 'onFocus' > & OutlinedInputWithLabelOptionalProps & { label: string; @@ -69,6 +69,7 @@ const OUTLINED_INPUT_WITH_LABEL_DEFAULT_PROPS: Required = ({ baseInputProps, + disableAutofill, fillRow: isFillRow = OUTLINED_INPUT_WITH_LABEL_DEFAULT_PROPS.fillRow, formControlProps = OUTLINED_INPUT_WITH_LABEL_DEFAULT_PROPS.formControlProps, helpMessageBoxProps = OUTLINED_INPUT_WITH_LABEL_DEFAULT_PROPS.helpMessageBoxProps, @@ -148,6 +149,7 @@ const OutlinedInputWithLabel: FC = ({ {label} Date: Mon, 5 Feb 2024 19:21:30 -0500 Subject: [PATCH 05/18] fix(striker-ui): adjust grid layout in add mail server form --- .../components/ManageMailServer/AddMailServerForm.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx index ea1ce702..a92e74f9 100644 --- a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx +++ b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx @@ -160,7 +160,7 @@ const AddMailServerForm: FC = (props) => { } /> - + = (props) => { } /> - + = (props) => { } /> - + = (props) => { } /> - + Date: Mon, 5 Feb 2024 19:27:05 -0500 Subject: [PATCH 06/18] fix(striker-ui): remove blur handlers in add mail server form --- .../components/ManageMailServer/AddMailServerForm.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx index a92e74f9..7a146377 100644 --- a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx +++ b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx @@ -136,7 +136,6 @@ const AddMailServerForm: FC = (props) => { id={addressChain} label="Server address" name={addressChain} - onBlur={formik.handleBlur} onChange={handleChange} required value={formik.values[msUuid].address} @@ -151,7 +150,6 @@ const AddMailServerForm: FC = (props) => { id={portChain} label="Server port" name={portChain} - onBlur={formik.handleBlur} onChange={handleChange} required type="number" @@ -167,7 +165,6 @@ const AddMailServerForm: FC = (props) => { id={securityChain} label="Server security type" name={securityChain} - onBlur={formik.handleBlur} onChange={handleChange} required selectItems={['none', 'starttls', 'tls-ssl']} @@ -183,7 +180,6 @@ const AddMailServerForm: FC = (props) => { id={authenticationChain} label="Server authentication method" name={authenticationChain} - onBlur={formik.handleBlur} onChange={handleChange} required selectItems={['none', 'plain-text', 'encrypted']} @@ -199,7 +195,6 @@ const AddMailServerForm: FC = (props) => { id={heloDomainChain} label="HELO domain" name={heloDomainChain} - onBlur={formik.handleBlur} onChange={handleChange} required value={formik.values[msUuid].heloDomain} @@ -215,7 +210,6 @@ const AddMailServerForm: FC = (props) => { inputProps={disableAutocomplete()} label="Server username" name={usernameChain} - onBlur={formik.handleBlur} onChange={handleChange} value={formik.values[msUuid].username} /> @@ -230,7 +224,6 @@ const AddMailServerForm: FC = (props) => { inputProps={disableAutocomplete()} label="Server password" name={passwordChain} - onBlur={formik.handleBlur} onChange={handleChange} type="password" value={formik.values[msUuid].password} @@ -247,7 +240,6 @@ const AddMailServerForm: FC = (props) => { inputProps={disableAutocomplete()} label="Confirm password" name={confirmPasswordChain} - onBlur={formik.handleBlur} onChange={handleChange} type="password" value={formik.values[msUuid].confirmPassword} From ddece3750dbaf1a79f3776fb7546b02c7f45dd1d Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 19:33:35 -0500 Subject: [PATCH 07/18] fix(striker-ui): remove disableAutocomplete from formik utils --- .../ManageMailServer/AddMailServerForm.tsx | 123 +++++++++--------- striker-ui/hooks/useFormikUtils.ts | 13 -- striker-ui/types/FormikUtils.d.ts | 5 - 3 files changed, 59 insertions(+), 82 deletions(-) diff --git a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx index 7a146377..ce6d4383 100644 --- a/striker-ui/components/ManageMailServer/AddMailServerForm.tsx +++ b/striker-ui/components/ManageMailServer/AddMailServerForm.tsx @@ -26,78 +26,73 @@ const AddMailServerForm: FC = (props) => { [mailServerUuid], ); - const { - disableAutocomplete, - disabledSubmit, - formik, - formikErrors, - handleChange, - } = useFormikUtils({ - initialValues: previousFormikValues ?? { - [msUuid]: { - address: '', - authentication: 'none', - heloDomain: localhostDomain, - port: 587, - security: 'none', - uuid: msUuid, + const { disabledSubmit, formik, formikErrors, handleChange } = + useFormikUtils({ + initialValues: previousFormikValues ?? { + [msUuid]: { + address: '', + authentication: 'none', + heloDomain: localhostDomain, + port: 587, + security: 'none', + uuid: msUuid, + }, }, - }, - onSubmit: (values, { setSubmitting }) => { - const { [msUuid]: mailServer } = values; + onSubmit: (values, { setSubmitting }) => { + const { [msUuid]: mailServer } = values; - let actionProceedText: string = 'Add'; - let errorMessage: ReactNode = <>Failed to add mail server.; - let method: 'post' | 'put' = 'post'; - let successMessage = <>Mail server added.; - let titleText: string = 'Add mail server with the following?'; - let url = '/mail-server'; + let actionProceedText: string = 'Add'; + let errorMessage: ReactNode = <>Failed to add mail server.; + let method: 'post' | 'put' = 'post'; + let successMessage = <>Mail server added.; + let titleText: string = 'Add mail server with the following?'; + let url = '/mail-server'; - if (previousFormikValues) { - actionProceedText = 'Update'; - errorMessage = <>Failed to update mail server.; - method = 'put'; - successMessage = <>Mail server updated.; - titleText = `Update ${mailServer.address}:${mailServer.port} with the following?`; - url += `/${msUuid}`; - } + if (previousFormikValues) { + actionProceedText = 'Update'; + errorMessage = <>Failed to update mail server.; + method = 'put'; + successMessage = <>Mail server updated.; + titleText = `Update ${mailServer.address}:${mailServer.port} with the following?`; + url += `/${msUuid}`; + } - const { confirmPassword, uuid, ...rest } = mailServer; + const { confirmPassword, uuid, ...rest } = mailServer; - tools.confirm.prepare({ - actionProceedText, - content: , - onCancelAppend: () => setSubmitting(false), - onProceedAppend: () => { - tools.confirm.loading(true); + tools.confirm.prepare({ + actionProceedText, + content: , + onCancelAppend: () => setSubmitting(false), + onProceedAppend: () => { + tools.confirm.loading(true); - api[method](url, mailServer) - .then(() => { - tools.confirm.finish('Success', { children: successMessage }); + api[method](url, mailServer) + .then(() => { + tools.confirm.finish('Success', { children: successMessage }); - tools[method === 'post' ? 'add' : 'edit'].open(false); - }) - .catch((error) => { - const emsg = handleAPIError(error); + tools[method === 'post' ? 'add' : 'edit'].open(false); + }) + .catch((error) => { + const emsg = handleAPIError(error); - emsg.children = ( - <> - {errorMessage} {emsg.children} - - ); + emsg.children = ( + <> + {errorMessage} {emsg.children} + + ); - tools.confirm.finish('Error', emsg); + tools.confirm.finish('Error', emsg); - setSubmitting(false); - }); - }, - titleText, - }); + setSubmitting(false); + }); + }, + titleText, + }); - tools.confirm.open(true); - }, - validationSchema: mailServerListSchema, - }); + tools.confirm.open(true); + }, + validationSchema: mailServerListSchema, + }); const addressChain = useMemo(() => `${msUuid}.address`, [msUuid]); const authenticationChain = useMemo( @@ -206,8 +201,8 @@ const AddMailServerForm: FC = (props) => { = (props) => { = (props) => { ( [formik.initialValues, formik.values], ); - const disableAutocomplete = useCallback( - (overwrite?: Partial): OutlinedInputProps => ({ - readOnly: true, - onFocus: (event) => { - event.target.readOnly = false; - }, - ...overwrite, - }), - [], - ); - const debounceHandleChange = useMemo( () => debounce(formik.handleChange), [formik.handleChange], @@ -75,7 +63,6 @@ const useFormikUtils = ( ); return { - disableAutocomplete, disabledSubmit, formik, formikErrors, diff --git a/striker-ui/types/FormikUtils.d.ts b/striker-ui/types/FormikUtils.d.ts index f569485e..878b012c 100644 --- a/striker-ui/types/FormikUtils.d.ts +++ b/striker-ui/types/FormikUtils.d.ts @@ -12,11 +12,6 @@ type FormikSubmitHandler = import('formik').FormikConfig['onSubmit']; type FormikUtils = { - disableAutocomplete: ( - overwrite?: Partial< - import('../components/OutlinedInput').OutlinedInputProps - >, - ) => import('../components/OutlinedInput').OutlinedInputProps; disabledSubmit: boolean; formik: Formik; formikErrors: Messages; From 47a84a86e8e95a0c79b4176ee9b16cb81ee93a8c Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Mon, 5 Feb 2024 19:38:46 -0500 Subject: [PATCH 08/18] feat(striker-ui): add manage host components --- .../components/ManageHost/ManageHost.tsx | 47 ++++ .../components/ManageHost/PrepareHostForm.tsx | 228 ++++++++++++++++++ .../components/ManageHost/TestAccessForm.tsx | 145 +++++++++++ striker-ui/components/ManageHost/index.tsx | 4 + striker-ui/components/ManageHost/schema.ts | 35 +++ .../components/ManageHost/testAccessSchema.ts | 15 ++ striker-ui/types/ManageHost.d.ts | 38 +++ 7 files changed, 512 insertions(+) create mode 100644 striker-ui/components/ManageHost/ManageHost.tsx create mode 100644 striker-ui/components/ManageHost/PrepareHostForm.tsx create mode 100644 striker-ui/components/ManageHost/TestAccessForm.tsx create mode 100644 striker-ui/components/ManageHost/index.tsx create mode 100644 striker-ui/components/ManageHost/schema.ts create mode 100644 striker-ui/components/ManageHost/testAccessSchema.ts create mode 100644 striker-ui/types/ManageHost.d.ts diff --git a/striker-ui/components/ManageHost/ManageHost.tsx b/striker-ui/components/ManageHost/ManageHost.tsx new file mode 100644 index 00000000..cd99c4be --- /dev/null +++ b/striker-ui/components/ManageHost/ManageHost.tsx @@ -0,0 +1,47 @@ +import { FC, useState } from 'react'; + +import CrudList from '../CrudList'; +import PrepareHostForm from './PrepareHostForm'; +import TestAccessForm from './TestAccessForm'; +import { BodyText } from '../Text'; + +const ManageHost: FC = () => { + const [inquireHostResponse, setInquireHostResponse] = useState< + InquireHostResponse | undefined + >(); + + return ( + + addHeader="Initialize host" + editHeader="" + entriesUrl="/host" + getDeleteErrorMessage={(children, ...rest) => ({ + ...rest, + children: <>Failed to delete host(s). {children}, + })} + getDeleteHeader={(count) => `Delete the following ${count} host(s)?`} + getDeleteSuccessMessage={() => ({ + children: <>Successfully deleted host(s), + })} + listEmpty="No host(s) found" + listProps={{ allowAddItem: true, allowEdit: false }} + renderAddForm={(tools) => ( + <> + + {inquireHostResponse && ( + + )} + + )} + renderDeleteItem={(hosts, { key }) => { + const host = hosts?.[key]; + + return {host?.shortHostName}; + }} + renderEditForm={() => <>} + renderListItem={(uuid, { hostName }) => {hostName}} + /> + ); +}; + +export default ManageHost; diff --git a/striker-ui/components/ManageHost/PrepareHostForm.tsx b/striker-ui/components/ManageHost/PrepareHostForm.tsx new file mode 100644 index 00000000..016fd46b --- /dev/null +++ b/striker-ui/components/ManageHost/PrepareHostForm.tsx @@ -0,0 +1,228 @@ +import { Grid } from '@mui/material'; +import { FC, useMemo } from 'react'; + +import ActionGroup from '../ActionGroup'; +import api from '../../lib/api'; +import FormSummary from '../FormSummary'; +import handleAPIError from '../../lib/handleAPIError'; +import MessageGroup from '../MessageGroup'; +import OutlinedInputWithLabel from '../OutlinedInputWithLabel'; +import RadioGroupWithLabel from '../RadioGroupWithLabel'; +import schema from './schema'; +import UncontrolledInput from '../UncontrolledInput'; +import useFormikUtils from '../../hooks/useFormikUtils'; + +const HOST_TYPE_OPTIONS: RadioItemList = { + subnode: { label: 'Subnode', value: 'subnode' }, + dr: { label: 'Disaster Recovery (DR) host', value: 'dr' }, +}; + +const PrepareHostForm: FC = (props) => { + const { host, tools } = props; + + const { disabledSubmit, formik, formikErrors, handleChange } = + useFormikUtils({ + initialValues: { + ip: host.hostIpAddress, + name: host.hostName, + password: host.hostPassword, + type: '', + uuid: host.hostUUID, + }, + onSubmit: (values, { setSubmitting }) => { + const { + enterpriseKey, + ip, + name, + password, + type, + uuid, + redhatPassword, + redhatUsername, + } = values; + + tools.confirm.prepare({ + actionProceedText: 'Prepare', + content: , + onCancelAppend: () => setSubmitting(false), + onProceedAppend: () => { + tools.confirm.loading(true); + + api + .put('/host/prepare', { + enterpriseUUID: enterpriseKey, + hostIPAddress: ip, + hostName: name, + hostPassword: password, + hostType: type, + hostUUID: uuid, + redhatPassword, + redhatUser: redhatUsername, + }) + .then(() => { + tools.confirm.finish('Success', { + children: <>Host at {ip} prepared., + }); + + tools.add.open(false); + }) + .catch((error) => { + const emsg = handleAPIError(error); + + emsg.children = ( + <> + Failed to prepare host at {ip}. {emsg.children} + + ); + + tools.confirm.finish('Error', emsg); + + setSubmitting(false); + }); + }, + titleText: `Prepare host at ${values.ip} with the following?`, + }); + + tools.confirm.open(); + }, + validationSchema: schema, + }); + + const enterpriseKeyChain = useMemo(() => 'enterpriseKey', []); + const nameChain = useMemo(() => 'name', []); + const redhatConfirmPasswordChain = useMemo( + () => 'redhatConfirmPassword', + [], + ); + const redhatPasswordChain = useMemo(() => 'redhatPassword', []); + const redhatUsernameChain = useMemo(() => 'redhatUsername', []); + const typeChain = useMemo(() => 'type', []); + + const showRedhatSection = useMemo( + () => + host.isInetConnected && /rhel/i.test(host.hostOS) && !host.isOSRegistered, + [host.hostOS, host.isInetConnected, host.isOSRegistered], + ); + + return ( + { + event.preventDefault(); + + formik.submitForm(); + }} + spacing="1em" + > + + + } + /> + + + + } + /> + + + + } + /> + + {showRedhatSection && ( + <> + + + } + /> + + + + } + /> + + + + + } + /> + + + )} + + + + + + + + ); +}; + +export default PrepareHostForm; diff --git a/striker-ui/components/ManageHost/TestAccessForm.tsx b/striker-ui/components/ManageHost/TestAccessForm.tsx new file mode 100644 index 00000000..5731fcf9 --- /dev/null +++ b/striker-ui/components/ManageHost/TestAccessForm.tsx @@ -0,0 +1,145 @@ +import { FC, useCallback, useMemo, useRef, useState } from 'react'; +import { Grid } from '@mui/material'; + +import ActionGroup from '../ActionGroup'; +import api from '../../lib/api'; +import handleAPIError from '../../lib/handleAPIError'; +import MessageGroup, { MessageGroupForwardedRefContent } from '../MessageGroup'; +import OutlinedInputWithLabel from '../OutlinedInputWithLabel'; +import UncontrolledInput from '../UncontrolledInput'; +import useFormikUtils from '../../hooks/useFormikUtils'; +import Spinner from '../Spinner'; +import schema from './testAccessSchema'; + +const TestAccessForm: FC = (props) => { + const { setResponse } = props; + + const messageGroupRef = useRef(null); + + const [loadingInquiry, setLoadingInquiry] = useState(false); + + const setApiMessage = useCallback( + (message?: Message) => + messageGroupRef?.current?.setMessage?.call(null, 'api', message), + [], + ); + + const { disabledSubmit, formik, formikErrors, handleChange } = + useFormikUtils({ + initialValues: { + ip: '', + password: '', + }, + onSubmit: (values, { setSubmitting }) => { + setLoadingInquiry(true); + setResponse(undefined); + + const { ip, password } = values; + + api + .put('/command/inquire-host', { + ipAddress: ip, + password, + }) + .then(({ data }) => { + setResponse({ + ...data, + hostIpAddress: ip, + hostPassword: password, + }); + + setApiMessage(); + }) + .catch((error) => { + const emsg = handleAPIError(error); + + emsg.children = ( + <> + Failed to access {ip}. {emsg.children} + + ); + + setApiMessage(emsg); + }) + .finally(() => { + setSubmitting(false); + setLoadingInquiry(false); + }); + }, + validationSchema: schema, + }); + + const ipChain = useMemo(() => 'ip', []); + const passwordChain = useMemo(() => 'password', []); + + return ( + { + event.preventDefault(); + + formik.submitForm(); + }} + spacing="1em" + > + + + } + /> + + + + } + /> + + {loadingInquiry ? ( + + + + ) : ( + <> + + + + + + + + )} + + ); +}; + +export default TestAccessForm; diff --git a/striker-ui/components/ManageHost/index.tsx b/striker-ui/components/ManageHost/index.tsx new file mode 100644 index 00000000..bc5c74d7 --- /dev/null +++ b/striker-ui/components/ManageHost/index.tsx @@ -0,0 +1,4 @@ +import ManageHost from './ManageHost'; +import PrepareHostForm from './PrepareHostForm'; + +export { ManageHost, PrepareHostForm }; diff --git a/striker-ui/components/ManageHost/schema.ts b/striker-ui/components/ManageHost/schema.ts new file mode 100644 index 00000000..b48749b6 --- /dev/null +++ b/striker-ui/components/ManageHost/schema.ts @@ -0,0 +1,35 @@ +import * as yup from 'yup'; + +import { REP_IPV4 } from '../../lib/consts/REG_EXP_PATTERNS'; + +const schema = yup.object().shape( + { + enterpriseKey: yup.string().uuid().optional(), + ip: yup.string().matches(REP_IPV4, { + message: 'Expected IP address to be a valid IPv4 address.', + }), + name: yup.string().required(), + redhatConfirmPassword: yup + .string() + .when('redhatPassword', (redhatPassword, field) => + String(redhatPassword).length > 0 + ? field.required().oneOf([yup.ref('redhatPassword')]) + : field.optional(), + ), + redhatPassword: yup + .string() + .when('redhatUsername', (redhatUsername, field) => + String(redhatUsername).length > 0 ? field.required() : field.optional(), + ), + redhatUsername: yup + .string() + .when('redhatPassword', (redhatPassword, field) => + String(redhatPassword).length > 0 ? field.required() : field.optional(), + ), + type: yup.string().oneOf(['dr', 'subnode']).required(), + uuid: yup.string().uuid().required(), + }, + [['redhatUsername', 'redhatPassword']], +); + +export default schema; diff --git a/striker-ui/components/ManageHost/testAccessSchema.ts b/striker-ui/components/ManageHost/testAccessSchema.ts new file mode 100644 index 00000000..196795f0 --- /dev/null +++ b/striker-ui/components/ManageHost/testAccessSchema.ts @@ -0,0 +1,15 @@ +import * as yup from 'yup'; + +import { REP_IPV4 } from '../../lib/consts/REG_EXP_PATTERNS'; + +const schema = yup.object({ + ip: yup + .string() + .matches(REP_IPV4, { + message: 'Expected IP address to be a valid IPv4 address.', + }) + .required(), + password: yup.string().required(), +}); + +export default schema; diff --git a/striker-ui/types/ManageHost.d.ts b/striker-ui/types/ManageHost.d.ts new file mode 100644 index 00000000..beb65451 --- /dev/null +++ b/striker-ui/types/ManageHost.d.ts @@ -0,0 +1,38 @@ +type InquireHostResponse = APICommandInquireHostResponseBody & { + hostIpAddress: string; + hostPassword: string; +}; + +/** TestAccessForm */ + +type TestAccessFormikValues = { + ip: string; + password: string; +}; + +type TestAccessFormProps = { + setResponse: React.Dispatch< + React.SetStateAction + >; +}; + +/** PrepareHostForm */ + +/** + * @property hostType - Type of host to prepare; note that `node` is `subnode` + * due to renaming. + */ +type PrepareHostFormikValues = TestAccessFormikValues & { + enterpriseKey?: string; + name: string; + redhatConfirmPassword?: string; + redhatPassword?: string; + redhatUsername?: string; + type: '' | 'dr' | 'subnode'; + uuid: string; +}; + +type PreapreHostFormProps = { + host: InquireHostResponse; + tools: CrudListFormTools; +}; From 96be4a41b210334cd792690d53a0be651ea54974 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 16:44:52 -0500 Subject: [PATCH 09/18] fix(striker-ui): isolate disassemble camel string --- striker-ui/components/FormSummary.tsx | 13 ++++--------- striker-ui/lib/disassembleCamel.ts | 9 +++++++++ striker-ui/lib/getFormikErrorMessages.ts | 8 ++++++-- 3 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 striker-ui/lib/disassembleCamel.ts diff --git a/striker-ui/components/FormSummary.tsx b/striker-ui/components/FormSummary.tsx index 8ebd3329..247aab7c 100644 --- a/striker-ui/components/FormSummary.tsx +++ b/striker-ui/components/FormSummary.tsx @@ -1,16 +1,9 @@ import { Box, List as MUIList, ListItem as MUIListItem } from '@mui/material'; -import { capitalize } from 'lodash'; import { FC, ReactElement } from 'react'; import FlexBox from './FlexBox'; import { BodyText, MonoText, SensitiveText } from './Text'; - -const capEntryLabel: CapFormEntryLabel = (value) => { - const spaced = value.replace(/([a-z\d])([A-Z])/g, '$1 $2'); - const lcased = spaced.toLowerCase(); - - return capitalize(lcased); -}; +import disassembleCamel from '../lib/disassembleCamel'; const renderEntryValueWithMono: RenderFormValueFunction = ({ entry }) => ( {String(entry)} @@ -128,7 +121,9 @@ const FormSummary = ({ maxDepth = 3, renderEntry = ({ depth, entry, getLabel, key, nest, renderValue }) => ( - {getLabel({ cap: capEntryLabel, depth, entry, key })} + + {getLabel({ cap: disassembleCamel, depth, entry, key })} + {!nest && renderValue({ depth, entry, key })} diff --git a/striker-ui/lib/disassembleCamel.ts b/striker-ui/lib/disassembleCamel.ts new file mode 100644 index 00000000..80d7fb98 --- /dev/null +++ b/striker-ui/lib/disassembleCamel.ts @@ -0,0 +1,9 @@ +import { capitalize } from 'lodash'; + +const disassembleCamel = (value: string) => { + const spaced = value.replace(/([a-z\d])([A-Z])/g, '$1 $2'); + + return capitalize(spaced); +}; + +export default disassembleCamel; diff --git a/striker-ui/lib/getFormikErrorMessages.ts b/striker-ui/lib/getFormikErrorMessages.ts index 18306ef8..060ddceb 100644 --- a/striker-ui/lib/getFormikErrorMessages.ts +++ b/striker-ui/lib/getFormikErrorMessages.ts @@ -1,4 +1,4 @@ -import { capitalize } from 'lodash'; +import disassembleCamel from './disassembleCamel'; const getFormikErrorMessages = ( errors: object, @@ -7,7 +7,11 @@ const getFormikErrorMessages = ( let children = error; if (typeof children === 'string') { - children = capitalize(children.replace(/^[^\s]+\.([^.]+)/, '$1')); + const [first, ...rest] = children.split(/\s+/); + + const name = disassembleCamel(first.replace(/^[^\s]+\.([^.]+)/, '$1')); + + children = [name, ...rest].join(' '); } return { children, type: 'warning' }; From 5ad591cdc057428bd124a4f4f6ea3c71e1019dc3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 16:51:56 -0500 Subject: [PATCH 10/18] fix(striker-ui): translate host type, adjust success msg in prepare host form --- striker-ui/components/ManageHost/PrepareHostForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/ManageHost/PrepareHostForm.tsx b/striker-ui/components/ManageHost/PrepareHostForm.tsx index 016fd46b..44c3f018 100644 --- a/striker-ui/components/ManageHost/PrepareHostForm.tsx +++ b/striker-ui/components/ManageHost/PrepareHostForm.tsx @@ -54,14 +54,14 @@ const PrepareHostForm: FC = (props) => { hostIPAddress: ip, hostName: name, hostPassword: password, - hostType: type, + hostType: type === 'subnode' ? 'node' : type, hostUUID: uuid, redhatPassword, redhatUser: redhatUsername, }) .then(() => { tools.confirm.finish('Success', { - children: <>Host at {ip} prepared., + children: <>Started job to prepare host at {ip}., }); tools.add.open(false); From c8e7994ab9bcbe719a1a0e8d8de1a923d549779d Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 17:24:02 -0500 Subject: [PATCH 11/18] fix(striker-ui): allow set detail url prefix in CRUD list --- striker-ui/components/CrudList.tsx | 4 +++- striker-ui/types/CrudList.d.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/CrudList.tsx b/striker-ui/components/CrudList.tsx index 08ebb78e..3d94f310 100644 --- a/striker-ui/components/CrudList.tsx +++ b/striker-ui/components/CrudList.tsx @@ -39,6 +39,8 @@ const CrudList = < renderDeleteItem, renderEditForm, renderListItem, + // Dependents + entryUrlPrefix = entriesUrl, } = props; const addDialogRef = useRef(null); @@ -72,7 +74,7 @@ const CrudList = < const { fetch: getEntry, loading: loadingEntry } = useActiveFetch({ onData: (data) => setEntry(data), - url: entriesUrl, + url: entryUrlPrefix, }); const addHeader = useMemo( diff --git a/striker-ui/types/CrudList.d.ts b/striker-ui/types/CrudList.d.ts index 7247dc1e..fca66469 100644 --- a/striker-ui/types/CrudList.d.ts +++ b/striker-ui/types/CrudList.d.ts @@ -24,6 +24,7 @@ type DeletePromiseChainGetter = ( ) => Promise[]; type CrudListOptionalProps = { + entryUrlPrefix?: string; getAddLoading?: (previous?: boolean) => boolean; getDeletePromiseChain?: ( base: DeletePromiseChainGetter, From 917e57dac4b7d9fc33ae9e76963827e00a650766 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 17:25:10 -0500 Subject: [PATCH 12/18] fix(striker-ui): restrict prepare host list to subnodes, dr hosts --- striker-ui/components/ManageHost/ManageHost.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/ManageHost/ManageHost.tsx b/striker-ui/components/ManageHost/ManageHost.tsx index cd99c4be..4bdc8e7b 100644 --- a/striker-ui/components/ManageHost/ManageHost.tsx +++ b/striker-ui/components/ManageHost/ManageHost.tsx @@ -14,7 +14,8 @@ const ManageHost: FC = () => { addHeader="Initialize host" editHeader="" - entriesUrl="/host" + entriesUrl="/host?types=dr,node" + entryUrlPrefix="/host" getDeleteErrorMessage={(children, ...rest) => ({ ...rest, children: <>Failed to delete host(s). {children}, From 87f69dd84579ad38ca1fa47acaeadf570b2c1ba3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 18:18:10 -0500 Subject: [PATCH 13/18] fix(striker-ui): expose mutate function in useFetch hook --- striker-ui/hooks/useFetch.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/striker-ui/hooks/useFetch.tsx b/striker-ui/hooks/useFetch.tsx index cea9a3d3..64a6d7f8 100644 --- a/striker-ui/hooks/useFetch.tsx +++ b/striker-ui/hooks/useFetch.tsx @@ -1,5 +1,5 @@ import { useMemo } from 'react'; -import useSWR, { BareFetcher, SWRConfiguration } from 'swr'; +import useSWR, { BareFetcher, KeyedMutator, SWRConfiguration } from 'swr'; import API_BASE_URL from '../lib/consts/API_BASE_URL'; @@ -8,6 +8,7 @@ import fetchJSON from '../lib/fetchers/fetchJSON'; type FetchHookResponse = { data?: D; error?: E; + mutate: KeyedMutator; loading: boolean; }; @@ -26,7 +27,11 @@ const useFetch = ( ...config } = options; - const { data, error } = useSWR(`${baseUrl}${url}`, fetcher, config); + const { data, error, mutate } = useSWR( + `${baseUrl}${url}`, + fetcher, + config, + ); const altData = useMemo( () => mod && data && mod(data), @@ -35,7 +40,7 @@ const useFetch = ( const loading = !error && !data; - return { altData, data, error, loading }; + return { altData, data, error, mutate, loading }; }; export default useFetch; From 1fb67c974a08788026548f5c306d78d0b17e9423 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 18:19:26 -0500 Subject: [PATCH 14/18] chore(striker-ui): remove old prepare host form --- striker-ui/components/PrepareHostForm.tsx | 660 ---------------------- 1 file changed, 660 deletions(-) delete mode 100644 striker-ui/components/PrepareHostForm.tsx diff --git a/striker-ui/components/PrepareHostForm.tsx b/striker-ui/components/PrepareHostForm.tsx deleted file mode 100644 index 47a7324b..00000000 --- a/striker-ui/components/PrepareHostForm.tsx +++ /dev/null @@ -1,660 +0,0 @@ -import { - Visibility as MUIVisibilityIcon, - VisibilityOff as MUIVisibilityOffIcon, -} from '@mui/icons-material'; -import { Box as MUIBox, IconButton as MUIIconButton } from '@mui/material'; -import { FC, useCallback, useMemo, useRef, useState } from 'react'; - -import { GREY } from '../lib/consts/DEFAULT_THEME'; -import INPUT_TYPES from '../lib/consts/INPUT_TYPES'; - -import api from '../lib/api'; -import handleAPIError from '../lib/handleAPIError'; -import { - buildDomainTestBatch, - buildIPAddressTestBatch, - buildPeacefulStringTestBatch, - buildUUIDTestBatch, - createTestInputFunction, -} from '../lib/test_input'; - -import ConfirmDialog from './ConfirmDialog'; -import ContainedButton from './ContainedButton'; -import FlexBox from './FlexBox'; -import GateForm from './GateForm'; -import Grid from './Grid'; -import InputWithRef, { InputForwardedRefContent } from './InputWithRef'; -import { Message } from './MessageBox'; -import MessageGroup, { MessageGroupForwardedRefContent } from './MessageGroup'; -import OutlinedInputWithLabel from './OutlinedInputWithLabel'; -import { Panel, PanelHeader } from './Panels'; -import RadioGroupWithLabel from './RadioGroupWithLabel'; -import Spinner from './Spinner'; -import { BodyText, HeaderText, MonoText } from './Text'; - -const ENTERPRISE_KEY_LABEL = 'Alteeve enterprise key'; -const HOST_IP_LABEL = 'Host IP address'; -const HOST_NAME_LABEL = 'Host name'; -const REDHAT_PASSWORD_LABEL = 'RedHat password'; -const REDHAT_USER_LABEL = 'RedHat user'; -const SUCCESS_MESSAGE_TIMEOUT = 5000; - -const IT_IDS = { - enterpriseKey: 'enterpriseKey', - hostName: 'hostName', - redhatPassword: 'redhatPassword', - redhatUser: 'redhatUser', -}; - -const GRID_COLUMNS: Exclude = { - xs: 1, - sm: 2, -}; -const GRID_SPACING: Exclude = '1em'; - -const PrepareHostForm: FC = () => { - const confirmDialogRef = useRef({}); - const inputEnterpriseKeyRef = useRef>({}); - const inputHostNameRef = useRef>({}); - const inputRedhatPassword = useRef>({}); - const inputRedhatUser = useRef>({}); - const messageGroupRef = useRef({}); - - const [confirmValues, setConfirmValues] = useState< - | { - enterpriseKey: string; - hostName: string; - redhatPassword: string; - redhatPasswordHidden: string; - redhatUser: string; - } - | undefined - >(); - const [connectedHostIPAddress, setConnectedHostIPAddress] = useState< - string | undefined - >(); - const [connectedHostPassword, setConnectedHostPassword] = useState< - string | undefined - >(); - const [connectedHostUUID, setConnectedHostUUID] = useState(''); - const [inputHostType, setInputHostType] = useState(''); - const [isInputEnterpriseKeyValid, setIsInputEnterpriseKeyValid] = - useState(true); - const [isInputHostNameValid, setIsInputHostNameValid] = - useState(false); - const [isInputRedhatPasswordValid, setIsInputRedhatPasswordValid] = - useState(true); - const [isInputRedhatUserValid, setIsInputRedhatUserValid] = - useState(true); - const [isShowAccessSection, setIsShowAccessSection] = - useState(false); - const [isShowOptionalSection, setIsShowOptionalSection] = - useState(false); - const [isShowRedhatPassword, setIsShowRedhatPassword] = - useState(false); - const [isShowRedhatSection, setIsShowRedhatSection] = - useState(false); - const [isSubmittingPrepareHost, setIsSubmittingPrepareHost] = - useState(false); - - const setHostNameInputMessage = useCallback((message?: Message) => { - messageGroupRef.current.setMessage?.call(null, IT_IDS.hostName, message); - }, []); - const setEnterpriseKeyInputMessage = useCallback((message?: Message) => { - messageGroupRef.current.setMessage?.call( - null, - IT_IDS.enterpriseKey, - message, - ); - }, []); - const setRedhatPasswordInputMessage = useCallback((message?: Message) => { - messageGroupRef.current.setMessage?.call( - null, - IT_IDS.redhatPassword, - message, - ); - }, []); - const setRedhatUserInputMessage = useCallback((message?: Message) => { - messageGroupRef.current.setMessage?.call(null, IT_IDS.redhatUser, message); - }, []); - const setSubmitPrepareHostMessage = useCallback( - (message?: Message) => - messageGroupRef.current.setMessage?.call( - null, - 'submitPrepareHost', - message, - ), - [], - ); - - const inputTests = useMemo( - () => ({ - [IT_IDS.enterpriseKey]: buildUUIDTestBatch( - ENTERPRISE_KEY_LABEL, - () => { - setEnterpriseKeyInputMessage(); - }, - undefined, - (message) => { - setEnterpriseKeyInputMessage({ children: message, type: 'warning' }); - }, - ), - [IT_IDS.hostName]: buildDomainTestBatch( - HOST_NAME_LABEL, - () => { - setHostNameInputMessage(); - }, - undefined, - (message) => { - setHostNameInputMessage({ children: message, type: 'warning' }); - }, - ), - [IT_IDS.redhatPassword]: buildPeacefulStringTestBatch( - REDHAT_PASSWORD_LABEL, - () => { - setRedhatPasswordInputMessage(); - }, - undefined, - (message) => { - setRedhatPasswordInputMessage({ children: message, type: 'warning' }); - }, - ), - [IT_IDS.redhatUser]: buildPeacefulStringTestBatch( - REDHAT_USER_LABEL, - () => { - setRedhatUserInputMessage(); - }, - undefined, - (message) => { - setRedhatUserInputMessage({ children: message, type: 'warning' }); - }, - ), - }), - [ - setEnterpriseKeyInputMessage, - setHostNameInputMessage, - setRedhatPasswordInputMessage, - setRedhatUserInputMessage, - ], - ); - const testInput = useMemo( - () => createTestInputFunction(inputTests), - [inputTests], - ); - - const redhatElementSxDisplay = useMemo( - () => (isShowRedhatSection ? undefined : 'none'), - [isShowRedhatSection], - ); - - const accessSection = useMemo( - () => ( - { - if (connectedHostIPAddress) { - const isIdentifierChanged = value !== connectedHostIPAddress; - - setIsShowOptionalSection(!isIdentifierChanged); - setIsShowRedhatSection(!isIdentifierChanged); - } - }} - onSubmitAppend={( - ipAddress, - password, - setGateMessage, - setGateIsSubmitting, - ) => { - const body = { ipAddress, password }; - - api - .put( - '/command/inquire-host', - body, - ) - .then( - ({ - data: { - hostName, - hostOS, - hostUUID, - isConnected, - isInetConnected, - isOSRegistered, - }, - }) => { - if (isConnected) { - inputHostNameRef.current.setValue?.call(null, hostName); - - const valid = testInput({ - inputs: { [IT_IDS.hostName]: { value: hostName } }, - }); - setIsInputHostNameValid(valid); - - if ( - isInetConnected && - /rhel/i.test(hostOS) && - !isOSRegistered - ) { - setIsShowRedhatSection(true); - } - - setConnectedHostIPAddress(ipAddress); - setConnectedHostPassword(password); - setConnectedHostUUID(hostUUID); - - setIsShowOptionalSection(true); - } else { - setGateMessage({ - children: `Failed to establish a connection with the given host credentials.`, - type: 'error', - }); - } - }, - ) - .catch((apiError) => { - const emsg = handleAPIError(apiError); - - setGateMessage?.call(null, emsg); - }) - .finally(() => { - setGateIsSubmitting(false); - }); - }} - passphraseLabel="Host root password" - submitLabel={`${connectedHostUUID ? 'Retest' : 'Test'} access`} - /> - ), - [connectedHostIPAddress, connectedHostUUID, isShowAccessSection, testInput], - ); - - const optionalSection = useMemo( - () => ( - { - const valid = testInput({ - inputs: { [IT_IDS.hostName]: { value } }, - }); - setIsInputHostNameValid(valid); - }, - onFocus: () => { - setHostNameInputMessage(); - }, - }} - label={HOST_NAME_LABEL} - /> - } - ref={inputHostNameRef} - /> - ), - }, - 'preparehost-enterprise-key': { - children: ( - { - if (value) { - const valid = testInput({ - inputs: { [IT_IDS.enterpriseKey]: { value } }, - }); - setIsInputEnterpriseKeyValid(valid); - } - }, - onFocus: () => { - setEnterpriseKeyInputMessage(); - }, - }} - label={ENTERPRISE_KEY_LABEL} - /> - } - ref={inputEnterpriseKeyRef} - /> - ), - }, - }} - spacing={GRID_SPACING} - wrapperBoxProps={{ - sx: { display: isShowOptionalSection ? undefined : 'none' }, - }} - /> - ), - [ - isShowOptionalSection, - setEnterpriseKeyInputMessage, - setHostNameInputMessage, - testInput, - ], - ); - - const redhatSection = useMemo( - () => ( - { - if (value) { - const valid = testInput({ - inputs: { [IT_IDS.redhatUser]: { value } }, - }); - setIsInputRedhatUserValid(valid); - } - }, - onFocus: () => { - setRedhatUserInputMessage(); - }, - }} - label={REDHAT_USER_LABEL} - /> - } - ref={inputRedhatUser} - /> - ), - }, - 'preparehost-redhat-password': { - children: ( - { - if (value) { - const valid = testInput({ - inputs: { [IT_IDS.redhatPassword]: { value } }, - }); - setIsInputRedhatPasswordValid(valid); - } - }, - onFocus: () => { - setRedhatPasswordInputMessage(); - }, - onPasswordVisibilityAppend: (type) => { - setIsShowRedhatPassword(type !== INPUT_TYPES.password); - }, - type: INPUT_TYPES.password, - }} - label={REDHAT_PASSWORD_LABEL} - /> - } - ref={inputRedhatPassword} - /> - ), - }, - }} - spacing={GRID_SPACING} - wrapperBoxProps={{ - sx: { display: redhatElementSxDisplay }, - }} - /> - ), - [ - redhatElementSxDisplay, - setRedhatPasswordInputMessage, - setRedhatUserInputMessage, - testInput, - ], - ); - - const messageSection = useMemo( - () => ( - - - - ), - [isShowOptionalSection], - ); - - const submitSection = useMemo( - () => - isSubmittingPrepareHost ? ( - - ) : ( - - { - const redhatPasswordInputValue = - inputRedhatPassword.current.getValue?.call(null); - - setConfirmValues({ - enterpriseKey: - inputEnterpriseKeyRef.current.getValue?.call(null) || - 'none; using community version', - hostName: inputHostNameRef.current.getValue?.call(null) || '', - redhatPassword: redhatPasswordInputValue || 'none', - redhatPasswordHidden: - redhatPasswordInputValue?.replace(/./g, '*') || 'none', - redhatUser: - inputRedhatUser.current.getValue?.call(null) || 'none', - }); - setSubmitPrepareHostMessage(); - - confirmDialogRef.current.setOpen?.call(null, true); - }} - > - Prepare host - - - ), - [ - isInputEnterpriseKeyValid, - isInputHostNameValid, - isInputRedhatPasswordValid, - isInputRedhatUserValid, - isShowOptionalSection, - isSubmittingPrepareHost, - setSubmitPrepareHostMessage, - ], - ); - - return ( - <> - - - Prepare a host to include in Anvil! - - - { - setInputHostType(value); - setIsShowAccessSection(true); - }} - radioItems={{ - node: { label: 'Subnode', value: 'node' }, - dr: { label: 'Disaster Recovery (DR) host', value: 'dr' }, - }} - /> - {accessSection} - {optionalSection} - {redhatSection} - {messageSection} - {submitSection} - - - ({ - xs: index % 2 === 0 ? 1 : 2, - })} - columns={3} - layout={{ - 'preparehost-confirm-host-type-label': { - children: Host type, - }, - 'preparehost-confirm-host-type-value': { - children: ( - - {inputHostType === 'dr' - ? 'Disaster Recovery (DR)' - : 'Subnode'} - - ), - }, - 'preparehost-confirm-host-name-label': { - children: Host name, - }, - 'preparehost-confirm-host-name-value': { - children: {confirmValues?.hostName}, - }, - 'preparehost-confirm-enterprise-key-label': { - children: Alteeve enterprise key, - }, - 'preparehost-confirm-enterprise-key-value': { - children: {confirmValues?.enterpriseKey}, - }, - 'preparehost-confirm-redhat-user-label': { - children: RedHat user, - sx: { display: redhatElementSxDisplay }, - }, - 'preparehost-confirm-redhat-user-value': { - children: {confirmValues?.redhatUser}, - sx: { display: redhatElementSxDisplay }, - }, - 'preparehost-confirm-redhat-password-label': { - children: RedHat password, - sx: { display: redhatElementSxDisplay }, - }, - 'preparehost-confirm-redhat-password-value': { - children: ( - - - {isShowRedhatPassword - ? confirmValues?.redhatPassword - : confirmValues?.redhatPasswordHidden} - - { - setIsShowRedhatPassword((previous) => !previous); - }} - sx={{ color: GREY, padding: 0 }} - > - {isShowRedhatPassword ? ( - - ) : ( - - )} - - - ), - sx: { display: redhatElementSxDisplay }, - }, - }} - spacing=".6em" - /> - } - onCancelAppend={() => { - setIsShowRedhatPassword(false); - }} - onProceedAppend={() => { - setIsSubmittingPrepareHost(true); - - api - .put('/host/prepare', { - enterpriseUUID: - inputEnterpriseKeyRef.current.getValue?.call(null), - hostIPAddress: connectedHostIPAddress, - hostName: inputHostNameRef.current.getValue?.call(null), - hostPassword: connectedHostPassword, - hostType: inputHostType, - hostUUID: connectedHostUUID, - redhatPassword: inputRedhatPassword.current.getValue?.call(null), - redhatUser: inputRedhatUser.current.getValue?.call(null), - }) - .then(() => { - setSubmitPrepareHostMessage({ - children: `Successfully initiated prepare host.`, - }); - - setTimeout(() => { - setSubmitPrepareHostMessage(); - }, SUCCESS_MESSAGE_TIMEOUT); - }) - .catch((error) => { - const errorMessage = handleAPIError(error, { - onResponseErrorAppend: ({ status }) => { - let result: Message | undefined; - - if (status === 400) { - result = { - children: `The API found invalid values. Did you forget to fill in one of the RedHat fields?`, - type: 'warning', - }; - } - - return result; - }, - }); - - setSubmitPrepareHostMessage(errorMessage); - }) - .finally(() => { - setIsSubmittingPrepareHost(false); - }); - }} - ref={confirmDialogRef} - titleText="Confirm host preparation" - /> - - ); -}; - -export default PrepareHostForm; From 78820bd95aedf5b5195412735877249d9bb57252 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 18:20:41 -0500 Subject: [PATCH 15/18] fix(striker-ui): remove excess entries fetcher in CRUD list --- striker-ui/components/CrudList.tsx | 31 +++++++++--------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/striker-ui/components/CrudList.tsx b/striker-ui/components/CrudList.tsx index 3d94f310..61b1d6f3 100644 --- a/striker-ui/components/CrudList.tsx +++ b/striker-ui/components/CrudList.tsx @@ -56,21 +56,12 @@ const CrudList = < const [edit, setEdit] = useState(false); const [entry, setEntry] = useState(); - const [entries, setEntries] = useState(); - const { loading: loadingEntriesPeriodic } = useFetch( - entriesUrl, - { - onSuccess: (data) => setEntries(data), - refreshInterval, - }, - ); - - const { fetch: getEntries, loading: loadingEntriesActive } = - useActiveFetch({ - onData: (data) => setEntries(data), - url: entriesUrl, - }); + const { + data: entries, + mutate: refreshEntries, + loading: loadingEntries, + } = useFetch(entriesUrl, { refreshInterval }); const { fetch: getEntry, loading: loadingEntry } = useActiveFetch({ onData: (data) => setEntry(data), @@ -110,11 +101,6 @@ const CrudList = < ], ); - const loadingEntries = useMemo( - () => loadingEntriesPeriodic || loadingEntriesActive, - [loadingEntriesActive, loadingEntriesPeriodic], - ); - const { buildDeleteDialogProps, checks, @@ -164,15 +150,16 @@ const CrudList = < .then(() => { finishConfirm('Success', getDeleteSuccessMessage()); - getEntries(); + refreshEntries(); }) .catch((error) => { const emsg = handleAPIError(error); finishConfirm('Error', getDeleteErrorMessage(emsg)); + }) + .finally(() => { + resetChecks(); }); - - resetChecks(); }, getConfirmDialogTitle: getDeleteHeader, renderEntry: (...args) => renderDeleteItem(entries, ...args), From d2c8d03b5cd0ece8be47f977a903322a16d57379 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 6 Feb 2024 18:24:39 -0500 Subject: [PATCH 16/18] fix(striker-ui): apply new manage host to replace old prepare host form --- striker-ui/pages/manage-element/index.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/striker-ui/pages/manage-element/index.tsx b/striker-ui/pages/manage-element/index.tsx index 79e582df..9342f193 100644 --- a/striker-ui/pages/manage-element/index.tsx +++ b/striker-ui/pages/manage-element/index.tsx @@ -8,15 +8,16 @@ import Grid from '../../components/Grid'; import handleAPIError from '../../lib/handleAPIError'; import Header from '../../components/Header'; import ManageFencePanel from '../../components/ManageFence'; +import { ManageHost } from '../../components/ManageHost'; import ManageManifestPanel from '../../components/ManageManifest'; import ManageUpsPanel from '../../components/ManageUps'; -import { Panel } from '../../components/Panels'; -import PrepareHostForm from '../../components/PrepareHostForm'; +import { Panel, PanelHeader } from '../../components/Panels'; import PrepareNetworkForm from '../../components/PrepareNetworkForm'; import Spinner from '../../components/Spinner'; import Tab from '../../components/Tab'; import TabContent from '../../components/TabContent'; import Tabs from '../../components/Tabs'; +import { HeaderText } from '../../components/Text'; import useIsFirstRender from '../../hooks/useIsFirstRender'; const TAB_ID_PREPARE_HOST = 'prepare-host'; @@ -42,7 +43,14 @@ const PrepareHostTabContent: FC = () => ( layout={{ 'preparehost-left-column': {}, 'preparehost-center-column': { - children: , + children: ( + + + Hosts + + + + ), ...STEP_CONTENT_GRID_CENTER_COLUMN, }, }} From c37df57bd7505afa787a5eb8b35843b14fd0f821 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 7 Mar 2024 12:39:12 -0500 Subject: [PATCH 17/18] fix(striker-ui): set message group ref in test access form --- striker-ui/components/ManageHost/TestAccessForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/ManageHost/TestAccessForm.tsx b/striker-ui/components/ManageHost/TestAccessForm.tsx index 5731fcf9..827d5910 100644 --- a/striker-ui/components/ManageHost/TestAccessForm.tsx +++ b/striker-ui/components/ManageHost/TestAccessForm.tsx @@ -122,7 +122,11 @@ const TestAccessForm: FC = (props) => { ) : ( <> - + Date: Thu, 7 Mar 2024 12:42:28 -0500 Subject: [PATCH 18/18] build(striker-ui): rebuild --- .../out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_buildManifest.js | 1 - .../out/_next/static/JM2ldb5hOFExU7LFXSU9o/_buildManifest.js | 1 + .../_ssgManifest.js | 0 striker-ui/out/_next/static/chunks/17-0593dc8fdd9c512e.js | 1 + .../chunks/{264-1be1a496ee1255c6.js => 264-683b93ad6e70a8fb.js} | 2 +- striker-ui/out/_next/static/chunks/270-56592f453c639f63.js | 1 - striker-ui/out/_next/static/chunks/270-9058c1049a825f7d.js | 1 + striker-ui/out/_next/static/chunks/380-0eff6addb79bd61f.js | 1 - .../chunks/{486-1480d7483e28c6f3.js => 486-45903b907cd7ece3.js} | 2 +- striker-ui/out/_next/static/chunks/556-0c0cace3593e5307.js | 1 + striker-ui/out/_next/static/chunks/556-dbf62d8622405edc.js | 1 - striker-ui/out/_next/static/chunks/569-fa9b9ac8a7639d2d.js | 1 - .../chunks/{675-235890fb4812bd16.js => 675-9a50fb0ae255b835.js} | 2 +- .../chunks/{750-b9b6c5fdabc264a0.js => 750-9f873f4e10dbcacd.js} | 2 +- striker-ui/out/_next/static/chunks/814-6420b976d086fe20.js | 1 + .../out/_next/static/chunks/pages/config-144ed56943e89e8c.js | 1 + .../out/_next/static/chunks/pages/config-1c39d13147dfe819.js | 1 - .../_next/static/chunks/pages/file-manager-8a23bb0baebac7f6.js | 1 + .../_next/static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js | 1 - .../out/_next/static/chunks/pages/index-0e23f6af1e089a97.js | 1 + .../out/_next/static/chunks/pages/index-6febd0ab3b8c828c.js | 1 - .../out/_next/static/chunks/pages/login-1d03dfaf2cb572f8.js | 1 + .../out/_next/static/chunks/pages/login-5fd1d7a2717b59af.js | 1 - .../_next/static/chunks/pages/mail-config-14cdc2dd46514057.js | 1 - .../_next/static/chunks/pages/mail-config-77c70d16ef879e90.js | 1 + .../static/chunks/pages/manage-element-766bd9ef38ccbfa4.js | 1 - .../static/chunks/pages/manage-element-7ac129e45d98ff58.js | 1 + striker-ui/out/anvil.html | 2 +- striker-ui/out/config.html | 2 +- striker-ui/out/file-manager.html | 2 +- striker-ui/out/index.html | 2 +- striker-ui/out/init.html | 2 +- striker-ui/out/login.html | 2 +- striker-ui/out/mail-config.html | 2 +- striker-ui/out/manage-element.html | 2 +- striker-ui/out/server.html | 2 +- 36 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_buildManifest.js create mode 100644 striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_buildManifest.js rename striker-ui/out/_next/static/{BQQcSBBTtNN9dIUZ9m3Ow => JM2ldb5hOFExU7LFXSU9o}/_ssgManifest.js (100%) create mode 100644 striker-ui/out/_next/static/chunks/17-0593dc8fdd9c512e.js rename striker-ui/out/_next/static/chunks/{264-1be1a496ee1255c6.js => 264-683b93ad6e70a8fb.js} (99%) delete mode 100644 striker-ui/out/_next/static/chunks/270-56592f453c639f63.js create mode 100644 striker-ui/out/_next/static/chunks/270-9058c1049a825f7d.js delete mode 100644 striker-ui/out/_next/static/chunks/380-0eff6addb79bd61f.js rename striker-ui/out/_next/static/chunks/{486-1480d7483e28c6f3.js => 486-45903b907cd7ece3.js} (99%) create mode 100644 striker-ui/out/_next/static/chunks/556-0c0cace3593e5307.js delete mode 100644 striker-ui/out/_next/static/chunks/556-dbf62d8622405edc.js delete mode 100644 striker-ui/out/_next/static/chunks/569-fa9b9ac8a7639d2d.js rename striker-ui/out/_next/static/chunks/{675-235890fb4812bd16.js => 675-9a50fb0ae255b835.js} (82%) rename striker-ui/out/_next/static/chunks/{750-b9b6c5fdabc264a0.js => 750-9f873f4e10dbcacd.js} (73%) create mode 100644 striker-ui/out/_next/static/chunks/814-6420b976d086fe20.js create mode 100644 striker-ui/out/_next/static/chunks/pages/config-144ed56943e89e8c.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/config-1c39d13147dfe819.js create mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-8a23bb0baebac7f6.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js create mode 100644 striker-ui/out/_next/static/chunks/pages/index-0e23f6af1e089a97.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/index-6febd0ab3b8c828c.js create mode 100644 striker-ui/out/_next/static/chunks/pages/login-1d03dfaf2cb572f8.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/login-5fd1d7a2717b59af.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/mail-config-14cdc2dd46514057.js create mode 100644 striker-ui/out/_next/static/chunks/pages/mail-config-77c70d16ef879e90.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/manage-element-766bd9ef38ccbfa4.js create mode 100644 striker-ui/out/_next/static/chunks/pages/manage-element-7ac129e45d98ff58.js diff --git a/striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_buildManifest.js b/striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_buildManifest.js deleted file mode 100644 index 328d28fc..00000000 --- a/striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,a,t,e,i,n,f,b,u,k,h,j,d,g,r,l,_,o,m){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,a,t,i,n,f,u,"static/chunks/6-dbef3ba2a090cb05.js",c,e,b,k,g,r,"static/chunks/pages/index-6febd0ab3b8c828c.js"],"/_error":["static/chunks/pages/_error-a9572f84d60f21da.js"],"/anvil":[s,a,t,i,n,f,u,"static/chunks/924-2a2fdb45d3e02493.js",c,e,b,k,g,"static/chunks/pages/anvil-38307a04a51f8094.js"],"/config":[s,a,t,n,h,d,c,e,j,"static/chunks/pages/config-1c39d13147dfe819.js"],"/file-manager":[s,a,t,i,f,h,l,"static/chunks/486-1480d7483e28c6f3.js",c,e,b,_,"static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js"],"/init":[s,a,i,n,f,u,d,o,c,e,b,j,m,"static/chunks/pages/init-210f96453904f447.js"],"/login":[s,a,t,n,c,e,j,"static/chunks/pages/login-5fd1d7a2717b59af.js"],"/mail-config":[s,a,t,i,n,f,u,h,l,c,e,b,k,_,"static/chunks/pages/mail-config-14cdc2dd46514057.js"],"/manage-element":[s,a,t,i,n,f,u,h,d,o,"static/chunks/569-fa9b9ac8a7639d2d.js",c,e,b,k,j,m,"static/chunks/pages/manage-element-766bd9ef38ccbfa4.js"],"/server":[s,t,i,c,r,"static/chunks/pages/server-d81577dd0b817ba2.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/mail-config","/manage-element","/server"]}}("static/chunks/494-413067ecdf8ec8f0.js","static/chunks/775-3f1c58f77437bd5d.js","static/chunks/804-a6d43595270ed0d2.js","static/chunks/416-b31c470a96d10e58.js","static/chunks/675-235890fb4812bd16.js","static/chunks/50-af452066db73e3df.js","static/chunks/263-5784adae0d1d8513.js","static/chunks/213-67c4f0768a44e039.js","static/chunks/633-900b9341a6a3bc53.js","static/chunks/310-4edb13985847ab25.js","static/chunks/733-a945bbb3c5f55f74.js","static/chunks/461-c4e18a515455805e.js","static/chunks/556-dbf62d8622405edc.js","static/chunks/203-ea1ab9b7c3c7694b.js","static/chunks/750-b9b6c5fdabc264a0.js","static/chunks/302-6490e226661e8e00.js","static/chunks/264-1be1a496ee1255c6.js","static/chunks/380-0eff6addb79bd61f.js","static/chunks/197-c291e38a27168218.js","static/chunks/270-56592f453c639f63.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_buildManifest.js b/striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_buildManifest.js new file mode 100644 index 00000000..90bf890f --- /dev/null +++ b/striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,e,t,i,n,f,b,u,d,k,h,j,g,r,l,_,o,m){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,a,e,i,n,f,u,"static/chunks/6-dbef3ba2a090cb05.js",c,t,b,d,r,l,"static/chunks/pages/index-0e23f6af1e089a97.js"],"/_error":["static/chunks/pages/_error-a9572f84d60f21da.js"],"/anvil":[s,a,e,i,n,f,u,"static/chunks/924-2a2fdb45d3e02493.js",c,t,b,d,r,"static/chunks/pages/anvil-38307a04a51f8094.js"],"/config":[s,a,e,n,k,j,c,t,h,"static/chunks/pages/config-144ed56943e89e8c.js"],"/file-manager":[s,a,e,i,f,k,g,"static/chunks/486-45903b907cd7ece3.js",c,t,b,"static/chunks/pages/file-manager-8a23bb0baebac7f6.js"],"/init":[s,a,i,n,f,u,j,_,c,t,b,h,o,"static/chunks/pages/init-210f96453904f447.js"],"/login":[s,a,e,n,c,t,h,"static/chunks/pages/login-1d03dfaf2cb572f8.js"],"/mail-config":[s,a,e,i,n,f,u,k,g,c,t,b,d,m,"static/chunks/pages/mail-config-77c70d16ef879e90.js"],"/manage-element":[s,a,e,i,n,f,u,k,g,j,_,"static/chunks/814-6420b976d086fe20.js",c,t,b,d,h,o,m,"static/chunks/pages/manage-element-7ac129e45d98ff58.js"],"/server":[s,e,i,c,l,"static/chunks/pages/server-d81577dd0b817ba2.js"],sortedPages:["/","/_app","/_error","/anvil","/config","/file-manager","/init","/login","/mail-config","/manage-element","/server"]}}("static/chunks/494-413067ecdf8ec8f0.js","static/chunks/775-3f1c58f77437bd5d.js","static/chunks/804-a6d43595270ed0d2.js","static/chunks/416-b31c470a96d10e58.js","static/chunks/675-9a50fb0ae255b835.js","static/chunks/50-af452066db73e3df.js","static/chunks/263-5784adae0d1d8513.js","static/chunks/213-67c4f0768a44e039.js","static/chunks/633-900b9341a6a3bc53.js","static/chunks/310-4edb13985847ab25.js","static/chunks/733-a945bbb3c5f55f74.js","static/chunks/461-c4e18a515455805e.js","static/chunks/556-0c0cace3593e5307.js","static/chunks/203-ea1ab9b7c3c7694b.js","static/chunks/264-683b93ad6e70a8fb.js","static/chunks/750-9f873f4e10dbcacd.js","static/chunks/302-6490e226661e8e00.js","static/chunks/197-c291e38a27168218.js","static/chunks/270-9058c1049a825f7d.js","static/chunks/17-0593dc8fdd9c512e.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_ssgManifest.js b/striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_ssgManifest.js similarity index 100% rename from striker-ui/out/_next/static/BQQcSBBTtNN9dIUZ9m3Ow/_ssgManifest.js rename to striker-ui/out/_next/static/JM2ldb5hOFExU7LFXSU9o/_ssgManifest.js diff --git a/striker-ui/out/_next/static/chunks/17-0593dc8fdd9c512e.js b/striker-ui/out/_next/static/chunks/17-0593dc8fdd9c512e.js new file mode 100644 index 00000000..a5374987 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/17-0593dc8fdd9c512e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{82456:function(e,t,n){var l=n(85893),r=n(67294),o=n(67645),a=n(56211),i=n(41247),u=n(63071),s=n(6903),c=n(32576),d=n(7576),h=n(67978);let reduceHeader=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),l=1;l1?t-1:0),l=1;le,listEmpty:x,listProps:j,onItemClick:E=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),l=1;lU(e),url:O}),K=(0,r.useMemo)(()=>reduceHeader(f),[f]),z=(0,r.useMemo)(()=>reduceHeader(v,D),[D,v]),X=(0,r.useMemo)(()=>({add:{open:function(){var e;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return null==V?void 0:null===(e=V.current)||void 0===e?void 0:e.setOpen(t)}},confirm:{finish:W,loading:F,open:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return H(e)},prepare:I},edit:{open:function(){var e;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return null==L?void 0:null===(e=L.current)||void 0===e?void 0:e.setOpen(t)}}}),[W,F,H,I]),{buildDeleteDialogProps:G,checks:Q,getCheck:Y,hasAllChecks:ee,hasChecks:et,multipleItems:en,resetChecks:el,setAllChecks:er,setCheck:eo}=(0,c.Z)({list:$});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Z,{allowCheckAll:en,allowEdit:!0,allowItemButton:R,disableDelete:!et,edit:R,getListCheckboxProps:()=>({checked:ee,onChange:(e,t)=>er(t)}),getListItemCheckboxProps:e=>({checked:Y(e),onChange:(t,n)=>eo(e,n)}),header:!0,listEmpty:x,listItems:$,loading:J,onAdd:()=>{var e;return null==V?void 0:null===(e=V.current)||void 0===e?void 0:e.setOpen(!0)},onDelete:()=>{I(G({onProceedAppend:()=>{F(!0),Promise.all(k((e,t)=>e.map(e=>o.Z.delete("".concat(t,"/").concat(e))),Q,p)).then(()=>{W("Success",Z()),q()}).catch(e=>{let t=(0,i.Z)(e);W("Error",b(t))}).finally(()=>{el()})},getConfirmDialogTitle:y,renderEntry:function(){for(var e=arguments.length,t=Array(e),n=0;nT(e=>!e),onItemClick:function(){for(var e=arguments.length,t=Array(e),n=0;n{var n;null==L||null===(n=L.current)||void 0===n||n.setOpen(!0),N("/".concat(t))},...t)},renderListItem:P,...j}),(0,l.jsx)(a.Js,{header:K,loading:null==m?void 0:m.call(null),ref:V,showClose:!0,children:M(X)}),(0,l.jsx)(a.Js,{header:z,loading:C(B),ref:L,showClose:!0,children:A(X,D)}),_]})}},15079:function(e,t,n){var l=n(85893),r=n(97212),o=n(78462),a=n(5616),i=n(55238),u=n(84154),s=n(5744);let renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,l.jsx)(u.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:n}=e;return/passw/i.test(n)?(0,l.jsx)(u.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:n,getEntryLabel:a,getListProps:i,getListItemProps:u,listKey:s,maxDepth:c,renderEntry:d,renderEntryValue:h,skip:g}=e,f=[];Object.entries(n).forEach(e=>{let[n,o]=e,i="form-summary-entry-".concat(n),s=null!==o&&"object"==typeof o,v=s?null:o,p={depth:t,entry:v,key:n};g(e=>{let{key:t}=e;return!/confirm/i.test(t)},p)&&f.push((0,l.jsx)(r.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==u?void 0:u.call(null,p),children:d({depth:t,entry:v,getLabel:a,key:n,nest:s,renderValue:h})},i)),s&&t{let{entries:t,getEntryLabel:n=e=>{let{cap:t,key:n}=e;return t(n)},getListProps:r,getListItemProps:o,hasPassword:c,maxDepth:d=3,renderEntry:h=e=>{let{depth:t,entry:n,getLabel:r,key:o,nest:c,renderValue:d}=e;return(0,l.jsxs)(i.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,l.jsx)(u.Ac,{children:r({cap:s.Z,depth:t,entry:n,key:o})}),(0,l.jsx)(a.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!c&&d({depth:t,entry:n,key:o})})]})},renderEntryValue:g=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,l.jsx)(u.Ac,{children:"none"}):c?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)},skip:f=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),l=1;l{let{input:n,onChange:a=function(e){let{handlers:{base:t,origin:n}}=e;for(var l=arguments.length,r=Array(l>1?l-1:0),o=1;o{let{type:e}=s,t="value",n="string";return e===r.Z.checkbox&&(t="checked",n="boolean"),{valueKey:t,valueType:n}},[s]),{onChange:h,[c]:g,...f}=s,[v,p]=(0,l.useState)(g),m=(0,l.useCallback)(e=>{let{target:{[c]:t}}=e,n=o.Z[d](t);p(n)},[c,d]),b=(0,l.useCallback)(function(){for(var e=arguments.length,t=Array(e),n=0;n(null==i||i.call(null),u),[]),(0,l.useImperativeHandle)(t,()=>({get:()=>v,set:p}),[v]),(0,l.cloneElement)(n,{...f,onChange:b,[c]:v})});a.displayName="UncontrolledInput",t.Z=a},6903:function(e,t,n){var l=n(67294),r=n(67645),o=n(41247);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{config:t,onError:n,onData:a,url:i=""}=e,[u,s]=(0,l.useState)(!1),c=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0,u="".concat(i).concat(e);u&&(s(!0),r.Z.get(u,{...t,...l}).then(e=>{let{data:t}=e;null==a||a.call(null,t)}).catch(e=>{let t=(0,o.Z)(e);null==n||n.call(null,t)}).finally(()=>{s(!1)}))},[i,t,a,n]);return{fetch:c,loading:u}}},32576:function(e,t,n){var l=n(85893),r=n(67294),o=n(84070),a=n(15079);t.Z=e=>{let{list:t={}}=e,[n,i]=(0,r.useState)({}),u=(0,r.useMemo)(()=>Object.keys(t),[t]),s=(0,r.useMemo)(()=>Object.keys(n),[n]),c=(0,r.useMemo)(()=>s.length===u.length,[s.length,u.length]),d=(0,r.useMemo)(()=>s.length>0,[s.length]),h=(0,r.useMemo)(()=>u.length>1,[u.length]),g=(0,r.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:r={},getConfirmDialogTitle:o,onProceedAppend:i,renderEntry:u}=e;return{actionProceedText:"Delete",content:(0,l.jsx)(a.Z,{entries:n,maxDepth:0,renderEntry:u,...r}),onProceedAppend:i,proceedColour:"red",titleText:o(s.length),...t}},[n,s.length]),f=(0,r.useCallback)(e=>!!n[e],[n]),v=(0,r.useCallback)(()=>i({}),[]),p=(0,r.useCallback)(e=>i(u.reduce((t,n)=>(e&&(t[n]=e),t),{})),[u]),m=(0,r.useCallback)((e,t)=>i((0,o.ZP)(e,t||void 0)),[]);return{buildDeleteDialogProps:g,checklist:n,checks:s,getCheck:f,hasAllChecks:c,hasChecks:d,multipleItems:h,resetChecks:v,setAllChecks:p,setCheck:m}}},7576:function(e,t,n){var l=n(85893),r=n(67294),o=n(56597),a=n(68917);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initial:{actionProceedText:t="",content:n="",titleText:i="",...u}={}}=e,s=(0,r.useRef)(null),[c,d]=(0,r.useState)({actionProceedText:t,content:n,titleText:i}),h=(0,r.useCallback)(e=>d(t=>{let{loading:n,...l}=t;return{...l,loading:e}}),[]),g=(0,r.useCallback)(e=>{var t,n;return null==s?void 0:null===(n=s.current)||void 0===n?void 0:null===(t=n.setOpen)||void 0===t?void 0:t.call(null,e)},[]),f=(0,r.useCallback)((e,t)=>d({actionProceedText:"",content:(0,l.jsx)(a.Z,{...t}),showActionArea:!1,showClose:!0,titleText:e}),[]),v=(0,r.useMemo)(()=>(0,l.jsx)(o.Z,{...u,...c,ref:s}),[c,u]);return{confirmDialog:v,confirmDialogRef:s,setConfirmDialogLoading:h,setConfirmDialogOpen:g,setConfirmDialogProps:d,finishConfirm:f}}},67978:function(e,t,n){var l=n(67294),r=n(8100),o=n(98436),a=n(96262);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:n=o.Z,fetcher:i=a.Z,mod:u,...s}=t,{data:c,error:d,mutate:h}=(0,r.ZP)("".concat(n).concat(e),i,s),g=(0,l.useMemo)(()=>u&&c&&u(c),[c,u]),f=!d&&!c;return{altData:g,data:c,error:d,mutate:h,loading:f}}},21197:function(e,t,n){n.d(t,{Z:function(){return hooks_useFormikUtils}});var l=n(82175),r=n(18446),o=n.n(r),a=n(13218),i=n.n(a),u=n(67294),s=n(23279),c=n.n(s),lib_debounce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{wait:n=500,...l}=t;return c()(e,n,l)},d=n(43799);let isChainEqual=(e,t,n)=>{let[l,...r]=e;if(!(l in t))return!1;let a=t[l],u=n[l];return i()(a)&&i()(u)&&r.length?isChainEqual(r,a,u):!o()(a,u)};var hooks_useFormikUtils=e=>{let t=(0,l.TA)({...e}),n=(0,u.useCallback)(e=>{let n=e.split(".");return isChainEqual(n,t.values,t.initialValues)},[t.initialValues,t.values]),r=(0,u.useMemo)(()=>lib_debounce(t.handleChange),[t.handleChange]),o=(0,u.useMemo)(()=>!t.dirty||!t.isValid||t.isValidating||t.isSubmitting,[t.dirty,t.isSubmitting,t.isValid,t.isValidating]),a=(0,u.useMemo)(()=>(0,d.Z)(t.errors,{skip:e=>!n(e)}),[t.errors,n]);return{disabledSubmit:o,formik:t,formikErrors:a,handleChange:r}}},84070:function(e,t,n){n.d(t,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return l=>{let r={};return Object.keys(l).forEach(o=>{e.test(o)?n(l,r,o,t):r[o]=l[o]}),r}};t.ZP=function(e,t){let{guard:n=()=>!0,set:l=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let{[e]:o,...a}=r,i={...a};return n(r,e,t)&&l(r,i,e,t),i}}},5744:function(e,t,n){var l=n(48403),r=n.n(l);t.Z=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2");return r()(t)}},43799:function(e,t,n){var l=n(5744);let getFormikErrorMessages=function(e){let{build:t=(e,t)=>{let n=t;if("string"==typeof n){let[e,...t]=n.split(/\s+/),r=(0,l.Z)(e.replace(/^[^\s]+\.([^.]+)/,"$1"));n=[r,...t].join(" ")}return{children:n,type:"warning"}},chain:n="",skip:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(e).reduce((e,l)=>{let[o,a]=l,i=[n,o].filter(e=>!!e).join(".");return null!==a&&"object"==typeof a?{...e,...getFormikErrorMessages(a,{build:t,chain:i,skip:r})}:((null==r?void 0:r.call(null,i))||(e[i]=t(i,a)),e)},{})};t.Z=getFormikErrorMessages}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/264-1be1a496ee1255c6.js b/striker-ui/out/_next/static/chunks/264-683b93ad6e70a8fb.js similarity index 99% rename from striker-ui/out/_next/static/chunks/264-1be1a496ee1255c6.js rename to striker-ui/out/_next/static/chunks/264-683b93ad6e70a8fb.js index 044468e8..c1e43271 100644 --- a/striker-ui/out/_next/static/chunks/264-1be1a496ee1255c6.js +++ b/striker-ui/out/_next/static/chunks/264-683b93ad6e70a8fb.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{82175:function(e,t,r){"use strict";r.d(t,{TA:function(){return useFormik}});var n,i,a,isMergeableObject=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepmerge(Array.isArray(e)?[]:{},e,t):e}function defaultArrayMerge(e,t,r){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,r)})}function deepmerge(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||defaultArrayMerge,r.isMergeableObject=r.isMergeableObject||isMergeableObject;var n,i,a=Array.isArray(t);return a!==Array.isArray(e)?cloneUnlessOtherwiseSpecified(t,r):a?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=cloneUnlessOtherwiseSpecified(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=deepmerge(e[r],t[r],n):i[r]=cloneUnlessOtherwiseSpecified(t[r],n)}),i)}deepmerge.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return deepmerge(e,r,t)},{})};var o=deepmerge,u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=l.Symbol,p=Object.prototype,h=p.hasOwnProperty,d=p.toString,y=f?f.toStringTag:void 0,_getRawTag=function(e){var t=h.call(e,y),r=e[y];try{e[y]=void 0;var n=!0}catch(e){}var i=d.call(e);return n&&(t?e[y]=r:delete e[y]),i},v=Object.prototype.toString,_=f?f.toStringTag:void 0,_baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?_getRawTag(e):v.call(e)},_overArg=function(e,t){return function(r){return e(t(r))}},b=_overArg(Object.getPrototypeOf,Object),lodash_es_isObjectLike=function(e){return null!=e&&"object"==typeof e},m=Object.prototype,g=Function.prototype.toString,x=m.hasOwnProperty,j=g.call(Object),lodash_es_isPlainObject=function(e){if(!lodash_es_isObjectLike(e)||"[object Object]"!=_baseGetTag(e))return!1;var t=b(e);if(null===t)return!0;var r=x.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&g.call(r)==j},O=r(67294),S=r(69590),A=r.n(S),tiny_warning_esm=function(e,t){},lodash_es_eq=function(e,t){return e===t||e!=e&&t!=t},_assocIndexOf=function(e,t){for(var r=e.length;r--;)if(lodash_es_eq(e[r][0],t))return r;return -1},E=Array.prototype.splice;function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ListCache.prototype.set=function(e,t){var r=this.__data__,n=_assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var lodash_es_isObject=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},lodash_es_isFunction=function(e){if(!lodash_es_isObject(e))return!1;var t=_baseGetTag(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},F=l["__core-js_shared__"],w=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",k=Function.prototype.toString,_toSource=function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""},T=/^\[object .+?Constructor\]$/,C=Object.prototype,I=Function.prototype.toString,$=C.hasOwnProperty,D=RegExp("^"+I.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_getNative=function(e,t){var r,n=null==e?void 0:e[t];return lodash_es_isObject(r=n)&&(!w||!(w in r))&&(lodash_es_isFunction(r)?D:T).test(_toSource(r))?n:void 0},R=_getNative(l,"Map"),P=_getNative(Object,"create"),M=Object.prototype.hasOwnProperty,V=Object.prototype.hasOwnProperty;function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var _baseUnary=function(e){return function(t){return e(t)}},Q="object"==typeof exports&&exports&&!exports.nodeType&&exports,X=Q&&"object"==typeof module&&module&&!module.nodeType&&module,ee=X&&X.exports===Q&&u.process,et=function(){try{var e=X&&X.require&&X.require("util").types;if(e)return e;return ee&&ee.binding&&ee.binding("util")}catch(e){}}(),er=et&&et.isTypedArray,en=er?_baseUnary(er):function(e){return lodash_es_isObjectLike(e)&&lodash_es_isLength(e.length)&&!!J[_baseGetTag(e)]},ei=Object.prototype.hasOwnProperty,_arrayLikeKeys=function(e,t){var r=H(e),n=!r&&q(e),i=!r&&!n&&W(e),a=!r&&!n&&!i&&en(e),s=r||n||i||a,o=s?_baseTimes(e.length,String):[],u=o.length;for(var c in e)(t||ei.call(e,c))&&!(s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_isIndex(c,u)))&&o.push(c);return o},ea=Object.prototype,_isPrototype=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ea)},es=_overArg(Object.keys,Object),eo=Object.prototype.hasOwnProperty,_baseKeys=function(e){if(!_isPrototype(e))return es(e);var t=[];for(var r in Object(e))eo.call(e,r)&&"constructor"!=r&&t.push(r);return t},lodash_es_isArrayLike=function(e){return null!=e&&lodash_es_isLength(e.length)&&!lodash_es_isFunction(e)},lodash_es_keys=function(e){return lodash_es_isArrayLike(e)?_arrayLikeKeys(e):_baseKeys(e)},_nativeKeysIn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eu=Object.prototype.hasOwnProperty,_baseKeysIn=function(e){if(!lodash_es_isObject(e))return _nativeKeysIn(e);var t=_isPrototype(e),r=[];for(var n in e)"constructor"==n&&(t||!eu.call(e,n))||r.push(n);return r},lodash_es_keysIn=function(e){return lodash_es_isArrayLike(e)?_arrayLikeKeys(e,!0):_baseKeysIn(e)},ec="object"==typeof exports&&exports&&!exports.nodeType&&exports,el=ec&&"object"==typeof module&&module&&!module.nodeType&&module,ef=el&&el.exports===ec?l.Buffer:void 0,ep=ef?ef.allocUnsafe:void 0,_cloneBuffer=function(e,t){if(t)return e.slice();var r=e.length,n=ep?ep(r):new e.constructor(r);return e.copy(n),n},_copyArray=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(8679);var e1=(0,O.createContext)(void 0);e1.displayName="FormikContext",e1.Provider,e1.Consumer;var isEmptyArray=function(e){return Array.isArray(e)&&0===e.length},formik_esm_isFunction=function(e){return"function"==typeof e},formik_esm_isObject=function(e){return null!==e&&"object"==typeof e},isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},isPromise=function(e){return formik_esm_isObject(e)&&formik_esm_isFunction(e.then)};function getIn(e,t,r,n){void 0===n&&(n=0);for(var i=lodash_es_toPath(t);e&&n=0?[]:{}}}return(0===a?e:i)[s[a]]===r?e:(void 0===r?delete i[s[a]]:i[s[a]]=r,0===a&&void 0===r&&delete n[s[a]],n)}var e2={},e6={};function useFormik(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,i=void 0===n||n,a=e.validateOnMount,s=void 0!==a&&a,u=e.isInitialValid,c=e.enableReinitialize,l=void 0!==c&&c,f=e.onSubmit,p=_objectWithoutPropertiesLoose(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=_extends({validateOnChange:r,validateOnBlur:i,validateOnMount:s,onSubmit:f},p),d=(0,O.useRef)(h.initialValues),y=(0,O.useRef)(h.initialErrors||e2),v=(0,O.useRef)(h.initialTouched||e6),_=(0,O.useRef)(h.initialStatus),b=(0,O.useRef)(!1),m=(0,O.useRef)({});(0,O.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var g=(0,O.useState)(0)[1],x=(0,O.useRef)({values:h.initialValues,errors:h.initialErrors||e2,touched:h.initialTouched||e6,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),j=x.current,S=(0,O.useCallback)(function(e){var t=x.current;x.current=function(e,t){switch(t.type){case"SET_VALUES":return _extends({},e,{values:t.payload});case"SET_TOUCHED":return _extends({},e,{touched:t.payload});case"SET_ERRORS":if(A()(e.errors,t.payload))return e;return _extends({},e,{errors:t.payload});case"SET_STATUS":return _extends({},e,{status:t.payload});case"SET_ISSUBMITTING":return _extends({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return _extends({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return _extends({},e,{values:setIn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return _extends({},e,{touched:setIn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return _extends({},e,{errors:setIn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return _extends({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return _extends({},e,{touched:function setNestedObjectValues(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var i=0,a=Object.keys(e);i=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var a,s=a;getIn(t,s.path)||(t=setIn(t,s.path,s.message))}}return t}(r)):t(r)})})},[h.validationSchema]),w=(0,O.useCallback)(function(e,t){return new Promise(function(r){return r(m.current[e].validate(t))})},[]),k=(0,O.useCallback)(function(e){var t=Object.keys(m.current).filter(function(e){return formik_esm_isFunction(m.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return w(t,getIn(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=setIn(e,t[n],r)),e},{})})},[w]),T=(0,O.useCallback)(function(e){return Promise.all([k(e),h.validationSchema?F(e):{},h.validate?E(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return o.all([t,r,n],{arrayMerge:arrayMerge})})},[h.validate,h.validationSchema,k,E,F]),C=useEventCallback(function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,O.useEffect)(function(){s&&!0===b.current&&A()(d.current,h.initialValues)&&C(d.current)},[s,C]);var I=(0,O.useCallback)(function(e){var t=e&&e.values?e.values:d.current,r=e&&e.errors?e.errors:y.current?y.current:h.initialErrors||{},n=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:_.current?_.current:h.initialStatus;d.current=t,y.current=r,v.current=n,_.current=i;var dispatchFn=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(j.values,J);isPromise(a)?a.then(dispatchFn):dispatchFn()}else dispatchFn()},[h.initialErrors,h.initialStatus,h.initialTouched]);(0,O.useEffect)(function(){!0===b.current&&!A()(d.current,h.initialValues)&&l&&(d.current=h.initialValues,I(),s&&C(d.current))},[l,h.initialValues,I,s,C]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(y.current,h.initialErrors)&&(y.current=h.initialErrors||e2,S({type:"SET_ERRORS",payload:h.initialErrors||e2}))},[l,h.initialErrors]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(v.current,h.initialTouched)&&(v.current=h.initialTouched||e6,S({type:"SET_TOUCHED",payload:h.initialTouched||e6}))},[l,h.initialTouched]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(_.current,h.initialStatus)&&(_.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var $=useEventCallback(function(e){if(m.current[e]&&formik_esm_isFunction(m.current[e].validate)){var t=getIn(j.values,e),r=m.current[e].validate(t);return isPromise(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),F(j.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:getIn(t,e)}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),D=(0,O.useCallback)(function(e,t){var r=t.validate;m.current[e]={validate:r}},[]),R=(0,O.useCallback)(function(e){delete m.current[e]},[]),P=useEventCallback(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?C(j.values):Promise.resolve()}),M=(0,O.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),V=useEventCallback(function(e,t){var n=formik_esm_isFunction(e)?e(j.values):e;return S({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?C(n):Promise.resolve()}),L=(0,O.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=useEventCallback(function(e,t,n){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?C(setIn(j.values,e,t)):Promise.resolve()}),N=(0,O.useCallback)(function(e,t){var r,n=t,i=e;if(!isString(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,s=a.type,o=a.name,u=a.id,c=a.value,l=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||o||u,i=/number|range/.test(s)?isNaN(r=parseFloat(c))?"":r:/checkbox/.test(s)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,i=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,a).concat(n.slice(a+1)):n}(getIn(j.values,n),l,c):f&&p?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}n&&z(n,i)},[z,j.values]),U=useEventCallback(function(e){if(isString(e))return function(t){return N(t,e)};N(e)}),B=useEventCallback(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?C(j.values):Promise.resolve()}),q=(0,O.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,B(t||n||i,!0)},[B]),H=useEventCallback(function(e){if(isString(e))return function(t){return q(t,e)};q(e)}),K=(0,O.useCallback)(function(e){formik_esm_isFunction(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),G=(0,O.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),Z=(0,O.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),W=useEventCallback(function(){return S({type:"SUBMIT_ATTEMPT"}),C().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),r))throw e})}),Y=useEventCallback(function(e){e&&e.preventDefault&&formik_esm_isFunction(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&formik_esm_isFunction(e.stopPropagation)&&e.stopPropagation(),W().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:I,validateForm:C,validateField:$,setErrors:M,setFieldError:L,setFieldTouched:B,setFieldValue:z,setStatus:G,setSubmitting:Z,setTouched:P,setValues:V,setFormikState:K,submitForm:W},Q=useEventCallback(function(){return f(j.values,J)}),X=useEventCallback(function(e){e&&e.preventDefault&&formik_esm_isFunction(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&formik_esm_isFunction(e.stopPropagation)&&e.stopPropagation(),I()}),ee=(0,O.useCallback)(function(e){return{value:getIn(j.values,e),error:getIn(j.errors,e),touched:!!getIn(j.touched,e),initialValue:getIn(d.current,e),initialTouched:!!getIn(v.current,e),initialError:getIn(y.current,e)}},[j.errors,j.touched,j.values]),et=(0,O.useCallback)(function(e){return{setValue:function(t,r){return z(e,t,r)},setTouched:function(t,r){return B(e,t,r)},setError:function(t){return L(e,t)}}},[z,B,L]),er=(0,O.useCallback)(function(e){var t=formik_esm_isObject(e),r=t?e.name:e,n=getIn(j.values,r),i={name:r,value:n,onChange:U,onBlur:H};if(t){var a=e.type,s=e.value,o=e.as,u=e.multiple;"checkbox"===a?void 0===s?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(s)),i.value=s):"radio"===a?(i.checked=n===s,i.value=s):"select"===o&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[H,U,j.values]),en=(0,O.useMemo)(function(){return!A()(d.current,j.values)},[d.current,j.values]),ei=(0,O.useMemo)(function(){return void 0!==u?en?j.errors&&0===Object.keys(j.errors).length:!1!==u&&formik_esm_isFunction(u)?u(h):u:j.errors&&0===Object.keys(j.errors).length},[u,en,j.errors,h]);return _extends({},j,{initialValues:d.current,initialErrors:y.current,initialTouched:v.current,initialStatus:_.current,handleBlur:H,handleChange:U,handleReset:X,handleSubmit:Y,resetForm:I,setErrors:M,setFormikState:K,setFieldTouched:B,setFieldValue:z,setFieldError:L,setStatus:G,setSubmitting:Z,setTouched:P,setValues:V,submitForm:W,validateForm:C,validateField:$,isValid:ei,dirty:en,unregisterField:R,registerField:D,getFieldProps:er,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:r,validateOnMount:s})}function arrayMerge(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var a=!1!==r.clone&&r.isMergeableObject(t);n[i]=a?o(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=o(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var e5="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?O.useLayoutEffect:O.useEffect;function useEventCallback(e){var t=(0,O.useRef)(e);return e5(function(){t.current=e}),(0,O.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;ne?t:e},0);return Array.from(_extends({},e,{length:t+1}))},createAlterationHandler=function(e,t){var r="function"==typeof e?e:t;return function(e){return Array.isArray(e)||formik_esm_isObject(e)?r(copyArrayLike(e)):e}};(function(e){function FieldArrayInner(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,a=i.name;(0,i.formik.setFormikState)(function(r){var i=createAlterationHandler(n,e),s=createAlterationHandler(t,e),o=setIn(r.values,a,e(getIn(r.values,a))),u=n?i(getIn(r.errors,a)):void 0,c=t?s(getIn(r.touched,a)):void 0;return isEmptyArray(u)&&(u=void 0),isEmptyArray(c)&&(c=void 0),_extends({},r,{values:o,errors:n?setIn(r.errors,a,u):r.errors,touched:t?setIn(r.touched,a,c):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(copyArrayLike(t),[_baseClone(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return swap(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return move(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return insert(r,e,t)},function(t){return insert(t,e,null)},function(t){return insert(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return replace(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(_assertThisInitialized(r)),r.pop=r.pop.bind(_assertThisInitialized(r)),r}FieldArrayInner.prototype=Object.create(e.prototype),FieldArrayInner.prototype.constructor=FieldArrayInner,FieldArrayInner.__proto__=e;var t=FieldArrayInner.prototype;return t.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!A()(getIn(e.formik.values,e.name),getIn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},t.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?copyArrayLike(r):[];return t||(t=n[e]),formik_esm_isFunction(n.splice)&&n.splice(e,1),formik_esm_isFunction(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},t.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},t.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,a=t.name,s=_objectWithoutPropertiesLoose(t.formik,["validate","validationSchema"]),o=_extends({},e,{form:s,name:a});return r?(0,O.createElement)(r,o):n?n(o):i?"function"==typeof i?i(o):0===O.Children.count(i)?null:O.Children.only(i):null},FieldArrayInner})(O.Component).defaultProps={validateOnChange:!0}},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),i=r(80401),a=r(57667),s=r(21327),o=r(81866);function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1}},13399:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),a=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(1443)(Object.keys,Object);e.exports=n},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&n.process,o=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},1443:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),a=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(s)}return r.set(e,t),this.size=r.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,r){var n=r(9454),i=r(37005),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=u},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?n.Buffer:void 0,u=o?o.isBuffer:void 0;e.exports=u||i},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},36719:function(e,t,r){var n=r(38749),i=r(7518),a=r(31167),s=a&&a.isTypedArray,o=s?i(s):n;e.exports=o},3674:function(e,t,r){var n=r(14636),i=r(280),a=r(98612);e.exports=function(e){return a(e)?n(e):i(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},55760:function(e){"use strict";function Cache(e){this._maxSize=e,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Cache.prototype.get=function(e){return this._values[e]},Cache.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new Cache(512),o=new Cache(512),u=new Cache(512);function normalizePath(e){return s.get(e)||s.set(e,split(e).map(function(e){return e.replace(a,"$2")}))}function split(e){return e.match(t)||[""]}function isQuoted(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:Cache,split:split,normalizePath:normalizePath,setter:function(e){var t=normalizePath(e);return o.get(e)||o.set(e,function(e,r){for(var n=0,i=t.length,a=e;ne.match(t)||[],upperFirst=e=>e[0].toUpperCase()+e.slice(1),join=(e,t)=>words(e).join(t).toLowerCase(),camelCase=e=>words(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");e.exports={words,upperFirst,camelCase,pascalCase:e=>upperFirst(camelCase(e)),snakeCase:e=>join(e,"_"),kebabCase:e=>join(e,"-"),sentenceCase:e=>upperFirst(join(e," ")),titleCase:e=>words(e).map(upperFirst).join(" ")}},94633:function(e){function toposort(e,t){var r=e.length,n=Array(r),i={},a=r,s=function(e){for(var t=new Map,r=0,n=e.length;r"",f=/^Symbol\((.*)\)(.*)$/;function printSimpleValue(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return l.call(e).replace(f,"Symbol($1)");let n=o.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+u.call(e)+"]":"RegExp"===n?c.call(e):null}function printValue(e,t){let r=printSimpleValue(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=printSimpleValue(this[e],t);return null!==n?n:r},2)}function toArray(e){return null==e?[]:[].concat(e)}let p=/\$\{\s*(\w+)\s*\}/g;let ValidationError=class ValidationError extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(r!==t.path&&(t=Object.assign({},t,{path:r})),"string"==typeof e)?e.replace(p,(e,r)=>printValue(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],toArray(e).forEach(e=>{ValidationError.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}};let h={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${printValue(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${printValue(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${printValue(r,!0)}\``+i}},d={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},y={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},_={isValue:"${path} field must be ${value}"},b={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:h,string:d,number:y,date:v,object:b,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:_});let isSchema=e=>e&&e.__isYupSchema__;let Condition=class Condition{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=t,a="function"==typeof r?r:(...e)=>e.every(e=>e===r);return new Condition(e,(e,t)=>{var r;let s=a(...e)?n:i;return null!=(r=null==s?void 0:s(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!isSchema(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};let m={context:"$",value:"."};function create$9(e,t){return new Reference(e,t)}let Reference=class Reference{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===m.context,this.isValue=this.key[0]===m.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?m.context:this.isValue?m.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,n.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};Reference.prototype.__isYupRef=!0;let isAbsent=e=>null==e;function createValidation(e){function validate({value:t,path:r="",options:n,originalValue:i,schema:a},s,o){let u;let{name:c,test:l,params:f,message:p,skipAbsent:h}=e,{parent:d,context:y,abortEarly:v=a.spec.abortEarly}=n;function resolve(e){return Reference.isRef(e)?e.getValue(t,d,y):e}function createError(e={}){let n=Object.assign({value:t,originalValue:i,label:a.spec.label,path:e.path||r,spec:a.spec},f,e.params);for(let e of Object.keys(n))n[e]=resolve(n[e]);let s=new ValidationError(ValidationError.formatError(e.message||p,n),t,n.path,e.type||c);return s.params=n,s}let _=v?s:o,b={path:r,parent:d,type:c,from:n.from,createError,resolve,options:n,originalValue:i,schema:a},handleResult=e=>{ValidationError.isError(e)?_(e):e?o(null):_(createError())},handleError=e=>{ValidationError.isError(e)?_(e):s(e)},m=h&&isAbsent(t);if(!n.sync){try{Promise.resolve(!!m||l.call(b,t,b)).then(handleResult,handleError)}catch(e){handleError(e)}return}try{var g;if(u=!!m||l.call(b,t,b),"function"==typeof(null==(g=u)?void 0:g.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){handleError(e);return}handleResult(u)}return validate.OPTIONS=e,validate}let ReferenceSet=class ReferenceSet extends Set{describe(){let e=[];for(let t of this.values())e.push(Reference.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new ReferenceSet(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}};function clone(e,t=new Map){let r;if(isSchema(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(h.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=clone(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=Object.assign({},this.spec,t.spec);return t.spec=r,t.internalTests=Object.assign({},this.internalTests,t.internalTests),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return null==e?!!this.spec.nullable&&null===e||!!this.spec.optional&&void 0===e:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}resolveOptions(e){var t,r,n;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&isAbsent(i))return i;let a=printValue(e),s=printValue(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[264],{82175:function(e,t,r){"use strict";r.d(t,{TA:function(){return useFormik}});var n,i,a,isMergeableObject=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==s},s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepmerge(Array.isArray(e)?[]:{},e,t):e}function defaultArrayMerge(e,t,r){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,r)})}function deepmerge(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||defaultArrayMerge,r.isMergeableObject=r.isMergeableObject||isMergeableObject;var n,i,a=Array.isArray(t);return a!==Array.isArray(e)?cloneUnlessOtherwiseSpecified(t,r):a?r.arrayMerge(e,t,r):(i={},(n=r).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=cloneUnlessOtherwiseSpecified(e[t],n)}),Object.keys(t).forEach(function(r){n.isMergeableObject(t[r])&&e[r]?i[r]=deepmerge(e[r],t[r],n):i[r]=cloneUnlessOtherwiseSpecified(t[r],n)}),i)}deepmerge.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return deepmerge(e,r,t)},{})};var o=deepmerge,u="object"==typeof global&&global&&global.Object===Object&&global,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=l.Symbol,p=Object.prototype,h=p.hasOwnProperty,d=p.toString,y=f?f.toStringTag:void 0,_getRawTag=function(e){var t=h.call(e,y),r=e[y];try{e[y]=void 0;var n=!0}catch(e){}var i=d.call(e);return n&&(t?e[y]=r:delete e[y]),i},v=Object.prototype.toString,_=f?f.toStringTag:void 0,_baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?_getRawTag(e):v.call(e)},_overArg=function(e,t){return function(r){return e(t(r))}},b=_overArg(Object.getPrototypeOf,Object),lodash_es_isObjectLike=function(e){return null!=e&&"object"==typeof e},m=Object.prototype,g=Function.prototype.toString,x=m.hasOwnProperty,j=g.call(Object),lodash_es_isPlainObject=function(e){if(!lodash_es_isObjectLike(e)||"[object Object]"!=_baseGetTag(e))return!1;var t=b(e);if(null===t)return!0;var r=x.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&g.call(r)==j},O=r(67294),S=r(69590),A=r.n(S),tiny_warning_esm=function(e,t){},lodash_es_eq=function(e,t){return e===t||e!=e&&t!=t},_assocIndexOf=function(e,t){for(var r=e.length;r--;)if(lodash_es_eq(e[r][0],t))return r;return -1},E=Array.prototype.splice;function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ListCache.prototype.set=function(e,t){var r=this.__data__,n=_assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var lodash_es_isObject=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},lodash_es_isFunction=function(e){if(!lodash_es_isObject(e))return!1;var t=_baseGetTag(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},F=l["__core-js_shared__"],w=(n=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",k=Function.prototype.toString,_toSource=function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""},T=/^\[object .+?Constructor\]$/,C=Object.prototype,I=Function.prototype.toString,$=C.hasOwnProperty,D=RegExp("^"+I.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_getNative=function(e,t){var r,n=null==e?void 0:e[t];return lodash_es_isObject(r=n)&&(!w||!(w in r))&&(lodash_es_isFunction(r)?D:T).test(_toSource(r))?n:void 0},R=_getNative(l,"Map"),P=_getNative(Object,"create"),M=Object.prototype.hasOwnProperty,V=Object.prototype.hasOwnProperty;function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var _baseUnary=function(e){return function(t){return e(t)}},Q="object"==typeof exports&&exports&&!exports.nodeType&&exports,X=Q&&"object"==typeof module&&module&&!module.nodeType&&module,ee=X&&X.exports===Q&&u.process,et=function(){try{var e=X&&X.require&&X.require("util").types;if(e)return e;return ee&&ee.binding&&ee.binding("util")}catch(e){}}(),er=et&&et.isTypedArray,en=er?_baseUnary(er):function(e){return lodash_es_isObjectLike(e)&&lodash_es_isLength(e.length)&&!!J[_baseGetTag(e)]},ei=Object.prototype.hasOwnProperty,_arrayLikeKeys=function(e,t){var r=H(e),n=!r&&q(e),i=!r&&!n&&W(e),a=!r&&!n&&!i&&en(e),s=r||n||i||a,o=s?_baseTimes(e.length,String):[],u=o.length;for(var c in e)(t||ei.call(e,c))&&!(s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_isIndex(c,u)))&&o.push(c);return o},ea=Object.prototype,_isPrototype=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ea)},es=_overArg(Object.keys,Object),eo=Object.prototype.hasOwnProperty,_baseKeys=function(e){if(!_isPrototype(e))return es(e);var t=[];for(var r in Object(e))eo.call(e,r)&&"constructor"!=r&&t.push(r);return t},lodash_es_isArrayLike=function(e){return null!=e&&lodash_es_isLength(e.length)&&!lodash_es_isFunction(e)},lodash_es_keys=function(e){return lodash_es_isArrayLike(e)?_arrayLikeKeys(e):_baseKeys(e)},_nativeKeysIn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eu=Object.prototype.hasOwnProperty,_baseKeysIn=function(e){if(!lodash_es_isObject(e))return _nativeKeysIn(e);var t=_isPrototype(e),r=[];for(var n in e)"constructor"==n&&(t||!eu.call(e,n))||r.push(n);return r},lodash_es_keysIn=function(e){return lodash_es_isArrayLike(e)?_arrayLikeKeys(e,!0):_baseKeysIn(e)},ec="object"==typeof exports&&exports&&!exports.nodeType&&exports,el=ec&&"object"==typeof module&&module&&!module.nodeType&&module,ef=el&&el.exports===ec?l.Buffer:void 0,ep=ef?ef.allocUnsafe:void 0,_cloneBuffer=function(e,t){if(t)return e.slice();var r=e.length,n=ep?ep(r):new e.constructor(r);return e.copy(n),n},_copyArray=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0||(i[r]=e[r]);return i}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(8679);var e1=(0,O.createContext)(void 0);e1.displayName="FormikContext",e1.Provider,e1.Consumer;var isEmptyArray=function(e){return Array.isArray(e)&&0===e.length},formik_esm_isFunction=function(e){return"function"==typeof e},formik_esm_isObject=function(e){return null!==e&&"object"==typeof e},isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},isPromise=function(e){return formik_esm_isObject(e)&&formik_esm_isFunction(e.then)};function getIn(e,t,r,n){void 0===n&&(n=0);for(var i=lodash_es_toPath(t);e&&n=0?[]:{}}}return(0===a?e:i)[s[a]]===r?e:(void 0===r?delete i[s[a]]:i[s[a]]=r,0===a&&void 0===r&&delete n[s[a]],n)}var e2={},e5={};function useFormik(e){var t=e.validateOnChange,r=void 0===t||t,n=e.validateOnBlur,i=void 0===n||n,a=e.validateOnMount,s=void 0!==a&&a,u=e.isInitialValid,c=e.enableReinitialize,l=void 0!==c&&c,f=e.onSubmit,p=_objectWithoutPropertiesLoose(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=_extends({validateOnChange:r,validateOnBlur:i,validateOnMount:s,onSubmit:f},p),d=(0,O.useRef)(h.initialValues),y=(0,O.useRef)(h.initialErrors||e2),v=(0,O.useRef)(h.initialTouched||e5),_=(0,O.useRef)(h.initialStatus),b=(0,O.useRef)(!1),m=(0,O.useRef)({});(0,O.useEffect)(function(){return b.current=!0,function(){b.current=!1}},[]);var g=(0,O.useState)(0)[1],x=(0,O.useRef)({values:h.initialValues,errors:h.initialErrors||e2,touched:h.initialTouched||e5,status:h.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),j=x.current,S=(0,O.useCallback)(function(e){var t=x.current;x.current=function(e,t){switch(t.type){case"SET_VALUES":return _extends({},e,{values:t.payload});case"SET_TOUCHED":return _extends({},e,{touched:t.payload});case"SET_ERRORS":if(A()(e.errors,t.payload))return e;return _extends({},e,{errors:t.payload});case"SET_STATUS":return _extends({},e,{status:t.payload});case"SET_ISSUBMITTING":return _extends({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return _extends({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return _extends({},e,{values:setIn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return _extends({},e,{touched:setIn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return _extends({},e,{errors:setIn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return _extends({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return _extends({},e,{touched:function setNestedObjectValues(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var i=0,a=Object.keys(e);i=r.length)break;a=r[i++]}else{if((i=r.next()).done)break;a=i.value}var a,s=a;getIn(t,s.path)||(t=setIn(t,s.path,s.message))}}return t}(r)):t(r)})})},[h.validationSchema]),w=(0,O.useCallback)(function(e,t){return new Promise(function(r){return r(m.current[e].validate(t))})},[]),k=(0,O.useCallback)(function(e){var t=Object.keys(m.current).filter(function(e){return formik_esm_isFunction(m.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return w(t,getIn(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=setIn(e,t[n],r)),e},{})})},[w]),T=(0,O.useCallback)(function(e){return Promise.all([k(e),h.validationSchema?F(e):{},h.validate?E(e):{}]).then(function(e){var t=e[0],r=e[1],n=e[2];return o.all([t,r,n],{arrayMerge:arrayMerge})})},[h.validate,h.validationSchema,k,E,F]),C=useEventCallback(function(e){return void 0===e&&(e=j.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,O.useEffect)(function(){s&&!0===b.current&&A()(d.current,h.initialValues)&&C(d.current)},[s,C]);var I=(0,O.useCallback)(function(e){var t=e&&e.values?e.values:d.current,r=e&&e.errors?e.errors:y.current?y.current:h.initialErrors||{},n=e&&e.touched?e.touched:v.current?v.current:h.initialTouched||{},i=e&&e.status?e.status:_.current?_.current:h.initialStatus;d.current=t,y.current=r,v.current=n,_.current=i;var dispatchFn=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(j.values,J);isPromise(a)?a.then(dispatchFn):dispatchFn()}else dispatchFn()},[h.initialErrors,h.initialStatus,h.initialTouched]);(0,O.useEffect)(function(){!0===b.current&&!A()(d.current,h.initialValues)&&l&&(d.current=h.initialValues,I(),s&&C(d.current))},[l,h.initialValues,I,s,C]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(y.current,h.initialErrors)&&(y.current=h.initialErrors||e2,S({type:"SET_ERRORS",payload:h.initialErrors||e2}))},[l,h.initialErrors]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(v.current,h.initialTouched)&&(v.current=h.initialTouched||e5,S({type:"SET_TOUCHED",payload:h.initialTouched||e5}))},[l,h.initialTouched]),(0,O.useEffect)(function(){l&&!0===b.current&&!A()(_.current,h.initialStatus)&&(_.current=h.initialStatus,S({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var $=useEventCallback(function(e){if(m.current[e]&&formik_esm_isFunction(m.current[e].validate)){var t=getIn(j.values,e),r=m.current[e].validate(t);return isPromise(r)?(S({type:"SET_ISVALIDATING",payload:!0}),r.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return h.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),F(j.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:getIn(t,e)}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),D=(0,O.useCallback)(function(e,t){var r=t.validate;m.current[e]={validate:r}},[]),R=(0,O.useCallback)(function(e){delete m.current[e]},[]),P=useEventCallback(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?C(j.values):Promise.resolve()}),M=(0,O.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),V=useEventCallback(function(e,t){var n=formik_esm_isFunction(e)?e(j.values):e;return S({type:"SET_VALUES",payload:n}),(void 0===t?r:t)?C(n):Promise.resolve()}),L=(0,O.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=useEventCallback(function(e,t,n){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===n?r:n)?C(setIn(j.values,e,t)):Promise.resolve()}),N=(0,O.useCallback)(function(e,t){var r,n=t,i=e;if(!isString(e)){e.persist&&e.persist();var a=e.target?e.target:e.currentTarget,s=a.type,o=a.name,u=a.id,c=a.value,l=a.checked,f=(a.outerHTML,a.options),p=a.multiple;n=t||o||u,i=/number|range/.test(s)?isNaN(r=parseFloat(c))?"":r:/checkbox/.test(s)?function(e,t,r){if("boolean"==typeof e)return!!t;var n=[],i=!1,a=-1;if(Array.isArray(e))n=e,i=(a=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return!!t;return t&&r&&!i?n.concat(r):i?n.slice(0,a).concat(n.slice(a+1)):n}(getIn(j.values,n),l,c):f&&p?Array.from(f).filter(function(e){return e.selected}).map(function(e){return e.value}):c}n&&z(n,i)},[z,j.values]),U=useEventCallback(function(e){if(isString(e))return function(t){return N(t,e)};N(e)}),B=useEventCallback(function(e,t,r){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?i:r)?C(j.values):Promise.resolve()}),q=(0,O.useCallback)(function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,i=r.id;r.outerHTML,B(t||n||i,!0)},[B]),H=useEventCallback(function(e){if(isString(e))return function(t){return q(t,e)};q(e)}),K=(0,O.useCallback)(function(e){formik_esm_isFunction(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),G=(0,O.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),Z=(0,O.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),W=useEventCallback(function(){return S({type:"SUBMIT_ATTEMPT"}),C().then(function(e){var t,r=e instanceof Error;if(!r&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),r))throw e})}),Y=useEventCallback(function(e){e&&e.preventDefault&&formik_esm_isFunction(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&formik_esm_isFunction(e.stopPropagation)&&e.stopPropagation(),W().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J={resetForm:I,validateForm:C,validateField:$,setErrors:M,setFieldError:L,setFieldTouched:B,setFieldValue:z,setStatus:G,setSubmitting:Z,setTouched:P,setValues:V,setFormikState:K,submitForm:W},Q=useEventCallback(function(){return f(j.values,J)}),X=useEventCallback(function(e){e&&e.preventDefault&&formik_esm_isFunction(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&formik_esm_isFunction(e.stopPropagation)&&e.stopPropagation(),I()}),ee=(0,O.useCallback)(function(e){return{value:getIn(j.values,e),error:getIn(j.errors,e),touched:!!getIn(j.touched,e),initialValue:getIn(d.current,e),initialTouched:!!getIn(v.current,e),initialError:getIn(y.current,e)}},[j.errors,j.touched,j.values]),et=(0,O.useCallback)(function(e){return{setValue:function(t,r){return z(e,t,r)},setTouched:function(t,r){return B(e,t,r)},setError:function(t){return L(e,t)}}},[z,B,L]),er=(0,O.useCallback)(function(e){var t=formik_esm_isObject(e),r=t?e.name:e,n=getIn(j.values,r),i={name:r,value:n,onChange:U,onBlur:H};if(t){var a=e.type,s=e.value,o=e.as,u=e.multiple;"checkbox"===a?void 0===s?i.checked=!!n:(i.checked=!!(Array.isArray(n)&&~n.indexOf(s)),i.value=s):"radio"===a?(i.checked=n===s,i.value=s):"select"===o&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[H,U,j.values]),en=(0,O.useMemo)(function(){return!A()(d.current,j.values)},[d.current,j.values]),ei=(0,O.useMemo)(function(){return void 0!==u?en?j.errors&&0===Object.keys(j.errors).length:!1!==u&&formik_esm_isFunction(u)?u(h):u:j.errors&&0===Object.keys(j.errors).length},[u,en,j.errors,h]);return _extends({},j,{initialValues:d.current,initialErrors:y.current,initialTouched:v.current,initialStatus:_.current,handleBlur:H,handleChange:U,handleReset:X,handleSubmit:Y,resetForm:I,setErrors:M,setFormikState:K,setFieldTouched:B,setFieldValue:z,setFieldError:L,setStatus:G,setSubmitting:Z,setTouched:P,setValues:V,submitForm:W,validateForm:C,validateField:$,isValid:ei,dirty:en,unregisterField:R,registerField:D,getFieldProps:er,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:r,validateOnMount:s})}function arrayMerge(e,t,r){var n=e.slice();return t.forEach(function(t,i){if(void 0===n[i]){var a=!1!==r.clone&&r.isMergeableObject(t);n[i]=a?o(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[i]=o(e[i],t,r):-1===e.indexOf(t)&&n.push(t)}),n}var e6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?O.useLayoutEffect:O.useEffect;function useEventCallback(e){var t=(0,O.useRef)(e);return e6(function(){t.current=e}),(0,O.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;ne?t:e},0);return Array.from(_extends({},e,{length:t+1}))},createAlterationHandler=function(e,t){var r="function"==typeof e?e:t;return function(e){return Array.isArray(e)||formik_esm_isObject(e)?r(copyArrayLike(e)):e}};(function(e){function FieldArrayInner(t){var r;return(r=e.call(this,t)||this).updateArrayField=function(e,t,n){var i=r.props,a=i.name;(0,i.formik.setFormikState)(function(r){var i=createAlterationHandler(n,e),s=createAlterationHandler(t,e),o=setIn(r.values,a,e(getIn(r.values,a))),u=n?i(getIn(r.errors,a)):void 0,c=t?s(getIn(r.touched,a)):void 0;return isEmptyArray(u)&&(u=void 0),isEmptyArray(c)&&(c=void 0),_extends({},r,{values:o,errors:n?setIn(r.errors,a,u):r.errors,touched:t?setIn(r.touched,a,c):r.touched})})},r.push=function(e){return r.updateArrayField(function(t){return[].concat(copyArrayLike(t),[_baseClone(e,5)])},!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField(function(r){return swap(r,e,t)},!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField(function(r){return move(r,e,t)},!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField(function(r){return insert(r,e,t)},function(t){return insert(t,e,null)},function(t){return insert(t,e,null)})},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField(function(r){return replace(r,e,t)},!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField(function(r){var n=r?[e].concat(r):[e];return t=n.length,n},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(_assertThisInitialized(r)),r.pop=r.pop.bind(_assertThisInitialized(r)),r}FieldArrayInner.prototype=Object.create(e.prototype),FieldArrayInner.prototype.constructor=FieldArrayInner,FieldArrayInner.__proto__=e;var t=FieldArrayInner.prototype;return t.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!A()(getIn(e.formik.values,e.name),getIn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},t.remove=function(e){var t;return this.updateArrayField(function(r){var n=r?copyArrayLike(r):[];return t||(t=n[e]),formik_esm_isFunction(n.splice)&&n.splice(e,1),formik_esm_isFunction(n.every)&&n.every(function(e){return void 0===e})?[]:n},!0,!0),t},t.pop=function(){var e;return this.updateArrayField(function(t){var r=t.slice();return e||(e=r&&r.pop&&r.pop()),r},!0,!0),e},t.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,r=t.component,n=t.render,i=t.children,a=t.name,s=_objectWithoutPropertiesLoose(t.formik,["validate","validationSchema"]),o=_extends({},e,{form:s,name:a});return r?(0,O.createElement)(r,o):n?n(o):i?"function"==typeof i?i(o):0===O.Children.count(i)?null:O.Children.only(i):null},FieldArrayInner})(O.Component).defaultProps={validateOnChange:!0}},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),i=r(80401),a=r(57667),s=r(21327),o=r(81866);function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1}},54705:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),a=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},49916:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&n.process,o=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),a=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(s)}return r.set(e,t),this.size=r.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35694:function(e,t,r){var n=r(9454),i=r(37005),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=u},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?n.Buffer:void 0,u=o?o.isBuffer:void 0;e.exports=u||i},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},36719:function(e,t,r){var n=r(38749),i=r(7518),a=r(31167),s=a&&a.isTypedArray,o=s?i(s):n;e.exports=o},3674:function(e,t,r){var n=r(14636),i=r(280),a=r(98612);e.exports=function(e){return a(e)?n(e):i(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},55760:function(e){"use strict";function Cache(e){this._maxSize=e,this.clear()}Cache.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Cache.prototype.get=function(e){return this._values[e]},Cache.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,n=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new Cache(512),o=new Cache(512),u=new Cache(512);function normalizePath(e){return s.get(e)||s.set(e,split(e).map(function(e){return e.replace(a,"$2")}))}function split(e){return e.match(t)||[""]}function isQuoted(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:Cache,split:split,normalizePath:normalizePath,setter:function(e){var t=normalizePath(e);return o.get(e)||o.set(e,function(e,r){for(var n=0,i=t.length,a=e;ne.match(t)||[],upperFirst=e=>e[0].toUpperCase()+e.slice(1),join=(e,t)=>words(e).join(t).toLowerCase(),camelCase=e=>words(e).reduce((e,t)=>`${e}${e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()}`,"");e.exports={words,upperFirst,camelCase,pascalCase:e=>upperFirst(camelCase(e)),snakeCase:e=>join(e,"_"),kebabCase:e=>join(e,"-"),sentenceCase:e=>upperFirst(join(e," ")),titleCase:e=>words(e).map(upperFirst).join(" ")}},94633:function(e){function toposort(e,t){var r=e.length,n=Array(r),i={},a=r,s=function(e){for(var t=new Map,r=0,n=e.length;r"",f=/^Symbol\((.*)\)(.*)$/;function printSimpleValue(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let r=typeof e;if("number"===r)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return l.call(e).replace(f,"Symbol($1)");let n=o.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+u.call(e)+"]":"RegExp"===n?c.call(e):null}function printValue(e,t){let r=printSimpleValue(e,t);return null!==r?r:JSON.stringify(e,function(e,r){let n=printSimpleValue(this[e],t);return null!==n?n:r},2)}function toArray(e){return null==e?[]:[].concat(e)}let p=/\$\{\s*(\w+)\s*\}/g;let ValidationError=class ValidationError extends Error{static formatError(e,t){let r=t.label||t.path||"this";return(r!==t.path&&(t=Object.assign({},t,{path:r})),"string"==typeof e)?e.replace(p,(e,r)=>printValue(t[r])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],toArray(e).forEach(e=>{ValidationError.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}};let h={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let i=null!=n&&n!==r?` (cast from the value \`${printValue(n,!0)}\`).`:".";return"mixed"!==t?`${e} must be a \`${t}\` type, but the final value was: \`${printValue(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${printValue(r,!0)}\``+i}},d={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},y={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},_={isValue:"${path} field must be ${value}"},b={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:h,string:d,number:y,date:v,object:b,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:_});let isSchema=e=>e&&e.__isYupSchema__;let Condition=class Condition{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:i}=t,a="function"==typeof r?r:(...e)=>e.every(e=>e===r);return new Condition(e,(e,t)=>{var r;let s=a(...e)?n:i;return null!=(r=null==s?void 0:s(t))?r:t})}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let r=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),n=this.fn(r,e,t);if(void 0===n||n===e)return e;if(!isSchema(n))throw TypeError("conditions must return a schema object");return n.resolve(t)}};let m={context:"$",value:"."};function create$9(e,t){return new Reference(e,t)}let Reference=class Reference{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===m.context,this.isValue=this.key[0]===m.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?m.context:this.isValue?m.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,n.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}};Reference.prototype.__isYupRef=!0;let isAbsent=e=>null==e;function createValidation(e){function validate({value:t,path:r="",options:n,originalValue:i,schema:a},s,o){let u;let{name:c,test:l,params:f,message:p,skipAbsent:h}=e,{parent:d,context:y,abortEarly:v=a.spec.abortEarly}=n;function resolve(e){return Reference.isRef(e)?e.getValue(t,d,y):e}function createError(e={}){let n=Object.assign({value:t,originalValue:i,label:a.spec.label,path:e.path||r,spec:a.spec},f,e.params);for(let e of Object.keys(n))n[e]=resolve(n[e]);let s=new ValidationError(ValidationError.formatError(e.message||p,n),t,n.path,e.type||c);return s.params=n,s}let _=v?s:o,b={path:r,parent:d,type:c,from:n.from,createError,resolve,options:n,originalValue:i,schema:a},handleResult=e=>{ValidationError.isError(e)?_(e):e?o(null):_(createError())},handleError=e=>{ValidationError.isError(e)?_(e):s(e)},m=h&&isAbsent(t);if(!n.sync){try{Promise.resolve(!!m||l.call(b,t,b)).then(handleResult,handleError)}catch(e){handleError(e)}return}try{var g;if(u=!!m||l.call(b,t,b),"function"==typeof(null==(g=u)?void 0:g.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){handleError(e);return}handleResult(u)}return validate.OPTIONS=e,validate}let ReferenceSet=class ReferenceSet extends Set{describe(){let e=[];for(let t of this.values())e.push(Reference.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(let r of this.values())t.push(e(r));return t}clone(){return new ReferenceSet(this.values())}merge(e,t){let r=this.clone();return e.forEach(e=>r.add(e)),t.forEach(e=>r.delete(e)),r}};function clone(e,t=new Map){let r;if(isSchema(e)||!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=Array(e.length),t.set(e,r);for(let n=0;n{this.typeError(h.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation(e=>{e.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=clone(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),r=Object.assign({},this.spec,t.spec);return t.spec=r,t.internalTests=Object.assign({},this.internalTests,t.internalTests),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return null==e?!!this.spec.nullable&&null===e||!!this.spec.optional&&void 0===e:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;(t=t.clone()).conditions=[],t=(t=r.reduce((t,r)=>r.resolve(t,e),t)).resolve(e)}return t}resolveOptions(e){var t,r,n;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(r=e.abortEarly)?r:this.spec.abortEarly,recursive:null!=(n=e.recursive)?n:this.spec.recursive})}cast(e,t={}){let r=this.resolve(Object.assign({value:e},t)),n="ignore-optionality"===t.assert,i=r._cast(e,t);if(!1!==t.assert&&!r.isType(i)){if(n&&isAbsent(i))return i;let a=printValue(e),s=printValue(i);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${a} `+(s!==a?`result of cast: ${s}`:""))}return i}_cast(e,t){let r=void 0===e?e:this.transforms.reduce((t,r)=>r.call(this,t,e,this),e);return void 0===r&&(r=this.getDefault(t)),r}_validate(e,t={},r,n){let{path:i,originalValue:a=e,strict:s=this.spec.strict}=t,o=e;s||(o=this._cast(o,Object.assign({assert:!1},t)));let u=[];for(let e of Object.values(this.internalTests))e&&u.push(e);this.runTests({path:i,value:o,originalValue:a,options:t,tests:u},r,e=>{if(e.length)return n(e,o);this.runTests({path:i,value:o,originalValue:a,options:t,tests:this.tests},r,n)})}runTests(e,t,r){let n=!1,{tests:i,value:a,originalValue:s,path:o,options:u}=e,panicOnce=e=>{n||(n=!0,t(e,a))},nextOnce=e=>{n||(n=!0,r(e,a))},c=i.length,l=[];if(!c)return nextOnce([]);let f={value:a,originalValue:s,path:o,options:u,schema:this};for(let e=0;ethis.resolve(c)._validate(u,c,t,r)}validate(e,t){let r=this.resolve(Object.assign({},t,{value:e}));return new Promise((n,i)=>r._validate(e,t,(e,t)=>{ValidationError.isError(e)&&(e.value=t),i(e)},(e,t)=>{e.length?i(new ValidationError(e,t)):n(t)}))}validateSync(e,t){let r;return this.resolve(Object.assign({},t,{value:e}))._validate(e,Object.assign({},t,{sync:!0}),(e,t)=>{throw ValidationError.isError(e)&&(e.value=t),e},(t,n)=>{if(t.length)throw new ValidationError(t,e);r=n}),r}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(ValidationError.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(ValidationError.isError(e))return!1;throw e}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"==typeof t?t.call(this,e):clone(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,t){let r=this.clone({nullable:e});return r.internalTests.nullable=createValidation({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),r}optionality(e,t){let r=this.clone({optional:e});return r.internalTests.optionality=createValidation({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),r}optional(){return this.optionality(!0)}defined(e=h.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=h.notNull){return this.nullability(!1,e)}required(e=h.required){return this.clone().withMutation(t=>t.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=h.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let r=this.clone(),n=createValidation(t),i=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==n.OPTIONS.test),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=toArray(e).map(e=>new Reference(e));return n.forEach(e=>{e.isSibling&&r.deps.push(e.key)}),r.conditions.push("function"==typeof t?new Condition(n,t):Condition.fromOptions(n,t)),r}typeError(e){let t=this.clone();return t.internalTests.typeError=createValidation({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e,t=h.oneOf){let r=this.clone();return e.forEach(e=>{r._whitelist.add(e),r._blacklist.delete(e)}),r.internalTests.whiteList=createValidation({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}notOneOf(e,t=h.notOneOf){let r=this.clone();return e.forEach(e=>{r._blacklist.add(e),r._whitelist.delete(e)}),r.internalTests.blacklist=createValidation({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(e){let t=(e?this.resolve(e):this).clone(),{label:r,meta:n,optional:i,nullable:a}=t.spec,s={meta:n,label:r,optional:i,nullable:a,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,r)=>r.findIndex(t=>t.name===e.name)===t)};return s}};for(let e of(Schema.prototype.__isYupSchema__=!0,["validate","validateSync"]))Schema.prototype[`${e}At`]=function(t,r,i={}){let{parent:a,parentPath:s,schema:o}=function(e,t,r,i=r){let a,s,o;return t?((0,n.forEach)(t,(n,u,c)=>{let l=u?n.slice(1,n.length-1):n,f="tuple"===(e=e.resolve({context:i,parent:a,value:r})).type,p=c?parseInt(l,10):0;if(e.innerType||f){if(f&&!c)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&p>=r.length)throw Error(`Yup.reach cannot resolve an array item at index: ${n}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[p],e=f?e.spec.types[p]:e.innerType}if(!c){if(!e.fields||!e.fields[l])throw Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);a=r,r=r&&r[l],e=e.fields[l]}s=l,o=u?"["+n+"]":"."+n}),{schema:e,parent:a,parentPath:s}):{parent:a,parentPath:t,schema:e}}(this,t,r,i.context);return o[e](a&&a[s],Object.assign({},i,{parent:a,path:t}))};for(let e of["equals","is"])Schema.prototype[e]=Schema.prototype.oneOf;for(let e of["not","nope"])Schema.prototype[e]=Schema.prototype.notOneOf;function create$7(){return new BooleanSchema}let BooleanSchema=class BooleanSchema extends Schema{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(r.spec.coerce&&!r.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=_.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>isAbsent(e)||!0===e})}isFalse(e=_.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>isAbsent(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}};create$7.prototype=BooleanSchema.prototype;let g=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,x=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,j=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,isTrimmed=e=>isAbsent(e)||e===e.trim(),O=({}).toString();function create$6(){return new StringSchema}let StringSchema=class StringSchema extends Schema{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"==typeof e)}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;let n=null!=e&&e.toString?e.toString():e;return n===O?e:n})})}required(e){return super.required(e).withMutation(t=>t.test({message:e||h.required,name:"required",skipAbsent:!0,test:e=>!!e.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e))}length(e,t=d.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t=d.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t=d.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let r,n,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:r,name:n}=t:r=t),this.test({name:n||"matches",message:r||d.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&i||-1!==t.search(e)})}email(e=d.email){return this.matches(g,{name:"email",message:e,excludeEmptyString:!0})}url(e=d.url){return this.matches(x,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=d.uuid){return this.matches(j,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=d.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:isTrimmed})}lowercase(e=d.lowercase){return this.transform(e=>isAbsent(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>isAbsent(e)||e===e.toLowerCase()})}uppercase(e=d.uppercase){return this.transform(e=>isAbsent(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>isAbsent(e)||e===e.toUpperCase()})}};create$6.prototype=StringSchema.prototype;let isNaN$1=e=>e!=+e;function create$5(){return new NumberSchema}let NumberSchema=class NumberSchema extends Schema{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!isNaN$1(e))}),this.withMutation(()=>{this.transform((e,t,r)=>{if(!r.spec.coerce)return e;let n=e;if("string"==typeof n){if(""===(n=n.replace(/\s/g,"")))return NaN;n=+n}return r.isType(n)||null===n?n:parseFloat(n)})})}min(e,t=y.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e,t=y.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e,t=y.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return tthis.resolve(e)}})}positive(e=y.positive){return this.moreThan(0,e)}negative(e=y.negative){return this.lessThan(0,e)}integer(e=y.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform(e=>isAbsent(e)?e:0|e)}round(e){var t;let r=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===r.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(t=>isAbsent(t)?t:Math[e](t))}};create$5.prototype=NumberSchema.prototype;var S=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let A=new Date(""),isDate=e=>"[object Date]"===Object.prototype.toString.call(e);function create$4(){return new DateSchema}let DateSchema=class DateSchema extends Schema{constructor(){super({type:"date",check:e=>isDate(e)&&!isNaN(e.getTime())}),this.withMutation(()=>{this.transform((e,t,r)=>!r.spec.coerce||r.isType(e)||null===e?e:isNaN(e=function(e){var t,r,n=[1,4,5,6,7,10,11],i=0;if(r=S.exec(e)){for(var a,s=0;a=n[s];++s)r[a]=+r[a]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,(void 0===r[8]||""===r[8])&&(void 0===r[9]||""===r[9])?t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7]):("Z"!==r[8]&&void 0!==r[9]&&(i=60*r[10]+r[11],"+"===r[9]&&(i=0-i)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+i,r[6],r[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?DateSchema.INVALID_DATE:new Date(e))})}prepareParam(e,t){let r;if(Reference.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=v.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(r)}})}max(e,t=v.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(r)}})}};function findIndex(e,t){let r=1/0;return e.some((e,n)=>{var i;if(null!=(i=t.path)&&i.includes(e))return r=n,!0}),r}function sortByKeyOrder(e){return(t,r)=>findIndex(e,t)-findIndex(e,r)}DateSchema.INVALID_DATE=A,create$4.prototype=DateSchema.prototype,create$4.INVALID_DATE=A;let parseJson=(e,t,r)=>{if("string"!=typeof e)return e;let n=e;try{n=JSON.parse(e)}catch(e){}return r.isType(n)?n:e},deepHas=(e,t)=>{let r=[...(0,n.normalizePath)(t)];if(1===r.length)return r[0]in e;let i=r.pop(),a=(0,n.getter)((0,n.join)(r),!0)(e);return!!(a&&i in a)},isObject=e=>"[object Object]"===Object.prototype.toString.call(e),E=sortByKeyOrder([]);function create$3(e){return new ObjectSchema(e)}let ObjectSchema=class ObjectSchema extends Schema{constructor(e){super({type:"object",check:e=>isObject(e)||"function"==typeof e}),this.fields=Object.create(null),this._sortErrors=E,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault(t);if(!this._typeCheck(n))return n;let i=this.fields,a=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(n).filter(e=>!this._nodes.includes(e))),o={},u=Object.assign({},t,{parent:o,__validating:t.__validating||!1}),c=!1;for(let e of s){let r=i[e],s=e in n;if(r){let i;let a=n[e];u.path=(t.path?`${t.path}.`:"")+e;let s=(r=r.resolve({value:a,context:t.context,parent:o}))instanceof Schema?r.spec:void 0,l=null==s?void 0:s.strict;if(null!=s&&s.strip){c=c||e in n;continue}void 0!==(i=t.__validating&&l?n[e]:r.cast(n[e],u))&&(o[e]=i)}else s&&!a&&(o[e]=n[e]);(s!==e in o||o[e]!==n[e])&&(c=!0)}return c?o:n}_validate(e,t={},r,n){let{from:i=[],originalValue:a=e,recursive:s=this.spec.recursive}=t;t.from=[{schema:this,value:a},...i],t.__validating=!0,t.originalValue=a,super._validate(e,t,r,(e,i)=>{if(!s||!isObject(i)){n(e,i);return}a=a||i;let o=[];for(let e of this._nodes){let r=this.fields[e];!r||Reference.isRef(r)||o.push(r.asNestedTest({options:t,key:e,parent:i,parentPath:t.path,originalParent:a}))}this.runTests({tests:o,value:i,originalValue:a,options:t},r,t=>{n(t.sort(this._sortErrors).concat(e),i)})})}clone(e){let t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){let n=r[e];r[e]=void 0===n?t:n}return t.withMutation(t=>t.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach(r=>{var n;let i=this.fields[r],a=e;null!=(n=a)&&n.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),t[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),t}setFields(e,t){let r=this.clone();return r.fields=e,r._nodes=function(e,t=[]){let r=[],i=new Set,a=new Set(t.map(([e,t])=>`${e}-${t}`));function addNode(e,t){let s=(0,n.split)(e)[0];i.add(s),a.has(`${t}-${s}`)||r.push([t,s])}for(let t of Object.keys(e)){let r=e[t];i.add(t),Reference.isRef(r)&&r.isSibling?addNode(r.path,t):isSchema(r)&&"deps"in r&&r.deps.forEach(e=>addNode(e,t))}return s().array(Array.from(i),r).reverse()}(e,t),r._sortErrors=sortByKeyOrder(Object.keys(e)),t&&(r._excludedEdges=t),r}shape(e,t=[]){return this.clone().withMutation(r=>{let n=r._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),n=[...r._excludedEdges,...t]),r.setFields(Object.assign(r.fields,e),n)})}partial(){let e={};for(let[t,r]of Object.entries(this.fields))e[t]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){let e=function deepPartial(e){if("fields"in e){let t={};for(let[r,n]of Object.entries(e.fields))t[r]=deepPartial(n);return e.setFields(t)}if("array"===e.type){let t=e.optional();return t.innerType&&(t.innerType=deepPartial(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(deepPartial)}):"optional"in e?e.optional():e}(this);return e}pick(e){let t={};for(let r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.setFields(t)}omit(e){let t=Object.assign({},this.fields);for(let r of e)delete t[r];return this.setFields(t)}from(e,t,r){let i=(0,n.getter)(e,!0);return this.transform(n=>{if(!n)return n;let a=n;return deepHas(n,e)&&(a=Object.assign({},n),r||delete a[e],a[t]=i(n)),a})}json(){return this.transform(parseJson)}noUnknown(e=!0,t=b.noUnknown){"boolean"!=typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let r;if(null==t)return!0;let n=(r=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===r.indexOf(e)));return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=b.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>{if(!t)return t;let r={};for(let n of Object.keys(t))r[e(n)]=t[n];return r})}camelCase(){return this.transformKeys(i.camelCase)}snakeCase(){return this.transformKeys(i.snakeCase)}constantCase(){return this.transformKeys(e=>(0,i.snakeCase)(e).toUpperCase())}describe(e){let t=super.describe(e);for(let[n,i]of(t.fields={},Object.entries(this.fields))){var r;let a=e;null!=(r=a)&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[n]})),t.fields[n]=i.describe(a)}return t}};function create(e){return new Lazy(e)}create$3.prototype=ObjectSchema.prototype;let Lazy=class Lazy{constructor(e){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(e,t={})=>{let r=this.builder(e,t);if(!isSchema(r))throw TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(r=r.optional()),r.resolve(t)},this.builder=e,this.spec={meta:void 0,optional:!1}}clone(e){let t=new Lazy(this.builder);return t.spec=Object.assign({},this.spec,e),t}optionality(e){let t=this.clone({optional:e});return t}optional(){return this.optionality(!0)}resolve(e){return this._resolve(e.value,e)}cast(e,t){return this._resolve(e,t).cast(e,t)}asNestedTest(e){let{key:t,index:r,parent:n,options:i}=e,a=n[null!=r?r:t];return this._resolve(a,Object.assign({},i,{value:a,parent:n})).asNestedTest(e)}validate(e,t){return this._resolve(e,t).validate(e,t)}validateSync(e,t){return this._resolve(e,t).validateSync(e,t)}validateAt(e,t,r){return this._resolve(t,r).validateAt(e,t,r)}validateSyncAt(e,t,r){return this._resolve(t,r).validateSyncAt(e,t,r)}isValid(e,t){return this._resolve(e,t).isValid(e,t)}isValidSync(e,t){return this._resolve(e,t).isValidSync(e,t)}describe(e){return e?this.resolve(e).describe(e):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/270-56592f453c639f63.js b/striker-ui/out/_next/static/chunks/270-56592f453c639f63.js deleted file mode 100644 index 95e0bd59..00000000 --- a/striker-ui/out/_next/static/chunks/270-56592f453c639f63.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{21712:function(t,n,e){"use strict";e.d(n,{iconButtonClasses:function(){return to.iconButtonClasses}});var s=e(80276);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(91990);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}});var u=e(98745);e.o(u,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return u.iconButtonClasses}});var i=e(97351);e.o(i,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return i.iconButtonClasses}});var c=e(91763);e.o(c,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return c.iconButtonClasses}});var r=e(69275);e.o(r,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return r.iconButtonClasses}});var a=e(35760);e.o(a,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return a.iconButtonClasses}});var l=e(69214);e.o(l,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return l.iconButtonClasses}});var d=e(462);e.o(d,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return d.iconButtonClasses}});var f=e(15706);e.o(f,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return f.iconButtonClasses}});var C=e(30958);e.o(C,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return C.iconButtonClasses}});var B=e(50032);e.o(B,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return B.iconButtonClasses}});var v=e(67541);e.o(v,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return v.iconButtonClasses}});var p=e(65210);e.o(p,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return p.iconButtonClasses}});var k=e(11385);e.o(k,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return k.iconButtonClasses}});var m=e(68623);e.o(m,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return m.iconButtonClasses}});var g=e(66241);e.o(g,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return g.iconButtonClasses}});var w=e(16036);e.o(w,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return w.iconButtonClasses}});var h=e(14445);e.o(h,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return h.iconButtonClasses}});var x=e(42866);e.o(x,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return x.iconButtonClasses}});var b=e(21150);e.o(b,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return b.iconButtonClasses}});var I=e(83535);e.o(I,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return I.iconButtonClasses}});var M=e(73450);e.o(M,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return M.iconButtonClasses}});var N=e(37409);e.o(N,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return N.iconButtonClasses}});var y=e(88508);e.o(y,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return y.iconButtonClasses}});var j=e(71344);e.o(j,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return j.iconButtonClasses}});var S=e(41915);e.o(S,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return S.iconButtonClasses}});var Z=e(84618);e.o(Z,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Z.iconButtonClasses}});var D=e(38453);e.o(D,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return D.iconButtonClasses}});var P=e(64364);e.o(P,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return P.iconButtonClasses}});var R=e(19223);e.o(R,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return R.iconButtonClasses}});var A=e(12591);e.o(A,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return A.iconButtonClasses}});var V=e(49351);e.o(V,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return V.iconButtonClasses}});var U=e(75138);e.o(U,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return U.iconButtonClasses}});var F=e(8609);e.o(F,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return F.iconButtonClasses}});var L=e(56210);e.o(L,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return L.iconButtonClasses}});var E=e(47216);e.o(E,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return E.iconButtonClasses}});var T=e(89479);e.o(T,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return T.iconButtonClasses}});var O=e(2921);e.o(O,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return O.iconButtonClasses}});var _=e(8694);e.o(_,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return _.iconButtonClasses}});var q=e(1313);e.o(q,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return q.iconButtonClasses}});var H=e(69560);e.o(H,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return H.iconButtonClasses}});var W=e(78034);e.o(W,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return W.iconButtonClasses}});var $=e(49790);e.o($,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return $.iconButtonClasses}});var G=e(15008);e.o(G,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return G.iconButtonClasses}});var J=e(91940);e.o(J,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return J.iconButtonClasses}});var z=e(98338);e.o(z,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return z.iconButtonClasses}});var K=e(73102);e.o(K,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return K.iconButtonClasses}});var X=e(68263);e.o(X,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return X.iconButtonClasses}});var Q=e(52358);e.o(Q,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Q.iconButtonClasses}});var Y=e(55588);e.o(Y,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Y.iconButtonClasses}});var tt=e(24565);e.o(tt,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return tt.iconButtonClasses}});var tn=e(2806);e.o(tn,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return tn.iconButtonClasses}});var te=e(33527);e.o(te,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return te.iconButtonClasses}});var ts=e(2540);e.o(ts,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return ts.iconButtonClasses}});var to=e(44525)},4053:function(){},84023:function(){},98745:function(t,n,e){"use strict";var s=e(84023);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},94908:function(){},97351:function(t,n,e){"use strict";var s=e(94908);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},84293:function(){},91763:function(t,n,e){"use strict";var s=e(84293);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2541:function(){},69275:function(t,n,e){"use strict";var s=e(2541);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},65198:function(){},35760:function(t,n,e){"use strict";var s=e(65198);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},7713:function(){},69214:function(t,n,e){"use strict";var s=e(7713);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2959:function(){},462:function(t,n,e){"use strict";var s=e(2959);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2457:function(){},15706:function(t,n,e){"use strict";var s=e(2457);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},13857:function(){},30958:function(t,n,e){"use strict";var s=e(13857);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},55161:function(){},50032:function(t,n,e){"use strict";var s=e(55161);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},85079:function(){},67541:function(t,n,e){"use strict";var s=e(85079);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},53181:function(){},65210:function(t,n,e){"use strict";var s=e(53181);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},50835:function(){},11385:function(t,n,e){"use strict";var s=e(50835);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},57514:function(){},68623:function(t,n,e){"use strict";var s=e(57514);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},85212:function(){},66241:function(t,n,e){"use strict";var s=e(85212);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},45494:function(){},16036:function(t,n,e){"use strict";var s=e(45494);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2492:function(){},14445:function(t,n,e){"use strict";var s=e(2492);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},42130:function(){},42866:function(t,n,e){"use strict";var s=e(42130);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(62188);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},62188:function(){},7131:function(){},21150:function(t,n,e){"use strict";var s=e(7131);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},77590:function(){},83535:function(t,n,e){"use strict";var s=e(77590);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},9703:function(){},73450:function(t,n,e){"use strict";var s=e(9703);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},58351:function(){},37409:function(t,n,e){"use strict";var s=e(58351);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},4593:function(){},88508:function(t,n,e){"use strict";var s=e(4593);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47761:function(){},71344:function(t,n,e){"use strict";var s=e(47761);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},71756:function(){},41915:function(t,n,e){"use strict";var s=e(71756);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},74424:function(){},84618:function(t,n,e){"use strict";var s=e(74424);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},61302:function(){},38453:function(t,n,e){"use strict";var s=e(61302);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},7142:function(){},64364:function(t,n,e){"use strict";var s=e(7142);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},19223:function(){},46871:function(){},12591:function(t,n,e){"use strict";var s=e(46871);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},86704:function(){},49351:function(t,n,e){"use strict";var s=e(86704);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},75138:function(){},58615:function(){},56210:function(t,n,e){"use strict";var s=e(58615);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},65069:function(){},47216:function(t,n,e){"use strict";var s=e(65069);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},36526:function(){},89479:function(t,n,e){"use strict";var s=e(36526);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},67705:function(){},2921:function(t,n,e){"use strict";var s=e(67705);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47209:function(){},8694:function(t,n,e){"use strict";var s=e(47209);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},9266:function(){},1313:function(t,n,e){"use strict";var s=e(9266);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47366:function(){},69560:function(t,n,e){"use strict";var s=e(47366);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},88725:function(){},78034:function(t,n,e){"use strict";var s=e(88725);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},49790:function(){},95253:function(){},15008:function(t,n,e){"use strict";var s=e(95253);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},5174:function(){},91940:function(t,n,e){"use strict";var s=e(5174);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},343:function(){},98338:function(t,n,e){"use strict";var s=e(343);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},62531:function(){},73102:function(t,n,e){"use strict";var s=e(62531);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},83565:function(){},68263:function(t,n,e){"use strict";var s=e(83565);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},6534:function(){},9340:function(){},52358:function(t,n,e){"use strict";var s=e(6534);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(9340);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},21981:function(){},55588:function(t,n,e){"use strict";var s=e(21981);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2806:function(){},33527:function(){},23013:function(){},2540:function(t,n,e){"use strict";var s=e(23013);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},44525:function(t,n,e){"use strict";e.d(n,{iconButtonClasses:function(){return s.Z}});var s=e(96239)},57438:function(){},16560:function(){},24565:function(t,n,e){"use strict";var s=e(57438);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(16560);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},8609:function(){},80276:function(t,n,e){"use strict";var s=e(4053);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},91990:function(){},39174:function(t,n,e){"use strict";var s=e(85893),o=e(5616),u=e(6010);let i="Decorator",c={ok:"".concat(i,"-ok"),warning:"".concat(i,"-warning"),error:"".concat(i,"-error"),off:"".concat(i,"-off")};n.Z=t=>{let{colour:n,sx:e,...i}=t;return(0,s.jsx)(o.Z,{...i,className:c[n],sx:{borderRadius:u.n_,height:"100%",width:"1.4em",["&.".concat(c.ok)]:{backgroundColor:u.Ej},["&.".concat(c.warning)]:{backgroundColor:u.Wd},["&.".concat(c.error)]:{backgroundColor:u.hM},["&.".concat(c.off)]:{backgroundColor:u.s7},...e}})}},69836:function(t,n,e){"use strict";var s=e(85893),o=e(43800),u=e(23795),i=e(6010),c=e(55238);n.Z=t=>{let{children:n,sx:e,...r}=t;return(0,s.jsx)(u.Z,{underline:"hover",variant:"subtitle1",...r,sx:{color:i.lD,textDecorationColor:i.s7,...e},children:(0,s.jsxs)(c.Z,{row:!0,children:[n,(0,s.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})})}},7932:function(t,n,e){"use strict";e.d(n,{Z:function(){return q}});var s=e(85893),o=e(5616),u=e(2734),i=e(98396),c=e(21712),r=e(96540),a=e(27036),l=e(50594),d=e(8280),f=e(63488),C=e(73490),B=e(28951),v=e(67294),p=e(25934),k=e(98436),m=e(6010),g=e(5813),w=e(65939),h=e(54799),x=e(84154);let BriefNetworkInterface=t=>{let{isFloating:n,networkInterface:{networkInterfaceName:e},onClose:u,sx:i,...c}=t,r=n?{borderColor:m.s7,borderRadius:m.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:m.E5,padding:".6em 1.2em"}:{};return(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center","& > :not(:first-child)":{marginLeft:".5em"},...r,...i},...c,children:[(0,s.jsx)(x.$_,{children:e}),u&&(0,s.jsx)(h.Z,{onClick:u,size:"small",sx:{color:m.s7},children:(0,s.jsx)(l.Z,{})})]})};BriefNetworkInterface.defaultProps={isFloating:!1,onClose:void 0};var b=e(39174),I=e(90948);let M=(0,I.ZP)(o.Z)(()=>({borderColor:m.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}));var N=e(55238),y=e(83221),j=e(92917),S=e(21642),Z=e(55675),D=e(37260),P=e(64666),R=e(52886),A=e(10406),V=e(81796),U=e(50233);let F={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},L=[void 0,void 0],E={dnsCSV:"dns",gateway:"gateway",networkInterfaces:t=>"".concat(t,"Interface"),networkIPAddress:t=>"".concat(t,"IPAddress"),networkName:t=>"".concat(t,"Name"),networkSubnetMask:t=>"".concat(t,"SubnetMask"),networkSubnetConflict:t=>"".concat(t,"NetworkSubnetConflict")},T=Array.from({length:2},(t,n)=>n+1),O={bcn:{ip:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(t,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:()=>"",mask:""},mn:{ip:()=>"10.199.",mask:"255.255.0.0"},sn:{ip:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(t,".").concat(n)},mask:"255.255.0.0"}},createInputTestPrefix=t=>"network".concat(t),createNetworkInput=function(){let{inputUUID:t=(0,p.Z)(),interfaces:n=[...L],ipAddress:e="",name:s,subnetMask:o="",type:u="",typeCount:i=0,...c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=s;return s||(r=g.default[u]&&i>0?"".concat(g.default[u]," ").concat(i):"Unknown Network"),{inputUUID:t,interfaces:n,ipAddress:e,name:r,subnetMask:o,type:u,typeCount:i,...c}},createNetworkInterfaceTableColumns=(t,n)=>[{align:"center",field:"",renderCell:e=>{var u;let{row:i}=e,{isApplied:c}=null!==(u=n[i.networkInterfaceUUID])&&void 0!==u&&u,r="grab",handleMouseDown=function(){for(var n=arguments.length,e=Array(n),s=0;s{let{row:{networkInterfaceState:n}={},value:e}=t;return(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:".5em"}},children:[(0,s.jsx)(b.Z,{colour:"up"===n?"ok":"off",sx:{height:"auto"}}),(0,s.jsx)(x.$_,{children:e})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:t=>{let{value:n}=t;return(0,s.jsx)(x.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:t=>{let{value:n}=t,e=String(n);return(0,s.jsx)(x.KI,{text:"".concat(e.charAt(0).toUpperCase()).concat(e.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:t=>{let{value:n}=t;return(0,s.jsx)(x.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}],NetworkForm=t=>{let{allowMigrationNetwork:n,createDropMouseUpHandler:e,getNetworkTypeCount:c,hostDetail:{hostType:a,sequence:d}={},networkIndex:f,networkInput:C,networkInterfaceCount:B,networkInterfaceInputMap:p,removeNetwork:k,setMessageRe:w,setNetworkInputs:h,setNetworkInterfaceInputMap:b,testInput:I,testInputToToggleSubmitDisabled:N}=t,S=(0,u.Z)(),P=(0,i.Z)(S.breakpoints.up("md")),A=(0,i.Z)(S.breakpoints.up("lg")),V=(0,v.useRef)({}),U=(0,v.useRef)({}),{inputUUID:F,interfaces:L,ipAddress:_,isRequired:q,subnetMask:H,type:W,typeCount:$}=C,G=(0,v.useMemo)(()=>createInputTestPrefix(F),[F]),J=(0,v.useMemo)(()=>E.networkInterfaces(G),[G]),z=(0,v.useMemo)(()=>E.networkIPAddress(G),[G]),K=(0,v.useMemo)(()=>E.networkSubnetMask(G),[G]),X=(0,v.useMemo)(()=>E.networkSubnetConflict(G),[G]),Q=(0,v.useMemo)(()=>"node"===a,[a]),Y=(0,v.useMemo)(()=>!Q&&B<=2?[1]:T,[Q,B]),tt=(0,v.useMemo)(()=>{let{bcn:t,ifn:e,mn:s,sn:o}=g.default;return Q&&B>=8&&(n||"mn"===W)?{bcn:t,ifn:e,mn:s,sn:o}:{bcn:t,ifn:e,sn:o}},[n,Q,B,W]),tn=(0,v.useCallback)((t,n,e)=>{let{current:{getIsChangedByUser:s,setValue:o}}=V,{current:{getIsChangedByUser:u,setValue:i}}=U;(null==s?void 0:s.call(null))||(t.ipAddress=n,null==o||o.call(null,n)),(null==u?void 0:u.call(null))||(t.subnetMask=e,null==i||i.call(null,e))},[]);return(0,v.useEffect)(()=>{var t,n;if("striker"!==a||"ifn"===W)return;let e=null===(t=V.current.getIsChangedByUser)||void 0===t?void 0:t.call(null);!e&&Number(d)&&(null===(n=V.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(d))))},[a,_,d,W]),(0,v.useEffect)(()=>{let{ipAddressInputRef:t,subnetMaskInputRef:n}=C;(t!==V||n!==U)&&(C.ipAddressInputRef=V,C.subnetMaskInputRef=U,h(t=>[...t]))},[C,h]),(0,s.jsxs)(D.Lg,{children:[(0,s.jsxs)(D.CH,{children:[(0,s.jsx)(R.Z,{id:"network-".concat(F,"-name"),isReadOnly:q,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(tt).map(t=>{let[n,e]=t,s=c(n,{lastIndex:f});n!==W&&(s+=1);let o="".concat(e," ").concat(s);return{value:n,displayValue:o}}),selectProps:{onChange:t=>{let{target:{value:n}}=t,e=String(n);C.type=e;let s=c(e,{lastIndex:f});C.typeCount=s,C.name="".concat(g.default[e]," ").concat(s);let o=O[e];if(o){let t;let{ip:n,mask:u}=o;"striker"===a&&"bcn"===e&&(t="4."),tn(C,n(s,t),u)}h(t=>[...t])},renderValue:A?void 0:t=>"".concat(String(t).toUpperCase()," ").concat($),value:W}}),!q&&(0,s.jsx)(y.Z,{onClick:()=>{k(f)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,s.jsx)(l.Z,{fontSize:"small"})})]}),(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[Y.map(t=>{let n="Link ".concat(t),u=t-1,i=L[u],{networkInterfaceUUID:c=""}=null!=i?i:{},a=P?(0,s.jsx)(x.Ac,{text:"Drop to add interface."}):(0,s.jsx)(r.Z,{sx:{alignSelf:"center",color:m.s7}});return(0,s.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,s.jsx)(x.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,s.jsx)(M,{onMouseUp:function(){for(var t,n=arguments.length,s=Array(n),o=0;o{L[u]=void 0,p[c].isApplied=!1,b(t=>({...t})),N({inputs:{[J]:{isIgnoreOnCallbacks:!1}},isContinueOnFailure:!0})}},"network-interface-".concat(c)):a})]},"network-".concat(F,"-link-").concat(t))}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-".concat(F,"-ip-address"),inputProps:{onBlur:t=>{let{target:{value:n}}=t;I({inputs:{[z]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},label:"IP address",onChange:t=>{let{target:{value:n}}=t;N({inputs:{[z]:{value:n}}}),w(RegExp("(?:^(?:".concat(z,"|").concat(X,")|").concat(F,"$)")))},value:_}),ref:V}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-".concat(F,"-subnet-mask"),inputProps:{onBlur:t=>{let{target:{value:n}}=t;I({inputs:{[K]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},label:"Subnet mask",onChange:t=>{let{target:{value:n}}=t;N({inputs:{[K]:{value:n}}}),w(RegExp("(?:^(?:".concat(K,"|").concat(X,")|").concat(F,"$)")))},value:H}),ref:U})]})]})};NetworkForm.defaultProps={allowMigrationNetwork:!0,createDropMouseUpHandler:void 0,hostDetail:void 0};let _=(0,v.forwardRef)((t,n)=>{let e,{expectHostDetail:u=!1,hostDetail:i,hostSequence:a,toggleSubmitDisabled:l}=t,d="local",h=a;u?i&&({hostType:e,hostUUID:d,sequence:h}=i):e="striker";let x=(0,v.useMemo)(()=>{let t=[];if("striker"===e){let n=h?"10.201.4.".concat(h):"10.201.4.";return t.push(createNetworkInput({ipAddress:n,isRequired:!0,subnetMask:"255.255.0.0",type:"bcn",typeCount:1}),createNetworkInput({isRequired:!0,type:"ifn",typeCount:1})),t}return t.push(createNetworkInput({ipAddress:"10.201.",isRequired:!0,subnetMask:"255.255.0.0",type:"bcn",typeCount:1}),createNetworkInput({isRequired:!0,type:"ifn",typeCount:1}),createNetworkInput({ipAddress:"10.101.",isRequired:!0,subnetMask:"255.255.0.0",type:"sn",typeCount:1})),t},[e,h]),b=(0,v.useMemo)(()=>"node"===e?{bcn:1,ifn:1,sn:1}:{bcn:1,ifn:1},[e]),[I,M]=(0,v.useState)({x:0,y:0}),[D,R]=(0,v.useState)({}),[L,T]=(0,v.useState)(x),[O,_]=(0,v.useState)(),[q,H]=(0,v.useState)(""),W=(0,v.useRef)({}),$=(0,v.useRef)({}),G=(0,v.useRef)(!0),J=(0,v.useRef)({}),{data:z=[],isLoading:K}=(0,P.Z)("".concat(k.Z,"/init/network-interface/").concat(d),{refreshInterval:2e3,onSuccess:t=>{let n=t.reduce((t,n)=>{var e;let{networkInterfaceUUID:s}=n;return t[s]=null!==(e=D[s])&&void 0!==e?e:{metadata:n},t},{});R(n)}}),X=(0,v.useMemo)(()=>L.length>=z.length||Object.values(D).every(t=>{let{isApplied:n}=t;return n})||"node"===e&&z.length<=6,[e,L,z,D]),Q=(0,v.useMemo)(()=>u&&!i,[u,i]),Y=(0,v.useMemo)(()=>L.every(t=>{let{type:n}=t;return"mn"!==n}),[L]),tt=(0,v.useCallback)((t,n)=>{var e;return null===(e=J.current.setMessage)||void 0===e?void 0:e.call(null,t,n)},[]),tn=(0,v.useCallback)((t,n)=>{var e;return null===(e=J.current.setMessageRe)||void 0===e?void 0:e.call(null,t,n)},[]),te=(0,v.useCallback)(t=>tt(E.dnsCSV,t),[tt]),ts=(0,v.useCallback)(t=>tt(E.gateway,t),[tt]),to=(0,v.useCallback)(t=>{let n,{fn:e="every",ip:s="",mask:o="",isNegateMatch:u="every"===e,onMatch:i,onMiss:c,skipUUID:r}=t,a="every"===e,match=(t,n)=>{let{b:e,bIP:s=""}=n;return t.contains(null!=e?e:s)||void 0!==e&&e.contains(t)};try{n=new B.Netmask("".concat(s,"/").concat(o))}catch(t){}return L[e](t=>{var e,o;let{inputUUID:l,ipAddressInputRef:d,subnetMaskInputRef:f}=t;if(l===r)return a;let C=null==d?void 0:null===(e=d.current.getValue)||void 0===e?void 0:e.call(null),v=null==f?void 0:null===(o=f.current.getValue)||void 0===o?void 0:o.call(null),p=!1;try{let t=new B.Netmask("".concat(C,"/").concat(v));p=match(t,{b:n,bIP:s})}catch(t){}return p?null==i||i.call(null,t):null==c||c.call(null,t),u?!p:p})},[L]),tu=(0,v.useCallback)(t=>{tt("api",t)},[tt]),ti=(0,v.useMemo)(()=>{let t={[E.dnsCSV]:{defaults:{getValue:()=>{var t;return null===(t=W.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{te()}},tests:[{onFailure:()=>{te({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:t=>{let{value:n}=t;return w.ah.test(n)}},{test:U.HJ}]},[E.gateway]:{defaults:{getValue:()=>{var t;return null===(t=$.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{ts()}},tests:[{onFailure:()=>{ts({children:"Gateway should be a valid IPv4 address."})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t,e=!0,s=to({fn:"some",ip:n,onMatch:t=>{let{ipAddress:s,name:o,type:u,typeCount:i}=t;if(n===s){e=!1,ts({children:"Gateway cannot be the same as IP address in ".concat(o,".")});return}H("".concat(u).concat(i))}});return s||ts({children:"Gateway must be in one network's subnet."}),s&&e}},{test:U.HJ}]}};return L.forEach(n=>{var e,s;let{inputUUID:o,interfaces:u,ipAddressInputRef:i,name:c,subnetMaskInputRef:r}=n,a=createInputTestPrefix(o),l=E.networkInterfaces(a),d=E.networkIPAddress(a),f=E.networkSubnetMask(a),setNetworkIfacesInputMessage=t=>tt(l,t),setNetworkIPAddressInputMessage=t=>tt(d,t),setNetworkSubnetMaskInputMessage=t=>tt(f,t),setNetworkSubnetConflictInputMessage=(t,n,e)=>{var s;let o="".concat(E.networkSubnetConflict(a),"-").concat(n),u="".concat(E.networkSubnetConflict(createInputTestPrefix(n)),"-").concat(t);tt((null===(s=J.current.exists)||void 0===s?void 0:s.call(null,u))?u:o,e)},testNetworkSubnetConflictWithDefaults=t=>{let{ip:n=null==i?void 0:null===(e=i.current.getValue)||void 0===e?void 0:e.call(null),mask:u=null==r?void 0:null===(s=r.current.getValue)||void 0===s?void 0:s.call(null)}=t;return to({ip:n,mask:u,onMatch:t=>{let{inputUUID:n,name:e}=t;setNetworkSubnetConflictInputMessage(o,n,{children:'"'.concat(c,'" and "').concat(e,'" cannot be in the same subnet.')})},onMiss:t=>{let{inputUUID:n}=t;setNetworkSubnetConflictInputMessage(o,n)},skipUUID:o})};t[l]={defaults:{getCompare:()=>u.map(t=>void 0!==t),onSuccess:()=>{setNetworkIfacesInputMessage()}},tests:[{onFailure:()=>{setNetworkIfacesInputMessage({children:"".concat(c," must have at least 1 interface.")})},test:t=>{let{compare:n}=t;return n.some(t=>t)}},{onFailure:()=>{setNetworkIfacesInputMessage({children:"".concat(c," must have a Link 1 interface.")})},test:t=>{let{compare:[n,e]}=t;return!(e&&!n)}}]},t[d]={defaults:{getValue:()=>{var t;return null==i?void 0:null===(t=i.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{setNetworkIPAddressInputMessage()}},tests:[{onFailure:()=>{setNetworkIPAddressInputMessage({children:"IP address in ".concat(c," must be a valid IPv4 address.")})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t;return testNetworkSubnetConflictWithDefaults({ip:n})}},{test:U.HJ}]},t[E.networkName(a)]={defaults:{value:c},tests:[{test:U.HJ}]},t[f]={defaults:{getValue:()=>{var t;return null==r?void 0:null===(t=r.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{setNetworkSubnetMaskInputMessage()}},tests:[{onFailure:()=>{setNetworkSubnetMaskInputMessage({children:"Subnet mask in ".concat(c," must be a valid IPv4 address.")})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t;return testNetworkSubnetConflictWithDefaults({mask:n})}},{test:U.HJ}]}}),t},[L,te,ts,tt,to]),tc=(0,v.useMemo)(()=>(0,U.LT)(ti),[ti]),tr=(0,v.useCallback)(t=>{null==l||l.call(null,tc({isIgnoreOnCallbacks:!0,isTestAll:!0,...t}))},[tc,l]),ta=(0,v.useCallback)(()=>{_(void 0)},[]),tl=(0,v.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L.unshift(createNetworkInput(t)),null==l||l.call(null,!1),T([...L])},[L,l]),td=(0,v.useCallback)(t=>{let[{inputUUID:n,interfaces:e}]=L.splice(t,1);e.forEach(t=>{if(void 0===t)return;let{networkInterfaceUUID:n}=t;D[n].isApplied=!1}),tr({excludeTestIdsRe:RegExp(n)}),T([...L]),R(t=>({...t}))},[L,D,tr]),tf=(0,v.useCallback)(function(t){let{inputs:n=L,lastIndex:e=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=0;for(let o=n.length-1;o>=e;o-=1)n[o].type===t&&(s+=1);return s},[L]),tC=(0,v.useMemo)(()=>{if(void 0===O)return;let{networkInterfaceUUID:t}=O;return(n,e)=>()=>{var s;let{networkInterfaceUUID:o}=null!==(s=n[e])&&void 0!==s?s:{};o&&o!==t&&(D[o].isApplied=!1),n[e]=O,D[t].isApplied=!0}},[O,D]),tB=(0,v.useMemo)(()=>O?{cursor:"grabbing",userSelect:"none"}:{},[O]),tv=(0,v.useMemo)(()=>{if(void 0===O)return(0,s.jsx)(s.Fragment,{});let{x:t,y:n}=I;return(0,s.jsx)(BriefNetworkInterface,{isFloating:!0,networkInterface:O,sx:{left:"calc(".concat(t,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})},[I,O]),tp=(0,v.useMemo)(()=>O?()=>{ta()}:void 0,[ta,O]),tk=(0,v.useMemo)(()=>O?t=>{let{currentTarget:n,nativeEvent:{clientX:e,clientY:s}}=t,{left:o,top:u}=n.getBoundingClientRect();M({x:e-o,y:s-u})}:void 0,[O]),tm=(0,v.useMemo)(()=>O?()=>{ta()}:void 0,[ta,O]);(0,v.useEffect)(()=>{if([Object.keys(D).length>0,u,i,G.current,W.current,$.current].every(t=>!!t)){var t,n;G.current=!1;let{dns:e,gateway:s,gatewayInterface:o,networks:u}=i;if([e,s,o,u].some(t=>!t))return;null===(t=W.current.setValue)||void 0===t||t.call(null,e),null===(n=$.current.setValue)||void 0===n||n.call(null,s);let c=[],r=Object.values(u).reduce((t,n)=>{var e,s;let{ip:o,link1Uuid:u,link2Uuid:i="",subnetMask:r,type:a}=n,l=tf(a,{inputs:t})+1,d=b[a]===l,f="".concat(g.default[a]," ").concat(l);return c.push(u,i),t.push({inputUUID:(0,p.Z)(),interfaces:[null===(e=D[u])||void 0===e?void 0:e.metadata,null===(s=D[i])||void 0===s?void 0:s.metadata],ipAddress:o,isRequired:d,name:f,subnetMask:r,type:a,typeCount:l}),t},[]);H(o),R(t=>{let n={...t};return c.forEach(t=>{n[t]&&(n[t].isApplied=!0)}),n}),T(r),tr()}},[u,tf,i,D,b,tr]),(0,v.useEffect)(()=>((0,A.Z)(1,tu),window&&window.addEventListener("beforeunload",()=>{let t=new XMLHttpRequest;t.open("PUT","".concat(k.Z,"/init/set-map-network"),!1),t.send(null)},{once:!0}),()=>{(0,A.Z)(0,tu)}),[tu]),(0,v.useImperativeHandle)(n,()=>({...J.current,get:()=>{var t,n;return{dns:null===(t=W.current.getValue)||void 0===t?void 0:t.call(null),gateway:null===(n=$.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:q,networks:L.map(t=>{var n,e,s,o;let{inputUUID:u,interfaces:i,ipAddressInputRef:c,name:r,subnetMaskInputRef:a,type:l,typeCount:d}=t;return{inputUUID:u,interfaces:i,ipAddress:null!==(s=null==c?void 0:null===(n=c.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==s?s:"",name:r,subnetMask:null!==(o=null==a?void 0:null===(e=a.current.getValue)||void 0===e?void 0:e.call(null))&&void 0!==o?o:"",type:l,typeCount:d}})}}}),[q,L]);let tg="13em";return K?(0,s.jsx)(V.Z,{}):(0,s.jsxs)(o.Z,{onMouseDown:t=>{let{clientX:n,clientY:e,currentTarget:s}=t,{left:o,top:u}=s.getBoundingClientRect();M({x:n-o,y:e-u})},onMouseLeave:tp,onMouseMove:tk,onMouseUp:tm,sx:{position:"relative",...tB},children:[tv,(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,s.jsx)(f._,{autoHeight:!0,columns:createNetworkInterfaceTableColumns(t=>{_(t)},D),componentsProps:{row:{onMouseDown:t=>{let{target:{parentElement:{dataset:{id:n}={}}={}}={}}=t;if(n){let{isApplied:t,metadata:e}=D[n];t||_(e)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:t=>{var n;let{row:{networkInterfaceUUID:e}}=t,{isApplied:s}=null!==(n=D[e])&&void 0!==n&&n,o="";return s||(o+=" ".concat(F.ifaceNotApplied)),o},getRowId:t=>{let{networkInterfaceUUID:n}=t;return n},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:z,sx:{color:m.s7,["& .".concat(c.iconButtonClasses.root)]:{color:"inherit"},["& .".concat(C._.cell,":focus")]:{outline:"none"},["& .".concat(C._.row,".").concat(F.ifaceNotApplied,":hover")]:{cursor:"grab",["& .".concat(C._.cell," p")]:{cursor:"auto"}}}}),!Q&&(0,s.jsx)(N.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,s.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:tg,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:L.map((t,n)=>{let{inputUUID:o}=t;return(0,s.jsx)(NetworkForm,{allowMigrationNetwork:Y,createDropMouseUpHandler:tC,getNetworkTypeCount:tf,hostDetail:{hostType:e,sequence:h},networkIndex:n,networkInput:t,networkInterfaceCount:z.length,networkInterfaceInputMap:D,removeNetwork:td,setMessageRe:tn,setNetworkInputs:T,setNetworkInterfaceInputMap:R,testInput:tc,testInputToToggleSubmitDisabled:tr},"network-".concat(o))})})}),(0,s.jsxs)(N.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:tg,width:{sm:"25%"}}},children:[(0,s.jsx)(y.Z,{disabled:X,onClick:()=>{tl()},children:(0,s.jsx)(r.Z,{})}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-init-gateway",inputProps:{onBlur:t=>{let{target:{value:n}}=t;tc({inputs:{[E.gateway]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},onChange:t=>{let{target:{value:n}}=t;tr({inputs:{[E.gateway]:{value:n}}}),ts()},label:"Gateway"}),ref:$}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-init-dns-csv",inputProps:{onBlur:t=>{let{target:{value:n}}=t;tc({inputs:{[E.dnsCSV]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},onChange:t=>{let{target:{value:n}}=t;tr({inputs:{[E.dnsCSV]:{value:n}}}),te()},label:"Domain name server(s)"}),ref:W})]}),(0,s.jsx)(S.Z,{count:1,defaultMessageType:"warning",ref:J})]})]})});_.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},_.displayName="NetworkInitForm";var q=_},5813:function(t,n){"use strict";n.default={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},10406:function(t,n,e){"use strict";var s=e(85893),o=e(67645),u=e(41247);n.Z=(t,n)=>{o.Z.put("/init/set-map-network",{value:t}).catch(e=>{let o=(0,u.Z)(e);o.children=(0,s.jsxs)(s.Fragment,{children:["Failed to ",t?"enable":"disable"," network mapping."," ",o.children]}),null==n||n.call(null,o)})}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/270-9058c1049a825f7d.js b/striker-ui/out/_next/static/chunks/270-9058c1049a825f7d.js new file mode 100644 index 00000000..e1d038b7 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/270-9058c1049a825f7d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{21712:function(t,n,e){"use strict";e.d(n,{iconButtonClasses:function(){return to.iconButtonClasses}});var s=e(80276);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(91990);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}});var u=e(98745);e.o(u,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return u.iconButtonClasses}});var i=e(97351);e.o(i,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return i.iconButtonClasses}});var c=e(91763);e.o(c,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return c.iconButtonClasses}});var r=e(69275);e.o(r,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return r.iconButtonClasses}});var a=e(35760);e.o(a,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return a.iconButtonClasses}});var l=e(69214);e.o(l,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return l.iconButtonClasses}});var d=e(462);e.o(d,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return d.iconButtonClasses}});var f=e(15706);e.o(f,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return f.iconButtonClasses}});var C=e(30958);e.o(C,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return C.iconButtonClasses}});var B=e(50032);e.o(B,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return B.iconButtonClasses}});var v=e(67541);e.o(v,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return v.iconButtonClasses}});var p=e(65210);e.o(p,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return p.iconButtonClasses}});var k=e(11385);e.o(k,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return k.iconButtonClasses}});var m=e(68623);e.o(m,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return m.iconButtonClasses}});var g=e(66241);e.o(g,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return g.iconButtonClasses}});var w=e(16036);e.o(w,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return w.iconButtonClasses}});var h=e(14445);e.o(h,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return h.iconButtonClasses}});var x=e(42866);e.o(x,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return x.iconButtonClasses}});var b=e(21150);e.o(b,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return b.iconButtonClasses}});var I=e(83535);e.o(I,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return I.iconButtonClasses}});var M=e(73450);e.o(M,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return M.iconButtonClasses}});var N=e(37409);e.o(N,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return N.iconButtonClasses}});var y=e(88508);e.o(y,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return y.iconButtonClasses}});var j=e(71344);e.o(j,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return j.iconButtonClasses}});var S=e(41915);e.o(S,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return S.iconButtonClasses}});var Z=e(84618);e.o(Z,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Z.iconButtonClasses}});var D=e(38453);e.o(D,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return D.iconButtonClasses}});var P=e(64364);e.o(P,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return P.iconButtonClasses}});var R=e(19223);e.o(R,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return R.iconButtonClasses}});var A=e(12591);e.o(A,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return A.iconButtonClasses}});var V=e(49351);e.o(V,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return V.iconButtonClasses}});var U=e(75138);e.o(U,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return U.iconButtonClasses}});var F=e(8609);e.o(F,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return F.iconButtonClasses}});var L=e(56210);e.o(L,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return L.iconButtonClasses}});var E=e(47216);e.o(E,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return E.iconButtonClasses}});var T=e(89479);e.o(T,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return T.iconButtonClasses}});var O=e(2921);e.o(O,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return O.iconButtonClasses}});var _=e(8694);e.o(_,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return _.iconButtonClasses}});var q=e(1313);e.o(q,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return q.iconButtonClasses}});var H=e(69560);e.o(H,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return H.iconButtonClasses}});var W=e(78034);e.o(W,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return W.iconButtonClasses}});var $=e(49790);e.o($,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return $.iconButtonClasses}});var G=e(15008);e.o(G,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return G.iconButtonClasses}});var J=e(91940);e.o(J,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return J.iconButtonClasses}});var z=e(98338);e.o(z,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return z.iconButtonClasses}});var K=e(73102);e.o(K,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return K.iconButtonClasses}});var X=e(68263);e.o(X,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return X.iconButtonClasses}});var Q=e(52358);e.o(Q,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Q.iconButtonClasses}});var Y=e(55588);e.o(Y,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return Y.iconButtonClasses}});var tt=e(24565);e.o(tt,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return tt.iconButtonClasses}});var tn=e(2806);e.o(tn,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return tn.iconButtonClasses}});var te=e(33527);e.o(te,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return te.iconButtonClasses}});var ts=e(2540);e.o(ts,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return ts.iconButtonClasses}});var to=e(44525)},4053:function(){},84023:function(){},98745:function(t,n,e){"use strict";var s=e(84023);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},94908:function(){},97351:function(t,n,e){"use strict";var s=e(94908);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},84293:function(){},91763:function(t,n,e){"use strict";var s=e(84293);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2541:function(){},69275:function(t,n,e){"use strict";var s=e(2541);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},65198:function(){},35760:function(t,n,e){"use strict";var s=e(65198);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},7713:function(){},69214:function(t,n,e){"use strict";var s=e(7713);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2959:function(){},462:function(t,n,e){"use strict";var s=e(2959);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2457:function(){},15706:function(t,n,e){"use strict";var s=e(2457);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},13857:function(){},30958:function(t,n,e){"use strict";var s=e(13857);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},55161:function(){},50032:function(t,n,e){"use strict";var s=e(55161);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},85079:function(){},67541:function(t,n,e){"use strict";var s=e(85079);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},53181:function(){},65210:function(t,n,e){"use strict";var s=e(53181);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},50835:function(){},11385:function(t,n,e){"use strict";var s=e(50835);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},57514:function(){},68623:function(t,n,e){"use strict";var s=e(57514);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},85212:function(){},66241:function(t,n,e){"use strict";var s=e(85212);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},45494:function(){},16036:function(t,n,e){"use strict";var s=e(45494);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47147:function(){},14445:function(t,n,e){"use strict";var s=e(47147);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},42130:function(){},42866:function(t,n,e){"use strict";var s=e(42130);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(62188);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},62188:function(){},7131:function(){},21150:function(t,n,e){"use strict";var s=e(7131);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},77590:function(){},83535:function(t,n,e){"use strict";var s=e(77590);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},9703:function(){},73450:function(t,n,e){"use strict";var s=e(9703);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},58351:function(){},37409:function(t,n,e){"use strict";var s=e(58351);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},4593:function(){},88508:function(t,n,e){"use strict";var s=e(4593);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47761:function(){},71344:function(t,n,e){"use strict";var s=e(47761);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},71756:function(){},41915:function(t,n,e){"use strict";var s=e(71756);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},74424:function(){},84618:function(t,n,e){"use strict";var s=e(74424);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},61302:function(){},38453:function(t,n,e){"use strict";var s=e(61302);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},7142:function(){},64364:function(t,n,e){"use strict";var s=e(7142);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},19223:function(){},46871:function(){},12591:function(t,n,e){"use strict";var s=e(46871);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},86704:function(){},49351:function(t,n,e){"use strict";var s=e(86704);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},75138:function(){},58615:function(){},56210:function(t,n,e){"use strict";var s=e(58615);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},65069:function(){},47216:function(t,n,e){"use strict";var s=e(65069);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},36526:function(){},89479:function(t,n,e){"use strict";var s=e(36526);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},67705:function(){},2921:function(t,n,e){"use strict";var s=e(67705);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47209:function(){},8694:function(t,n,e){"use strict";var s=e(47209);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},9266:function(){},1313:function(t,n,e){"use strict";var s=e(9266);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},47366:function(){},69560:function(t,n,e){"use strict";var s=e(47366);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},88725:function(){},78034:function(t,n,e){"use strict";var s=e(88725);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},49790:function(){},95253:function(){},15008:function(t,n,e){"use strict";var s=e(95253);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},5174:function(){},91940:function(t,n,e){"use strict";var s=e(5174);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},343:function(){},98338:function(t,n,e){"use strict";var s=e(343);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},62531:function(){},73102:function(t,n,e){"use strict";var s=e(62531);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},83565:function(){},68263:function(t,n,e){"use strict";var s=e(83565);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},6534:function(){},9340:function(){},52358:function(t,n,e){"use strict";var s=e(6534);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(9340);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},21981:function(){},55588:function(t,n,e){"use strict";var s=e(21981);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},2806:function(){},33527:function(){},23013:function(){},2540:function(t,n,e){"use strict";var s=e(23013);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},44525:function(t,n,e){"use strict";e.d(n,{iconButtonClasses:function(){return s.Z}});var s=e(96239)},57438:function(){},16560:function(){},24565:function(t,n,e){"use strict";var s=e(57438);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}});var o=e(16560);e.o(o,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return o.iconButtonClasses}})},8609:function(){},80276:function(t,n,e){"use strict";var s=e(4053);e.o(s,"iconButtonClasses")&&e.d(n,{iconButtonClasses:function(){return s.iconButtonClasses}})},91990:function(){},39174:function(t,n,e){"use strict";var s=e(85893),o=e(5616),u=e(6010);let i="Decorator",c={ok:"".concat(i,"-ok"),warning:"".concat(i,"-warning"),error:"".concat(i,"-error"),off:"".concat(i,"-off")};n.Z=t=>{let{colour:n,sx:e,...i}=t;return(0,s.jsx)(o.Z,{...i,className:c[n],sx:{borderRadius:u.n_,height:"100%",width:"1.4em",["&.".concat(c.ok)]:{backgroundColor:u.Ej},["&.".concat(c.warning)]:{backgroundColor:u.Wd},["&.".concat(c.error)]:{backgroundColor:u.hM},["&.".concat(c.off)]:{backgroundColor:u.s7},...e}})}},69836:function(t,n,e){"use strict";var s=e(85893),o=e(43800),u=e(23795),i=e(6010),c=e(55238);n.Z=t=>{let{children:n,sx:e,...r}=t;return(0,s.jsx)(u.Z,{underline:"hover",variant:"subtitle1",...r,sx:{color:i.lD,textDecorationColor:i.s7,...e},children:(0,s.jsxs)(c.Z,{row:!0,children:[n,(0,s.jsx)(o.Z,{sx:{marginLeft:".3em"}})]})})}},7932:function(t,n,e){"use strict";e.d(n,{Z:function(){return q}});var s=e(85893),o=e(5616),u=e(2734),i=e(98396),c=e(21712),r=e(96540),a=e(27036),l=e(50594),d=e(8280),f=e(63488),C=e(73490),B=e(28951),v=e(67294),p=e(25934),k=e(98436),m=e(6010),g=e(5813),w=e(65939),h=e(54799),x=e(84154);let BriefNetworkInterface=t=>{let{isFloating:n,networkInterface:{networkInterfaceName:e},onClose:u,sx:i,...c}=t,r=n?{borderColor:m.s7,borderRadius:m.n_,borderStyle:"solid",borderWidth:"1px",backgroundColor:m.E5,padding:".6em 1.2em"}:{};return(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center","& > :not(:first-child)":{marginLeft:".5em"},...r,...i},...c,children:[(0,s.jsx)(x.$_,{children:e}),u&&(0,s.jsx)(h.Z,{onClick:u,size:"small",sx:{color:m.s7},children:(0,s.jsx)(l.Z,{})})]})};BriefNetworkInterface.defaultProps={isFloating:!1,onClose:void 0};var b=e(39174),I=e(90948);let M=(0,I.ZP)(o.Z)(()=>({borderColor:m.s7,borderStyle:"dashed",borderWidth:"4px",display:"flex",flexDirection:"column",padding:".6em","& > :not(:first-child)":{marginTop:".3em"}}));var N=e(55238),y=e(83221),j=e(92917),S=e(21642),Z=e(55675),D=e(37260),P=e(64666),R=e(52886),A=e(10406),V=e(81796),U=e(50233);let F={ifaceNotApplied:"".concat("NetworkInitForm","-network-interface-not-applied")},L=[void 0,void 0],E={dnsCSV:"dns",gateway:"gateway",networkInterfaces:t=>"".concat(t,"Interface"),networkIPAddress:t=>"".concat(t,"IPAddress"),networkName:t=>"".concat(t,"Name"),networkSubnetMask:t=>"".concat(t,"SubnetMask"),networkSubnetConflict:t=>"".concat(t,"NetworkSubnetConflict")},T=Array.from({length:2},(t,n)=>n+1),O={bcn:{ip:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.20".concat(t,".").concat(n)},mask:"255.255.0.0"},ifn:{ip:()=>"",mask:""},mn:{ip:()=>"10.199.",mask:"255.255.0.0"},sn:{ip:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"10.10".concat(t,".").concat(n)},mask:"255.255.0.0"}},createInputTestPrefix=t=>"network".concat(t),createNetworkInput=function(){let{inputUUID:t=(0,p.Z)(),interfaces:n=[...L],ipAddress:e="",name:s,subnetMask:o="",type:u="",typeCount:i=0,...c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=s;return s||(r=g.default[u]&&i>0?"".concat(g.default[u]," ").concat(i):"Unknown Network"),{inputUUID:t,interfaces:n,ipAddress:e,name:r,subnetMask:o,type:u,typeCount:i,...c}},createNetworkInterfaceTableColumns=(t,n)=>[{align:"center",field:"",renderCell:e=>{var u;let{row:i}=e,{isApplied:c}=null!==(u=n[i.networkInterfaceUUID])&&void 0!==u&&u,r="grab",handleMouseDown=function(){for(var n=arguments.length,e=Array(n),s=0;s{let{row:{networkInterfaceState:n}={},value:e}=t;return(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:".5em"}},children:[(0,s.jsx)(b.Z,{colour:"up"===n?"ok":"off",sx:{height:"auto"}}),(0,s.jsx)(x.$_,{children:e})]})}},{field:"networkInterfaceMACAddress",flex:1,headerName:"MAC",renderCell:t=>{let{value:n}=t;return(0,s.jsx)(x.$_,{text:n})}},{field:"networkInterfaceState",flex:1,headerName:"State",renderCell:t=>{let{value:n}=t,e=String(n);return(0,s.jsx)(x.KI,{text:"".concat(e.charAt(0).toUpperCase()).concat(e.substring(1))})}},{field:"networkInterfaceSpeed",flex:1,headerName:"Speed",renderCell:t=>{let{value:n}=t;return(0,s.jsx)(x.KI,{text:"".concat(parseFloat(n).toLocaleString()," Mbps")})}},{field:"networkInterfaceOrder",flex:1,headerName:"Order"}],NetworkForm=t=>{let{allowMigrationNetwork:n,createDropMouseUpHandler:e,getNetworkTypeCount:c,hostDetail:{hostType:a,sequence:d}={},networkIndex:f,networkInput:C,networkInterfaceCount:B,networkInterfaceInputMap:p,removeNetwork:k,setMessageRe:w,setNetworkInputs:h,setNetworkInterfaceInputMap:b,testInput:I,testInputToToggleSubmitDisabled:N}=t,S=(0,u.Z)(),P=(0,i.Z)(S.breakpoints.up("md")),A=(0,i.Z)(S.breakpoints.up("lg")),V=(0,v.useRef)({}),U=(0,v.useRef)({}),{inputUUID:F,interfaces:L,ipAddress:_,isRequired:q,subnetMask:H,type:W,typeCount:$}=C,G=(0,v.useMemo)(()=>createInputTestPrefix(F),[F]),J=(0,v.useMemo)(()=>E.networkInterfaces(G),[G]),z=(0,v.useMemo)(()=>E.networkIPAddress(G),[G]),K=(0,v.useMemo)(()=>E.networkSubnetMask(G),[G]),X=(0,v.useMemo)(()=>E.networkSubnetConflict(G),[G]),Q=(0,v.useMemo)(()=>"node"===a,[a]),Y=(0,v.useMemo)(()=>!Q&&B<=2?[1]:T,[Q,B]),tt=(0,v.useMemo)(()=>{let{bcn:t,ifn:e,mn:s,sn:o}=g.default;return Q&&B>=8&&(n||"mn"===W)?{bcn:t,ifn:e,mn:s,sn:o}:{bcn:t,ifn:e,sn:o}},[n,Q,B,W]),tn=(0,v.useCallback)((t,n,e)=>{let{current:{getIsChangedByUser:s,setValue:o}}=V,{current:{getIsChangedByUser:u,setValue:i}}=U;(null==s?void 0:s.call(null))||(t.ipAddress=n,null==o||o.call(null,n)),(null==u?void 0:u.call(null))||(t.subnetMask=e,null==i||i.call(null,e))},[]);return(0,v.useEffect)(()=>{var t,n;if("striker"!==a||"ifn"===W)return;let e=null===(t=V.current.getIsChangedByUser)||void 0===t?void 0:t.call(null);!e&&Number(d)&&(null===(n=V.current.setValue)||void 0===n||n.call(null,_.replace(/^((?:\d+\.){3})\d*$/,"$1".concat(d))))},[a,_,d,W]),(0,v.useEffect)(()=>{let{ipAddressInputRef:t,subnetMaskInputRef:n}=C;(t!==V||n!==U)&&(C.ipAddressInputRef=V,C.subnetMaskInputRef=U,h(t=>[...t]))},[C,h]),(0,s.jsxs)(D.Lg,{children:[(0,s.jsxs)(D.CH,{children:[(0,s.jsx)(R.Z,{id:"network-".concat(F,"-name"),isReadOnly:q,inputLabelProps:{isNotifyRequired:!0},label:"Network name",selectItems:Object.entries(tt).map(t=>{let[n,e]=t,s=c(n,{lastIndex:f});n!==W&&(s+=1);let o="".concat(e," ").concat(s);return{value:n,displayValue:o}}),selectProps:{onChange:t=>{let{target:{value:n}}=t,e=String(n);C.type=e;let s=c(e,{lastIndex:f});C.typeCount=s,C.name="".concat(g.default[e]," ").concat(s);let o=O[e];if(o){let t;let{ip:n,mask:u}=o;"striker"===a&&"bcn"===e&&(t="4."),tn(C,n(s,t),u)}h(t=>[...t])},renderValue:A?void 0:t=>"".concat(String(t).toUpperCase()," ").concat($),value:W}}),!q&&(0,s.jsx)(y.Z,{onClick:()=>{k(f)},sx:{padding:".2em",position:"absolute",right:"-9px",top:"-4px"},children:(0,s.jsx)(l.Z,{fontSize:"small"})})]}),(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column",margin:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[Y.map(t=>{let n="Link ".concat(t),u=t-1,i=L[u],{networkInterfaceUUID:c=""}=null!=i?i:{},a=P?(0,s.jsx)(x.Ac,{text:"Drop to add interface."}):(0,s.jsx)(r.Z,{sx:{alignSelf:"center",color:m.s7}});return(0,s.jsxs)(o.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row","& > :not(:first-child)":{marginLeft:"1em"},"& > :last-child":{flexGrow:1}},children:[(0,s.jsx)(x.Ac,{sx:{whiteSpace:"nowrap"},text:n}),(0,s.jsx)(M,{onMouseUp:function(){for(var t,n=arguments.length,s=Array(n),o=0;o{L[u]=void 0,p[c].isApplied=!1,b(t=>({...t})),N({inputs:{[J]:{isIgnoreOnCallbacks:!1}},isContinueOnFailure:!0})}},"network-interface-".concat(c)):a})]},"network-".concat(F,"-link-").concat(t))}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-".concat(F,"-ip-address"),inputProps:{onBlur:t=>{let{target:{value:n}}=t;I({inputs:{[z]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},label:"IP address",onChange:t=>{let{target:{value:n}}=t;N({inputs:{[z]:{value:n}}}),w(RegExp("(?:^(?:".concat(z,"|").concat(X,")|").concat(F,"$)")))},value:_}),ref:V}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-".concat(F,"-subnet-mask"),inputProps:{onBlur:t=>{let{target:{value:n}}=t;I({inputs:{[K]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},label:"Subnet mask",onChange:t=>{let{target:{value:n}}=t;N({inputs:{[K]:{value:n}}}),w(RegExp("(?:^(?:".concat(K,"|").concat(X,")|").concat(F,"$)")))},value:H}),ref:U})]})]})};NetworkForm.defaultProps={allowMigrationNetwork:!0,createDropMouseUpHandler:void 0,hostDetail:void 0};let _=(0,v.forwardRef)((t,n)=>{let e,{expectHostDetail:u=!1,hostDetail:i,hostSequence:a,toggleSubmitDisabled:l}=t,d="local",h=a;u?i&&({hostType:e,hostUUID:d,sequence:h}=i):e="striker";let x=(0,v.useMemo)(()=>{let t=[];if("striker"===e){let n=h?"10.201.4.".concat(h):"10.201.4.";return t.push(createNetworkInput({ipAddress:n,isRequired:!0,subnetMask:"255.255.0.0",type:"bcn",typeCount:1}),createNetworkInput({isRequired:!0,type:"ifn",typeCount:1})),t}return t.push(createNetworkInput({ipAddress:"10.201.",isRequired:!0,subnetMask:"255.255.0.0",type:"bcn",typeCount:1}),createNetworkInput({isRequired:!0,type:"ifn",typeCount:1}),createNetworkInput({ipAddress:"10.101.",isRequired:!0,subnetMask:"255.255.0.0",type:"sn",typeCount:1})),t},[e,h]),b=(0,v.useMemo)(()=>"node"===e?{bcn:1,ifn:1,sn:1}:{bcn:1,ifn:1},[e]),[I,M]=(0,v.useState)({x:0,y:0}),[D,R]=(0,v.useState)({}),[L,T]=(0,v.useState)(x),[O,_]=(0,v.useState)(),[q,H]=(0,v.useState)(""),W=(0,v.useRef)({}),$=(0,v.useRef)({}),G=(0,v.useRef)(!0),J=(0,v.useRef)({}),{data:z=[],isLoading:K}=(0,P.Z)("".concat(k.Z,"/init/network-interface/").concat(d),{refreshInterval:2e3,onSuccess:t=>{let n=t.reduce((t,n)=>{var e;let{networkInterfaceUUID:s}=n;return t[s]=null!==(e=D[s])&&void 0!==e?e:{metadata:n},t},{});R(n)}}),X=(0,v.useMemo)(()=>L.length>=z.length||Object.values(D).every(t=>{let{isApplied:n}=t;return n})||"node"===e&&z.length<=6,[e,L,z,D]),Q=(0,v.useMemo)(()=>u&&!i,[u,i]),Y=(0,v.useMemo)(()=>L.every(t=>{let{type:n}=t;return"mn"!==n}),[L]),tt=(0,v.useCallback)((t,n)=>{var e;return null===(e=J.current.setMessage)||void 0===e?void 0:e.call(null,t,n)},[]),tn=(0,v.useCallback)((t,n)=>{var e;return null===(e=J.current.setMessageRe)||void 0===e?void 0:e.call(null,t,n)},[]),te=(0,v.useCallback)(t=>tt(E.dnsCSV,t),[tt]),ts=(0,v.useCallback)(t=>tt(E.gateway,t),[tt]),to=(0,v.useCallback)(t=>{let n,{fn:e="every",ip:s="",mask:o="",isNegateMatch:u="every"===e,onMatch:i,onMiss:c,skipUUID:r}=t,a="every"===e,match=(t,n)=>{let{b:e,bIP:s=""}=n;return t.contains(null!=e?e:s)||void 0!==e&&e.contains(t)};try{n=new B.Netmask("".concat(s,"/").concat(o))}catch(t){}return L[e](t=>{var e,o;let{inputUUID:l,ipAddressInputRef:d,subnetMaskInputRef:f}=t;if(l===r)return a;let C=null==d?void 0:null===(e=d.current.getValue)||void 0===e?void 0:e.call(null),v=null==f?void 0:null===(o=f.current.getValue)||void 0===o?void 0:o.call(null),p=!1;try{let t=new B.Netmask("".concat(C,"/").concat(v));p=match(t,{b:n,bIP:s})}catch(t){}return p?null==i||i.call(null,t):null==c||c.call(null,t),u?!p:p})},[L]),tu=(0,v.useCallback)(t=>{tt("api",t)},[tt]),ti=(0,v.useMemo)(()=>{let t={[E.dnsCSV]:{defaults:{getValue:()=>{var t;return null===(t=W.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{te()}},tests:[{onFailure:()=>{te({children:"Domain name servers should be a comma-separated list of IPv4 addresses without trailing comma(s)."})},test:t=>{let{value:n}=t;return w.ah.test(n)}},{test:U.HJ}]},[E.gateway]:{defaults:{getValue:()=>{var t;return null===(t=$.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{ts()}},tests:[{onFailure:()=>{ts({children:"Gateway should be a valid IPv4 address."})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t,e=!0,s=to({fn:"some",ip:n,onMatch:t=>{let{ipAddress:s,name:o,type:u,typeCount:i}=t;if(n===s){e=!1,ts({children:"Gateway cannot be the same as IP address in ".concat(o,".")});return}H("".concat(u).concat(i))}});return s||ts({children:"Gateway must be in one network's subnet."}),s&&e}},{test:U.HJ}]}};return L.forEach(n=>{var e,s;let{inputUUID:o,interfaces:u,ipAddressInputRef:i,name:c,subnetMaskInputRef:r}=n,a=createInputTestPrefix(o),l=E.networkInterfaces(a),d=E.networkIPAddress(a),f=E.networkSubnetMask(a),setNetworkIfacesInputMessage=t=>tt(l,t),setNetworkIPAddressInputMessage=t=>tt(d,t),setNetworkSubnetMaskInputMessage=t=>tt(f,t),setNetworkSubnetConflictInputMessage=(t,n,e)=>{var s;let o="".concat(E.networkSubnetConflict(a),"-").concat(n),u="".concat(E.networkSubnetConflict(createInputTestPrefix(n)),"-").concat(t);tt((null===(s=J.current.exists)||void 0===s?void 0:s.call(null,u))?u:o,e)},testNetworkSubnetConflictWithDefaults=t=>{let{ip:n=null==i?void 0:null===(e=i.current.getValue)||void 0===e?void 0:e.call(null),mask:u=null==r?void 0:null===(s=r.current.getValue)||void 0===s?void 0:s.call(null)}=t;return to({ip:n,mask:u,onMatch:t=>{let{inputUUID:n,name:e}=t;setNetworkSubnetConflictInputMessage(o,n,{children:'"'.concat(c,'" and "').concat(e,'" cannot be in the same subnet.')})},onMiss:t=>{let{inputUUID:n}=t;setNetworkSubnetConflictInputMessage(o,n)},skipUUID:o})};t[l]={defaults:{getCompare:()=>u.map(t=>void 0!==t),onSuccess:()=>{setNetworkIfacesInputMessage()}},tests:[{onFailure:()=>{setNetworkIfacesInputMessage({children:"".concat(c," must have at least 1 interface.")})},test:t=>{let{compare:n}=t;return n.some(t=>t)}},{onFailure:()=>{setNetworkIfacesInputMessage({children:"".concat(c," must have a Link 1 interface.")})},test:t=>{let{compare:[n,e]}=t;return!(e&&!n)}}]},t[d]={defaults:{getValue:()=>{var t;return null==i?void 0:null===(t=i.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{setNetworkIPAddressInputMessage()}},tests:[{onFailure:()=>{setNetworkIPAddressInputMessage({children:"IP address in ".concat(c," must be a valid IPv4 address.")})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t;return testNetworkSubnetConflictWithDefaults({ip:n})}},{test:U.HJ}]},t[E.networkName(a)]={defaults:{value:c},tests:[{test:U.HJ}]},t[f]={defaults:{getValue:()=>{var t;return null==r?void 0:null===(t=r.current.getValue)||void 0===t?void 0:t.call(null)},onSuccess:()=>{setNetworkSubnetMaskInputMessage()}},tests:[{onFailure:()=>{setNetworkSubnetMaskInputMessage({children:"Subnet mask in ".concat(c," must be a valid IPv4 address.")})},test:t=>{let{value:n}=t;return w.tf.test(n)}},{test:t=>{let{value:n}=t;return testNetworkSubnetConflictWithDefaults({mask:n})}},{test:U.HJ}]}}),t},[L,te,ts,tt,to]),tc=(0,v.useMemo)(()=>(0,U.LT)(ti),[ti]),tr=(0,v.useCallback)(t=>{null==l||l.call(null,tc({isIgnoreOnCallbacks:!0,isTestAll:!0,...t}))},[tc,l]),ta=(0,v.useCallback)(()=>{_(void 0)},[]),tl=(0,v.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L.unshift(createNetworkInput(t)),null==l||l.call(null,!1),T([...L])},[L,l]),td=(0,v.useCallback)(t=>{let[{inputUUID:n,interfaces:e}]=L.splice(t,1);e.forEach(t=>{if(void 0===t)return;let{networkInterfaceUUID:n}=t;D[n].isApplied=!1}),tr({excludeTestIdsRe:RegExp(n)}),T([...L]),R(t=>({...t}))},[L,D,tr]),tf=(0,v.useCallback)(function(t){let{inputs:n=L,lastIndex:e=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=0;for(let o=n.length-1;o>=e;o-=1)n[o].type===t&&(s+=1);return s},[L]),tC=(0,v.useMemo)(()=>{if(void 0===O)return;let{networkInterfaceUUID:t}=O;return(n,e)=>()=>{var s;let{networkInterfaceUUID:o}=null!==(s=n[e])&&void 0!==s?s:{};o&&o!==t&&(D[o].isApplied=!1),n[e]=O,D[t].isApplied=!0}},[O,D]),tB=(0,v.useMemo)(()=>O?{cursor:"grabbing",userSelect:"none"}:{},[O]),tv=(0,v.useMemo)(()=>{if(void 0===O)return(0,s.jsx)(s.Fragment,{});let{x:t,y:n}=I;return(0,s.jsx)(BriefNetworkInterface,{isFloating:!0,networkInterface:O,sx:{left:"calc(".concat(t,"px + .4em)"),position:"absolute",top:"calc(".concat(n,"px - 1.6em)"),zIndex:20}})},[I,O]),tp=(0,v.useMemo)(()=>O?()=>{ta()}:void 0,[ta,O]),tk=(0,v.useMemo)(()=>O?t=>{let{currentTarget:n,nativeEvent:{clientX:e,clientY:s}}=t,{left:o,top:u}=n.getBoundingClientRect();M({x:e-o,y:s-u})}:void 0,[O]),tm=(0,v.useMemo)(()=>O?()=>{ta()}:void 0,[ta,O]);(0,v.useEffect)(()=>{if([Object.keys(D).length>0,u,i,G.current,W.current,$.current].every(t=>!!t)){var t,n;G.current=!1;let{dns:e,gateway:s,gatewayInterface:o,networks:u}=i;if([e,s,o,u].some(t=>!t))return;null===(t=W.current.setValue)||void 0===t||t.call(null,e),null===(n=$.current.setValue)||void 0===n||n.call(null,s);let c=[],r=Object.values(u).reduce((t,n)=>{var e,s;let{ip:o,link1Uuid:u,link2Uuid:i="",subnetMask:r,type:a}=n,l=tf(a,{inputs:t})+1,d=b[a]===l,f="".concat(g.default[a]," ").concat(l);return c.push(u,i),t.push({inputUUID:(0,p.Z)(),interfaces:[null===(e=D[u])||void 0===e?void 0:e.metadata,null===(s=D[i])||void 0===s?void 0:s.metadata],ipAddress:o,isRequired:d,name:f,subnetMask:r,type:a,typeCount:l}),t},[]);H(o),R(t=>{let n={...t};return c.forEach(t=>{n[t]&&(n[t].isApplied=!0)}),n}),T(r),tr()}},[u,tf,i,D,b,tr]),(0,v.useEffect)(()=>((0,A.Z)(1,tu),window&&window.addEventListener("beforeunload",()=>{let t=new XMLHttpRequest;t.open("PUT","".concat(k.Z,"/init/set-map-network"),!1),t.send(null)},{once:!0}),()=>{(0,A.Z)(0,tu)}),[tu]),(0,v.useImperativeHandle)(n,()=>({...J.current,get:()=>{var t,n;return{dns:null===(t=W.current.getValue)||void 0===t?void 0:t.call(null),gateway:null===(n=$.current.getValue)||void 0===n?void 0:n.call(null),gatewayInterface:q,networks:L.map(t=>{var n,e,s,o;let{inputUUID:u,interfaces:i,ipAddressInputRef:c,name:r,subnetMaskInputRef:a,type:l,typeCount:d}=t;return{inputUUID:u,interfaces:i,ipAddress:null!==(s=null==c?void 0:null===(n=c.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==s?s:"",name:r,subnetMask:null!==(o=null==a?void 0:null===(e=a.current.getValue)||void 0===e?void 0:e.call(null))&&void 0!==o?o:"",type:l,typeCount:d}})}}}),[q,L]);let tg="13em";return K?(0,s.jsx)(V.Z,{}):(0,s.jsxs)(o.Z,{onMouseDown:t=>{let{clientX:n,clientY:e,currentTarget:s}=t,{left:o,top:u}=s.getBoundingClientRect();M({x:n-o,y:e-u})},onMouseLeave:tp,onMouseMove:tk,onMouseUp:tm,sx:{position:"relative",...tB},children:[tv,(0,s.jsxs)(o.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child, :nth-child(3))":{marginTop:"1em"}},children:[(0,s.jsx)(f._,{autoHeight:!0,columns:createNetworkInterfaceTableColumns(t=>{_(t)},D),componentsProps:{row:{onMouseDown:t=>{let{target:{parentElement:{dataset:{id:n}={}}={}}={}}=t;if(n){let{isApplied:t,metadata:e}=D[n];t||_(e)}}}},disableColumnMenu:!0,disableSelectionOnClick:!0,getRowClassName:t=>{var n;let{row:{networkInterfaceUUID:e}}=t,{isApplied:s}=null!==(n=D[e])&&void 0!==n&&n,o="";return s||(o+=" ".concat(F.ifaceNotApplied)),o},getRowId:t=>{let{networkInterfaceUUID:n}=t;return n},hideFooter:!0,initialState:{sorting:{sortModel:[{field:"networkInterfaceName",sort:"asc"}]}},rows:z,sx:{color:m.s7,["& .".concat(c.iconButtonClasses.root)]:{color:"inherit"},["& .".concat(C._.cell,":focus")]:{outline:"none"},["& .".concat(C._.row,".").concat(F.ifaceNotApplied,":hover")]:{cursor:"grab",["& .".concat(C._.cell," p")]:{cursor:"auto"}}}}),!Q&&(0,s.jsx)(N.Z,{row:!0,sx:{"& > :first-child":{alignSelf:"start",marginTop:".7em"},"& > :last-child":{flexGrow:1}},children:(0,s.jsx)(o.Z,{sx:{alignItems:"strech",display:"flex",flexDirection:"row",overflowX:"auto",paddingLeft:".3em","& > div":{marginBottom:".8em",marginTop:".4em",minWidth:tg,width:"25%"},"& > :not(:first-child)":{marginLeft:"1em"}},children:L.map((t,n)=>{let{inputUUID:o}=t;return(0,s.jsx)(NetworkForm,{allowMigrationNetwork:Y,createDropMouseUpHandler:tC,getNetworkTypeCount:tf,hostDetail:{hostType:e,sequence:h},networkIndex:n,networkInput:t,networkInterfaceCount:z.length,networkInterfaceInputMap:D,removeNetwork:td,setMessageRe:tn,setNetworkInputs:T,setNetworkInterfaceInputMap:R,testInput:tc,testInputToToggleSubmitDisabled:tr},"network-".concat(o))})})}),(0,s.jsxs)(N.Z,{sm:"row",sx:{marginTop:".2em","& > :not(button)":{minWidth:tg,width:{sm:"25%"}}},children:[(0,s.jsx)(y.Z,{disabled:X,onClick:()=>{tl()},children:(0,s.jsx)(r.Z,{})}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-init-gateway",inputProps:{onBlur:t=>{let{target:{value:n}}=t;tc({inputs:{[E.gateway]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},onChange:t=>{let{target:{value:n}}=t;tr({inputs:{[E.gateway]:{value:n}}}),ts()},label:"Gateway"}),ref:$}),(0,s.jsx)(j.Z,{input:(0,s.jsx)(Z.Z,{id:"network-init-dns-csv",inputProps:{onBlur:t=>{let{target:{value:n}}=t;tc({inputs:{[E.dnsCSV]:{value:n}}})}},inputLabelProps:{isNotifyRequired:!0},onChange:t=>{let{target:{value:n}}=t;tr({inputs:{[E.dnsCSV]:{value:n}}}),te()},label:"Domain name server(s)"}),ref:W})]}),(0,s.jsx)(S.Z,{count:1,defaultMessageType:"warning",ref:J})]})]})});_.defaultProps={expectHostDetail:!1,hostDetail:void 0,hostSequence:void 0,toggleSubmitDisabled:void 0},_.displayName="NetworkInitForm";var q=_},5813:function(t,n){"use strict";n.default={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},10406:function(t,n,e){"use strict";var s=e(85893),o=e(67645),u=e(41247);n.Z=(t,n)=>{o.Z.put("/init/set-map-network",{value:t}).catch(e=>{let o=(0,u.Z)(e);o.children=(0,s.jsxs)(s.Fragment,{children:["Failed to ",t?"enable":"disable"," network mapping."," ",o.children]}),null==n||n.call(null,o)})}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/380-0eff6addb79bd61f.js b/striker-ui/out/_next/static/chunks/380-0eff6addb79bd61f.js deleted file mode 100644 index 3e4b1bda..00000000 --- a/striker-ui/out/_next/static/chunks/380-0eff6addb79bd61f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[380],{15079:function(e,t,l){var n=l(85893),r=l(97212),a=l(78462),u=l(5616),o=l(48403),s=l.n(o),c=l(55238),i=l(84154);let capEntryLabel=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2"),l=t.toLowerCase();return s()(l)},renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,n.jsx)(i.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:l}=e;return/passw/i.test(l)?(0,n.jsx)(i.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:l,getEntryLabel:u,getListProps:o,getListItemProps:s,listKey:c,maxDepth:i,renderEntry:d,renderEntryValue:h}=e,g=[];Object.entries(l).forEach(e=>{let[l,a]=e,o="form-summary-entry-".concat(l),c=null!==a&&"object"==typeof a,v=c?null:a;g.push((0,n.jsx)(r.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==s?void 0:s.call(null,{depth:t,entry:v,key:l}),children:d({depth:t,entry:v,getLabel:u,key:l,nest:c,renderValue:h})},o)),c&&t{let{entries:t,getEntryLabel:l=e=>{let{cap:t,key:l}=e;return t(l)},getListProps:r,getListItemProps:a,hasPassword:o,maxDepth:s=3,renderEntry:d=e=>{let{depth:t,entry:l,getLabel:r,key:a,nest:o,renderValue:s}=e;return(0,n.jsxs)(c.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(i.Ac,{children:r({cap:capEntryLabel,depth:t,entry:l,key:a})}),(0,n.jsx)(u.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!o&&s({depth:t,entry:l,key:a})})]})},renderEntryValue:h=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,n.jsx)(i.Ac,{children:"none"}):o?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)}}=e;return buildEntryList({entries:t,getEntryLabel:l,getListProps:r,getListItemProps:a,maxDepth:s,renderEntry:d,renderEntryValue:h})}},21642:function(e,t,l){var n=l(85893),r=l(67294),a=l(68917);let u={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},o=(0,r.forwardRef)((e,t)=>{let{count:l=u.count,defaultMessageType:o=u.defaultMessageType,messages:s,onSet:c,usePlaceholder:i=u.usePlaceholder}=e,[d,h]=(0,r.useState)({}),g=(0,r.useMemo)(()=>({...s,...d}),[s,d]),v=(0,r.useCallback)(e=>void 0!==g[e],[g]),f=(0,r.useCallback)((e,t)=>{let l=0;h(n=>{let{[e]:r,...a}=n;return t&&(a[e]=t),l=Object.keys(a).length,a}),null==c||c.call(null,l)},[c]),p=(0,r.useCallback)((e,t)=>{let l=0,n=t?(e,n)=>{e[n]=t,l+=1}:void 0;h(t=>{let r={};return Object.keys(t).forEach(a=>{e.test(a)?null==n||n.call(null,r,a):(r[a]=t[a],l+=1)}),r}),null==c||c.call(null,l)},[c]),b=(0,r.useMemo)(()=>{let e=Object.entries(g),t=l>0,r=t?l:e.length,u=[];if(e.every(e=>{let[t,l]=e,{children:s,type:c=o}=l;return u.push((0,n.jsx)(a.Z,{type:c,children:s},"message-".concat(t))),u.length({exists:v,setMessage:f,setMessageRe:p}),[v,f,p]),(0,n.jsx)(n.Fragment,{children:b})});o.defaultProps=u,o.displayName="MessageGroup",t.Z=o},88468:function(e,t,l){var n=l(67294),r=l(94121),a=l(591);let u=(0,n.forwardRef)((e,t)=>{let{input:l,onChange:u=function(e){let{handlers:{base:t,origin:l}}=e;for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a{let{type:e}=c,t="value",l="string";return e===r.Z.checkbox&&(t="checked",l="boolean"),{valueKey:t,valueType:l}},[c]),{onChange:h,[i]:g,...v}=c,[f,p]=(0,n.useState)(g),b=(0,n.useCallback)(e=>{let{target:{[i]:t}}=e,l=a.Z[d](t);p(l)},[i,d]),y=(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),l=0;l(null==o||o.call(null),s),[]),(0,n.useImperativeHandle)(t,()=>({get:()=>f,set:p}),[f]),(0,n.cloneElement)(l,{...v,onChange:y,[i]:f})});u.displayName="UncontrolledInput",t.Z=u},6903:function(e,t,l){var n=l(67294),r=l(67645),a=l(41247);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{config:t,onError:l,onData:u,url:o=""}=e,[s,c]=(0,n.useState)(!1),i=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,s="".concat(o).concat(e);s&&(c(!0),r.Z.get(s,{...t,...n}).then(e=>{let{data:t}=e;null==u||u.call(null,t)}).catch(e=>{let t=(0,a.Z)(e);null==l||l.call(null,t)}).finally(()=>{c(!1)}))},[o,t,u,l]);return{fetch:i,loading:s}}},32576:function(e,t,l){var n=l(85893),r=l(67294),a=l(84070),u=l(15079);t.Z=e=>{let{list:t={}}=e,[l,o]=(0,r.useState)({}),s=(0,r.useMemo)(()=>Object.keys(t),[t]),c=(0,r.useMemo)(()=>Object.keys(l),[l]),i=(0,r.useMemo)(()=>c.length===s.length,[c.length,s.length]),d=(0,r.useMemo)(()=>c.length>0,[c.length]),h=(0,r.useMemo)(()=>s.length>1,[s.length]),g=(0,r.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:r={},getConfirmDialogTitle:a,onProceedAppend:o,renderEntry:s}=e;return{actionProceedText:"Delete",content:(0,n.jsx)(u.Z,{entries:l,maxDepth:0,renderEntry:s,...r}),onProceedAppend:o,proceedColour:"red",titleText:a(c.length),...t}},[l,c.length]),v=(0,r.useCallback)(e=>!!l[e],[l]),f=(0,r.useCallback)(()=>o({}),[]),p=(0,r.useCallback)(e=>o(s.reduce((t,l)=>(e&&(t[l]=e),t),{})),[s]),b=(0,r.useCallback)((e,t)=>o((0,a.ZP)(e,t||void 0)),[]);return{buildDeleteDialogProps:g,checklist:l,checks:c,getCheck:v,hasAllChecks:i,hasChecks:d,multipleItems:h,resetChecks:f,setAllChecks:p,setCheck:b}}},67978:function(e,t,l){var n=l(67294),r=l(8100),a=l(98436),u=l(96262);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:l=a.Z,fetcher:o=u.Z,mod:s,...c}=t,{data:i,error:d}=(0,r.ZP)("".concat(l).concat(e),o,c),h=(0,n.useMemo)(()=>s&&i&&s(i),[i,s]),g=!d&&!i;return{altData:h,data:i,error:d,loading:g}}},48882:function(e,t,l){l.d(t,{Z:function(){return api_converters_toAnvilOverviewList}});var api_converters_toAnvilOverviewHostList=e=>e.reduce((e,t)=>{let{hostName:l,hostType:n,hostUUID:r}=t;return e[r]={name:l,type:n,uuid:r},e},{}),api_converters_toAnvilOverviewList=e=>e.reduce((e,t)=>{let{anvilDescription:l,anvilName:n,anvilUUID:r,hosts:a}=t;return e[r]={description:l,hosts:api_converters_toAnvilOverviewHostList(a),name:n,uuid:r},e},{})},84070:function(e,t,l){l.d(t,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,t=Array(e),l=0;l2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let r={};return Object.keys(n).forEach(a=>{e.test(a)?l(n,r,a,t):r[a]=n[a]}),r}};t.ZP=function(e,t){let{guard:l=()=>!0,set:n=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let{[e]:a,...u}=r,o={...u};return l(r,e,t)&&n(r,o,e,t),o}}},78438:function(e,t){t.Z=(e,t)=>e&&Object.keys(e).reduce((e,l)=>({...e,[l]:t}),{})},591:function(e,t){t.Z={boolean:e=>!!e,number:e=>parseInt(String(e),10)||0,string:e=>String(e)}},43799:function(e,t,l){var n=l(48403),r=l.n(n);let getFormikErrorMessages=function(e){let{build:t=(e,t)=>{let l=t;return"string"==typeof l&&(l=r()(l.replace(/^[^\s]+\.([^.]+)/,"$1"))),{children:l,type:"warning"}},chain:l="",skip:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(e).reduce((e,r)=>{let[a,u]=r,o=[l,a].filter(e=>!!e).join(".");return null!==u&&"object"==typeof u?{...e,...getFormikErrorMessages(u,{build:t,chain:o,skip:n})}:((null==n?void 0:n.call(null,o))||(e[o]=t(o,u)),e)},{})};t.Z=getFormikErrorMessages}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/486-1480d7483e28c6f3.js b/striker-ui/out/_next/static/chunks/486-45903b907cd7ece3.js similarity index 99% rename from striker-ui/out/_next/static/chunks/486-1480d7483e28c6f3.js rename to striker-ui/out/_next/static/chunks/486-45903b907cd7ece3.js index 81012c40..ece66165 100644 --- a/striker-ui/out/_next/static/chunks/486-1480d7483e28c6f3.js +++ b/striker-ui/out/_next/static/chunks/486-45903b907cd7ece3.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[486],{53457:function(t,r,n){"use strict";n.d(r,{Z:function(){return x}});var e=n(63366),o=n(87462),i=n(67294),a=n(63961),c=n(94780),u=n(90948),f=n(71657),b=n(1588),s=n(34867);function getFormGroupUtilityClass(t){return(0,s.Z)("MuiFormGroup",t)}(0,b.Z)("MuiFormGroup",["root","row","error"]);var l=n(74423),v=n(15704),p=n(85893);let y=["className","row"],useUtilityClasses=t=>{let{classes:r,row:n,error:e}=t;return(0,c.Z)({root:["root",n&&"row",e&&"error"]},getFormGroupUtilityClass,r)},d=(0,u.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:n}=t;return[r.root,n.row&&r.row]}})(({ownerState:t})=>(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})),j=i.forwardRef(function(t,r){let n=(0,f.Z)({props:t,name:"MuiFormGroup"}),{className:i,row:c=!1}=n,u=(0,e.Z)(n,y),b=(0,l.Z)(),s=(0,v.Z)({props:n,muiFormControl:b,states:["error"]}),j=(0,o.Z)({},n,{row:c,error:s.error}),x=useUtilityClasses(j);return(0,p.jsx)(d,(0,o.Z)({className:(0,a.Z)(x.root,i),ownerState:j,ref:r},u))});var x=j},54490:function(t,r,n){"use strict";n.d(r,{_d:function(){return formatDataSizeToString},gO:function(){return formatDataSize}});var e={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":0x6f05b59d3b200000n,"b-ZB":0x1b1ae4d6e2ef5000000n,"b-YB":0x69e10de76676d08000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":0x8000000000000000n,"b-ZiB":0x2000000000000000000n,"b-YiB":0x800000000000000000000n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":0xde0b6b3a7640000n,"b-Zbit":0x3635c9adc5dea00000n,"b-Ybit":0xd3c21bcecceda1000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":0x1000000000000000n,"b-Zibit":0x400000000000000000n,"b-Yibit":0x100000000000000000000n},o=["byte","ibyte","bit","ibit"],i=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],p10n=function(t){return BigInt(Math.pow(10,t))},convert=function(t,r){var n=t.precision,o=t.value,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.isReverse;if("b"===r)return{precision:n,value:o};var c=e["b-".concat(r)];if(a)return{precision:n,value:o*c};var u=String(c).length,f=o*p10n(u)/c;return{precision:n+u,value:f}},getDataSizeUnitSectionFromUnit=function(t,r){var n="i"===t[1],e=/B$/.test(t),o="".concat(n?"i":"").concat(e?"byte":"bit"),i=r.findIndex(function(t){return t===o});return{section:o,index:i}},findClosestDataSizeUnit=function(t,r,n,e,o,i,a){var c=i.indexOf(n),u=r;c<0&&(c=getDataSizeUnitSectionFromUnit(r,i).index);for(var f=c*a,b=f+a;f=e["b-".concat(s)]?u=s:f=b}return u};function ownKeys(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,e)}return n}function _objectSpread2(t){for(var r=1;rt.length)&&(r=t.length);for(var n=0,e=Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},o=e.bigintFormatOptions,i=e.numberFormatOptions,a=e.locale,c=p10n(r),u=n/c,f=n%c,b=_slicedToArray("0.",2),s=b[0],l=b[1],v=u.toString(),p=f.toString();if(a){var y="string"==typeof a?a:void 0,d=_slicedToArray(.1.toLocaleString(y,i),2);s=d[0],l=d[1],v=u.toLocaleString(y,o),p=f.toLocaleString(y,_objectSpread2(_objectSpread2({},o),{},{useGrouping:!1}))}var j=v;return r>0&&(j+="".concat(l).concat(p.padStart(r,s))),j},formatDataSize=function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.fromUnit,o=void 0===e?"B":e,i=n.locale,a=n.precision,c=n.toUnit;try{r=sanitizeInputValue(t)}catch(t){return}var u=sanitizePrecision(a),f=u.max,b=u.min,s=sanitizeDataSizeUnit(o,"B").unit,l=selectDataSizeUnit(r=convert(r,s,{isReverse:!0}),s,{toUnit:c});return{value:format(r=trimEnd(r=round(r=convert(r,l),{toPrecision:Math.max(b,Math.min(r.precision,f))}),b),{locale:i}),unit:l}},formatDataSizeToString=function(){var t=formatDataSize.apply(void 0,arguments);return t?"".concat(t.value," ").concat(t.unit):t},round=function(t){var r=t.precision,n=t.value,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.toPrecision,i=void 0===o?0:o,a={precision:i,value:n};if(i>r)a.value*=p10n(i-r);else if(i4&&(a.value+=1n)}return a},sanitizeDataSizeUnit=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,e=n.indexOf(t);return e<0?{unit:r,unitIndex:0}:{unit:n[e],unitIndex:e}},sanitizeInputValue=function(t){var r,n,e=String(t).split(/\D/,2),o=null!==(r=null===(n=e[1])||void 0===n?void 0:n.length)&&void 0!==r?r:0,i=e.join("");if(0===i.length)throw Error("Value is blank.");return{value:BigInt(i),precision:o}},sanitizePrecision=function(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"==typeof n?{max:n,min:n}:{max:null!==(t=n.max)&&void 0!==t?t:2,min:null!==(r=n.min)&&void 0!==r?r:0}},selectDataSizeUnit=function(t,r){var n=t.precision,a=t.value,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=c.conversionTable,f=void 0===u?e:u,b=c.toUnit,s=c.units,l=void 0===s?i:s,v=c.unitSections,p=void 0===v?o:v,y=c.unitSectionLength,d=void 0===y?9:y,j=l.indexOf(b);return j>=0?l[j]:findClosestDataSizeUnit(a/p10n(n),r,b,f,l,p,d)},trimEnd=function(t,r){for(var n=t.precision,e={precision:n,value:t.value},o=n-r,i=!0,a=1;i&&a<=o;a+=1)0n===e.value%10n?(e.value/=10n,e.precision-=1):i=!1;return e}},77412:function(t){t.exports=function(t,r){for(var n=-1,e=null==t?0:t.length;++n{let{classes:r,row:n,error:e}=t;return(0,c.Z)({root:["root",n&&"row",e&&"error"]},getFormGroupUtilityClass,r)},d=(0,u.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,r)=>{let{ownerState:n}=t;return[r.root,n.row&&r.row]}})(({ownerState:t})=>(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})),j=i.forwardRef(function(t,r){let n=(0,f.Z)({props:t,name:"MuiFormGroup"}),{className:i,row:c=!1}=n,u=(0,e.Z)(n,y),b=(0,l.Z)(),s=(0,v.Z)({props:n,muiFormControl:b,states:["error"]}),j=(0,o.Z)({},n,{row:c,error:s.error}),x=useUtilityClasses(j);return(0,p.jsx)(d,(0,o.Z)({className:(0,a.Z)(x.root,i),ownerState:j,ref:r},u))});var x=j},54490:function(t,r,n){"use strict";n.d(r,{_d:function(){return formatDataSizeToString},gO:function(){return formatDataSize}});var e={"b-B":8n,"b-kB":8000n,"b-MB":8000000n,"b-GB":8000000000n,"b-TB":8000000000000n,"b-PB":8000000000000000n,"b-EB":0x6f05b59d3b200000n,"b-ZB":0x1b1ae4d6e2ef5000000n,"b-YB":0x69e10de76676d08000000n,"b-KiB":8192n,"b-MiB":8388608n,"b-GiB":8589934592n,"b-TiB":8796093022208n,"b-PiB":9007199254740992n,"b-EiB":0x8000000000000000n,"b-ZiB":0x2000000000000000000n,"b-YiB":0x800000000000000000000n,"b-b":1n,"b-kbit":1000n,"b-Mbit":1000000n,"b-Gbit":1000000000n,"b-Tbit":1000000000000n,"b-Pbit":1000000000000000n,"b-Ebit":0xde0b6b3a7640000n,"b-Zbit":0x3635c9adc5dea00000n,"b-Ybit":0xd3c21bcecceda1000000n,"b-Kibit":1024n,"b-Mibit":1048576n,"b-Gibit":1073741824n,"b-Tibit":1099511627776n,"b-Pibit":1125899906842624n,"b-Eibit":0x1000000000000000n,"b-Zibit":0x400000000000000000n,"b-Yibit":0x100000000000000000000n},o=["byte","ibyte","bit","ibit"],i=["B","kB","MB","GB","TB","PB","EB","ZB","YB","B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB","b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit","b","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],p10n=function(t){return BigInt(Math.pow(10,t))},convert=function(t,r){var n=t.precision,o=t.value,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.isReverse;if("b"===r)return{precision:n,value:o};var c=e["b-".concat(r)];if(a)return{precision:n,value:o*c};var u=String(c).length,f=o*p10n(u)/c;return{precision:n+u,value:f}},getDataSizeUnitSectionFromUnit=function(t,r){var n="i"===t[1],e=/B$/.test(t),o="".concat(n?"i":"").concat(e?"byte":"bit"),i=r.findIndex(function(t){return t===o});return{section:o,index:i}},findClosestDataSizeUnit=function(t,r,n,e,o,i,a){var c=i.indexOf(n),u=r;c<0&&(c=getDataSizeUnitSectionFromUnit(r,i).index);for(var f=c*a,b=f+a;f=e["b-".concat(s)]?u=s:f=b}return u};function ownKeys(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,e)}return n}function _objectSpread2(t){for(var r=1;rt.length)&&(r=t.length);for(var n=0,e=Array(r);n1&&void 0!==arguments[1]?arguments[1]:{},o=e.bigintFormatOptions,i=e.numberFormatOptions,a=e.locale,c=p10n(r),u=n/c,f=n%c,b=_slicedToArray("0.",2),s=b[0],l=b[1],v=u.toString(),p=f.toString();if(a){var y="string"==typeof a?a:void 0,d=_slicedToArray(.1.toLocaleString(y,i),2);s=d[0],l=d[1],v=u.toLocaleString(y,o),p=f.toLocaleString(y,_objectSpread2(_objectSpread2({},o),{},{useGrouping:!1}))}var j=v;return r>0&&(j+="".concat(l).concat(p.padStart(r,s))),j},formatDataSize=function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.fromUnit,o=void 0===e?"B":e,i=n.locale,a=n.precision,c=n.toUnit;try{r=sanitizeInputValue(t)}catch(t){return}var u=sanitizePrecision(a),f=u.max,b=u.min,s=sanitizeDataSizeUnit(o,"B").unit,l=selectDataSizeUnit(r=convert(r,s,{isReverse:!0}),s,{toUnit:c});return{value:format(r=trimEnd(r=round(r=convert(r,l),{toPrecision:Math.max(b,Math.min(r.precision,f))}),b),{locale:i}),unit:l}},formatDataSizeToString=function(){var t=formatDataSize.apply(void 0,arguments);return t?"".concat(t.value," ").concat(t.unit):t},round=function(t){var r=t.precision,n=t.value,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.toPrecision,i=void 0===o?0:o,a={precision:i,value:n};if(i>r)a.value*=p10n(i-r);else if(i4&&(a.value+=1n)}return a},sanitizeDataSizeUnit=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,e=n.indexOf(t);return e<0?{unit:r,unitIndex:0}:{unit:n[e],unitIndex:e}},sanitizeInputValue=function(t){var r,n,e=String(t).split(/\D/,2),o=null!==(r=null===(n=e[1])||void 0===n?void 0:n.length)&&void 0!==r?r:0,i=e.join("");if(0===i.length)throw Error("Value is blank.");return{value:BigInt(i),precision:o}},sanitizePrecision=function(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"==typeof n?{max:n,min:n}:{max:null!==(t=n.max)&&void 0!==t?t:2,min:null!==(r=n.min)&&void 0!==r?r:0}},selectDataSizeUnit=function(t,r){var n=t.precision,a=t.value,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=c.conversionTable,f=void 0===u?e:u,b=c.toUnit,s=c.units,l=void 0===s?i:s,v=c.unitSections,p=void 0===v?o:v,y=c.unitSectionLength,d=void 0===y?9:y,j=l.indexOf(b);return j>=0?l[j]:findClosestDataSizeUnit(a/p10n(n),r,b,f,l,p,d)},trimEnd=function(t,r){for(var n=t.precision,e={precision:n,value:t.value},o=n-r,i=!0,a=1;i&&a<=o;a+=1)0n===e.value%10n?(e.value/=10n,e.precision-=1):i=!1;return e}},77412:function(t){t.exports=function(t,r){for(var n=-1,e=null==t?0:t.length;++n0&&void 0!==arguments[0]?arguments[0]:{};return r=>{let{target:{[u]:a}}=r,i=s.Z[l](a);null==t||t.call(null,r),null==n||n.call(null,i),null==e||e.call(null,r)}},a=n(50233);let i="input",o={boolean:!1,number:0,string:""},c={createInputOnChangeHandlerOptions:{},debounceWait:500,required:!1,valueType:"string"},d=(0,r.forwardRef)((e,t)=>{let{debounceWait:n=c.debounceWait,input:l,inputTestBatch:s,onBlurAppend:d,onFirstRender:h,onFocusAppend:g,onUnmount:p,required:f=c.required,valueKey:b,valueType:v=c.valueType,createInputOnChangeHandlerOptions:{postSet:_,valueKey:m=b,...y}=c.createInputOnChangeHandlerOptions}=e,{props:x}=l,k=(0,r.useMemo)(()=>null!=m?m:"checked"in x?"checked":"value",[x,m]),{onBlur:I,onChange:C,onFocus:S,[k]:T=o[v],...j}=x,[O,F]=(0,r.useState)(T),[B,N]=(0,r.useState)(!1),[E,M]=(0,r.useState)(!1),P=(0,r.useCallback)(e=>{F(e)},[]),A=(0,r.useMemo)(()=>{let e;return s&&(s.isRequired=f,e=(0,a.LT)({[i]:s})),e},[s,f]),R=(0,r.useCallback)(e=>{var t;let n=null!==(t=null==A?void 0:A.call(null,{inputs:{[i]:{value:e}},isIgnoreOnCallbacks:!0}))&&void 0!==t&&t;null==h||h.call(null,{isValid:n}),M(n)},[h,A]),w=(0,r.useMemo)(()=>u()(R,n),[n,R]),q=(0,r.useMemo)(()=>null!=I?I:A&&function(){for(var e=arguments.length,t=Array(e),n=0;nlib_createInputOnChangeHandler({postSet:function(){for(var e=arguments.length,t=Array(e),n=0;n{P(e),w(e)},setType:v,valueKey:k,...y}),[w,C,_,y,P,k,v]),Q=(0,r.useMemo)(()=>null!=S?S:s&&function(){for(var e,t,n=arguments.length,l=Array(n),u=0;u(R(O),p),[]),(0,r.useEffect)(()=>{!B&&O!==T&&T&&(R(T),F(T))},[R,T,O,B]),(0,r.useImperativeHandle)(t,()=>({getIsChangedByUser:()=>B,getValue:()=>O,isValid:()=>E,setValue:P}),[O,B,E,P]),(0,r.cloneElement)(l,{...j,onBlur:q,onChange:H,onFocus:Q,required:f,[k]:O})});d.defaultProps=c,d.displayName="InputWithRef";var h=d},21642:function(e,t,n){var l=n(85893),u=n(67294),r=n(68917);let s={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},a=(0,u.forwardRef)((e,t)=>{let{count:n=s.count,defaultMessageType:a=s.defaultMessageType,messages:i,onSet:o,usePlaceholder:c=s.usePlaceholder}=e,[d,h]=(0,u.useState)({}),g=(0,u.useMemo)(()=>({...i,...d}),[i,d]),p=(0,u.useCallback)(e=>void 0!==g[e],[g]),f=(0,u.useCallback)((e,t)=>{let n=0;h(l=>{let{[e]:u,...r}=l;return t&&(r[e]=t),n=Object.keys(r).length,r}),null==o||o.call(null,n)},[o]),b=(0,u.useCallback)((e,t)=>{let n=0,l=t?(e,l)=>{e[l]=t,n+=1}:void 0;h(t=>{let u={};return Object.keys(t).forEach(r=>{e.test(r)?null==l||l.call(null,u,r):(u[r]=t[r],n+=1)}),u}),null==o||o.call(null,n)},[o]),v=(0,u.useMemo)(()=>{let e=Object.entries(g),t=n>0,u=t?n:e.length,s=[];if(e.every(e=>{let[t,n]=e,{children:i,type:o=a}=n;return s.push((0,l.jsx)(r.Z,{type:o,children:i},"message-".concat(t))),s.length({exists:p,setMessage:f,setMessageRe:b}),[p,f,b]),(0,l.jsx)(l.Fragment,{children:v})});a.defaultProps=s,a.displayName="MessageGroup",t.Z=a},591:function(e,t){t.Z={boolean:e=>!!e,number:e=>parseInt(String(e),10)||0,string:e=>String(e)}},65939:function(e,t,n){n.d(t,{FZ:function(){return o},OU:function(){return h},ah:function(){return d},tf:function(){return c}});let l="[a-z0-9]",u="[a-z0-9-]",r="[0-9a-f]",s="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",a="(?:".concat(s,"[.]){3}").concat(s),i="".concat(r,"{8}-(?:").concat(r,"{4}-){3}").concat(r,"{12}"),o=new RegExp("^(?:".concat(l,"(?:").concat(u,"{0,61}").concat(l,")?[.])+").concat(l).concat(u,"{0,61}").concat(l,"$")),c=new RegExp("^".concat(a,"$")),d=new RegExp("^(?:".concat(a,"\\s*,\\s*)*").concat(a,"$")),h=/^[^'"/\\><}{]*$/;RegExp("^".concat(i,"$"),"i")},50233:function(e,t,n){n.d(t,{_:function(){return test_input_buildIPAddressTestBatch},dg:function(){return test_input_buildIpCsvTestBatch},qY:function(){return test_input_buildNumberTestBatch},Gn:function(){return test_input_buildPeacefulStringTestBatch},LT:function(){return test_input_createTestInputFunction},BD:function(){return test_input_testInput},X7:function(){return test_input_testMax},HJ:function(){return test_input_testNotBlank},SQ:function(){return test_input_testRange}});var l=n(85893),u=n(65939),r=n(84154),test_input_testNotBlank=e=>{let{value:t}=e;return!!t&&String(t).length>0},test_input_buildIPAddressTestBatch=function(e,t){let{isRequired:n,onFinishBatch:r,...s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{defaults:{...s,onSuccess:t},isRequired:n,onFinishBatch:r,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u{let{value:t}=e;return u.tf.test(t)}}]}},test_input_buildIpCsvTestBatch=function(e,t){let{isRequired:n,onFinishBatch:r,...s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{defaults:{...s,onSuccess:t},isRequired:n,onFinishBatch:r,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u{let{value:t}=e;return u.ah.test(t)}}]}},test_input_testRange=e=>{let{max:t,min:n,value:l}=e;return!!l&&l>=n&&l<=t},lib_toNumber=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"==typeof e?e:Number[t](String(e))},test_input_buildNumberTestBatch=function(e,t){let{isRequired:n,onFinishBatch:u,...r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=[];return s?o.push({onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u{let{value:t}=e;return Number.isSafeInteger(lib_toNumber(t))}}):a&&o.push({onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u{let{value:t}=e;return Number.isFinite(lib_toNumber(t,"parseFloat"))}}),i&&o.push({onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...a,onSuccess:t},isRequired:n,onFinishBatch:s,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var t=arguments.length,n=Array(t),u=0;u"}),"), curly brackets (",(0,l.jsx)(r.Q0,{inheritColour:!0,text:"{}"}),")."]}),...n)},test:e=>{let{value:t}=e;return u.OU.test(t)}}]}};let cbEmptySetter=()=>({}),cbSetter=e=>{let{onFailure:t,onSuccess:n}=e;return{cbFailure:t,cbSuccess:n}},evalIsIgnoreOnCallbacks=e=>{let{isIgnoreOnCallbacks:t,onFinishBatch:n}=e;return t?{setTestCallbacks:cbEmptySetter}:{cbFinishBatch:n,setTestCallbacks:cbSetter}},nullishSet=(e,t)=>null!=e?e:t,orSet=(e,t)=>e||t;var test_input_testInput=function(){let{excludeTestIds:e=[],excludeTestIdsRe:t,inputs:n={},isContinueOnFailure:l,isIgnoreOnCallbacks:u,isTestAll:r=0===Object.keys(n).length,tests:s={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=[...e],i={},o=!0;return r&&Object.keys(s).forEach(e=>{i[e]={}}),i={...i,...n},t&&Object.keys(i).forEach(e=>{t.test(e)&&a.push(e)}),a.forEach(e=>{delete i[e]}),Object.keys(i).every(e=>{let{defaults:{compare:t=[],displayMax:n,displayMin:r,getCompare:a,getValue:c,isIgnoreOnCallbacks:d=u,max:h=0,min:g=0,onSuccess:p,value:f=null}={},isRequired:b=!1,onFinishBatch:v,optionalTests:_,tests:m}=s[e],{getCompare:y=a,getValue:x=c,isIgnoreOnCallbacks:k=d,max:I=h,min:C=g,compare:S=nullishSet(null==y?void 0:y.call(null),t),value:T=nullishSet(null==x?void 0:x.call(null),f),displayMax:j=orSet(n,String(I)),displayMin:O=orSet(r,String(C))}=i[e],{cbFinishBatch:F,setTestCallbacks:B}=evalIsIgnoreOnCallbacks({isIgnoreOnCallbacks:k,onFinishBatch:v});if(!T&&!b)return null==F||F.call(null,!0,e),!0;let runTest=e=>{let{onFailure:t,onSuccess:n=p,test:l}=e,u={},r=l({append:u,compare:S,max:I,min:C,value:T}),{cbFailure:s,cbSuccess:a}=B({onFailure:t,onSuccess:n});return r?null==a||a.call(null,{append:u}):(o=r,null==s||s.call(null,{append:u,compare:S,displayMax:j,displayMin:O,max:I,min:C,value:T})),r};null==_||_.forEach(runTest);let N=m.every(runTest);return null==F||F.call(null,N,e),N||l}),o},test_input_createTestInputFunction=function(e){let{excludeTestIds:t=[],...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){let{excludeTestIds:l=[],...u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return test_input_testInput({tests:e,excludeTestIds:[...t,...l],...n,...u})}},test_input_testMax=e=>{let{max:t,min:n}=e;return t>=n}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/556-dbf62d8622405edc.js b/striker-ui/out/_next/static/chunks/556-dbf62d8622405edc.js deleted file mode 100644 index 0b1f5783..00000000 --- a/striker-ui/out/_next/static/chunks/556-dbf62d8622405edc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[556],{92917:function(t,e,n){n.d(e,{Z:function(){return h}});var l=n(23279),u=n.n(l),r=n(67294),s=n(591),lib_createInputOnChangeHandler=function(){let{postSet:t,preSet:e,set:n,setType:l="string",valueKey:u="value"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r=>{let{target:{[u]:a}}=r,i=s.Z[l](a);null==e||e.call(null,r),null==n||n.call(null,i),null==t||t.call(null,r)}},a=n(50233);let i="input",o={boolean:!1,number:0,string:""},c={createInputOnChangeHandlerOptions:{},debounceWait:500,required:!1,valueType:"string"},d=(0,r.forwardRef)((t,e)=>{let{debounceWait:n=c.debounceWait,input:l,inputTestBatch:s,onBlurAppend:d,onFirstRender:h,onFocusAppend:g,onUnmount:p,required:f=c.required,valueKey:b,valueType:v=c.valueType,createInputOnChangeHandlerOptions:{postSet:_,valueKey:m=b,...y}=c.createInputOnChangeHandlerOptions}=t,{props:x}=l,I=(0,r.useMemo)(()=>null!=m?m:"checked"in x?"checked":"value",[x,m]),{onBlur:k,onChange:C,onFocus:S,[I]:T=o[v],...j}=x,[F,B]=(0,r.useState)(T),[O,N]=(0,r.useState)(!1),[E,M]=(0,r.useState)(!1),A=(0,r.useCallback)(t=>{B(t)},[]),P=(0,r.useMemo)(()=>{let t;return s&&(s.isRequired=f,t=(0,a.LT)({[i]:s})),t},[s,f]),Q=(0,r.useCallback)(t=>{var e;let n=null!==(e=null==P?void 0:P.call(null,{inputs:{[i]:{value:t}},isIgnoreOnCallbacks:!0}))&&void 0!==e&&e;null==h||h.call(null,{isValid:n}),M(n)},[h,P]),R=(0,r.useMemo)(()=>u()(Q,n),[n,Q]),w=(0,r.useMemo)(()=>null!=k?k:P&&function(){for(var t=arguments.length,e=Array(t),n=0;nlib_createInputOnChangeHandler({postSet:function(){for(var t=arguments.length,e=Array(t),n=0;n{A(t),R(t)},setType:v,valueKey:I,...y}),[R,C,_,y,A,I,v]),q=(0,r.useMemo)(()=>null!=S?S:s&&function(){for(var t,e,n=arguments.length,l=Array(n),u=0;u(Q(F),p),[]),(0,r.useEffect)(()=>{!O&&F!==T&&T&&(Q(T),B(T))},[Q,T,F,O]),(0,r.useImperativeHandle)(e,()=>({getIsChangedByUser:()=>O,getValue:()=>F,isValid:()=>E,setValue:A}),[F,O,E,A]),(0,r.cloneElement)(l,{...j,onBlur:w,onChange:U,onFocus:q,required:f,[I]:F})});d.defaultProps=c,d.displayName="InputWithRef";var h=d},21642:function(t,e,n){var l=n(85893),u=n(67294),r=n(68917);let s={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},a=(0,u.forwardRef)((t,e)=>{let{count:n=s.count,defaultMessageType:a=s.defaultMessageType,messages:i,onSet:o,usePlaceholder:c=s.usePlaceholder}=t,[d,h]=(0,u.useState)({}),g=(0,u.useMemo)(()=>({...i,...d}),[i,d]),p=(0,u.useCallback)(t=>void 0!==g[t],[g]),f=(0,u.useCallback)((t,e)=>{let n=0;h(l=>{let{[t]:u,...r}=l;return e&&(r[t]=e),n=Object.keys(r).length,r}),null==o||o.call(null,n)},[o]),b=(0,u.useCallback)((t,e)=>{let n=0,l=e?(t,l)=>{t[l]=e,n+=1}:void 0;h(e=>{let u={};return Object.keys(e).forEach(r=>{t.test(r)?null==l||l.call(null,u,r):(u[r]=e[r],n+=1)}),u}),null==o||o.call(null,n)},[o]),v=(0,u.useMemo)(()=>{let t=Object.entries(g),e=n>0,u=e?n:t.length,s=[];if(t.every(t=>{let[e,n]=t,{children:i,type:o=a}=n;return s.push((0,l.jsx)(r.Z,{type:o,children:i},"message-".concat(e))),s.length({exists:p,setMessage:f,setMessageRe:b}),[p,f,b]),(0,l.jsx)(l.Fragment,{children:v})});a.defaultProps=s,a.displayName="MessageGroup",e.Z=a},591:function(t,e){e.Z={boolean:t=>!!t,number:t=>parseInt(String(t),10)||0,string:t=>String(t)}},65939:function(t,e,n){n.d(e,{FZ:function(){return o},OU:function(){return h},Qt:function(){return g},ah:function(){return d},tf:function(){return c}});let l="[a-z0-9]",u="[a-z0-9-]",r="[0-9a-f]",s="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",a="(?:".concat(s,"[.]){3}").concat(s),i="".concat(r,"{8}-(?:").concat(r,"{4}-){3}").concat(r,"{12}"),o=new RegExp("^(?:".concat(l,"(?:").concat(u,"{0,61}").concat(l,")?[.])+").concat(l).concat(u,"{0,61}").concat(l,"$")),c=new RegExp("^".concat(a,"$")),d=new RegExp("^(?:".concat(a,"\\s*,\\s*)*").concat(a,"$")),h=/^[^'"/\\><}{]*$/,g=RegExp("^".concat(i,"$"),"i")},50233:function(t,e,n){n.d(e,{Ye:function(){return test_input_buildDomainTestBatch},_:function(){return test_input_buildIPAddressTestBatch},dg:function(){return test_input_buildIpCsvTestBatch},qY:function(){return test_input_buildNumberTestBatch},Gn:function(){return test_input_buildPeacefulStringTestBatch},$e:function(){return test_input_buildUUIDTestBatch},LT:function(){return test_input_createTestInputFunction},BD:function(){return test_input_testInput},X7:function(){return test_input_testMax},HJ:function(){return test_input_testNotBlank},SQ:function(){return test_input_testRange}});var l=n(85893),u=n(65939),test_input_testNotBlank=t=>{let{value:e}=t;return!!e&&String(e).length>0},r=n(84154),test_input_buildDomainTestBatch=function(t,e){let{isRequired:n,onFinishBatch:s,...a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...a,onSuccess:e},isRequired:n,onFinishBatch:s,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{compare:e,value:n}=t;return e[0]||u.FZ.test(n)}}]}},test_input_buildIPAddressTestBatch=function(t,e){let{isRequired:n,onFinishBatch:r,...s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{defaults:{...s,onSuccess:e},isRequired:n,onFinishBatch:r,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{value:e}=t;return u.tf.test(e)}}]}},test_input_buildIpCsvTestBatch=function(t,e){let{isRequired:n,onFinishBatch:r,...s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{defaults:{...s,onSuccess:e},isRequired:n,onFinishBatch:r,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{value:e}=t;return u.ah.test(e)}}]}},test_input_testRange=t=>{let{max:e,min:n,value:l}=t;return!!l&&l>=n&&l<=e},lib_toNumber=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"==typeof t?t:Number[e](String(t))},test_input_buildNumberTestBatch=function(t,e){let{isRequired:n,onFinishBatch:u,...r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=[];return s?o.push({onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{value:e}=t;return Number.isSafeInteger(lib_toNumber(e))}}):a&&o.push({onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{value:e}=t;return Number.isFinite(lib_toNumber(e,"parseFloat"))}}),i&&o.push({onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...a,onSuccess:e},isRequired:n,onFinishBatch:s,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u"}),"), curly brackets (",(0,l.jsx)(r.Q0,{inheritColour:!0,text:"{}"}),")."]}),...n)},test:t=>{let{value:e}=t;return u.OU.test(e)}}]}},test_input_buildUUIDTestBatch=function(t,e){let{isRequired:n,onFinishBatch:r,...s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return{defaults:{...s,onSuccess:e},isRequired:n,onFinishBatch:r,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var e=arguments.length,n=Array(e),u=0;u{let{value:e}=t;return u.Qt.test(e)}}]}};let cbEmptySetter=()=>({}),cbSetter=t=>{let{onFailure:e,onSuccess:n}=t;return{cbFailure:e,cbSuccess:n}},evalIsIgnoreOnCallbacks=t=>{let{isIgnoreOnCallbacks:e,onFinishBatch:n}=t;return e?{setTestCallbacks:cbEmptySetter}:{cbFinishBatch:n,setTestCallbacks:cbSetter}},nullishSet=(t,e)=>null!=t?t:e,orSet=(t,e)=>t||e;var test_input_testInput=function(){let{excludeTestIds:t=[],excludeTestIdsRe:e,inputs:n={},isContinueOnFailure:l,isIgnoreOnCallbacks:u,isTestAll:r=0===Object.keys(n).length,tests:s={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=[...t],i={},o=!0;return r&&Object.keys(s).forEach(t=>{i[t]={}}),i={...i,...n},e&&Object.keys(i).forEach(t=>{e.test(t)&&a.push(t)}),a.forEach(t=>{delete i[t]}),Object.keys(i).every(t=>{let{defaults:{compare:e=[],displayMax:n,displayMin:r,getCompare:a,getValue:c,isIgnoreOnCallbacks:d=u,max:h=0,min:g=0,onSuccess:p,value:f=null}={},isRequired:b=!1,onFinishBatch:v,optionalTests:_,tests:m}=s[t],{getCompare:y=a,getValue:x=c,isIgnoreOnCallbacks:I=d,max:k=h,min:C=g,compare:S=nullishSet(null==y?void 0:y.call(null),e),value:T=nullishSet(null==x?void 0:x.call(null),f),displayMax:j=orSet(n,String(k)),displayMin:F=orSet(r,String(C))}=i[t],{cbFinishBatch:B,setTestCallbacks:O}=evalIsIgnoreOnCallbacks({isIgnoreOnCallbacks:I,onFinishBatch:v});if(!T&&!b)return null==B||B.call(null,!0,t),!0;let runTest=t=>{let{onFailure:e,onSuccess:n=p,test:l}=t,u={},r=l({append:u,compare:S,max:k,min:C,value:T}),{cbFailure:s,cbSuccess:a}=O({onFailure:e,onSuccess:n});return r?null==a||a.call(null,{append:u}):(o=r,null==s||s.call(null,{append:u,compare:S,displayMax:j,displayMin:F,max:k,min:C,value:T})),r};null==_||_.forEach(runTest);let N=m.every(runTest);return null==B||B.call(null,N,t),N||l}),o},test_input_createTestInputFunction=function(t){let{excludeTestIds:e=[],...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){let{excludeTestIds:l=[],...u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return test_input_testInput({tests:t,excludeTestIds:[...e,...l],...n,...u})}},test_input_testMax=t=>{let{max:e,min:n}=t;return e>=n}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/569-fa9b9ac8a7639d2d.js b/striker-ui/out/_next/static/chunks/569-fa9b9ac8a7639d2d.js deleted file mode 100644 index 9108c5d0..00000000 --- a/striker-ui/out/_next/static/chunks/569-fa9b9ac8a7639d2d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[569],{53457:function(e,t,r){r.d(t,{Z:function(){return Z}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(90948),c=r(71657),d=r(1588),u=r(34867);function getFormGroupUtilityClass(e){return(0,u.Z)("MuiFormGroup",e)}(0,d.Z)("MuiFormGroup",["root","row","error"]);var f=r(74423),p=r(15704),h=r(85893);let m=["className","row"],useUtilityClasses=e=>{let{classes:t,row:r,error:o}=e;return(0,a.Z)({root:["root",r&&"row",o&&"error"]},getFormGroupUtilityClass,t)},b=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),v=n.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:a=!1}=r,s=(0,o.Z)(r,m),d=(0,f.Z)(),u=(0,p.Z)({props:r,muiFormControl:d,states:["error"]}),v=(0,l.Z)({},r,{row:a,error:u.error}),Z=useUtilityClasses(v);return(0,h.jsx)(b,(0,l.Z)({className:(0,i.Z)(Z.root,n),ownerState:v,ref:t},s))});var Z=v},84376:function(e,t,r){r.d(t,{Z:function(){return M}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(41796),c=r(21964),d=r(71657),u=r(77892),f=r(85893),p=(0,u.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,u.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),m=r(90948);let b=(0,m.ZP)("span",{shouldForwardProp:m.FO})({position:"relative",display:"flex"}),v=(0,m.ZP)(p)({transform:"scale(1)"}),Z=(0,m.ZP)(h)(({theme:e,ownerState:t})=>(0,l.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));var Radio_RadioButtonIcon=function(e){let{checked:t=!1,classes:r={},fontSize:o}=e,n=(0,l.Z)({},e,{checked:t});return(0,f.jsxs)(b,{className:r.root,ownerState:n,children:[(0,f.jsx)(v,{fontSize:o,className:r.background,ownerState:n}),(0,f.jsx)(Z,{fontSize:o,className:r.dot,ownerState:n})]})},S=r(98216),g=r(35893),x=r(80209),y=r(64568);let C=["checked","checkedIcon","color","icon","name","onChange","size","className"],useUtilityClasses=e=>{let{classes:t,color:r,size:o}=e,n={root:["root",`color${(0,S.Z)(r)}`,"medium"!==o&&`size${(0,S.Z)(o)}`]};return(0,l.Z)({},t,(0,a.Z)(n,y.l,t))},w=(0,m.ZP)(c.Z,{shouldForwardProp:e=>(0,m.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${(0,S.Z)(r.size)}`],t[`color${(0,S.Z)(r.color)}`]]}})(({theme:e,ownerState:t})=>(0,l.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${y.Z.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${y.Z.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),B=(0,f.jsx)(Radio_RadioButtonIcon,{checked:!0}),R=(0,f.jsx)(Radio_RadioButtonIcon,{}),I=n.forwardRef(function(e,t){var r,a,s,c;let u=(0,d.Z)({props:e,name:"MuiRadio"}),{checked:p,checkedIcon:h=B,color:m="primary",icon:b=R,name:v,onChange:Z,size:S="medium",className:y}=u,I=(0,o.Z)(u,C),M=(0,l.Z)({},u,{color:m,size:S}),T=useUtilityClasses(M),k=n.useContext(x.Z),E=p,P=(0,g.Z)(Z,k&&k.onChange),z=v;return k&&(void 0===E&&(s=k.value,E="object"==typeof(c=u.value)&&null!==c?s===c:String(s)===String(c)),void 0===z&&(z=k.name)),(0,f.jsx)(w,(0,l.Z)({type:"radio",icon:n.cloneElement(b,{fontSize:null!=(r=R.props.fontSize)?r:S}),checkedIcon:n.cloneElement(h,{fontSize:null!=(a=B.props.fontSize)?a:S}),ownerState:M,classes:T,name:z,checked:E,onChange:P,ref:t,className:(0,i.Z)(T.root,y)},I))});var M=I},64568:function(e,t,r){r.d(t,{l:function(){return getRadioUtilityClass}});var o=r(1588),l=r(34867);function getRadioUtilityClass(e){return(0,l.Z)("MuiRadio",e)}let n=(0,o.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);t.Z=n},68061:function(e,t,r){var o=r(87462),l=r(63366),n=r(67294),i=r(53457),a=r(51705),s=r(49299),c=r(80209),d=r(27909),u=r(85893);let f=["actions","children","defaultValue","name","onChange","value"],p=n.forwardRef(function(e,t){let{actions:r,children:p,defaultValue:h,name:m,onChange:b,value:v}=e,Z=(0,l.Z)(e,f),S=n.useRef(null),[g,x]=(0,s.Z)({controlled:v,default:h,name:"RadioGroup"});n.useImperativeHandle(r,()=>({focus:()=>{let e=S.current.querySelector("input:not(:disabled):checked");e||(e=S.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let y=(0,a.Z)(t,S),C=(0,d.Z)(m),w=n.useMemo(()=>({name:C,onChange(e){x(e.target.value),b&&b(e,e.target.value)},value:g}),[C,b,x,g]);return(0,u.jsx)(c.Z.Provider,{value:w,children:(0,u.jsx)(i.Z,(0,o.Z)({role:"radiogroup",ref:y},Z,{children:p}))})});t.Z=p},80209:function(e,t,r){var o=r(67294);let l=o.createContext(void 0);t.Z=l},75316:function(e,t,r){var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(47739),c=r(98216),d=r(71657),u=r(90948),f=r(21073),p=r(85893);let h=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],useUtilityClasses=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(r)}`,o&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,f.V,t)},m=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,c.Z)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${f.Z.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${f.Z.selected}`]:{opacity:1},[`&.${f.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),b=n.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:f,iconPosition:b="top",indicator:v,label:Z,onChange:S,onClick:g,onFocus:x,selected:y,selectionFollowsFocus:C,textColor:w="inherit",value:B,wrapped:R=!1}=r,I=(0,o.Z)(r,h),M=(0,l.Z)({},r,{disabled:s,disableFocusRipple:c,selected:y,icon:!!f,iconPosition:b,label:!!Z,fullWidth:u,textColor:w,wrapped:R}),T=useUtilityClasses(M),k=f&&Z&&n.isValidElement(f)?n.cloneElement(f,{className:(0,i.Z)(T.iconWrapper,f.props.className)}):f;return(0,p.jsxs)(m,(0,l.Z)({focusRipple:!c,className:(0,i.Z)(T.root,a),ref:t,role:"tab","aria-selected":y,disabled:s,onClick:e=>{!y&&S&&S(e,B),g&&g(e)},onFocus:e=>{C&&!y&&S&&S(e,B),x&&x(e)},ownerState:M,tabIndex:y?0:-1},I,{children:["top"===b||"start"===b?(0,p.jsxs)(n.Fragment,{children:[k,Z]}):(0,p.jsxs)(n.Fragment,{children:[Z,k]}),v]}))});t.Z=b},21073:function(e,t,r){r.d(t,{V:function(){return getTabUtilityClass}});var o=r(1588),l=r(34867);function getTabUtilityClass(e){return(0,l.Z)("MuiTab",e)}let n=(0,o.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);t.Z=n},37023:function(e,t,r){let o;r.d(t,{Z:function(){return U}});var l=r(63366),n=r(87462),i=r(67294);r(59864);var a=r(63961),s=r(94780),c=r(5094),d=r(90948),u=r(71657),f=r(2734),p=r(57144);function detectScrollType(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function easeInOutSin(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h=r(58974),m=r(5340),b=r(85893);let v=["onChange"],Z={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var S=r(67070),g=r(56686),x=r(47739),y=r(1588),C=r(34867);function getTabScrollButtonUtilityClass(e){return(0,C.Z)("MuiTabScrollButton",e)}let w=(0,y.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),B=["className","slots","slotProps","direction","orientation","disabled"],useUtilityClasses=e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,s.Z)({root:["root",r,o&&"disabled"]},getTabScrollButtonUtilityClass,t)},R=(0,d.ZP)(x.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>(0,n.Z)({width:40,flexShrink:0,opacity:.8,[`&.${w.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),I=i.forwardRef(function(e,t){var r,o;let i=(0,u.Z)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:d={},slotProps:p={},direction:h}=i,m=(0,l.Z)(i,B),v=(0,f.Z)(),Z="rtl"===v.direction,x=(0,n.Z)({isRtl:Z},i),y=useUtilityClasses(x),C=null!=(r=d.StartScrollButtonIcon)?r:S.Z,w=null!=(o=d.EndScrollButtonIcon)?o:g.Z,I=(0,c.y)({elementType:C,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),M=(0,c.y)({elementType:w,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return(0,b.jsx)(R,(0,n.Z)({component:"div",className:(0,a.Z)(y.root,s),ref:t,role:null,ownerState:x,tabIndex:null},m,{children:"left"===h?(0,b.jsx)(C,(0,n.Z)({},I)):(0,b.jsx)(w,(0,n.Z)({},M))}))});var M=r(2068),T=r(90852),k=r(8038);let E=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nextItem=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,previousItem=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,moveFocus=(e,t,r)=>{let o=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(o)return;o=!0}let t=l.disabled||"true"===l.getAttribute("aria-disabled");if(!l.hasAttribute("tabindex")||t)l=r(e,l);else{l.focus();return}}},Tabs_useUtilityClasses=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},T.m,c)},P=(0,d.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${T.Z.scrollButtons}`]:t.scrollButtons},{[`& .${T.Z.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${T.Z.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),z=(0,d.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>(0,n.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),N=(0,d.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>(0,n.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),W=(0,d.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>(0,n.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),F=(0,d.ZP)(function(e){let{onChange:t}=e,r=(0,l.Z)(e,v),o=i.useRef(),a=i.useRef(null),setMeasurements=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,h.Z)(()=>{let e=(0,p.Z)(()=>{let e=o.current;setMeasurements(),e!==o.current&&t(o.current)}),r=(0,m.Z)(a.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{setMeasurements(),t(o.current)},[t]),(0,b.jsx)("div",(0,n.Z)({style:Z,ref:a},r))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),j={},$=i.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiTabs"}),o=(0,f.Z)(),s="rtl"===o.direction,{"aria-label":d,"aria-labelledby":h,action:v,centered:Z=!1,children:S,className:g,component:x="div",allowScrollButtonsMobile:y=!1,indicatorColor:C="primary",onChange:w,orientation:B="horizontal",ScrollButtonComponent:R=I,scrollButtons:T="auto",selectionFollowsFocus:$,slots:U={},slotProps:L={},TabIndicatorProps:A={},TabScrollButtonProps:H={},textColor:O="primary",value:X,variant:D="standard",visibleScrollbar:Y=!1}=r,_=(0,l.Z)(r,E),G="scrollable"===D,V="vertical"===B,q=V?"scrollTop":"scrollLeft",K=V?"top":"left",J=V?"bottom":"right",Q=V?"clientHeight":"clientWidth",ee=V?"height":"width",et=(0,n.Z)({},r,{component:x,allowScrollButtonsMobile:y,indicatorColor:C,orientation:B,vertical:V,scrollButtons:T,textColor:O,variant:D,visibleScrollbar:Y,fixed:!G,hideScrollbar:G&&!Y,scrollableX:G&&!V,scrollableY:G&&V,centered:Z&&!G,scrollButtonsHideMobile:!y}),er=Tabs_useUtilityClasses(et),eo=(0,c.y)({elementType:U.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:et}),el=(0,c.y)({elementType:U.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:et}),[en,ei]=i.useState(!1),[ea,es]=i.useState(j),[ec,ed]=i.useState(!1),[eu,ef]=i.useState(!1),[ep,eh]=i.useState(!1),[em,eb]=i.useState({overflow:"hidden",scrollbarWidth:0}),ev=new Map,eZ=i.useRef(null),eS=i.useRef(null),getTabsMeta=()=>{let e,t;let r=eZ.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;let o=detectScrollType();switch(o){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,o.direction),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==X){let e=eS.current.children;if(e.length>0){let r=e[ev.get(X)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eg=(0,M.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=getTabsMeta(),o=0;if(V)e="top",r&&t&&(o=r.top-t.top+t.scrollTop);else if(e=s?"right":"left",r&&t){let l=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;o=(s?-1:1)*(r[e]-t[e]+l)}let l={[e]:o,[ee]:r?r[ee]:0};if(isNaN(ea[e])||isNaN(ea[ee]))es(l);else{let t=Math.abs(ea[e]-l[e]),r=Math.abs(ea[ee]-l[ee]);(t>=1||r>=1)&&es(l)}}),scroll=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:n=easeInOutSin,duration:i=300}=o,a=null,s=t[e],c=!1,step=o=>{if(c){l(Error("Animation cancelled"));return}null===a&&(a=o);let d=Math.min(1,(o-a)/i);if(t[e]=n(d)*(r-s)+s,d>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(step)};return s===r?l(Error("Element already at target position")):requestAnimationFrame(step),()=>{c=!0}}(q,eZ.current,e,{duration:o.transitions.duration.standard}):eZ.current[q]=e},moveTabsScroll=e=>{let t=eZ.current[q];V?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===detectScrollType()?-1:1),scroll(t)},getScrollSize=()=>{let e=eZ.current[Q],t=0,r=Array.from(eS.current.children);for(let o=0;oe){0===o&&(t=e);break}t+=l[Q]}return t},handleStartScrollClick=()=>{moveTabsScroll(-1*getScrollSize())},handleEndScrollClick=()=>{moveTabsScroll(getScrollSize())},ex=i.useCallback(e=>{eb({overflow:null,scrollbarWidth:e})},[]),ey=(0,M.Z)(e=>{let{tabsMeta:t,tabMeta:r}=getTabsMeta();if(r&&t){if(r[K]t[J]){let o=t[q]+(r[J]-t[J]);scroll(o,{animation:e})}}}),eC=(0,M.Z)(()=>{G&&!1!==T&&eh(!ep)});i.useEffect(()=>{let e,t;let r=(0,p.Z)(()=>{eZ.current&&eg()}),o=(0,m.Z)(eZ.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eS.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),eC()})).observe(eS.current,{childList:!0}),()=>{var l,n;r.clear(),o.removeEventListener("resize",r),null==(l=t)||l.disconnect(),null==(n=e)||n.disconnect()}},[eg,eC]),i.useEffect(()=>{let e=Array.from(eS.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&G&&!1!==T){let r=e[0],o=e[t-1],l={root:eZ.current,threshold:.99},n=new IntersectionObserver(e=>{ed(!e[0].isIntersecting)},l);n.observe(r);let i=new IntersectionObserver(e=>{ef(!e[0].isIntersecting)},l);return i.observe(o),()=>{n.disconnect(),i.disconnect()}}},[G,T,ep,null==S?void 0:S.length]),i.useEffect(()=>{ei(!0)},[]),i.useEffect(()=>{eg()}),i.useEffect(()=>{ey(j!==ea)},[ey,ea]),i.useImperativeHandle(v,()=>({updateIndicator:eg,updateScrollButtons:eC}),[eg,eC]);let ew=(0,b.jsx)(W,(0,n.Z)({},A,{className:(0,a.Z)(er.indicator,A.className),ownerState:et,style:(0,n.Z)({},ea,A.style)})),eB=0,eR=i.Children.map(S,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?eB:e.props.value;ev.set(t,eB);let r=t===X;return eB+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===D,indicator:r&&!en&&ew,selected:r,selectionFollowsFocus:$,onChange:w,textColor:O,value:t},1!==eB||!1!==X||e.props.tabIndex?{}:{tabIndex:0}))}),eI=(()=>{let e={};e.scrollbarSizeListener=G?(0,b.jsx)(F,{onChange:ex,className:(0,a.Z)(er.scrollableX,er.hideScrollbar)}):null;let t=G&&("auto"===T&&(ec||eu)||!0===T);return e.scrollButtonStart=t?(0,b.jsx)(R,(0,n.Z)({slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:eo},orientation:B,direction:s?"right":"left",onClick:handleStartScrollClick,disabled:!ec},H,{className:(0,a.Z)(er.scrollButtons,H.className)})):null,e.scrollButtonEnd=t?(0,b.jsx)(R,(0,n.Z)({slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:el},orientation:B,direction:s?"left":"right",onClick:handleEndScrollClick,disabled:!eu},H,{className:(0,a.Z)(er.scrollButtons,H.className)})):null,e})();return(0,b.jsxs)(P,(0,n.Z)({className:(0,a.Z)(er.root,g),ownerState:et,ref:t,as:x},_,{children:[eI.scrollButtonStart,eI.scrollbarSizeListener,(0,b.jsxs)(z,{className:er.scroller,ownerState:et,style:{overflow:em.overflow,[V?`margin${s?"Left":"Right"}`:"marginBottom"]:Y?void 0:-em.scrollbarWidth},ref:eZ,children:[(0,b.jsx)(N,{"aria-label":d,"aria-labelledby":h,"aria-orientation":"vertical"===B?"vertical":null,className:er.flexContainer,ownerState:et,onKeyDown:e=>{let t=eS.current,r=(0,k.Z)(t).activeElement,o=r.getAttribute("role");if("tab"!==o)return;let l="horizontal"===B?"ArrowLeft":"ArrowUp",n="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&s&&(l="ArrowRight",n="ArrowLeft"),e.key){case l:e.preventDefault(),moveFocus(t,r,previousItem);break;case n:e.preventDefault(),moveFocus(t,r,nextItem);break;case"Home":e.preventDefault(),moveFocus(t,null,nextItem);break;case"End":e.preventDefault(),moveFocus(t,null,previousItem)}},ref:eS,role:"tablist",children:eR}),en&&ew]}),eI.scrollButtonEnd]}))});var U=$},90852:function(e,t,r){r.d(t,{m:function(){return getTabsUtilityClass}});var o=r(1588),l=r(34867);function getTabsUtilityClass(e){return(0,l.Z)("MuiTabs",e)}let n=(0,o.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=n}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/675-235890fb4812bd16.js b/striker-ui/out/_next/static/chunks/675-9a50fb0ae255b835.js similarity index 82% rename from striker-ui/out/_next/static/chunks/675-235890fb4812bd16.js rename to striker-ui/out/_next/static/chunks/675-9a50fb0ae255b835.js index c999576b..375dbad6 100644 --- a/striker-ui/out/_next/static/chunks/675-235890fb4812bd16.js +++ b/striker-ui/out/_next/static/chunks/675-9a50fb0ae255b835.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[675],{29212:function(s,n,e){"use strict";e.d(n,{inputLabelClasses:function(){return sC.inputLabelClasses},svgIconClasses:function(){return s2.svgIconClasses}});var o=e(42279);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(38650);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}});var t=e(80080);e.o(t,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return t.inputLabelClasses}}),e.o(t,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return t.svgIconClasses}});var l=e(10451);e.o(l,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return l.inputLabelClasses}}),e.o(l,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return l.svgIconClasses}});var u=e(36363);e.o(u,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return u.inputLabelClasses}}),e.o(u,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return u.svgIconClasses}});var c=e(74831);e.o(c,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return c.inputLabelClasses}}),e.o(c,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return c.svgIconClasses}});var i=e(40081);e.o(i,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return i.inputLabelClasses}}),e.o(i,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return i.svgIconClasses}});var r=e(43103);e.o(r,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return r.inputLabelClasses}}),e.o(r,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return r.svgIconClasses}});var C=e(52665);e.o(C,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return C.inputLabelClasses}}),e.o(C,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return C.svgIconClasses}});var v=e(73878);e.o(v,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return v.inputLabelClasses}}),e.o(v,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return v.svgIconClasses}});var g=e(67790);e.o(g,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return g.inputLabelClasses}}),e.o(g,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return g.svgIconClasses}});var I=e(39967);e.o(I,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return I.inputLabelClasses}}),e.o(I,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return I.svgIconClasses}});var f=e(12635);e.o(f,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return f.inputLabelClasses}}),e.o(f,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return f.svgIconClasses}});var p=e(95366);e.o(p,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return p.inputLabelClasses}}),e.o(p,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return p.svgIconClasses}});var d=e(34806);e.o(d,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return d.inputLabelClasses}}),e.o(d,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return d.svgIconClasses}});var b=e(26928);e.o(b,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return b.inputLabelClasses}}),e.o(b,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return b.svgIconClasses}});var L=e(55545);e.o(L,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return L.inputLabelClasses}}),e.o(L,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return L.svgIconClasses}});var x=e(13158);e.o(x,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return x.inputLabelClasses}}),e.o(x,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return x.svgIconClasses}});var h=e(38163);e.o(h,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return h.inputLabelClasses}}),e.o(h,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return h.svgIconClasses}});var m=e(98054);e.o(m,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return m.inputLabelClasses}}),e.o(m,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return m.svgIconClasses}});var Z=e(73350);e.o(Z,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Z.inputLabelClasses}}),e.o(Z,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Z.svgIconClasses}});var j=e(10114);e.o(j,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return j.inputLabelClasses}}),e.o(j,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return j.svgIconClasses}});var P=e(99920);e.o(P,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return P.inputLabelClasses}}),e.o(P,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return P.svgIconClasses}});var w=e(61337);e.o(w,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return w.inputLabelClasses}}),e.o(w,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return w.svgIconClasses}});var O=e(75580);e.o(O,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return O.inputLabelClasses}}),e.o(O,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return O.svgIconClasses}});var y=e(53403);e.o(y,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return y.inputLabelClasses}}),e.o(y,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return y.svgIconClasses}});var k=e(71621);e.o(k,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return k.inputLabelClasses}}),e.o(k,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return k.svgIconClasses}});var _=e(14789);e.o(_,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return _.inputLabelClasses}}),e.o(_,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return _.svgIconClasses}});var M=e(23032);e.o(M,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return M.inputLabelClasses}}),e.o(M,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return M.svgIconClasses}});var R=e(5679);e.o(R,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return R.inputLabelClasses}}),e.o(R,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return R.svgIconClasses}});var A=e(89144);e.o(A,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return A.inputLabelClasses}}),e.o(A,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return A.svgIconClasses}});var F=e(99281);e.o(F,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return F.inputLabelClasses}}),e.o(F,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return F.svgIconClasses}});var W=e(57846);e.o(W,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return W.inputLabelClasses}}),e.o(W,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return W.svgIconClasses}});var B=e(32915);e.o(B,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return B.inputLabelClasses}}),e.o(B,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return B.svgIconClasses}});var D=e(79964);e.o(D,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return D.inputLabelClasses}}),e.o(D,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return D.svgIconClasses}});var E=e(98973);e.o(E,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return E.inputLabelClasses}}),e.o(E,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return E.svgIconClasses}});var q=e(40925);e.o(q,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return q.inputLabelClasses}}),e.o(q,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return q.svgIconClasses}});var N=e(26770);e.o(N,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return N.inputLabelClasses}}),e.o(N,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return N.svgIconClasses}});var H=e(17486);e.o(H,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return H.inputLabelClasses}}),e.o(H,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return H.svgIconClasses}});var S=e(30896);e.o(S,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return S.inputLabelClasses}}),e.o(S,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return S.svgIconClasses}});var T=e(82015);e.o(T,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return T.inputLabelClasses}}),e.o(T,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return T.svgIconClasses}});var U=e(93528);e.o(U,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return U.inputLabelClasses}}),e.o(U,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return U.svgIconClasses}});var V=e(8880);e.o(V,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return V.inputLabelClasses}}),e.o(V,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return V.svgIconClasses}});var z=e(49527);e.o(z,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return z.inputLabelClasses}}),e.o(z,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return z.svgIconClasses}});var G=e(96767);e.o(G,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return G.inputLabelClasses}}),e.o(G,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return G.svgIconClasses}});var J=e(74029);e.o(J,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return J.inputLabelClasses}}),e.o(J,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return J.svgIconClasses}});var K=e(19634);e.o(K,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return K.inputLabelClasses}}),e.o(K,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return K.svgIconClasses}});var Q=e(58350);e.o(Q,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Q.inputLabelClasses}}),e.o(Q,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Q.svgIconClasses}});var X=e(26989);e.o(X,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return X.inputLabelClasses}}),e.o(X,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return X.svgIconClasses}});var Y=e(85738);e.o(Y,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Y.inputLabelClasses}}),e.o(Y,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Y.svgIconClasses}});var $=e(20296);e.o($,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return $.inputLabelClasses}}),e.o($,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return $.svgIconClasses}});var ss=e(67917);e.o(ss,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return ss.inputLabelClasses}}),e.o(ss,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return ss.svgIconClasses}});var sn=e(86312);e.o(sn,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sn.inputLabelClasses}}),e.o(sn,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sn.svgIconClasses}});var se=e(42400);e.o(se,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return se.inputLabelClasses}}),e.o(se,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return se.svgIconClasses}});var so=e(58219);e.o(so,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return so.inputLabelClasses}}),e.o(so,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return so.svgIconClasses}});var sa=e(66607);e.o(sa,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sa.inputLabelClasses}}),e.o(sa,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sa.svgIconClasses}});var st=e(58008);e.o(st,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return st.inputLabelClasses}}),e.o(st,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return st.svgIconClasses}});var sl=e(29148);e.o(sl,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sl.inputLabelClasses}}),e.o(sl,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sl.svgIconClasses}});var su=e(10432);e.o(su,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return su.inputLabelClasses}}),e.o(su,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return su.svgIconClasses}});var sc=e(55129);e.o(sc,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sc.inputLabelClasses}}),e.o(sc,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sc.svgIconClasses}});var si=e(13728);e.o(si,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return si.inputLabelClasses}}),e.o(si,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return si.svgIconClasses}});var sr=e(43207);e.o(sr,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sr.inputLabelClasses}}),e.o(sr,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sr.svgIconClasses}});var sC=e(74192);e.o(sC,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sC.svgIconClasses}});var sv=e(47929);e.o(sv,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sv.svgIconClasses}});var sg=e(94346);e.o(sg,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sg.svgIconClasses}});var sI=e(67482);e.o(sI,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sI.svgIconClasses}});var sf=e(36475);e.o(sf,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sf.svgIconClasses}});var sp=e(35393);e.o(sp,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sp.svgIconClasses}});var sd=e(7455);e.o(sd,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sd.svgIconClasses}});var sb=e(45216);e.o(sb,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sb.svgIconClasses}});var sL=e(69573);e.o(sL,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sL.svgIconClasses}});var sx=e(29744);e.o(sx,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sx.svgIconClasses}});var sh=e(12260);e.o(sh,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sh.svgIconClasses}});var sm=e(24324);e.o(sm,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sm.svgIconClasses}});var sZ=e(16360);e.o(sZ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sZ.svgIconClasses}});var sj=e(41512);e.o(sj,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sj.svgIconClasses}});var sP=e(15286);e.o(sP,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sP.svgIconClasses}});var sw=e(68262);e.o(sw,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sw.svgIconClasses}});var sO=e(93175);e.o(sO,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sO.svgIconClasses}});var sy=e(29185);e.o(sy,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sy.svgIconClasses}});var sk=e(66780);e.o(sk,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sk.svgIconClasses}});var s_=e(86799);e.o(s_,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s_.svgIconClasses}});var sM=e(16749);e.o(sM,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sM.svgIconClasses}});var sR=e(9273);e.o(sR,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sR.svgIconClasses}});var sA=e(4406);e.o(sA,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sA.svgIconClasses}});var sF=e(24886);e.o(sF,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sF.svgIconClasses}});var sW=e(66502);e.o(sW,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sW.svgIconClasses}});var sB=e(10283);e.o(sB,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sB.svgIconClasses}});var sD=e(99904);e.o(sD,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sD.svgIconClasses}});var sE=e(79811);e.o(sE,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sE.svgIconClasses}});var sq=e(93346);e.o(sq,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sq.svgIconClasses}});var sN=e(12271);e.o(sN,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sN.svgIconClasses}});var sH=e(61069);e.o(sH,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sH.svgIconClasses}});var sS=e(77024);e.o(sS,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sS.svgIconClasses}});var sT=e(13546);e.o(sT,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sT.svgIconClasses}});var sU=e(90072);e.o(sU,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sU.svgIconClasses}});var sV=e(11442);e.o(sV,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sV.svgIconClasses}});var sz=e(64644);e.o(sz,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sz.svgIconClasses}});var sG=e(24906);e.o(sG,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sG.svgIconClasses}});var sJ=e(36503);e.o(sJ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sJ.svgIconClasses}});var sK=e(85190);e.o(sK,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sK.svgIconClasses}});var sQ=e(1026);e.o(sQ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sQ.svgIconClasses}});var sX=e(76370);e.o(sX,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sX.svgIconClasses}});var sY=e(94515);e.o(sY,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sY.svgIconClasses}});var s$=e(26175);e.o(s$,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s$.svgIconClasses}});var s6=e(16776);e.o(s6,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s6.svgIconClasses}});var s9=e(64307);e.o(s9,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s9.svgIconClasses}});var s0=e(90836);e.o(s0,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s0.svgIconClasses}});var s2=e(53384)},95883:function(){},80080:function(s,n,e){"use strict";var o=e(95883);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},23406:function(){},10451:function(s,n,e){"use strict";var o=e(23406);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},34567:function(){},36363:function(s,n,e){"use strict";var o=e(34567);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},91815:function(){},74831:function(s,n,e){"use strict";var o=e(91815);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},48249:function(){},40081:function(s,n,e){"use strict";var o=e(48249);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},17482:function(){},43103:function(s,n,e){"use strict";var o=e(17482);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},11206:function(){},52665:function(s,n,e){"use strict";var o=e(11206);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},99618:function(){},73878:function(s,n,e){"use strict";var o=e(99618);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},90859:function(){},67790:function(s,n,e){"use strict";var o=e(90859);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},19162:function(){},39967:function(s,n,e){"use strict";var o=e(19162);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79651:function(){},12635:function(s,n,e){"use strict";var o=e(79651);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},13897:function(){},95366:function(s,n,e){"use strict";var o=e(13897);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},15262:function(){},34806:function(s,n,e){"use strict";var o=e(15262);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},61663:function(){},26928:function(s,n,e){"use strict";var o=e(61663);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},60678:function(){},55545:function(s,n,e){"use strict";var o=e(60678);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},78390:function(){},13158:function(s,n,e){"use strict";var o=e(78390);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},6783:function(){},38163:function(s,n,e){"use strict";var o=e(6783);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},96987:function(){},98054:function(s,n,e){"use strict";var o=e(96987);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(94156);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},94156:function(){},76985:function(){},73350:function(s,n,e){"use strict";var o=e(76985);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},13904:function(){},10114:function(s,n,e){"use strict";var o=e(13904);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},69249:function(){},99920:function(s,n,e){"use strict";var o=e(69249);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},26720:function(){},61337:function(s,n,e){"use strict";var o=e(26720);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79398:function(){},75580:function(s,n,e){"use strict";var o=e(79398);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},83261:function(){},53403:function(s,n,e){"use strict";var o=e(83261);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},61727:function(){},71621:function(s,n,e){"use strict";var o=e(61727);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4052:function(){},14789:function(s,n,e){"use strict";var o=e(4052);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},81413:function(){},23032:function(s,n,e){"use strict";var o=e(81413);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},62617:function(){},5679:function(s,n,e){"use strict";var o=e(62617);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},89144:function(){},50538:function(){},99281:function(s,n,e){"use strict";var o=e(50538);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},23261:function(){},57846:function(s,n,e){"use strict";var o=e(23261);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},32915:function(){},47536:function(){},98973:function(s,n,e){"use strict";var o=e(47536);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},94241:function(){},40925:function(s,n,e){"use strict";var o=e(94241);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},88386:function(){},26770:function(s,n,e){"use strict";var o=e(88386);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},62028:function(){},17486:function(s,n,e){"use strict";var o=e(62028);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},9152:function(){},30896:function(s,n,e){"use strict";var o=e(9152);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},98775:function(){},82015:function(s,n,e){"use strict";var o=e(98775);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},16803:function(){},93528:function(s,n,e){"use strict";var o=e(16803);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},35057:function(){},8880:function(s,n,e){"use strict";var o=e(35057);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},49527:function(){},28699:function(){},96767:function(s,n,e){"use strict";var o=e(28699);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},42906:function(){},74029:function(s,n,e){"use strict";var o=e(42906);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},56651:function(){},19634:function(s,n,e){"use strict";var o=e(56651);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},2980:function(){},58350:function(s,n,e){"use strict";var o=e(2980);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},71637:function(){},26989:function(s,n,e){"use strict";var o=e(71637);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},938:function(){},28262:function(){},85738:function(s,n,e){"use strict";var o=e(938);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(28262);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},49507:function(){},20296:function(s,n,e){"use strict";var o=e(49507);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86312:function(){},42400:function(){},69487:function(){},58219:function(s,n,e){"use strict";var o=e(69487);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},84584:function(){},66607:function(s,n,e){"use strict";var o=e(84584);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},5063:function(){},58008:function(s,n,e){"use strict";var o=e(5063);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87303:function(){},29148:function(s,n,e){"use strict";var o=e(87303);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},1256:function(){},10432:function(s,n,e){"use strict";var o=e(1256);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},55129:function(s,n,e){"use strict";var o=e(75711);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},75711:function(){},13728:function(s,n,e){"use strict";var o=e(4324);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4324:function(){},43207:function(s,n,e){"use strict";var o=e(21953);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},21953:function(){},74192:function(s,n,e){"use strict";e.d(n,{inputLabelClasses:function(){return o.Z}});var o=e(56727),a=e(93969);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},47929:function(s,n,e){"use strict";var o=e(72535);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},72535:function(){},94346:function(s,n,e){"use strict";var o=e(84162);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},84162:function(){},67482:function(s,n,e){"use strict";var o=e(4974);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4974:function(){},36475:function(s,n,e){"use strict";var o=e(25606);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},25606:function(){},35393:function(s,n,e){"use strict";var o=e(35459);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},35459:function(){},7455:function(s,n,e){"use strict";var o=e(87920);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87920:function(){},45216:function(s,n,e){"use strict";var o=e(82665);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},82665:function(){},69573:function(s,n,e){"use strict";var o=e(27847);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},27847:function(){},29744:function(s,n,e){"use strict";var o=e(86015);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86015:function(){},12260:function(s,n,e){"use strict";var o=e(27606);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},27606:function(){},24324:function(s,n,e){"use strict";var o=e(92399);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},92399:function(){},16360:function(s,n,e){"use strict";var o=e(30044);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},30044:function(){},41512:function(){},15286:function(s,n,e){"use strict";var o=e(79346);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79346:function(){},68262:function(s,n,e){"use strict";var o=e(29487);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},29487:function(){},93175:function(s,n,e){"use strict";var o=e(20860);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},20860:function(){},29185:function(){},66780:function(s,n,e){"use strict";var o=e(19142);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},19142:function(){},86799:function(s,n,e){"use strict";var o=e(42898);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},42898:function(){},16749:function(s,n,e){"use strict";var o=e(20180);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},20180:function(){},9273:function(s,n,e){"use strict";var o=e(9304);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},9304:function(){},60035:function(){},4406:function(s,n,e){"use strict";var o=e(60035);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(98709);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},98709:function(){},24886:function(){},66502:function(){},10283:function(s,n,e){"use strict";var o=e(8974);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},8974:function(){},99904:function(){},79811:function(s,n,e){"use strict";var o=e(95875);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},95875:function(){},93346:function(s,n,e){"use strict";var o=e(18754);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},18754:function(){},12271:function(s,n,e){"use strict";var o=e(56577);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},56577:function(){},61069:function(s,n,e){"use strict";var o=e(87646);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87646:function(){},77024:function(){},47651:function(){},13546:function(s,n,e){"use strict";var o=e(47651);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(99016);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},99016:function(){},90072:function(s,n,e){"use strict";var o=e(38954);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},38954:function(){},11442:function(s,n,e){"use strict";var o=e(90813);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},90813:function(){},64644:function(s,n,e){"use strict";var o=e(86595);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86595:function(){},24906:function(s,n,e){"use strict";var o=e(12714);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},12714:function(){},36503:function(s,n,e){"use strict";var o=e(89116);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},89116:function(){},85190:function(){},14585:function(){},1026:function(s,n,e){"use strict";var o=e(52972);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(14585);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},52972:function(){},76370:function(s,n,e){"use strict";var o=e(91626);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},91626:function(){},94515:function(s,n,e){"use strict";var o=e(58854);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},58854:function(){},26175:function(s,n,e){"use strict";var o=e(98545);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},98545:function(){},16776:function(s,n,e){"use strict";var o=e(11649);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},11649:function(){},64307:function(s,n,e){"use strict";var o=e(72902);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},72902:function(){},7958:function(){},90836:function(s,n,e){"use strict";var o=e(86050);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(7958);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},86050:function(){},53384:function(s,n,e){"use strict";e.d(n,{svgIconClasses:function(){return o.Z}});var o=e(62994)},40544:function(){},93633:function(){},67917:function(s,n,e){"use strict";var o=e(40544);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(93633);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},79964:function(){},49287:function(){},42279:function(s,n,e){"use strict";var o=e(49287);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},38650:function(){},93969:function(){},35797:function(s,n,e){"use strict";var o=e(85893),a=e(68917);n.Z=function(){let{sx:s,text:n,...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.jsx)(o.Fragment,{children:n&&(0,o.jsx)(a.Z,{...e,sx:{marginTop:".4em",...s},text:n})})}},18221:function(s,n,e){"use strict";e.d(n,{Z:function(){return v}});var o=e(85893),a=e(22961),t=e(72450),l=e(54799),u=e(54656),c=e(57709),i=e(67294),r=e(6010),C=e(94121);let OutlinedInput_OutlinedInput=s=>{let{endAdornment:n,label:e,onPasswordVisibilityAppend:v,sx:g,inputProps:{type:I,...f}={},type:p=I,...d}=s,[b,L]=(0,i.useState)(p),x=(0,i.useMemo)(()=>{let s=p===C.Z.password,n=b===C.Z.password;return(0,o.jsx)(o.Fragment,{children:s&&(0,o.jsx)(l.Z,{onClick:function(){for(var s=arguments.length,e=Array(s),o=0;o({color:r.s7,["& .".concat(u.Z.notchedOutline)]:{borderColor:r.UZ},["& .".concat(u.Z.input)]:{color:r.lD},"&:hover":{["& .".concat(u.Z.notchedOutline)]:{borderColor:r.s7}},["&.".concat(u.Z.focused)]:{color:r.lD,["& .".concat(u.Z.notchedOutline)]:{borderColor:r.s7,"& legend":{paddingRight:e?"1.2em":0}}},...g}),[e,g]),m=(0,i.useMemo)(()=>{let s;if("object"==typeof n){let{props:{children:e=[],...a}}=n;s=(0,i.cloneElement)(n,{...a,children:(0,o.jsxs)(o.Fragment,{children:[x,e]})})}return s},[x,n]);return(0,o.jsx)(c.Z,{endAdornment:m,label:e,inputProps:{type:b,...f},...d,sx:h})};OutlinedInput_OutlinedInput.defaultProps={onPasswordVisibilityAppend:void 0};var v=OutlinedInput_OutlinedInput},72278:function(s,n,e){"use strict";e.d(n,{Z:function(){return components_OutlinedInputLabel}});var o=e(85893),a=e(14957),t=e(29212),l=e(60076),u=e(5616),c=e(6010),components_OutlinedInputLabel=s=>{let{children:n,isNotifyRequired:e,sx:i,variant:r="outlined",...C}=s,v={color:"".concat(c.s7,"9F"),["& .".concat(t.svgIconClasses.root)]:{color:c.s7},["&.".concat(t.inputLabelClasses.focused)]:{backgroundColor:c.s7,borderRadius:c.n_,color:c.E5,padding:".1em .6em"},["&.".concat(t.inputLabelClasses.shrink," .").concat(t.svgIconClasses.root)]:{display:"none"},...i};return(0,o.jsx)(l.Z,{variant:r,...C,sx:v,children:(0,o.jsxs)(u.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[e&&(0,o.jsx)(a.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})})}},55675:function(s,n,e){"use strict";var o=e(85893),a=e(63094),t=e(53640),l=e(91057),u=e(96239),c=e(54799),i=e(67294),r=e(6010),C=e(35797),v=e(18221),g=e(72278);let I={baseInputProps:void 0,fillRow:!1,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},OutlinedInputWithLabel=s=>{let{baseInputProps:n,fillRow:e=I.fillRow,formControlProps:f=I.formControlProps,helpMessageBoxProps:p=I.helpMessageBoxProps,id:d=I.id,inputProps:{endAdornment:b,...L}=I.inputProps,inputLabelProps:x=I.inputLabelProps,label:h,messageBoxProps:m=I.messageBoxProps,name:Z,onBlur:j,onChange:P,onFocus:w,onHelp:O,onHelpAppend:y,required:k=I.required,type:_,value:M=I.value}=s,{sx:R,...A}=f,{text:F=""}=p,[W,B]=(0,i.useState)(!1),D=(0,i.useMemo)(()=>e?"100%":void 0,[e]),E=(0,i.useMemo)(()=>W&&(0,o.jsx)(C.Z,{onClose:()=>{B(!1)},...p}),[p,W]),q=(0,i.useMemo)(()=>void 0!==O||F.length>0,[F,O]),N=(0,i.useCallback)(()=>{let s;return O?s=O:F.length>0&&(s=function(){for(var s=arguments.length,n=Array(s),e=0;e!s),null==y||y.call(null,...n)}),s},[F,O,y]),H=(0,i.useMemo)(N,[N]);return(0,o.jsxs)(t.Z,{fullWidth:!0,...A,sx:{width:D,...R},children:[(0,o.jsx)(g.Z,{htmlFor:d,isNotifyRequired:k,...x,children:h}),(0,o.jsx)(v.Z,{endAdornment:(0,o.jsxs)(l.Z,{position:"end",sx:{display:"flex",flexDirection:"row",["& > .".concat(u.Z.root)]:{color:r.s7,padding:".2em"},["& > :not(:first-child, .".concat(u.Z.root,")")]:{marginLeft:".3em"}},children:[b,q&&(0,o.jsx)(c.Z,{onClick:H,tabIndex:-1,children:(0,o.jsx)(a.Z,{})})]}),fullWidth:f.fullWidth,id:d,inputProps:n,label:h,name:Z,onBlur:j,onChange:P,onFocus:w,type:_,value:M,...L}),E,(0,o.jsx)(C.Z,{...m})]})};OutlinedInputWithLabel.defaultProps=I,n.Z=OutlinedInputWithLabel},94121:function(s,n){"use strict";n.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[675],{29212:function(s,n,e){"use strict";e.d(n,{inputLabelClasses:function(){return sC.inputLabelClasses},svgIconClasses:function(){return s2.svgIconClasses}});var o=e(42279);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(38650);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}});var t=e(80080);e.o(t,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return t.inputLabelClasses}}),e.o(t,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return t.svgIconClasses}});var l=e(10451);e.o(l,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return l.inputLabelClasses}}),e.o(l,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return l.svgIconClasses}});var u=e(36363);e.o(u,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return u.inputLabelClasses}}),e.o(u,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return u.svgIconClasses}});var c=e(74831);e.o(c,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return c.inputLabelClasses}}),e.o(c,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return c.svgIconClasses}});var i=e(40081);e.o(i,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return i.inputLabelClasses}}),e.o(i,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return i.svgIconClasses}});var r=e(43103);e.o(r,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return r.inputLabelClasses}}),e.o(r,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return r.svgIconClasses}});var C=e(52665);e.o(C,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return C.inputLabelClasses}}),e.o(C,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return C.svgIconClasses}});var v=e(73878);e.o(v,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return v.inputLabelClasses}}),e.o(v,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return v.svgIconClasses}});var g=e(67790);e.o(g,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return g.inputLabelClasses}}),e.o(g,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return g.svgIconClasses}});var I=e(39967);e.o(I,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return I.inputLabelClasses}}),e.o(I,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return I.svgIconClasses}});var f=e(12635);e.o(f,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return f.inputLabelClasses}}),e.o(f,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return f.svgIconClasses}});var p=e(95366);e.o(p,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return p.inputLabelClasses}}),e.o(p,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return p.svgIconClasses}});var d=e(34806);e.o(d,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return d.inputLabelClasses}}),e.o(d,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return d.svgIconClasses}});var b=e(26928);e.o(b,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return b.inputLabelClasses}}),e.o(b,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return b.svgIconClasses}});var L=e(55545);e.o(L,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return L.inputLabelClasses}}),e.o(L,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return L.svgIconClasses}});var h=e(13158);e.o(h,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return h.inputLabelClasses}}),e.o(h,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return h.svgIconClasses}});var x=e(38163);e.o(x,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return x.inputLabelClasses}}),e.o(x,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return x.svgIconClasses}});var m=e(98054);e.o(m,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return m.inputLabelClasses}}),e.o(m,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return m.svgIconClasses}});var Z=e(73350);e.o(Z,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Z.inputLabelClasses}}),e.o(Z,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Z.svgIconClasses}});var j=e(10114);e.o(j,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return j.inputLabelClasses}}),e.o(j,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return j.svgIconClasses}});var P=e(99920);e.o(P,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return P.inputLabelClasses}}),e.o(P,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return P.svgIconClasses}});var O=e(61337);e.o(O,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return O.inputLabelClasses}}),e.o(O,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return O.svgIconClasses}});var y=e(75580);e.o(y,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return y.inputLabelClasses}}),e.o(y,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return y.svgIconClasses}});var w=e(53403);e.o(w,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return w.inputLabelClasses}}),e.o(w,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return w.svgIconClasses}});var k=e(71621);e.o(k,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return k.inputLabelClasses}}),e.o(k,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return k.svgIconClasses}});var M=e(14789);e.o(M,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return M.inputLabelClasses}}),e.o(M,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return M.svgIconClasses}});var _=e(23032);e.o(_,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return _.inputLabelClasses}}),e.o(_,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return _.svgIconClasses}});var A=e(5679);e.o(A,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return A.inputLabelClasses}}),e.o(A,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return A.svgIconClasses}});var F=e(89144);e.o(F,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return F.inputLabelClasses}}),e.o(F,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return F.svgIconClasses}});var R=e(99281);e.o(R,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return R.inputLabelClasses}}),e.o(R,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return R.svgIconClasses}});var W=e(57846);e.o(W,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return W.inputLabelClasses}}),e.o(W,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return W.svgIconClasses}});var B=e(32915);e.o(B,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return B.inputLabelClasses}}),e.o(B,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return B.svgIconClasses}});var D=e(79964);e.o(D,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return D.inputLabelClasses}}),e.o(D,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return D.svgIconClasses}});var E=e(98973);e.o(E,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return E.inputLabelClasses}}),e.o(E,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return E.svgIconClasses}});var q=e(40925);e.o(q,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return q.inputLabelClasses}}),e.o(q,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return q.svgIconClasses}});var N=e(26770);e.o(N,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return N.inputLabelClasses}}),e.o(N,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return N.svgIconClasses}});var H=e(17486);e.o(H,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return H.inputLabelClasses}}),e.o(H,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return H.svgIconClasses}});var S=e(30896);e.o(S,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return S.inputLabelClasses}}),e.o(S,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return S.svgIconClasses}});var T=e(82015);e.o(T,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return T.inputLabelClasses}}),e.o(T,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return T.svgIconClasses}});var U=e(93528);e.o(U,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return U.inputLabelClasses}}),e.o(U,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return U.svgIconClasses}});var V=e(8880);e.o(V,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return V.inputLabelClasses}}),e.o(V,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return V.svgIconClasses}});var z=e(49527);e.o(z,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return z.inputLabelClasses}}),e.o(z,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return z.svgIconClasses}});var G=e(96767);e.o(G,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return G.inputLabelClasses}}),e.o(G,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return G.svgIconClasses}});var J=e(74029);e.o(J,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return J.inputLabelClasses}}),e.o(J,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return J.svgIconClasses}});var K=e(19634);e.o(K,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return K.inputLabelClasses}}),e.o(K,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return K.svgIconClasses}});var Q=e(58350);e.o(Q,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Q.inputLabelClasses}}),e.o(Q,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Q.svgIconClasses}});var X=e(26989);e.o(X,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return X.inputLabelClasses}}),e.o(X,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return X.svgIconClasses}});var Y=e(85738);e.o(Y,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return Y.inputLabelClasses}}),e.o(Y,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return Y.svgIconClasses}});var $=e(20296);e.o($,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return $.inputLabelClasses}}),e.o($,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return $.svgIconClasses}});var ss=e(67917);e.o(ss,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return ss.inputLabelClasses}}),e.o(ss,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return ss.svgIconClasses}});var sn=e(86312);e.o(sn,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sn.inputLabelClasses}}),e.o(sn,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sn.svgIconClasses}});var se=e(42400);e.o(se,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return se.inputLabelClasses}}),e.o(se,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return se.svgIconClasses}});var so=e(58219);e.o(so,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return so.inputLabelClasses}}),e.o(so,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return so.svgIconClasses}});var sa=e(66607);e.o(sa,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sa.inputLabelClasses}}),e.o(sa,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sa.svgIconClasses}});var st=e(58008);e.o(st,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return st.inputLabelClasses}}),e.o(st,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return st.svgIconClasses}});var sl=e(29148);e.o(sl,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sl.inputLabelClasses}}),e.o(sl,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sl.svgIconClasses}});var su=e(10432);e.o(su,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return su.inputLabelClasses}}),e.o(su,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return su.svgIconClasses}});var sc=e(55129);e.o(sc,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sc.inputLabelClasses}}),e.o(sc,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sc.svgIconClasses}});var si=e(13728);e.o(si,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return si.inputLabelClasses}}),e.o(si,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return si.svgIconClasses}});var sr=e(43207);e.o(sr,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return sr.inputLabelClasses}}),e.o(sr,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sr.svgIconClasses}});var sC=e(74192);e.o(sC,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sC.svgIconClasses}});var sv=e(47929);e.o(sv,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sv.svgIconClasses}});var sg=e(94346);e.o(sg,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sg.svgIconClasses}});var sI=e(67482);e.o(sI,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sI.svgIconClasses}});var sf=e(36475);e.o(sf,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sf.svgIconClasses}});var sp=e(35393);e.o(sp,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sp.svgIconClasses}});var sd=e(7455);e.o(sd,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sd.svgIconClasses}});var sb=e(45216);e.o(sb,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sb.svgIconClasses}});var sL=e(69573);e.o(sL,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sL.svgIconClasses}});var sh=e(29744);e.o(sh,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sh.svgIconClasses}});var sx=e(12260);e.o(sx,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sx.svgIconClasses}});var sm=e(24324);e.o(sm,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sm.svgIconClasses}});var sZ=e(16360);e.o(sZ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sZ.svgIconClasses}});var sj=e(41512);e.o(sj,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sj.svgIconClasses}});var sP=e(15286);e.o(sP,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sP.svgIconClasses}});var sO=e(68262);e.o(sO,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sO.svgIconClasses}});var sy=e(93175);e.o(sy,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sy.svgIconClasses}});var sw=e(29185);e.o(sw,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sw.svgIconClasses}});var sk=e(66780);e.o(sk,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sk.svgIconClasses}});var sM=e(86799);e.o(sM,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sM.svgIconClasses}});var s_=e(16749);e.o(s_,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s_.svgIconClasses}});var sA=e(9273);e.o(sA,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sA.svgIconClasses}});var sF=e(4406);e.o(sF,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sF.svgIconClasses}});var sR=e(24886);e.o(sR,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sR.svgIconClasses}});var sW=e(66502);e.o(sW,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sW.svgIconClasses}});var sB=e(10283);e.o(sB,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sB.svgIconClasses}});var sD=e(99904);e.o(sD,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sD.svgIconClasses}});var sE=e(79811);e.o(sE,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sE.svgIconClasses}});var sq=e(93346);e.o(sq,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sq.svgIconClasses}});var sN=e(12271);e.o(sN,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sN.svgIconClasses}});var sH=e(61069);e.o(sH,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sH.svgIconClasses}});var sS=e(77024);e.o(sS,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sS.svgIconClasses}});var sT=e(13546);e.o(sT,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sT.svgIconClasses}});var sU=e(90072);e.o(sU,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sU.svgIconClasses}});var sV=e(11442);e.o(sV,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sV.svgIconClasses}});var sz=e(64644);e.o(sz,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sz.svgIconClasses}});var sG=e(24906);e.o(sG,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sG.svgIconClasses}});var sJ=e(36503);e.o(sJ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sJ.svgIconClasses}});var sK=e(85190);e.o(sK,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sK.svgIconClasses}});var sQ=e(1026);e.o(sQ,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sQ.svgIconClasses}});var sX=e(76370);e.o(sX,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sX.svgIconClasses}});var sY=e(94515);e.o(sY,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return sY.svgIconClasses}});var s$=e(26175);e.o(s$,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s$.svgIconClasses}});var s6=e(16776);e.o(s6,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s6.svgIconClasses}});var s9=e(64307);e.o(s9,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s9.svgIconClasses}});var s0=e(90836);e.o(s0,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return s0.svgIconClasses}});var s2=e(53384)},95883:function(){},80080:function(s,n,e){"use strict";var o=e(95883);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},23406:function(){},10451:function(s,n,e){"use strict";var o=e(23406);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},34567:function(){},36363:function(s,n,e){"use strict";var o=e(34567);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},91815:function(){},74831:function(s,n,e){"use strict";var o=e(91815);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},48249:function(){},40081:function(s,n,e){"use strict";var o=e(48249);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},17482:function(){},43103:function(s,n,e){"use strict";var o=e(17482);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},11206:function(){},52665:function(s,n,e){"use strict";var o=e(11206);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},99618:function(){},73878:function(s,n,e){"use strict";var o=e(99618);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},90859:function(){},67790:function(s,n,e){"use strict";var o=e(90859);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},19162:function(){},39967:function(s,n,e){"use strict";var o=e(19162);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79651:function(){},12635:function(s,n,e){"use strict";var o=e(79651);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},13897:function(){},95366:function(s,n,e){"use strict";var o=e(13897);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},15262:function(){},34806:function(s,n,e){"use strict";var o=e(15262);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},61663:function(){},26928:function(s,n,e){"use strict";var o=e(61663);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},60678:function(){},55545:function(s,n,e){"use strict";var o=e(60678);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},78390:function(){},13158:function(s,n,e){"use strict";var o=e(78390);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},6783:function(){},38163:function(s,n,e){"use strict";var o=e(6783);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},96987:function(){},98054:function(s,n,e){"use strict";var o=e(96987);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(94156);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},94156:function(){},76985:function(){},73350:function(s,n,e){"use strict";var o=e(76985);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},13904:function(){},10114:function(s,n,e){"use strict";var o=e(13904);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},69249:function(){},99920:function(s,n,e){"use strict";var o=e(69249);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},26720:function(){},61337:function(s,n,e){"use strict";var o=e(26720);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79398:function(){},75580:function(s,n,e){"use strict";var o=e(79398);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},83261:function(){},53403:function(s,n,e){"use strict";var o=e(83261);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},61727:function(){},71621:function(s,n,e){"use strict";var o=e(61727);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4052:function(){},14789:function(s,n,e){"use strict";var o=e(4052);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},81413:function(){},23032:function(s,n,e){"use strict";var o=e(81413);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},62617:function(){},5679:function(s,n,e){"use strict";var o=e(62617);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},89144:function(){},50538:function(){},99281:function(s,n,e){"use strict";var o=e(50538);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},23261:function(){},57846:function(s,n,e){"use strict";var o=e(23261);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},32915:function(){},47536:function(){},98973:function(s,n,e){"use strict";var o=e(47536);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},94241:function(){},40925:function(s,n,e){"use strict";var o=e(94241);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},88386:function(){},26770:function(s,n,e){"use strict";var o=e(88386);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},62028:function(){},17486:function(s,n,e){"use strict";var o=e(62028);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},9152:function(){},30896:function(s,n,e){"use strict";var o=e(9152);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},98775:function(){},82015:function(s,n,e){"use strict";var o=e(98775);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},16803:function(){},93528:function(s,n,e){"use strict";var o=e(16803);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},35057:function(){},8880:function(s,n,e){"use strict";var o=e(35057);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},49527:function(){},28699:function(){},96767:function(s,n,e){"use strict";var o=e(28699);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},42906:function(){},74029:function(s,n,e){"use strict";var o=e(42906);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},56651:function(){},19634:function(s,n,e){"use strict";var o=e(56651);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},2980:function(){},58350:function(s,n,e){"use strict";var o=e(2980);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},71637:function(){},26989:function(s,n,e){"use strict";var o=e(71637);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},938:function(){},28262:function(){},85738:function(s,n,e){"use strict";var o=e(938);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(28262);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},49507:function(){},20296:function(s,n,e){"use strict";var o=e(49507);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86312:function(){},42400:function(){},69487:function(){},58219:function(s,n,e){"use strict";var o=e(69487);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},84584:function(){},66607:function(s,n,e){"use strict";var o=e(84584);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},5063:function(){},58008:function(s,n,e){"use strict";var o=e(5063);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87303:function(){},29148:function(s,n,e){"use strict";var o=e(87303);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},1256:function(){},10432:function(s,n,e){"use strict";var o=e(1256);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},55129:function(s,n,e){"use strict";var o=e(75711);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},75711:function(){},13728:function(s,n,e){"use strict";var o=e(4324);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4324:function(){},43207:function(s,n,e){"use strict";var o=e(21953);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},21953:function(){},74192:function(s,n,e){"use strict";e.d(n,{inputLabelClasses:function(){return o.Z}});var o=e(56727),a=e(93969);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},47929:function(s,n,e){"use strict";var o=e(72535);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},72535:function(){},94346:function(s,n,e){"use strict";var o=e(84162);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},84162:function(){},67482:function(s,n,e){"use strict";var o=e(4974);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},4974:function(){},36475:function(s,n,e){"use strict";var o=e(25606);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},25606:function(){},35393:function(s,n,e){"use strict";var o=e(35459);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},35459:function(){},7455:function(s,n,e){"use strict";var o=e(87920);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87920:function(){},45216:function(s,n,e){"use strict";var o=e(82665);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},82665:function(){},69573:function(s,n,e){"use strict";var o=e(27847);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},27847:function(){},29744:function(s,n,e){"use strict";var o=e(86015);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86015:function(){},12260:function(s,n,e){"use strict";var o=e(27606);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},27606:function(){},24324:function(s,n,e){"use strict";var o=e(92399);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},92399:function(){},16360:function(s,n,e){"use strict";var o=e(30044);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},30044:function(){},41512:function(){},15286:function(s,n,e){"use strict";var o=e(79346);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},79346:function(){},68262:function(s,n,e){"use strict";var o=e(29487);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},29487:function(){},93175:function(s,n,e){"use strict";var o=e(20860);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},20860:function(){},29185:function(){},66780:function(s,n,e){"use strict";var o=e(19142);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},19142:function(){},86799:function(s,n,e){"use strict";var o=e(42898);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},42898:function(){},16749:function(s,n,e){"use strict";var o=e(20180);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},20180:function(){},9273:function(s,n,e){"use strict";var o=e(9304);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},9304:function(){},60035:function(){},4406:function(s,n,e){"use strict";var o=e(60035);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(98709);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},98709:function(){},24886:function(){},66502:function(){},10283:function(s,n,e){"use strict";var o=e(8974);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},8974:function(){},99904:function(){},79811:function(s,n,e){"use strict";var o=e(95875);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},95875:function(){},93346:function(s,n,e){"use strict";var o=e(18754);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},18754:function(){},12271:function(s,n,e){"use strict";var o=e(56577);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},56577:function(){},61069:function(s,n,e){"use strict";var o=e(87646);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},87646:function(){},77024:function(){},47651:function(){},13546:function(s,n,e){"use strict";var o=e(47651);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(99016);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},99016:function(){},90072:function(s,n,e){"use strict";var o=e(38954);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},38954:function(){},11442:function(s,n,e){"use strict";var o=e(90813);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},90813:function(){},64644:function(s,n,e){"use strict";var o=e(86595);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},86595:function(){},24906:function(s,n,e){"use strict";var o=e(12714);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},12714:function(){},36503:function(s,n,e){"use strict";var o=e(89116);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},89116:function(){},85190:function(){},14585:function(){},1026:function(s,n,e){"use strict";var o=e(52972);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(14585);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},52972:function(){},76370:function(s,n,e){"use strict";var o=e(91626);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},91626:function(){},94515:function(s,n,e){"use strict";var o=e(58854);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},58854:function(){},26175:function(s,n,e){"use strict";var o=e(98545);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},98545:function(){},16776:function(s,n,e){"use strict";var o=e(11649);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},11649:function(){},64307:function(s,n,e){"use strict";var o=e(72902);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},72902:function(){},7958:function(){},90836:function(s,n,e){"use strict";var o=e(86050);e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(7958);e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},86050:function(){},53384:function(s,n,e){"use strict";e.d(n,{svgIconClasses:function(){return o.Z}});var o=e(62994)},40544:function(){},93633:function(){},67917:function(s,n,e){"use strict";var o=e(40544);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}});var a=e(93633);e.o(a,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return a.inputLabelClasses}}),e.o(a,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return a.svgIconClasses}})},79964:function(){},49287:function(){},42279:function(s,n,e){"use strict";var o=e(49287);e.o(o,"inputLabelClasses")&&e.d(n,{inputLabelClasses:function(){return o.inputLabelClasses}}),e.o(o,"svgIconClasses")&&e.d(n,{svgIconClasses:function(){return o.svgIconClasses}})},38650:function(){},93969:function(){},35797:function(s,n,e){"use strict";var o=e(85893),a=e(68917);n.Z=function(){let{sx:s,text:n,...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.jsx)(o.Fragment,{children:n&&(0,o.jsx)(a.Z,{...e,sx:{marginTop:".4em",...s},text:n})})}},18221:function(s,n,e){"use strict";e.d(n,{Z:function(){return v}});var o=e(85893),a=e(22961),t=e(72450),l=e(54799),u=e(54656),c=e(57709),i=e(67294),r=e(6010),C=e(94121);let OutlinedInput_OutlinedInput=s=>{let{disableAutofill:n=!1,endAdornment:e,label:v,onPasswordVisibilityAppend:g,sx:I,inputProps:{type:f,...p}={},type:d=f,...b}=s,[L,h]=(0,i.useState)(d),x=(0,i.useMemo)(()=>{let s=d===C.Z.password,n=L===C.Z.password;return(0,o.jsx)(o.Fragment,{children:s&&(0,o.jsx)(l.Z,{onClick:function(){for(var s=arguments.length,e=Array(s),o=0;o({color:r.s7,["& .".concat(u.Z.notchedOutline)]:{borderColor:r.UZ},["& .".concat(u.Z.input)]:{color:r.lD},"&:hover":{["& .".concat(u.Z.notchedOutline)]:{borderColor:r.s7}},["&.".concat(u.Z.focused)]:{color:r.lD,["& .".concat(u.Z.notchedOutline)]:{borderColor:r.s7,"& legend":{paddingRight:v?"1.2em":0}}},...I}),[v,I]),Z=(0,i.useMemo)(()=>{let s;if("object"==typeof e){let{props:{children:n=[],...a}}=e;s=(0,i.cloneElement)(e,{...a,children:(0,o.jsxs)(o.Fragment,{children:[x,n]})})}return s},[x,e]),j=(0,i.useMemo)(()=>n?{onFocus:function(){for(var s,n=arguments.length,e=Array(n),o=0;o{let{children:n,isNotifyRequired:e,sx:i,variant:r="outlined",...C}=s,v={color:"".concat(c.s7,"9F"),["& .".concat(t.svgIconClasses.root)]:{color:c.s7},["&.".concat(t.inputLabelClasses.focused)]:{backgroundColor:c.s7,borderRadius:c.n_,color:c.E5,padding:".1em .6em"},["&.".concat(t.inputLabelClasses.shrink," .").concat(t.svgIconClasses.root)]:{display:"none"},...i};return(0,o.jsx)(l.Z,{variant:r,...C,sx:v,children:(0,o.jsxs)(u.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[e&&(0,o.jsx)(a.Z,{sx:{marginLeft:"-.2rem",marginRight:".4rem"}}),n]})})}},55675:function(s,n,e){"use strict";var o=e(85893),a=e(63094),t=e(53640),l=e(91057),u=e(96239),c=e(54799),i=e(67294),r=e(6010),C=e(35797),v=e(18221),g=e(72278);let I={baseInputProps:void 0,fillRow:!1,formControlProps:{},helpMessageBoxProps:{},id:"",inputProps:{},inputLabelProps:{},messageBoxProps:{},onHelp:void 0,onHelpAppend:void 0,required:!1,type:void 0,value:""},OutlinedInputWithLabel=s=>{let{baseInputProps:n,disableAutofill:e,fillRow:f=I.fillRow,formControlProps:p=I.formControlProps,helpMessageBoxProps:d=I.helpMessageBoxProps,id:b=I.id,inputProps:{endAdornment:L,...h}=I.inputProps,inputLabelProps:x=I.inputLabelProps,label:m,messageBoxProps:Z=I.messageBoxProps,name:j,onBlur:P,onChange:O,onFocus:y,onHelp:w,onHelpAppend:k,required:M=I.required,type:_,value:A=I.value}=s,{sx:F,...R}=p,{text:W=""}=d,[B,D]=(0,i.useState)(!1),E=(0,i.useMemo)(()=>f?"100%":void 0,[f]),q=(0,i.useMemo)(()=>B&&(0,o.jsx)(C.Z,{onClose:()=>{D(!1)},...d}),[d,B]),N=(0,i.useMemo)(()=>void 0!==w||W.length>0,[W,w]),H=(0,i.useCallback)(()=>{let s;return w?s=w:W.length>0&&(s=function(){for(var s=arguments.length,n=Array(s),e=0;e!s),null==k||k.call(null,...n)}),s},[W,w,k]),S=(0,i.useMemo)(H,[H]);return(0,o.jsxs)(t.Z,{fullWidth:!0,...R,sx:{width:E,...F},children:[(0,o.jsx)(g.Z,{htmlFor:b,isNotifyRequired:M,...x,children:m}),(0,o.jsx)(v.Z,{disableAutofill:e,endAdornment:(0,o.jsxs)(l.Z,{position:"end",sx:{display:"flex",flexDirection:"row",["& > .".concat(u.Z.root)]:{color:r.s7,padding:".2em"},["& > :not(:first-child, .".concat(u.Z.root,")")]:{marginLeft:".3em"}},children:[L,N&&(0,o.jsx)(c.Z,{onClick:S,tabIndex:-1,children:(0,o.jsx)(a.Z,{})})]}),fullWidth:p.fullWidth,id:b,inputProps:n,label:m,name:j,onBlur:P,onChange:O,onFocus:y,type:_,value:A,...h}),q,(0,o.jsx)(C.Z,{...Z})]})};OutlinedInputWithLabel.defaultProps=I,n.Z=OutlinedInputWithLabel},94121:function(s,n){"use strict";n.Z={checkbox:"checkbox",number:"number",password:"password",text:"text"}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/750-b9b6c5fdabc264a0.js b/striker-ui/out/_next/static/chunks/750-9f873f4e10dbcacd.js similarity index 73% rename from striker-ui/out/_next/static/chunks/750-b9b6c5fdabc264a0.js rename to striker-ui/out/_next/static/chunks/750-9f873f4e10dbcacd.js index 1bfcee9c..6b41bd30 100644 --- a/striker-ui/out/_next/static/chunks/750-b9b6c5fdabc264a0.js +++ b/striker-ui/out/_next/static/chunks/750-9f873f4e10dbcacd.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{29685:function(t,s,n){"use strict";n.d(s,{formControlClasses:function(){return Y.formControlClasses},outlinedInputClasses:function(){return tB.outlinedInputClasses}});var e=n(47959);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(37703);n.o(o,"formControlClasses")&&n.d(s,{formControlClasses:function(){return o.formControlClasses}}),n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}});var l=n(59708);n.o(l,"formControlClasses")&&n.d(s,{formControlClasses:function(){return l.formControlClasses}}),n.o(l,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return l.outlinedInputClasses}});var u=n(16058);n.o(u,"formControlClasses")&&n.d(s,{formControlClasses:function(){return u.formControlClasses}}),n.o(u,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return u.outlinedInputClasses}});var r=n(28796);n.o(r,"formControlClasses")&&n.d(s,{formControlClasses:function(){return r.formControlClasses}}),n.o(r,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return r.outlinedInputClasses}});var i=n(70061);n.o(i,"formControlClasses")&&n.d(s,{formControlClasses:function(){return i.formControlClasses}}),n.o(i,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return i.outlinedInputClasses}});var a=n(36950);n.o(a,"formControlClasses")&&n.d(s,{formControlClasses:function(){return a.formControlClasses}}),n.o(a,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return a.outlinedInputClasses}});var d=n(9947);n.o(d,"formControlClasses")&&n.d(s,{formControlClasses:function(){return d.formControlClasses}}),n.o(d,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return d.outlinedInputClasses}});var C=n(6761);n.o(C,"formControlClasses")&&n.d(s,{formControlClasses:function(){return C.formControlClasses}}),n.o(C,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return C.outlinedInputClasses}});var c=n(17276);n.o(c,"formControlClasses")&&n.d(s,{formControlClasses:function(){return c.formControlClasses}}),n.o(c,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return c.outlinedInputClasses}});var p=n(53704);n.o(p,"formControlClasses")&&n.d(s,{formControlClasses:function(){return p.formControlClasses}}),n.o(p,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return p.outlinedInputClasses}});var f=n(48982);n.o(f,"formControlClasses")&&n.d(s,{formControlClasses:function(){return f.formControlClasses}}),n.o(f,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return f.outlinedInputClasses}});var I=n(44343);n.o(I,"formControlClasses")&&n.d(s,{formControlClasses:function(){return I.formControlClasses}}),n.o(I,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return I.outlinedInputClasses}});var m=n(8267);n.o(m,"formControlClasses")&&n.d(s,{formControlClasses:function(){return m.formControlClasses}}),n.o(m,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return m.outlinedInputClasses}});var v=n(17091);n.o(v,"formControlClasses")&&n.d(s,{formControlClasses:function(){return v.formControlClasses}}),n.o(v,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return v.outlinedInputClasses}});var h=n(90842);n.o(h,"formControlClasses")&&n.d(s,{formControlClasses:function(){return h.formControlClasses}}),n.o(h,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return h.outlinedInputClasses}});var g=n(44044);n.o(g,"formControlClasses")&&n.d(s,{formControlClasses:function(){return g.formControlClasses}}),n.o(g,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return g.outlinedInputClasses}});var x=n(91687);n.o(x,"formControlClasses")&&n.d(s,{formControlClasses:function(){return x.formControlClasses}}),n.o(x,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return x.outlinedInputClasses}});var S=n(2117);n.o(S,"formControlClasses")&&n.d(s,{formControlClasses:function(){return S.formControlClasses}}),n.o(S,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return S.outlinedInputClasses}});var U=n(90287);n.o(U,"formControlClasses")&&n.d(s,{formControlClasses:function(){return U.formControlClasses}}),n.o(U,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return U.outlinedInputClasses}});var b=n(21897);n.o(b,"formControlClasses")&&n.d(s,{formControlClasses:function(){return b.formControlClasses}}),n.o(b,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return b.outlinedInputClasses}});var D=n(60200);n.o(D,"formControlClasses")&&n.d(s,{formControlClasses:function(){return D.formControlClasses}}),n.o(D,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return D.outlinedInputClasses}});var y=n(51791);n.o(y,"formControlClasses")&&n.d(s,{formControlClasses:function(){return y.formControlClasses}}),n.o(y,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return y.outlinedInputClasses}});var j=n(1536);n.o(j,"formControlClasses")&&n.d(s,{formControlClasses:function(){return j.formControlClasses}}),n.o(j,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return j.outlinedInputClasses}});var _=n(26088);n.o(_,"formControlClasses")&&n.d(s,{formControlClasses:function(){return _.formControlClasses}}),n.o(_,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return _.outlinedInputClasses}});var P=n(40324);n.o(P,"formControlClasses")&&n.d(s,{formControlClasses:function(){return P.formControlClasses}}),n.o(P,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return P.outlinedInputClasses}});var B=n(36723);n.o(B,"formControlClasses")&&n.d(s,{formControlClasses:function(){return B.formControlClasses}}),n.o(B,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return B.outlinedInputClasses}});var M=n(98038);n.o(M,"formControlClasses")&&n.d(s,{formControlClasses:function(){return M.formControlClasses}}),n.o(M,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return M.outlinedInputClasses}});var z=n(70074);n.o(z,"formControlClasses")&&n.d(s,{formControlClasses:function(){return z.formControlClasses}}),n.o(z,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return z.outlinedInputClasses}});var k=n(27681);n.o(k,"formControlClasses")&&n.d(s,{formControlClasses:function(){return k.formControlClasses}}),n.o(k,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return k.outlinedInputClasses}});var F=n(15329);n.o(F,"formControlClasses")&&n.d(s,{formControlClasses:function(){return F.formControlClasses}}),n.o(F,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return F.outlinedInputClasses}});var G=n(22158);n.o(G,"formControlClasses")&&n.d(s,{formControlClasses:function(){return G.formControlClasses}}),n.o(G,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return G.outlinedInputClasses}});var A=n(91907);n.o(A,"formControlClasses")&&n.d(s,{formControlClasses:function(){return A.formControlClasses}}),n.o(A,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return A.outlinedInputClasses}});var Z=n(89909);n.o(Z,"formControlClasses")&&n.d(s,{formControlClasses:function(){return Z.formControlClasses}}),n.o(Z,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Z.outlinedInputClasses}});var T=n(11594);n.o(T,"formControlClasses")&&n.d(s,{formControlClasses:function(){return T.formControlClasses}}),n.o(T,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return T.outlinedInputClasses}});var w=n(39101);n.o(w,"formControlClasses")&&n.d(s,{formControlClasses:function(){return w.formControlClasses}}),n.o(w,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return w.outlinedInputClasses}});var O=n(73498);n.o(O,"formControlClasses")&&n.d(s,{formControlClasses:function(){return O.formControlClasses}}),n.o(O,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return O.outlinedInputClasses}});var N=n(7659);n.o(N,"formControlClasses")&&n.d(s,{formControlClasses:function(){return N.formControlClasses}}),n.o(N,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return N.outlinedInputClasses}});var V=n(40373);n.o(V,"formControlClasses")&&n.d(s,{formControlClasses:function(){return V.formControlClasses}}),n.o(V,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return V.outlinedInputClasses}});var L=n(64716);n.o(L,"formControlClasses")&&n.d(s,{formControlClasses:function(){return L.formControlClasses}}),n.o(L,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return L.outlinedInputClasses}});var Q=n(49205);n.o(Q,"formControlClasses")&&n.d(s,{formControlClasses:function(){return Q.formControlClasses}}),n.o(Q,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Q.outlinedInputClasses}});var R=n(54878);n.o(R,"formControlClasses")&&n.d(s,{formControlClasses:function(){return R.formControlClasses}}),n.o(R,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return R.outlinedInputClasses}});var E=n(53318);n.o(E,"formControlClasses")&&n.d(s,{formControlClasses:function(){return E.formControlClasses}}),n.o(E,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return E.outlinedInputClasses}});var q=n(21489);n.o(q,"formControlClasses")&&n.d(s,{formControlClasses:function(){return q.formControlClasses}}),n.o(q,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return q.outlinedInputClasses}});var W=n(17812);n.o(W,"formControlClasses")&&n.d(s,{formControlClasses:function(){return W.formControlClasses}}),n.o(W,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return W.outlinedInputClasses}});var Y=n(46341);n.o(Y,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Y.outlinedInputClasses}});var $=n(82749);n.o($,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return $.outlinedInputClasses}});var H=n(6372);n.o(H,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return H.outlinedInputClasses}});var J=n(20358);n.o(J,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return J.outlinedInputClasses}});var K=n(46526);n.o(K,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return K.outlinedInputClasses}});var X=n(67499);n.o(X,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return X.outlinedInputClasses}});var tt=n(43844);n.o(tt,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tt.outlinedInputClasses}});var ts=n(69827);n.o(ts,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ts.outlinedInputClasses}});var tn=n(81662);n.o(tn,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tn.outlinedInputClasses}});var te=n(44954);n.o(te,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return te.outlinedInputClasses}});var to=n(42368);n.o(to,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return to.outlinedInputClasses}});var tl=n(72157);n.o(tl,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tl.outlinedInputClasses}});var tu=n(79134);n.o(tu,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tu.outlinedInputClasses}});var tr=n(97095);n.o(tr,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tr.outlinedInputClasses}});var ti=n(69979);n.o(ti,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ti.outlinedInputClasses}});var ta=n(20436);n.o(ta,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ta.outlinedInputClasses}});var td=n(23924);n.o(td,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return td.outlinedInputClasses}});var tC=n(8658);n.o(tC,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tC.outlinedInputClasses}});var tc=n(89011);n.o(tc,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tc.outlinedInputClasses}});var tp=n(23368);n.o(tp,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tp.outlinedInputClasses}});var tf=n(1534);n.o(tf,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tf.outlinedInputClasses}});var tI=n(58160);n.o(tI,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tI.outlinedInputClasses}});var tm=n(26504);n.o(tm,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tm.outlinedInputClasses}});var tv=n(23625);n.o(tv,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tv.outlinedInputClasses}});var th=n(99355);n.o(th,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return th.outlinedInputClasses}});var tg=n(58420);n.o(tg,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tg.outlinedInputClasses}});var tx=n(85746);n.o(tx,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tx.outlinedInputClasses}});var tS=n(26010);n.o(tS,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tS.outlinedInputClasses}});var tU=n(21883);n.o(tU,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tU.outlinedInputClasses}});var tb=n(92663);n.o(tb,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tb.outlinedInputClasses}});var tD=n(64301);n.o(tD,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tD.outlinedInputClasses}});var ty=n(46025);n.o(ty,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ty.outlinedInputClasses}});var tj=n(91641);n.o(tj,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tj.outlinedInputClasses}});var t_=n(43263);n.o(t_,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return t_.outlinedInputClasses}});var tP=n(93820);n.o(tP,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tP.outlinedInputClasses}});var tB=n(79997)},52563:function(){},59708:function(t,s,n){"use strict";var e=n(52563);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},11491:function(){},16058:function(t,s,n){"use strict";var e=n(11491);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32387:function(){},28796:function(t,s,n){"use strict";var e=n(32387);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},59711:function(){},70061:function(t,s,n){"use strict";var e=n(59711);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},51334:function(){},36950:function(t,s,n){"use strict";var e=n(51334);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},50568:function(){},9947:function(t,s,n){"use strict";var e=n(50568);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15016:function(){},6761:function(t,s,n){"use strict";var e=n(15016);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},9249:function(){},17276:function(t,s,n){"use strict";var e=n(9249);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},39249:function(){},53704:function(t,s,n){"use strict";var e=n(39249);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},25285:function(){},48982:function(t,s,n){"use strict";var e=n(25285);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32464:function(){},44343:function(t,s,n){"use strict";var e=n(32464);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},13272:function(){},8267:function(t,s,n){"use strict";var e=n(13272);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32218:function(){},17091:function(t,s,n){"use strict";var e=n(32218);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},13368:function(){},90842:function(t,s,n){"use strict";var e=n(13368);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},9812:function(){},44044:function(t,s,n){"use strict";var e=n(9812);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},4871:function(){},91687:function(t,s,n){"use strict";var e=n(4871);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},8931:function(){},2117:function(t,s,n){"use strict";var e=n(8931);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},95171:function(){},90287:function(t,s,n){"use strict";var e=n(95171);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(17321);n.o(o,"formControlClasses")&&n.d(s,{formControlClasses:function(){return o.formControlClasses}}),n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},17321:function(){},83299:function(){},21897:function(t,s,n){"use strict";var e=n(83299);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},57285:function(){},60200:function(t,s,n){"use strict";var e=n(57285);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},25793:function(){},51791:function(t,s,n){"use strict";var e=n(25793);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},57423:function(){},1536:function(t,s,n){"use strict";var e=n(57423);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},17911:function(){},26088:function(t,s,n){"use strict";var e=n(17911);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},45783:function(){},40324:function(t,s,n){"use strict";var e=n(45783);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},86039:function(){},36723:function(t,s,n){"use strict";var e=n(86039);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},10795:function(){},98038:function(t,s,n){"use strict";var e=n(10795);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},84725:function(){},70074:function(t,s,n){"use strict";var e=n(84725);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},35672:function(){},27681:function(t,s,n){"use strict";var e=n(35672);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15329:function(){},13237:function(){},22158:function(t,s,n){"use strict";var e=n(13237);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},73829:function(){},91907:function(t,s,n){"use strict";var e=n(73829);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},89909:function(){},27802:function(){},39101:function(t,s,n){"use strict";var e=n(27802);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},58635:function(){},73498:function(t,s,n){"use strict";var e=n(58635);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},52307:function(){},7659:function(t,s,n){"use strict";var e=n(52307);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},10028:function(){},40373:function(t,s,n){"use strict";var e=n(10028);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},41624:function(){},64716:function(t,s,n){"use strict";var e=n(41624);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},73431:function(){},49205:function(t,s,n){"use strict";var e=n(73431);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},12495:function(){},54878:function(t,s,n){"use strict";var e=n(12495);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},67358:function(){},53318:function(t,s,n){"use strict";var e=n(67358);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},21489:function(){},15813:function(){},17812:function(t,s,n){"use strict";var e=n(15813);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},46341:function(t,s,n){"use strict";n.d(s,{formControlClasses:function(){return e.Z}});var e=n(47120),o=n(22018);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},85173:function(){},82749:function(t,s,n){"use strict";var e=n(85173);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},33600:function(){},6372:function(t,s,n){"use strict";var e=n(33600);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},21630:function(){},20358:function(t,s,n){"use strict";var e=n(21630);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},16962:function(){},48108:function(){},46526:function(t,s,n){"use strict";var e=n(16962);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(48108);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},24632:function(){},67499:function(t,s,n){"use strict";var e=n(24632);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},69827:function(){},81662:function(){},30720:function(){},44954:function(t,s,n){"use strict";var e=n(30720);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},30330:function(){},42368:function(t,s,n){"use strict";var e=n(30330);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},40947:function(){},72157:function(t,s,n){"use strict";var e=n(40947);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},16145:function(){},79134:function(t,s,n){"use strict";var e=n(16145);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},42426:function(){},97095:function(t,s,n){"use strict";var e=n(42426);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},69979:function(t,s,n){"use strict";var e=n(35552);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},35552:function(){},20436:function(t,s,n){"use strict";var e=n(46722);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},46722:function(){},23924:function(t,s,n){"use strict";var e=n(58680);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},58680:function(){},8658:function(t,s,n){"use strict";var e=n(97681);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},97681:function(){},89011:function(t,s,n){"use strict";var e=n(615);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},615:function(){},23368:function(t,s,n){"use strict";var e=n(98403);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},98403:function(){},1534:function(t,s,n){"use strict";var e=n(66826);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},66826:function(){},58160:function(t,s,n){"use strict";var e=n(80775);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80775:function(){},26504:function(t,s,n){"use strict";var e=n(15979);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15979:function(){},23625:function(t,s,n){"use strict";var e=n(14132);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},14132:function(){},99355:function(t,s,n){"use strict";var e=n(19382);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},19382:function(){},58420:function(t,s,n){"use strict";var e=n(93396);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},93396:function(){},85746:function(t,s,n){"use strict";var e=n(80984);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80984:function(){},26010:function(t,s,n){"use strict";var e=n(80748);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80748:function(){},21883:function(t,s,n){"use strict";var e=n(33105);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},33105:function(){},92663:function(t,s,n){"use strict";var e=n(66818);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},66818:function(){},64301:function(){},46025:function(t,s,n){"use strict";var e=n(48560);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},48560:function(){},91641:function(t,s,n){"use strict";var e=n(26978);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},26978:function(){},43263:function(t,s,n){"use strict";var e=n(18594);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},18594:function(){},93820:function(){},79997:function(t,s,n){"use strict";n.d(s,{outlinedInputClasses:function(){return e.Z}});var e=n(54656)},68269:function(){},97426:function(){},43844:function(t,s,n){"use strict";var e=n(68269);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(97426);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},11594:function(){},22995:function(){},47959:function(t,s,n){"use strict";var e=n(22995);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},37703:function(){},22018:function(){},88750:function(t,s,n){"use strict";let e,o;n.d(s,{Z:function(){return components_ProvisionServerDialog}});var l=n(85893),u=n(67294),r=n(5616),i=n(48263),a=n(78262),d=n(50594),C=n(25934),c=n(6010),p=n(67645),f=n(89712),I=n(56597),m=n(19467),v=n(56746),h=n(83221),g=n(68917),x=n(55675),S=n(29685),U=n(35797),b=n(52886);let D={inputWithLabelProps:{},messageBoxProps:{},selectWithLabelProps:{}},OutlinedLabeledInputWithSelect=t=>{let{id:s,label:n,inputWithLabelProps:e=D.inputWithLabelProps,messageBoxProps:o=D.messageBoxProps,selectItems:u,selectWithLabelProps:i=D.selectWithLabelProps}=t;return(0,l.jsxs)(r.Z,{children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"row","& > :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"},["&:hover\n .".concat(S.formControlClasses.root,"\n .").concat(S.outlinedInputClasses.root,"\n .").concat(S.outlinedInputClasses.notchedOutline)]:{borderColor:c.s7}},children:[(0,l.jsx)(x.Z,{id:s,label:n,...e}),(0,l.jsx)(b.Z,{formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(s,"-nested-select"),selectItems:u,...i})]}),(0,l.jsx)(U.Z,{...o})]})};OutlinedLabeledInputWithSelect.defaultProps=D;var y=n(37260),j=n(81796),_=n(50233),P=n(84154);let B=BigInt(0),M=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],z=BigInt(65536),k=BigInt(104857600),F={backgroundColor:c.Ej,color:c.lD,"&:hover":{backgroundColor:c.Ej}},createMaxValueButton=(t,s)=>{let{onButtonClick:n}=s;return(0,l.jsx)(m.Z,{disabled:void 0===n,onClick:n,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(t)})},createSelectItemDisplay=function(){let{endAdornment:t,mainLabel:s,subLabel:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.jsxs)(r.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:[s&&(0,l.jsx)(P.Ac,{inverted:!0,text:s}),n&&(0,l.jsx)(P.Ac,{inverted:!0,text:n})]}),t]})},organizeAnvils=t=>{let s={},n=t.reduce((t,n)=>{let{anvilUUID:e,anvilName:o,anvilTotalMemory:u,anvilTotalAllocatedMemory:i,anvilTotalAvailableMemory:a,hosts:d,servers:C,storageGroups:c,files:p}=n,{anvilStorageGroups:f,anvilStorageGroupUUIDs:I}=c.reduce((s,n)=>{let u={...n,anvilUUID:e,anvilName:o,storageGroupSize:BigInt(n.storageGroupSize),storageGroupFree:BigInt(n.storageGroupFree),humanizedStorageGroupFree:""};return(0,v.Bh)(n.storageGroupFree,{fromUnit:"B",onSuccess:{string:(t,s)=>{u.humanizedStorageGroupFree="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),s.anvilStorageGroupUUIDs.push(n.storageGroupUUID),s.anvilStorageGroups.push(u),t.storageGroups.push(u),t.storageGroupSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsx)(P.Ac,{inverted:!0,text:"~".concat(u.humanizedStorageGroupFree," free")}),mainLabel:n.storageGroupName,subLabel:o}),value:n.storageGroupUUID}),t.storageGroupUUIDMapToData[n.storageGroupUUID]=u,s},{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=[];p.forEach(t=>{let{fileUUID:n}=t;m.push(n),s[n]=t});let h={...n,anvilTotalMemory:BigInt(u),anvilTotalAllocatedMemory:BigInt(i),anvilTotalAvailableMemory:BigInt(a),humanizedAnvilTotalAvailableMemory:"",hosts:d.map(t=>({...t,hostMemory:BigInt(t.hostMemory)})),servers:C.map(s=>{let{serverMemory:n,serverName:e,...o}=s,l={...o,serverMemory:BigInt(n),serverName:e};return t.serverNameMapToData[e]=l,l}),storageGroupUUIDs:I,storageGroups:f,fileUUIDs:m};return(0,v.Bh)(a,{fromUnit:"B",onSuccess:{string:(t,s)=>{h.humanizedAnvilTotalAvailableMemory="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),t.anvils.push(h),t.anvilSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,l.jsx)(P.Ac,{inverted:!0,text:"CPU: ".concat(h.anvilTotalCPUCores," cores")}),(0,l.jsx)(P.Ac,{inverted:!0,text:"Memory: ~".concat(h.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:h.anvilName,subLabel:h.anvilDescription}),value:e}),t.anvilUUIDMapToData[e]=h,t},{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(s).forEach(t=>{n.files.push(t),n.fileSelectItems.push({displayValue:t.fileName,value:t.fileUUID}),n.fileUUIDMapToData[t.fileUUID]=t}),n},filterAnvils=function(t,s,n,e,o,l,u){let{includeAnvilUUIDs:r=[],includeFileUUIDs:i=[],includeStorageGroupUUIDs:a=[]}=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},testIncludeAnvil=()=>!0,testIncludeFile=()=>!0,testIncludeStorageGroup=()=>!0;r.length>0&&(testIncludeAnvil=t=>r.includes(t)),i.length>0&&(testIncludeFile=t=>i.includes(t)),a.length>0&&(testIncludeStorageGroup=t=>a.includes(t));let d={},C=l.reduce((t,s,n)=>{var e;let l=null!==(e=o[n])&&void 0!==e?e:B;return t.all+=l,""===s||(void 0===t[s]&&(t[s]=B),t[s]+=l),t},{all:B}),c=t.reduce((t,r)=>{let{anvilUUID:i}=r;if(testIncludeAnvil(i)){let{anvilTotalCPUCores:a,anvilTotalAvailableMemory:c,files:p,fileUUIDs:f,storageGroups:I}=r,m=[],v=B,h=B;I.forEach(t=>{let{storageGroupUUID:s,storageGroupFree:n}=t;testIncludeStorageGroup(s)&&(m.push(s),h+=n,n>v&&(v=n))});let g=[()=>I.length>0,()=>n<=a,()=>e<=c,()=>l.every((t,n)=>{var e;let l=null!==(e=o[n])&&void 0!==e?e:B,u=!0,r=l<=v;return""!==t&&(u=m.includes(t),r=l<=s[t].storageGroupFree),u&&r}),()=>Object.entries(C).every(t=>{let[n,e]=t;return"all"===n?e<=h:e<=s[n].storageGroupFree}),()=>u.every(t=>""===t||f.includes(t))];g.every(t=>t())&&(t.anvils.push(r),t.anvilUUIDs.push(i),t.maxCPUCores=Math.max(a,t.maxCPUCores),c>t.maxMemory&&(t.maxMemory=c),p.forEach(t=>{let{fileUUID:s}=t;testIncludeFile(s)&&(d[s]=!0)}),t.storageGroupUUIDs.push(...m),t.maxVirtualDiskSizes.fill(v))}return t},{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:B,maxVirtualDiskSizes:l.map(()=>B),storageGroupUUIDs:[]});return c.fileUUIDs=Object.keys(d),l.forEach((t,n)=>{""!==t&&(c.maxVirtualDiskSizes[n]=s[t].storageGroupFree)}),c},createVirtualDiskForm=(t,s,n,e,o,u,i,a)=>{let get=function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return t[n][e]},set=function(e,o){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;t[e][l]=o,n({...t})},changeVDSize=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;set("sizes",n);let{formattedMaxVDSizes:e,maxVirtualDiskSizes:o}=u({virtualDisks:t});a({inputs:{["vd".concat(s,"Size")]:{displayMax:"".concat(e[s]),max:o[s],value:n}}})},handleVDSizeChange=t=>{let{value:s=get("inputSizes"),unit:n=get("inputUnits")}=t;s!==get("inputSizes")&&set("inputSizes",s),n!==get("inputUnits")&&set("inputUnits",n),(0,v.KY)(s,n,t=>changeVDSize(t),()=>changeVDSize())},handleVDStorageGroupChange=function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:get("inputStorageGroupUUIDs");s!==get("inputStorageGroupUUIDs")&&set("inputStorageGroupUUIDs",s),u({virtualDisks:t})};return(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-virtual-disk-size-".concat(s),label:"Disk size",messageBoxProps:get("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(get("inputMaxes")," ").concat(get("inputUnits")),{onButtonClick:()=>{set("inputSizes",get("inputMaxes")),changeVDSize(get("maxes"))}}),onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({value:s})},type:"number",value:get("inputSizes")},inputLabelProps:{isNotifyRequired:get("sizes")===B}},selectItems:M,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({unit:s})},value:get("inputUnits")}}})}),(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(b.Z,{id:"ps-storage-group-".concat(s),label:"Storage group",disableItem:t=>!(o.includes(t)&&get("sizes")<=i[t].storageGroupFree),inputLabelProps:{isNotifyRequired:0===get("inputStorageGroupUUIDs").length},messageBoxProps:get("inputStorageGroupUUIDMessages"),selectItems:e,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDStorageGroupChange(s)},onClearIndicatorClick:()=>handleVDStorageGroupChange(""),renderValue:t=>{var s;let{anvilName:n="?",storageGroupName:e="Unknown (".concat(t,")")}=null!==(s=i[t])&&void 0!==s?s:{};return"".concat(e," (").concat(n,")")},value:get("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(get("stateIds")))},addVirtualDisk=function(){let{existingVirtualDisks:t={stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]},stateId:s=(0,C.Z)(),inputMax:n="0",inputSize:e="",inputSizeMessage:o,inputStorageGroupUUID:l="",inputStorageGroupUUIDMessage:u,inputUnit:r="GiB",max:i=B,setVirtualDisks:a,size:d=B}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stateIds:c,inputMaxes:p,inputSizeMessages:f,inputSizes:I,inputStorageGroupUUIDMessages:m,inputStorageGroupUUIDs:v,inputUnits:h,maxes:g,sizes:x}=t;return c.push(s),p.push(n),f.push(o),I.push(e),m.push(u),v.push(l),h.push(r),g.push(i),x.push(d),null==a||a.call(null,{...t}),t},filterBlanks=t=>t.filter(t=>""!==t),getDisplayDsizeOptions=t=>({fromUnit:"B",onSuccess:{string:t},precision:0,toUnit:"ibyte"});(0,v.Bh)(z,getDisplayDsizeOptions((t,s)=>{e="".concat(t," ").concat(s)})),(0,v.Bh)(k,getDisplayDsizeOptions((t,s)=>{o="".concat(t," ").concat(s)}));var components_ProvisionServerDialog=t=>{let{dialogProps:{open:s},onClose:n}=t,[C,S]=(0,u.useState)([]),[U,D]=(0,u.useState)({}),[G,A]=(0,u.useState)({}),[Z,T]=(0,u.useState)({}),[w,O]=(0,u.useState)({}),[N,V]=(0,u.useState)([]),[L,Q]=(0,u.useState)([]),[R,E]=(0,u.useState)([]),[q,W]=(0,u.useState)([]),[Y,$]=(0,u.useState)(""),[H,J]=(0,u.useState)(),[K,X]=(0,u.useState)(1),[tt,ts]=(0,u.useState)(0),[tn,te]=(0,u.useState)(),[to,tl]=(0,u.useState)(B),[tu,tr]=(0,u.useState)(B),[ti,ta]=(0,u.useState)(),[td,tC]=(0,u.useState)("0"),[tc,tp]=(0,u.useState)(""),[tf,tI]=(0,u.useState)("GiB"),[tm,tv]=(0,u.useState)(addVirtualDisk()),[th,tg]=(0,u.useState)(""),[tx,tS]=(0,u.useState)(),[tU,tb]=(0,u.useState)(""),[tD]=(0,u.useState)(),[ty,tj]=(0,u.useState)(""),[t_,tP]=(0,u.useState)(),[tB,tM]=(0,u.useState)(null),[tz,tk]=(0,u.useState)(),[tF,tG]=(0,u.useState)([]),[tA,tZ]=(0,u.useState)([]),[tT,tw]=(0,u.useState)([]),[tO,tN]=(0,u.useState)(!1),[tV,tL]=(0,u.useState)(!1),[tQ,tR]=(0,u.useState)(!1),[tE,tq]=(0,u.useState)(0),tW=(0,u.useMemo)(()=>{let t=[];for(let s=1;s<=tt;s+=1)t.push(s);return t},[tt]),tY={serverName:{defaults:{onSuccess:()=>{J(void 0)},value:Y},isRequired:!0,tests:[{onFailure:()=>{J({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:t=>{let{value:s}=t,{length:n}=s;return n>=1&&n<=16}},{onFailure:()=>{J({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:t=>{let{value:s}=t;return/^[a-zA-Z0-9_-]+$/.test(s)}},{onFailure:()=>{J({text:"This server name already exists, please choose another name.",type:"warning"})},test:t=>{let{value:s}=t;return void 0===Z[s]}}]},cpuCores:{defaults:{max:tt,min:1,onSuccess:()=>{te(void 0)},value:K},isRequired:!0,tests:[{onFailure:()=>{te({text:"Non available.",type:"warning"})},test:_.X7},{onFailure:t=>{let{displayMax:s,displayMin:n}=t;te({text:"The number of CPU cores is expected to be between ".concat(n," and ").concat(s,"."),type:"warning"})},test:_.SQ}]},memory:{defaults:{displayMax:"".concat(td," ").concat(tf),displayMin:e,max:tu,min:z,onSuccess:()=>{ta(void 0)},value:to},isRequired:!0,tests:[{onFailure:()=>{ta({text:"Non available.",type:"warning"})},test:_.X7},{onFailure:t=>{let{displayMax:s,displayMin:n}=t;ta({text:"Memory is expected to be between ".concat(n," and ").concat(s,"."),type:"warning"})},test:_.SQ}]},installISO:{defaults:{onSuccess:()=>{tS(void 0)},value:th},isRequired:!0,tests:[{test:_.HJ}]},anvil:{defaults:{onSuccess:()=>{tP(void 0)},value:ty},isRequired:!0,tests:[{test:_.HJ}]},optimizeForOS:{defaults:{onSuccess:()=>{tk(void 0)},value:null==tB?void 0:tB.key},isRequired:!0,tests:[{test:_.HJ}]}};tm.inputSizeMessages.forEach((t,s)=>{tY["vd".concat(s,"Size")]={defaults:{displayMax:"".concat(tm.inputMaxes[s]," ").concat(tm.inputUnits[s]),displayMin:o,max:tm.maxes[s],min:k,onSuccess:()=>{tm.inputSizeMessages[s]=void 0},value:tm.sizes[s]},isRequired:!0,onFinishBatch:()=>{tv({...tm})},tests:[{onFailure:()=>{tm.inputSizeMessages[s]={text:"Non available.",type:"warning"}},test:_.X7},{onFailure:t=>{let{displayMax:n,displayMin:e}=t;tm.inputSizeMessages[s]={text:"Virtual disk ".concat(s," size is expected to be between ").concat(e," and ").concat(n,"."),type:"warning"}},test:_.SQ}]},tY["vd".concat(s,"StorageGroup")]={defaults:{onSuccess:()=>{tm.inputStorageGroupUUIDMessages[s]=void 0},value:tm.inputStorageGroupUUIDs[s]},isRequired:!0,onFinishBatch:()=>{tv({...tm})},tests:[{test:_.HJ}]}});let updateLimits=function(){let{allAnvils:t=C,cpuCores:s=K,fileUUIDs:n=[th,tU],includeAnvilUUIDs:e=filterBlanks([ty]),includeFileUUIDs:o,includeStorageGroupUUIDs:l,inputMemoryUnit:u=tf,memory:r=to,storageGroupUUIDMapToData:i=w,virtualDisks:a=tm}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{anvilUUIDs:d,fileUUIDs:c,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I,storageGroupUUIDs:m}=filterAnvils(t,i,s,r,a.sizes,a.inputStorageGroupUUIDs,n,{includeAnvilUUIDs:e,includeFileUUIDs:o,includeStorageGroupUUIDs:l});ts(p),tr(f);let h=[];a.maxes=I,a.maxes.forEach((t,s)=>{(0,v.Bh)(t,{fromUnit:"B",onSuccess:{string:(t,n)=>{a.inputMaxes[s]=t,h[s]="".concat(t," ").concat(n)}},toUnit:a.inputUnits[s]})}),tv({...a}),tG(d),tZ(c),tw(m);let g="";return(0,v.Bh)(f,{fromUnit:"B",onSuccess:{string:(t,s)=>{tC(t),g="".concat(t," ").concat(s)}},toUnit:u}),{formattedMaxMemory:g,formattedMaxVDSizes:h,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I}},t$=(0,u.useCallback)(updateLimits,[]),testInput=function(){for(var t=arguments.length,s=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};tl(t);let{formattedMaxMemory:n,maxMemory:e}=updateLimits({inputMemoryUnit:s,memory:t});testInput({inputs:{memory:{displayMax:n,max:e,value:t}}})},handleInputMemoryValueChange=function(){let{value:t=tc,unit:s=tf}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t!==tc&&tp(t),s!==tf&&tI(s),(0,v.KY)(t,s,t=>changeMemory({cmValue:t,cmUnit:s}),()=>changeMemory({cmUnit:s}))},handleInputInstallISOFileUUIDChange=t=>{tg(t),updateLimits({fileUUIDs:[t,tU]})},handleInputDriverISOFileUUIDChange=t=>{tb(t),updateLimits({fileUUIDs:[th,t]})},handleInputAnvilValueChange=t=>{let s=filterBlanks([t]);tj(t),updateLimits({includeAnvilUUIDs:s})};return(0,u.useEffect)(()=>{p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then(t=>{let{data:s}=t,{anvils:n,anvilSelectItems:e,anvilUUIDMapToData:o,fileSelectItems:l,fileUUIDMapToData:u,serverNameMapToData:r,storageGroupSelectItems:i,storageGroupUUIDMapToData:a}=organizeAnvils(s.anvils);S(n),D(o),A(u),T(r),O(a),V(e),Q(l),W(i);let d={allAnvils:n,storageGroupUUIDMapToData:a};if(1===e.length){let{0:{value:t}}=e;tj(t),d.includeAnvilUUIDs=[t]}if(1===l.length){let{0:{value:t}}=l;tg(t),d.fileUUIDs=[t,""]}if(1===i.length){let{0:{value:t}}=i;tv(s=>{let n={...s};return n.inputStorageGroupUUIDs[0]=t,d.virtualDisks=n,n})}t$(d),E(Object.entries(s.oses).map(t=>{let[s,n]=t;return{key:s,label:n}})),tN(!0)})},[t$]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.Z,{fullWidth:!0,maxWidth:"sm",open:s,PaperComponent:y.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,l.jsxs)(y.V9,{children:[(0,l.jsx)(P.z,{text:"Provision a Server"}),(0,l.jsx)(h.Z,{onClick:n,sx:{backgroundColor:c.hM,color:c.lD,"&:hover":{backgroundColor:c.hM}},children:(0,l.jsx)(d.Z,{})})]}),tO?(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(x.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:t=>{let{target:{value:s}}=t;$(s),testInput({inputs:{serverName:{value:s}}})},value:Y},inputLabelProps:{isNotifyRequired:0===Y.length},messageBoxProps:H})}),(0,l.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=K<=0},getOptionLabel:t=>String(t),label:"CPU cores",messageBoxProps:tn,noOptionsText:"No available number of cores.",onChange:(t,s)=>{if(!s||s===K)return;X(s);let{maxCPUCores:n}=updateLimits({cpuCores:s});testInput({inputs:{cpuCores:{max:n,value:s}}})},openOnFocus:!0,options:tW,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-cpu-cores-".concat(s)},s),value:K}),(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-memory",label:"Memory",messageBoxProps:ti,inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(td," ").concat(tf),{onButtonClick:()=>{tp(td),changeMemory({cmValue:tu})}}),onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({value:s})},type:"number",value:tc},inputLabelProps:{isNotifyRequired:to===B}},selectItems:M,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({unit:s})},value:tf}}}),tm.stateIds.map((t,s)=>createVirtualDiskForm(tm,s,tv,q,tT,updateLimits,w,testInput)),(0,l.jsx)(b.Z,{disableItem:t=>t===tU,hideItem:t=>!tA.includes(t),id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===th.length},label:"Install ISO",messageBoxProps:tx,selectItems:L,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputInstallISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputInstallISOFileUUIDChange(""),value:th}}),(0,l.jsx)(b.Z,{disableItem:t=>t===th,hideItem:t=>!tA.includes(t),id:"ps-driver-image",label:"Driver ISO",messageBoxProps:tD,selectItems:L,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputDriverISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputDriverISOFileUUIDChange(""),value:tU}}),(0,l.jsx)(b.Z,{disableItem:t=>!tF.includes(t),id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===ty.length},label:"Anvil node",messageBoxProps:t_,selectItems:N,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputAnvilValueChange(s)},onClearIndicatorClick:()=>handleInputAnvilValueChange(""),renderValue:t=>{var s;let{anvilName:n="Unknown ".concat(t)}=null!==(s=U[t])&&void 0!==s?s:{};return n},value:ty}}),(0,l.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=null===tB},isOptionEqualToValue:(t,s)=>t.key===s.key,label:"Optimize for OS",messageBoxProps:tz,noOptionsText:"No matching OS",onChange:(t,s)=>{tM(s)},openOnFocus:!0,options:R,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-optimize-for-os-".concat(s.key),children:[s.label," (",s.key,")"]}),value:tB})]}):(0,l.jsx)(j.Z,{}),(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[tE>0&&(0,l.jsx)(g.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),tQ?(0,l.jsx)(j.Z,{mt:0}):(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,l.jsx)(m.Z,{disabled:!testInput({isIgnoreOnCallbacks:!0}),onClick:()=>{tL(!0)},sx:F,children:"Provision"})})]})]}),tV&&(0,l.jsx)(I.Z,{actionProceedText:"Provision",content:(0,l.jsxs)(i.ZP,{container:!0,columns:10,direction:"column",children:[(0,l.jsx)(i.ZP,{item:!0,xs:10,children:(0,l.jsxs)(P.Ac,{children:["Server ",(0,l.jsx)(P.Q0,{text:Y})," will be created on anvil node"," ",(0,l.jsx)(P.Q0,{text:U[ty].anvilName})," ","with the following properties:"]})}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(P.Ac,{text:"CPU"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(P.Ac,{children:[(0,l.jsx)(P.Q0,{edge:"start",children:K})," ","core(s)"]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(P.Ac,{children:[(0,l.jsx)(P.Q0,{edge:"start",children:tt})," ","core(s) available"]})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(P.Ac,{text:"Memory"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsx)(P.Ac,{children:(0,l.jsxs)(P.Q0,{edge:"start",children:[tc," ",tf]})})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(P.Ac,{children:[(0,l.jsxs)(P.Q0,{edge:"start",children:[td," ",tf]})," ","available"]})})]}),tm.stateIds.map((t,s)=>{let n=tm.inputMaxes[s],e=tm.inputSizes[s],o=tm.inputUnits[s],u=w[tm.inputStorageGroupUUIDs[s]].storageGroupName;return(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsxs)(P.Ac,{children:["Disk ",(0,l.jsx)(P.Q0,{text:s})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(P.Ac,{children:[(0,l.jsxs)(P.Q0,{edge:"start",children:[e," ",o]})," ","on ",(0,l.jsx)(P.Q0,{children:u})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(P.Ac,{children:[(0,l.jsxs)(P.Q0,{edge:"start",children:[n," ",o]})," ","available"]})})]},"ps-virtual-disk-".concat(t,"-summary"))}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(P.Ac,{text:"Install ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(P.Ac,{children:(0,l.jsx)(P.Q0,{edge:"start",children:G[th].fileName})})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(P.Ac,{text:"Driver ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(P.Ac,{children:G[tU]?(0,l.jsx)(P.Q0,{edge:"start",children:G[tU].fileName}):"none"})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(P.Ac,{text:"Optimize for OS"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(P.Ac,{children:(0,l.jsx)(P.Q0,{edge:"start",children:"".concat(null==tB?void 0:tB.label)})})})]})]}),dialogProps:{open:tV},onCancelAppend:()=>{tL(!1)},onProceedAppend:()=>{let t={serverName:Y,cpuCores:K,memory:to.toString(),virtualDisks:tm.stateIds.map((t,s)=>({storageSize:tm.sizes[s].toString(),storageGroupUUID:tm.inputStorageGroupUUIDs[s]})),installISOFileUUID:th,driverISOFileUUID:tU,anvilUUID:ty,optimizeForOS:null==tB?void 0:tB.key};tR(!0),p.Z.post("/server",t).then(()=>{tR(!1),tq(tE+1)}),tL(!1)},proceedButtonProps:{sx:F},titleText:"Provision ".concat(Y,"?")})]})}},65939:function(t,s,n){"use strict";n.d(s,{FZ:function(){return a},OU:function(){return c},Qt:function(){return p},ah:function(){return C},tf:function(){return d}});let e="[a-z0-9]",o="[a-z0-9-]",l="[0-9a-f]",u="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",r="(?:".concat(u,"[.]){3}").concat(u),i="".concat(l,"{8}-(?:").concat(l,"{4}-){3}").concat(l,"{12}"),a=new RegExp("^(?:".concat(e,"(?:").concat(o,"{0,61}").concat(e,")?[.])+").concat(e).concat(o,"{0,61}").concat(e,"$")),d=new RegExp("^".concat(r,"$")),C=new RegExp("^(?:".concat(r,"\\s*,\\s*)*").concat(r,"$")),c=/^[^'"/\\><}{]*$/,p=RegExp("^".concat(i,"$"),"i")},56746:function(t,s,n){"use strict";n.d(s,{Bh:function(){return format_data_size_wrappers_dsize},KY:function(){return format_data_size_wrappers_dsizeToByte},MU:function(){return format_data_size_wrappers_toBinaryByte}});var e=n(54490),format_data_size_wrappers_dsize=function(t){let{fromUnit:s,onFailure:n,onSuccess:o,precision:l,toUnit:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,e.gO)(t,{fromUnit:s,precision:l,toUnit:u});if(r){let{value:t,unit:s}=r;try{var i,a,d;null==o||null===(i=o.bigint)||void 0===i||i.call(null,BigInt(t),s),null==o||null===(a=o.number)||void 0===a||a.call(null,parseFloat(t),s),null==o||null===(d=o.string)||void 0===d||d.call(null,t,s)}catch(e){null==n||n.call(null,e,t,s)}}else null==n||n.call(null)},format_data_size_wrappers_dsizeToByte=(t,s,n,e)=>{format_data_size_wrappers_dsize(t,{fromUnit:s,onFailure:e,onSuccess:{bigint:n},precision:0,toUnit:"B"})},format_data_size_wrappers_toBinaryByte=t=>(0,e._d)(t,{toUnit:"ibyte"})},50233:function(t,s,n){"use strict";n.d(s,{Ye:function(){return test_input_buildDomainTestBatch},_:function(){return test_input_buildIPAddressTestBatch},dg:function(){return test_input_buildIpCsvTestBatch},qY:function(){return test_input_buildNumberTestBatch},Gn:function(){return test_input_buildPeacefulStringTestBatch},$e:function(){return test_input_buildUUIDTestBatch},LT:function(){return test_input_createTestInputFunction},BD:function(){return test_input_testInput},X7:function(){return test_input_testMax},HJ:function(){return test_input_testNotBlank},SQ:function(){return test_input_testRange}});var e=n(85893),o=n(65939),test_input_testNotBlank=t=>{let{value:s}=t;return!!s&&String(s).length>0},l=n(84154),test_input_buildDomainTestBatch=function(t,s){let{isRequired:n,onFinishBatch:u,...r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...r,onSuccess:s},isRequired:n,onFinishBatch:u,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{compare:s,value:n}=t;return s[0]||o.FZ.test(n)}}]}},test_input_buildIPAddressTestBatch=function(t,s){let{isRequired:n,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:n,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return o.tf.test(s)}}]}},test_input_buildIpCsvTestBatch=function(t,s){let{isRequired:n,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:n,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return o.ah.test(s)}}]}},test_input_testRange=t=>{let{max:s,min:n,value:e}=t;return!!e&&e>=n&&e<=s},lib_toNumber=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"==typeof t?t:Number[s](String(t))},test_input_buildNumberTestBatch=function(t,s){let{isRequired:n,onFinishBatch:o,...l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=[];return u?a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return Number.isSafeInteger(lib_toNumber(s))}}):r&&a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return Number.isFinite(lib_toNumber(s,"parseFloat"))}}),i&&a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...r,onSuccess:s},isRequired:n,onFinishBatch:u,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o"}),"), curly brackets (",(0,e.jsx)(l.Q0,{inheritColour:!0,text:"{}"}),")."]}),...n)},test:t=>{let{value:s}=t;return o.OU.test(s)}}]}},test_input_buildUUIDTestBatch=function(t,s){let{isRequired:n,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:n,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return o.Qt.test(s)}}]}};let cbEmptySetter=()=>({}),cbSetter=t=>{let{onFailure:s,onSuccess:n}=t;return{cbFailure:s,cbSuccess:n}},evalIsIgnoreOnCallbacks=t=>{let{isIgnoreOnCallbacks:s,onFinishBatch:n}=t;return s?{setTestCallbacks:cbEmptySetter}:{cbFinishBatch:n,setTestCallbacks:cbSetter}},nullishSet=(t,s)=>null!=t?t:s,orSet=(t,s)=>t||s;var test_input_testInput=function(){let{excludeTestIds:t=[],excludeTestIdsRe:s,inputs:n={},isContinueOnFailure:e,isIgnoreOnCallbacks:o,isTestAll:l=0===Object.keys(n).length,tests:u={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[...t],i={},a=!0;return l&&Object.keys(u).forEach(t=>{i[t]={}}),i={...i,...n},s&&Object.keys(i).forEach(t=>{s.test(t)&&r.push(t)}),r.forEach(t=>{delete i[t]}),Object.keys(i).every(t=>{let{defaults:{compare:s=[],displayMax:n,displayMin:l,getCompare:r,getValue:d,isIgnoreOnCallbacks:C=o,max:c=0,min:p=0,onSuccess:f,value:I=null}={},isRequired:m=!1,onFinishBatch:v,optionalTests:h,tests:g}=u[t],{getCompare:x=r,getValue:S=d,isIgnoreOnCallbacks:U=C,max:b=c,min:D=p,compare:y=nullishSet(null==x?void 0:x.call(null),s),value:j=nullishSet(null==S?void 0:S.call(null),I),displayMax:_=orSet(n,String(b)),displayMin:P=orSet(l,String(D))}=i[t],{cbFinishBatch:B,setTestCallbacks:M}=evalIsIgnoreOnCallbacks({isIgnoreOnCallbacks:U,onFinishBatch:v});if(!j&&!m)return null==B||B.call(null,!0,t),!0;let runTest=t=>{let{onFailure:s,onSuccess:n=f,test:e}=t,o={},l=e({append:o,compare:y,max:b,min:D,value:j}),{cbFailure:u,cbSuccess:r}=M({onFailure:s,onSuccess:n});return l?null==r||r.call(null,{append:o}):(a=l,null==u||u.call(null,{append:o,compare:y,displayMax:_,displayMin:P,max:b,min:D,value:j})),l};null==h||h.forEach(runTest);let z=g.every(runTest);return null==B||B.call(null,z,t),z||e}),a},test_input_createTestInputFunction=function(t){let{excludeTestIds:s=[],...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){let{excludeTestIds:e=[],...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return test_input_testInput({tests:t,excludeTestIds:[...s,...e],...n,...o})}},test_input_testMax=t=>{let{max:s,min:n}=t;return s>=n}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{29685:function(t,s,n){"use strict";n.d(s,{formControlClasses:function(){return H.formControlClasses},outlinedInputClasses:function(){return tB.outlinedInputClasses}});var e=n(47959);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(37703);n.o(o,"formControlClasses")&&n.d(s,{formControlClasses:function(){return o.formControlClasses}}),n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}});var l=n(59708);n.o(l,"formControlClasses")&&n.d(s,{formControlClasses:function(){return l.formControlClasses}}),n.o(l,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return l.outlinedInputClasses}});var u=n(16058);n.o(u,"formControlClasses")&&n.d(s,{formControlClasses:function(){return u.formControlClasses}}),n.o(u,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return u.outlinedInputClasses}});var r=n(28796);n.o(r,"formControlClasses")&&n.d(s,{formControlClasses:function(){return r.formControlClasses}}),n.o(r,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return r.outlinedInputClasses}});var i=n(70061);n.o(i,"formControlClasses")&&n.d(s,{formControlClasses:function(){return i.formControlClasses}}),n.o(i,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return i.outlinedInputClasses}});var a=n(36950);n.o(a,"formControlClasses")&&n.d(s,{formControlClasses:function(){return a.formControlClasses}}),n.o(a,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return a.outlinedInputClasses}});var d=n(9947);n.o(d,"formControlClasses")&&n.d(s,{formControlClasses:function(){return d.formControlClasses}}),n.o(d,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return d.outlinedInputClasses}});var C=n(6761);n.o(C,"formControlClasses")&&n.d(s,{formControlClasses:function(){return C.formControlClasses}}),n.o(C,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return C.outlinedInputClasses}});var c=n(17276);n.o(c,"formControlClasses")&&n.d(s,{formControlClasses:function(){return c.formControlClasses}}),n.o(c,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return c.outlinedInputClasses}});var p=n(53704);n.o(p,"formControlClasses")&&n.d(s,{formControlClasses:function(){return p.formControlClasses}}),n.o(p,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return p.outlinedInputClasses}});var f=n(48982);n.o(f,"formControlClasses")&&n.d(s,{formControlClasses:function(){return f.formControlClasses}}),n.o(f,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return f.outlinedInputClasses}});var I=n(44343);n.o(I,"formControlClasses")&&n.d(s,{formControlClasses:function(){return I.formControlClasses}}),n.o(I,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return I.outlinedInputClasses}});var m=n(8267);n.o(m,"formControlClasses")&&n.d(s,{formControlClasses:function(){return m.formControlClasses}}),n.o(m,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return m.outlinedInputClasses}});var v=n(17091);n.o(v,"formControlClasses")&&n.d(s,{formControlClasses:function(){return v.formControlClasses}}),n.o(v,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return v.outlinedInputClasses}});var h=n(90842);n.o(h,"formControlClasses")&&n.d(s,{formControlClasses:function(){return h.formControlClasses}}),n.o(h,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return h.outlinedInputClasses}});var g=n(44044);n.o(g,"formControlClasses")&&n.d(s,{formControlClasses:function(){return g.formControlClasses}}),n.o(g,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return g.outlinedInputClasses}});var x=n(91687);n.o(x,"formControlClasses")&&n.d(s,{formControlClasses:function(){return x.formControlClasses}}),n.o(x,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return x.outlinedInputClasses}});var S=n(2117);n.o(S,"formControlClasses")&&n.d(s,{formControlClasses:function(){return S.formControlClasses}}),n.o(S,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return S.outlinedInputClasses}});var U=n(90287);n.o(U,"formControlClasses")&&n.d(s,{formControlClasses:function(){return U.formControlClasses}}),n.o(U,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return U.outlinedInputClasses}});var b=n(21897);n.o(b,"formControlClasses")&&n.d(s,{formControlClasses:function(){return b.formControlClasses}}),n.o(b,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return b.outlinedInputClasses}});var D=n(60200);n.o(D,"formControlClasses")&&n.d(s,{formControlClasses:function(){return D.formControlClasses}}),n.o(D,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return D.outlinedInputClasses}});var y=n(51791);n.o(y,"formControlClasses")&&n.d(s,{formControlClasses:function(){return y.formControlClasses}}),n.o(y,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return y.outlinedInputClasses}});var j=n(1536);n.o(j,"formControlClasses")&&n.d(s,{formControlClasses:function(){return j.formControlClasses}}),n.o(j,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return j.outlinedInputClasses}});var P=n(26088);n.o(P,"formControlClasses")&&n.d(s,{formControlClasses:function(){return P.formControlClasses}}),n.o(P,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return P.outlinedInputClasses}});var _=n(40324);n.o(_,"formControlClasses")&&n.d(s,{formControlClasses:function(){return _.formControlClasses}}),n.o(_,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return _.outlinedInputClasses}});var B=n(36723);n.o(B,"formControlClasses")&&n.d(s,{formControlClasses:function(){return B.formControlClasses}}),n.o(B,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return B.outlinedInputClasses}});var M=n(98038);n.o(M,"formControlClasses")&&n.d(s,{formControlClasses:function(){return M.formControlClasses}}),n.o(M,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return M.outlinedInputClasses}});var z=n(70074);n.o(z,"formControlClasses")&&n.d(s,{formControlClasses:function(){return z.formControlClasses}}),n.o(z,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return z.outlinedInputClasses}});var k=n(27681);n.o(k,"formControlClasses")&&n.d(s,{formControlClasses:function(){return k.formControlClasses}}),n.o(k,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return k.outlinedInputClasses}});var G=n(15329);n.o(G,"formControlClasses")&&n.d(s,{formControlClasses:function(){return G.formControlClasses}}),n.o(G,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return G.outlinedInputClasses}});var A=n(22158);n.o(A,"formControlClasses")&&n.d(s,{formControlClasses:function(){return A.formControlClasses}}),n.o(A,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return A.outlinedInputClasses}});var F=n(91907);n.o(F,"formControlClasses")&&n.d(s,{formControlClasses:function(){return F.formControlClasses}}),n.o(F,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return F.outlinedInputClasses}});var Z=n(89909);n.o(Z,"formControlClasses")&&n.d(s,{formControlClasses:function(){return Z.formControlClasses}}),n.o(Z,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Z.outlinedInputClasses}});var T=n(11594);n.o(T,"formControlClasses")&&n.d(s,{formControlClasses:function(){return T.formControlClasses}}),n.o(T,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return T.outlinedInputClasses}});var O=n(39101);n.o(O,"formControlClasses")&&n.d(s,{formControlClasses:function(){return O.formControlClasses}}),n.o(O,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return O.outlinedInputClasses}});var w=n(73498);n.o(w,"formControlClasses")&&n.d(s,{formControlClasses:function(){return w.formControlClasses}}),n.o(w,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return w.outlinedInputClasses}});var N=n(7659);n.o(N,"formControlClasses")&&n.d(s,{formControlClasses:function(){return N.formControlClasses}}),n.o(N,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return N.outlinedInputClasses}});var V=n(40373);n.o(V,"formControlClasses")&&n.d(s,{formControlClasses:function(){return V.formControlClasses}}),n.o(V,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return V.outlinedInputClasses}});var L=n(64716);n.o(L,"formControlClasses")&&n.d(s,{formControlClasses:function(){return L.formControlClasses}}),n.o(L,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return L.outlinedInputClasses}});var R=n(49205);n.o(R,"formControlClasses")&&n.d(s,{formControlClasses:function(){return R.formControlClasses}}),n.o(R,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return R.outlinedInputClasses}});var E=n(54878);n.o(E,"formControlClasses")&&n.d(s,{formControlClasses:function(){return E.formControlClasses}}),n.o(E,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return E.outlinedInputClasses}});var Q=n(53318);n.o(Q,"formControlClasses")&&n.d(s,{formControlClasses:function(){return Q.formControlClasses}}),n.o(Q,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Q.outlinedInputClasses}});var q=n(21489);n.o(q,"formControlClasses")&&n.d(s,{formControlClasses:function(){return q.formControlClasses}}),n.o(q,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return q.outlinedInputClasses}});var W=n(17812);n.o(W,"formControlClasses")&&n.d(s,{formControlClasses:function(){return W.formControlClasses}}),n.o(W,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return W.outlinedInputClasses}});var H=n(46341);n.o(H,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return H.outlinedInputClasses}});var Y=n(82749);n.o(Y,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return Y.outlinedInputClasses}});var $=n(6372);n.o($,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return $.outlinedInputClasses}});var J=n(20358);n.o(J,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return J.outlinedInputClasses}});var K=n(46526);n.o(K,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return K.outlinedInputClasses}});var X=n(67499);n.o(X,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return X.outlinedInputClasses}});var tt=n(43844);n.o(tt,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tt.outlinedInputClasses}});var ts=n(69827);n.o(ts,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ts.outlinedInputClasses}});var tn=n(81662);n.o(tn,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tn.outlinedInputClasses}});var te=n(44954);n.o(te,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return te.outlinedInputClasses}});var to=n(42368);n.o(to,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return to.outlinedInputClasses}});var tl=n(72157);n.o(tl,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tl.outlinedInputClasses}});var tu=n(79134);n.o(tu,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tu.outlinedInputClasses}});var tr=n(97095);n.o(tr,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tr.outlinedInputClasses}});var ti=n(69979);n.o(ti,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ti.outlinedInputClasses}});var ta=n(20436);n.o(ta,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ta.outlinedInputClasses}});var td=n(23924);n.o(td,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return td.outlinedInputClasses}});var tC=n(8658);n.o(tC,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tC.outlinedInputClasses}});var tc=n(89011);n.o(tc,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tc.outlinedInputClasses}});var tp=n(23368);n.o(tp,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tp.outlinedInputClasses}});var tf=n(1534);n.o(tf,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tf.outlinedInputClasses}});var tI=n(58160);n.o(tI,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tI.outlinedInputClasses}});var tm=n(26504);n.o(tm,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tm.outlinedInputClasses}});var tv=n(23625);n.o(tv,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tv.outlinedInputClasses}});var th=n(99355);n.o(th,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return th.outlinedInputClasses}});var tg=n(58420);n.o(tg,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tg.outlinedInputClasses}});var tx=n(85746);n.o(tx,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tx.outlinedInputClasses}});var tS=n(26010);n.o(tS,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tS.outlinedInputClasses}});var tU=n(21883);n.o(tU,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tU.outlinedInputClasses}});var tb=n(92663);n.o(tb,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tb.outlinedInputClasses}});var tD=n(64301);n.o(tD,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tD.outlinedInputClasses}});var ty=n(46025);n.o(ty,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return ty.outlinedInputClasses}});var tj=n(91641);n.o(tj,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tj.outlinedInputClasses}});var tP=n(43263);n.o(tP,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return tP.outlinedInputClasses}});var t_=n(93820);n.o(t_,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return t_.outlinedInputClasses}});var tB=n(79997)},52563:function(){},59708:function(t,s,n){"use strict";var e=n(52563);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},11491:function(){},16058:function(t,s,n){"use strict";var e=n(11491);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32387:function(){},28796:function(t,s,n){"use strict";var e=n(32387);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},59711:function(){},70061:function(t,s,n){"use strict";var e=n(59711);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},51334:function(){},36950:function(t,s,n){"use strict";var e=n(51334);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},50568:function(){},9947:function(t,s,n){"use strict";var e=n(50568);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15016:function(){},6761:function(t,s,n){"use strict";var e=n(15016);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},9249:function(){},17276:function(t,s,n){"use strict";var e=n(9249);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},39249:function(){},53704:function(t,s,n){"use strict";var e=n(39249);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},25285:function(){},48982:function(t,s,n){"use strict";var e=n(25285);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32464:function(){},44343:function(t,s,n){"use strict";var e=n(32464);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},13272:function(){},8267:function(t,s,n){"use strict";var e=n(13272);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},32218:function(){},17091:function(t,s,n){"use strict";var e=n(32218);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},13368:function(){},90842:function(t,s,n){"use strict";var e=n(13368);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},9812:function(){},44044:function(t,s,n){"use strict";var e=n(9812);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},4871:function(){},91687:function(t,s,n){"use strict";var e=n(4871);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},8931:function(){},2117:function(t,s,n){"use strict";var e=n(8931);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},95171:function(){},90287:function(t,s,n){"use strict";var e=n(95171);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(17321);n.o(o,"formControlClasses")&&n.d(s,{formControlClasses:function(){return o.formControlClasses}}),n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},17321:function(){},83299:function(){},21897:function(t,s,n){"use strict";var e=n(83299);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},57285:function(){},60200:function(t,s,n){"use strict";var e=n(57285);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},25793:function(){},51791:function(t,s,n){"use strict";var e=n(25793);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},57423:function(){},1536:function(t,s,n){"use strict";var e=n(57423);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},17911:function(){},26088:function(t,s,n){"use strict";var e=n(17911);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},45783:function(){},40324:function(t,s,n){"use strict";var e=n(45783);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},86039:function(){},36723:function(t,s,n){"use strict";var e=n(86039);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},10795:function(){},98038:function(t,s,n){"use strict";var e=n(10795);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},84725:function(){},70074:function(t,s,n){"use strict";var e=n(84725);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},35672:function(){},27681:function(t,s,n){"use strict";var e=n(35672);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15329:function(){},13237:function(){},22158:function(t,s,n){"use strict";var e=n(13237);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},73829:function(){},91907:function(t,s,n){"use strict";var e=n(73829);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},89909:function(){},27802:function(){},39101:function(t,s,n){"use strict";var e=n(27802);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},58635:function(){},73498:function(t,s,n){"use strict";var e=n(58635);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},52307:function(){},7659:function(t,s,n){"use strict";var e=n(52307);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},10028:function(){},40373:function(t,s,n){"use strict";var e=n(10028);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},41624:function(){},64716:function(t,s,n){"use strict";var e=n(41624);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},73431:function(){},49205:function(t,s,n){"use strict";var e=n(73431);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},12495:function(){},54878:function(t,s,n){"use strict";var e=n(12495);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},67358:function(){},53318:function(t,s,n){"use strict";var e=n(67358);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},21489:function(){},15813:function(){},17812:function(t,s,n){"use strict";var e=n(15813);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},46341:function(t,s,n){"use strict";n.d(s,{formControlClasses:function(){return e.Z}});var e=n(47120),o=n(22018);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},85173:function(){},82749:function(t,s,n){"use strict";var e=n(85173);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},33600:function(){},6372:function(t,s,n){"use strict";var e=n(33600);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},21630:function(){},20358:function(t,s,n){"use strict";var e=n(21630);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},16962:function(){},48108:function(){},46526:function(t,s,n){"use strict";var e=n(16962);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(48108);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},24632:function(){},67499:function(t,s,n){"use strict";var e=n(24632);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},69827:function(){},81662:function(){},30720:function(){},44954:function(t,s,n){"use strict";var e=n(30720);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},30330:function(){},42368:function(t,s,n){"use strict";var e=n(30330);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},40947:function(){},72157:function(t,s,n){"use strict";var e=n(40947);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},16145:function(){},79134:function(t,s,n){"use strict";var e=n(16145);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},42426:function(){},97095:function(t,s,n){"use strict";var e=n(42426);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},69979:function(t,s,n){"use strict";var e=n(35552);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},35552:function(){},20436:function(t,s,n){"use strict";var e=n(46722);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},46722:function(){},23924:function(t,s,n){"use strict";var e=n(58680);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},58680:function(){},8658:function(t,s,n){"use strict";var e=n(97681);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},97681:function(){},89011:function(t,s,n){"use strict";var e=n(615);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},615:function(){},23368:function(t,s,n){"use strict";var e=n(98403);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},98403:function(){},1534:function(t,s,n){"use strict";var e=n(66826);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},66826:function(){},58160:function(t,s,n){"use strict";var e=n(80775);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80775:function(){},26504:function(t,s,n){"use strict";var e=n(15979);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},15979:function(){},23625:function(t,s,n){"use strict";var e=n(14132);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},14132:function(){},99355:function(t,s,n){"use strict";var e=n(19382);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},19382:function(){},58420:function(t,s,n){"use strict";var e=n(93396);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},93396:function(){},85746:function(t,s,n){"use strict";var e=n(80984);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80984:function(){},26010:function(t,s,n){"use strict";var e=n(80748);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},80748:function(){},21883:function(t,s,n){"use strict";var e=n(33105);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},33105:function(){},92663:function(t,s,n){"use strict";var e=n(66818);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},66818:function(){},64301:function(){},46025:function(t,s,n){"use strict";var e=n(48560);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},48560:function(){},91641:function(t,s,n){"use strict";var e=n(26978);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},26978:function(){},43263:function(t,s,n){"use strict";var e=n(18594);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},18594:function(){},93820:function(){},79997:function(t,s,n){"use strict";n.d(s,{outlinedInputClasses:function(){return e.Z}});var e=n(54656)},68269:function(){},97426:function(){},43844:function(t,s,n){"use strict";var e=n(68269);n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}});var o=n(97426);n.o(o,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},11594:function(){},22995:function(){},47959:function(t,s,n){"use strict";var e=n(22995);n.o(e,"formControlClasses")&&n.d(s,{formControlClasses:function(){return e.formControlClasses}}),n.o(e,"outlinedInputClasses")&&n.d(s,{outlinedInputClasses:function(){return e.outlinedInputClasses}})},37703:function(){},22018:function(){},88750:function(t,s,n){"use strict";let e,o;n.d(s,{Z:function(){return components_ProvisionServerDialog}});var l=n(85893),u=n(67294),r=n(5616),i=n(48263),a=n(78262),d=n(50594),C=n(25934),c=n(6010),p=n(67645),f=n(89712),I=n(56597),m=n(19467),v=n(56746),h=n(83221),g=n(68917),x=n(55675),S=n(29685),U=n(35797),b=n(52886);let D={inputWithLabelProps:{},messageBoxProps:{},selectWithLabelProps:{}},OutlinedLabeledInputWithSelect=t=>{let{id:s,label:n,inputWithLabelProps:e=D.inputWithLabelProps,messageBoxProps:o=D.messageBoxProps,selectItems:u,selectWithLabelProps:i=D.selectWithLabelProps}=t;return(0,l.jsxs)(r.Z,{children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"row","& > :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"},["&:hover\n .".concat(S.formControlClasses.root,"\n .").concat(S.outlinedInputClasses.root,"\n .").concat(S.outlinedInputClasses.notchedOutline)]:{borderColor:c.s7}},children:[(0,l.jsx)(x.Z,{id:s,label:n,...e}),(0,l.jsx)(b.Z,{formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(s,"-nested-select"),selectItems:u,...i})]}),(0,l.jsx)(U.Z,{...o})]})};OutlinedLabeledInputWithSelect.defaultProps=D;var y=n(37260),j=n(81796),P=n(50233),_=n(84154);let B=BigInt(0),M=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],z=BigInt(65536),k=BigInt(104857600),G={backgroundColor:c.Ej,color:c.lD,"&:hover":{backgroundColor:c.Ej}},createMaxValueButton=(t,s)=>{let{onButtonClick:n}=s;return(0,l.jsx)(m.Z,{disabled:void 0===n,onClick:n,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(t)})},createSelectItemDisplay=function(){let{endAdornment:t,mainLabel:s,subLabel:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.jsxs)(r.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:[s&&(0,l.jsx)(_.Ac,{inverted:!0,text:s}),n&&(0,l.jsx)(_.Ac,{inverted:!0,text:n})]}),t]})},organizeAnvils=t=>{let s={},n=t.reduce((t,n)=>{let{anvilUUID:e,anvilName:o,anvilTotalMemory:u,anvilTotalAllocatedMemory:i,anvilTotalAvailableMemory:a,hosts:d,servers:C,storageGroups:c,files:p}=n,{anvilStorageGroups:f,anvilStorageGroupUUIDs:I}=c.reduce((s,n)=>{let u={...n,anvilUUID:e,anvilName:o,storageGroupSize:BigInt(n.storageGroupSize),storageGroupFree:BigInt(n.storageGroupFree),humanizedStorageGroupFree:""};return(0,v.Bh)(n.storageGroupFree,{fromUnit:"B",onSuccess:{string:(t,s)=>{u.humanizedStorageGroupFree="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),s.anvilStorageGroupUUIDs.push(n.storageGroupUUID),s.anvilStorageGroups.push(u),t.storageGroups.push(u),t.storageGroupSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsx)(_.Ac,{inverted:!0,text:"~".concat(u.humanizedStorageGroupFree," free")}),mainLabel:n.storageGroupName,subLabel:o}),value:n.storageGroupUUID}),t.storageGroupUUIDMapToData[n.storageGroupUUID]=u,s},{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=[];p.forEach(t=>{let{fileUUID:n}=t;m.push(n),s[n]=t});let h={...n,anvilTotalMemory:BigInt(u),anvilTotalAllocatedMemory:BigInt(i),anvilTotalAvailableMemory:BigInt(a),humanizedAnvilTotalAvailableMemory:"",hosts:d.map(t=>({...t,hostMemory:BigInt(t.hostMemory)})),servers:C.map(s=>{let{serverMemory:n,serverName:e,...o}=s,l={...o,serverMemory:BigInt(n),serverName:e};return t.serverNameMapToData[e]=l,l}),storageGroupUUIDs:I,storageGroups:f,fileUUIDs:m};return(0,v.Bh)(a,{fromUnit:"B",onSuccess:{string:(t,s)=>{h.humanizedAnvilTotalAvailableMemory="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),t.anvils.push(h),t.anvilSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,l.jsx)(_.Ac,{inverted:!0,text:"CPU: ".concat(h.anvilTotalCPUCores," cores")}),(0,l.jsx)(_.Ac,{inverted:!0,text:"Memory: ~".concat(h.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:h.anvilName,subLabel:h.anvilDescription}),value:e}),t.anvilUUIDMapToData[e]=h,t},{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(s).forEach(t=>{n.files.push(t),n.fileSelectItems.push({displayValue:t.fileName,value:t.fileUUID}),n.fileUUIDMapToData[t.fileUUID]=t}),n},filterAnvils=function(t,s,n,e,o,l,u){let{includeAnvilUUIDs:r=[],includeFileUUIDs:i=[],includeStorageGroupUUIDs:a=[]}=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},testIncludeAnvil=()=>!0,testIncludeFile=()=>!0,testIncludeStorageGroup=()=>!0;r.length>0&&(testIncludeAnvil=t=>r.includes(t)),i.length>0&&(testIncludeFile=t=>i.includes(t)),a.length>0&&(testIncludeStorageGroup=t=>a.includes(t));let d={},C=l.reduce((t,s,n)=>{var e;let l=null!==(e=o[n])&&void 0!==e?e:B;return t.all+=l,""===s||(void 0===t[s]&&(t[s]=B),t[s]+=l),t},{all:B}),c=t.reduce((t,r)=>{let{anvilUUID:i}=r;if(testIncludeAnvil(i)){let{anvilTotalCPUCores:a,anvilTotalAvailableMemory:c,files:p,fileUUIDs:f,storageGroups:I}=r,m=[],v=B,h=B;I.forEach(t=>{let{storageGroupUUID:s,storageGroupFree:n}=t;testIncludeStorageGroup(s)&&(m.push(s),h+=n,n>v&&(v=n))});let g=[()=>I.length>0,()=>n<=a,()=>e<=c,()=>l.every((t,n)=>{var e;let l=null!==(e=o[n])&&void 0!==e?e:B,u=!0,r=l<=v;return""!==t&&(u=m.includes(t),r=l<=s[t].storageGroupFree),u&&r}),()=>Object.entries(C).every(t=>{let[n,e]=t;return"all"===n?e<=h:e<=s[n].storageGroupFree}),()=>u.every(t=>""===t||f.includes(t))];g.every(t=>t())&&(t.anvils.push(r),t.anvilUUIDs.push(i),t.maxCPUCores=Math.max(a,t.maxCPUCores),c>t.maxMemory&&(t.maxMemory=c),p.forEach(t=>{let{fileUUID:s}=t;testIncludeFile(s)&&(d[s]=!0)}),t.storageGroupUUIDs.push(...m),t.maxVirtualDiskSizes.fill(v))}return t},{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:B,maxVirtualDiskSizes:l.map(()=>B),storageGroupUUIDs:[]});return c.fileUUIDs=Object.keys(d),l.forEach((t,n)=>{""!==t&&(c.maxVirtualDiskSizes[n]=s[t].storageGroupFree)}),c},createVirtualDiskForm=(t,s,n,e,o,u,i,a)=>{let get=function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return t[n][e]},set=function(e,o){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;t[e][l]=o,n({...t})},changeVDSize=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;set("sizes",n);let{formattedMaxVDSizes:e,maxVirtualDiskSizes:o}=u({virtualDisks:t});a({inputs:{["vd".concat(s,"Size")]:{displayMax:"".concat(e[s]),max:o[s],value:n}}})},handleVDSizeChange=t=>{let{value:s=get("inputSizes"),unit:n=get("inputUnits")}=t;s!==get("inputSizes")&&set("inputSizes",s),n!==get("inputUnits")&&set("inputUnits",n),(0,v.KY)(s,n,t=>changeVDSize(t),()=>changeVDSize())},handleVDStorageGroupChange=function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:get("inputStorageGroupUUIDs");s!==get("inputStorageGroupUUIDs")&&set("inputStorageGroupUUIDs",s),u({virtualDisks:t})};return(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-virtual-disk-size-".concat(s),label:"Disk size",messageBoxProps:get("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(get("inputMaxes")," ").concat(get("inputUnits")),{onButtonClick:()=>{set("inputSizes",get("inputMaxes")),changeVDSize(get("maxes"))}}),onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({value:s})},type:"number",value:get("inputSizes")},inputLabelProps:{isNotifyRequired:get("sizes")===B}},selectItems:M,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({unit:s})},value:get("inputUnits")}}})}),(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(b.Z,{id:"ps-storage-group-".concat(s),label:"Storage group",disableItem:t=>!(o.includes(t)&&get("sizes")<=i[t].storageGroupFree),inputLabelProps:{isNotifyRequired:0===get("inputStorageGroupUUIDs").length},messageBoxProps:get("inputStorageGroupUUIDMessages"),selectItems:e,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDStorageGroupChange(s)},onClearIndicatorClick:()=>handleVDStorageGroupChange(""),renderValue:t=>{var s;let{anvilName:n="?",storageGroupName:e="Unknown (".concat(t,")")}=null!==(s=i[t])&&void 0!==s?s:{};return"".concat(e," (").concat(n,")")},value:get("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(get("stateIds")))},addVirtualDisk=function(){let{existingVirtualDisks:t={stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]},stateId:s=(0,C.Z)(),inputMax:n="0",inputSize:e="",inputSizeMessage:o,inputStorageGroupUUID:l="",inputStorageGroupUUIDMessage:u,inputUnit:r="GiB",max:i=B,setVirtualDisks:a,size:d=B}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stateIds:c,inputMaxes:p,inputSizeMessages:f,inputSizes:I,inputStorageGroupUUIDMessages:m,inputStorageGroupUUIDs:v,inputUnits:h,maxes:g,sizes:x}=t;return c.push(s),p.push(n),f.push(o),I.push(e),m.push(u),v.push(l),h.push(r),g.push(i),x.push(d),null==a||a.call(null,{...t}),t},filterBlanks=t=>t.filter(t=>""!==t),getDisplayDsizeOptions=t=>({fromUnit:"B",onSuccess:{string:t},precision:0,toUnit:"ibyte"});(0,v.Bh)(z,getDisplayDsizeOptions((t,s)=>{e="".concat(t," ").concat(s)})),(0,v.Bh)(k,getDisplayDsizeOptions((t,s)=>{o="".concat(t," ").concat(s)}));var components_ProvisionServerDialog=t=>{let{dialogProps:{open:s},onClose:n}=t,[C,S]=(0,u.useState)([]),[U,D]=(0,u.useState)({}),[A,F]=(0,u.useState)({}),[Z,T]=(0,u.useState)({}),[O,w]=(0,u.useState)({}),[N,V]=(0,u.useState)([]),[L,R]=(0,u.useState)([]),[E,Q]=(0,u.useState)([]),[q,W]=(0,u.useState)([]),[H,Y]=(0,u.useState)(""),[$,J]=(0,u.useState)(),[K,X]=(0,u.useState)(1),[tt,ts]=(0,u.useState)(0),[tn,te]=(0,u.useState)(),[to,tl]=(0,u.useState)(B),[tu,tr]=(0,u.useState)(B),[ti,ta]=(0,u.useState)(),[td,tC]=(0,u.useState)("0"),[tc,tp]=(0,u.useState)(""),[tf,tI]=(0,u.useState)("GiB"),[tm,tv]=(0,u.useState)(addVirtualDisk()),[th,tg]=(0,u.useState)(""),[tx,tS]=(0,u.useState)(),[tU,tb]=(0,u.useState)(""),[tD]=(0,u.useState)(),[ty,tj]=(0,u.useState)(""),[tP,t_]=(0,u.useState)(),[tB,tM]=(0,u.useState)(null),[tz,tk]=(0,u.useState)(),[tG,tA]=(0,u.useState)([]),[tF,tZ]=(0,u.useState)([]),[tT,tO]=(0,u.useState)([]),[tw,tN]=(0,u.useState)(!1),[tV,tL]=(0,u.useState)(!1),[tR,tE]=(0,u.useState)(!1),[tQ,tq]=(0,u.useState)(0),tW=(0,u.useMemo)(()=>{let t=[];for(let s=1;s<=tt;s+=1)t.push(s);return t},[tt]),tH={serverName:{defaults:{onSuccess:()=>{J(void 0)},value:H},isRequired:!0,tests:[{onFailure:()=>{J({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:t=>{let{value:s}=t,{length:n}=s;return n>=1&&n<=16}},{onFailure:()=>{J({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:t=>{let{value:s}=t;return/^[a-zA-Z0-9_-]+$/.test(s)}},{onFailure:()=>{J({text:"This server name already exists, please choose another name.",type:"warning"})},test:t=>{let{value:s}=t;return void 0===Z[s]}}]},cpuCores:{defaults:{max:tt,min:1,onSuccess:()=>{te(void 0)},value:K},isRequired:!0,tests:[{onFailure:()=>{te({text:"Non available.",type:"warning"})},test:P.X7},{onFailure:t=>{let{displayMax:s,displayMin:n}=t;te({text:"The number of CPU cores is expected to be between ".concat(n," and ").concat(s,"."),type:"warning"})},test:P.SQ}]},memory:{defaults:{displayMax:"".concat(td," ").concat(tf),displayMin:e,max:tu,min:z,onSuccess:()=>{ta(void 0)},value:to},isRequired:!0,tests:[{onFailure:()=>{ta({text:"Non available.",type:"warning"})},test:P.X7},{onFailure:t=>{let{displayMax:s,displayMin:n}=t;ta({text:"Memory is expected to be between ".concat(n," and ").concat(s,"."),type:"warning"})},test:P.SQ}]},installISO:{defaults:{onSuccess:()=>{tS(void 0)},value:th},isRequired:!0,tests:[{test:P.HJ}]},anvil:{defaults:{onSuccess:()=>{t_(void 0)},value:ty},isRequired:!0,tests:[{test:P.HJ}]},optimizeForOS:{defaults:{onSuccess:()=>{tk(void 0)},value:null==tB?void 0:tB.key},isRequired:!0,tests:[{test:P.HJ}]}};tm.inputSizeMessages.forEach((t,s)=>{tH["vd".concat(s,"Size")]={defaults:{displayMax:"".concat(tm.inputMaxes[s]," ").concat(tm.inputUnits[s]),displayMin:o,max:tm.maxes[s],min:k,onSuccess:()=>{tm.inputSizeMessages[s]=void 0},value:tm.sizes[s]},isRequired:!0,onFinishBatch:()=>{tv({...tm})},tests:[{onFailure:()=>{tm.inputSizeMessages[s]={text:"Non available.",type:"warning"}},test:P.X7},{onFailure:t=>{let{displayMax:n,displayMin:e}=t;tm.inputSizeMessages[s]={text:"Virtual disk ".concat(s," size is expected to be between ").concat(e," and ").concat(n,"."),type:"warning"}},test:P.SQ}]},tH["vd".concat(s,"StorageGroup")]={defaults:{onSuccess:()=>{tm.inputStorageGroupUUIDMessages[s]=void 0},value:tm.inputStorageGroupUUIDs[s]},isRequired:!0,onFinishBatch:()=>{tv({...tm})},tests:[{test:P.HJ}]}});let updateLimits=function(){let{allAnvils:t=C,cpuCores:s=K,fileUUIDs:n=[th,tU],includeAnvilUUIDs:e=filterBlanks([ty]),includeFileUUIDs:o,includeStorageGroupUUIDs:l,inputMemoryUnit:u=tf,memory:r=to,storageGroupUUIDMapToData:i=O,virtualDisks:a=tm}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{anvilUUIDs:d,fileUUIDs:c,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I,storageGroupUUIDs:m}=filterAnvils(t,i,s,r,a.sizes,a.inputStorageGroupUUIDs,n,{includeAnvilUUIDs:e,includeFileUUIDs:o,includeStorageGroupUUIDs:l});ts(p),tr(f);let h=[];a.maxes=I,a.maxes.forEach((t,s)=>{(0,v.Bh)(t,{fromUnit:"B",onSuccess:{string:(t,n)=>{a.inputMaxes[s]=t,h[s]="".concat(t," ").concat(n)}},toUnit:a.inputUnits[s]})}),tv({...a}),tA(d),tZ(c),tO(m);let g="";return(0,v.Bh)(f,{fromUnit:"B",onSuccess:{string:(t,s)=>{tC(t),g="".concat(t," ").concat(s)}},toUnit:u}),{formattedMaxMemory:g,formattedMaxVDSizes:h,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I}},tY=(0,u.useCallback)(updateLimits,[]),testInput=function(){for(var t=arguments.length,s=Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};tl(t);let{formattedMaxMemory:n,maxMemory:e}=updateLimits({inputMemoryUnit:s,memory:t});testInput({inputs:{memory:{displayMax:n,max:e,value:t}}})},handleInputMemoryValueChange=function(){let{value:t=tc,unit:s=tf}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t!==tc&&tp(t),s!==tf&&tI(s),(0,v.KY)(t,s,t=>changeMemory({cmValue:t,cmUnit:s}),()=>changeMemory({cmUnit:s}))},handleInputInstallISOFileUUIDChange=t=>{tg(t),updateLimits({fileUUIDs:[t,tU]})},handleInputDriverISOFileUUIDChange=t=>{tb(t),updateLimits({fileUUIDs:[th,t]})},handleInputAnvilValueChange=t=>{let s=filterBlanks([t]);tj(t),updateLimits({includeAnvilUUIDs:s})};return(0,u.useEffect)(()=>{p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then(t=>{let{data:s}=t,{anvils:n,anvilSelectItems:e,anvilUUIDMapToData:o,fileSelectItems:l,fileUUIDMapToData:u,serverNameMapToData:r,storageGroupSelectItems:i,storageGroupUUIDMapToData:a}=organizeAnvils(s.anvils);S(n),D(o),F(u),T(r),w(a),V(e),R(l),W(i);let d={allAnvils:n,storageGroupUUIDMapToData:a};if(1===e.length){let{0:{value:t}}=e;tj(t),d.includeAnvilUUIDs=[t]}if(1===l.length){let{0:{value:t}}=l;tg(t),d.fileUUIDs=[t,""]}if(1===i.length){let{0:{value:t}}=i;tv(s=>{let n={...s};return n.inputStorageGroupUUIDs[0]=t,d.virtualDisks=n,n})}tY(d),Q(Object.entries(s.oses).map(t=>{let[s,n]=t;return{key:s,label:n}})),tN(!0)})},[tY]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.Z,{fullWidth:!0,maxWidth:"sm",open:s,PaperComponent:y.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,l.jsxs)(y.V9,{children:[(0,l.jsx)(_.z,{text:"Provision a Server"}),(0,l.jsx)(h.Z,{onClick:n,sx:{backgroundColor:c.hM,color:c.lD,"&:hover":{backgroundColor:c.hM}},children:(0,l.jsx)(d.Z,{})})]}),tw?(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(x.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:t=>{let{target:{value:s}}=t;Y(s),testInput({inputs:{serverName:{value:s}}})},value:H},inputLabelProps:{isNotifyRequired:0===H.length},messageBoxProps:$})}),(0,l.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=K<=0},getOptionLabel:t=>String(t),label:"CPU cores",messageBoxProps:tn,noOptionsText:"No available number of cores.",onChange:(t,s)=>{if(!s||s===K)return;X(s);let{maxCPUCores:n}=updateLimits({cpuCores:s});testInput({inputs:{cpuCores:{max:n,value:s}}})},openOnFocus:!0,options:tW,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-cpu-cores-".concat(s)},s),value:K}),(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-memory",label:"Memory",messageBoxProps:ti,inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(td," ").concat(tf),{onButtonClick:()=>{tp(td),changeMemory({cmValue:tu})}}),onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({value:s})},type:"number",value:tc},inputLabelProps:{isNotifyRequired:to===B}},selectItems:M,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({unit:s})},value:tf}}}),tm.stateIds.map((t,s)=>createVirtualDiskForm(tm,s,tv,q,tT,updateLimits,O,testInput)),(0,l.jsx)(b.Z,{disableItem:t=>t===tU,hideItem:t=>!tF.includes(t),id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===th.length},label:"Install ISO",messageBoxProps:tx,selectItems:L,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputInstallISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputInstallISOFileUUIDChange(""),value:th}}),(0,l.jsx)(b.Z,{disableItem:t=>t===th,hideItem:t=>!tF.includes(t),id:"ps-driver-image",label:"Driver ISO",messageBoxProps:tD,selectItems:L,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputDriverISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputDriverISOFileUUIDChange(""),value:tU}}),(0,l.jsx)(b.Z,{disableItem:t=>!tG.includes(t),id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===ty.length},label:"Anvil node",messageBoxProps:tP,selectItems:N,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputAnvilValueChange(s)},onClearIndicatorClick:()=>handleInputAnvilValueChange(""),renderValue:t=>{var s;let{anvilName:n="Unknown ".concat(t)}=null!==(s=U[t])&&void 0!==s?s:{};return n},value:ty}}),(0,l.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=null===tB},isOptionEqualToValue:(t,s)=>t.key===s.key,label:"Optimize for OS",messageBoxProps:tz,noOptionsText:"No matching OS",onChange:(t,s)=>{tM(s)},openOnFocus:!0,options:E,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-optimize-for-os-".concat(s.key),children:[s.label," (",s.key,")"]}),value:tB})]}):(0,l.jsx)(j.Z,{}),(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[tQ>0&&(0,l.jsx)(g.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),tR?(0,l.jsx)(j.Z,{mt:0}):(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,l.jsx)(m.Z,{disabled:!testInput({isIgnoreOnCallbacks:!0}),onClick:()=>{tL(!0)},sx:G,children:"Provision"})})]})]}),tV&&(0,l.jsx)(I.Z,{actionProceedText:"Provision",content:(0,l.jsxs)(i.ZP,{container:!0,columns:10,direction:"column",children:[(0,l.jsx)(i.ZP,{item:!0,xs:10,children:(0,l.jsxs)(_.Ac,{children:["Server ",(0,l.jsx)(_.Q0,{text:H})," will be created on anvil node"," ",(0,l.jsx)(_.Q0,{text:U[ty].anvilName})," ","with the following properties:"]})}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(_.Ac,{text:"CPU"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(_.Ac,{children:[(0,l.jsx)(_.Q0,{edge:"start",children:K})," ","core(s)"]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(_.Ac,{children:[(0,l.jsx)(_.Q0,{edge:"start",children:tt})," ","core(s) available"]})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(_.Ac,{text:"Memory"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsx)(_.Ac,{children:(0,l.jsxs)(_.Q0,{edge:"start",children:[tc," ",tf]})})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(_.Ac,{children:[(0,l.jsxs)(_.Q0,{edge:"start",children:[td," ",tf]})," ","available"]})})]}),tm.stateIds.map((t,s)=>{let n=tm.inputMaxes[s],e=tm.inputSizes[s],o=tm.inputUnits[s],u=O[tm.inputStorageGroupUUIDs[s]].storageGroupName;return(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsxs)(_.Ac,{children:["Disk ",(0,l.jsx)(_.Q0,{text:s})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(_.Ac,{children:[(0,l.jsxs)(_.Q0,{edge:"start",children:[e," ",o]})," ","on ",(0,l.jsx)(_.Q0,{children:u})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(_.Ac,{children:[(0,l.jsxs)(_.Q0,{edge:"start",children:[n," ",o]})," ","available"]})})]},"ps-virtual-disk-".concat(t,"-summary"))}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(_.Ac,{text:"Install ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(_.Ac,{children:(0,l.jsx)(_.Q0,{edge:"start",children:A[th].fileName})})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(_.Ac,{text:"Driver ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(_.Ac,{children:A[tU]?(0,l.jsx)(_.Q0,{edge:"start",children:A[tU].fileName}):"none"})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(_.Ac,{text:"Optimize for OS"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(_.Ac,{children:(0,l.jsx)(_.Q0,{edge:"start",children:"".concat(null==tB?void 0:tB.label)})})})]})]}),dialogProps:{open:tV},onCancelAppend:()=>{tL(!1)},onProceedAppend:()=>{let t={serverName:H,cpuCores:K,memory:to.toString(),virtualDisks:tm.stateIds.map((t,s)=>({storageSize:tm.sizes[s].toString(),storageGroupUUID:tm.inputStorageGroupUUIDs[s]})),installISOFileUUID:th,driverISOFileUUID:tU,anvilUUID:ty,optimizeForOS:null==tB?void 0:tB.key};tE(!0),p.Z.post("/server",t).then(()=>{tE(!1),tq(tQ+1)}),tL(!1)},proceedButtonProps:{sx:G},titleText:"Provision ".concat(H,"?")})]})}},65939:function(t,s,n){"use strict";n.d(s,{FZ:function(){return a},OU:function(){return c},ah:function(){return C},tf:function(){return d}});let e="[a-z0-9]",o="[a-z0-9-]",l="[0-9a-f]",u="(?:25[0-5]|(?:2[0-4]|1[0-9]|[1-9]|)[0-9])",r="(?:".concat(u,"[.]){3}").concat(u),i="".concat(l,"{8}-(?:").concat(l,"{4}-){3}").concat(l,"{12}"),a=new RegExp("^(?:".concat(e,"(?:").concat(o,"{0,61}").concat(e,")?[.])+").concat(e).concat(o,"{0,61}").concat(e,"$")),d=new RegExp("^".concat(r,"$")),C=new RegExp("^(?:".concat(r,"\\s*,\\s*)*").concat(r,"$")),c=/^[^'"/\\><}{]*$/;RegExp("^".concat(i,"$"),"i")},56746:function(t,s,n){"use strict";n.d(s,{Bh:function(){return format_data_size_wrappers_dsize},KY:function(){return format_data_size_wrappers_dsizeToByte},MU:function(){return format_data_size_wrappers_toBinaryByte}});var e=n(54490),format_data_size_wrappers_dsize=function(t){let{fromUnit:s,onFailure:n,onSuccess:o,precision:l,toUnit:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,e.gO)(t,{fromUnit:s,precision:l,toUnit:u});if(r){let{value:t,unit:s}=r;try{var i,a,d;null==o||null===(i=o.bigint)||void 0===i||i.call(null,BigInt(t),s),null==o||null===(a=o.number)||void 0===a||a.call(null,parseFloat(t),s),null==o||null===(d=o.string)||void 0===d||d.call(null,t,s)}catch(e){null==n||n.call(null,e,t,s)}}else null==n||n.call(null)},format_data_size_wrappers_dsizeToByte=(t,s,n,e)=>{format_data_size_wrappers_dsize(t,{fromUnit:s,onFailure:e,onSuccess:{bigint:n},precision:0,toUnit:"B"})},format_data_size_wrappers_toBinaryByte=t=>(0,e._d)(t,{toUnit:"ibyte"})},50233:function(t,s,n){"use strict";n.d(s,{_:function(){return test_input_buildIPAddressTestBatch},dg:function(){return test_input_buildIpCsvTestBatch},qY:function(){return test_input_buildNumberTestBatch},Gn:function(){return test_input_buildPeacefulStringTestBatch},LT:function(){return test_input_createTestInputFunction},BD:function(){return test_input_testInput},X7:function(){return test_input_testMax},HJ:function(){return test_input_testNotBlank},SQ:function(){return test_input_testRange}});var e=n(85893),o=n(65939),l=n(84154),test_input_testNotBlank=t=>{let{value:s}=t;return!!s&&String(s).length>0},test_input_buildIPAddressTestBatch=function(t,s){let{isRequired:n,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:n,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return o.tf.test(s)}}]}},test_input_buildIpCsvTestBatch=function(t,s){let{isRequired:n,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:n,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return o.ah.test(s)}}]}},test_input_testRange=t=>{let{max:s,min:n,value:e}=t;return!!e&&e>=n&&e<=s},lib_toNumber=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"==typeof t?t:Number[s](String(t))},test_input_buildNumberTestBatch=function(t,s){let{isRequired:n,onFinishBatch:o,...l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=[];return u?a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return Number.isSafeInteger(lib_toNumber(s))}}):r&&a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o{let{value:s}=t;return Number.isFinite(lib_toNumber(s,"parseFloat"))}}),i&&a.push({onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...r,onSuccess:s},isRequired:n,onFinishBatch:u,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,n=Array(s),o=0;o"}),"), curly brackets (",(0,e.jsx)(l.Q0,{inheritColour:!0,text:"{}"}),")."]}),...n)},test:t=>{let{value:s}=t;return o.OU.test(s)}}]}};let cbEmptySetter=()=>({}),cbSetter=t=>{let{onFailure:s,onSuccess:n}=t;return{cbFailure:s,cbSuccess:n}},evalIsIgnoreOnCallbacks=t=>{let{isIgnoreOnCallbacks:s,onFinishBatch:n}=t;return s?{setTestCallbacks:cbEmptySetter}:{cbFinishBatch:n,setTestCallbacks:cbSetter}},nullishSet=(t,s)=>null!=t?t:s,orSet=(t,s)=>t||s;var test_input_testInput=function(){let{excludeTestIds:t=[],excludeTestIdsRe:s,inputs:n={},isContinueOnFailure:e,isIgnoreOnCallbacks:o,isTestAll:l=0===Object.keys(n).length,tests:u={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[...t],i={},a=!0;return l&&Object.keys(u).forEach(t=>{i[t]={}}),i={...i,...n},s&&Object.keys(i).forEach(t=>{s.test(t)&&r.push(t)}),r.forEach(t=>{delete i[t]}),Object.keys(i).every(t=>{let{defaults:{compare:s=[],displayMax:n,displayMin:l,getCompare:r,getValue:d,isIgnoreOnCallbacks:C=o,max:c=0,min:p=0,onSuccess:f,value:I=null}={},isRequired:m=!1,onFinishBatch:v,optionalTests:h,tests:g}=u[t],{getCompare:x=r,getValue:S=d,isIgnoreOnCallbacks:U=C,max:b=c,min:D=p,compare:y=nullishSet(null==x?void 0:x.call(null),s),value:j=nullishSet(null==S?void 0:S.call(null),I),displayMax:P=orSet(n,String(b)),displayMin:_=orSet(l,String(D))}=i[t],{cbFinishBatch:B,setTestCallbacks:M}=evalIsIgnoreOnCallbacks({isIgnoreOnCallbacks:U,onFinishBatch:v});if(!j&&!m)return null==B||B.call(null,!0,t),!0;let runTest=t=>{let{onFailure:s,onSuccess:n=f,test:e}=t,o={},l=e({append:o,compare:y,max:b,min:D,value:j}),{cbFailure:u,cbSuccess:r}=M({onFailure:s,onSuccess:n});return l?null==r||r.call(null,{append:o}):(a=l,null==u||u.call(null,{append:o,compare:y,displayMax:P,displayMin:_,max:b,min:D,value:j})),l};null==h||h.forEach(runTest);let z=g.every(runTest);return null==B||B.call(null,z,t),z||e}),a},test_input_createTestInputFunction=function(t){let{excludeTestIds:s=[],...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){let{excludeTestIds:e=[],...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return test_input_testInput({tests:t,excludeTestIds:[...s,...e],...n,...o})}},test_input_testMax=t=>{let{max:s,min:n}=t;return s>=n}}}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/814-6420b976d086fe20.js b/striker-ui/out/_next/static/chunks/814-6420b976d086fe20.js new file mode 100644 index 00000000..efe7088a --- /dev/null +++ b/striker-ui/out/_next/static/chunks/814-6420b976d086fe20.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814],{53457:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(90948),c=r(71657),u=r(1588),d=r(34867);function getFormGroupUtilityClass(e){return(0,d.Z)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var f=r(74423),p=r(15704),h=r(85893);let b=["className","row"],useUtilityClasses=e=>{let{classes:t,row:r,error:o}=e;return(0,a.Z)({root:["root",r&&"row",o&&"error"]},getFormGroupUtilityClass,t)},v=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>(0,l.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),m=n.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:a=!1}=r,s=(0,o.Z)(r,b),u=(0,f.Z)(),d=(0,p.Z)({props:r,muiFormControl:u,states:["error"]}),m=(0,l.Z)({},r,{row:a,error:d.error}),Z=useUtilityClasses(m);return(0,h.jsx)(v,(0,l.Z)({className:(0,i.Z)(Z.root,n),ownerState:m,ref:t},s))});var Z=m},84376:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(41796),c=r(21964),u=r(71657),d=r(77892),f=r(85893),p=(0,d.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,d.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),b=r(90948);let v=(0,b.ZP)("span",{shouldForwardProp:b.FO})({position:"relative",display:"flex"}),m=(0,b.ZP)(p)({transform:"scale(1)"}),Z=(0,b.ZP)(h)(({theme:e,ownerState:t})=>(0,l.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));var Radio_RadioButtonIcon=function(e){let{checked:t=!1,classes:r={},fontSize:o}=e,n=(0,l.Z)({},e,{checked:t});return(0,f.jsxs)(v,{className:r.root,ownerState:n,children:[(0,f.jsx)(m,{fontSize:o,className:r.background,ownerState:n}),(0,f.jsx)(Z,{fontSize:o,className:r.dot,ownerState:n})]})},g=r(98216),y=r(35893),S=r(80209),x=r(64568);let w=["checked","checkedIcon","color","icon","name","onChange","size","className"],useUtilityClasses=e=>{let{classes:t,color:r,size:o}=e,n={root:["root",`color${(0,g.Z)(r)}`,"medium"!==o&&`size${(0,g.Z)(o)}`]};return(0,l.Z)({},t,(0,a.Z)(n,x.l,t))},C=(0,b.ZP)(c.Z,{shouldForwardProp:e=>(0,b.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${(0,g.Z)(r.size)}`],t[`color${(0,g.Z)(r.color)}`]]}})(({theme:e,ownerState:t})=>(0,l.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${x.Z.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${x.Z.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),B=(0,f.jsx)(Radio_RadioButtonIcon,{checked:!0}),R=(0,f.jsx)(Radio_RadioButtonIcon,{}),k=n.forwardRef(function(e,t){var r,a,s,c;let d=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:p,checkedIcon:h=B,color:b="primary",icon:v=R,name:m,onChange:Z,size:g="medium",className:x}=d,k=(0,o.Z)(d,w),I=(0,l.Z)({},d,{color:b,size:g}),M=useUtilityClasses(I),E=n.useContext(S.Z),T=p,j=(0,y.Z)(Z,E&&E.onChange),z=m;return E&&(void 0===T&&(s=E.value,T="object"==typeof(c=d.value)&&null!==c?s===c:String(s)===String(c)),void 0===z&&(z=E.name)),(0,f.jsx)(C,(0,l.Z)({type:"radio",icon:n.cloneElement(v,{fontSize:null!=(r=R.props.fontSize)?r:g}),checkedIcon:n.cloneElement(h,{fontSize:null!=(a=B.props.fontSize)?a:g}),ownerState:I,classes:M,name:z,checked:T,onChange:j,ref:t,className:(0,i.Z)(M.root,x)},k))});var I=k},64568:function(e,t,r){"use strict";r.d(t,{l:function(){return getRadioUtilityClass}});var o=r(1588),l=r(34867);function getRadioUtilityClass(e){return(0,l.Z)("MuiRadio",e)}let n=(0,o.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);t.Z=n},68061:function(e,t,r){"use strict";var o=r(87462),l=r(63366),n=r(67294),i=r(53457),a=r(51705),s=r(49299),c=r(80209),u=r(27909),d=r(85893);let f=["actions","children","defaultValue","name","onChange","value"],p=n.forwardRef(function(e,t){let{actions:r,children:p,defaultValue:h,name:b,onChange:v,value:m}=e,Z=(0,l.Z)(e,f),g=n.useRef(null),[y,S]=(0,s.Z)({controlled:m,default:h,name:"RadioGroup"});n.useImperativeHandle(r,()=>({focus:()=>{let e=g.current.querySelector("input:not(:disabled):checked");e||(e=g.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let x=(0,a.Z)(t,g),w=(0,u.Z)(b),C=n.useMemo(()=>({name:w,onChange(e){S(e.target.value),v&&v(e,e.target.value)},value:y}),[w,v,S,y]);return(0,d.jsx)(c.Z.Provider,{value:C,children:(0,d.jsx)(i.Z,(0,o.Z)({role:"radiogroup",ref:x},Z,{children:p}))})});t.Z=p},80209:function(e,t,r){"use strict";var o=r(67294);let l=o.createContext(void 0);t.Z=l},75316:function(e,t,r){"use strict";var o=r(63366),l=r(87462),n=r(67294),i=r(63961),a=r(94780),s=r(47739),c=r(98216),u=r(71657),d=r(90948),f=r(21073),p=r(85893);let h=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],useUtilityClasses=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:n,label:i,selected:s,disabled:u}=e,d={root:["root",n&&i&&"labelIcon",`textColor${(0,c.Z)(r)}`,o&&"fullWidth",l&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(d,f.V,t)},b=(0,d.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,c.Z)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>(0,l.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${f.Z.iconWrapper}`]:(0,l.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${f.Z.selected}`]:{opacity:1},[`&.${f.Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${f.Z.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${f.Z.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),v=n.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:f,iconPosition:v="top",indicator:m,label:Z,onChange:g,onClick:y,onFocus:S,selected:x,selectionFollowsFocus:w,textColor:C="inherit",value:B,wrapped:R=!1}=r,k=(0,o.Z)(r,h),I=(0,l.Z)({},r,{disabled:s,disableFocusRipple:c,selected:x,icon:!!f,iconPosition:v,label:!!Z,fullWidth:d,textColor:C,wrapped:R}),M=useUtilityClasses(I),E=f&&Z&&n.isValidElement(f)?n.cloneElement(f,{className:(0,i.Z)(M.iconWrapper,f.props.className)}):f;return(0,p.jsxs)(b,(0,l.Z)({focusRipple:!c,className:(0,i.Z)(M.root,a),ref:t,role:"tab","aria-selected":x,disabled:s,onClick:e=>{!x&&g&&g(e,B),y&&y(e)},onFocus:e=>{w&&!x&&g&&g(e,B),S&&S(e)},ownerState:I,tabIndex:x?0:-1},k,{children:["top"===v||"start"===v?(0,p.jsxs)(n.Fragment,{children:[E,Z]}):(0,p.jsxs)(n.Fragment,{children:[Z,E]}),m]}))});t.Z=v},21073:function(e,t,r){"use strict";r.d(t,{V:function(){return getTabUtilityClass}});var o=r(1588),l=r(34867);function getTabUtilityClass(e){return(0,l.Z)("MuiTab",e)}let n=(0,o.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);t.Z=n},37023:function(e,t,r){"use strict";let o;r.d(t,{Z:function(){return L}});var l=r(63366),n=r(87462),i=r(67294);r(59864);var a=r(63961),s=r(94780),c=r(5094),u=r(90948),d=r(71657),f=r(2734),p=r(57144);function detectScrollType(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function easeInOutSin(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h=r(58974),b=r(5340),v=r(85893);let m=["onChange"],Z={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var g=r(67070),y=r(56686),S=r(47739),x=r(1588),w=r(34867);function getTabScrollButtonUtilityClass(e){return(0,w.Z)("MuiTabScrollButton",e)}let C=(0,x.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),B=["className","slots","slotProps","direction","orientation","disabled"],useUtilityClasses=e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,s.Z)({root:["root",r,o&&"disabled"]},getTabScrollButtonUtilityClass,t)},R=(0,u.ZP)(S.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>(0,n.Z)({width:40,flexShrink:0,opacity:.8,[`&.${C.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),k=i.forwardRef(function(e,t){var r,o;let i=(0,d.Z)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:u={},slotProps:p={},direction:h}=i,b=(0,l.Z)(i,B),m=(0,f.Z)(),Z="rtl"===m.direction,S=(0,n.Z)({isRtl:Z},i),x=useUtilityClasses(S),w=null!=(r=u.StartScrollButtonIcon)?r:g.Z,C=null!=(o=u.EndScrollButtonIcon)?o:y.Z,k=(0,c.y)({elementType:w,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),I=(0,c.y)({elementType:C,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return(0,v.jsx)(R,(0,n.Z)({component:"div",className:(0,a.Z)(x.root,s),ref:t,role:null,ownerState:S,tabIndex:null},b,{children:"left"===h?(0,v.jsx)(w,(0,n.Z)({},k)):(0,v.jsx)(C,(0,n.Z)({},I))}))});var I=r(2068),M=r(90852),E=r(8038);let T=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nextItem=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,previousItem=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,moveFocus=(e,t,r)=>{let o=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(o)return;o=!0}let t=l.disabled||"true"===l.getAttribute("aria-disabled");if(!l.hasAttribute("tabindex")||t)l=r(e,l);else{l.focus();return}}},Tabs_useUtilityClasses=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},M.m,c)},j=(0,u.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${M.Z.scrollButtons}`]:t.scrollButtons},{[`& .${M.Z.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${M.Z.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),z=(0,u.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>(0,n.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),P=(0,u.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>(0,n.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),N=(0,u.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>(0,n.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),_=(0,u.ZP)(function(e){let{onChange:t}=e,r=(0,l.Z)(e,m),o=i.useRef(),a=i.useRef(null),setMeasurements=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,h.Z)(()=>{let e=(0,p.Z)(()=>{let e=o.current;setMeasurements(),e!==o.current&&t(o.current)}),r=(0,b.Z)(a.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{setMeasurements(),t(o.current)},[t]),(0,v.jsx)("div",(0,n.Z)({style:Z,ref:a},r))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),W={},F=i.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiTabs"}),o=(0,f.Z)(),s="rtl"===o.direction,{"aria-label":u,"aria-labelledby":h,action:m,centered:Z=!1,children:g,className:y,component:S="div",allowScrollButtonsMobile:x=!1,indicatorColor:w="primary",onChange:C,orientation:B="horizontal",ScrollButtonComponent:R=k,scrollButtons:M="auto",selectionFollowsFocus:F,slots:L={},slotProps:O={},TabIndicatorProps:$={},TabScrollButtonProps:A={},textColor:U="primary",value:H,variant:D="standard",visibleScrollbar:X=!1}=r,V=(0,l.Z)(r,T),Y="scrollable"===D,q="vertical"===B,G=q?"scrollTop":"scrollLeft",K=q?"top":"left",J=q?"bottom":"right",Q=q?"clientHeight":"clientWidth",ee=q?"height":"width",et=(0,n.Z)({},r,{component:S,allowScrollButtonsMobile:x,indicatorColor:w,orientation:B,vertical:q,scrollButtons:M,textColor:U,variant:D,visibleScrollbar:X,fixed:!Y,hideScrollbar:Y&&!X,scrollableX:Y&&!q,scrollableY:Y&&q,centered:Z&&!Y,scrollButtonsHideMobile:!x}),er=Tabs_useUtilityClasses(et),eo=(0,c.y)({elementType:L.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:et}),el=(0,c.y)({elementType:L.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:et}),[en,ei]=i.useState(!1),[ea,es]=i.useState(W),[ec,eu]=i.useState(!1),[ed,ef]=i.useState(!1),[ep,eh]=i.useState(!1),[eb,ev]=i.useState({overflow:"hidden",scrollbarWidth:0}),em=new Map,eZ=i.useRef(null),eg=i.useRef(null),getTabsMeta=()=>{let e,t;let r=eZ.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;let o=detectScrollType();switch(o){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,o.direction),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==H){let e=eg.current.children;if(e.length>0){let r=e[em.get(H)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ey=(0,I.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=getTabsMeta(),o=0;if(q)e="top",r&&t&&(o=r.top-t.top+t.scrollTop);else if(e=s?"right":"left",r&&t){let l=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;o=(s?-1:1)*(r[e]-t[e]+l)}let l={[e]:o,[ee]:r?r[ee]:0};if(isNaN(ea[e])||isNaN(ea[ee]))es(l);else{let t=Math.abs(ea[e]-l[e]),r=Math.abs(ea[ee]-l[ee]);(t>=1||r>=1)&&es(l)}}),scroll=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:n=easeInOutSin,duration:i=300}=o,a=null,s=t[e],c=!1,step=o=>{if(c){l(Error("Animation cancelled"));return}null===a&&(a=o);let u=Math.min(1,(o-a)/i);if(t[e]=n(u)*(r-s)+s,u>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(step)};return s===r?l(Error("Element already at target position")):requestAnimationFrame(step),()=>{c=!0}}(G,eZ.current,e,{duration:o.transitions.duration.standard}):eZ.current[G]=e},moveTabsScroll=e=>{let t=eZ.current[G];q?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===detectScrollType()?-1:1),scroll(t)},getScrollSize=()=>{let e=eZ.current[Q],t=0,r=Array.from(eg.current.children);for(let o=0;oe){0===o&&(t=e);break}t+=l[Q]}return t},handleStartScrollClick=()=>{moveTabsScroll(-1*getScrollSize())},handleEndScrollClick=()=>{moveTabsScroll(getScrollSize())},eS=i.useCallback(e=>{ev({overflow:null,scrollbarWidth:e})},[]),ex=(0,I.Z)(e=>{let{tabsMeta:t,tabMeta:r}=getTabsMeta();if(r&&t){if(r[K]t[J]){let o=t[G]+(r[J]-t[J]);scroll(o,{animation:e})}}}),ew=(0,I.Z)(()=>{Y&&!1!==M&&eh(!ep)});i.useEffect(()=>{let e,t;let r=(0,p.Z)(()=>{eZ.current&&ey()}),o=(0,b.Z)(eZ.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eg.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),ew()})).observe(eg.current,{childList:!0}),()=>{var l,n;r.clear(),o.removeEventListener("resize",r),null==(l=t)||l.disconnect(),null==(n=e)||n.disconnect()}},[ey,ew]),i.useEffect(()=>{let e=Array.from(eg.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&Y&&!1!==M){let r=e[0],o=e[t-1],l={root:eZ.current,threshold:.99},n=new IntersectionObserver(e=>{eu(!e[0].isIntersecting)},l);n.observe(r);let i=new IntersectionObserver(e=>{ef(!e[0].isIntersecting)},l);return i.observe(o),()=>{n.disconnect(),i.disconnect()}}},[Y,M,ep,null==g?void 0:g.length]),i.useEffect(()=>{ei(!0)},[]),i.useEffect(()=>{ey()}),i.useEffect(()=>{ex(W!==ea)},[ex,ea]),i.useImperativeHandle(m,()=>({updateIndicator:ey,updateScrollButtons:ew}),[ey,ew]);let eC=(0,v.jsx)(N,(0,n.Z)({},$,{className:(0,a.Z)(er.indicator,$.className),ownerState:et,style:(0,n.Z)({},ea,$.style)})),eB=0,eR=i.Children.map(g,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?eB:e.props.value;em.set(t,eB);let r=t===H;return eB+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===D,indicator:r&&!en&&eC,selected:r,selectionFollowsFocus:F,onChange:C,textColor:U,value:t},1!==eB||!1!==H||e.props.tabIndex?{}:{tabIndex:0}))}),ek=(()=>{let e={};e.scrollbarSizeListener=Y?(0,v.jsx)(_,{onChange:eS,className:(0,a.Z)(er.scrollableX,er.hideScrollbar)}):null;let t=Y&&("auto"===M&&(ec||ed)||!0===M);return e.scrollButtonStart=t?(0,v.jsx)(R,(0,n.Z)({slots:{StartScrollButtonIcon:L.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:eo},orientation:B,direction:s?"right":"left",onClick:handleStartScrollClick,disabled:!ec},A,{className:(0,a.Z)(er.scrollButtons,A.className)})):null,e.scrollButtonEnd=t?(0,v.jsx)(R,(0,n.Z)({slots:{EndScrollButtonIcon:L.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:el},orientation:B,direction:s?"left":"right",onClick:handleEndScrollClick,disabled:!ed},A,{className:(0,a.Z)(er.scrollButtons,A.className)})):null,e})();return(0,v.jsxs)(j,(0,n.Z)({className:(0,a.Z)(er.root,y),ownerState:et,ref:t,as:S},V,{children:[ek.scrollButtonStart,ek.scrollbarSizeListener,(0,v.jsxs)(z,{className:er.scroller,ownerState:et,style:{overflow:eb.overflow,[q?`margin${s?"Left":"Right"}`:"marginBottom"]:X?void 0:-eb.scrollbarWidth},ref:eZ,children:[(0,v.jsx)(P,{"aria-label":u,"aria-labelledby":h,"aria-orientation":"vertical"===B?"vertical":null,className:er.flexContainer,ownerState:et,onKeyDown:e=>{let t=eg.current,r=(0,E.Z)(t).activeElement,o=r.getAttribute("role");if("tab"!==o)return;let l="horizontal"===B?"ArrowLeft":"ArrowUp",n="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&s&&(l="ArrowRight",n="ArrowLeft"),e.key){case l:e.preventDefault(),moveFocus(t,r,previousItem);break;case n:e.preventDefault(),moveFocus(t,r,nextItem);break;case"Home":e.preventDefault(),moveFocus(t,null,nextItem);break;case"End":e.preventDefault(),moveFocus(t,null,previousItem)}},ref:eg,role:"tablist",children:eR}),en&&eC]}),ek.scrollButtonEnd]}))});var L=F},90852:function(e,t,r){"use strict";r.d(t,{m:function(){return getTabsUtilityClass}});var o=r(1588),l=r(34867);function getTabsUtilityClass(e){return(0,l.Z)("MuiTabs",e)}let n=(0,o.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.Z=n},88668:function(e,t,r){var o=r(83369),l=r(90619),n=r(72385);function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new o;++tu))return!1;var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var h=-1,b=!0,v=2&r?new o:void 0;for(s.set(e,t),s.set(t,e);++ht.backdrop})({zIndex:-1}),useUtilityClasses=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(r))}`,l&&"paperFullWidth",o&&"paperFullScreen"]};return(0,i.Z)(s,getDialogUtilityClass,t)},P=(0,m.ZP)(d.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),k=(0,m.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${(0,c.Z)(n.scroll)}`]]}})(({ownerState:e})=>(0,l.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),C=(0,m.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,c.Z)(n.scroll)}`],t[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,l.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),S=o.forwardRef(function(e,t){let n=(0,h.Z)({props:e,name:"MuiDialog"}),i=(0,v.Z)(),c={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":m,BackdropComponent:x,BackdropProps:g,children:f,className:j,disableEscapeKeyDown:S=!1,fullScreen:A=!1,fullWidth:M=!1,maxWidth:_="sm",onBackdropClick:T,onClose:E,open:F,PaperComponent:I=p.Z,PaperProps:D={},scroll:O="paper",TransitionComponent:R=u.Z,transitionDuration:W=c,TransitionProps:B}=n,N=(0,r.Z)(n,w),U=(0,l.Z)({},n,{disableEscapeKeyDown:S,fullScreen:A,fullWidth:M,maxWidth:_,scroll:O}),L=useUtilityClasses(U),H=o.useRef(),V=(0,a.Z)(m),$=o.useMemo(()=>({titleId:V}),[V]);return(0,b.jsx)(P,(0,l.Z)({className:(0,s.Z)(L.root,j),closeAfterTransition:!0,components:{Backdrop:y},componentsProps:{backdrop:(0,l.Z)({transitionDuration:W,as:x},g)},disableEscapeKeyDown:S,onClose:E,open:F,ref:t,onClick:e=>{H.current&&(H.current=null,T&&T(e),E&&E(e,"backdropClick"))},ownerState:U},N,{children:(0,b.jsx)(R,(0,l.Z)({appear:!0,in:F,timeout:W,role:"presentation"},B,{children:(0,b.jsx)(k,{className:(0,s.Z)(L.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:U,children:(0,b.jsx)(C,(0,l.Z)({as:I,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":V},D,{className:(0,s.Z)(L.paper,D.className),ownerState:U,children:(0,b.jsx)(Z.Provider,{value:$,children:f})}))})}))}))});var A=S},14453:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(8603)}])},73393:function(e,t,n){"use strict";var r=n(85893),l=n(90948),o=n(67294),s=n(25934),i=n(19467),a=n(55238),c=n(81796);let d=(0,l.ZP)(a.Z)({justifyContent:"flex-end",width:"100%"});t.Z=e=>{let{actions:t=[],loading:n}=e,l=(0,o.useMemo)(()=>t.map(e=>(0,r.jsx)(i.Z,{...e,children:e.children},(0,s.Z)())),[t]);return n?(0,r.jsx)(c.Z,{mt:0}):(0,r.jsx)(d,{row:!0,spacing:".5em",children:l})}},56597:function(e,t,n){"use strict";var r=n(85893),l=n(5616),o=n(67294),s=n(56211),i=n(55238),a=n(4121),c=n(84154);let d=(0,o.forwardRef)((e,t)=>{let{actionCancelText:n="Cancel",actionProceedText:d,children:u,closeOnProceed:p=!1,contentContainerProps:h,dialogProps:m,disableProceed:x,loading:g,loadingAction:f=!1,onActionAppend:Z,onCancelAppend:j,onProceedAppend:v,openInitially:b,preActionArea:w,proceedButtonProps:y,proceedColour:P="blue",scrollContent:k=!1,scrollBoxProps:C,showActionArea:S=!0,showCancel:A,showClose:M,titleText:_,wide:T,content:E=u}=e,F=(0,o.useRef)(null),I=(0,o.useMemo)(()=>(0,a.Z)(E,c.Ac),[E]),D=(0,o.useMemo)(()=>(0,o.createElement)(k?s.VZ:l.Z,C,I),[I,C,k]),O=(0,o.useMemo)(()=>S&&(0,r.jsx)(s.ux,{cancelProps:{children:n,onClick:function(){for(var e=arguments.length,t=Array(e),n=0;n({setOpen:e=>{var t;return null===(t=F.current)||void 0===t?void 0:t.setOpen(e)}}),[]),(0,r.jsx)(s.Js,{dialogProps:m,header:_,loading:g,openInitially:b,ref:F,showClose:M,wide:T,children:(0,r.jsxs)(i.Z,{...h,children:[D,w,O]})})});d.displayName="ConfirmDialog",t.Z=d},56211:function(e,t,n){"use strict";n.d(t,{ux:function(){return Dialog_DialogActionGroup},VZ:function(){return Z},Js:function(){return v}});var r=n(85893),l=n(78262),o=n(67294),s=n(37260),i=n(81796);let a=(0,o.createContext)(void 0),c=(0,o.forwardRef)((e,t)=>{let{children:n,dialogProps:c={},loading:d,openInitially:u=!1,wide:p}=e,{open:h,PaperProps:m={},...x}=c,{sx:g,...f}=m,[Z,j]=(0,o.useState)(u),v=(0,o.useMemo)(()=>null!=h?h:Z,[Z,h]),b=(0,o.useMemo)(()=>d?(0,r.jsx)(i.Z,{mt:0}):n,[n,d]),w=(0,o.useMemo)(()=>({minWidth:p?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible",...g}),[g,p]);return(0,o.useImperativeHandle)(t,()=>({open:v,setOpen:j}),[v]),(0,r.jsx)(l.Z,{open:v,PaperComponent:s.s_,PaperProps:{...f,sx:w},...x,children:(0,r.jsx)(a.Provider,{value:{open:v,setOpen:j},children:b})})});c.displayName="Dialog";var d=n(73393);let handleAction=function(e){let{handlers:{base:t,origin:n}}=e;for(var r=arguments.length,l=Array(r>1?r-1:0),o=1;o{let{cancelProps:t,closeOnProceed:n,loading:l=!1,onCancel:s=handleAction,onProceed:i=handleAction,proceedColour:c,proceedProps:u,showCancel:p=!0,cancelChildren:h=null==t?void 0:t.children,proceedChildren:m=null==u?void 0:u.children}=e,x=(0,o.useContext)(a),g=(0,o.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{null==x||x.setOpen(!1)},origin:null==t?void 0:t.onClick}},...n)},[null==t?void 0:t.onClick,x,s]),f=(0,o.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r{n&&(null==x||x.setOpen(!1))},origin:null==u?void 0:u.onClick}},...t)},[n,x,i,null==u?void 0:u.onClick]),Z=(0,o.useMemo)(()=>{let e=[{background:c,...u,children:m,onClick:f}];return p&&e.unshift({...t,children:h,onClick:g}),(0,r.jsx)(d.Z,{actions:e,loading:l})},[h,g,t,l,m,c,f,u,p]);return Z},u=n(83221),p=n(4121),h=n(84154),Dialog_DialogHeader=e=>{let{children:t,showClose:n}=e,l=(0,o.useContext)(a),i=(0,o.useMemo)(()=>(0,p.Z)(t,h.z),[t]),c=(0,o.useMemo)(()=>n&&(0,r.jsx)(u.Z,{mapPreset:"close",onClick:()=>{null==l||l.setOpen(!1)},size:"small"}),[l,n]);return(0,r.jsxs)(s.V9,{children:[i,c]})},m=n(90948),x=n(5616);let g=(0,m.ZP)(x.Z)({overflowY:"scroll",paddingRight:".4em"}),f=(0,m.ZP)(g)({maxHeight:"60vh"});var Z=f;let j=(0,o.forwardRef)((e,t)=>{let{children:n,dialogProps:l,header:o,loading:s,openInitially:i,showClose:a,wide:d}=e;return(0,r.jsxs)(c,{dialogProps:l,loading:s,openInitially:i,ref:t,wide:d,children:[(0,r.jsx)(Dialog_DialogHeader,{showClose:a,children:o}),n]})});j.displayName="DialogWithHeader";var v=j},87038:function(e,t,n){"use strict";var r=n(85893),l=n(67294),o=n(56597);let s=(0,l.forwardRef)((e,t)=>{let{children:n,contentContainerProps:s,dialogProps:i,onSubmitAppend:a,proceedButtonProps:c,scrollBoxProps:d,scrollContent:u,...p}=e,h=(0,l.useMemo)(()=>({...s,component:"form",onSubmit:function(){for(var e=arguments.length,t=Array(e),n=0;n({...d,sx:u?{overflowX:"hidden",paddingTop:".6em",...null==d?void 0:d.sx}:null==d?void 0:d.sx}),[d,u]);return(0,r.jsx)(o.Z,{dialogProps:i,contentContainerProps:h,proceedButtonProps:{...c,type:"submit"},scrollContent:u,scrollBoxProps:m,wide:!0,...p,ref:t,children:n})});s.displayName="FormDialog",t.Z=s},15079:function(e,t,n){"use strict";var r=n(85893),l=n(97212),o=n(78462),s=n(5616),i=n(55238),a=n(84154),c=n(5744);let renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,r.jsx)(a.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:n}=e;return/passw/i.test(n)?(0,r.jsx)(a.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:n,getEntryLabel:s,getListProps:i,getListItemProps:a,listKey:c,maxDepth:d,renderEntry:u,renderEntryValue:p,skip:h}=e,m=[];Object.entries(n).forEach(e=>{let[n,o]=e,i="form-summary-entry-".concat(n),c=null!==o&&"object"==typeof o,x=c?null:o,g={depth:t,entry:x,key:n};h(e=>{let{key:t}=e;return!/confirm/i.test(t)},g)&&m.push((0,r.jsx)(l.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==a?void 0:a.call(null,g),children:u({depth:t,entry:x,getLabel:s,key:n,nest:c,renderValue:p})},i)),c&&t{let{entries:t,getEntryLabel:n=e=>{let{cap:t,key:n}=e;return t(n)},getListProps:l,getListItemProps:o,hasPassword:d,maxDepth:u=3,renderEntry:p=e=>{let{depth:t,entry:n,getLabel:l,key:o,nest:d,renderValue:u}=e;return(0,r.jsxs)(i.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,r.jsx)(a.Ac,{children:l({cap:c.Z,depth:t,entry:n,key:o})}),(0,r.jsx)(s.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!d&&u({depth:t,entry:n,key:o})})]})},renderEntryValue:h=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,r.jsx)(a.Ac,{children:"none"}):d?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)},skip:m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{calculateItemBreakpoints:t=()=>({xs:1}),layout:n,wrapperBoxProps:i,...a}=e,c=(0,l.useMemo)(()=>{let e=Object.entries(n);return e.map((e,n)=>{let[r,s]=e;return s?(0,l.createElement)(o.ZP,{...t(n,r),key:r,item:!0,...s}):void 0})},[t,n]);return(0,r.jsx)(s.Z,{...i,children:(0,r.jsx)(o.ZP,{container:!0,...a,children:c})})}},21405:function(e,t,n){"use strict";n.d(t,{Z:function(){return components_Header}});var r=n(85893),l=n(41098),o=n(90948),s=n(42293),i=n(5616),a=n(82589),c=n(54799),d=n(67294),u=n(6010),p=n(25709),h=n(13540),m=n(77533),x=n(78462),g=n(97212),f=n(98619);let Z=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"};var v=n(67645),b=n(57632),w=n(55238),y=n(41247),P=n(84154),k=n(34819);let C="AnvilDrawer",S={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},A=(0,o.ZP)(m.ZP)(()=>({["& .".concat(S.list)]:{width:"200px"},["& .".concat(S.actionIcon)]:{fontSize:"2.3em",color:u.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:n}=e,{getSessionUser:l}=(0,k.Z)(),o=l();return(0,r.jsx)(A,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>n(!t),children:(0,r.jsx)("div",{role:"presentation",children:(0,r.jsxs)(x.Z,{className:S.list,children:[(0,r.jsx)(g.ZP,{children:(0,r.jsx)(P.Ac,{children:o?(0,r.jsxs)(r.Fragment,{children:["Welcome, ",o.name]}):"Unregistered"})}),(0,r.jsx)(b.Z,{}),(0,r.jsx)(f.Z,{component:"a",href:"/index.html",children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(p.Z,{className:S.actionIcon}),(0,r.jsx)(P.Ac,{children:"Dashboard"})]})}),Z.map(e=>(0,r.jsx)(f.Z,{component:"a",href:e.uri,children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)("img",{alt:e.text,src:e.image,...j}),(0,r.jsx)(P.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,r.jsx)(f.Z,{onClick:()=>{v.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,y.Z)(e)})},children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(h.Z,{className:S.actionIcon}),(0,r.jsx)(P.Ac,{children:"Logout"})]})})]})})})},M=n(83909),_=n(66354);let T="Header",E={input:"".concat(T,"-input"),barElement:"".concat(T,"-barElement"),iconBox:"".concat(T,"-iconBox"),searchBar:"".concat(T,"-searchBar"),icons:"".concat(T,"-icons")},F=(0,o.ZP)(s.Z)(e=>{let{theme:t}=e;return{paddingTop:t.spacing(.5),paddingBottom:t.spacing(.5),paddingLeft:t.spacing(3),paddingRight:t.spacing(3),borderBottom:"solid 1px",borderBottomColor:u.hM,position:"static",["& .".concat(E.input)]:{height:"2.8em",width:"30vw",backgroundColor:t.palette.secondary.main,borderRadius:u.n_},["& .".concat(E.barElement)]:{padding:0},["& .".concat(E.iconBox)]:{[t.breakpoints.down("sm")]:{display:"none"}},["& .".concat(E.searchBar)]:{[t.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(E.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,d.useRef)({}),t=(0,d.useRef)({}),[n,o]=(0,d.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{children:(0,r.jsxs)(i.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,r.jsx)(w.Z,{row:!0,children:(0,r.jsx)(a.Z,{onClick:()=>o(!n),children:(0,r.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,r.jsx)(w.Z,{className:E.iconBox,row:!0,spacing:0,children:(0,r.jsx)(i.Z,{children:(0,r.jsx)(c.Z,{onClick:e=>{var n,r;let{currentTarget:l}=e;null===(n=t.current.setAnchor)||void 0===n||n.call(null,l),null===(r=t.current.setOpen)||void 0===r||r.call(null,!0)},sx:{color:u.of,padding:"0 .1rem"},children:(0,r.jsx)(M.Z,{icon:l.Z,ref:e})})})})]})}),(0,r.jsx)(components_AnvilDrawer,{open:n,setOpen:o}),(0,r.jsx)(_.Z,{onFetchSuccessAppend:t=>{var n;null===(n=e.current.indicate)||void 0===n||n.call(null,Object.keys(t).length>0)},ref:t})]})}},69836:function(e,t,n){"use strict";var r=n(85893),l=n(43800),o=n(23795),s=n(6010),i=n(55238);t.Z=e=>{let{children:t,sx:n,...a}=e;return(0,r.jsx)(o.Z,{underline:"hover",variant:"subtitle1",...a,sx:{color:s.lD,textDecorationColor:s.s7,...n},children:(0,r.jsxs)(i.Z,{row:!0,children:[t,(0,r.jsx)(l.Z,{sx:{marginLeft:".3em"}})]})})}},32576:function(e,t,n){"use strict";var r=n(85893),l=n(67294),o=n(84070),s=n(15079);t.Z=e=>{let{list:t={}}=e,[n,i]=(0,l.useState)({}),a=(0,l.useMemo)(()=>Object.keys(t),[t]),c=(0,l.useMemo)(()=>Object.keys(n),[n]),d=(0,l.useMemo)(()=>c.length===a.length,[c.length,a.length]),u=(0,l.useMemo)(()=>c.length>0,[c.length]),p=(0,l.useMemo)(()=>a.length>1,[a.length]),h=(0,l.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:l={},getConfirmDialogTitle:o,onProceedAppend:i,renderEntry:a}=e;return{actionProceedText:"Delete",content:(0,r.jsx)(s.Z,{entries:n,maxDepth:0,renderEntry:a,...l}),onProceedAppend:i,proceedColour:"red",titleText:o(c.length),...t}},[n,c.length]),m=(0,l.useCallback)(e=>!!n[e],[n]),x=(0,l.useCallback)(()=>i({}),[]),g=(0,l.useCallback)(e=>i(a.reduce((t,n)=>(e&&(t[n]=e),t),{})),[a]),f=(0,l.useCallback)((e,t)=>i((0,o.ZP)(e,t||void 0)),[]);return{buildDeleteDialogProps:h,checklist:n,checks:c,getCheck:m,hasAllChecks:d,hasChecks:u,multipleItems:p,resetChecks:x,setAllChecks:g,setCheck:f}}},58839:function(e,t,n){"use strict";var r=n(67294);t.Z=function(){let{actionProceedText:e="",content:t="",titleText:n="",...l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.useState)({actionProceedText:e,content:t,titleText:n,...l})}},96867:function(e,t,n){"use strict";var r=n(67294),l=n(67645),o=n(84070),s=n(41247);t.Z=(e,t)=>{var n;let[i,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)({}),u=(0,r.useCallback)(e=>{var n,r;return null==t?void 0:null===(r=t.current)||void 0===r?void 0:null===(n=r.setMessage)||void 0===n?void 0:n.call(null,"api",e)},[t]),p=(0,r.useCallback)((e,n)=>{var r,l;null==t||null===(l=t.current)||void 0===l||null===(r=l.setMessage)||void 0===r||r.call(null,String(e),n)},[t]),h=(0,r.useCallback)((e,n)=>{var r,l;null==t||null===(l=t.current)||void 0===l||null===(r=l.setMessageRe)||void 0===r||r.call(null,e,n)},[t]),m=(0,r.useCallback)((e,t)=>{d((0,o.ZP)(e,t))},[]),x=(0,r.useCallback)((e,t)=>{d((0,o.Um)(e,t))},[]),g=(0,r.useCallback)(e=>{p(e),m(e)},[p,m]),f=(0,r.useCallback)(e=>{h(e),x(e)},[h,x]),Z=(0,r.useCallback)(e=>t=>{m(e,t)},[m]),j=(0,r.useCallback)(e=>t=>{let{isValid:n}=t;m(e,n)},[m]),v=(0,r.useCallback)(e=>()=>{g(e)},[g]),b=(0,r.useCallback)(e=>{let{body:r,getErrorMsg:o,msgKey:i="api",method:c,onError:d,onSuccess:u,setMsg:p=null==t?void 0:null===(n=t.current)||void 0===n?void 0:n.setMessage,successMsg:h,url:m}=e;a(!0),l.Z.request({data:r,method:c,url:m}).then(()=>{null==p||p.call(null,i,{children:h,type:"info"}),null==u||u.call(null)}).catch(e=>{let t=(0,s.Z)(e);t.children=o(t.children),null==p||p.call(null,i,t),null==d||d.call(null)}).finally(()=>{a(!1)})},[t,a]),w=(0,r.useMemo)(()=>Object.values(c).some(e=>!e),[c]);return{buildFinishInputTestBatchFunction:Z,buildInputFirstRenderFunction:j,buildInputUnmountFunction:v,formValidity:c,isFormInvalid:w,isFormSubmitting:i,setApiMessage:u,setFormValidity:d,setMessage:p,setMessageRe:h,setValidity:m,setValidityRe:x,submitForm:b,unsetKey:g,unsetKeyRe:f}}},84070:function(e,t,n){"use strict";n.d(t,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let l={};return Object.keys(r).forEach(o=>{e.test(o)?n(r,l,o,t):l[o]=r[o]}),l}};t.ZP=function(e,t){let{guard:n=()=>!0,set:r=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l=>{let{[e]:o,...s}=l,i={...s};return n(l,e,t)&&r(l,i,e,t),i}}},5813:function(e,t){"use strict";t.default={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},5744:function(e,t,n){"use strict";var r=n(48403),l=n.n(r);t.Z=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2");return l()(t)}},4121:function(e,t,n){"use strict";var r=n(67294);t.Z=(e,t)=>"string"==typeof e?(0,r.createElement)(t,null,e):e},8603:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return config}});var r=n(85893),l=n(48263),o=n(9008),s=n.n(o),i=n(67294),a=n(98436),c=n(56597),d=n(21405),u=n(64666),p=n(5813),h=n(94121),m=n(67645);let buildMessageSetter=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,setter=n=>{var r;null===(r=t.current.setMessage)||void 0===r||r.call(null,e,n)};return n&&(n[r]=setter),setter};var lib_buildMapToMessageSetter=(e,t)=>{let n={};return e instanceof Array?e.reduce((e,n)=>(buildMessageSetter(n,t,e),e),n):Object.entries(e).reduce((e,n)=>{let[r,l]=n;return buildMessageSetter(l,t,e,r),e},n)},x=n(84070),g=n(58843),f=n(35348),Z=n(84154),components_CheckboxWithLabel=e=>{let{checkboxProps:t,checked:n,formControlLabelProps:l,label:o,onChange:s}=e,a=(0,i.useMemo)(()=>"string"==typeof o?(0,r.jsx)(Z.Ac,{children:o}):o,[o]);return(0,r.jsx)(g.Z,{...l,control:(0,r.jsx)(f.Z,{...t,checked:n,onChange:s}),label:a})},j=n(55238),v=n(37039),b=n(41247),w=n(83221),y=n(92917),P=n(21642),k=n(55675),C=n(50233);let S={dbPort:"dbPort",ipAddress:"ipAddress",password:"password",sshPort:"sshPort",user:"user"},A={ipAddress:"IP address",password:"Password",ping:"Ping"},M=(0,i.forwardRef)((e,t)=>{let{formGridColumns:n=2}=e,l=(0,i.useRef)({}),o=(0,i.useRef)({}),s=(0,i.useRef)({}),a=(0,i.useRef)({}),d=(0,i.useRef)({}),u=(0,i.useRef)({}),[p,g]=(0,i.useState)({}),[f,M]=(0,i.useState)(!1),[_,T]=(0,i.useState)(!1),E=(0,i.useCallback)(e=>t=>{let{isValid:n}=t;g((0,x.ZP)(e,n))},[]),F=(0,i.useCallback)(e=>t=>{g((0,x.ZP)(e,t))},[]),I=(0,i.useCallback)(e=>{var t;null===(t=u.current.setMessage)||void 0===t||t.call(null,"api",e)},[]),D=(0,i.useMemo)(()=>Object.values(p).some(e=>!e),[p]),O=(0,i.useMemo)(()=>lib_buildMapToMessageSetter(S,u),[]);return(0,r.jsx)(c.Z,{actionProceedText:"Add",content:(0,r.jsx)(v.Z,{columns:{xs:1,sm:n},layout:{"add-peer-ip-address":{children:(0,r.jsx)(j.Z,{row:!0,spacing:".3em",children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:"add-peer-ip-address-input",inputProps:{readOnly:!0,onFocus:e=>{e.target.readOnly=!1}},label:A.ipAddress}),inputTestBatch:(0,C._)(A.ipAddress,()=>{O.ipAddress()},{onFinishBatch:F(S.ipAddress)},e=>{O.ipAddress({children:e})}),onFirstRender:E(S.ipAddress),ref:o,required:!0})})},"add-peer-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{fillRow:!0,id:"add-peer-password-input",label:A.password,type:h.Z.password}),inputTestBatch:(0,C.Gn)(A.password,()=>{O.password()},{onFinishBatch:F(S.password)},e=>{O.password({children:e})}),onFirstRender:E(S.password),ref:s,required:!0})},"add-peer-is-ping":{children:(0,r.jsx)(components_CheckboxWithLabel,{checked:f,label:A.ping,onChange:(e,t)=>{M(t)}}),sx:{display:"flex"}},"add-peer-message-group":{children:(0,r.jsx)(P.Z,{count:1,defaultMessageType:"warning",ref:u}),sm:n}},spacing:"1em"}),dialogProps:{PaperProps:{sx:{minWidth:"16em"}}},loadingAction:_,onActionAppend:()=>{I()},onProceedAppend:()=>{var e,t,n,r,i;T(!0),m.Z.post("/host/connection",{ipAddress:null===(e=o.current.getValue)||void 0===e?void 0:e.call(null),isPing:f,password:null===(t=s.current.getValue)||void 0===t?void 0:t.call(null),port:null===(n=l.current.getValue)||void 0===n?void 0:n.call(null),sshPort:null===(r=a.current.getValue)||void 0===r?void 0:r.call(null),user:null===(i=d.current.getValue)||void 0===i?void 0:i.call(null)}).then(()=>{I({children:"Successfully initiated the peer addition. You can continue to edit the field(s) to add another peer.",type:"info"})}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to add the given peer. ".concat(t.children),I(t)}).finally(()=>{T(!1)})},proceedButtonProps:{disabled:D},ref:t,titleText:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.z,{children:"Add a peer"}),(0,r.jsx)(w.Z,{mapPreset:"close",onClick:()=>{if(t&&"current"in t){var e;null===(e=t.current.setOpen)||void 0===e||e.call(null,!1)}},variant:"redcontained"})]})})});M.displayName="AddPeerDialog";var _=n(63071),T=n(68917),E=n(37260),F=n(27036),I=n(50594),D=n(6010);let O={small:Z.KI,medium:Z.Ac},R={size:"small",stateMap:new Map([[!1,(0,r.jsx)(I.Z,{sx:{color:D.Wd}},"state-false")],[!0,(0,r.jsx)(F.Z,{sx:{color:D.Ej}},"state-true")]])},State=e=>{let{label:t,size:n=R.size,state:l,stateMap:o=R.stateMap}=e,s=o.get(l);return(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",children:[s&&(0,i.cloneElement)(s,{fontSize:n}),(0,i.createElement)(O[n],{},t)]})};State.defaultProps=R;var StrikerConfig_ConfigPeersForm=e=>{let{refreshInterval:t=6e4}=e,n=(0,i.useRef)({}),o=(0,i.useRef)({}),[s,d]=(0,i.useState)(void 0),[h,x]=(0,i.useState)({actionProceedText:"",content:"",titleText:""}),[g,f]=(0,i.useState)({}),[v,w]=(0,i.useState)(!1),[y,P]=(0,i.useState)({}),k=(0,i.useMemo)(()=>s&&(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(T.Z,{...s})}),[s]),{isLoading:C}=(0,u.Z)("".concat(a.Z,"/host/connection"),{refreshInterval:t,onError:e=>{d({children:"Failed to get connection data. Error: ".concat(e),type:"error"})},onSuccess:e=>{let{local:{inbound:{ipAddress:t,port:n,user:r},peer:l}}=e;f(e=>Object.entries(t).reduce((t,l)=>{let[o,{networkLinkNumber:s,networkNumber:i,networkType:a}]=l;return t[o]={...e[o],dbPort:n,dbUser:r,ipAddress:o,networkLinkNumber:s,networkNumber:i,networkType:a},t},{})),P(e=>Object.entries(l).reduce((t,n)=>{let[r,{hostUUID:l,isPing:o,port:s,user:i}]=n,a="".concat(i,"@").concat(r,":").concat(s);return t[a]={...e[a],dbPort:s,dbUser:i,hostUUID:l,ipAddress:r,isPingTest:o},t},{}))}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.TZ,{header:"Configure striker peers",loading:C,children:(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(_.Z,{header:"Inbound connections",listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No inbound connections found."}),listItemKeyPrefix:"config-peers-inbound-connection",listItems:g,renderListItem:(e,t)=>{let{dbPort:n,dbUser:l,networkNumber:o,networkType:s}=t;return(0,r.jsxs)(j.Z,{spacing:0,sx:{width:"100%"},children:[(0,r.jsx)(Z.$_,{children:"".concat(l,"@").concat(e,":").concat(n)}),(0,r.jsx)(Z.KI,{children:"".concat(p.default[s]," ").concat(o)})]})}})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(_.Z,{header:"Peer connections",allowEdit:!0,edit:v,listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No peer connections found."}),listItemKeyPrefix:"config-peers-peer-connection",listItems:y,onAdd:()=>{var e;null===(e=n.current.setOpen)||void 0===e||e.call(null,!0)},onDelete:()=>{let e=Object.entries(y),t=e.reduce((e,t)=>{let[,{hostUUID:n,isChecked:r}]=t;return r&&e.local.push(n),e},{local:[]}),n=t.local.length;if(n>0){var r;x({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(n," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:()=>{m.Z.delete("/host/connection",{data:t}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to delete peer connection(s). ".concat(t.children),d(t)})},proceedColour:"red",titleText:"Delete ".concat(n," peer(s) from this striker?")}),null===(r=o.current.setOpen)||void 0===r||r.call(null,!0)}},onEdit:()=>{w(e=>!e)},onItemCheckboxChange:(e,t,n)=>{y[e].isChecked=n,P(e=>({...e}))},renderListItem:(e,t)=>{let{isPingTest:n=!1}=t;return(0,r.jsx)(j.Z,{row:!0,spacing:0,children:(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(Z.$_,{children:e}),(0,r.jsx)(State,{label:"Ping",state:n})]})})}})}),k]})}),(0,r.jsx)(M,{ref:n}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...h,ref:o})]})},W=n(57632),B=n(69836),N=n(32576),StrikerConfig_ManageChangedSSHKeysForm=e=>{let{mitmExternalHref:t="https://en.wikipedia.org/wiki/Man-in-the-middle_attack",refreshInterval:n=6e4}=e,l=(0,i.useRef)({}),[o,s]=(0,i.useState)(),[d,p]=(0,i.useState)({}),[h,x]=(0,i.useState)({actionProceedText:"",content:"",titleText:""}),{checks:g,getCheck:f,hasAllChecks:v,hasChecks:w,setAllChecks:y,setCheck:P}=(0,N.Z)({list:d}),k=(0,i.useMemo)(()=>o&&(0,r.jsx)(T.Z,{...o}),[o]),C=(0,i.useMemo)(()=>Object.keys(d).length>1,[d]),{isLoading:S}=(0,u.Z)("".concat(a.Z,"/ssh-key/conflict"),{onError:e=>{s({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:e=>{p(t=>Object.values(e).reduce((e,n)=>(Object.values(n).forEach(n=>{let{hostName:r,hostUUID:l,ipAddress:o,stateUUID:s}=n;e[s]={...t[s],hostName:r,hostUUID:l,ipAddress:o}}),e),{}))},refreshInterval:n});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(E.TZ,{header:"Manage changed SSH keys",loading:S,children:[(0,r.jsxs)(j.Z,{spacing:".2em",children:[(0,r.jsx)(Z.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(T.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(B.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(_.Z,{header:(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(Z.Ac,{children:"Host name"}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(Z.Ac,{children:"IP address"}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),allowCheckAll:C,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!w,edit:!0,getListCheckboxProps:()=>({checked:v}),listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No conflicting keys found."}),listItems:d,onAllCheckboxChange:(e,t)=>{y(t)},onDelete:()=>{var e;let t=g.reduce((e,t)=>{let n=f(t);if(!n)return e;let{hostUUID:r}=d[t];return e[r]||(e[r]=[]),e[r].push(t),e},{});x({actionProceedText:"Delete",content:"Resolve ".concat(g.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:()=>{m.Z.delete("/ssh-key/conflict",{data:t}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to delete selected SSH key conflicts. ".concat(t.children),s(t)})},proceedColour:"red",titleText:"Delete ".concat(g.length," conflicting SSH keys?")}),null===(e=l.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:(e,t,n)=>{P(e,n)},renderListItem:(e,t)=>{let{hostName:n,ipAddress:l}=t;return(0,r.jsxs)(j.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(Z.Ac,{children:n}),(0,r.jsx)(Z.Ac,{children:l})]})},renderListItemCheckboxState:e=>f(e)})]}),k]}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...h,ref:l})]})};let U="common-user-input-confirm-password",L="common-user-input-name",H="common-user-input-password",V="Username",$="Password";var StrikerConfig_CommonUserInputGroup=e=>{let{formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,setMessage:l,setValidity:o},previous:{name:s}={},readOnlyUserName:a,requirePassword:c=!1,showPasswordField:d}=e,u=(0,i.useRef)({}),p=(0,i.useRef)({}),[m,x]=(0,i.useState)(c),g=(0,i.useMemo)(()=>d?{"common-user-input-cell-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:H,label:$,type:h.Z.password}),inputTestBatch:(0,C.Gn)($,()=>{l(H)},{onFinishBatch:t(H)},e=>{l(H,{children:e})}),onBlurAppend:e=>{var t;let{target:{value:n}}=e;x(n.length>0),o(U,n===(null===(t=p.current.getValue)||void 0===t?void 0:t.call(null)))},onFirstRender:n(H),ref:u,required:c})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:U,inputProps:{readOnly:!m},label:"Confirm password",type:h.Z.password}),inputTestBatch:{defaults:{onSuccess:()=>{l(U)}},onFinishBatch:t(U),tests:[{test:C.HJ},{onFailure:()=>{l(U,{children:"The passwords do not match."})},test:e=>{var t;let{value:n}=e;return n===(null===(t=u.current.getValue)||void 0===t?void 0:t.call(null))}}]},onFirstRender:n(U),ref:p,required:m})}}:void 0,[t,n,m,c,l,o,d]);return(0,r.jsx)(v.Z,{columns:{xs:1,sm:2,md:3},layout:{"common-user-input-cell-name":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:L,inputProps:{readOnly:a},label:V,value:s}),inputTestBatch:(0,C.Gn)(V,()=>{l(L)},{onFinishBatch:t(L)},e=>{l(L,{children:e})}),onFirstRender:n(L),required:!0}),md:1,sm:2},...g},spacing:"1em"})},G=n(87038),z=n(15079),K=n(58839),q=n(96867);let getFormEntries=function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=(0,i.useRef)({}),t=(0,i.useRef)({}),n=(0,i.useRef)({}),l=(0,i.useRef)({}),[o,s]=(0,K.Z)(),[d,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)({children:"No users found."}),[x,g]=(0,i.useState)(),{data:f,isLoading:j}=(0,u.Z)("".concat(a.Z,"/user"),{onError:e=>{m((0,b.Z)(e))}}),v=(0,q.Z)([U,L,H],l),{isFormInvalid:w,isFormSubmitting:y,submitForm:k}=v,{buildDeleteDialogProps:C,checks:S,getCheck:A,hasChecks:M,setCheck:F}=(0,N.Z)({list:f}),{userName:I,userUUID:D}=(0,i.useMemo)(()=>null!=x?x:{},[x]),O=(0,i.useMemo)(()=>({actionProceedText:"Add",content:(0,r.jsx)(StrikerConfig_CommonUserInputGroup,{formUtils:v,requirePassword:!0,showPasswordField:!0}),onSubmitAppend:function(){for(var e,n=arguments.length,l=Array(n),o=0;o{k({body:i,getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Add user failed. ",e]}),method:"post",successMsg:"Created user ".concat(i.userName,"."),url:"/user"})},titleText:"Add the following new user?"}),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},titleText:"Add a web interface user"}),[v,s,k]),R=(0,i.useMemo)(()=>({actionProceedText:"Edit",content:(0,r.jsx)(StrikerConfig_CommonUserInputGroup,{formUtils:v,previous:{name:I},readOnlyUserName:"admin"===I,showPasswordField:!0}),onSubmitAppend:function(){for(var e,n=arguments.length,l=Array(n),o=0;o{k({body:i,getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Update user failed. ",e]}),method:"put",successMsg:"Updated user ".concat(I),url:"/user/".concat(D)})},titleText:"Update user ".concat(I," with the following?")}),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},titleText:"Edit user ".concat(I)}),[v,s,k,I,D]),W=(0,i.useMemo)(()=>(0,r.jsx)(P.Z,{count:1,defaultMessageType:"warning",ref:l}),[]),B=(0,i.useMemo)(()=>{var e;return(null==f?void 0:null===(e=f.current)||void 0===e?void 0:e.userName)==="admin"},[f]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.TZ,{header:"Manage users",loading:j,children:(0,r.jsx)(_.Z,{allowAddItem:B,allowDelete:B,allowEdit:!0,allowItemButton:d,disableDelete:!M,edit:d,getListItemCheckboxProps:(e,t)=>{let{userName:n}=t;return{disabled:"admin"===n}},header:!0,listEmpty:(0,r.jsx)(T.Z,{...h}),listItems:f,onAdd:()=>{var t;null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},onDelete:()=>{var e;s(C({confirmDialogProps:{onProceedAppend:()=>{k({body:{uuids:S},getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Delete user(s) failed. ",e]}),method:"delete",url:"/user"})}},formSummaryProps:{renderEntry:e=>{let{key:t}=e;return(0,r.jsx)(Z.Ac,{children:null==f?void 0:f[t].userName})}},getConfirmDialogTitle:e=>"Delete the following ".concat(e," users?")})),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:()=>p(e=>!e),onItemCheckboxChange:(e,t,n)=>F(e,n),onItemClick:e=>{if(d){var t;g(e),null===(t=n.current.setOpen)||void 0===t||t.call(null,!0)}},renderListItemCheckboxState:e=>A(e),renderListItem:(e,t)=>{let{userName:n}=t;return(0,r.jsx)(Z.Ac,{children:n})}})}),(0,r.jsx)(G.Z,{...O,disableProceed:w,loadingAction:y,preActionArea:W,ref:e}),(0,r.jsx)(G.Z,{...R,disableProceed:w,loadingAction:y,preActionArea:W,ref:n}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...o,ref:t})]})},StrikerConfig_ComplexOperationsPanel=()=>(0,r.jsxs)(E.s_,{children:[(0,r.jsx)(StrikerConfig_ConfigPeersForm,{}),(0,r.jsx)(StrikerConfig_ManageChangedSSHKeysForm,{}),(0,r.jsx)(StrikerConfig_ManageUsersForm,{})]}),X=n(72852),Y=n(19467),J=n(81796);let StretchedButton=e=>(0,r.jsx)(Y.Z,{...e,sx:{width:"100%"}});var StrikerConfig_SimpleOperationsPanel=e=>{let{installTarget:t="disabled",onSubmit:n,title:o}=e,[s,a]=(0,i.useState)(),c=(0,i.useMemo)(()=>o?(0,r.jsx)(Z.z,{sx:{textAlign:"center"},children:o}):(0,r.jsx)(J.Z,{mt:0}),[o]),d=(0,i.useMemo)(()=>s&&(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(T.Z,{...s,onClose:()=>{a(void 0)}})}),[s,a]);return(0,r.jsxs)(E.s_,{children:[(0,r.jsx)(E.V9,{children:c}),(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsxs)(j.Z,{row:!0,children:[(0,r.jsx)(Z.Ac,{sx:{flexGrow:1},children:"Install target"}),(0,r.jsx)(X.Z,{checked:"enabled"===t,edge:"end",onChange:(e,t)=>{let l="disable",s="Disable";t&&(l="enable",s="Enable"),null==n||n.call(null,{actionProceedText:s,content:(0,r.jsxs)(Z.Ac,{children:["Would you like to ",l,' "Install target" on this striker? It\'ll take a few moments to complete.']}),onProceedAppend:()=>{m.Z.put("/host/local",{isEnableInstallTarget:t},{params:{handler:"install-target"}}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to ".concat(l,' "Install target". ').concat(t.children),a(t)})},titleText:"".concat(s,' "Install target" on ').concat(o,"?")})}})]})}),(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Update",content:(0,r.jsx)(Z.Ac,{children:"Would you like to update the operating system on this striker? It'll be placed into maintenance mode until the update completes."}),onProceedAppend:()=>{m.Z.put("/command/update-system").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system update. ".concat(t.children),a(t)})},titleText:"Update operating system on ".concat(o,"?")})},children:"Update system"})}),(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(StretchedButton,{href:"/init?re=1",children:"Reconfigure striker"})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Reboot",content:(0,r.jsx)(Z.Ac,{children:"Would you like to reboot this striker?"}),onProceedAppend:()=>{m.Z.put("/command/reboot-host").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system reboot. ".concat(t.children),a(t)})},titleText:"Reboot ".concat(o,"?")})},children:"Reboot"})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Shutdown",content:(0,r.jsx)(Z.Ac,{children:"Would you like to shutdown this striker?"}),onProceedAppend:()=>{m.Z.put("/command/poweroff-host").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system shutdown. ".concat(t.children),a(t)})},titleText:"Shutdown ".concat(o,"?")})},children:"Shutdown"})}),d]})]})},config=e=>{let{refreshInterval:t=6e4}=e,[n,o]=(0,i.useState)(!1),[p,h]=(0,i.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:n},onCancelAppend:()=>{o(!1)},onProceedAppend:()=>{o(!1)},titleText:""}),[m,x]=(0,i.useState)(),[g,f]=(0,i.useState)(""),{data:Z,isLoading:j}=(0,u.Z)("".concat(a.Z,"/host/local"),{onError:()=>{f("Unknown")},onSuccess:e=>{let{installTarget:t,shortHostName:n}=e;x(t),f(n)},refreshInterval:t});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:j?"Loading...":"".concat(null==Z?void 0:Z.shortHostName," Config")})}),(0,r.jsx)(d.Z,{}),(0,r.jsxs)(l.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StrikerConfig_SimpleOperationsPanel,{installTarget:m,onSubmit:e=>{let{onProceedAppend:t,...n}=e;h(e=>({...e,...n,onProceedAppend:function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!("string"==typeof n&&o.test(n)))throw TypeError("Stringified UUID is invalid");return n},esm_browser_v4=function(e,t,n){var o=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(l)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=o[s];return t}return esm_browser_stringify(o)}}},function(e){e.O(0,[494,804,416,263,461,203,775,675,556,774,888,179],function(){return e(e.s=14453)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/config-1c39d13147dfe819.js b/striker-ui/out/_next/static/chunks/pages/config-1c39d13147dfe819.js deleted file mode 100644 index 9c62982a..00000000 --- a/striker-ui/out/_next/static/chunks/pages/config-1c39d13147dfe819.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{78262:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(63366),l=n(87462),o=n(67294),s=n(63961),i=n(94780),a=n(92996),c=n(98216),d=n(11994),u=n(16628),p=n(90629),h=n(71657),m=n(90948),x=n(1588),g=n(34867);function getDialogUtilityClass(e){return(0,g.Z)("MuiDialog",e)}let f=(0,x.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Z=o.createContext({});var j=n(84808),v=n(2734),b=n(85893);let w=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],y=(0,m.ZP)(j.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),useUtilityClasses=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${(0,c.Z)(n)}`],paper:["paper",`paperScroll${(0,c.Z)(n)}`,`paperWidth${(0,c.Z)(String(r))}`,l&&"paperFullWidth",o&&"paperFullScreen"]};return(0,i.Z)(s,getDialogUtilityClass,t)},P=(0,m.ZP)(d.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),k=(0,m.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${(0,c.Z)(n.scroll)}`]]}})(({ownerState:e})=>(0,l.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),C=(0,m.ZP)(p.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,c.Z)(n.scroll)}`],t[`paperWidth${(0,c.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,l.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${f.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${f.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),S=o.forwardRef(function(e,t){let n=(0,h.Z)({props:e,name:"MuiDialog"}),i=(0,v.Z)(),c={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":m,BackdropComponent:x,BackdropProps:g,children:f,className:j,disableEscapeKeyDown:S=!1,fullScreen:A=!1,fullWidth:M=!1,maxWidth:_="sm",onBackdropClick:E,onClose:T,open:F,PaperComponent:I=p.Z,PaperProps:D={},scroll:O="paper",TransitionComponent:R=u.Z,transitionDuration:W=c,TransitionProps:B}=n,N=(0,r.Z)(n,w),U=(0,l.Z)({},n,{disableEscapeKeyDown:S,fullScreen:A,fullWidth:M,maxWidth:_,scroll:O}),L=useUtilityClasses(U),H=o.useRef(),V=(0,a.Z)(m),$=o.useMemo(()=>({titleId:V}),[V]);return(0,b.jsx)(P,(0,l.Z)({className:(0,s.Z)(L.root,j),closeAfterTransition:!0,components:{Backdrop:y},componentsProps:{backdrop:(0,l.Z)({transitionDuration:W,as:x},g)},disableEscapeKeyDown:S,onClose:T,open:F,ref:t,onClick:e=>{H.current&&(H.current=null,E&&E(e),T&&T(e,"backdropClick"))},ownerState:U},N,{children:(0,b.jsx)(R,(0,l.Z)({appear:!0,in:F,timeout:W,role:"presentation"},B,{children:(0,b.jsx)(k,{className:(0,s.Z)(L.container),onMouseDown:e=>{H.current=e.target===e.currentTarget},ownerState:U,children:(0,b.jsx)(C,(0,l.Z)({as:I,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":V},D,{className:(0,s.Z)(L.paper,D.className),ownerState:U,children:(0,b.jsx)(Z.Provider,{value:$,children:f})}))})}))}))});var A=S},14453:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(8603)}])},73393:function(e,t,n){"use strict";var r=n(85893),l=n(90948),o=n(67294),s=n(25934),i=n(19467),a=n(55238),c=n(81796);let d=(0,l.ZP)(a.Z)({justifyContent:"flex-end",width:"100%"});t.Z=e=>{let{actions:t=[],loading:n}=e,l=(0,o.useMemo)(()=>t.map(e=>(0,r.jsx)(i.Z,{...e,children:e.children},(0,s.Z)())),[t]);return n?(0,r.jsx)(c.Z,{mt:0}):(0,r.jsx)(d,{row:!0,spacing:".5em",children:l})}},56597:function(e,t,n){"use strict";var r=n(85893),l=n(5616),o=n(67294),s=n(56211),i=n(55238),a=n(4121),c=n(84154);let d=(0,o.forwardRef)((e,t)=>{let{actionCancelText:n="Cancel",actionProceedText:d,children:u,closeOnProceed:p=!1,contentContainerProps:h,dialogProps:m,disableProceed:x,loading:g,loadingAction:f=!1,onActionAppend:Z,onCancelAppend:j,onProceedAppend:v,openInitially:b,preActionArea:w,proceedButtonProps:y,proceedColour:P="blue",scrollContent:k=!1,scrollBoxProps:C,showActionArea:S=!0,showCancel:A,showClose:M,titleText:_,wide:E,content:T=u}=e,F=(0,o.useRef)(null),I=(0,o.useMemo)(()=>(0,a.Z)(T,c.Ac),[T]),D=(0,o.useMemo)(()=>(0,o.createElement)(k?s.VZ:l.Z,C,I),[I,C,k]),O=(0,o.useMemo)(()=>S&&(0,r.jsx)(s.ux,{cancelProps:{children:n,onClick:function(){for(var e=arguments.length,t=Array(e),n=0;n({setOpen:e=>{var t;return null===(t=F.current)||void 0===t?void 0:t.setOpen(e)}}),[]),(0,r.jsx)(s.Js,{dialogProps:m,header:_,loading:g,openInitially:b,ref:F,showClose:M,wide:E,children:(0,r.jsxs)(i.Z,{...h,children:[D,w,O]})})});d.displayName="ConfirmDialog",t.Z=d},56211:function(e,t,n){"use strict";n.d(t,{ux:function(){return Dialog_DialogActionGroup},VZ:function(){return Z},Js:function(){return v}});var r=n(85893),l=n(78262),o=n(67294),s=n(37260),i=n(81796);let a=(0,o.createContext)(void 0),c=(0,o.forwardRef)((e,t)=>{let{children:n,dialogProps:c={},loading:d,openInitially:u=!1,wide:p}=e,{open:h,PaperProps:m={},...x}=c,{sx:g,...f}=m,[Z,j]=(0,o.useState)(u),v=(0,o.useMemo)(()=>null!=h?h:Z,[Z,h]),b=(0,o.useMemo)(()=>d?(0,r.jsx)(i.Z,{mt:0}):n,[n,d]),w=(0,o.useMemo)(()=>({minWidth:p?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible",...g}),[g,p]);return(0,o.useImperativeHandle)(t,()=>({open:v,setOpen:j}),[v]),(0,r.jsx)(l.Z,{open:v,PaperComponent:s.s_,PaperProps:{...f,sx:w},...x,children:(0,r.jsx)(a.Provider,{value:{open:v,setOpen:j},children:b})})});c.displayName="Dialog";var d=n(73393);let handleAction=function(e){let{handlers:{base:t,origin:n}}=e;for(var r=arguments.length,l=Array(r>1?r-1:0),o=1;o{let{cancelProps:t,closeOnProceed:n,loading:l=!1,onCancel:s=handleAction,onProceed:i=handleAction,proceedColour:c,proceedProps:u,showCancel:p=!0,cancelChildren:h=null==t?void 0:t.children,proceedChildren:m=null==u?void 0:u.children}=e,x=(0,o.useContext)(a),g=(0,o.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r{null==x||x.setOpen(!1)},origin:null==t?void 0:t.onClick}},...n)},[null==t?void 0:t.onClick,x,s]),f=(0,o.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r{n&&(null==x||x.setOpen(!1))},origin:null==u?void 0:u.onClick}},...t)},[n,x,i,null==u?void 0:u.onClick]),Z=(0,o.useMemo)(()=>{let e=[{background:c,...u,children:m,onClick:f}];return p&&e.unshift({...t,children:h,onClick:g}),(0,r.jsx)(d.Z,{actions:e,loading:l})},[h,g,t,l,m,c,f,u,p]);return Z},u=n(83221),p=n(4121),h=n(84154),Dialog_DialogHeader=e=>{let{children:t,showClose:n}=e,l=(0,o.useContext)(a),i=(0,o.useMemo)(()=>(0,p.Z)(t,h.z),[t]),c=(0,o.useMemo)(()=>n&&(0,r.jsx)(u.Z,{mapPreset:"close",onClick:()=>{null==l||l.setOpen(!1)},size:"small"}),[l,n]);return(0,r.jsxs)(s.V9,{children:[i,c]})},m=n(90948),x=n(5616);let g=(0,m.ZP)(x.Z)({overflowY:"scroll",paddingRight:".4em"}),f=(0,m.ZP)(g)({maxHeight:"60vh"});var Z=f;let j=(0,o.forwardRef)((e,t)=>{let{children:n,dialogProps:l,header:o,loading:s,openInitially:i,showClose:a,wide:d}=e;return(0,r.jsxs)(c,{dialogProps:l,loading:s,openInitially:i,ref:t,wide:d,children:[(0,r.jsx)(Dialog_DialogHeader,{showClose:a,children:o}),n]})});j.displayName="DialogWithHeader";var v=j},87038:function(e,t,n){"use strict";var r=n(85893),l=n(67294),o=n(56597);let s=(0,l.forwardRef)((e,t)=>{let{children:n,contentContainerProps:s,dialogProps:i,onSubmitAppend:a,proceedButtonProps:c,scrollBoxProps:d,scrollContent:u,...p}=e,h=(0,l.useMemo)(()=>({...s,component:"form",onSubmit:function(){for(var e=arguments.length,t=Array(e),n=0;n({...d,sx:u?{overflowX:"hidden",paddingTop:".6em",...null==d?void 0:d.sx}:null==d?void 0:d.sx}),[d,u]);return(0,r.jsx)(o.Z,{dialogProps:i,contentContainerProps:h,proceedButtonProps:{...c,type:"submit"},scrollContent:u,scrollBoxProps:m,wide:!0,...p,ref:t,children:n})});s.displayName="FormDialog",t.Z=s},15079:function(e,t,n){"use strict";var r=n(85893),l=n(97212),o=n(78462),s=n(5616),i=n(48403),a=n.n(i),c=n(55238),d=n(84154);let capEntryLabel=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2"),n=t.toLowerCase();return a()(n)},renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,r.jsx)(d.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:n}=e;return/passw/i.test(n)?(0,r.jsx)(d.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:n,getEntryLabel:s,getListProps:i,getListItemProps:a,listKey:c,maxDepth:d,renderEntry:u,renderEntryValue:p}=e,h=[];Object.entries(n).forEach(e=>{let[n,o]=e,i="form-summary-entry-".concat(n),c=null!==o&&"object"==typeof o,m=c?null:o;h.push((0,r.jsx)(l.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==a?void 0:a.call(null,{depth:t,entry:m,key:n}),children:u({depth:t,entry:m,getLabel:s,key:n,nest:c,renderValue:p})},i)),c&&t{let{entries:t,getEntryLabel:n=e=>{let{cap:t,key:n}=e;return t(n)},getListProps:l,getListItemProps:o,hasPassword:i,maxDepth:a=3,renderEntry:u=e=>{let{depth:t,entry:n,getLabel:l,key:o,nest:i,renderValue:a}=e;return(0,r.jsxs)(c.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,r.jsx)(d.Ac,{children:l({cap:capEntryLabel,depth:t,entry:n,key:o})}),(0,r.jsx)(s.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!i&&a({depth:t,entry:n,key:o})})]})},renderEntryValue:p=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,r.jsx)(d.Ac,{children:"none"}):i?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)}}=e;return buildEntryList({entries:t,getEntryLabel:n,getListProps:l,getListItemProps:o,maxDepth:a,renderEntry:u,renderEntryValue:p})}},37039:function(e,t,n){"use strict";var r=n(85893),l=n(67294),o=n(48263),s=n(5616);t.Z=e=>{let{calculateItemBreakpoints:t=()=>({xs:1}),layout:n,wrapperBoxProps:i,...a}=e,c=(0,l.useMemo)(()=>{let e=Object.entries(n);return e.map((e,n)=>{let[r,s]=e;return s?(0,l.createElement)(o.ZP,{...t(n,r),key:r,item:!0,...s}):void 0})},[t,n]);return(0,r.jsx)(s.Z,{...i,children:(0,r.jsx)(o.ZP,{container:!0,...a,children:c})})}},21405:function(e,t,n){"use strict";n.d(t,{Z:function(){return components_Header}});var r=n(85893),l=n(41098),o=n(90948),s=n(42293),i=n(5616),a=n(82589),c=n(54799),d=n(67294),u=n(6010),p=n(25709),h=n(13540),m=n(77533),x=n(78462),g=n(97212),f=n(98619);let Z=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"};var v=n(67645),b=n(57632),w=n(55238),y=n(41247),P=n(84154),k=n(34819);let C="AnvilDrawer",S={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},A=(0,o.ZP)(m.ZP)(()=>({["& .".concat(S.list)]:{width:"200px"},["& .".concat(S.actionIcon)]:{fontSize:"2.3em",color:u.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:n}=e,{getSessionUser:l}=(0,k.Z)(),o=l();return(0,r.jsx)(A,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>n(!t),children:(0,r.jsx)("div",{role:"presentation",children:(0,r.jsxs)(x.Z,{className:S.list,children:[(0,r.jsx)(g.ZP,{children:(0,r.jsx)(P.Ac,{children:o?(0,r.jsxs)(r.Fragment,{children:["Welcome, ",o.name]}):"Unregistered"})}),(0,r.jsx)(b.Z,{}),(0,r.jsx)(f.Z,{component:"a",href:"/index.html",children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(p.Z,{className:S.actionIcon}),(0,r.jsx)(P.Ac,{children:"Dashboard"})]})}),Z.map(e=>(0,r.jsx)(f.Z,{component:"a",href:e.uri,children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)("img",{alt:e.text,src:e.image,...j}),(0,r.jsx)(P.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,r.jsx)(f.Z,{onClick:()=>{v.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,y.Z)(e)})},children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(h.Z,{className:S.actionIcon}),(0,r.jsx)(P.Ac,{children:"Logout"})]})})]})})})},M=n(83909),_=n(66354);let E="Header",T={input:"".concat(E,"-input"),barElement:"".concat(E,"-barElement"),iconBox:"".concat(E,"-iconBox"),searchBar:"".concat(E,"-searchBar"),icons:"".concat(E,"-icons")},F=(0,o.ZP)(s.Z)(e=>{let{theme:t}=e;return{paddingTop:t.spacing(.5),paddingBottom:t.spacing(.5),paddingLeft:t.spacing(3),paddingRight:t.spacing(3),borderBottom:"solid 1px",borderBottomColor:u.hM,position:"static",["& .".concat(T.input)]:{height:"2.8em",width:"30vw",backgroundColor:t.palette.secondary.main,borderRadius:u.n_},["& .".concat(T.barElement)]:{padding:0},["& .".concat(T.iconBox)]:{[t.breakpoints.down("sm")]:{display:"none"}},["& .".concat(T.searchBar)]:{[t.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(T.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,d.useRef)({}),t=(0,d.useRef)({}),[n,o]=(0,d.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{children:(0,r.jsxs)(i.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,r.jsx)(w.Z,{row:!0,children:(0,r.jsx)(a.Z,{onClick:()=>o(!n),children:(0,r.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,r.jsx)(w.Z,{className:T.iconBox,row:!0,spacing:0,children:(0,r.jsx)(i.Z,{children:(0,r.jsx)(c.Z,{onClick:e=>{var n,r;let{currentTarget:l}=e;null===(n=t.current.setAnchor)||void 0===n||n.call(null,l),null===(r=t.current.setOpen)||void 0===r||r.call(null,!0)},sx:{color:u.of,padding:"0 .1rem"},children:(0,r.jsx)(M.Z,{icon:l.Z,ref:e})})})})]})}),(0,r.jsx)(components_AnvilDrawer,{open:n,setOpen:o}),(0,r.jsx)(_.Z,{onFetchSuccessAppend:t=>{var n;null===(n=e.current.indicate)||void 0===n||n.call(null,Object.keys(t).length>0)},ref:t})]})}},69836:function(e,t,n){"use strict";var r=n(85893),l=n(43800),o=n(23795),s=n(6010),i=n(55238);t.Z=e=>{let{children:t,sx:n,...a}=e;return(0,r.jsx)(o.Z,{underline:"hover",variant:"subtitle1",...a,sx:{color:s.lD,textDecorationColor:s.s7,...n},children:(0,r.jsxs)(i.Z,{row:!0,children:[t,(0,r.jsx)(l.Z,{sx:{marginLeft:".3em"}})]})})}},32576:function(e,t,n){"use strict";var r=n(85893),l=n(67294),o=n(84070),s=n(15079);t.Z=e=>{let{list:t={}}=e,[n,i]=(0,l.useState)({}),a=(0,l.useMemo)(()=>Object.keys(t),[t]),c=(0,l.useMemo)(()=>Object.keys(n),[n]),d=(0,l.useMemo)(()=>c.length===a.length,[c.length,a.length]),u=(0,l.useMemo)(()=>c.length>0,[c.length]),p=(0,l.useMemo)(()=>a.length>1,[a.length]),h=(0,l.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:l={},getConfirmDialogTitle:o,onProceedAppend:i,renderEntry:a}=e;return{actionProceedText:"Delete",content:(0,r.jsx)(s.Z,{entries:n,maxDepth:0,renderEntry:a,...l}),onProceedAppend:i,proceedColour:"red",titleText:o(c.length),...t}},[n,c.length]),m=(0,l.useCallback)(e=>!!n[e],[n]),x=(0,l.useCallback)(()=>i({}),[]),g=(0,l.useCallback)(e=>i(a.reduce((t,n)=>(e&&(t[n]=e),t),{})),[a]),f=(0,l.useCallback)((e,t)=>i((0,o.ZP)(e,t||void 0)),[]);return{buildDeleteDialogProps:h,checklist:n,checks:c,getCheck:m,hasAllChecks:d,hasChecks:u,multipleItems:p,resetChecks:x,setAllChecks:g,setCheck:f}}},58839:function(e,t,n){"use strict";var r=n(67294);t.Z=function(){let{actionProceedText:e="",content:t="",titleText:n="",...l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.useState)({actionProceedText:e,content:t,titleText:n,...l})}},96867:function(e,t,n){"use strict";var r=n(67294),l=n(67645),o=n(84070),s=n(41247);t.Z=(e,t)=>{var n;let[i,a]=(0,r.useState)(!1),[c,d]=(0,r.useState)({}),u=(0,r.useCallback)(e=>{var n,r;return null==t?void 0:null===(r=t.current)||void 0===r?void 0:null===(n=r.setMessage)||void 0===n?void 0:n.call(null,"api",e)},[t]),p=(0,r.useCallback)((e,n)=>{var r,l;null==t||null===(l=t.current)||void 0===l||null===(r=l.setMessage)||void 0===r||r.call(null,String(e),n)},[t]),h=(0,r.useCallback)((e,n)=>{var r,l;null==t||null===(l=t.current)||void 0===l||null===(r=l.setMessageRe)||void 0===r||r.call(null,e,n)},[t]),m=(0,r.useCallback)((e,t)=>{d((0,o.ZP)(e,t))},[]),x=(0,r.useCallback)((e,t)=>{d((0,o.Um)(e,t))},[]),g=(0,r.useCallback)(e=>{p(e),m(e)},[p,m]),f=(0,r.useCallback)(e=>{h(e),x(e)},[h,x]),Z=(0,r.useCallback)(e=>t=>{m(e,t)},[m]),j=(0,r.useCallback)(e=>t=>{let{isValid:n}=t;m(e,n)},[m]),v=(0,r.useCallback)(e=>()=>{g(e)},[g]),b=(0,r.useCallback)(e=>{let{body:r,getErrorMsg:o,msgKey:i="api",method:c,onError:d,onSuccess:u,setMsg:p=null==t?void 0:null===(n=t.current)||void 0===n?void 0:n.setMessage,successMsg:h,url:m}=e;a(!0),l.Z.request({data:r,method:c,url:m}).then(()=>{null==p||p.call(null,i,{children:h,type:"info"}),null==u||u.call(null)}).catch(e=>{let t=(0,s.Z)(e);t.children=o(t.children),null==p||p.call(null,i,t),null==d||d.call(null)}).finally(()=>{a(!1)})},[t,a]),w=(0,r.useMemo)(()=>Object.values(c).some(e=>!e),[c]);return{buildFinishInputTestBatchFunction:Z,buildInputFirstRenderFunction:j,buildInputUnmountFunction:v,formValidity:c,isFormInvalid:w,isFormSubmitting:i,setApiMessage:u,setFormValidity:d,setMessage:p,setMessageRe:h,setValidity:m,setValidityRe:x,submitForm:b,unsetKey:g,unsetKeyRe:f}}},84070:function(e,t,n){"use strict";n.d(t,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let l={};return Object.keys(r).forEach(o=>{e.test(o)?n(r,l,o,t):l[o]=r[o]}),l}};t.ZP=function(e,t){let{guard:n=()=>!0,set:r=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l=>{let{[e]:o,...s}=l,i={...s};return n(l,e,t)&&r(l,i,e,t),i}}},5813:function(e,t){"use strict";t.default={bcn:"Back-Channel Network",ifn:"Internet-Facing Network",mn:"Migration Network",sn:"Storage Network"}},4121:function(e,t,n){"use strict";var r=n(67294);t.Z=(e,t)=>"string"==typeof e?(0,r.createElement)(t,null,e):e},8603:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return config}});var r=n(85893),l=n(48263),o=n(9008),s=n.n(o),i=n(67294),a=n(98436),c=n(56597),d=n(21405),u=n(64666),p=n(5813),h=n(94121),m=n(67645);let buildMessageSetter=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,setter=n=>{var r;null===(r=t.current.setMessage)||void 0===r||r.call(null,e,n)};return n&&(n[r]=setter),setter};var lib_buildMapToMessageSetter=(e,t)=>{let n={};return e instanceof Array?e.reduce((e,n)=>(buildMessageSetter(n,t,e),e),n):Object.entries(e).reduce((e,n)=>{let[r,l]=n;return buildMessageSetter(l,t,e,r),e},n)},x=n(84070),g=n(58843),f=n(35348),Z=n(84154),components_CheckboxWithLabel=e=>{let{checkboxProps:t,checked:n,formControlLabelProps:l,label:o,onChange:s}=e,a=(0,i.useMemo)(()=>"string"==typeof o?(0,r.jsx)(Z.Ac,{children:o}):o,[o]);return(0,r.jsx)(g.Z,{...l,control:(0,r.jsx)(f.Z,{...t,checked:n,onChange:s}),label:a})},j=n(55238),v=n(37039),b=n(41247),w=n(83221),y=n(92917),P=n(21642),k=n(55675),C=n(50233);let S={dbPort:"dbPort",ipAddress:"ipAddress",password:"password",sshPort:"sshPort",user:"user"},A={ipAddress:"IP address",password:"Password",ping:"Ping"},M=(0,i.forwardRef)((e,t)=>{let{formGridColumns:n=2}=e,l=(0,i.useRef)({}),o=(0,i.useRef)({}),s=(0,i.useRef)({}),a=(0,i.useRef)({}),d=(0,i.useRef)({}),u=(0,i.useRef)({}),[p,g]=(0,i.useState)({}),[f,M]=(0,i.useState)(!1),[_,E]=(0,i.useState)(!1),T=(0,i.useCallback)(e=>t=>{let{isValid:n}=t;g((0,x.ZP)(e,n))},[]),F=(0,i.useCallback)(e=>t=>{g((0,x.ZP)(e,t))},[]),I=(0,i.useCallback)(e=>{var t;null===(t=u.current.setMessage)||void 0===t||t.call(null,"api",e)},[]),D=(0,i.useMemo)(()=>Object.values(p).some(e=>!e),[p]),O=(0,i.useMemo)(()=>lib_buildMapToMessageSetter(S,u),[]);return(0,r.jsx)(c.Z,{actionProceedText:"Add",content:(0,r.jsx)(v.Z,{columns:{xs:1,sm:n},layout:{"add-peer-ip-address":{children:(0,r.jsx)(j.Z,{row:!0,spacing:".3em",children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:"add-peer-ip-address-input",inputProps:{readOnly:!0,onFocus:e=>{e.target.readOnly=!1}},label:A.ipAddress}),inputTestBatch:(0,C._)(A.ipAddress,()=>{O.ipAddress()},{onFinishBatch:F(S.ipAddress)},e=>{O.ipAddress({children:e})}),onFirstRender:T(S.ipAddress),ref:o,required:!0})})},"add-peer-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{fillRow:!0,id:"add-peer-password-input",label:A.password,type:h.Z.password}),inputTestBatch:(0,C.Gn)(A.password,()=>{O.password()},{onFinishBatch:F(S.password)},e=>{O.password({children:e})}),onFirstRender:T(S.password),ref:s,required:!0})},"add-peer-is-ping":{children:(0,r.jsx)(components_CheckboxWithLabel,{checked:f,label:A.ping,onChange:(e,t)=>{M(t)}}),sx:{display:"flex"}},"add-peer-message-group":{children:(0,r.jsx)(P.Z,{count:1,defaultMessageType:"warning",ref:u}),sm:n}},spacing:"1em"}),dialogProps:{PaperProps:{sx:{minWidth:"16em"}}},loadingAction:_,onActionAppend:()=>{I()},onProceedAppend:()=>{var e,t,n,r,i;E(!0),m.Z.post("/host/connection",{ipAddress:null===(e=o.current.getValue)||void 0===e?void 0:e.call(null),isPing:f,password:null===(t=s.current.getValue)||void 0===t?void 0:t.call(null),port:null===(n=l.current.getValue)||void 0===n?void 0:n.call(null),sshPort:null===(r=a.current.getValue)||void 0===r?void 0:r.call(null),user:null===(i=d.current.getValue)||void 0===i?void 0:i.call(null)}).then(()=>{I({children:"Successfully initiated the peer addition. You can continue to edit the field(s) to add another peer.",type:"info"})}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to add the given peer. ".concat(t.children),I(t)}).finally(()=>{E(!1)})},proceedButtonProps:{disabled:D},ref:t,titleText:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.z,{children:"Add a peer"}),(0,r.jsx)(w.Z,{mapPreset:"close",onClick:()=>{if(t&&"current"in t){var e;null===(e=t.current.setOpen)||void 0===e||e.call(null,!1)}},variant:"redcontained"})]})})});M.displayName="AddPeerDialog";var _=n(63071),E=n(68917),T=n(37260),F=n(27036),I=n(50594),D=n(6010);let O={small:Z.KI,medium:Z.Ac},R={size:"small",stateMap:new Map([[!1,(0,r.jsx)(I.Z,{sx:{color:D.Wd}},"state-false")],[!0,(0,r.jsx)(F.Z,{sx:{color:D.Ej}},"state-true")]])},State=e=>{let{label:t,size:n=R.size,state:l,stateMap:o=R.stateMap}=e,s=o.get(l);return(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",children:[s&&(0,i.cloneElement)(s,{fontSize:n}),(0,i.createElement)(O[n],{},t)]})};State.defaultProps=R;var StrikerConfig_ConfigPeersForm=e=>{let{refreshInterval:t=6e4}=e,n=(0,i.useRef)({}),o=(0,i.useRef)({}),[s,d]=(0,i.useState)(void 0),[h,x]=(0,i.useState)({actionProceedText:"",content:"",titleText:""}),[g,f]=(0,i.useState)({}),[v,w]=(0,i.useState)(!1),[y,P]=(0,i.useState)({}),k=(0,i.useMemo)(()=>s&&(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(E.Z,{...s})}),[s]),{isLoading:C}=(0,u.Z)("".concat(a.Z,"/host/connection"),{refreshInterval:t,onError:e=>{d({children:"Failed to get connection data. Error: ".concat(e),type:"error"})},onSuccess:e=>{let{local:{inbound:{ipAddress:t,port:n,user:r},peer:l}}=e;f(e=>Object.entries(t).reduce((t,l)=>{let[o,{networkLinkNumber:s,networkNumber:i,networkType:a}]=l;return t[o]={...e[o],dbPort:n,dbUser:r,ipAddress:o,networkLinkNumber:s,networkNumber:i,networkType:a},t},{})),P(e=>Object.entries(l).reduce((t,n)=>{let[r,{hostUUID:l,isPing:o,port:s,user:i}]=n,a="".concat(i,"@").concat(r,":").concat(s);return t[a]={...e[a],dbPort:s,dbUser:i,hostUUID:l,ipAddress:r,isPingTest:o},t},{}))}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.TZ,{header:"Configure striker peers",loading:C,children:(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(_.Z,{header:"Inbound connections",listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No inbound connections found."}),listItemKeyPrefix:"config-peers-inbound-connection",listItems:g,renderListItem:(e,t)=>{let{dbPort:n,dbUser:l,networkNumber:o,networkType:s}=t;return(0,r.jsxs)(j.Z,{spacing:0,sx:{width:"100%"},children:[(0,r.jsx)(Z.$_,{children:"".concat(l,"@").concat(e,":").concat(n)}),(0,r.jsx)(Z.KI,{children:"".concat(p.default[s]," ").concat(o)})]})}})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(_.Z,{header:"Peer connections",allowEdit:!0,edit:v,listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No peer connections found."}),listItemKeyPrefix:"config-peers-peer-connection",listItems:y,onAdd:()=>{var e;null===(e=n.current.setOpen)||void 0===e||e.call(null,!0)},onDelete:()=>{let e=Object.entries(y),t=e.reduce((e,t)=>{let[,{hostUUID:n,isChecked:r}]=t;return r&&e.local.push(n),e},{local:[]}),n=t.local.length;if(n>0){var r;x({actionProceedText:"Delete",content:"The peer relationship between this striker and the selected ".concat(n," host(s) will terminate. The removed peer(s) can be re-added later."),onProceedAppend:()=>{m.Z.delete("/host/connection",{data:t}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to delete peer connection(s). ".concat(t.children),d(t)})},proceedColour:"red",titleText:"Delete ".concat(n," peer(s) from this striker?")}),null===(r=o.current.setOpen)||void 0===r||r.call(null,!0)}},onEdit:()=>{w(e=>!e)},onItemCheckboxChange:(e,t,n)=>{y[e].isChecked=n,P(e=>({...e}))},renderListItem:(e,t)=>{let{isPingTest:n=!1}=t;return(0,r.jsx)(j.Z,{row:!0,spacing:0,children:(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(Z.$_,{children:e}),(0,r.jsx)(State,{label:"Ping",state:n})]})})}})}),k]})}),(0,r.jsx)(M,{ref:n}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...h,ref:o})]})},W=n(57632),B=n(69836),N=n(32576),StrikerConfig_ManageChangedSSHKeysForm=e=>{let{mitmExternalHref:t="https://en.wikipedia.org/wiki/Man-in-the-middle_attack",refreshInterval:n=6e4}=e,l=(0,i.useRef)({}),[o,s]=(0,i.useState)(),[d,p]=(0,i.useState)({}),[h,x]=(0,i.useState)({actionProceedText:"",content:"",titleText:""}),{checks:g,getCheck:f,hasAllChecks:v,hasChecks:w,setAllChecks:y,setCheck:P}=(0,N.Z)({list:d}),k=(0,i.useMemo)(()=>o&&(0,r.jsx)(E.Z,{...o}),[o]),C=(0,i.useMemo)(()=>Object.keys(d).length>1,[d]),{isLoading:S}=(0,u.Z)("".concat(a.Z,"/ssh-key/conflict"),{onError:e=>{s({children:"Failed to fetch SSH key conflicts. Error: ".concat(e),type:"error"})},onSuccess:e=>{p(t=>Object.values(e).reduce((e,n)=>(Object.values(n).forEach(n=>{let{hostName:r,hostUUID:l,ipAddress:o,stateUUID:s}=n;e[s]={...t[s],hostName:r,hostUUID:l,ipAddress:o}}),e),{}))},refreshInterval:n});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(T.TZ,{header:"Manage changed SSH keys",loading:S,children:[(0,r.jsxs)(j.Z,{spacing:".2em",children:[(0,r.jsx)(Z.Ac,{children:"The identity of the following targets have unexpectedly changed."}),(0,r.jsxs)(E.Z,{type:"warning",isAllowClose:!0,children:["If you haven't rebuilt the listed targets, then you could be experiencing a"," ",(0,r.jsx)(B.Z,{href:t,sx:{display:"inline-flex"},target:"_blank",children:'"Man In The Middle"'})," ","attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys."]}),(0,r.jsx)(_.Z,{header:(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{width:"100%","& > :not(:last-child)":{display:{xs:"none",sm:"flex"}},"& > :last-child":{display:{xs:"initial",sm:"none"},marginLeft:0}},children:[(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{flexBasis:"calc(50% + 1em)"},children:[(0,r.jsx)(Z.Ac,{children:"Host name"}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),(0,r.jsxs)(j.Z,{row:!0,spacing:".3em",sx:{flexGrow:1},children:[(0,r.jsx)(Z.Ac,{children:"IP address"}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),(0,r.jsx)(W.Z,{sx:{flexGrow:1}})]}),allowCheckAll:C,allowCheckItem:!0,allowDelete:!0,allowEdit:!1,disableDelete:!w,edit:!0,getListCheckboxProps:()=>({checked:v}),listEmpty:(0,r.jsx)(Z.Ac,{align:"center",children:"No conflicting keys found."}),listItems:d,onAllCheckboxChange:(e,t)=>{y(t)},onDelete:()=>{var e;let t=g.reduce((e,t)=>{let n=f(t);if(!n)return e;let{hostUUID:r}=d[t];return e[r]||(e[r]=[]),e[r].push(t),e},{});x({actionProceedText:"Delete",content:"Resolve ".concat(g.length," SSH key conflicts. Please make sure the identity change(s) are expected to avoid MITM attacks."),onProceedAppend:()=>{m.Z.delete("/ssh-key/conflict",{data:t}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to delete selected SSH key conflicts. ".concat(t.children),s(t)})},proceedColour:"red",titleText:"Delete ".concat(g.length," conflicting SSH keys?")}),null===(e=l.current.setOpen)||void 0===e||e.call(null,!0)},onItemCheckboxChange:(e,t,n)=>{P(e,n)},renderListItem:(e,t)=>{let{hostName:n,ipAddress:l}=t;return(0,r.jsxs)(j.Z,{spacing:0,sm:"row",sx:{width:"100%","& > *":{flexBasis:"50%"}},xs:"column",children:[(0,r.jsx)(Z.Ac,{children:n}),(0,r.jsx)(Z.Ac,{children:l})]})},renderListItemCheckboxState:e=>f(e)})]}),k]}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...h,ref:l})]})};let U="common-user-input-confirm-password",L="common-user-input-name",H="common-user-input-password",V="Username",$="Password";var StrikerConfig_CommonUserInputGroup=e=>{let{formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,setMessage:l,setValidity:o},previous:{name:s}={},readOnlyUserName:a,requirePassword:c=!1,showPasswordField:d}=e,u=(0,i.useRef)({}),p=(0,i.useRef)({}),[m,x]=(0,i.useState)(c),g=(0,i.useMemo)(()=>d?{"common-user-input-cell-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:H,label:$,type:h.Z.password}),inputTestBatch:(0,C.Gn)($,()=>{l(H)},{onFinishBatch:t(H)},e=>{l(H,{children:e})}),onBlurAppend:e=>{var t;let{target:{value:n}}=e;x(n.length>0),o(U,n===(null===(t=p.current.getValue)||void 0===t?void 0:t.call(null)))},onFirstRender:n(H),ref:u,required:c})},"common-user-input-cell-confirm-password":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:U,inputProps:{readOnly:!m},label:"Confirm password",type:h.Z.password}),inputTestBatch:{defaults:{onSuccess:()=>{l(U)}},onFinishBatch:t(U),tests:[{test:C.HJ},{onFailure:()=>{l(U,{children:"The passwords do not match."})},test:e=>{var t;let{value:n}=e;return n===(null===(t=u.current.getValue)||void 0===t?void 0:t.call(null))}}]},onFirstRender:n(U),ref:p,required:m})}}:void 0,[t,n,m,c,l,o,d]);return(0,r.jsx)(v.Z,{columns:{xs:1,sm:2,md:3},layout:{"common-user-input-cell-name":{children:(0,r.jsx)(y.Z,{input:(0,r.jsx)(k.Z,{id:L,inputProps:{readOnly:a},label:V,value:s}),inputTestBatch:(0,C.Gn)(V,()=>{l(L)},{onFinishBatch:t(L)},e=>{l(L,{children:e})}),onFirstRender:n(L),required:!0}),md:1,sm:2},...g},spacing:"1em"})},G=n(87038),z=n(15079),K=n(58839),q=n(96867);let getFormEntries=function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=(0,i.useRef)({}),t=(0,i.useRef)({}),n=(0,i.useRef)({}),l=(0,i.useRef)({}),[o,s]=(0,K.Z)(),[d,p]=(0,i.useState)(!1),[h,m]=(0,i.useState)({children:"No users found."}),[x,g]=(0,i.useState)(),{data:f,isLoading:j}=(0,u.Z)("".concat(a.Z,"/user"),{onError:e=>{m((0,b.Z)(e))}}),v=(0,q.Z)([U,L,H],l),{isFormInvalid:w,isFormSubmitting:y,submitForm:k}=v,{buildDeleteDialogProps:C,checks:S,getCheck:A,hasChecks:M,setCheck:F}=(0,N.Z)({list:f}),{userName:I,userUUID:D}=(0,i.useMemo)(()=>null!=x?x:{},[x]),O=(0,i.useMemo)(()=>({actionProceedText:"Add",content:(0,r.jsx)(StrikerConfig_CommonUserInputGroup,{formUtils:v,requirePassword:!0,showPasswordField:!0}),onSubmitAppend:function(){for(var e,n=arguments.length,l=Array(n),o=0;o{k({body:i,getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Add user failed. ",e]}),method:"post",successMsg:"Created user ".concat(i.userName,"."),url:"/user"})},titleText:"Add the following new user?"}),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},titleText:"Add a web interface user"}),[v,s,k]),R=(0,i.useMemo)(()=>({actionProceedText:"Edit",content:(0,r.jsx)(StrikerConfig_CommonUserInputGroup,{formUtils:v,previous:{name:I},readOnlyUserName:"admin"===I,showPasswordField:!0}),onSubmitAppend:function(){for(var e,n=arguments.length,l=Array(n),o=0;o{k({body:i,getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Update user failed. ",e]}),method:"put",successMsg:"Updated user ".concat(I),url:"/user/".concat(D)})},titleText:"Update user ".concat(I," with the following?")}),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},titleText:"Edit user ".concat(I)}),[v,s,k,I,D]),W=(0,i.useMemo)(()=>(0,r.jsx)(P.Z,{count:1,defaultMessageType:"warning",ref:l}),[]),B=(0,i.useMemo)(()=>{var e;return(null==f?void 0:null===(e=f.current)||void 0===e?void 0:e.userName)==="admin"},[f]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.TZ,{header:"Manage users",loading:j,children:(0,r.jsx)(_.Z,{allowAddItem:B,allowDelete:B,allowEdit:!0,allowItemButton:d,disableDelete:!M,edit:d,getListItemCheckboxProps:(e,t)=>{let{userName:n}=t;return{disabled:"admin"===n}},header:!0,listEmpty:(0,r.jsx)(E.Z,{...h}),listItems:f,onAdd:()=>{var t;null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},onDelete:()=>{var e;s(C({confirmDialogProps:{onProceedAppend:()=>{k({body:{uuids:S},getErrorMsg:e=>(0,r.jsxs)(r.Fragment,{children:["Delete user(s) failed. ",e]}),method:"delete",url:"/user"})}},formSummaryProps:{renderEntry:e=>{let{key:t}=e;return(0,r.jsx)(Z.Ac,{children:null==f?void 0:f[t].userName})}},getConfirmDialogTitle:e=>"Delete the following ".concat(e," users?")})),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:()=>p(e=>!e),onItemCheckboxChange:(e,t,n)=>F(e,n),onItemClick:e=>{if(d){var t;g(e),null===(t=n.current.setOpen)||void 0===t||t.call(null,!0)}},renderListItemCheckboxState:e=>A(e),renderListItem:(e,t)=>{let{userName:n}=t;return(0,r.jsx)(Z.Ac,{children:n})}})}),(0,r.jsx)(G.Z,{...O,disableProceed:w,loadingAction:y,preActionArea:W,ref:e}),(0,r.jsx)(G.Z,{...R,disableProceed:w,loadingAction:y,preActionArea:W,ref:n}),(0,r.jsx)(c.Z,{closeOnProceed:!0,...o,ref:t})]})},StrikerConfig_ComplexOperationsPanel=()=>(0,r.jsxs)(T.s_,{children:[(0,r.jsx)(StrikerConfig_ConfigPeersForm,{}),(0,r.jsx)(StrikerConfig_ManageChangedSSHKeysForm,{}),(0,r.jsx)(StrikerConfig_ManageUsersForm,{})]}),X=n(72852),Y=n(19467),J=n(81796);let StretchedButton=e=>(0,r.jsx)(Y.Z,{...e,sx:{width:"100%"}});var StrikerConfig_SimpleOperationsPanel=e=>{let{installTarget:t="disabled",onSubmit:n,title:o}=e,[s,a]=(0,i.useState)(),c=(0,i.useMemo)(()=>o?(0,r.jsx)(Z.z,{sx:{textAlign:"center"},children:o}):(0,r.jsx)(J.Z,{mt:0}),[o]),d=(0,i.useMemo)(()=>s&&(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(E.Z,{...s,onClose:()=>{a(void 0)}})}),[s,a]);return(0,r.jsxs)(T.s_,{children:[(0,r.jsx)(T.V9,{children:c}),(0,r.jsxs)(l.ZP,{columns:{xs:1,sm:2},container:!0,spacing:"1em",children:[(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsxs)(j.Z,{row:!0,children:[(0,r.jsx)(Z.Ac,{sx:{flexGrow:1},children:"Install target"}),(0,r.jsx)(X.Z,{checked:"enabled"===t,edge:"end",onChange:(e,t)=>{let l="disable",s="Disable";t&&(l="enable",s="Enable"),null==n||n.call(null,{actionProceedText:s,content:(0,r.jsxs)(Z.Ac,{children:["Would you like to ",l,' "Install target" on this striker? It\'ll take a few moments to complete.']}),onProceedAppend:()=>{m.Z.put("/host/local",{isEnableInstallTarget:t},{params:{handler:"install-target"}}).catch(e=>{let t=(0,b.Z)(e);t.children="Failed to ".concat(l,' "Install target". ').concat(t.children),a(t)})},titleText:"".concat(s,' "Install target" on ').concat(o,"?")})}})]})}),(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Update",content:(0,r.jsx)(Z.Ac,{children:"Would you like to update the operating system on this striker? It'll be placed into maintenance mode until the update completes."}),onProceedAppend:()=>{m.Z.put("/command/update-system").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system update. ".concat(t.children),a(t)})},titleText:"Update operating system on ".concat(o,"?")})},children:"Update system"})}),(0,r.jsx)(l.ZP,{item:!0,sm:2,xs:1,children:(0,r.jsx)(StretchedButton,{href:"/init?re=1",children:"Reconfigure striker"})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Reboot",content:(0,r.jsx)(Z.Ac,{children:"Would you like to reboot this striker?"}),onProceedAppend:()=>{m.Z.put("/command/reboot-host").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system reboot. ".concat(t.children),a(t)})},titleText:"Reboot ".concat(o,"?")})},children:"Reboot"})}),(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StretchedButton,{onClick:()=>{null==n||n.call(null,{actionProceedText:"Shutdown",content:(0,r.jsx)(Z.Ac,{children:"Would you like to shutdown this striker?"}),onProceedAppend:()=>{m.Z.put("/command/poweroff-host").catch(e=>{let t=(0,b.Z)(e);t.children="Failed to initiate system shutdown. ".concat(t.children),a(t)})},titleText:"Shutdown ".concat(o,"?")})},children:"Shutdown"})}),d]})]})},config=e=>{let{refreshInterval:t=6e4}=e,[n,o]=(0,i.useState)(!1),[p,h]=(0,i.useState)({actionProceedText:"",closeOnProceed:!0,content:"",dialogProps:{open:n},onCancelAppend:()=>{o(!1)},onProceedAppend:()=>{o(!1)},titleText:""}),[m,x]=(0,i.useState)(),[g,f]=(0,i.useState)(""),{data:Z,isLoading:j}=(0,u.Z)("".concat(a.Z,"/host/local"),{onError:()=>{f("Unknown")},onSuccess:e=>{let{installTarget:t,shortHostName:n}=e;x(t),f(n)},refreshInterval:t});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:j?"Loading...":"".concat(null==Z?void 0:Z.shortHostName," Config")})}),(0,r.jsx)(d.Z,{}),(0,r.jsxs)(l.ZP,{container:!0,columns:{xs:1,md:3,lg:4},children:[(0,r.jsx)(l.ZP,{item:!0,xs:1,children:(0,r.jsx)(StrikerConfig_SimpleOperationsPanel,{installTarget:m,onSubmit:e=>{let{onProceedAppend:t,...n}=e;h(e=>({...e,...n,onProceedAppend:function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!("string"==typeof n&&o.test(n)))throw TypeError("Stringified UUID is invalid");return n},esm_browser_v4=function(e,t,n){var o=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(l)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=o[s];return t}return esm_browser_stringify(o)}}},function(e){e.O(0,[494,804,416,263,461,203,775,675,556,774,888,179],function(){return e(e.s=14453)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/file-manager-8a23bb0baebac7f6.js b/striker-ui/out/_next/static/chunks/pages/file-manager-8a23bb0baebac7f6.js new file mode 100644 index 00000000..5ccdf9a2 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/file-manager-8a23bb0baebac7f6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{91953:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return l(52288)}])},15079:function(e,t,l){"use strict";var n=l(85893),r=l(97212),i=l(78462),s=l(5616),o=l(55238),a=l(84154),c=l(5744);let renderEntryValueWithMono=e=>{let{entry:t}=e;return(0,n.jsx)(a.$_,{whiteSpace:"nowrap",children:String(t)})},renderEntryValueWithPassword=e=>{let{entry:t,key:l}=e;return/passw/i.test(l)?(0,n.jsx)(a.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):renderEntryValueWithMono(e)},buildEntryList=e=>{let{depth:t=0,entries:l,getEntryLabel:s,getListProps:o,getListItemProps:a,listKey:c,maxDepth:u,renderEntry:d,renderEntryValue:h,skip:p}=e,m=[];Object.entries(l).forEach(e=>{let[l,i]=e,o="form-summary-entry-".concat(l),c=null!==i&&"object"==typeof i,g=c?null:i,v={depth:t,entry:g,key:l};p(e=>{let{key:t}=e;return!/confirm/i.test(t)},v)&&m.push((0,n.jsx)(r.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==a?void 0:a.call(null,v),children:d({depth:t,entry:g,getLabel:s,key:l,nest:c,renderValue:h})},o)),c&&t{let{entries:t,getEntryLabel:l=e=>{let{cap:t,key:l}=e;return t(l)},getListProps:r,getListItemProps:i,hasPassword:u,maxDepth:d=3,renderEntry:h=e=>{let{depth:t,entry:l,getLabel:r,key:i,nest:u,renderValue:d}=e;return(0,n.jsxs)(o.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(a.Ac,{children:r({cap:c.Z,depth:t,entry:l,key:i})}),(0,n.jsx)(s.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!u&&d({depth:t,entry:l,key:i})})]})},renderEntryValue:p=e=>{let{entry:t}=e;return["",null,void 0].some(e=>t===e)?(0,n.jsx)(a.Ac,{children:"none"}):u?renderEntryValueWithPassword(e):renderEntryValueWithMono(e)},skip:m=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n({["& .".concat(_.list)]:{width:"200px"},["& .".concat(_.actionIcon)]:{fontSize:"2.3em",color:d.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:l}=e,{getSessionUser:r}=(0,F.Z)(),i=r();return(0,n.jsx)(S,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>l(!t),children:(0,n.jsx)("div",{role:"presentation",children:(0,n.jsxs)(g.Z,{className:_.list,children:[(0,n.jsx)(v.ZP,{children:(0,n.jsx)(k.Ac,{children:i?(0,n.jsxs)(n.Fragment,{children:["Welcome, ",i.name]}):"Unregistered"})}),(0,n.jsx)(b.Z,{}),(0,n.jsx)(f.Z,{component:"a",href:"/index.html",children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)(h.Z,{className:_.actionIcon}),(0,n.jsx)(k.Ac,{children:"Dashboard"})]})}),x.map(e=>(0,n.jsx)(f.Z,{component:"a",href:e.uri,children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)("img",{alt:e.text,src:e.image,...j}),(0,n.jsx)(k.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,n.jsx)(f.Z,{onClick:()=>{Z.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,w.Z)(e)})},children:(0,n.jsxs)(y.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,n.jsx)(p.Z,{className:_.actionIcon}),(0,n.jsx)(k.Ac,{children:"Logout"})]})})]})})})},M=l(83909),P=l(66354);let O="Header",E={input:"".concat(O,"-input"),barElement:"".concat(O,"-barElement"),iconBox:"".concat(O,"-iconBox"),searchBar:"".concat(O,"-searchBar"),icons:"".concat(O,"-icons")},A=(0,i.ZP)(s.Z)(e=>{let{theme:t}=e;return{paddingTop:t.spacing(.5),paddingBottom:t.spacing(.5),paddingLeft:t.spacing(3),paddingRight:t.spacing(3),borderBottom:"solid 1px",borderBottomColor:d.hM,position:"static",["& .".concat(E.input)]:{height:"2.8em",width:"30vw",backgroundColor:t.palette.secondary.main,borderRadius:d.n_},["& .".concat(E.barElement)]:{padding:0},["& .".concat(E.iconBox)]:{[t.breakpoints.down("sm")]:{display:"none"}},["& .".concat(E.searchBar)]:{[t.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(E.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,u.useRef)({}),t=(0,u.useRef)({}),[l,i]=(0,u.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(A,{children:(0,n.jsxs)(o.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,n.jsx)(y.Z,{row:!0,children:(0,n.jsx)(a.Z,{onClick:()=>i(!l),children:(0,n.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,n.jsx)(y.Z,{className:E.iconBox,row:!0,spacing:0,children:(0,n.jsx)(o.Z,{children:(0,n.jsx)(c.Z,{onClick:e=>{var l,n;let{currentTarget:r}=e;null===(l=t.current.setAnchor)||void 0===l||l.call(null,r),null===(n=t.current.setOpen)||void 0===n||n.call(null,!0)},sx:{color:d.of,padding:"0 .1rem"},children:(0,n.jsx)(M.Z,{icon:r.Z,ref:e})})})})]})}),(0,n.jsx)(components_AnvilDrawer,{open:l,setOpen:i}),(0,n.jsx)(P.Z,{onFetchSuccessAppend:t=>{var l;null===(l=e.current.indicate)||void 0===l||l.call(null,Object.keys(t).length>0)},ref:t})]})}},21642:function(e,t,l){"use strict";var n=l(85893),r=l(67294),i=l(68917);let s={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},o=(0,r.forwardRef)((e,t)=>{let{count:l=s.count,defaultMessageType:o=s.defaultMessageType,messages:a,onSet:c,usePlaceholder:u=s.usePlaceholder}=e,[d,h]=(0,r.useState)({}),p=(0,r.useMemo)(()=>({...a,...d}),[a,d]),m=(0,r.useCallback)(e=>void 0!==p[e],[p]),g=(0,r.useCallback)((e,t)=>{let l=0;h(n=>{let{[e]:r,...i}=n;return t&&(i[e]=t),l=Object.keys(i).length,i}),null==c||c.call(null,l)},[c]),v=(0,r.useCallback)((e,t)=>{let l=0,n=t?(e,n)=>{e[n]=t,l+=1}:void 0;h(t=>{let r={};return Object.keys(t).forEach(i=>{e.test(i)?null==n||n.call(null,r,i):(r[i]=t[i],l+=1)}),r}),null==c||c.call(null,l)},[c]),f=(0,r.useMemo)(()=>{let e=Object.entries(p),t=l>0,r=t?l:e.length,s=[];if(e.every(e=>{let[t,l]=e,{children:a,type:c=o}=l;return s.push((0,n.jsx)(i.Z,{type:c,children:a},"message-".concat(t))),s.length({exists:m,setMessage:g,setMessageRe:v}),[m,g,v]),(0,n.jsx)(n.Fragment,{children:f})});o.defaultProps=s,o.displayName="MessageGroup",t.Z=o},88468:function(e,t,l){"use strict";var n=l(67294),r=l(94121),i=l(591);let s=(0,n.forwardRef)((e,t)=>{let{input:l,onChange:s=function(e){let{handlers:{base:t,origin:l}}=e;for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{let{type:e}=c,t="value",l="string";return e===r.Z.checkbox&&(t="checked",l="boolean"),{valueKey:t,valueType:l}},[c]),{onChange:h,[u]:p,...m}=c,[g,v]=(0,n.useState)(p),f=(0,n.useCallback)(e=>{let{target:{[u]:t}}=e,l=i.Z[d](t);v(l)},[u,d]),x=(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),l=0;l(null==o||o.call(null),a),[]),(0,n.useImperativeHandle)(t,()=>({get:()=>g,set:v}),[g]),(0,n.cloneElement)(l,{...m,onChange:x,[u]:g})});s.displayName="UncontrolledInput",t.Z=s},6903:function(e,t,l){"use strict";var n=l(67294),r=l(67645),i=l(41247);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{config:t,onError:l,onData:s,url:o=""}=e,[a,c]=(0,n.useState)(!1),u=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a="".concat(o).concat(e);a&&(c(!0),r.Z.get(a,{...t,...n}).then(e=>{let{data:t}=e;null==s||s.call(null,t)}).catch(e=>{let t=(0,i.Z)(e);null==l||l.call(null,t)}).finally(()=>{c(!1)}))},[o,t,s,l]);return{fetch:u,loading:a}}},32576:function(e,t,l){"use strict";var n=l(85893),r=l(67294),i=l(84070),s=l(15079);t.Z=e=>{let{list:t={}}=e,[l,o]=(0,r.useState)({}),a=(0,r.useMemo)(()=>Object.keys(t),[t]),c=(0,r.useMemo)(()=>Object.keys(l),[l]),u=(0,r.useMemo)(()=>c.length===a.length,[c.length,a.length]),d=(0,r.useMemo)(()=>c.length>0,[c.length]),h=(0,r.useMemo)(()=>a.length>1,[a.length]),p=(0,r.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:r={},getConfirmDialogTitle:i,onProceedAppend:o,renderEntry:a}=e;return{actionProceedText:"Delete",content:(0,n.jsx)(s.Z,{entries:l,maxDepth:0,renderEntry:a,...r}),onProceedAppend:o,proceedColour:"red",titleText:i(c.length),...t}},[l,c.length]),m=(0,r.useCallback)(e=>!!l[e],[l]),g=(0,r.useCallback)(()=>o({}),[]),v=(0,r.useCallback)(e=>o(a.reduce((t,l)=>(e&&(t[l]=e),t),{})),[a]),f=(0,r.useCallback)((e,t)=>o((0,i.ZP)(e,t||void 0)),[]);return{buildDeleteDialogProps:p,checklist:l,checks:c,getCheck:m,hasAllChecks:u,hasChecks:d,multipleItems:h,resetChecks:g,setAllChecks:v,setCheck:f}}},58839:function(e,t,l){"use strict";var n=l(67294);t.Z=function(){let{actionProceedText:e="",content:t="",titleText:l="",...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.useState)({actionProceedText:e,content:t,titleText:l,...r})}},67978:function(e,t,l){"use strict";var n=l(67294),r=l(8100),i=l(98436),s=l(96262);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:l=i.Z,fetcher:o=s.Z,mod:a,...c}=t,{data:u,error:d,mutate:h}=(0,r.ZP)("".concat(l).concat(e),o,c),p=(0,n.useMemo)(()=>a&&u&&a(u),[u,a]),m=!d&&!u;return{altData:p,data:u,error:d,mutate:h,loading:m}}},48882:function(e,t,l){"use strict";l.d(t,{Z:function(){return api_converters_toAnvilOverviewList}});var api_converters_toAnvilOverviewHostList=e=>e.reduce((e,t)=>{let{hostName:l,hostType:n,hostUUID:r}=t;return e[r]={name:l,type:n,uuid:r},e},{}),api_converters_toAnvilOverviewList=e=>e.reduce((e,t)=>{let{anvilDescription:l,anvilName:n,anvilUUID:r,hosts:i}=t;return e[r]={description:l,hosts:api_converters_toAnvilOverviewHostList(i),name:n,uuid:r},e},{})},84070:function(e,t,l){"use strict";l.d(t,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,t=Array(e),l=0;l2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let r={};return Object.keys(n).forEach(i=>{e.test(i)?l(n,r,i,t):r[i]=n[i]}),r}};t.ZP=function(e,t){let{guard:l=()=>!0,set:n=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let{[e]:i,...s}=r,o={...s};return l(r,e,t)&&n(r,o,e,t),o}}},78438:function(e,t){"use strict";t.Z=(e,t)=>e&&Object.keys(e).reduce((e,l)=>({...e,[l]:t}),{})},591:function(e,t){"use strict";t.Z={boolean:e=>!!e,number:e=>parseInt(String(e),10)||0,string:e=>String(e)}},5744:function(e,t,l){"use strict";var n=l(48403),r=l.n(n);t.Z=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2");return r()(t)}},43799:function(e,t,l){"use strict";var n=l(5744);let getFormikErrorMessages=function(e){let{build:t=(e,t)=>{let l=t;if("string"==typeof l){let[e,...t]=l.split(/\s+/),r=(0,n.Z)(e.replace(/^[^\s]+\.([^.]+)/,"$1"));l=[r,...t].join(" ")}return{children:l,type:"warning"}},chain:l="",skip:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(e).reduce((e,n)=>{let[i,s]=n,o=[l,i].filter(e=>!!e).join(".");return null!==s&&"object"==typeof s?{...e,...getFormikErrorMessages(s,{build:t,chain:o,skip:r})}:((null==r?void 0:r.call(null,o))||(e[o]=t(o,s)),e)},{})};t.Z=getFormikErrorMessages},52288:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return file_manager}});var n=l(85893),r=l(9008),i=l.n(r),s=l(21405),o=l(54490),a=l(67294),c=l(98436);let u=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],d=new Map(u);var h=l(82175),p=l(25934),m=l(73393),g=l(67645),v=l(19467),f=l(53457),x=l(50361),j=l.n(x),Z=l(23279),b=l.n(Z),y=l(55238),w=l(63071),k=l(55675),F=l(37260),C=l(52886),_=l(84154),S=l(88468),Files_FileInputGroup=e=>{let{anvils:t,drHosts:l,fileUuid:r,formik:i,showSyncInputGroup:s,showTypeInput:o}=e,{handleBlur:c,handleChange:d}=i,h=(0,a.useMemo)(()=>b()(d,500),[d]),{nameChain:p,locationsChain:m,typeChain:g}=(0,a.useMemo)(()=>({nameChain:"".concat(r,".name"),locationsChain:"".concat(r,".locations"),typeChain:"".concat(r,".type")}),[r]),v=(0,a.useCallback)((e,t)=>{i.setValues(l=>{var n;let i=j()(l),s=null===(n=i[r].locations)||void 0===n?void 0:n[e];return s?(Object.keys(s).forEach(e=>{s[e].active=t}),i):l})},[i,r]),x=(0,a.useCallback)(e=>{var t;let l=null===(t=i.values[r].locations)||void 0===t?void 0:t[e];return l?{checked:Object.values(l).every(e=>{let{active:t}=e;return t}),onChange:(t,l)=>{v(e,l)}}:{}},[i.values,r,v]),Z=(0,a.useCallback)((e,t)=>{var l,n,s;let o="".concat(m,".").concat(e,".").concat(t),a="".concat(o,".active");return{id:a,name:a,checked:null===(s=i.values[r].locations)||void 0===s?void 0:null===(n=s[e])||void 0===n?void 0:null===(l=n[t])||void 0===l?void 0:l.active,onBlur:c,onChange:d}},[i.values,r,c,d,m]),M=(0,a.useCallback)(e=>{var t;let l=null===(t=i.values[r].locations)||void 0===t?void 0:t[e];return l&&Object.keys(l).length>1},[i.values,r]),P=(0,a.useMemo)(()=>(0,n.jsx)(S.Z,{input:(0,n.jsx)(k.Z,{id:p,label:"File name",name:p,onBlur:c,onChange:h,value:i.values[r].name})}),[h,i.values,r,c,p]),O=(0,a.useMemo)(()=>s&&(0,n.jsx)(F.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,n.jsx)(w.Z,{allowCheckAll:M("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:()=>x("anvils"),getListItemCheckboxProps:e=>Z("anvils",e),renderListItem:(e,t)=>{let{description:l,name:r}=t;return(0,n.jsxs)(_.Ac,{children:[r,": ",l]})}})}),[t,M,x,Z,s]),E=(0,a.useMemo)(()=>s&&(0,n.jsx)(F.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,n.jsx)(w.Z,{allowCheckAll:M("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:l,getListCheckboxProps:()=>x("drHosts"),getListItemCheckboxProps:e=>Z("drHosts",e),renderListItem:(e,t)=>{let{hostName:l}=t;return(0,n.jsx)(_.Ac,{children:l})}})}),[l,M,x,Z,s]),A=(0,a.useMemo)(()=>o&&(0,n.jsx)(C.Z,{id:g,label:"File type",name:g,onBlur:c,onChange:d,selectItems:u.map(e=>{let[t,[,l]]=e;return{displayValue:l,value:t}}),value:i.values[r].type}),[i.values,r,c,d,o,g]);return(0,n.jsxs)(f.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,n.jsxs)(y.Z,{sm:"row",xs:"column",children:[P,A]}),O,E]})},M=l(43799),P=l(41247),O=l(21642),E=l(16310),A=l(78438);let I=E.Ry({active:E.O7().required()}),L=E.Vo(e=>E.Ry((0,A.Z)(e,I))),R=E.Vo(e=>E.Ry((0,A.Z)(e,I))),D=E.Ry({locations:E.Ry({anvils:L,drHosts:R}),name:E.Z_().required(),type:E.Z_().oneOf(["iso","other","script"]),uuid:E.Z_().uuid().required()}),U=E.Vo(e=>E.Ry((0,A.Z)(e,D)));var V=l(5616),B=l(27072),Files_UploadFileProgress=e=>{let{uploads:t}=e;return(0,n.jsx)(y.Z,{columnSpacing:".2em",children:Object.values(t).map(e=>{let{name:t,progress:l,uuid:r}=e;return(0,n.jsxs)(V.Z,{sx:{alignItems:{md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},"& > :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,n.jsx)(_.Ac,{children:t}),(0,n.jsx)(B.ko,{progressPercentage:l})]},"upload-".concat(r))})})};let setUploadProgress=(e,t,l)=>e?(e[t].progress=l,{...e}):e;var Files_AddFileForm=e=>{let{anvils:t,drHosts:l}=e,r=(0,a.useRef)(null),i=(0,a.useRef)(null),[s,o]=(0,a.useState)(),c=(0,a.useCallback)(e=>{var t,l;return null==r?void 0:null===(l=r.current)||void 0===l?void 0:null===(t=l.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[]),u=(0,h.TA)({initialValues:{},onSubmit:e=>{let t=Object.values(e);o(t.reduce((e,t)=>{let{file:l,name:n,uuid:r}=t;return l&&(e[r]={name:n,progress:0,uuid:r}),e},{})),c({children:(0,n.jsx)(n.Fragment,{children:"Closing this dialog before the upload(s) complete will cancel the upload(s)."})});let l=t.reduce((e,t)=>{let{file:l,name:n,uuid:r}=t;if(!l)return e;let i=new FormData;i.append("file",new File([l],n,{...l}));let s=g.Z.post("/file",i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{let{loaded:t,total:l}=e;o(e=>setUploadProgress(e,r,Math.round(t/l*99)))}}).then(()=>{o(e=>setUploadProgress(e,r,100))});return e.push(s),e},[]);Promise.all(l).then(()=>{c({children:(0,n.jsxs)(y.Z,{spacing:0,children:[(0,n.jsx)("span",{children:"Upload(s) completed; file(s) will be listed after the job(s) to sync them to other host(s) finish."}),(0,n.jsx)("span",{children:"You can close this dialog."})]})})}).catch(e=>{let t=(0,P.Z)(e);t.children=(0,n.jsxs)(n.Fragment,{children:["Failed to add file. ",t.children]}),c(t)})},validationSchema:U}),d=(0,a.useMemo)(()=>(0,M.Z)(u.errors),[u.errors]),f=(0,a.useMemo)(()=>!u.dirty||!u.isValid||u.isValidating||u.isSubmitting,[u.dirty,u.isSubmitting,u.isValid,u.isValidating]),x=(0,a.useCallback)(e=>{let{target:{files:t}}=e;if(!t)return;let l=Array.from(t).reduce((e,t)=>{let l=(0,p.Z)();return e[l]={file:t,name:t.name,uuid:l},e},{});u.setValues(l)},[u]),j=(0,a.useMemo)(()=>u.values&&Object.values(u.values).map(e=>{let{uuid:r}=e;return(0,n.jsx)(Files_FileInputGroup,{anvils:t,drHosts:l,fileUuid:r,formik:u},r)}),[t,l,u]);return(0,n.jsxs)(y.Z,{children:[(0,n.jsx)(O.Z,{ref:r}),s?(0,n.jsx)(Files_UploadFileProgress,{uploads:s}):(0,n.jsxs)(y.Z,{component:"form",onSubmit:e=>{e.preventDefault(),u.submitForm()},children:[(0,n.jsx)("input",{id:"files",multiple:!0,name:"files",onChange:x,ref:i,style:{display:"none"},type:"file"}),(0,n.jsx)(v.Z,{onClick:()=>{var e;null===(e=i.current)||void 0===e||e.click()},children:"Browse"}),j,(0,n.jsx)(O.Z,{count:1,messages:d}),(0,n.jsx)(m.Z,{actions:[{background:"blue",children:"Add",disabled:f,type:"submit"}]})]})]})},H=l(48882),T=l(56597),N=l(56211),W=l(57632);let toEditFileRequestBody=(e,t)=>{let{locations:l,name:n,type:r,uuid:i}=e;if(!l||!r)return;let s=[];return Object.entries(l.anvils).reduce((e,l)=>{let[n,{active:r}]=l,{anvils:{[n]:{locationUuids:i}}}=t,s=i.map(e=>({fileLocationUUID:e,isFileLocationActive:r}));return e.push(...s),e},s),Object.entries(l.drHosts).reduce((e,l)=>{let[n,{active:r}]=l,{hosts:{[n]:{locationUuids:i}}}=t,s=i.map(e=>({fileLocationUUID:e,isFileLocationActive:r}));return e.push(...s),e},s),{fileLocations:s,fileName:n,fileType:r,fileUUID:i}};var Files_EditFileForm=e=>{let{anvils:t,drHosts:l,onSuccess:r,previous:i}=e,s=(0,a.useRef)({}),o=(0,a.useCallback)(e=>{var t;return null===(t=s.current.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[]),c=(0,a.useMemo)(()=>{let{locations:e,name:t,type:n,uuid:r}=i;return{[r]:{locations:Object.values(e).reduce((e,t)=>{let{active:n,anvilUuid:r,hostUuid:i}=t,s="anvils",o=r;return i in l&&(s="drHosts",o=i),e[s][o]={active:n},e},{anvils:{},drHosts:{}}),name:t,type:n,uuid:r}}},[l,i]),u=(0,h.TA)({initialValues:c,onSubmit:(e,t)=>{let{setSubmitting:l}=t,s=toEditFileRequestBody(e[i.uuid],i);g.Z.put("/file/".concat(i.uuid),s).then(()=>{o({children:(0,n.jsx)(n.Fragment,{children:"File updated."})}),null==r||r.call(null)}).catch(e=>{let t=(0,P.Z)(e);t.children=(0,n.jsxs)(n.Fragment,{children:["Failed to modify file. ",t.children]}),o(t)}).finally(()=>{l(!1)})},validationSchema:U}),d=(0,a.useMemo)(()=>(0,M.Z)(u.errors),[u.errors]),p=(0,a.useMemo)(()=>!u.dirty||!u.isValid||u.isValidating||u.isSubmitting,[u.dirty,u.isSubmitting,u.isValid,u.isValidating]);return(0,n.jsxs)(y.Z,{component:"form",onSubmit:e=>{e.preventDefault(),u.submitForm()},children:[(0,n.jsx)(Files_FileInputGroup,{anvils:t,drHosts:l,fileUuid:i.uuid,formik:u,showSyncInputGroup:!0,showTypeInput:!0}),(0,n.jsx)(O.Z,{count:1,messages:d,ref:s}),(0,n.jsx)(m.Z,{loading:u.isSubmitting,actions:[{background:"blue",children:"Edit",disabled:p,type:"submit"}]})]})},G=l(64666),$=l(81796),q=l(6903),z=l(32576),J=l(58839),X=l(67978);let toFileOverviewList=e=>e.reduce((e,t)=>{let[l,n,r,i,s]=t;return e[l]={checksum:s,name:n,size:r,type:i,uuid:l},e},{}),toFileDetail=e=>{let{0:t}=e;if(!t)return;let[l,n,r,i,s]=t;return e.reduce((e,t)=>{let{5:l,6:n,7:r,8:i,9:s,10:o,11:a,12:c}=t;e.anvils[r]||(e.anvils[r]={description:s,locationUuids:[],name:i,uuid:r}),e.hosts[o]||(e.hosts[o]={locationUuids:[],name:a,type:c,uuid:o}),"dr"===c?e.hosts[o].locationUuids.push(l):e.anvils[r].locationUuids.push(l);let u=1===Number(n);return e.locations[l]={anvilUuid:r,active:u,hostUuid:o,uuid:l},e},{anvils:{},checksum:s,hosts:{},locations:{},name:n,size:r,type:i,uuid:l})};var Files=()=>{let e=(0,a.useRef)(null),t=(0,a.useRef)({}),l=(0,a.useRef)(null),r=(0,a.useRef)({}),[i,s]=(0,J.Z)(),[u,h]=(0,a.useState)(!1),[p,m]=(0,a.useState)(),[v,f]=(0,a.useState)(),{isLoading:x}=(0,G.Z)("".concat(c.Z,"/file"),{onSuccess:e=>{f(toFileOverviewList(e))}}),{fetch:j,loading:Z}=(0,q.Z)({onData:e=>f(toFileOverviewList(e)),url:"/file"}),b=(0,a.useMemo)(()=>x||Z,[Z,x]),{buildDeleteDialogProps:k,checks:C,getCheck:S,hasAllChecks:M,hasChecks:P,multipleItems:E,resetChecks:A,setAllChecks:I,setCheck:L}=(0,z.Z)({list:v}),R=(0,a.useCallback)(e=>{var t;return null===(t=r.current.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[]),{fetch:D,loading:U}=(0,q.Z)({onData:e=>m(toFileDetail(e)),onError:e=>{let{children:t,...l}=e;R({children:(0,n.jsxs)(n.Fragment,{children:["Failed to get file detail. ",t]}),...l})},url:"/file/"}),{data:V,loading:B}=(0,X.Z)("/anvil",{onError:e=>{R({children:(0,n.jsxs)(n.Fragment,{children:["Failed to get node list. ",e]}),type:"warning"})}}),K=(0,a.useMemo)(()=>V&&(0,H.Z)(V),[V]),{data:Y,loading:Q}=(0,X.Z)("/host?types=dr",{onError:e=>{R({children:(0,n.jsxs)(n.Fragment,{children:["Failed to get DR host list. ",e]}),type:"warning"})}}),ee=(0,a.useMemo)(()=>(0,n.jsx)(w.Z,{allowCheckAll:E,allowEdit:!0,allowItemButton:u,disableDelete:!P,edit:u,getListCheckboxProps:()=>({checked:M,onChange:(e,t)=>{I(t)}}),getListItemCheckboxProps:e=>({checked:S(e),onChange:(t,l)=>{L(e,l)}}),header:!0,listEmpty:"No file(s) found.",listItems:v,onAdd:()=>{var t;null===(t=e.current)||void 0===t||t.setOpen(!0)},onDelete:()=>{var e;s(k({onProceedAppend:()=>{let e=C.map(e=>g.Z.delete("/file/".concat(e)));Promise.all(e).then(()=>j()),A()},getConfirmDialogTitle:e=>"Delete the following ".concat(e," file(s)?"),renderEntry:e=>{let{key:t}=e;return(0,n.jsx)(_.Ac,{children:null==v?void 0:v[t].name})}})),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:()=>{h(e=>!e)},onItemClick:(e,t)=>{var n;null===(n=l.current)||void 0===n||n.setOpen(!0),D(t)},renderListItem:(e,t)=>{var l;let{checksum:r,name:i,size:s,type:a}=t;return(0,n.jsxs)(y.Z,{columnSpacing:0,fullWidth:!0,md:"row",xs:"column",children:[(0,n.jsxs)(y.Z,{spacing:0,flexGrow:1,children:[(0,n.jsxs)(y.Z,{row:!0,spacing:".5em",children:[(0,n.jsx)(_.$_,{children:i}),(0,n.jsx)(W.Z,{flexItem:!0,orientation:"vertical"}),(0,n.jsx)(_.Ac,{children:null===(l=d.get(a))||void 0===l?void 0:l[1]})]}),(0,n.jsx)(_.Ac,{children:(0,o._d)(s,{toUnit:"ibyte"})})]}),(0,n.jsx)(_.$_,{children:r})]})}}),[k,C,u,v,S,D,j,M,P,E,A,I,L,s]),et=(0,a.useMemo)(()=>b?(0,n.jsx)($.Z,{}):ee,[b,ee]),el=(0,a.useMemo)(()=>(0,n.jsx)(O.Z,{count:1,ref:r,usePlaceholder:!1}),[]),en=(0,a.useMemo)(()=>x||B||Q,[B,Q,x]),er=(0,a.useMemo)(()=>x||B||Q||U,[B,Q,U,x]),ei=(0,a.useMemo)(()=>K&&Y&&(0,n.jsx)(Files_AddFileForm,{anvils:K,drHosts:Y}),[K,Y]),es=(0,a.useMemo)(()=>K&&Y&&p&&(0,n.jsx)(Files_EditFileForm,{anvils:K,drHosts:Y,onSuccess:()=>{j()},previous:p}),[K,Y,p,j]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.s_,{children:[(0,n.jsx)(F.V9,{children:(0,n.jsx)(_.z,{children:"Files"})}),el,et]}),(0,n.jsx)(N.Js,{header:"Add file(s)",loading:en,ref:e,showClose:!0,wide:!0,children:ei}),(0,n.jsx)(N.Js,{header:"Update file ".concat(null==p?void 0:p.name),loading:er,ref:l,showClose:!0,wide:!0,children:es}),(0,n.jsx)(T.Z,{closeOnProceed:!0,wide:!0,...i,ref:t})]})},file_manager=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"File Manager"})}),(0,n.jsx)(s.Z,{}),(0,n.jsx)(Files,{})]})}},function(e){e.O(0,[494,804,416,50,213,461,264,486,775,675,633,774,888,179],function(){return e(e.s=91953)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js b/striker-ui/out/_next/static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js deleted file mode 100644 index c645edc3..00000000 --- a/striker-ui/out/_next/static/chunks/pages/file-manager-c8a2ce2c02dc39fc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[941],{91953:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file-manager",function(){return i(52288)}])},21405:function(e,t,i){"use strict";i.d(t,{Z:function(){return components_Header}});var l=i(85893),n=i(41098),s=i(90948),r=i(42293),o=i(5616),a=i(82589),c=i(54799),d=i(67294),u=i(6010),h=i(25709),m=i(13540),p=i(77533),g=i(78462),x=i(97212),v=i(98619);let f=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],j={width:"40em",height:"40em"};var Z=i(67645),w=i(57632),b=i(55238),F=i(41247),y=i(84154),k=i(34819);let C="AnvilDrawer",_={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},S=(0,s.ZP)(p.ZP)(()=>({["& .".concat(_.list)]:{width:"200px"},["& .".concat(_.actionIcon)]:{fontSize:"2.3em",color:u.of}}));var components_AnvilDrawer=e=>{let{open:t,setOpen:i}=e,{getSessionUser:n}=(0,k.Z)(),s=n();return(0,l.jsx)(S,{BackdropProps:{invisible:!0},anchor:"left",open:t,onClose:()=>i(!t),children:(0,l.jsx)("div",{role:"presentation",children:(0,l.jsxs)(g.Z,{className:_.list,children:[(0,l.jsx)(x.ZP,{children:(0,l.jsx)(y.Ac,{children:s?(0,l.jsxs)(l.Fragment,{children:["Welcome, ",s.name]}):"Unregistered"})}),(0,l.jsx)(w.Z,{}),(0,l.jsx)(v.Z,{component:"a",href:"/index.html",children:(0,l.jsxs)(b.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,l.jsx)(h.Z,{className:_.actionIcon}),(0,l.jsx)(y.Ac,{children:"Dashboard"})]})}),f.map(e=>(0,l.jsx)(v.Z,{component:"a",href:e.uri,children:(0,l.jsxs)(b.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,l.jsx)("img",{alt:e.text,src:e.image,...j}),(0,l.jsx)(y.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,l.jsx)(v.Z,{onClick:()=>{Z.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,F.Z)(e)})},children:(0,l.jsxs)(b.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,l.jsx)(m.Z,{className:_.actionIcon}),(0,l.jsx)(y.Ac,{children:"Logout"})]})})]})})})},A=i(83909),M=i(66354);let I="Header",P={input:"".concat(I,"-input"),barElement:"".concat(I,"-barElement"),iconBox:"".concat(I,"-iconBox"),searchBar:"".concat(I,"-searchBar"),icons:"".concat(I,"-icons")},O=(0,s.ZP)(r.Z)(e=>{let{theme:t}=e;return{paddingTop:t.spacing(.5),paddingBottom:t.spacing(.5),paddingLeft:t.spacing(3),paddingRight:t.spacing(3),borderBottom:"solid 1px",borderBottomColor:u.hM,position:"static",["& .".concat(P.input)]:{height:"2.8em",width:"30vw",backgroundColor:t.palette.secondary.main,borderRadius:u.n_},["& .".concat(P.barElement)]:{padding:0},["& .".concat(P.iconBox)]:{[t.breakpoints.down("sm")]:{display:"none"}},["& .".concat(P.searchBar)]:{[t.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(P.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,d.useRef)({}),t=(0,d.useRef)({}),[i,s]=(0,d.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(O,{children:(0,l.jsxs)(o.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,l.jsx)(b.Z,{row:!0,children:(0,l.jsx)(a.Z,{onClick:()=>s(!i),children:(0,l.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,l.jsx)(b.Z,{className:P.iconBox,row:!0,spacing:0,children:(0,l.jsx)(o.Z,{children:(0,l.jsx)(c.Z,{onClick:e=>{var i,l;let{currentTarget:n}=e;null===(i=t.current.setAnchor)||void 0===i||i.call(null,n),null===(l=t.current.setOpen)||void 0===l||l.call(null,!0)},sx:{color:u.of,padding:"0 .1rem"},children:(0,l.jsx)(A.Z,{icon:n.Z,ref:e})})})})]})}),(0,l.jsx)(components_AnvilDrawer,{open:i,setOpen:s}),(0,l.jsx)(M.Z,{onFetchSuccessAppend:t=>{var i;null===(i=e.current.indicate)||void 0===i||i.call(null,Object.keys(t).length>0)},ref:t})]})}},58839:function(e,t,i){"use strict";var l=i(67294);t.Z=function(){let{actionProceedText:e="",content:t="",titleText:i="",...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.useState)({actionProceedText:e,content:t,titleText:i,...n})}},52288:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return file_manager}});var l=i(85893),n=i(9008),s=i.n(n),r=i(21405),o=i(54490),a=i(67294),c=i(98436);let d=[["iso",["application/x-cd-image","ISO (optical disc)"]],["other",["text/plain","Other file type"]],["script",["text/plain","Script (program)"]]],u=new Map(d);var h=i(82175),m=i(25934),p=i(73393),g=i(67645),x=i(19467),v=i(53457),f=i(50361),j=i.n(f),Z=i(23279),w=i.n(Z),b=i(55238),F=i(63071),y=i(55675),k=i(37260),C=i(52886),_=i(84154),S=i(88468),Files_FileInputGroup=e=>{let{anvils:t,drHosts:i,fileUuid:n,formik:s,showSyncInputGroup:r,showTypeInput:o}=e,{handleBlur:c,handleChange:u}=s,h=(0,a.useMemo)(()=>w()(u,500),[u]),{nameChain:m,locationsChain:p,typeChain:g}=(0,a.useMemo)(()=>({nameChain:"".concat(n,".name"),locationsChain:"".concat(n,".locations"),typeChain:"".concat(n,".type")}),[n]),x=(0,a.useCallback)((e,t)=>{s.setValues(i=>{var l;let s=j()(i),r=null===(l=s[n].locations)||void 0===l?void 0:l[e];return r?(Object.keys(r).forEach(e=>{r[e].active=t}),s):i})},[s,n]),f=(0,a.useCallback)(e=>{var t;let i=null===(t=s.values[n].locations)||void 0===t?void 0:t[e];return i?{checked:Object.values(i).every(e=>{let{active:t}=e;return t}),onChange:(t,i)=>{x(e,i)}}:{}},[s.values,n,x]),Z=(0,a.useCallback)((e,t)=>{var i,l,r;let o="".concat(p,".").concat(e,".").concat(t),a="".concat(o,".active");return{id:a,name:a,checked:null===(r=s.values[n].locations)||void 0===r?void 0:null===(l=r[e])||void 0===l?void 0:null===(i=l[t])||void 0===i?void 0:i.active,onBlur:c,onChange:u}},[s.values,n,c,u,p]),A=(0,a.useCallback)(e=>{var t;let i=null===(t=s.values[n].locations)||void 0===t?void 0:t[e];return i&&Object.keys(i).length>1},[s.values,n]),M=(0,a.useMemo)(()=>(0,l.jsx)(S.Z,{input:(0,l.jsx)(y.Z,{id:m,label:"File name",name:m,onBlur:c,onChange:h,value:s.values[n].name})}),[h,s.values,n,c,m]),I=(0,a.useMemo)(()=>r&&(0,l.jsx)(k.TZ,{header:"Sync with node(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,l.jsx)(F.Z,{allowCheckAll:A("anvils"),allowCheckItem:!0,edit:!0,header:!0,listItems:t,getListCheckboxProps:()=>f("anvils"),getListItemCheckboxProps:e=>Z("anvils",e),renderListItem:(e,t)=>{let{description:i,name:n}=t;return(0,l.jsxs)(_.Ac,{children:[n,": ",i]})}})}),[t,A,f,Z,r]),P=(0,a.useMemo)(()=>r&&(0,l.jsx)(k.TZ,{header:"Sync with DR host(s)",panelProps:{mb:0,mt:0,width:"100%"},children:(0,l.jsx)(F.Z,{allowCheckAll:A("drHosts"),allowCheckItem:!0,edit:!0,header:!0,listItems:i,getListCheckboxProps:()=>f("drHosts"),getListItemCheckboxProps:e=>Z("drHosts",e),renderListItem:(e,t)=>{let{hostName:i}=t;return(0,l.jsx)(_.Ac,{children:i})}})}),[i,A,f,Z,r]),O=(0,a.useMemo)(()=>o&&(0,l.jsx)(C.Z,{id:g,label:"File type",name:g,onBlur:c,onChange:u,selectItems:d.map(e=>{let[t,[,i]]=e;return{displayValue:i,value:t}}),value:s.values[n].type}),[s.values,n,c,u,o,g]);return(0,l.jsxs)(v.Z,{sx:{"& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsxs)(b.Z,{sm:"row",xs:"column",children:[M,O]}),I,P]})},A=i(43799),M=i(41247),I=i(68917),P=i(21642),O=i(16310),E=i(78438);let R=O.Ry({active:O.O7().required()}),B=O.Vo(e=>O.Ry((0,E.Z)(e,R))),D=O.Vo(e=>O.Ry((0,E.Z)(e,R))),L=O.Ry({locations:O.Ry({anvils:B,drHosts:D}),name:O.Z_().required(),type:O.Z_().oneOf(["iso","other","script"]),uuid:O.Z_().uuid().required()}),U=O.Vo(e=>O.Ry((0,E.Z)(e,L)));var V=i(5616),H=i(27072),Files_UploadFileProgress=e=>{let{uploads:t}=e;return(0,l.jsx)(b.Z,{columnSpacing:".2em",children:Object.values(t).map(e=>{let{name:t,progress:i,uuid:n}=e;return(0,l.jsxs)(V.Z,{sx:{alignItems:{md:"center"},display:"flex",flexDirection:{xs:"column",md:"row"},"& > :first-child":{minWidth:100,overflow:"hidden",overflowWrap:"normal",textOverflow:"ellipsis",whiteSpace:"nowrap",width:{xs:"100%",md:200},wordBreak:"keep-all"},"& > :last-child":{flexGrow:1}},children:[(0,l.jsx)(_.Ac,{children:t}),(0,l.jsx)(H.ko,{progressPercentage:i})]},"upload-".concat(n))})})};let setUploadProgress=(e,t,i)=>e?(e[t].progress=i,{...e}):e;var Files_AddFileForm=e=>{let{anvils:t,drHosts:i}=e,n=(0,a.useRef)(null),[s,r]=(0,a.useState)(),o=(0,h.TA)({initialValues:{},onSubmit:e=>{let t=Object.values(e);r(t.reduce((e,t)=>{let{file:i,name:l,uuid:n}=t;return i&&(e[n]={name:l,progress:0,uuid:n}),e},{}));let i=t.reduce((e,t)=>{let{file:i,name:l,uuid:n}=t;if(!i)return e;let s=new FormData;s.append("file",new File([i],l,{...i}));let o=g.Z.post("/file",s,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{let{loaded:t,total:i}=e;r(e=>setUploadProgress(e,n,Math.round(t/i*99)))}}).then(()=>{r(e=>setUploadProgress(e,n,100))});return e.push(o),e},[]);Promise.all(i).catch(e=>{let t=(0,M.Z)(e);t.children=(0,l.jsxs)(l.Fragment,{children:["Failed to add file. ",t.children]})})},validationSchema:U}),c=(0,a.useMemo)(()=>(0,A.Z)(o.errors),[o.errors]),d=(0,a.useMemo)(()=>!o.dirty||!o.isValid||o.isValidating||o.isSubmitting,[o.dirty,o.isSubmitting,o.isValid,o.isValidating]),u=(0,a.useCallback)(e=>{let{target:{files:t}}=e;if(!t)return;let i=Array.from(t).reduce((e,t)=>{let i=(0,m.Z)();return e[i]={file:t,name:t.name,uuid:i},e},{});o.setValues(i)},[o]),v=(0,a.useMemo)(()=>o.values&&Object.values(o.values).map(e=>{let{uuid:n}=e;return(0,l.jsx)(Files_FileInputGroup,{anvils:t,drHosts:i,fileUuid:n,formik:o},n)}),[t,i,o]);return(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(I.Z,{children:"Uploaded files will be listed automatically, but it may take a while for larger files to finish uploading and appear on the list."}),s?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.Z,{children:"This dialog can be closed after all uploads complete. Closing before completion will stop the upload."}),(0,l.jsx)(Files_UploadFileProgress,{uploads:s})]}):(0,l.jsxs)(b.Z,{component:"form",onSubmit:e=>{e.preventDefault(),o.submitForm()},children:[(0,l.jsx)("input",{id:"files",multiple:!0,name:"files",onChange:u,ref:n,style:{display:"none"},type:"file"}),(0,l.jsx)(x.Z,{onClick:()=>{var e;null===(e=n.current)||void 0===e||e.click()},children:"Browse"}),v,(0,l.jsx)(P.Z,{count:1,messages:c}),(0,l.jsx)(p.Z,{actions:[{background:"blue",children:"Add",disabled:d,type:"submit"}]})]})]})},T=i(48882),N=i(56597),G=i(56211),W=i(57632);let toEditFileRequestBody=(e,t)=>{let{locations:i,name:l,type:n,uuid:s}=e;if(!i||!n)return;let r=[];return Object.entries(i.anvils).reduce((e,i)=>{let[l,{active:n}]=i,{anvils:{[l]:{locationUuids:s}}}=t,r=s.map(e=>({fileLocationUUID:e,isFileLocationActive:n}));return e.push(...r),e},r),Object.entries(i.drHosts).reduce((e,i)=>{let[l,{active:n}]=i,{hosts:{[l]:{locationUuids:s}}}=t,r=s.map(e=>({fileLocationUUID:e,isFileLocationActive:n}));return e.push(...r),e},r),{fileLocations:r,fileName:l,fileType:n,fileUUID:s}};var Files_EditFileForm=e=>{let{anvils:t,drHosts:i,onSuccess:n,previous:s}=e,r=(0,a.useRef)({}),o=(0,a.useCallback)(e=>{var t;return null===(t=r.current.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[]),c=(0,a.useMemo)(()=>{let{locations:e,name:t,type:l,uuid:n}=s;return{[n]:{locations:Object.values(e).reduce((e,t)=>{let{active:l,anvilUuid:n,hostUuid:s}=t,r="anvils",o=n;return s in i&&(r="drHosts",o=s),e[r][o]={active:l},e},{anvils:{},drHosts:{}}),name:t,type:l,uuid:n}}},[i,s]),d=(0,h.TA)({initialValues:c,onSubmit:(e,t)=>{let{setSubmitting:i}=t,r=toEditFileRequestBody(e[s.uuid],s);g.Z.put("/file/".concat(s.uuid),r).then(()=>{o({children:(0,l.jsx)(l.Fragment,{children:"File updated."})}),null==n||n.call(null)}).catch(e=>{let t=(0,M.Z)(e);t.children=(0,l.jsxs)(l.Fragment,{children:["Failed to modify file. ",t.children]}),o(t)}).finally(()=>{i(!1)})},validationSchema:U}),u=(0,a.useMemo)(()=>(0,A.Z)(d.errors),[d.errors]),m=(0,a.useMemo)(()=>!d.dirty||!d.isValid||d.isValidating||d.isSubmitting,[d.dirty,d.isSubmitting,d.isValid,d.isValidating]);return(0,l.jsxs)(b.Z,{component:"form",onSubmit:e=>{e.preventDefault(),d.submitForm()},children:[(0,l.jsx)(Files_FileInputGroup,{anvils:t,drHosts:i,fileUuid:s.uuid,formik:d,showSyncInputGroup:!0,showTypeInput:!0}),(0,l.jsx)(P.Z,{count:1,messages:u,ref:r}),(0,l.jsx)(p.Z,{loading:d.isSubmitting,actions:[{background:"blue",children:"Edit",disabled:m,type:"submit"}]})]})},q=i(64666),z=i(81796),J=i(6903),X=i(32576),$=i(58839),K=i(67978);let toFileOverviewList=e=>e.reduce((e,t)=>{let[i,l,n,s,r]=t;return e[i]={checksum:r,name:l,size:n,type:s,uuid:i},e},{}),toFileDetail=e=>{let{0:t}=e;if(!t)return;let[i,l,n,s,r]=t;return e.reduce((e,t)=>{let{5:i,6:l,7:n,8:s,9:r,10:o,11:a,12:c}=t;e.anvils[n]||(e.anvils[n]={description:r,locationUuids:[],name:s,uuid:n}),e.hosts[o]||(e.hosts[o]={locationUuids:[],name:a,type:c,uuid:o}),"dr"===c?e.hosts[o].locationUuids.push(i):e.anvils[n].locationUuids.push(i);let d=1===Number(l);return e.locations[i]={anvilUuid:n,active:d,hostUuid:o,uuid:i},e},{anvils:{},checksum:r,hosts:{},locations:{},name:l,size:n,type:s,uuid:i})};var Files=()=>{let e=(0,a.useRef)(null),t=(0,a.useRef)({}),i=(0,a.useRef)(null),n=(0,a.useRef)({}),[s,r]=(0,$.Z)(),[d,h]=(0,a.useState)(!1),[m,p]=(0,a.useState)(),[x,v]=(0,a.useState)(),{isLoading:f}=(0,q.Z)("".concat(c.Z,"/file"),{onSuccess:e=>{v(toFileOverviewList(e))}}),{fetch:j,loading:Z}=(0,J.Z)({onData:e=>v(toFileOverviewList(e)),url:"/file"}),w=(0,a.useMemo)(()=>f||Z,[Z,f]),{buildDeleteDialogProps:y,checks:C,getCheck:S,hasAllChecks:A,hasChecks:M,multipleItems:I,resetChecks:O,setAllChecks:E,setCheck:R}=(0,X.Z)({list:x}),B=(0,a.useCallback)(e=>{var t;return null===(t=n.current.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[]),{fetch:D,loading:L}=(0,J.Z)({onData:e=>p(toFileDetail(e)),onError:e=>{let{children:t,...i}=e;B({children:(0,l.jsxs)(l.Fragment,{children:["Failed to get file detail. ",t]}),...i})},url:"/file/"}),{data:U,loading:V}=(0,K.Z)("/anvil",{onError:e=>{B({children:(0,l.jsxs)(l.Fragment,{children:["Failed to get node list. ",e]}),type:"warning"})}}),H=(0,a.useMemo)(()=>U&&(0,T.Z)(U),[U]),{data:Q,loading:Y}=(0,K.Z)("/host?types=dr",{onError:e=>{B({children:(0,l.jsxs)(l.Fragment,{children:["Failed to get DR host list. ",e]}),type:"warning"})}}),ee=(0,a.useMemo)(()=>(0,l.jsx)(F.Z,{allowCheckAll:I,allowEdit:!0,allowItemButton:d,disableDelete:!M,edit:d,getListCheckboxProps:()=>({checked:A,onChange:(e,t)=>{E(t)}}),getListItemCheckboxProps:e=>({checked:S(e),onChange:(t,i)=>{R(e,i)}}),header:!0,listEmpty:"No file(s) found.",listItems:x,onAdd:()=>{var t;null===(t=e.current)||void 0===t||t.setOpen(!0)},onDelete:()=>{var e;r(y({onProceedAppend:()=>{let e=C.map(e=>g.Z.delete("/file/".concat(e)));Promise.all(e).then(()=>j()),O()},getConfirmDialogTitle:e=>"Delete the following ".concat(e," file(s)?"),renderEntry:e=>{let{key:t}=e;return(0,l.jsx)(_.Ac,{children:null==x?void 0:x[t].name})}})),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},onEdit:()=>{h(e=>!e)},onItemClick:(e,t)=>{var l;null===(l=i.current)||void 0===l||l.setOpen(!0),D(t)},renderListItem:(e,t)=>{var i;let{checksum:n,name:s,size:r,type:a}=t;return(0,l.jsxs)(b.Z,{columnSpacing:0,fullWidth:!0,md:"row",xs:"column",children:[(0,l.jsxs)(b.Z,{spacing:0,flexGrow:1,children:[(0,l.jsxs)(b.Z,{row:!0,spacing:".5em",children:[(0,l.jsx)(_.$_,{children:s}),(0,l.jsx)(W.Z,{flexItem:!0,orientation:"vertical"}),(0,l.jsx)(_.Ac,{children:null===(i=u.get(a))||void 0===i?void 0:i[1]})]}),(0,l.jsx)(_.Ac,{children:(0,o._d)(r,{toUnit:"ibyte"})})]}),(0,l.jsx)(_.$_,{children:n})]})}}),[y,C,d,x,S,D,j,A,M,I,O,E,R,r]),et=(0,a.useMemo)(()=>w?(0,l.jsx)(z.Z,{}):ee,[w,ee]),ei=(0,a.useMemo)(()=>(0,l.jsx)(P.Z,{count:1,ref:n,usePlaceholder:!1}),[]),el=(0,a.useMemo)(()=>f||V||Y,[V,Y,f]),en=(0,a.useMemo)(()=>f||V||Y||L,[V,Y,L,f]),es=(0,a.useMemo)(()=>H&&Q&&(0,l.jsx)(Files_AddFileForm,{anvils:H,drHosts:Q}),[H,Q]),er=(0,a.useMemo)(()=>H&&Q&&m&&(0,l.jsx)(Files_EditFileForm,{anvils:H,drHosts:Q,onSuccess:()=>{j()},previous:m}),[H,Q,m,j]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k.s_,{children:[(0,l.jsx)(k.V9,{children:(0,l.jsx)(_.z,{children:"Files"})}),ei,et]}),(0,l.jsx)(G.Js,{header:"Add file(s)",loading:el,ref:e,showClose:!0,wide:!0,children:es}),(0,l.jsx)(G.Js,{header:"Update file ".concat(null==m?void 0:m.name),loading:en,ref:i,showClose:!0,wide:!0,children:er}),(0,l.jsx)(N.Z,{closeOnProceed:!0,wide:!0,...s,ref:t})]})},file_manager=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s(),{children:(0,l.jsx)("title",{children:"File Manager"})}),(0,l.jsx)(r.Z,{}),(0,l.jsx)(Files,{})]})}},function(e){e.O(0,[494,804,416,50,213,461,264,486,775,675,633,380,774,888,179],function(){return e(e.s=91953)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-0e23f6af1e089a97.js b/striker-ui/out/_next/static/chunks/pages/index-0e23f6af1e089a97.js new file mode 100644 index 00000000..16230f5b --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/index-0e23f6af1e089a97.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(57368)}])},37039:function(e,t,n){"use strict";var r=n(85893),i=n(67294),s=n(48263),a=n(5616);t.Z=e=>{let{calculateItemBreakpoints:t=()=>({xs:1}),layout:n,wrapperBoxProps:l,...c}=e,o=(0,i.useMemo)(()=>{let e=Object.entries(n);return e.map((e,n)=>{let[r,a]=e;return a?(0,i.createElement)(s.ZP,{...t(n,r),key:r,item:!0,...a}):void 0})},[t,n]);return(0,r.jsx)(a.Z,{...l,children:(0,r.jsx)(s.ZP,{container:!0,...c,children:o})})}},69836:function(e,t,n){"use strict";var r=n(85893),i=n(43800),s=n(23795),a=n(6010),l=n(55238);t.Z=e=>{let{children:t,sx:n,...c}=e;return(0,r.jsx)(s.Z,{underline:"hover",variant:"subtitle1",...c,sx:{color:a.lD,textDecorationColor:a.s7,...n},children:(0,r.jsxs)(l.Z,{row:!0,children:[t,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})})}},67978:function(e,t,n){"use strict";var r=n(67294),i=n(8100),s=n(98436),a=n(96262);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:n=s.Z,fetcher:l=a.Z,mod:c,...o}=t,{data:d,error:u,mutate:h}=(0,i.ZP)("".concat(n).concat(e),l,o),x=(0,r.useMemo)(()=>c&&d&&c(d),[d,c]),v=!u&&!d;return{altData:x,data:d,error:u,mutate:h,loading:v}}},48882:function(e,t,n){"use strict";n.d(t,{Z:function(){return api_converters_toAnvilOverviewList}});var api_converters_toAnvilOverviewHostList=e=>e.reduce((e,t)=>{let{hostName:n,hostType:r,hostUUID:i}=t;return e[i]={name:n,type:r,uuid:i},e},{}),api_converters_toAnvilOverviewList=e=>e.reduce((e,t)=>{let{anvilDescription:n,anvilName:r,anvilUUID:i,hosts:s}=t;return e[i]={description:n,hosts:api_converters_toAnvilOverviewHostList(s),name:r,uuid:i},e},{})},57368:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return pages}});var r=n(85893),i=n(96540),s=n(48263),a=n(5616),l=n(67720),c=n(9008),o=n.n(c),d=n(67294),u=n(98436),h=n(6010),x=n(8673),v=n(54490),api_converters_toAnvilDetail=e=>{let{anvil_name:t,anvil_state:n,anvil_uuid:r,hosts:i}=e,s=i.reduce((e,t)=>{let{host_name:n,host_uuid:r,maintenance_mode:i,server_count:s,state:a,state_percent:l}=t;return e[r]={name:n,maintenance:i,serverCount:s,state:a,stateProgress:l,uuid:r},e},{});return{hosts:s,name:t,state:n,uuid:r}},api_converters_toAnvilMemoryCalcable=e=>{let{allocated:t,reserved:n,total:r}=e,i=BigInt(t),s=BigInt(n),a=BigInt(r);return{allocated:i,reserved:s,total:a}},api_converters_toAnvilSharedStorageOverview=e=>{let{storage_groups:t,total_free:n,total_size:r}=e,i=BigInt(n),s=BigInt(r);return t.reduce((e,t)=>{let{storage_group_free:n,storage_group_name:r,storage_group_total:i,storage_group_uuid:s}=t,a=BigInt(n),l=BigInt(i);return e.storageGroups[s]={free:a,name:r,size:l,uuid:s},e},{storageGroups:{},totalFree:i,totalSize:s})},m=n(57632),j=n(55238),_=n(81796),p=n(74376),Z=n(84154),g=n(67978);let f=BigInt(100),S={degraded:h.hM,not_ready:h.Wd,optimal:h.Ej},P={offline:h.Wd,online:h.Ej};var Anvils_AnvilSummary=e=>{let{anvilUuid:t}=e,{data:n,loading:i}=(0,g.Z)("/anvil/".concat(t)),a=(0,d.useMemo)(()=>n&&api_converters_toAnvilDetail(n),[n]),{data:l,loading:c}=(0,g.Z)("/anvil/".concat(t,"/cpu")),o=(0,d.useMemo)(()=>l&&Object.values(l.hosts),[l]),{data:u,loading:w}=(0,g.Z)("/anvil/".concat(t,"/memory")),A=(0,d.useMemo)(()=>u&&api_converters_toAnvilMemoryCalcable(u),[u]),{data:y,loading:b}=(0,g.Z)("/anvil/".concat(t,"/store")),C=(0,d.useMemo)(()=>y&&api_converters_toAnvilSharedStorageOverview(y),[y]),M=(0,d.useMemo)(()=>[i,c,w,b].some(e=>e),[i,c,w,b]),I=(0,d.useMemo)(()=>a&&(0,r.jsx)(Z.$_,{inheritColour:!0,color:S[a.state],children:a.state}),[a]),U=(0,d.useMemo)(()=>a&&(0,r.jsx)(s.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:{["& > .".concat(x.Z.item,":nth-child(-n + 4)")]:{marginBottom:"-.6em"}},children:Object.values(a.hosts).map(e=>{var t;let n;let{name:i,serverCount:a,state:l,stateProgress:c,uuid:o}=e,d=null!==(t=P[l])&&void 0!==t?t:h.s7,u=l;return["offline","online"].includes(l)?n=(0,r.jsx)(Z.$_,{variant:"caption",children:a}):u="".concat(c,"%"),[(0,r.jsx)(s.ZP,{item:!0,xs:7,children:(0,r.jsx)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(o,"-state-label")),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(Z.$_,{inheritColour:!0,color:d,children:u})},"".concat(o,"-state")),(0,r.jsx)(s.ZP,{item:!0,xs:!0,children:(0,r.jsx)(m.Z,{sx:{marginBottom:"-.4em"}})},"".concat(o,"-divider")),(0,r.jsx)(s.ZP,{item:!0,width:"2.2em",children:n&&(0,r.jsx)(Z.Ac,{variant:"caption",children:"Servers"})},"".concat(o,"-server-label")),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:n},"".concat(o,"-server-count"))]})}),[a]),B=(0,d.useMemo)(()=>l&&o&&(0,r.jsxs)(j.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(j.Z,{spacing:0,children:(0,r.jsxs)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:o[0].vendor})]})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(s.ZP,{alignItems:"center",columns:2,container:!0,sx:{width:"3.7em",["& > .".concat(x.Z.item,":nth-child(-n + 2)")]:{marginBottom:"-.6em"}},children:[(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.cores})}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.threads})})]})]}),[l,o]),E=(0,d.useMemo)(()=>A&&(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(j.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(Z.Q0,{children:(0,v._d)(A.total-(A.reserved+A.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,v._d)(A.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(p.Z,{thin:!0,value:{reserved:{value:Number(A.reserved*f/A.total)},allocated:{value:Number((A.reserved+A.allocated)*f/A.total),colour:{0:h.Ej,70:h.Wd,90:h.hM}}}})]}),[A]),O=(0,d.useMemo)(()=>C&&(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(j.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(Z.Q0,{children:(0,v._d)(C.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,v._d)(C.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(p.Z,{thin:!0,value:{allocated:{value:Number((C.totalSize-C.totalFree)*f/C.totalSize),colour:{0:h.Ej,70:h.Wd,90:h.hM}}}})]}),[C]);return M?(0,r.jsx)(_.Z,{mt:0}):(0,r.jsxs)(s.ZP,{alignItems:"center",columns:4,container:!0,sx:{["& > .".concat(x.Z.item,":nth-child(odd)")]:{alignItems:"center",display:"flex",height:"2.2em"}},children:[(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Node"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:I}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Subnodes"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:U}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:B}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:E}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Storage"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:O})]})},w=n(48882),A=n(37039),y=n(37260),Anvils_AnvilSummaryList=()=>{let{data:e,loading:t}=(0,g.Z)("/anvil",{refreshInterval:5e3}),n=(0,d.useMemo)(()=>e&&(0,w.Z)(e),[e]),i=(0,d.useMemo)(()=>n&&(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(n).reduce((e,t)=>{let{description:n,name:i,uuid:s}=t;return e["anvil-".concat(s)]={children:(0,r.jsxs)(y.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(y.CH,{children:(0,r.jsxs)(Z.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",n]})}),(0,r.jsx)(y.bc,{children:(0,r.jsx)(Anvils_AnvilSummary,{anvilUuid:s})})]})},e},{}),spacing:"1em",sx:{alignContent:"stretch",["& > .".concat(x.Z.item)]:{minWidth:"20em"}}}),[n]);return(0,r.jsxs)(y.s_,{children:[(0,r.jsx)(y.V9,{children:(0,r.jsx)(Z.z,{children:"Nodes"})}),t?(0,r.jsx)(_.Z,{}):i]})},b=n(81302),C=n(96262),M=n(21405),I=n(83221),U=n(69836),B=n(18221),E=n(64666),O=n(88750),L=n(87476);let createServerPreviewContainer=e=>(0,r.jsx)(s.ZP,{alignContent:"stretch",columns:{xs:1,sm:2,md:3,xl:4},container:!0,spacing:"1em",children:e.map(e=>{let{anvilName:t,anvilUUID:n,isScreenshotStale:i,loading:a,screenshot:l,serverName:c,serverState:o,serverUUID:d,timestamp:u}=e;return(0,r.jsx)(s.ZP,{item:!0,sx:{minWidth:"20em","& > div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(b.M,{externalPreview:l,externalTimestamp:u,headerEndAdornment:[(0,r.jsx)(U.Z,{href:"/server?uuid=".concat(d,"&server_name=").concat(c,"&server_state=").concat(o),children:c},"server_list_to_server_".concat(d)),(0,r.jsx)(U.Z,{href:"/anvil?anvil_uuid=".concat(n),sx:{opacity:.7},children:t},"server_list_server_".concat(d,"_to_anvil_").concat(n))],hrefPreview:"/server?uuid=".concat(d,"&server_name=").concat(c,"&server_state=").concat(o,"&vnc=1"),isExternalLoading:a,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,serverState:o,serverUUID:d})},"".concat(d,"-preview"))})}),filterServers=(e,t)=>""===t?{exclude:e,include:[]}:e.reduce((e,n)=>{let{serverName:r}=n;return r.includes(t)?e.include.push(n):e.exclude.push(n),e},{exclude:[],include:[]});var pages=()=>{let[e,t]=(0,d.useState)([]),[n,s]=(0,d.useState)([]),[c,x]=(0,d.useState)([]),[v,m]=(0,d.useState)(""),[j,p]=(0,d.useState)(!1),updateServerList=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],r=n.map(n=>{var i;let{serverUUID:s}=n,a=(null===(i=e.find(e=>{let{serverUUID:t}=e;return t===s}))||void 0===i?void 0:i.screenshot)||"",l={...n,loading:!0,screenshot:a,timestamp:0};return(0,C.Z)("".concat(u.Z,"/server/").concat(s,"?ss=1")).then(e=>{let{screenshot:n,timestamp:i}=e;if(0===n.length)return;l.isScreenshotStale=!(0,L.Z$)(i,300),l.loading=!1,l.screenshot=n,l.timestamp=i;let s=[...r];t(s)}).catch(()=>{l.isScreenshotStale=!0}).finally(()=>{l.loading=!1}),l});t(r),updateServerList(r,v)},refreshInterval:6e4});return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(M.Z,{}),(0,r.jsx)(y.s_,{children:g?(0,r.jsx)(_.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(Z.z,{children:"Servers"}),(0,r.jsx)(I.Z,{onClick:()=>p(!0),children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(B.Z,{placeholder:"Search by server name",onChange:t=>{let{target:{value:n}}=t;m(n),updateServerList(e,n)},sx:{minWidth:"16em"},value:v})]}),createServerPreviewContainer(c),c.length>0&&(0,r.jsx)(l.Z,{sx:{backgroundColor:h.d}}),createServerPreviewContainer(n)]})}),(0,r.jsx)(Anvils_AnvilSummaryList,{}),(0,r.jsx)(O.Z,{dialogProps:{open:j},onClose:()=>{p(!1)}})]})}}},function(e){e.O(0,[494,804,416,50,263,213,310,6,775,675,633,733,750,302,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/index-6febd0ab3b8c828c.js b/striker-ui/out/_next/static/chunks/pages/index-6febd0ab3b8c828c.js deleted file mode 100644 index e3b54e38..00000000 --- a/striker-ui/out/_next/static/chunks/pages/index-6febd0ab3b8c828c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(57368)}])},37039:function(e,t,n){"use strict";var r=n(85893),i=n(67294),s=n(48263),a=n(5616);t.Z=e=>{let{calculateItemBreakpoints:t=()=>({xs:1}),layout:n,wrapperBoxProps:l,...c}=e,o=(0,i.useMemo)(()=>{let e=Object.entries(n);return e.map((e,n)=>{let[r,a]=e;return a?(0,i.createElement)(s.ZP,{...t(n,r),key:r,item:!0,...a}):void 0})},[t,n]);return(0,r.jsx)(a.Z,{...l,children:(0,r.jsx)(s.ZP,{container:!0,...c,children:o})})}},69836:function(e,t,n){"use strict";var r=n(85893),i=n(43800),s=n(23795),a=n(6010),l=n(55238);t.Z=e=>{let{children:t,sx:n,...c}=e;return(0,r.jsx)(s.Z,{underline:"hover",variant:"subtitle1",...c,sx:{color:a.lD,textDecorationColor:a.s7,...n},children:(0,r.jsxs)(l.Z,{row:!0,children:[t,(0,r.jsx)(i.Z,{sx:{marginLeft:".3em"}})]})})}},67978:function(e,t,n){"use strict";var r=n(67294),i=n(8100),s=n(98436),a=n(96262);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:n=s.Z,fetcher:l=a.Z,mod:c,...o}=t,{data:d,error:u}=(0,i.ZP)("".concat(n).concat(e),l,o),h=(0,r.useMemo)(()=>c&&d&&c(d),[d,c]),x=!u&&!d;return{altData:h,data:d,error:u,loading:x}}},48882:function(e,t,n){"use strict";n.d(t,{Z:function(){return api_converters_toAnvilOverviewList}});var api_converters_toAnvilOverviewHostList=e=>e.reduce((e,t)=>{let{hostName:n,hostType:r,hostUUID:i}=t;return e[i]={name:n,type:r,uuid:i},e},{}),api_converters_toAnvilOverviewList=e=>e.reduce((e,t)=>{let{anvilDescription:n,anvilName:r,anvilUUID:i,hosts:s}=t;return e[i]={description:n,hosts:api_converters_toAnvilOverviewHostList(s),name:r,uuid:i},e},{})},57368:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return pages}});var r=n(85893),i=n(96540),s=n(48263),a=n(5616),l=n(67720),c=n(9008),o=n.n(c),d=n(67294),u=n(98436),h=n(6010),x=n(8673),v=n(54490),api_converters_toAnvilDetail=e=>{let{anvil_name:t,anvil_state:n,anvil_uuid:r,hosts:i}=e,s=i.reduce((e,t)=>{let{host_name:n,host_uuid:r,maintenance_mode:i,server_count:s,state:a,state_percent:l}=t;return e[r]={name:n,maintenance:i,serverCount:s,state:a,stateProgress:l,uuid:r},e},{});return{hosts:s,name:t,state:n,uuid:r}},api_converters_toAnvilMemoryCalcable=e=>{let{allocated:t,reserved:n,total:r}=e,i=BigInt(t),s=BigInt(n),a=BigInt(r);return{allocated:i,reserved:s,total:a}},api_converters_toAnvilSharedStorageOverview=e=>{let{storage_groups:t,total_free:n,total_size:r}=e,i=BigInt(n),s=BigInt(r);return t.reduce((e,t)=>{let{storage_group_free:n,storage_group_name:r,storage_group_total:i,storage_group_uuid:s}=t,a=BigInt(n),l=BigInt(i);return e.storageGroups[s]={free:a,name:r,size:l,uuid:s},e},{storageGroups:{},totalFree:i,totalSize:s})},m=n(57632),j=n(55238),_=n(81796),p=n(74376),Z=n(84154),g=n(67978);let f=BigInt(100),S={degraded:h.hM,not_ready:h.Wd,optimal:h.Ej},P={offline:h.Wd,online:h.Ej};var Anvils_AnvilSummary=e=>{let{anvilUuid:t}=e,{data:n,loading:i}=(0,g.Z)("/anvil/".concat(t)),a=(0,d.useMemo)(()=>n&&api_converters_toAnvilDetail(n),[n]),{data:l,loading:c}=(0,g.Z)("/anvil/".concat(t,"/cpu")),o=(0,d.useMemo)(()=>l&&Object.values(l.hosts),[l]),{data:u,loading:w}=(0,g.Z)("/anvil/".concat(t,"/memory")),A=(0,d.useMemo)(()=>u&&api_converters_toAnvilMemoryCalcable(u),[u]),{data:y,loading:b}=(0,g.Z)("/anvil/".concat(t,"/store")),C=(0,d.useMemo)(()=>y&&api_converters_toAnvilSharedStorageOverview(y),[y]),M=(0,d.useMemo)(()=>[i,c,w,b].some(e=>e),[i,c,w,b]),I=(0,d.useMemo)(()=>a&&(0,r.jsx)(Z.$_,{inheritColour:!0,color:S[a.state],children:a.state}),[a]),U=(0,d.useMemo)(()=>a&&(0,r.jsx)(s.ZP,{alignItems:"center",columns:20,columnSpacing:"0.5em",container:!0,sx:{["& > .".concat(x.Z.item,":nth-child(-n + 4)")]:{marginBottom:"-.6em"}},children:Object.values(a.hosts).map(e=>{var t;let n;let{name:i,serverCount:a,state:l,stateProgress:c,uuid:o}=e,d=null!==(t=P[l])&&void 0!==t?t:h.s7,u=l;return["offline","online"].includes(l)?n=(0,r.jsx)(Z.$_,{variant:"caption",children:a}):u="".concat(c,"%"),[(0,r.jsx)(s.ZP,{item:!0,xs:7,children:(0,r.jsx)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:i})},"".concat(o,"-state-label")),(0,r.jsx)(s.ZP,{item:!0,xs:5,children:(0,r.jsx)(Z.$_,{inheritColour:!0,color:d,children:u})},"".concat(o,"-state")),(0,r.jsx)(s.ZP,{item:!0,xs:!0,children:(0,r.jsx)(m.Z,{sx:{marginBottom:"-.4em"}})},"".concat(o,"-divider")),(0,r.jsx)(s.ZP,{item:!0,width:"2.2em",children:n&&(0,r.jsx)(Z.Ac,{variant:"caption",children:"Servers"})},"".concat(o,"-server-label")),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",width:"2em",children:n},"".concat(o,"-server-count"))]})}),[a]),B=(0,d.useMemo)(()=>l&&o&&(0,r.jsxs)(j.Z,{row:!0,spacing:".5em",children:[(0,r.jsx)(j.Z,{spacing:0,children:(0,r.jsxs)(Z.Ac,{variant:"caption",whiteSpace:"nowrap",children:["Vendor"," ",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:o[0].vendor})]})}),(0,r.jsx)(m.Z,{sx:{flexGrow:1}}),(0,r.jsxs)(s.ZP,{alignItems:"center",columns:2,container:!0,sx:{width:"3.7em",["& > .".concat(x.Z.item,":nth-child(-n + 2)")]:{marginBottom:"-.6em"}},children:[(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Cores"})}),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.cores})}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{variant:"caption",children:"Threads"})}),(0,r.jsx)(s.ZP,{display:"flex",item:!0,justifyContent:"flex-end",xs:1,children:(0,r.jsx)(Z.$_,{variant:"caption",children:l.threads})})]})]}),[l,o]),E=(0,d.useMemo)(()=>A&&(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(j.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Free",(0,r.jsx)(Z.Q0,{children:(0,v._d)(A.total-(A.reserved+A.allocated),{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,v._d)(A.total,{toUnit:"ibyte"})})]})}),(0,r.jsx)(p.Z,{thin:!0,value:{reserved:{value:Number(A.reserved*f/A.total)},allocated:{value:Number((A.reserved+A.allocated)*f/A.total),colour:{0:h.Ej,70:h.Wd,90:h.hM}}}})]}),[A]),O=(0,d.useMemo)(()=>C&&(0,r.jsxs)(j.Z,{spacing:0,children:[(0,r.jsx)(j.Z,{row:!0,justifyContent:"flex-end",children:(0,r.jsxs)(Z.Ac,{mb:"-.3em",variant:"caption",children:["Total free",(0,r.jsx)(Z.Q0,{children:(0,v._d)(C.totalFree,{toUnit:"ibyte"})}),"/",(0,r.jsx)(Z.Q0,{sx:{paddingRight:0},children:(0,v._d)(C.totalSize,{toUnit:"ibyte"})})]})}),(0,r.jsx)(p.Z,{thin:!0,value:{allocated:{value:Number((C.totalSize-C.totalFree)*f/C.totalSize),colour:{0:h.Ej,70:h.Wd,90:h.hM}}}})]}),[C]);return M?(0,r.jsx)(_.Z,{mt:0}):(0,r.jsxs)(s.ZP,{alignItems:"center",columns:4,container:!0,sx:{["& > .".concat(x.Z.item,":nth-child(odd)")]:{alignItems:"center",display:"flex",height:"2.2em"}},children:[(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Node"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:I}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Subnodes"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:U}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"CPU"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:B}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Memory"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:E}),(0,r.jsx)(s.ZP,{item:!0,xs:1,children:(0,r.jsx)(Z.Ac,{children:"Storage"})}),(0,r.jsx)(s.ZP,{item:!0,xs:3,children:O})]})},w=n(48882),A=n(37039),y=n(37260),Anvils_AnvilSummaryList=()=>{let{data:e,loading:t}=(0,g.Z)("/anvil",{refreshInterval:5e3}),n=(0,d.useMemo)(()=>e&&(0,w.Z)(e),[e]),i=(0,d.useMemo)(()=>n&&(0,r.jsx)(A.Z,{columns:{xs:1,sm:2,md:3,xl:4},layout:Object.values(n).reduce((e,t)=>{let{description:n,name:i,uuid:s}=t;return e["anvil-".concat(s)]={children:(0,r.jsxs)(y.Lg,{height:"100%",mv:0,children:[(0,r.jsx)(y.CH,{children:(0,r.jsxs)(Z.Ac,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:[i,": ",n]})}),(0,r.jsx)(y.bc,{children:(0,r.jsx)(Anvils_AnvilSummary,{anvilUuid:s})})]})},e},{}),spacing:"1em",sx:{alignContent:"stretch",["& > .".concat(x.Z.item)]:{minWidth:"20em"}}}),[n]);return(0,r.jsxs)(y.s_,{children:[(0,r.jsx)(y.V9,{children:(0,r.jsx)(Z.z,{children:"Nodes"})}),t?(0,r.jsx)(_.Z,{}):i]})},b=n(81302),C=n(96262),M=n(21405),I=n(83221),U=n(69836),B=n(18221),E=n(64666),O=n(88750),L=n(87476);let createServerPreviewContainer=e=>(0,r.jsx)(s.ZP,{alignContent:"stretch",columns:{xs:1,sm:2,md:3,xl:4},container:!0,spacing:"1em",children:e.map(e=>{let{anvilName:t,anvilUUID:n,isScreenshotStale:i,loading:a,screenshot:l,serverName:c,serverState:o,serverUUID:d,timestamp:u}=e;return(0,r.jsx)(s.ZP,{item:!0,sx:{minWidth:"20em","& > div":{height:"100%",marginBottom:0,marginTop:0}},xs:1,children:(0,r.jsx)(b.M,{externalPreview:l,externalTimestamp:u,headerEndAdornment:[(0,r.jsx)(U.Z,{href:"/server?uuid=".concat(d,"&server_name=").concat(c,"&server_state=").concat(o),children:c},"server_list_to_server_".concat(d)),(0,r.jsx)(U.Z,{href:"/anvil?anvil_uuid=".concat(n),sx:{opacity:.7},children:t},"server_list_server_".concat(d,"_to_anvil_").concat(n))],hrefPreview:"/server?uuid=".concat(d,"&server_name=").concat(c,"&server_state=").concat(o,"&vnc=1"),isExternalLoading:a,isExternalPreviewStale:i,isFetchPreview:!1,isShowControls:!1,isUseInnerPanel:!0,serverState:o,serverUUID:d})},"".concat(d,"-preview"))})}),filterServers=(e,t)=>""===t?{exclude:e,include:[]}:e.reduce((e,n)=>{let{serverName:r}=n;return r.includes(t)?e.include.push(n):e.exclude.push(n),e},{exclude:[],include:[]});var pages=()=>{let[e,t]=(0,d.useState)([]),[n,s]=(0,d.useState)([]),[c,x]=(0,d.useState)([]),[v,m]=(0,d.useState)(""),[j,p]=(0,d.useState)(!1),updateServerList=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],r=n.map(n=>{var i;let{serverUUID:s}=n,a=(null===(i=e.find(e=>{let{serverUUID:t}=e;return t===s}))||void 0===i?void 0:i.screenshot)||"",l={...n,loading:!0,screenshot:a,timestamp:0};return(0,C.Z)("".concat(u.Z,"/server/").concat(s,"?ss=1")).then(e=>{let{screenshot:n,timestamp:i}=e;if(0===n.length)return;l.isScreenshotStale=!(0,L.Z$)(i,300),l.loading=!1,l.screenshot=n,l.timestamp=i;let s=[...r];t(s)}).catch(()=>{l.isScreenshotStale=!0}).finally(()=>{l.loading=!1}),l});t(r),updateServerList(r,v)},refreshInterval:6e4});return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsx)(M.Z,{}),(0,r.jsx)(y.s_,{children:g?(0,r.jsx)(_.Z,{}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.V9,{sx:{marginBottom:"2em"},children:[(0,r.jsx)(Z.z,{children:"Servers"}),(0,r.jsx)(I.Z,{onClick:()=>p(!0),children:(0,r.jsx)(i.Z,{})}),(0,r.jsx)(B.Z,{placeholder:"Search by server name",onChange:t=>{let{target:{value:n}}=t;m(n),updateServerList(e,n)},sx:{minWidth:"16em"},value:v})]}),createServerPreviewContainer(c),c.length>0&&(0,r.jsx)(l.Z,{sx:{backgroundColor:h.d}}),createServerPreviewContainer(n)]})}),(0,r.jsx)(Anvils_AnvilSummaryList,{}),(0,r.jsx)(O.Z,{dialogProps:{open:j},onClose:()=>{p(!1)}})]})}}},function(e){e.O(0,[494,804,416,50,263,213,310,6,775,675,633,733,750,302,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/login-1d03dfaf2cb572f8.js b/striker-ui/out/_next/static/chunks/pages/login-1d03dfaf2cb572f8.js new file mode 100644 index 00000000..9b2b27b0 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/login-1d03dfaf2cb572f8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{62705:function(e,n,t){var r=t(55639).Symbol;e.exports=r},44239:function(e,n,t){var r=t(62705),i=t(89607),o=t(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?i(e):o(e)}},27561:function(e,n,t){var r=t(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},31957:function(e,n,t){var r="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=r},89607:function(e,n,t){var r=t(62705),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var n=o.call(e,a),t=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=l.call(e);return r&&(n?e[a]=t:delete e[a]),i}},2333:function(e){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},55639:function(e,n,t){var r=t(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),i=t(7771),o=t(14841),l=Math.max,a=Math.min;e.exports=function(e,n,t){var c,s,u,d,p,f,m=0,g=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(n){var t=c,r=s;return c=s=void 0,m=n,d=e.apply(r,t)}function shouldInvoke(e){var t=e-f,r=e-m;return void 0===f||t>=n||t<0||h&&r>=u}function timerExpired(){var e,t,r,o=i();if(shouldInvoke(o))return trailingEdge(o);p=setTimeout(timerExpired,(e=o-f,t=o-m,r=n-e,h?a(r,u-t):r))}function trailingEdge(e){return(p=void 0,v&&c)?invokeFunc(e):(c=s=void 0,d)}function debounced(){var e,t=i(),r=shouldInvoke(t);if(c=arguments,s=this,f=t,r){if(void 0===p)return m=e=f,p=setTimeout(timerExpired,n),g?invokeFunc(e):d;if(h)return clearTimeout(p),p=setTimeout(timerExpired,n),invokeFunc(f)}return void 0===p&&(p=setTimeout(timerExpired,n)),d}return n=o(n)||0,r(t)&&(g=!!t.leading,u=(h="maxWait"in t)?l(o(t.maxWait)||0,n):u,v="trailing"in t?!!t.trailing:v),debounced.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=s=p=void 0},debounced.flush=function(){return void 0===p?d:trailingEdge(i())},debounced}},13218:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,n,t){var r=t(44239),i=t(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),i=t(13218),o=t(33448),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||s.test(e)?u(e.slice(2),t?2:8):a.test(e)?l:+e}},73700:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(41471)}])},37039:function(e,n,t){"use strict";var r=t(85893),i=t(67294),o=t(48263),l=t(5616);n.Z=e=>{let{calculateItemBreakpoints:n=()=>({xs:1}),layout:t,wrapperBoxProps:a,...c}=e,s=(0,i.useMemo)(()=>{let e=Object.entries(t);return e.map((e,t)=>{let[r,l]=e;return l?(0,i.createElement)(o.ZP,{...n(t,r),key:r,item:!0,...l}):void 0})},[n,t]);return(0,r.jsx)(l.Z,{...a,children:(0,r.jsx)(o.ZP,{container:!0,...c,children:s})})}},21405:function(e,n,t){"use strict";t.d(n,{Z:function(){return components_Header}});var r=t(85893),i=t(41098),o=t(90948),l=t(42293),a=t(5616),c=t(82589),s=t(54799),u=t(67294),d=t(6010),p=t(25709),f=t(13540),m=t(77533),g=t(78462),h=t(97212),v=t(98619);let x=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"};var j=t(67645),Z=t(57632),w=t(55238),y=t(41247),k=t(84154),C=t(34819);let P="AnvilDrawer",S={actionIcon:"".concat(P,"-actionIcon"),list:"".concat(P,"-list")},_=(0,o.ZP)(m.ZP)(()=>({["& .".concat(S.list)]:{width:"200px"},["& .".concat(S.actionIcon)]:{fontSize:"2.3em",color:d.of}}));var components_AnvilDrawer=e=>{let{open:n,setOpen:t}=e,{getSessionUser:i}=(0,C.Z)(),o=i();return(0,r.jsx)(_,{BackdropProps:{invisible:!0},anchor:"left",open:n,onClose:()=>t(!n),children:(0,r.jsx)("div",{role:"presentation",children:(0,r.jsxs)(g.Z,{className:S.list,children:[(0,r.jsx)(h.ZP,{children:(0,r.jsx)(k.Ac,{children:o?(0,r.jsxs)(r.Fragment,{children:["Welcome, ",o.name]}):"Unregistered"})}),(0,r.jsx)(Z.Z,{}),(0,r.jsx)(v.Z,{component:"a",href:"/index.html",children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(p.Z,{className:S.actionIcon}),(0,r.jsx)(k.Ac,{children:"Dashboard"})]})}),x.map(e=>(0,r.jsx)(v.Z,{component:"a",href:e.uri,children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)("img",{alt:e.text,src:e.image,...b}),(0,r.jsx)(k.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,r.jsx)(v.Z,{onClick:()=>{j.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,y.Z)(e)})},children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(f.Z,{className:S.actionIcon}),(0,r.jsx)(k.Ac,{children:"Logout"})]})})]})})})},O=t(83909),E=t(66354);let B="Header",A={input:"".concat(B,"-input"),barElement:"".concat(B,"-barElement"),iconBox:"".concat(B,"-iconBox"),searchBar:"".concat(B,"-searchBar"),icons:"".concat(B,"-icons")},F=(0,o.ZP)(l.Z)(e=>{let{theme:n}=e;return{paddingTop:n.spacing(.5),paddingBottom:n.spacing(.5),paddingLeft:n.spacing(3),paddingRight:n.spacing(3),borderBottom:"solid 1px",borderBottomColor:d.hM,position:"static",["& .".concat(A.input)]:{height:"2.8em",width:"30vw",backgroundColor:n.palette.secondary.main,borderRadius:d.n_},["& .".concat(A.barElement)]:{padding:0},["& .".concat(A.iconBox)]:{[n.breakpoints.down("sm")]:{display:"none"}},["& .".concat(A.searchBar)]:{[n.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(A.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,u.useRef)({}),n=(0,u.useRef)({}),[t,o]=(0,u.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{children:(0,r.jsxs)(a.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,r.jsx)(w.Z,{row:!0,children:(0,r.jsx)(c.Z,{onClick:()=>o(!t),children:(0,r.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,r.jsx)(w.Z,{className:A.iconBox,row:!0,spacing:0,children:(0,r.jsx)(a.Z,{children:(0,r.jsx)(s.Z,{onClick:e=>{var t,r;let{currentTarget:i}=e;null===(t=n.current.setAnchor)||void 0===t||t.call(null,i),null===(r=n.current.setOpen)||void 0===r||r.call(null,!0)},sx:{color:d.of,padding:"0 .1rem"},children:(0,r.jsx)(O.Z,{icon:i.Z,ref:e})})})})]})}),(0,r.jsx)(components_AnvilDrawer,{open:t,setOpen:o}),(0,r.jsx)(E.Z,{onFetchSuccessAppend:n=>{var t;null===(t=e.current.indicate)||void 0===t||t.call(null,Object.keys(n).length>0)},ref:n})]})}},96867:function(e,n,t){"use strict";var r=t(67294),i=t(67645),o=t(84070),l=t(41247);n.Z=(e,n)=>{var t;let[a,c]=(0,r.useState)(!1),[s,u]=(0,r.useState)({}),d=(0,r.useCallback)(e=>{var t,r;return null==n?void 0:null===(r=n.current)||void 0===r?void 0:null===(t=r.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[n]),p=(0,r.useCallback)((e,t)=>{var r,i;null==n||null===(i=n.current)||void 0===i||null===(r=i.setMessage)||void 0===r||r.call(null,String(e),t)},[n]),f=(0,r.useCallback)((e,t)=>{var r,i;null==n||null===(i=n.current)||void 0===i||null===(r=i.setMessageRe)||void 0===r||r.call(null,e,t)},[n]),m=(0,r.useCallback)((e,n)=>{u((0,o.ZP)(e,n))},[]),g=(0,r.useCallback)((e,n)=>{u((0,o.Um)(e,n))},[]),h=(0,r.useCallback)(e=>{p(e),m(e)},[p,m]),v=(0,r.useCallback)(e=>{f(e),g(e)},[f,g]),x=(0,r.useCallback)(e=>n=>{m(e,n)},[m]),b=(0,r.useCallback)(e=>n=>{let{isValid:t}=n;m(e,t)},[m]),j=(0,r.useCallback)(e=>()=>{h(e)},[h]),Z=(0,r.useCallback)(e=>{let{body:r,getErrorMsg:o,msgKey:a="api",method:s,onError:u,onSuccess:d,setMsg:p=null==n?void 0:null===(t=n.current)||void 0===t?void 0:t.setMessage,successMsg:f,url:m}=e;c(!0),i.Z.request({data:r,method:s,url:m}).then(()=>{null==p||p.call(null,a,{children:f,type:"info"}),null==d||d.call(null)}).catch(e=>{let n=(0,l.Z)(e);n.children=o(n.children),null==p||p.call(null,a,n),null==u||u.call(null)}).finally(()=>{c(!1)})},[n,c]),w=(0,r.useMemo)(()=>Object.values(s).some(e=>!e),[s]);return{buildFinishInputTestBatchFunction:x,buildInputFirstRenderFunction:b,buildInputUnmountFunction:j,formValidity:s,isFormInvalid:w,isFormSubmitting:a,setApiMessage:d,setFormValidity:u,setMessage:p,setMessageRe:f,setValidity:m,setValidityRe:g,submitForm:Z,unsetKey:h,unsetKeyRe:v}}},84070:function(e,n,t){"use strict";t.d(n,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,n=Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let i={};return Object.keys(r).forEach(o=>{e.test(o)?t(r,i,o,n):i[o]=r[o]}),i}};n.ZP=function(e,n){let{guard:t=()=>!0,set:r=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=>{let{[e]:o,...l}=i,a={...l};return t(i,e,n)&&r(i,a,e,n),a}}},41471:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return login}});var r=t(85893),i=t(9008),o=t.n(i),l=t(11163),a=t(67645),c=t(5616),s=t(67294),u=t(94121),d=t(19467),p=t(55238),f=t(37039),m=t(92917),g=t(21642),h=t(55675),v=t(81796),x=t(50233),b=t(96867);let j={width:"100%"},Z="gate-input",w="".concat(Z,"-credential-id"),y="".concat(Z,"-credential-passphrase"),k="access",C=(0,s.forwardRef)((e,n)=>{let{formContainer:t=!0,gridProps:{columns:i={xs:1,sm:2},layout:o,spacing:l="1em",...a}={},identifierId:Z=w,identifierInputTestBatchBuilder:C=x.Gn,identifierLabel:P,identifierOutlinedInputWithLabelProps:{formControlProps:S={},inputProps:_,...O}={},onIdentifierBlurAppend:E,onSubmit:B,onSubmitAppend:A,passphraseId:F=y,passphraseLabel:I,passphraseOutlinedInputWithLabelProps:{formControlProps:R={},inputProps:T,...M}={},submitLabel:L,allowSubmit:N=t}=e,{sx:W,...D}=S,{sx:G,...U}=R,H=(0,s.useRef)({}),q=(0,s.useRef)({}),$=(0,s.useRef)({}),[V,X]=(0,s.useState)(!1),z=(0,b.Z)([Z,F],$),{buildFinishInputTestBatchFunction:J,buildInputFirstRenderFunction:K,buildInputUnmountFunction:Q,isFormInvalid:Y,setMessage:ee}=z,en=(0,s.useMemo)(()=>null!=B?B:function(){for(var e=arguments.length,n=Array(e),t=0;t{ee(k,e)},X,...n)},[Z,B,A,F,X,ee]),et=(0,s.useMemo)(()=>V?(0,r.jsx)(v.Z,{mt:0}):(0,r.jsx)(p.Z,{row:!0,sx:{justifyContent:"flex-end"},children:(0,r.jsx)(d.Z,{disabled:Y,type:"submit",children:L})}),[Y,V,L]),er=(0,s.useMemo)(()=>{let e={};return N&&(e["gate-cell-message-group"]={children:(0,r.jsx)(g.Z,{count:1,defaultMessageType:"warning",ref:$}),sm:2},e["gate-cell-submit"]={children:et,sm:2}),e},[N,et]),ei=(0,s.useMemo)(()=>{let e={};return t&&(e.component="form",e.onSubmit=en),e},[t,en]);return(0,s.useImperativeHandle)(n,()=>({get:()=>{var e,n,t,r;return{identifier:null!==(t=null===(e=H.current.getValue)||void 0===e?void 0:e.call(null))&&void 0!==t?t:"",passphrase:null!==(r=null===(n=q.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==r?r:""}},messageGroup:{...$.current},setIsSubmitting:e=>{X(e)}})),(0,r.jsx)(c.Z,{...ei,children:(0,r.jsx)(f.Z,{columns:i,layout:{"gate-input-cell-credential-id":{children:(0,r.jsx)(m.Z,{input:(0,r.jsx)(h.Z,{formControlProps:{...D,sx:{...j,...W}},id:Z,inputProps:_,label:P,...O}),inputTestBatch:C(P,()=>{ee(Z)},{onFinishBatch:J(Z)},e=>{ee(Z,{children:e})}),onBlurAppend:function(){for(var e=arguments.length,n=Array(e),t=0;t{ee(F)},{onFinishBatch:J(F)},e=>{ee(F,{children:e})}),onFirstRender:K(F),onUnmount:Q(F),ref:q,required:!0})},...er},spacing:l,...a})})});C.displayName="GateForm";var P=t(41247),S=t(37260),components_GatePanel=()=>{let{query:{rt:e}}=(0,l.useRouter)();return(0,r.jsx)(S.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 14em)",minWidth:"16em",width:{xs:"fit-content",sm:"26em"}},children:(0,r.jsx)(C,{gridProps:{columns:1},identifierLabel:"Username",onSubmitAppend:(n,t,r,i)=>{i(!0),a.Z.post("/auth/login",{username:n,password:t}).then(()=>{let n=e?String(e):"/";window.location.replace(n)}).catch(e=>{let n=(0,P.Z)(e,{onResponseErrorAppend:()=>({children:"Credentials mismatched.",type:"warning"})});r(n)}).finally(()=>{i(!1)})},passphraseLabel:"Passphrase",submitLabel:"Login"})})},_=t(21405),login=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("title",{children:"Login"})}),(0,r.jsx)(_.Z,{}),(0,r.jsx)(components_GatePanel,{})]})},11163:function(e,n,t){e.exports=t(38355)}},function(e){e.O(0,[494,804,416,263,775,675,556,774,888,179],function(){return e(e.s=73700)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/login-5fd1d7a2717b59af.js b/striker-ui/out/_next/static/chunks/pages/login-5fd1d7a2717b59af.js deleted file mode 100644 index 2401e80a..00000000 --- a/striker-ui/out/_next/static/chunks/pages/login-5fd1d7a2717b59af.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{62705:function(e,n,t){var r=t(55639).Symbol;e.exports=r},44239:function(e,n,t){var r=t(62705),i=t(89607),o=t(2333),l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":l&&l in Object(e)?i(e):o(e)}},27561:function(e,n,t){var r=t(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},31957:function(e,n,t){var r="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=r},89607:function(e,n,t){var r=t(62705),i=Object.prototype,o=i.hasOwnProperty,l=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var n=o.call(e,a),t=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=l.call(e);return r&&(n?e[a]=t:delete e[a]),i}},2333:function(e){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},55639:function(e,n,t){var r=t(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),i=t(7771),o=t(14841),l=Math.max,a=Math.min;e.exports=function(e,n,t){var c,s,u,d,p,f,m=0,g=!1,h=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(n){var t=c,r=s;return c=s=void 0,m=n,d=e.apply(r,t)}function shouldInvoke(e){var t=e-f,r=e-m;return void 0===f||t>=n||t<0||h&&r>=u}function timerExpired(){var e,t,r,o=i();if(shouldInvoke(o))return trailingEdge(o);p=setTimeout(timerExpired,(e=o-f,t=o-m,r=n-e,h?a(r,u-t):r))}function trailingEdge(e){return(p=void 0,v&&c)?invokeFunc(e):(c=s=void 0,d)}function debounced(){var e,t=i(),r=shouldInvoke(t);if(c=arguments,s=this,f=t,r){if(void 0===p)return m=e=f,p=setTimeout(timerExpired,n),g?invokeFunc(e):d;if(h)return clearTimeout(p),p=setTimeout(timerExpired,n),invokeFunc(f)}return void 0===p&&(p=setTimeout(timerExpired,n)),d}return n=o(n)||0,r(t)&&(g=!!t.leading,u=(h="maxWait"in t)?l(o(t.maxWait)||0,n):u,v="trailing"in t?!!t.trailing:v),debounced.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=f=s=p=void 0},debounced.flush=function(){return void 0===p?d:trailingEdge(i())},debounced}},13218:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,n,t){var r=t(44239),i=t(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),i=t(13218),o=t(33448),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return l;if(i(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=i(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=c.test(e);return t||s.test(e)?u(e.slice(2),t?2:8):a.test(e)?l:+e}},73700:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(8097)}])},88187:function(e,n,t){"use strict";var r=t(85893),i=t(5616),o=t(67294),l=t(94121),a=t(19467),c=t(55238),s=t(37039),u=t(92917),d=t(21642),p=t(55675),f=t(81796),m=t(50233),g=t(96867);let h={width:"100%"},v="gate-input",x="".concat(v,"-credential-id"),b="".concat(v,"-credential-passphrase"),j="access",Z=(0,o.forwardRef)((e,n)=>{let{formContainer:t=!0,gridProps:{columns:v={xs:1,sm:2},layout:Z,spacing:w="1em",...y}={},identifierId:k=x,identifierInputTestBatchBuilder:P=m.Gn,identifierLabel:C,identifierOutlinedInputWithLabelProps:{formControlProps:S={},inputProps:_,...O}={},onIdentifierBlurAppend:E,onSubmit:B,onSubmitAppend:A,passphraseId:F=b,passphraseLabel:I,passphraseOutlinedInputWithLabelProps:{formControlProps:R={},inputProps:T,...M}={},submitLabel:L,allowSubmit:N=t}=e,{sx:W,...D}=S,{sx:G,...U}=R,H=(0,o.useRef)({}),q=(0,o.useRef)({}),$=(0,o.useRef)({}),[V,X]=(0,o.useState)(!1),z=(0,g.Z)([k,F],$),{buildFinishInputTestBatchFunction:J,buildInputFirstRenderFunction:K,buildInputUnmountFunction:Q,isFormInvalid:Y,setMessage:ee}=z,en=(0,o.useMemo)(()=>null!=B?B:function(){for(var e=arguments.length,n=Array(e),t=0;t{ee(j,e)},X,...n)},[k,B,A,F,X,ee]),et=(0,o.useMemo)(()=>V?(0,r.jsx)(f.Z,{mt:0}):(0,r.jsx)(c.Z,{row:!0,sx:{justifyContent:"flex-end"},children:(0,r.jsx)(a.Z,{disabled:Y,type:"submit",children:L})}),[Y,V,L]),er=(0,o.useMemo)(()=>{let e={};return N&&(e["gate-cell-message-group"]={children:(0,r.jsx)(d.Z,{count:1,defaultMessageType:"warning",ref:$}),sm:2},e["gate-cell-submit"]={children:et,sm:2}),e},[N,et]),ei=(0,o.useMemo)(()=>{let e={};return t&&(e.component="form",e.onSubmit=en),e},[t,en]);return(0,o.useImperativeHandle)(n,()=>({get:()=>{var e,n,t,r;return{identifier:null!==(t=null===(e=H.current.getValue)||void 0===e?void 0:e.call(null))&&void 0!==t?t:"",passphrase:null!==(r=null===(n=q.current.getValue)||void 0===n?void 0:n.call(null))&&void 0!==r?r:""}},messageGroup:{...$.current},setIsSubmitting:e=>{X(e)}})),(0,r.jsx)(i.Z,{...ei,children:(0,r.jsx)(s.Z,{columns:v,layout:{"gate-input-cell-credential-id":{children:(0,r.jsx)(u.Z,{input:(0,r.jsx)(p.Z,{formControlProps:{...D,sx:{...h,...W}},id:k,inputProps:_,label:C,...O}),inputTestBatch:P(C,()=>{ee(k)},{onFinishBatch:J(k)},e=>{ee(k,{children:e})}),onBlurAppend:function(){for(var e=arguments.length,n=Array(e),t=0;t{ee(F)},{onFinishBatch:J(F)},e=>{ee(F,{children:e})}),onFirstRender:K(F),onUnmount:Q(F),ref:q,required:!0})},...er},spacing:w,...y})})});Z.displayName="GateForm",n.ZP=Z},37039:function(e,n,t){"use strict";var r=t(85893),i=t(67294),o=t(48263),l=t(5616);n.Z=e=>{let{calculateItemBreakpoints:n=()=>({xs:1}),layout:t,wrapperBoxProps:a,...c}=e,s=(0,i.useMemo)(()=>{let e=Object.entries(t);return e.map((e,t)=>{let[r,l]=e;return l?(0,i.createElement)(o.ZP,{...n(t,r),key:r,item:!0,...l}):void 0})},[n,t]);return(0,r.jsx)(l.Z,{...a,children:(0,r.jsx)(o.ZP,{container:!0,...c,children:s})})}},21405:function(e,n,t){"use strict";t.d(n,{Z:function(){return components_Header}});var r=t(85893),i=t(41098),o=t(90948),l=t(42293),a=t(5616),c=t(82589),s=t(54799),u=t(67294),d=t(6010),p=t(25709),f=t(13540),m=t(77533),g=t(78462),h=t(97212),v=t(98619);let x=[{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/manage-element"},{text:"Files",image:"/pngs/files_on.png",uri:"/file-manager"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/config"},{text:"Mail",image:"/pngs/email_on.png",uri:"/mail-config"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],b={width:"40em",height:"40em"};var j=t(67645),Z=t(57632),w=t(55238),y=t(41247),k=t(84154),P=t(34819);let C="AnvilDrawer",S={actionIcon:"".concat(C,"-actionIcon"),list:"".concat(C,"-list")},_=(0,o.ZP)(m.ZP)(()=>({["& .".concat(S.list)]:{width:"200px"},["& .".concat(S.actionIcon)]:{fontSize:"2.3em",color:d.of}}));var components_AnvilDrawer=e=>{let{open:n,setOpen:t}=e,{getSessionUser:i}=(0,P.Z)(),o=i();return(0,r.jsx)(_,{BackdropProps:{invisible:!0},anchor:"left",open:n,onClose:()=>t(!n),children:(0,r.jsx)("div",{role:"presentation",children:(0,r.jsxs)(g.Z,{className:S.list,children:[(0,r.jsx)(h.ZP,{children:(0,r.jsx)(k.Ac,{children:o?(0,r.jsxs)(r.Fragment,{children:["Welcome, ",o.name]}):"Unregistered"})}),(0,r.jsx)(Z.Z,{}),(0,r.jsx)(v.Z,{component:"a",href:"/index.html",children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(p.Z,{className:S.actionIcon}),(0,r.jsx)(k.Ac,{children:"Dashboard"})]})}),x.map(e=>(0,r.jsx)(v.Z,{component:"a",href:e.uri,children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)("img",{alt:e.text,src:e.image,...b}),(0,r.jsx)(k.Ac,{children:e.text})]})},"anvil-drawer-".concat(e.image))),(0,r.jsx)(v.Z,{onClick:()=>{j.Z.put("/auth/logout").then(()=>{window.location.replace("/login")}).catch(e=>{(0,y.Z)(e)})},children:(0,r.jsxs)(w.Z,{fullWidth:!0,row:!0,spacing:"2em",children:[(0,r.jsx)(f.Z,{className:S.actionIcon}),(0,r.jsx)(k.Ac,{children:"Logout"})]})})]})})})},O=t(83909),E=t(66354);let B="Header",A={input:"".concat(B,"-input"),barElement:"".concat(B,"-barElement"),iconBox:"".concat(B,"-iconBox"),searchBar:"".concat(B,"-searchBar"),icons:"".concat(B,"-icons")},F=(0,o.ZP)(l.Z)(e=>{let{theme:n}=e;return{paddingTop:n.spacing(.5),paddingBottom:n.spacing(.5),paddingLeft:n.spacing(3),paddingRight:n.spacing(3),borderBottom:"solid 1px",borderBottomColor:d.hM,position:"static",["& .".concat(A.input)]:{height:"2.8em",width:"30vw",backgroundColor:n.palette.secondary.main,borderRadius:d.n_},["& .".concat(A.barElement)]:{padding:0},["& .".concat(A.iconBox)]:{[n.breakpoints.down("sm")]:{display:"none"}},["& .".concat(A.searchBar)]:{[n.breakpoints.down("sm")]:{flexGrow:1,paddingLeft:"15vw"}},["& .".concat(A.icons)]:{paddingLeft:".1em",paddingRight:".1em"}}});var components_Header=()=>{let e=(0,u.useRef)({}),n=(0,u.useRef)({}),[t,o]=(0,u.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{children:(0,r.jsxs)(a.Z,{display:"flex",justifyContent:"space-between",flexDirection:"row",children:[(0,r.jsx)(w.Z,{row:!0,children:(0,r.jsx)(c.Z,{onClick:()=>o(!t),children:(0,r.jsx)("img",{alt:"",src:"/pngs/logo.png",width:"160",height:"40"})})}),(0,r.jsx)(w.Z,{className:A.iconBox,row:!0,spacing:0,children:(0,r.jsx)(a.Z,{children:(0,r.jsx)(s.Z,{onClick:e=>{var t,r;let{currentTarget:i}=e;null===(t=n.current.setAnchor)||void 0===t||t.call(null,i),null===(r=n.current.setOpen)||void 0===r||r.call(null,!0)},sx:{color:d.of,padding:"0 .1rem"},children:(0,r.jsx)(O.Z,{icon:i.Z,ref:e})})})})]})}),(0,r.jsx)(components_AnvilDrawer,{open:t,setOpen:o}),(0,r.jsx)(E.Z,{onFetchSuccessAppend:n=>{var t;null===(t=e.current.indicate)||void 0===t||t.call(null,Object.keys(n).length>0)},ref:n})]})}},96867:function(e,n,t){"use strict";var r=t(67294),i=t(67645),o=t(84070),l=t(41247);n.Z=(e,n)=>{var t;let[a,c]=(0,r.useState)(!1),[s,u]=(0,r.useState)({}),d=(0,r.useCallback)(e=>{var t,r;return null==n?void 0:null===(r=n.current)||void 0===r?void 0:null===(t=r.setMessage)||void 0===t?void 0:t.call(null,"api",e)},[n]),p=(0,r.useCallback)((e,t)=>{var r,i;null==n||null===(i=n.current)||void 0===i||null===(r=i.setMessage)||void 0===r||r.call(null,String(e),t)},[n]),f=(0,r.useCallback)((e,t)=>{var r,i;null==n||null===(i=n.current)||void 0===i||null===(r=i.setMessageRe)||void 0===r||r.call(null,e,t)},[n]),m=(0,r.useCallback)((e,n)=>{u((0,o.ZP)(e,n))},[]),g=(0,r.useCallback)((e,n)=>{u((0,o.Um)(e,n))},[]),h=(0,r.useCallback)(e=>{p(e),m(e)},[p,m]),v=(0,r.useCallback)(e=>{f(e),g(e)},[f,g]),x=(0,r.useCallback)(e=>n=>{m(e,n)},[m]),b=(0,r.useCallback)(e=>n=>{let{isValid:t}=n;m(e,t)},[m]),j=(0,r.useCallback)(e=>()=>{h(e)},[h]),Z=(0,r.useCallback)(e=>{let{body:r,getErrorMsg:o,msgKey:a="api",method:s,onError:u,onSuccess:d,setMsg:p=null==n?void 0:null===(t=n.current)||void 0===t?void 0:t.setMessage,successMsg:f,url:m}=e;c(!0),i.Z.request({data:r,method:s,url:m}).then(()=>{null==p||p.call(null,a,{children:f,type:"info"}),null==d||d.call(null)}).catch(e=>{let n=(0,l.Z)(e);n.children=o(n.children),null==p||p.call(null,a,n),null==u||u.call(null)}).finally(()=>{c(!1)})},[n,c]),w=(0,r.useMemo)(()=>Object.values(s).some(e=>!e),[s]);return{buildFinishInputTestBatchFunction:x,buildInputFirstRenderFunction:b,buildInputUnmountFunction:j,formValidity:s,isFormInvalid:w,isFormSubmitting:a,setApiMessage:d,setFormValidity:u,setMessage:p,setMessageRe:f,setValidity:m,setValidityRe:g,submitForm:Z,unsetKey:h,unsetKeyRe:v}}},84070:function(e,n,t){"use strict";t.d(n,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var e=arguments.length,n=Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let i={};return Object.keys(r).forEach(o=>{e.test(o)?t(r,i,o,n):i[o]=r[o]}),i}};n.ZP=function(e,n){let{guard:t=()=>!0,set:r=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i=>{let{[e]:o,...l}=i,a={...l};return t(i,e,n)&&r(i,a,e,n),a}}},8097:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return login}});var r=t(85893),i=t(9008),o=t.n(i),l=t(11163),a=t(67645),c=t(88187),s=t(41247),u=t(37260),components_GatePanel=()=>{let{query:{rt:e}}=(0,l.useRouter)();return(0,r.jsx)(u.s_,{sx:{marginLeft:{xs:"1em",sm:"auto"},marginRight:{xs:"1em",sm:"auto"},marginTop:"calc(50vh - 14em)",minWidth:"16em",width:{xs:"fit-content",sm:"26em"}},children:(0,r.jsx)(c.ZP,{gridProps:{columns:1},identifierLabel:"Username",onSubmitAppend:(n,t,r,i)=>{i(!0),a.Z.post("/auth/login",{username:n,password:t}).then(()=>{let n=e?String(e):"/";window.location.replace(n)}).catch(e=>{let n=(0,s.Z)(e,{onResponseErrorAppend:()=>({children:"Credentials mismatched.",type:"warning"})});r(n)}).finally(()=>{i(!1)})},passphraseLabel:"Passphrase",submitLabel:"Login"})})},d=t(21405),login=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o(),{children:(0,r.jsx)("title",{children:"Login"})}),(0,r.jsx)(d.Z,{}),(0,r.jsx)(components_GatePanel,{})]})},11163:function(e,n,t){e.exports=t(38355)}},function(e){e.O(0,[494,804,416,263,775,675,556,774,888,179],function(){return e(e.s=73700)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/mail-config-14cdc2dd46514057.js b/striker-ui/out/_next/static/chunks/pages/mail-config-14cdc2dd46514057.js deleted file mode 100644 index f87efbf6..00000000 --- a/striker-ui/out/_next/static/chunks/pages/mail-config-14cdc2dd46514057.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[249],{88668:function(e,r,n){var t=n(83369),i=n(90619),a=n(72385);function SetCache(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++rd))return!1;var m=o.get(e),h=o.get(r);if(m&&h)return m==r&&h==e;var p=-1,v=!0,g=2&n?new t:void 0;for(o.set(e,r),o.set(r,e);++p0&&void 0!==arguments[0]?arguments[0]:{},{initial:{actionProceedText:r="",content:n="",titleText:s="",...o}={}}=e,u=(0,i.useRef)(null),[d,c]=(0,i.useState)({actionProceedText:r,content:n,titleText:s}),m=(0,i.useCallback)(e=>c(r=>{let{loading:n,...t}=r;return{...t,loading:e}}),[]),h=(0,i.useCallback)(e=>{var r,n;return null==u?void 0:null===(n=u.current)||void 0===n?void 0:null===(r=n.setOpen)||void 0===r?void 0:r.call(null,e)},[]),p=(0,i.useCallback)((e,r)=>c({actionProceedText:"",content:(0,t.jsx)(l.Z,{...r}),showActionArea:!1,showClose:!0,titleText:e}),[]),v=(0,i.useMemo)(()=>(0,t.jsx)(a.Z,{...o,...d,ref:u}),[d,o]);return{confirmDialog:v,confirmDialogRef:u,setConfirmDialogLoading:m,setConfirmDialogOpen:h,setConfirmDialogProps:c,finishConfirm:p}}},94116:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return mail_config}});var t=n(85893),i=n(48263),a=n(9008),l=n.n(a),s=n(21405),o=n(272),u=n(67294),d=n(25934),c=n(73393),m=n(67645),h=n(55238),p=n(15079),v=n(41247),g=n(16310),f=n(78438);let x=g.Rx().oneOf([0,1,2,3,4]),j=g.Ry({delete:g.O7().optional(),level:x.required(),target:g.Ry({type:g.Z_().oneOf(["node","subnode"]).required(),uuid:g.Z_().uuid().required()}),uuid:g.Z_().uuid().optional()}),Z=g.Vo(e=>g.Ry((0,f.Z)(e,j))),b=g.Ry({alertOverrides:Z,email:g.Z_().email().required(),language:g.Z_().oneOf(["en_CA"]).optional(),level:x.required(),name:g.Z_().required(),uuid:g.Z_().uuid().optional()}),M=g.Vo(e=>g.Ry((0,f.Z)(e,b)));var y=n(89712),_=n(83221),C=n(52886),A=n(84154),w=n(88468);let O=[{displayValue:"Ignore",value:0},{displayValue:"Critical",value:1},{displayValue:"Warning",value:2},{displayValue:"Notice",value:3},{displayValue:"Info",value:4}];var ManageMailRecipient_AlertOverrideInputGroup=e=>{let{alertOverrideTargetOptions:r,alertOverrideValueId:n,mailRecipientUuid:a,formikUtils:l}=e,s=(0,u.useMemo)(()=>null!=n?n:(0,d.Z)(),[n]),{formik:o}=l,{values:{[a]:c}}=o,{alertOverrides:{[s]:m}}=c,p=(0,u.useMemo)(()=>"".concat(a,".alertOverrides.").concat(s),[s,a]),v=(0,u.useMemo)(()=>"".concat(p,".remove"),[p]),g=(0,u.useMemo)(()=>"".concat(p,".target"),[p]),f=(0,u.useMemo)(()=>"".concat(p,".level"),[p]);return(0,t.jsxs)(i.ZP,{alignItems:"center",columns:{xs:1,sm:10},container:!0,justifyContent:"stretch",spacing:"1em",children:[(0,t.jsx)(i.ZP,{item:!0,xs:6,children:(0,t.jsx)(y.Z,{getOptionLabel:e=>e.name,id:g,isOptionEqualToValue:(e,r)=>e.uuid===r.uuid,label:"Target",noOptionsText:"No node or subnode found.",onChange:(e,r)=>o.setFieldValue(g,r,!0),openOnFocus:!0,options:r,renderOption:(e,r)=>(0,u.createElement)("li",{...e,key:"".concat(r.node,"-").concat(r.uuid)},"node"===r.type?(0,t.jsxs)(h.Z,{spacing:0,children:[(0,t.jsx)(A.Ac,{inheritColour:!0,children:r.name}),(0,t.jsx)(A.KI,{inheritColour:!0,children:r.description})]}):(0,t.jsx)(A.Ac,{inheritColour:!0,paddingLeft:".6em",children:r.name})),value:m.target})}),(0,t.jsx)(i.ZP,{item:!0,flexGrow:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(C.Z,{id:f,label:"Alert level",name:f,onChange:o.handleChange,selectItems:O,value:m.level})})}),(0,t.jsx)(i.ZP,{item:!0,width:"min-content",children:(0,t.jsx)(_.Z,{mapPreset:"delete",onClick:()=>{m.uuids?o.setFieldValue(v,!0,!0):o.setValues(e=>{let r={...e},{[a]:n}=r,{[s]:t,...i}=n.alertOverrides;return n.alertOverrides={...i},r})},size:"small"})})]})},S=n(63071),ManageMailRecipient_ManageAlertOverride=e=>{let{alertOverrideTargetOptions:r,formikUtils:n,mailRecipientUuid:i}=e,{formik:a}=n,{values:{[i]:l}}=a,{alertOverrides:s}=l;return(0,t.jsx)(S.Z,{allowAddItem:!0,edit:!0,header:"Alert override rules",listEmpty:"No alert overrides(s)",listItems:s,onAdd:()=>{let e=(0,d.Z)();a.setValues(r=>{let n={...r},{[i]:t}=n;return t.alertOverrides={...t.alertOverrides,[e]:{level:2,target:null}},n})},renderListItem:(e,a)=>!a.remove&&(0,t.jsx)(ManageMailRecipient_AlertOverrideInputGroup,{alertOverrideTargetOptions:r,alertOverrideValueId:e,formikUtils:n,mailRecipientUuid:i})})},F=n(21642),P=n(55675),E=n(82175),R=n(18446),k=n.n(R),I=n(13218),V=n.n(I),q=n(23279),D=n.n(q),lib_debounce=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{wait:n=500,...t}=r;return D()(e,n,t)},L=n(43799);let isChainEqual=(e,r,n)=>{let[t,...i]=e;if(!(t in r))return!1;let a=r[t],l=n[t];return V()(a)&&V()(l)&&i.length?isChainEqual(i,a,l):!k()(a,l)};var hooks_useFormikUtils=e=>{let r=(0,E.TA)({...e}),n=(0,u.useCallback)(e=>{let n=e.split(".");return isChainEqual(n,r.values,r.initialValues)},[r.initialValues,r.values]),t=(0,u.useCallback)(e=>({readOnly:!0,onFocus:e=>{e.target.readOnly=!1},...e}),[]),i=(0,u.useMemo)(()=>lib_debounce(r.handleChange),[r.handleChange]),a=(0,u.useMemo)(()=>!r.dirty||!r.isValid||r.isValidating||r.isSubmitting,[r.dirty,r.isSubmitting,r.isValid,r.isValidating]),l=(0,u.useMemo)(()=>(0,L.Z)(r.errors,{skip:e=>!n(e)}),[r.errors,n]);return{disableAutocomplete:t,disabledSubmit:a,formik:r,formikErrors:l,handleChange:i}};let U=[{displayValue:(0,t.jsxs)(h.Z,{spacing:0,children:[(0,t.jsx)(A.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Critical"}),(0,t.jsx)(A.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that could lead to imminent service interruption or unexpected loss of redundancy."})]}),value:1},{displayValue:(0,t.jsxs)(h.Z,{spacing:0,children:[(0,t.jsx)(A.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Warning"}),(0,t.jsx)(A.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that require attention from administrators, such as redundancy loss due to load shedding, hardware in pre-failure, input power loss, temperature anomalies, etc."})]}),value:2},{displayValue:(0,t.jsxs)(h.Z,{spacing:0,children:[(0,t.jsx)(A.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Notice"}),(0,t.jsx)(A.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that are generally safe to ignore, but might provide early warnings of developing issues or insight into system behaviour."})]}),value:3},{displayValue:(0,t.jsxs)(h.Z,{spacing:0,children:[(0,t.jsx)(A.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Info"}),(0,t.jsx)(A.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that are almost always safe to ignore, but may be useful in testing and debugging."})]}),value:4}],B={1:"Critical",2:"Warning",3:"Notice",4:"Info"},getAlertOverrideRequestList=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/alert-override",{uuid:t}=e;return t?Object.values(e.alertOverrides).reduce((e,r)=>{let{remove:i,level:a,target:l,uuids:s}=r;if(s&&e.push(...Object.keys(s).map(e=>({method:"delete",url:"".concat(n,"/").concat(e)}))),l&&!i){var o;let r=null!==(o=l.subnodes)&&void 0!==o?o:[l.uuid];e.push(...r.map(e=>({body:{hostUuid:e,level:a,mailRecipientUuid:t},method:"post",url:n})))}return e},[]):[]};var ManageMailRecipient_AddMailRecipientForm=e=>{let{alertOverrideTargetOptions:r,mailRecipientUuid:n,previousFormikValues:a,tools:l}=e,s=(0,u.useMemo)(()=>null!=n?n:(0,d.Z)(),[n]),h=hooks_useFormikUtils({initialValues:null!=a?a:{[s]:{alertOverrides:{},email:"",language:"en_CA",level:2,name:""}},onSubmit:(e,r)=>{let{setSubmitting:n}=r,{[s]:i}=e,o="Add",u=(0,t.jsx)(t.Fragment,{children:"Failed to add mail recipient."}),d="post",c=(0,t.jsx)(t.Fragment,{children:"Mail recipient added."}),h="Add mail recipient with the following?",g="/mail-recipient";a&&(o="Update",u=(0,t.jsx)(t.Fragment,{children:"Failed to update mail server."}),d="put",c=(0,t.jsx)(t.Fragment,{children:"Mail recipient updated."}),h="Update ".concat(i.name," with the following?"),g+="/".concat(s));let{alertOverrides:f,uuid:x,...j}=i;l.confirm.prepare({actionProceedText:o,content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Z,{entries:j}),(0,t.jsx)(p.Z,{entries:{alertOverrides:Object.entries(f).reduce((e,r)=>{let[n,t]=r;return t.remove||!t.target||(e[n]={level:t.level,name:t.target.name}),e},{})}})]}),onCancelAppend:()=>n(!1),onProceedAppend:async()=>{l.confirm.loading(!0);let handleError=e=>{let r=(0,v.Z)(e);r.children=(0,t.jsxs)(t.Fragment,{children:[u," ",r.children]}),l.confirm.finish("Error",r),n(!1)};m.Z[d](g,j).then(e=>{let{data:r}=e,n={...i};r&&(n.uuid=r.uuid);let t=a&&a[s],o=getAlertOverrideRequestList(n,t).map(e=>m.Z[e.method](e.url,e.body));Promise.all(o).then(()=>{l.confirm.finish("Success",{children:c}),l["post"===d?"add":"edit"].open(!1)}).catch(handleError)}).catch(handleError)},titleText:h}),l.confirm.open(!0)},validationSchema:M}),{disabledSubmit:g,formik:f,formikErrors:x,handleChange:j}=h,Z=(0,u.useMemo)(()=>"".concat(s,".email"),[s]),b=(0,u.useMemo)(()=>"".concat(s,".level"),[s]),y=(0,u.useMemo)(()=>"".concat(s,".name"),[s]);return(0,t.jsxs)(i.ZP,{columns:{xs:1,sm:2},component:"form",container:!0,onSubmit:e=>{e.preventDefault(),f.submitForm()},spacing:"1em",children:[(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:y,label:"Recipient name",name:y,onChange:j,required:!0,value:f.values[s].name})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:Z,label:"Recipient email",name:Z,onChange:j,required:!0,value:f.values[s].email})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(C.Z,{id:b,label:"Alert level",name:b,onChange:f.handleChange,required:!0,selectItems:U,selectProps:{MenuProps:{sx:{["& .".concat(o.Z.paper)]:{maxWidth:{md:"60%",lg:"40%"}}}},renderValue:e=>B[e]},value:f.values[s].level})})}),(0,t.jsx)(i.ZP,{item:!0,width:"100%",children:(0,t.jsx)(ManageMailRecipient_ManageAlertOverride,{alertOverrideTargetOptions:r,formikUtils:h,mailRecipientUuid:s})}),(0,t.jsx)(i.ZP,{item:!0,width:"100%",children:(0,t.jsx)(F.Z,{count:1,messages:x})}),(0,t.jsx)(i.ZP,{item:!0,width:"100%",children:(0,t.jsx)(c.Z,{actions:[{background:"blue",children:a?"Update":"Add",disabled:g,type:"submit"}]})})]})},T=n(48882),H=n(56211),N=n(6903),W=n(32576),z=n(7576),K=n(67978);let reduceHeader=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),t=1;t1?r-1:0),t=1;te,listEmpty:f,listProps:x,onItemClick:j=function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),t=1;tD(e),refreshInterval:Z}),{fetch:U,loading:B}=(0,N.Z)({onData:e=>D(e),url:s}),{fetch:T,loading:G}=(0,N.Z)({onData:e=>V(e),url:s}),J=(0,u.useMemo)(()=>reduceHeader(a),[a]),X=(0,u.useMemo)(()=>reduceHeader(l,I),[I,l]),Q=(0,u.useMemo)(()=>({add:{open:function(){var e;let r=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return null==C?void 0:null===(e=C.current)||void 0===e?void 0:e.setOpen(r)}},confirm:{finish:O,loading:F,open:function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return P(e)},prepare:E},edit:{open:function(){var e;let r=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return null==A?void 0:null===(e=A.current)||void 0===e?void 0:e.setOpen(r)}}}),[O,F,P,E]),Y=(0,u.useMemo)(()=>L||B,[B,L]),{buildDeleteDialogProps:$,checks:ee,getCheck:er,hasAllChecks:en,hasChecks:et,multipleItems:ei,resetChecks:ea,setAllChecks:el,setCheck:es}=(0,W.Z)({list:q});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S.Z,{allowCheckAll:ei,allowEdit:!0,allowItemButton:R,disableDelete:!et,edit:R,getListCheckboxProps:()=>({checked:en,onChange:(e,r)=>el(r)}),getListItemCheckboxProps:e=>({checked:er(e),onChange:(r,n)=>es(e,n)}),header:!0,listEmpty:f,listItems:q,loading:Y,onAdd:()=>{var e;return null==C?void 0:null===(e=C.current)||void 0===e?void 0:e.setOpen(!0)},onDelete:()=>{E($({onProceedAppend:()=>{F(!0),Promise.all(h((e,r)=>e.map(e=>m.Z.delete("".concat(r,"/").concat(e))),ee,s)).then(()=>{O("Success",p()),U()}).catch(e=>{let r=(0,v.Z)(e);O("Error",d(r))}),ea()},getConfirmDialogTitle:c,renderEntry:function(){for(var e=arguments.length,r=Array(e),n=0;nk(e=>!e),onItemClick:function(){for(var e=arguments.length,r=Array(e),n=0;n{var n;null==A||null===(n=A.current)||void 0===n||n.setOpen(!0),T("/".concat(r))},...r)},renderListItem:_,...x}),(0,t.jsx)(H.Js,{header:J,loading:null==o?void 0:o.call(null),ref:C,showClose:!0,children:b(Q)}),(0,t.jsx)(H.Js,{header:X,loading:g(G),ref:A,showClose:!0,children:y(Q,I)}),w]})},ManageMailRecipient_EditMailRecipientForm=e=>(0,t.jsx)(ManageMailRecipient_AddMailRecipientForm,{...e}),ManageMailRecipient_ManageMailRecipient=()=>{let[e,r]=(0,u.useState)(),{altData:n,loading:i}=(0,K.Z)("/anvil",{mod:T.Z}),a=(0,u.useMemo)(()=>n&&Object.values(n).sort((e,r)=>e.name.localeCompare(r.name)).reduce((e,r)=>{let n={description:r.description,name:r.name,node:r.uuid,subnodes:[],type:"node",uuid:r.uuid},t=Object.values(r.hosts).sort((e,r)=>e.name.localeCompare(r.name)).reduce((e,t)=>{var i;return"dr"===t.type||(e.push({name:t.name,node:r.uuid,type:"subnode",uuid:t.uuid}),null===(i=n.subnodes)||void 0===i||i.push(t.uuid)),e},[]);return e.push(n,...t),e},[]),[n]),{fetch:l,loading:s}=(0,N.Z)({onData:e=>r(e),url:"/alert-override"}),o=(0,u.useMemo)(()=>{if(!n||!e)return;let r=Object.values(e).reduce((e,r)=>{let{node:{uuid:n}}=r;return e[n]?e[n].push(r):e[n]=[r],e},{});return Object.entries(r).reduce((e,r)=>{let[t,i]=r,[a,...l]=i,s=i.length>1&&l.every(e=>{let{level:r}=e;return r===a.level});if(s){let{0:{level:r}}=i,{[t]:a}=n;e[t]={level:r,target:{description:a.description,name:a.name,node:a.uuid,subnodes:i.map(e=>{let{subnode:{uuid:r}}=e;return r}),type:"node",uuid:a.uuid},uuids:i.reduce((e,r)=>{let{subnode:n,uuid:t}=r;return e[t]=n.uuid,e},{})}}else i.forEach(r=>{let{level:n,node:t,subnode:i,uuid:a}=r;e[i.uuid]={level:n,target:{name:i.name,node:t.uuid,type:"subnode",uuid:i.uuid},uuids:{[a]:i.uuid}}});return e},{})},[e,n]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(components_CrudList,{addHeader:"Add mail recipient",editHeader:e=>"Update ".concat(null==e?void 0:e.name),entriesUrl:"/mail-recipient",getAddLoading:e=>e||i,getDeleteErrorMessage:e=>{let{children:r,...n}=e;return{...n,children:(0,t.jsxs)(t.Fragment,{children:["Failed to delete mail recipient(s). ",r]})}},getDeleteHeader:e=>"Delete the following ".concat(e," mail recipient(s)?"),getDeleteSuccessMessage:()=>({children:(0,t.jsx)(t.Fragment,{children:"Successfully deleted mail recipient(s)."})}),getEditLoading:e=>e||s,listEmpty:"No mail recipient(s) found.",onItemClick:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),t=1;ta&&(0,t.jsx)(ManageMailRecipient_AddMailRecipientForm,{alertOverrideTargetOptions:a,tools:e}),renderDeleteItem:(e,r)=>{let{key:n}=r,i=null==e?void 0:e[n];return(0,t.jsx)(A.Ac,{children:null==i?void 0:i.name})},renderEditForm:(e,r)=>a&&r&&o&&(0,t.jsx)(ManageMailRecipient_EditMailRecipientForm,{alertOverrideTargetOptions:a,mailRecipientUuid:r.uuid,previousFormikValues:{[r.uuid]:{alertOverrides:o,...r}},tools:e}),renderListItem:(e,r)=>{let{name:n}=r;return(0,t.jsx)(A.Ac,{children:n})}})})};let G=g.Ry({address:g.Z_().required(),authentication:g.Z_().oneOf(["none","plain-text","encrypted"]),confirmPassword:g.Z_().when("password",(e,r)=>String(e).length>0?r.required().oneOf([g.iH("password")]):r.optional()),heloDomain:g.Z_().required(),password:g.Z_().optional(),port:g.Rx().required(),security:g.Z_().oneOf(["none","starttls","tls-ssl"]),username:g.Z_().optional(),uuid:g.Z_().uuid().required()}),J=g.Vo(e=>g.Ry((0,f.Z)(e,G)));var ManageMailServer_AddMailServerForm=e=>{let{localhostDomain:r="",mailServerUuid:n,previousFormikValues:a,tools:l}=e,s=(0,u.useMemo)(()=>null!=n?n:(0,d.Z)(),[n]),{disableAutocomplete:o,disabledSubmit:h,formik:g,formikErrors:f,handleChange:x}=hooks_useFormikUtils({initialValues:null!=a?a:{[s]:{address:"",authentication:"none",heloDomain:r,port:587,security:"none",uuid:s}},onSubmit:(e,r)=>{let{setSubmitting:n}=r,{[s]:i}=e,o="Add",u=(0,t.jsx)(t.Fragment,{children:"Failed to add mail server."}),d="post",c=(0,t.jsx)(t.Fragment,{children:"Mail server added."}),h="Add mail server with the following?",g="/mail-server";a&&(o="Update",u=(0,t.jsx)(t.Fragment,{children:"Failed to update mail server."}),d="put",c=(0,t.jsx)(t.Fragment,{children:"Mail server updated."}),h="Update ".concat(i.address,":").concat(i.port," with the following?"),g+="/".concat(s));let{confirmPassword:f,uuid:x,...j}=i;l.confirm.prepare({actionProceedText:o,content:(0,t.jsx)(p.Z,{entries:j}),onCancelAppend:()=>n(!1),onProceedAppend:()=>{l.confirm.loading(!0),m.Z[d](g,i).then(()=>{l.confirm.finish("Success",{children:c}),l["post"===d?"add":"edit"].open(!1)}).catch(e=>{let r=(0,v.Z)(e);r.children=(0,t.jsxs)(t.Fragment,{children:[u," ",r.children]}),l.confirm.finish("Error",r),n(!1)})},titleText:h}),l.confirm.open(!0)},validationSchema:J}),j=(0,u.useMemo)(()=>"".concat(s,".address"),[s]),Z=(0,u.useMemo)(()=>"".concat(s,".authentication"),[s]),b=(0,u.useMemo)(()=>"".concat(s,".confirmPassword"),[s]),M=(0,u.useMemo)(()=>"".concat(s,".heloDomain"),[s]),y=(0,u.useMemo)(()=>"".concat(s,".password"),[s]),_=(0,u.useMemo)(()=>"".concat(s,".port"),[s]),A=(0,u.useMemo)(()=>"".concat(s,".security"),[s]),O=(0,u.useMemo)(()=>"".concat(s,".username"),[s]);return(0,t.jsxs)(i.ZP,{component:"form",onSubmit:e=>{e.preventDefault(),g.submitForm()},container:!0,columns:{xs:1,sm:2},spacing:"1em",children:[(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:j,label:"Server address",name:j,onBlur:g.handleBlur,onChange:x,required:!0,value:g.values[s].address})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:_,label:"Server port",name:_,onBlur:g.handleBlur,onChange:x,required:!0,type:"number",value:g.values[s].port})})}),(0,t.jsx)(i.ZP,{item:!0,sm:2,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(C.Z,{id:A,label:"Server security type",name:A,onBlur:g.handleBlur,onChange:x,required:!0,selectItems:["none","starttls","tls-ssl"],value:g.values[s].security})})}),(0,t.jsx)(i.ZP,{item:!0,sm:2,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(C.Z,{id:Z,label:"Server authentication method",name:Z,onBlur:g.handleBlur,onChange:x,required:!0,selectItems:["none","plain-text","encrypted"],value:g.values[s].authentication})})}),(0,t.jsx)(i.ZP,{item:!0,sm:2,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:M,label:"HELO domain",name:M,onBlur:g.handleBlur,onChange:x,required:!0,value:g.values[s].heloDomain})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:O,inputProps:o(),label:"Server username",name:O,onBlur:g.handleBlur,onChange:x,value:g.values[s].username})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:y,inputProps:o(),label:"Server password",name:y,onBlur:g.handleBlur,onChange:x,type:"password",value:g.values[s].password})})}),(0,t.jsx)(i.ZP,{item:!0,xs:1}),(0,t.jsx)(i.ZP,{item:!0,xs:1,children:(0,t.jsx)(w.Z,{input:(0,t.jsx)(P.Z,{id:b,inputProps:o(),label:"Confirm password",name:b,onBlur:g.handleBlur,onChange:x,type:"password",value:g.values[s].confirmPassword})})}),(0,t.jsx)(i.ZP,{item:!0,width:"100%",children:(0,t.jsx)(F.Z,{count:1,messages:f})}),(0,t.jsx)(i.ZP,{item:!0,width:"100%",children:(0,t.jsx)(c.Z,{actions:[{background:"blue",children:a?"Update":"Add",disabled:h,type:"submit"}]})})]})},ManageMailServer_EditMailServerForm=e=>(0,t.jsx)(ManageMailServer_AddMailServerForm,{...e}),ManageMailServer_ManageMailServer=()=>{let{data:e,loading:r}=(0,K.Z)("/host/local");return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(components_CrudList,{addHeader:"Add mail server",editHeader:e=>"Update ".concat(null==e?void 0:e.address,":").concat(null==e?void 0:e.port),entriesUrl:"/mail-server",getAddLoading:e=>e||r,getDeleteErrorMessage:e=>{let{children:r,...n}=e;return{...n,children:(0,t.jsxs)(t.Fragment,{children:["Failed to delete mail server(s). ",r]})}},getDeleteHeader:e=>"Delete the following ".concat(e," mail server(s)?"),getDeleteSuccessMessage:()=>({children:(0,t.jsx)(t.Fragment,{children:"Successfully deleted mail server(s)."})}),listEmpty:"No mail server(s) found",renderAddForm:r=>e&&(0,t.jsx)(ManageMailServer_AddMailServerForm,{localhostDomain:e.domain,tools:r}),renderDeleteItem:(e,r)=>{let{key:n}=r,i=null==e?void 0:e[n];return(0,t.jsxs)(A.Ac,{children:[null==i?void 0:i.address,":",null==i?void 0:i.port]})},renderEditForm:(e,r)=>r&&(0,t.jsx)(ManageMailServer_EditMailServerForm,{mailServerUuid:r.uuid,previousFormikValues:{[r.uuid]:r},tools:e}),renderListItem:(e,r)=>{let{address:n,port:i}=r;return(0,t.jsxs)(A.Ac,{children:[n,":",i]})}})})},X=n(37260),mail_config=()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l(),{children:(0,t.jsx)("title",{children:"Mail Config"})}),(0,t.jsx)(s.Z,{}),(0,t.jsxs)(i.ZP,{container:!0,columns:{xs:1,md:6,lg:4},children:[(0,t.jsx)(i.ZP,{item:!0,xs:1}),(0,t.jsx)(i.ZP,{item:!0,xs:1,md:4,lg:2,children:(0,t.jsxs)(X.s_,{children:[(0,t.jsx)(X.V9,{children:(0,t.jsx)(A.z,{children:"Mail config"})}),(0,t.jsx)(X.TZ,{expandInitially:!0,header:"Manage mail servers",children:(0,t.jsx)(ManageMailServer_ManageMailServer,{})}),(0,t.jsx)(X.TZ,{expandInitially:!0,header:"Manage mail recipients",children:(0,t.jsx)(ManageMailRecipient_ManageMailRecipient,{})})]})})]})]})}},function(e){e.O(0,[494,804,416,50,263,213,310,461,264,775,675,633,733,380,774,888,179],function(){return e(e.s=24084)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/mail-config-77c70d16ef879e90.js b/striker-ui/out/_next/static/chunks/pages/mail-config-77c70d16ef879e90.js new file mode 100644 index 00000000..cc7ff9e7 --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/mail-config-77c70d16ef879e90.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[249],{88668:function(e,t,r){var n=r(83369),i=r(90619),a=r(72385);function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++tu))return!1;var m=o.get(e),p=o.get(t);if(m&&p)return m==t&&p==e;var h=-1,v=!0,g=2&r?new n:void 0;for(o.set(e,t),o.set(t,e);++h{let{count:r=l.count,defaultMessageType:s=l.defaultMessageType,messages:o,onSet:d,usePlaceholder:u=l.usePlaceholder}=e,[c,m]=(0,i.useState)({}),p=(0,i.useMemo)(()=>({...o,...c}),[o,c]),h=(0,i.useCallback)(e=>void 0!==p[e],[p]),v=(0,i.useCallback)((e,t)=>{let r=0;m(n=>{let{[e]:i,...a}=n;return t&&(a[e]=t),r=Object.keys(a).length,a}),null==d||d.call(null,r)},[d]),g=(0,i.useCallback)((e,t)=>{let r=0,n=t?(e,n)=>{e[n]=t,r+=1}:void 0;m(t=>{let i={};return Object.keys(t).forEach(a=>{e.test(a)?null==n||n.call(null,i,a):(i[a]=t[a],r+=1)}),i}),null==d||d.call(null,r)},[d]),f=(0,i.useMemo)(()=>{let e=Object.entries(p),t=r>0,i=t?r:e.length,l=[];if(e.every(e=>{let[t,r]=e,{children:o,type:d=s}=r;return l.push((0,n.jsx)(a.Z,{type:d,children:o},"message-".concat(t))),l.length({exists:h,setMessage:v,setMessageRe:g}),[h,v,g]),(0,n.jsx)(n.Fragment,{children:f})});s.defaultProps=l,s.displayName="MessageGroup",t.Z=s},48882:function(e,t,r){"use strict";r.d(t,{Z:function(){return api_converters_toAnvilOverviewList}});var api_converters_toAnvilOverviewHostList=e=>e.reduce((e,t)=>{let{hostName:r,hostType:n,hostUUID:i}=t;return e[i]={name:r,type:n,uuid:i},e},{}),api_converters_toAnvilOverviewList=e=>e.reduce((e,t)=>{let{anvilDescription:r,anvilName:n,anvilUUID:i,hosts:a}=t;return e[i]={description:r,hosts:api_converters_toAnvilOverviewHostList(a),name:n,uuid:i},e},{})},78438:function(e,t){"use strict";t.Z=(e,t)=>e&&Object.keys(e).reduce((e,r)=>({...e,[r]:t}),{})},591:function(e,t){"use strict";t.Z={boolean:e=>!!e,number:e=>parseInt(String(e),10)||0,string:e=>String(e)}},75338:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return mail_config}});var n=r(85893),i=r(48263),a=r(9008),l=r.n(a),s=r(21405),o=r(272),d=r(67294),u=r(25934),c=r(73393),m=r(67645),p=r(55238),h=r(15079),v=r(41247),g=r(16310),f=r(78438);let x=g.Rx().oneOf([0,1,2,3,4]),j=g.Ry({delete:g.O7().optional(),level:x.required(),target:g.Ry({type:g.Z_().oneOf(["node","subnode"]).required(),uuid:g.Z_().uuid().required()}),uuid:g.Z_().uuid().optional()}),Z=g.Vo(e=>g.Ry((0,f.Z)(e,j))),b=g.Ry({alertOverrides:Z,email:g.Z_().email().required(),language:g.Z_().oneOf(["en_CA"]).optional(),level:x.required(),name:g.Z_().required(),uuid:g.Z_().uuid().optional()}),M=g.Vo(e=>g.Ry((0,f.Z)(e,b)));var y=r(89712),_=r(83221),w=r(52886),O=r(84154),A=r(88468);let S=[{displayValue:"Ignore",value:0},{displayValue:"Critical",value:1},{displayValue:"Warning",value:2},{displayValue:"Notice",value:3},{displayValue:"Info",value:4}];var ManageMailRecipient_AlertOverrideInputGroup=e=>{let{alertOverrideTargetOptions:t,alertOverrideValueId:r,mailRecipientUuid:a,formikUtils:l}=e,s=(0,d.useMemo)(()=>null!=r?r:(0,u.Z)(),[r]),{formik:o}=l,{values:{[a]:c}}=o,{alertOverrides:{[s]:m}}=c,h=(0,d.useMemo)(()=>"".concat(a,".alertOverrides.").concat(s),[s,a]),v=(0,d.useMemo)(()=>"".concat(h,".remove"),[h]),g=(0,d.useMemo)(()=>"".concat(h,".target"),[h]),f=(0,d.useMemo)(()=>"".concat(h,".level"),[h]);return(0,n.jsxs)(i.ZP,{alignItems:"center",columns:{xs:1,sm:10},container:!0,justifyContent:"stretch",spacing:"1em",children:[(0,n.jsx)(i.ZP,{item:!0,xs:6,children:(0,n.jsx)(y.Z,{getOptionLabel:e=>e.name,id:g,isOptionEqualToValue:(e,t)=>e.uuid===t.uuid,label:"Target",noOptionsText:"No node or subnode found.",onChange:(e,t)=>o.setFieldValue(g,t,!0),openOnFocus:!0,options:t,renderOption:(e,t)=>(0,d.createElement)("li",{...e,key:"".concat(t.node,"-").concat(t.uuid)},"node"===t.type?(0,n.jsxs)(p.Z,{spacing:0,children:[(0,n.jsx)(O.Ac,{inheritColour:!0,children:t.name}),(0,n.jsx)(O.KI,{inheritColour:!0,children:t.description})]}):(0,n.jsx)(O.Ac,{inheritColour:!0,paddingLeft:".6em",children:t.name})),value:m.target})}),(0,n.jsx)(i.ZP,{item:!0,flexGrow:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(w.Z,{id:f,label:"Alert level",name:f,onChange:o.handleChange,selectItems:S,value:m.level})})}),(0,n.jsx)(i.ZP,{item:!0,width:"min-content",children:(0,n.jsx)(_.Z,{mapPreset:"delete",onClick:()=>{m.uuids?o.setFieldValue(v,!0,!0):o.setValues(e=>{let t={...e},{[a]:r}=t,{[s]:n,...i}=r.alertOverrides;return r.alertOverrides={...i},t})},size:"small"})})]})},C=r(63071),ManageMailRecipient_ManageAlertOverride=e=>{let{alertOverrideTargetOptions:t,formikUtils:r,mailRecipientUuid:i}=e,{formik:a}=r,{values:{[i]:l}}=a,{alertOverrides:s}=l;return(0,n.jsx)(C.Z,{allowAddItem:!0,edit:!0,header:"Alert override rules",listEmpty:"No alert overrides(s)",listItems:s,onAdd:()=>{let e=(0,u.Z)();a.setValues(t=>{let r={...t},{[i]:n}=r;return n.alertOverrides={...n.alertOverrides,[e]:{level:2,target:null}},r})},renderListItem:(e,a)=>!a.remove&&(0,n.jsx)(ManageMailRecipient_AlertOverrideInputGroup,{alertOverrideTargetOptions:t,alertOverrideValueId:e,formikUtils:r,mailRecipientUuid:i})})},F=r(21642),P=r(55675),R=r(21197);let E=[{displayValue:(0,n.jsxs)(p.Z,{spacing:0,children:[(0,n.jsx)(O.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Critical"}),(0,n.jsx)(O.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that could lead to imminent service interruption or unexpected loss of redundancy."})]}),value:1},{displayValue:(0,n.jsxs)(p.Z,{spacing:0,children:[(0,n.jsx)(O.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Warning"}),(0,n.jsx)(O.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that require attention from administrators, such as redundancy loss due to load shedding, hardware in pre-failure, input power loss, temperature anomalies, etc."})]}),value:2},{displayValue:(0,n.jsxs)(p.Z,{spacing:0,children:[(0,n.jsx)(O.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Notice"}),(0,n.jsx)(O.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that are generally safe to ignore, but might provide early warnings of developing issues or insight into system behaviour."})]}),value:3},{displayValue:(0,n.jsxs)(p.Z,{spacing:0,children:[(0,n.jsx)(O.Ac,{inheritColour:!0,fontWeight:"inherit",children:"Info"}),(0,n.jsx)(O.KI,{inheritColour:!0,whiteSpace:"normal",children:"Alerts that are almost always safe to ignore, but may be useful in testing and debugging."})]}),value:4}],I={1:"Critical",2:"Warning",3:"Notice",4:"Info"},getAlertOverrideRequestList=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/alert-override",{uuid:n}=e;return n?Object.values(e.alertOverrides).reduce((e,t)=>{let{remove:i,level:a,target:l,uuids:s}=t;if(s&&e.push(...Object.keys(s).map(e=>({method:"delete",url:"".concat(r,"/").concat(e)}))),l&&!i){var o;let t=null!==(o=l.subnodes)&&void 0!==o?o:[l.uuid];e.push(...t.map(e=>({body:{hostUuid:e,level:a,mailRecipientUuid:n},method:"post",url:r})))}return e},[]):[]};var ManageMailRecipient_AddMailRecipientForm=e=>{let{alertOverrideTargetOptions:t,mailRecipientUuid:r,previousFormikValues:a,tools:l}=e,s=(0,d.useMemo)(()=>null!=r?r:(0,u.Z)(),[r]),p=(0,R.Z)({initialValues:null!=a?a:{[s]:{alertOverrides:{},email:"",language:"en_CA",level:2,name:""}},onSubmit:(e,t)=>{let{setSubmitting:r}=t,{[s]:i}=e,o="Add",d=(0,n.jsx)(n.Fragment,{children:"Failed to add mail recipient."}),u="post",c=(0,n.jsx)(n.Fragment,{children:"Mail recipient added."}),p="Add mail recipient with the following?",g="/mail-recipient";a&&(o="Update",d=(0,n.jsx)(n.Fragment,{children:"Failed to update mail server."}),u="put",c=(0,n.jsx)(n.Fragment,{children:"Mail recipient updated."}),p="Update ".concat(i.name," with the following?"),g+="/".concat(s));let{alertOverrides:f,uuid:x,...j}=i;l.confirm.prepare({actionProceedText:o,content:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{entries:j}),(0,n.jsx)(h.Z,{entries:{alertOverrides:Object.entries(f).reduce((e,t)=>{let[r,n]=t;return n.remove||!n.target||(e[r]={level:n.level,name:n.target.name}),e},{})}})]}),onCancelAppend:()=>r(!1),onProceedAppend:async()=>{l.confirm.loading(!0);let handleError=e=>{let t=(0,v.Z)(e);t.children=(0,n.jsxs)(n.Fragment,{children:[d," ",t.children]}),l.confirm.finish("Error",t),r(!1)};m.Z[u](g,j).then(e=>{let{data:t}=e,r={...i};t&&(r.uuid=t.uuid);let n=a&&a[s],o=getAlertOverrideRequestList(r,n).map(e=>m.Z[e.method](e.url,e.body));Promise.all(o).then(()=>{l.confirm.finish("Success",{children:c}),l["post"===u?"add":"edit"].open(!1)}).catch(handleError)}).catch(handleError)},titleText:p}),l.confirm.open(!0)},validationSchema:M}),{disabledSubmit:g,formik:f,formikErrors:x,handleChange:j}=p,Z=(0,d.useMemo)(()=>"".concat(s,".email"),[s]),b=(0,d.useMemo)(()=>"".concat(s,".level"),[s]),y=(0,d.useMemo)(()=>"".concat(s,".name"),[s]);return(0,n.jsxs)(i.ZP,{columns:{xs:1,sm:2},component:"form",container:!0,onSubmit:e=>{e.preventDefault(),f.submitForm()},spacing:"1em",children:[(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{id:y,label:"Recipient name",name:y,onChange:j,required:!0,value:f.values[s].name})})}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{id:Z,label:"Recipient email",name:Z,onChange:j,required:!0,value:f.values[s].email})})}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(w.Z,{id:b,label:"Alert level",name:b,onChange:f.handleChange,required:!0,selectItems:E,selectProps:{MenuProps:{sx:{["& .".concat(o.Z.paper)]:{maxWidth:{md:"60%",lg:"40%"}}}},renderValue:e=>I[e]},value:f.values[s].level})})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(ManageMailRecipient_ManageAlertOverride,{alertOverrideTargetOptions:t,formikUtils:p,mailRecipientUuid:s})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(F.Z,{count:1,messages:x})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(c.Z,{actions:[{background:"blue",children:a?"Update":"Add",disabled:g,type:"submit"}]})})]})},k=r(48882),q=r(82456),ManageMailRecipient_EditMailRecipientForm=e=>(0,n.jsx)(ManageMailRecipient_AddMailRecipientForm,{...e}),V=r(6903),D=r(67978),ManageMailRecipient_ManageMailRecipient=()=>{let[e,t]=(0,d.useState)(),{altData:r,loading:i}=(0,D.Z)("/anvil",{mod:k.Z}),a=(0,d.useMemo)(()=>r&&Object.values(r).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,t)=>{let r={description:t.description,name:t.name,node:t.uuid,subnodes:[],type:"node",uuid:t.uuid},n=Object.values(t.hosts).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,n)=>{var i;return"dr"===n.type||(e.push({name:n.name,node:t.uuid,type:"subnode",uuid:n.uuid}),null===(i=r.subnodes)||void 0===i||i.push(n.uuid)),e},[]);return e.push(r,...n),e},[]),[r]),{fetch:l,loading:s}=(0,V.Z)({onData:e=>t(e),url:"/alert-override"}),o=(0,d.useMemo)(()=>{if(!r||!e)return;let t=Object.values(e).reduce((e,t)=>{let{node:{uuid:r}}=t;return e[r]?e[r].push(t):e[r]=[t],e},{});return Object.entries(t).reduce((e,t)=>{let[n,i]=t,[a,...l]=i,s=i.length>1&&l.every(e=>{let{level:t}=e;return t===a.level});if(s){let{0:{level:t}}=i,{[n]:a}=r;e[n]={level:t,target:{description:a.description,name:a.name,node:a.uuid,subnodes:i.map(e=>{let{subnode:{uuid:t}}=e;return t}),type:"node",uuid:a.uuid},uuids:i.reduce((e,t)=>{let{subnode:r,uuid:n}=t;return e[n]=r.uuid,e},{})}}else i.forEach(t=>{let{level:r,node:n,subnode:i,uuid:a}=t;e[i.uuid]={level:r,target:{name:i.name,node:n.uuid,type:"subnode",uuid:i.uuid},uuids:{[a]:i.uuid}}});return e},{})},[e,r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(q.Z,{addHeader:"Add mail recipient",editHeader:e=>"Update ".concat(null==e?void 0:e.name),entriesUrl:"/mail-recipient",getAddLoading:e=>e||i,getDeleteErrorMessage:e=>{let{children:t,...r}=e;return{...r,children:(0,n.jsxs)(n.Fragment,{children:["Failed to delete mail recipient(s). ",t]})}},getDeleteHeader:e=>"Delete the following ".concat(e," mail recipient(s)?"),getDeleteSuccessMessage:()=>({children:(0,n.jsx)(n.Fragment,{children:"Successfully deleted mail recipient(s)."})}),getEditLoading:e=>e||s,listEmpty:"No mail recipient(s) found.",onItemClick:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;na&&(0,n.jsx)(ManageMailRecipient_AddMailRecipientForm,{alertOverrideTargetOptions:a,tools:e}),renderDeleteItem:(e,t)=>{let{key:r}=t,i=null==e?void 0:e[r];return(0,n.jsx)(O.Ac,{children:null==i?void 0:i.name})},renderEditForm:(e,t)=>a&&t&&o&&(0,n.jsx)(ManageMailRecipient_EditMailRecipientForm,{alertOverrideTargetOptions:a,mailRecipientUuid:t.uuid,previousFormikValues:{[t.uuid]:{alertOverrides:o,...t}},tools:e}),renderListItem:(e,t)=>{let{name:r}=t;return(0,n.jsx)(O.Ac,{children:r})}})})};let U=g.Ry({address:g.Z_().required(),authentication:g.Z_().oneOf(["none","plain-text","encrypted"]),confirmPassword:g.Z_().when("password",(e,t)=>String(e).length>0?t.required().oneOf([g.iH("password")]):t.optional()),heloDomain:g.Z_().required(),password:g.Z_().optional(),port:g.Rx().required(),security:g.Z_().oneOf(["none","starttls","tls-ssl"]),username:g.Z_().optional(),uuid:g.Z_().uuid().required()}),L=g.Vo(e=>g.Ry((0,f.Z)(e,U)));var ManageMailServer_AddMailServerForm=e=>{let{localhostDomain:t="",mailServerUuid:r,previousFormikValues:a,tools:l}=e,s=(0,d.useMemo)(()=>null!=r?r:(0,u.Z)(),[r]),{disabledSubmit:o,formik:p,formikErrors:g,handleChange:f}=(0,R.Z)({initialValues:null!=a?a:{[s]:{address:"",authentication:"none",heloDomain:t,port:587,security:"none",uuid:s}},onSubmit:(e,t)=>{let{setSubmitting:r}=t,{[s]:i}=e,o="Add",d=(0,n.jsx)(n.Fragment,{children:"Failed to add mail server."}),u="post",c=(0,n.jsx)(n.Fragment,{children:"Mail server added."}),p="Add mail server with the following?",g="/mail-server";a&&(o="Update",d=(0,n.jsx)(n.Fragment,{children:"Failed to update mail server."}),u="put",c=(0,n.jsx)(n.Fragment,{children:"Mail server updated."}),p="Update ".concat(i.address,":").concat(i.port," with the following?"),g+="/".concat(s));let{confirmPassword:f,uuid:x,...j}=i;l.confirm.prepare({actionProceedText:o,content:(0,n.jsx)(h.Z,{entries:j}),onCancelAppend:()=>r(!1),onProceedAppend:()=>{l.confirm.loading(!0),m.Z[u](g,i).then(()=>{l.confirm.finish("Success",{children:c}),l["post"===u?"add":"edit"].open(!1)}).catch(e=>{let t=(0,v.Z)(e);t.children=(0,n.jsxs)(n.Fragment,{children:[d," ",t.children]}),l.confirm.finish("Error",t),r(!1)})},titleText:p}),l.confirm.open(!0)},validationSchema:L}),x=(0,d.useMemo)(()=>"".concat(s,".address"),[s]),j=(0,d.useMemo)(()=>"".concat(s,".authentication"),[s]),Z=(0,d.useMemo)(()=>"".concat(s,".confirmPassword"),[s]),b=(0,d.useMemo)(()=>"".concat(s,".heloDomain"),[s]),M=(0,d.useMemo)(()=>"".concat(s,".password"),[s]),y=(0,d.useMemo)(()=>"".concat(s,".port"),[s]),_=(0,d.useMemo)(()=>"".concat(s,".security"),[s]),O=(0,d.useMemo)(()=>"".concat(s,".username"),[s]);return(0,n.jsxs)(i.ZP,{component:"form",onSubmit:e=>{e.preventDefault(),p.submitForm()},container:!0,columns:{xs:1,sm:2},spacing:"1em",children:[(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{id:x,label:"Server address",name:x,onChange:f,required:!0,value:p.values[s].address})})}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{id:y,label:"Server port",name:y,onChange:f,required:!0,type:"number",value:p.values[s].port})})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(w.Z,{id:_,label:"Server security type",name:_,onChange:f,required:!0,selectItems:["none","starttls","tls-ssl"],value:p.values[s].security})})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(w.Z,{id:j,label:"Server authentication method",name:j,onChange:f,required:!0,selectItems:["none","plain-text","encrypted"],value:p.values[s].authentication})})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{id:b,label:"HELO domain",name:b,onChange:f,required:!0,value:p.values[s].heloDomain})})}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{disableAutofill:!0,id:O,label:"Server username",name:O,onChange:f,value:p.values[s].username})})}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{disableAutofill:!0,id:M,label:"Server password",name:M,onChange:f,type:"password",value:p.values[s].password})})}),(0,n.jsx)(i.ZP,{display:{xs:"none",sm:"initial"},item:!0,sm:1}),(0,n.jsx)(i.ZP,{item:!0,xs:1,children:(0,n.jsx)(A.Z,{input:(0,n.jsx)(P.Z,{disableAutofill:!0,id:Z,label:"Confirm password",name:Z,onChange:f,type:"password",value:p.values[s].confirmPassword})})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(F.Z,{count:1,messages:g})}),(0,n.jsx)(i.ZP,{item:!0,width:"100%",children:(0,n.jsx)(c.Z,{actions:[{background:"blue",children:a?"Update":"Add",disabled:o,type:"submit"}]})})]})},ManageMailServer_EditMailServerForm=e=>(0,n.jsx)(ManageMailServer_AddMailServerForm,{...e}),ManageMailServer_ManageMailServer=()=>{let{data:e,loading:t}=(0,D.Z)("/host/local");return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(q.Z,{addHeader:"Add mail server",editHeader:e=>"Update ".concat(null==e?void 0:e.address,":").concat(null==e?void 0:e.port),entriesUrl:"/mail-server",getAddLoading:e=>e||t,getDeleteErrorMessage:e=>{let{children:t,...r}=e;return{...r,children:(0,n.jsxs)(n.Fragment,{children:["Failed to delete mail server(s). ",t]})}},getDeleteHeader:e=>"Delete the following ".concat(e," mail server(s)?"),getDeleteSuccessMessage:()=>({children:(0,n.jsx)(n.Fragment,{children:"Successfully deleted mail server(s)."})}),listEmpty:"No mail server(s) found",renderAddForm:t=>e&&(0,n.jsx)(ManageMailServer_AddMailServerForm,{localhostDomain:e.domain,tools:t}),renderDeleteItem:(e,t)=>{let{key:r}=t,i=null==e?void 0:e[r];return(0,n.jsxs)(O.Ac,{children:[null==i?void 0:i.address,":",null==i?void 0:i.port]})},renderEditForm:(e,t)=>t&&(0,n.jsx)(ManageMailServer_EditMailServerForm,{mailServerUuid:t.uuid,previousFormikValues:{[t.uuid]:t},tools:e}),renderListItem:(e,t)=>{let{address:r,port:i}=t;return(0,n.jsxs)(O.Ac,{children:[r,":",i]})}})})},N=r(37260),mail_config=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:"Mail Config"})}),(0,n.jsx)(s.Z,{}),(0,n.jsxs)(i.ZP,{container:!0,columns:{xs:1,md:6,lg:4},children:[(0,n.jsx)(i.ZP,{item:!0,xs:1}),(0,n.jsx)(i.ZP,{item:!0,xs:1,md:4,lg:2,children:(0,n.jsxs)(N.s_,{children:[(0,n.jsx)(N.V9,{children:(0,n.jsx)(O.z,{children:"Mail config"})}),(0,n.jsx)(N.TZ,{expandInitially:!0,header:"Manage mail servers",children:(0,n.jsx)(ManageMailServer_ManageMailServer,{})}),(0,n.jsx)(N.TZ,{expandInitially:!0,header:"Manage mail recipients",children:(0,n.jsx)(ManageMailRecipient_ManageMailRecipient,{})})]})})]})]})}},function(e){e.O(0,[494,804,416,50,263,213,310,461,264,775,675,633,733,17,774,888,179],function(){return e(e.s=24084)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/manage-element-766bd9ef38ccbfa4.js b/striker-ui/out/_next/static/chunks/pages/manage-element-766bd9ef38ccbfa4.js deleted file mode 100644 index bc131059..00000000 --- a/striker-ui/out/_next/static/chunks/pages/manage-element-766bd9ef38ccbfa4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[808],{85982:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return s6.tabClasses},tabsClasses:function(){return el.tabsClasses}});var a=t(2373);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99164);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}});var r=t(22307);t.o(r,"tabClasses")&&t.d(e,{tabClasses:function(){return r.tabClasses}}),t.o(r,"tabsClasses")&&t.d(e,{tabsClasses:function(){return r.tabsClasses}});var l=t(16781);t.o(l,"tabClasses")&&t.d(e,{tabClasses:function(){return l.tabClasses}}),t.o(l,"tabsClasses")&&t.d(e,{tabsClasses:function(){return l.tabsClasses}});var o=t(21490);t.o(o,"tabClasses")&&t.d(e,{tabClasses:function(){return o.tabClasses}}),t.o(o,"tabsClasses")&&t.d(e,{tabsClasses:function(){return o.tabsClasses}});var u=t(82120);t.o(u,"tabClasses")&&t.d(e,{tabClasses:function(){return u.tabClasses}}),t.o(u,"tabsClasses")&&t.d(e,{tabsClasses:function(){return u.tabsClasses}});var i=t(52290);t.o(i,"tabClasses")&&t.d(e,{tabClasses:function(){return i.tabClasses}}),t.o(i,"tabsClasses")&&t.d(e,{tabsClasses:function(){return i.tabsClasses}});var c=t(49179);t.o(c,"tabClasses")&&t.d(e,{tabClasses:function(){return c.tabClasses}}),t.o(c,"tabsClasses")&&t.d(e,{tabsClasses:function(){return c.tabsClasses}});var d=t(89904);t.o(d,"tabClasses")&&t.d(e,{tabClasses:function(){return d.tabClasses}}),t.o(d,"tabsClasses")&&t.d(e,{tabsClasses:function(){return d.tabsClasses}});var b=t(3498);t.o(b,"tabClasses")&&t.d(e,{tabClasses:function(){return b.tabClasses}}),t.o(b,"tabsClasses")&&t.d(e,{tabsClasses:function(){return b.tabsClasses}});var C=t(53624);t.o(C,"tabClasses")&&t.d(e,{tabClasses:function(){return C.tabClasses}}),t.o(C,"tabsClasses")&&t.d(e,{tabsClasses:function(){return C.tabsClasses}});var f=t(87305);t.o(f,"tabClasses")&&t.d(e,{tabClasses:function(){return f.tabClasses}}),t.o(f,"tabsClasses")&&t.d(e,{tabsClasses:function(){return f.tabsClasses}});var p=t(58987);t.o(p,"tabClasses")&&t.d(e,{tabClasses:function(){return p.tabClasses}}),t.o(p,"tabsClasses")&&t.d(e,{tabsClasses:function(){return p.tabsClasses}});var m=t(17714);t.o(m,"tabClasses")&&t.d(e,{tabClasses:function(){return m.tabClasses}}),t.o(m,"tabsClasses")&&t.d(e,{tabsClasses:function(){return m.tabsClasses}});var h=t(34952);t.o(h,"tabClasses")&&t.d(e,{tabClasses:function(){return h.tabClasses}}),t.o(h,"tabsClasses")&&t.d(e,{tabsClasses:function(){return h.tabsClasses}});var v=t(37373);t.o(v,"tabClasses")&&t.d(e,{tabClasses:function(){return v.tabClasses}}),t.o(v,"tabsClasses")&&t.d(e,{tabsClasses:function(){return v.tabsClasses}});var x=t(32749);t.o(x,"tabClasses")&&t.d(e,{tabClasses:function(){return x.tabClasses}}),t.o(x,"tabsClasses")&&t.d(e,{tabsClasses:function(){return x.tabsClasses}});var g=t(21727);t.o(g,"tabClasses")&&t.d(e,{tabClasses:function(){return g.tabClasses}}),t.o(g,"tabsClasses")&&t.d(e,{tabsClasses:function(){return g.tabsClasses}});var j=t(19100);t.o(j,"tabClasses")&&t.d(e,{tabClasses:function(){return j.tabClasses}}),t.o(j,"tabsClasses")&&t.d(e,{tabsClasses:function(){return j.tabsClasses}});var w=t(15975);t.o(w,"tabClasses")&&t.d(e,{tabClasses:function(){return w.tabClasses}}),t.o(w,"tabsClasses")&&t.d(e,{tabsClasses:function(){return w.tabsClasses}});var M=t(26146);t.o(M,"tabClasses")&&t.d(e,{tabClasses:function(){return M.tabClasses}}),t.o(M,"tabsClasses")&&t.d(e,{tabsClasses:function(){return M.tabsClasses}});var Z=t(82539);t.o(Z,"tabClasses")&&t.d(e,{tabClasses:function(){return Z.tabClasses}}),t.o(Z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Z.tabsClasses}});var k=t(3330);t.o(k,"tabClasses")&&t.d(e,{tabClasses:function(){return k.tabClasses}}),t.o(k,"tabsClasses")&&t.d(e,{tabsClasses:function(){return k.tabsClasses}});var y=t(32180);t.o(y,"tabClasses")&&t.d(e,{tabClasses:function(){return y.tabClasses}}),t.o(y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return y.tabsClasses}});var I=t(10964);t.o(I,"tabClasses")&&t.d(e,{tabClasses:function(){return I.tabClasses}}),t.o(I,"tabsClasses")&&t.d(e,{tabsClasses:function(){return I.tabsClasses}});var P=t(72260);t.o(P,"tabClasses")&&t.d(e,{tabClasses:function(){return P.tabClasses}}),t.o(P,"tabsClasses")&&t.d(e,{tabsClasses:function(){return P.tabsClasses}});var F=t(42160);t.o(F,"tabClasses")&&t.d(e,{tabClasses:function(){return F.tabClasses}}),t.o(F,"tabsClasses")&&t.d(e,{tabsClasses:function(){return F.tabsClasses}});var S=t(96474);t.o(S,"tabClasses")&&t.d(e,{tabClasses:function(){return S.tabClasses}}),t.o(S,"tabsClasses")&&t.d(e,{tabsClasses:function(){return S.tabsClasses}});var A=t(56729);t.o(A,"tabClasses")&&t.d(e,{tabClasses:function(){return A.tabClasses}}),t.o(A,"tabsClasses")&&t.d(e,{tabsClasses:function(){return A.tabsClasses}});var T=t(36111);t.o(T,"tabClasses")&&t.d(e,{tabClasses:function(){return T.tabClasses}}),t.o(T,"tabsClasses")&&t.d(e,{tabsClasses:function(){return T.tabsClasses}});var U=t(47170);t.o(U,"tabClasses")&&t.d(e,{tabClasses:function(){return U.tabClasses}}),t.o(U,"tabsClasses")&&t.d(e,{tabsClasses:function(){return U.tabsClasses}});var _=t(3897);t.o(_,"tabClasses")&&t.d(e,{tabClasses:function(){return _.tabClasses}}),t.o(_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return _.tabsClasses}});var N=t(4602);t.o(N,"tabClasses")&&t.d(e,{tabClasses:function(){return N.tabClasses}}),t.o(N,"tabsClasses")&&t.d(e,{tabsClasses:function(){return N.tabsClasses}});var R=t(75814);t.o(R,"tabClasses")&&t.d(e,{tabClasses:function(){return R.tabClasses}}),t.o(R,"tabsClasses")&&t.d(e,{tabsClasses:function(){return R.tabsClasses}});var O=t(91370);t.o(O,"tabClasses")&&t.d(e,{tabClasses:function(){return O.tabClasses}}),t.o(O,"tabsClasses")&&t.d(e,{tabsClasses:function(){return O.tabsClasses}});var E=t(95118);t.o(E,"tabClasses")&&t.d(e,{tabClasses:function(){return E.tabClasses}}),t.o(E,"tabsClasses")&&t.d(e,{tabsClasses:function(){return E.tabsClasses}});var B=t(83972);t.o(B,"tabClasses")&&t.d(e,{tabClasses:function(){return B.tabClasses}}),t.o(B,"tabsClasses")&&t.d(e,{tabsClasses:function(){return B.tabsClasses}});var H=t(52756);t.o(H,"tabClasses")&&t.d(e,{tabClasses:function(){return H.tabClasses}}),t.o(H,"tabsClasses")&&t.d(e,{tabsClasses:function(){return H.tabsClasses}});var D=t(13694);t.o(D,"tabClasses")&&t.d(e,{tabClasses:function(){return D.tabClasses}}),t.o(D,"tabsClasses")&&t.d(e,{tabsClasses:function(){return D.tabsClasses}});var G=t(98371);t.o(G,"tabClasses")&&t.d(e,{tabClasses:function(){return G.tabClasses}}),t.o(G,"tabsClasses")&&t.d(e,{tabsClasses:function(){return G.tabsClasses}});var q=t(35714);t.o(q,"tabClasses")&&t.d(e,{tabClasses:function(){return q.tabClasses}}),t.o(q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return q.tabsClasses}});var L=t(68247);t.o(L,"tabClasses")&&t.d(e,{tabClasses:function(){return L.tabClasses}}),t.o(L,"tabsClasses")&&t.d(e,{tabsClasses:function(){return L.tabsClasses}});var V=t(45237);t.o(V,"tabClasses")&&t.d(e,{tabClasses:function(){return V.tabClasses}}),t.o(V,"tabsClasses")&&t.d(e,{tabsClasses:function(){return V.tabsClasses}});var W=t(39884);t.o(W,"tabClasses")&&t.d(e,{tabClasses:function(){return W.tabClasses}}),t.o(W,"tabsClasses")&&t.d(e,{tabsClasses:function(){return W.tabsClasses}});var z=t(33805);t.o(z,"tabClasses")&&t.d(e,{tabClasses:function(){return z.tabClasses}}),t.o(z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return z.tabsClasses}});var $=t(15282);t.o($,"tabClasses")&&t.d(e,{tabClasses:function(){return $.tabClasses}}),t.o($,"tabsClasses")&&t.d(e,{tabsClasses:function(){return $.tabsClasses}});var Q=t(24099);t.o(Q,"tabClasses")&&t.d(e,{tabClasses:function(){return Q.tabClasses}}),t.o(Q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Q.tabsClasses}});var K=t(37870);t.o(K,"tabClasses")&&t.d(e,{tabClasses:function(){return K.tabClasses}}),t.o(K,"tabsClasses")&&t.d(e,{tabsClasses:function(){return K.tabsClasses}});var X=t(97236);t.o(X,"tabClasses")&&t.d(e,{tabClasses:function(){return X.tabClasses}}),t.o(X,"tabsClasses")&&t.d(e,{tabsClasses:function(){return X.tabsClasses}});var J=t(41712);t.o(J,"tabClasses")&&t.d(e,{tabClasses:function(){return J.tabClasses}}),t.o(J,"tabsClasses")&&t.d(e,{tabsClasses:function(){return J.tabsClasses}});var Y=t(66210);t.o(Y,"tabClasses")&&t.d(e,{tabClasses:function(){return Y.tabClasses}}),t.o(Y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Y.tabsClasses}});var ss=t(40901);t.o(ss,"tabClasses")&&t.d(e,{tabClasses:function(){return ss.tabClasses}}),t.o(ss,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ss.tabsClasses}});var se=t(19496);t.o(se,"tabClasses")&&t.d(e,{tabClasses:function(){return se.tabClasses}}),t.o(se,"tabsClasses")&&t.d(e,{tabsClasses:function(){return se.tabsClasses}});var st=t(33869);t.o(st,"tabClasses")&&t.d(e,{tabClasses:function(){return st.tabClasses}}),t.o(st,"tabsClasses")&&t.d(e,{tabsClasses:function(){return st.tabsClasses}});var sa=t(47259);t.o(sa,"tabClasses")&&t.d(e,{tabClasses:function(){return sa.tabClasses}}),t.o(sa,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sa.tabsClasses}});var sn=t(55857);t.o(sn,"tabClasses")&&t.d(e,{tabClasses:function(){return sn.tabClasses}}),t.o(sn,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sn.tabsClasses}});var sr=t(68282);t.o(sr,"tabClasses")&&t.d(e,{tabClasses:function(){return sr.tabClasses}}),t.o(sr,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sr.tabsClasses}});var sl=t(95124);t.o(sl,"tabClasses")&&t.d(e,{tabClasses:function(){return sl.tabClasses}}),t.o(sl,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sl.tabsClasses}});var so=t(34857);t.o(so,"tabClasses")&&t.d(e,{tabClasses:function(){return so.tabClasses}}),t.o(so,"tabsClasses")&&t.d(e,{tabsClasses:function(){return so.tabsClasses}});var su=t(69232);t.o(su,"tabClasses")&&t.d(e,{tabClasses:function(){return su.tabClasses}}),t.o(su,"tabsClasses")&&t.d(e,{tabsClasses:function(){return su.tabsClasses}});var si=t(95461);t.o(si,"tabClasses")&&t.d(e,{tabClasses:function(){return si.tabClasses}}),t.o(si,"tabsClasses")&&t.d(e,{tabsClasses:function(){return si.tabsClasses}});var sc=t(25477);t.o(sc,"tabClasses")&&t.d(e,{tabClasses:function(){return sc.tabClasses}}),t.o(sc,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sc.tabsClasses}});var sd=t(30207);t.o(sd,"tabClasses")&&t.d(e,{tabClasses:function(){return sd.tabClasses}}),t.o(sd,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sd.tabsClasses}});var sb=t(68123);t.o(sb,"tabClasses")&&t.d(e,{tabClasses:function(){return sb.tabClasses}}),t.o(sb,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sb.tabsClasses}});var sC=t(90596);t.o(sC,"tabClasses")&&t.d(e,{tabClasses:function(){return sC.tabClasses}}),t.o(sC,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sC.tabsClasses}});var sf=t(45289);t.o(sf,"tabClasses")&&t.d(e,{tabClasses:function(){return sf.tabClasses}}),t.o(sf,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sf.tabsClasses}});var sp=t(15162);t.o(sp,"tabClasses")&&t.d(e,{tabClasses:function(){return sp.tabClasses}}),t.o(sp,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sp.tabsClasses}});var sm=t(91032);t.o(sm,"tabClasses")&&t.d(e,{tabClasses:function(){return sm.tabClasses}}),t.o(sm,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sm.tabsClasses}});var sh=t(74567);t.o(sh,"tabClasses")&&t.d(e,{tabClasses:function(){return sh.tabClasses}}),t.o(sh,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sh.tabsClasses}});var sv=t(91107);t.o(sv,"tabClasses")&&t.d(e,{tabClasses:function(){return sv.tabClasses}}),t.o(sv,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sv.tabsClasses}});var sx=t(44395);t.o(sx,"tabClasses")&&t.d(e,{tabClasses:function(){return sx.tabClasses}}),t.o(sx,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sx.tabsClasses}});var sg=t(48699);t.o(sg,"tabClasses")&&t.d(e,{tabClasses:function(){return sg.tabClasses}}),t.o(sg,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sg.tabsClasses}});var sj=t(14426);t.o(sj,"tabClasses")&&t.d(e,{tabClasses:function(){return sj.tabClasses}}),t.o(sj,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sj.tabsClasses}});var sw=t(92429);t.o(sw,"tabClasses")&&t.d(e,{tabClasses:function(){return sw.tabClasses}}),t.o(sw,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sw.tabsClasses}});var sM=t(40512);t.o(sM,"tabClasses")&&t.d(e,{tabClasses:function(){return sM.tabClasses}}),t.o(sM,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sM.tabsClasses}});var sZ=t(12331);t.o(sZ,"tabClasses")&&t.d(e,{tabClasses:function(){return sZ.tabClasses}}),t.o(sZ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sZ.tabsClasses}});var sk=t(86071);t.o(sk,"tabClasses")&&t.d(e,{tabClasses:function(){return sk.tabClasses}}),t.o(sk,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sk.tabsClasses}});var sy=t(67971);t.o(sy,"tabClasses")&&t.d(e,{tabClasses:function(){return sy.tabClasses}}),t.o(sy,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sy.tabsClasses}});var sI=t(26736);t.o(sI,"tabClasses")&&t.d(e,{tabClasses:function(){return sI.tabClasses}}),t.o(sI,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sI.tabsClasses}});var sP=t(46570);t.o(sP,"tabClasses")&&t.d(e,{tabClasses:function(){return sP.tabClasses}}),t.o(sP,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sP.tabsClasses}});var sF=t(33472);t.o(sF,"tabClasses")&&t.d(e,{tabClasses:function(){return sF.tabClasses}}),t.o(sF,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sF.tabsClasses}});var sS=t(8268);t.o(sS,"tabClasses")&&t.d(e,{tabClasses:function(){return sS.tabClasses}}),t.o(sS,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sS.tabsClasses}});var sA=t(63238);t.o(sA,"tabClasses")&&t.d(e,{tabClasses:function(){return sA.tabClasses}}),t.o(sA,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sA.tabsClasses}});var sT=t(96194);t.o(sT,"tabClasses")&&t.d(e,{tabClasses:function(){return sT.tabClasses}}),t.o(sT,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sT.tabsClasses}});var sU=t(51834);t.o(sU,"tabClasses")&&t.d(e,{tabClasses:function(){return sU.tabClasses}}),t.o(sU,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sU.tabsClasses}});var s_=t(61652);t.o(s_,"tabClasses")&&t.d(e,{tabClasses:function(){return s_.tabClasses}}),t.o(s_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s_.tabsClasses}});var sN=t(10267);t.o(sN,"tabClasses")&&t.d(e,{tabClasses:function(){return sN.tabClasses}}),t.o(sN,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sN.tabsClasses}});var sR=t(25190);t.o(sR,"tabClasses")&&t.d(e,{tabClasses:function(){return sR.tabClasses}}),t.o(sR,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sR.tabsClasses}});var sO=t(27193);t.o(sO,"tabClasses")&&t.d(e,{tabClasses:function(){return sO.tabClasses}}),t.o(sO,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sO.tabsClasses}});var sE=t(77319);t.o(sE,"tabClasses")&&t.d(e,{tabClasses:function(){return sE.tabClasses}}),t.o(sE,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sE.tabsClasses}});var sB=t(13713);t.o(sB,"tabClasses")&&t.d(e,{tabClasses:function(){return sB.tabClasses}}),t.o(sB,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sB.tabsClasses}});var sH=t(75866);t.o(sH,"tabClasses")&&t.d(e,{tabClasses:function(){return sH.tabClasses}}),t.o(sH,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sH.tabsClasses}});var sD=t(18782);t.o(sD,"tabClasses")&&t.d(e,{tabClasses:function(){return sD.tabClasses}}),t.o(sD,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sD.tabsClasses}});var sG=t(45525);t.o(sG,"tabClasses")&&t.d(e,{tabClasses:function(){return sG.tabClasses}}),t.o(sG,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sG.tabsClasses}});var sq=t(82325);t.o(sq,"tabClasses")&&t.d(e,{tabClasses:function(){return sq.tabClasses}}),t.o(sq,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sq.tabsClasses}});var sL=t(59976);t.o(sL,"tabClasses")&&t.d(e,{tabClasses:function(){return sL.tabClasses}}),t.o(sL,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sL.tabsClasses}});var sV=t(25673);t.o(sV,"tabClasses")&&t.d(e,{tabClasses:function(){return sV.tabClasses}}),t.o(sV,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sV.tabsClasses}});var sW=t(74256);t.o(sW,"tabClasses")&&t.d(e,{tabClasses:function(){return sW.tabClasses}}),t.o(sW,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sW.tabsClasses}});var sz=t(14189);t.o(sz,"tabClasses")&&t.d(e,{tabClasses:function(){return sz.tabClasses}}),t.o(sz,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sz.tabsClasses}});var s$=t(84122);t.o(s$,"tabClasses")&&t.d(e,{tabClasses:function(){return s$.tabClasses}}),t.o(s$,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s$.tabsClasses}});var sQ=t(46895);t.o(sQ,"tabClasses")&&t.d(e,{tabClasses:function(){return sQ.tabClasses}}),t.o(sQ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sQ.tabsClasses}});var sK=t(55167);t.o(sK,"tabClasses")&&t.d(e,{tabClasses:function(){return sK.tabClasses}}),t.o(sK,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sK.tabsClasses}});var sX=t(70947);t.o(sX,"tabClasses")&&t.d(e,{tabClasses:function(){return sX.tabClasses}}),t.o(sX,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sX.tabsClasses}});var sJ=t(99761);t.o(sJ,"tabClasses")&&t.d(e,{tabClasses:function(){return sJ.tabClasses}}),t.o(sJ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sJ.tabsClasses}});var sY=t(67669);t.o(sY,"tabClasses")&&t.d(e,{tabClasses:function(){return sY.tabClasses}}),t.o(sY,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sY.tabsClasses}});var s0=t(60246);t.o(s0,"tabClasses")&&t.d(e,{tabClasses:function(){return s0.tabClasses}}),t.o(s0,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s0.tabsClasses}});var s1=t(21413);t.o(s1,"tabClasses")&&t.d(e,{tabClasses:function(){return s1.tabClasses}}),t.o(s1,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s1.tabsClasses}});var s2=t(62284);t.o(s2,"tabClasses")&&t.d(e,{tabClasses:function(){return s2.tabClasses}}),t.o(s2,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s2.tabsClasses}});var s5=t(75113);t.o(s5,"tabClasses")&&t.d(e,{tabClasses:function(){return s5.tabClasses}}),t.o(s5,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s5.tabsClasses}});var s9=t(62210);t.o(s9,"tabClasses")&&t.d(e,{tabClasses:function(){return s9.tabClasses}}),t.o(s9,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s9.tabsClasses}});var s3=t(40723);t.o(s3,"tabClasses")&&t.d(e,{tabClasses:function(){return s3.tabClasses}}),t.o(s3,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s3.tabsClasses}});var s6=t(63163);t.o(s6,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s6.tabsClasses}});var s7=t(60374);t.o(s7,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s7.tabsClasses}});var s4=t(25501);t.o(s4,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s4.tabsClasses}});var s8=t(26945);t.o(s8,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s8.tabsClasses}});var es=t(55644);t.o(es,"tabsClasses")&&t.d(e,{tabsClasses:function(){return es.tabsClasses}});var ee=t(22238);t.o(ee,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ee.tabsClasses}});var et=t(83239);t.o(et,"tabsClasses")&&t.d(e,{tabsClasses:function(){return et.tabsClasses}});var ea=t(56495);t.o(ea,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ea.tabsClasses}});var en=t(16338);t.o(en,"tabsClasses")&&t.d(e,{tabsClasses:function(){return en.tabsClasses}});var er=t(22164);t.o(er,"tabsClasses")&&t.d(e,{tabsClasses:function(){return er.tabsClasses}});var el=t(22386)},50303:function(){},57042:function(){},22307:function(s,e,t){"use strict";var a=t(57042);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},68332:function(){},16781:function(s,e,t){"use strict";var a=t(68332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},38599:function(){},21490:function(s,e,t){"use strict";var a=t(38599);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},49028:function(){},82120:function(s,e,t){"use strict";var a=t(49028);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83419:function(){},52290:function(s,e,t){"use strict";var a=t(83419);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},41976:function(){},49179:function(s,e,t){"use strict";var a=t(41976);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},48036:function(){},89904:function(s,e,t){"use strict";var a=t(48036);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21512:function(){},3498:function(s,e,t){"use strict";var a=t(21512);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24612:function(){},53624:function(s,e,t){"use strict";var a=t(24612);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3656:function(){},87305:function(s,e,t){"use strict";var a=t(3656);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},80262:function(){},58987:function(s,e,t){"use strict";var a=t(80262);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},64179:function(){},17714:function(s,e,t){"use strict";var a=t(64179);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88001:function(){},34952:function(s,e,t){"use strict";var a=t(88001);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1396:function(){},37373:function(s,e,t){"use strict";var a=t(1396);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54354:function(){},32749:function(s,e,t){"use strict";var a=t(54354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60817:function(){},21727:function(s,e,t){"use strict";var a=t(60817);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},6091:function(){},19100:function(s,e,t){"use strict";var a=t(6091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88980:function(){},15975:function(s,e,t){"use strict";var a=t(88980);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99127);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},99127:function(){},99277:function(){},26146:function(s,e,t){"use strict";var a=t(99277);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66993:function(){},82539:function(s,e,t){"use strict";var a=t(66993);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},90705:function(){},3330:function(s,e,t){"use strict";var a=t(90705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},89513:function(){},32180:function(s,e,t){"use strict";var a=t(89513);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26481:function(){},10964:function(s,e,t){"use strict";var a=t(26481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24079:function(){},72260:function(s,e,t){"use strict";var a=t(24079);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},74215:function(){},42160:function(s,e,t){"use strict";var a=t(74215);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},35289:function(){},96474:function(s,e,t){"use strict";var a=t(35289);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31106:function(){},56729:function(s,e,t){"use strict";var a=t(31106);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54760:function(){},36111:function(s,e,t){"use strict";var a=t(54760);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},47170:function(){},91707:function(){},3897:function(s,e,t){"use strict";var a=t(91707);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},56758:function(){},4602:function(s,e,t){"use strict";var a=t(56758);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},75814:function(){},43754:function(){},95118:function(s,e,t){"use strict";var a=t(43754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5614:function(){},83972:function(s,e,t){"use strict";var a=t(5614);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31353:function(){},52756:function(s,e,t){"use strict";var a=t(31353);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},76827:function(){},13694:function(s,e,t){"use strict";var a=t(76827);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83481:function(){},98371:function(s,e,t){"use strict";var a=t(83481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54367:function(){},35714:function(s,e,t){"use strict";var a=t(54367);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20091:function(){},68247:function(s,e,t){"use strict";var a=t(20091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60482:function(){},45237:function(s,e,t){"use strict";var a=t(60482);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},39884:function(){},49144:function(){},33805:function(s,e,t){"use strict";var a=t(49144);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21577:function(){},15282:function(s,e,t){"use strict";var a=t(21577);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26873:function(){},24099:function(s,e,t){"use strict";var a=t(26873);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},25312:function(){},37870:function(s,e,t){"use strict";var a=t(25312);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99119:function(){},97236:function(s,e,t){"use strict";var a=t(99119);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},43992:function(){},91299:function(){},41712:function(s,e,t){"use strict";var a=t(43992);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(91299);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90190:function(){},66210:function(s,e,t){"use strict";var a=t(90190);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},19496:function(){},33869:function(){},58548:function(){},47259:function(s,e,t){"use strict";var a=t(58548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55332:function(){},55857:function(s,e,t){"use strict";var a=t(55332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},33255:function(){},68282:function(s,e,t){"use strict";var a=t(33255);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62587:function(){},95124:function(s,e,t){"use strict";var a=t(62587);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},82354:function(){},34857:function(s,e,t){"use strict";var a=t(82354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},69232:function(s,e,t){"use strict";var a=t(55149);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55149:function(){},95461:function(s,e,t){"use strict";var a=t(37974);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37974:function(){},25477:function(s,e,t){"use strict";var a=t(1514);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1514:function(){},30207:function(s,e,t){"use strict";var a=t(78051);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},78051:function(){},68123:function(s,e,t){"use strict";var a=t(54098);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54098:function(){},90596:function(s,e,t){"use strict";var a=t(79665);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},79665:function(){},45289:function(s,e,t){"use strict";var a=t(13724);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13724:function(){},15162:function(s,e,t){"use strict";var a=t(5569);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5569:function(){},91032:function(s,e,t){"use strict";var a=t(54417);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54417:function(){},74567:function(s,e,t){"use strict";var a=t(99811);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99811:function(){},91107:function(s,e,t){"use strict";var a=t(30450);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30450:function(){},44395:function(s,e,t){"use strict";var a=t(96488);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},96488:function(){},48699:function(s,e,t){"use strict";var a=t(55865);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55865:function(){},14426:function(s,e,t){"use strict";var a=t(87147);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},87147:function(){},92429:function(s,e,t){"use strict";var a=t(32212);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32212:function(){},40512:function(s,e,t){"use strict";var a=t(31820);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31820:function(){},12331:function(){},86071:function(s,e,t){"use strict";var a=t(5240);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5240:function(){},67971:function(s,e,t){"use strict";var a=t(85310);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},85310:function(){},26736:function(s,e,t){"use strict";var a=t(20902);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20902:function(){},46570:function(){},33472:function(s,e,t){"use strict";var a=t(37393);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37393:function(){},8268:function(s,e,t){"use strict";var a=t(54705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54705:function(){},63238:function(s,e,t){"use strict";var a=t(5317);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5317:function(){},96194:function(s,e,t){"use strict";var a=t(62475);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62475:function(){},79428:function(){},51834:function(s,e,t){"use strict";var a=t(79428);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(32336);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},32336:function(){},61652:function(){},10267:function(){},25190:function(s,e,t){"use strict";var a=t(88094);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88094:function(){},27193:function(){},77319:function(s,e,t){"use strict";var a=t(66432);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66432:function(){},13713:function(s,e,t){"use strict";var a=t(40597);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},40597:function(){},75866:function(s,e,t){"use strict";var a=t(34456);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},34456:function(){},18782:function(s,e,t){"use strict";var a=t(67504);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67504:function(){},45525:function(){},56166:function(){},82325:function(s,e,t){"use strict";var a=t(56166);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(28925);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},28925:function(){},59976:function(s,e,t){"use strict";var a=t(42709);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},42709:function(){},25673:function(s,e,t){"use strict";var a=t(10754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10754:function(){},74256:function(s,e,t){"use strict";var a=t(93989);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},93989:function(){},14189:function(s,e,t){"use strict";var a=t(2437);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},2437:function(){},84122:function(s,e,t){"use strict";var a=t(29406);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},29406:function(){},46895:function(){},18618:function(){},55167:function(s,e,t){"use strict";var a=t(90834);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(18618);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90834:function(){},70947:function(s,e,t){"use strict";var a=t(13548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13548:function(){},99761:function(s,e,t){"use strict";var a=t(63520);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},63520:function(){},67669:function(s,e,t){"use strict";var a=t(20204);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20204:function(){},60246:function(s,e,t){"use strict";var a=t(10261);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10261:function(){},21413:function(s,e,t){"use strict";var a=t(71794);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},71794:function(){},80902:function(){},62284:function(s,e,t){"use strict";var a=t(25325);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(80902);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},25325:function(){},75113:function(s,e,t){"use strict";var a=t(62568);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62568:function(){},62210:function(){},40723:function(s,e,t){"use strict";var a=t(32705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32705:function(){},63163:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return a.Z}});var a=t(21073),n=t(70612);t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},60374:function(s,e,t){"use strict";var a=t(13899);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13899:function(){},25501:function(s,e,t){"use strict";var a=t(67893);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67893:function(){},26945:function(s,e,t){"use strict";var a=t(61725);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},61725:function(){},55644:function(s,e,t){"use strict";var a=t(3707);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3707:function(){},22238:function(s,e,t){"use strict";var a=t(30148);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30148:function(){},83239:function(s,e,t){"use strict";var a=t(55969);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55969:function(){},56495:function(s,e,t){"use strict";var a=t(73632);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},73632:function(){},16338:function(s,e,t){"use strict";var a=t(83479);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83479:function(){},22164:function(s,e,t){"use strict";var a=t(3580);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3580:function(){},22386:function(s,e,t){"use strict";t.d(e,{tabsClasses:function(){return a.Z}});var a=t(90852)},1234:function(){},89860:function(){},40901:function(s,e,t){"use strict";var a=t(1234);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(89860);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},91370:function(){},2373:function(s,e,t){"use strict";var a=t(50303);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99164:function(){},70612:function(){},29582:function(s,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage-element",function(){return t(86472)}])},87038:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(56597);let l=(0,n.forwardRef)((s,e)=>{let{children:t,contentContainerProps:l,dialogProps:o,onSubmitAppend:u,proceedButtonProps:i,scrollBoxProps:c,scrollContent:d,...b}=s,C=(0,n.useMemo)(()=>({...l,component:"form",onSubmit:function(){for(var s=arguments.length,e=Array(s),t=0;t({...c,sx:d?{overflowX:"hidden",paddingTop:".6em",...null==c?void 0:c.sx}:null==c?void 0:c.sx}),[c,d]);return(0,a.jsx)(r.Z,{dialogProps:o,contentContainerProps:C,proceedButtonProps:{...i,type:"submit"},scrollContent:d,scrollBoxProps:f,wide:!0,...b,ref:e,children:t})});l.displayName="FormDialog",e.Z=l},15079:function(s,e,t){"use strict";var a=t(85893),n=t(97212),r=t(78462),l=t(5616),o=t(48403),u=t.n(o),i=t(55238),c=t(84154);let capEntryLabel=s=>{let e=s.replace(/([a-z\d])([A-Z])/g,"$1 $2"),t=e.toLowerCase();return u()(t)},renderEntryValueWithMono=s=>{let{entry:e}=s;return(0,a.jsx)(c.$_,{whiteSpace:"nowrap",children:String(e)})},renderEntryValueWithPassword=s=>{let{entry:e,key:t}=s;return/passw/i.test(t)?(0,a.jsx)(c.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(e)}):renderEntryValueWithMono(s)},buildEntryList=s=>{let{depth:e=0,entries:t,getEntryLabel:l,getListProps:o,getListItemProps:u,listKey:i,maxDepth:c,renderEntry:d,renderEntryValue:b}=s,C=[];Object.entries(t).forEach(s=>{let[t,r]=s,o="form-summary-entry-".concat(t),i=null!==r&&"object"==typeof r,f=i?null:r;C.push((0,a.jsx)(n.ZP,{sx:{paddingLeft:"".concat(e,"em")},...null==u?void 0:u.call(null,{depth:e,entry:f,key:t}),children:d({depth:e,entry:f,getLabel:l,key:t,nest:i,renderValue:b})},o)),i&&e{let{entries:e,getEntryLabel:t=s=>{let{cap:e,key:t}=s;return e(t)},getListProps:n,getListItemProps:r,hasPassword:o,maxDepth:u=3,renderEntry:d=s=>{let{depth:e,entry:t,getLabel:n,key:r,nest:o,renderValue:u}=s;return(0,a.jsxs)(i.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,a.jsx)(c.Ac,{children:n({cap:capEntryLabel,depth:e,entry:t,key:r})}),(0,a.jsx)(l.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!o&&u({depth:e,entry:t,key:r})})]})},renderEntryValue:b=s=>{let{entry:e}=s;return["",null,void 0].some(s=>e===s)?(0,a.jsx)(c.Ac,{children:"none"}):o?renderEntryValueWithPassword(s):renderEntryValueWithMono(s)}}=s;return buildEntryList({entries:e,getEntryLabel:t,getListProps:n,getListItemProps:r,maxDepth:u,renderEntry:d,renderEntryValue:b})}},88187:function(s,e,t){"use strict";var a=t(85893),n=t(5616),r=t(67294),l=t(94121),o=t(19467),u=t(55238),i=t(37039),c=t(92917),d=t(21642),b=t(55675),C=t(81796),f=t(50233),p=t(96867);let m={width:"100%"},h="gate-input",v="".concat(h,"-credential-id"),x="".concat(h,"-credential-passphrase"),g="access",j=(0,r.forwardRef)((s,e)=>{let{formContainer:t=!0,gridProps:{columns:h={xs:1,sm:2},layout:j,spacing:w="1em",...M}={},identifierId:Z=v,identifierInputTestBatchBuilder:k=f.Gn,identifierLabel:y,identifierOutlinedInputWithLabelProps:{formControlProps:I={},inputProps:P,...F}={},onIdentifierBlurAppend:S,onSubmit:A,onSubmitAppend:T,passphraseId:U=x,passphraseLabel:_,passphraseOutlinedInputWithLabelProps:{formControlProps:N={},inputProps:R,...O}={},submitLabel:E,allowSubmit:B=t}=s,{sx:H,...D}=I,{sx:G,...q}=N,L=(0,r.useRef)({}),V=(0,r.useRef)({}),W=(0,r.useRef)({}),[z,$]=(0,r.useState)(!1),Q=(0,p.Z)([Z,U],W),{buildFinishInputTestBatchFunction:K,buildInputFirstRenderFunction:X,buildInputUnmountFunction:J,isFormInvalid:Y,setMessage:ss}=Q,se=(0,r.useMemo)(()=>null!=A?A:function(){for(var s=arguments.length,e=Array(s),t=0;t{ss(g,s)},$,...e)},[Z,A,T,U,$,ss]),st=(0,r.useMemo)(()=>z?(0,a.jsx)(C.Z,{mt:0}):(0,a.jsx)(u.Z,{row:!0,sx:{justifyContent:"flex-end"},children:(0,a.jsx)(o.Z,{disabled:Y,type:"submit",children:E})}),[Y,z,E]),sa=(0,r.useMemo)(()=>{let s={};return B&&(s["gate-cell-message-group"]={children:(0,a.jsx)(d.Z,{count:1,defaultMessageType:"warning",ref:W}),sm:2},s["gate-cell-submit"]={children:st,sm:2}),s},[B,st]),sn=(0,r.useMemo)(()=>{let s={};return t&&(s.component="form",s.onSubmit=se),s},[t,se]);return(0,r.useImperativeHandle)(e,()=>({get:()=>{var s,e,t,a;return{identifier:null!==(t=null===(s=L.current.getValue)||void 0===s?void 0:s.call(null))&&void 0!==t?t:"",passphrase:null!==(a=null===(e=V.current.getValue)||void 0===e?void 0:e.call(null))&&void 0!==a?a:""}},messageGroup:{...W.current},setIsSubmitting:s=>{$(s)}})),(0,a.jsx)(n.Z,{...sn,children:(0,a.jsx)(i.Z,{columns:h,layout:{"gate-input-cell-credential-id":{children:(0,a.jsx)(c.Z,{input:(0,a.jsx)(b.Z,{formControlProps:{...D,sx:{...m,...H}},id:Z,inputProps:P,label:y,...F}),inputTestBatch:k(y,()=>{ss(Z)},{onFinishBatch:K(Z)},s=>{ss(Z,{children:s})}),onBlurAppend:function(){for(var s=arguments.length,e=Array(s),t=0;t{ss(U)},{onFinishBatch:K(U)},s=>{ss(U,{children:s})}),onFirstRender:X(U),onUnmount:J(U),ref:V,required:!0})},...sa},spacing:w,...M})})});j.displayName="GateForm",e.ZP=j},37039:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(48263),l=t(5616);e.Z=s=>{let{calculateItemBreakpoints:e=()=>({xs:1}),layout:t,wrapperBoxProps:o,...u}=s,i=(0,n.useMemo)(()=>{let s=Object.entries(t);return s.map((s,t)=>{let[a,l]=s;return l?(0,n.createElement)(r.ZP,{...e(t,a),key:a,item:!0,...l}):void 0})},[e,t]);return(0,a.jsx)(l.Z,{...o,children:(0,a.jsx)(r.ZP,{container:!0,...u,children:i})})}},32576:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(84070),l=t(15079);e.Z=s=>{let{list:e={}}=s,[t,o]=(0,n.useState)({}),u=(0,n.useMemo)(()=>Object.keys(e),[e]),i=(0,n.useMemo)(()=>Object.keys(t),[t]),c=(0,n.useMemo)(()=>i.length===u.length,[i.length,u.length]),d=(0,n.useMemo)(()=>i.length>0,[i.length]),b=(0,n.useMemo)(()=>u.length>1,[u.length]),C=(0,n.useCallback)(s=>{let{confirmDialogProps:e={},formSummaryProps:n={},getConfirmDialogTitle:r,onProceedAppend:o,renderEntry:u}=s;return{actionProceedText:"Delete",content:(0,a.jsx)(l.Z,{entries:t,maxDepth:0,renderEntry:u,...n}),onProceedAppend:o,proceedColour:"red",titleText:r(i.length),...e}},[t,i.length]),f=(0,n.useCallback)(s=>!!t[s],[t]),p=(0,n.useCallback)(()=>o({}),[]),m=(0,n.useCallback)(s=>o(u.reduce((e,t)=>(s&&(e[t]=s),e),{})),[u]),h=(0,n.useCallback)((s,e)=>o((0,r.ZP)(s,e||void 0)),[]);return{buildDeleteDialogProps:C,checklist:t,checks:i,getCheck:f,hasAllChecks:c,hasChecks:d,multipleItems:b,resetChecks:p,setAllChecks:m,setCheck:h}}},58839:function(s,e,t){"use strict";var a=t(67294);e.Z=function(){let{actionProceedText:s="",content:e="",titleText:t="",...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.useState)({actionProceedText:s,content:e,titleText:t,...n})}},96867:function(s,e,t){"use strict";var a=t(67294),n=t(67645),r=t(84070),l=t(41247);e.Z=(s,e)=>{var t;let[o,u]=(0,a.useState)(!1),[i,c]=(0,a.useState)({}),d=(0,a.useCallback)(s=>{var t,a;return null==e?void 0:null===(a=e.current)||void 0===a?void 0:null===(t=a.setMessage)||void 0===t?void 0:t.call(null,"api",s)},[e]),b=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessage)||void 0===a||a.call(null,String(s),t)},[e]),C=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessageRe)||void 0===a||a.call(null,s,t)},[e]),f=(0,a.useCallback)((s,e)=>{c((0,r.ZP)(s,e))},[]),p=(0,a.useCallback)((s,e)=>{c((0,r.Um)(s,e))},[]),m=(0,a.useCallback)(s=>{b(s),f(s)},[b,f]),h=(0,a.useCallback)(s=>{C(s),p(s)},[C,p]),v=(0,a.useCallback)(s=>e=>{f(s,e)},[f]),x=(0,a.useCallback)(s=>e=>{let{isValid:t}=e;f(s,t)},[f]),g=(0,a.useCallback)(s=>()=>{m(s)},[m]),j=(0,a.useCallback)(s=>{let{body:a,getErrorMsg:r,msgKey:o="api",method:i,onError:c,onSuccess:d,setMsg:b=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.setMessage,successMsg:C,url:f}=s;u(!0),n.Z.request({data:a,method:i,url:f}).then(()=>{null==b||b.call(null,o,{children:C,type:"info"}),null==d||d.call(null)}).catch(s=>{let e=(0,l.Z)(s);e.children=r(e.children),null==b||b.call(null,o,e),null==c||c.call(null)}).finally(()=>{u(!1)})},[e,u]),w=(0,a.useMemo)(()=>Object.values(i).some(s=>!s),[i]);return{buildFinishInputTestBatchFunction:v,buildInputFirstRenderFunction:x,buildInputUnmountFunction:g,formValidity:i,isFormInvalid:w,isFormSubmitting:o,setApiMessage:d,setFormValidity:c,setMessage:b,setMessageRe:C,setValidity:f,setValidityRe:p,submitForm:j,unsetKey:m,unsetKeyRe:h}}},84070:function(s,e,t){"use strict";t.d(e,{Um:function(){return buildRegExpObjectStateSetterCallback}});let defaultObjectStatePropSetter=function(){for(var s=arguments.length,e=Array(s),t=0;t2&&void 0!==arguments[2]?arguments[2]:{};return a=>{let n={};return Object.keys(a).forEach(r=>{s.test(r)?t(a,n,r,e):n[r]=a[r]}),n}};e.ZP=function(s,e){let{guard:t=()=>!0,set:a=defaultObjectStatePropSetter}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let{[s]:r,...l}=n,o={...l};return t(n,s,e)&&a(n,o,s,e),o}}},86472:function(s,e,t){"use strict";t.r(e),t.d(e,{default:function(){return manage_element}});var a=t(85893),n=t(9008),r=t.n(n),l=t(11163),o=t(67294),u=t(67645),lib_getQueryParam=function(s){let{fallbackValue:e="",joinSeparator:t="",limit:a=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s instanceof Array?s.slice(0,a).join(t):null!=s?s:e},i=t(37039),c=t(41247),d=t(21405),b=t(98436),C=t(5616),f=t(89712),p=t(90948),m=t(34386),h=t(94121),v=t(55238),x=t(92917),g=t(55675),j=t(37260),w=t(52886),M=t(58843),Z=t(72852),k=t(6010),y=t(84154);let I=(0,p.ZP)(M.Z)({height:"3.5em",marginLeft:0,width:"100%"});var components_SwitchWithLabel=s=>{let{baseInputProps:e,checked:t,formControlLabelProps:n,id:r,label:l,name:u,onChange:i,switchProps:c}=s,d=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(y.Ac,{inheritColour:!0,color:"".concat(k.s7,"AF"),children:l}):(0,a.jsx)(a.Fragment,{children:l}),[l]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(I,{componentsProps:{typography:{flexGrow:1}},control:(0,a.jsx)(Z.Z,{checked:t,edge:"end",name:u,onChange:i,...c}),label:d,labelPlacement:"start",...n}),(0,a.jsx)("input",{checked:t,hidden:!0,id:r,readOnly:!0,...e})]})},P=t(50233);let F=["1","on"],getStringParamInputTestBatch=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,setMessage:t},id:a,label:n}=s,r=e(a),onSuccess=()=>{t(a)};return"ip"===n.toLowerCase()?(0,P._)(n,onSuccess,{onFinishBatch:r},s=>{t(a,{children:s})}):{defaults:{onSuccess},onFinishBatch:r,tests:[{test:P.HJ}]}},buildNumberParamInput=s=>{let{formUtils:e,id:t,isRequired:n,label:r="",name:l=t,value:o}=s,{buildFinishInputTestBatchFunction:u,buildInputFirstRenderFunction:i,setMessage:c}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:t,label:r,name:l,value:o}),inputTestBatch:(0,P.qY)(r,()=>{c(t)},{onFinishBatch:u(t)},s=>{c(t,{children:s})}),onFirstRender:i(t),required:n,valueType:"number"},"".concat(t,"-wrapper"))},S={boolean:s=>{let{id:e,isChecked:t=!1,label:n,name:r=e}=s;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{checked:t,id:e,label:n,name:r}),valueType:"boolean"},"".concat(e,"-wrapper"))},integer:buildNumberParamInput,second:buildNumberParamInput,select:s=>{let{formUtils:e,id:t,isRequired:n,label:r,name:l=t,selectOptions:o=[],value:u=""}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:d}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:t,label:r,name:l,selectItems:o,value:u}),inputTestBatch:{defaults:{onSuccess:()=>{d(t)}},onFinishBatch:i(t),tests:[{test:P.HJ}]},onFirstRender:c(t),required:n},"".concat(t,"-wrapper"))},string:s=>{let e;let{formUtils:t,id:n,isRequired:r,isSensitive:l=!1,label:o="",name:u=n,value:i}=s,{buildInputFirstRenderFunction:c}=t;return l&&(e=h.Z.password),(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:n,label:o,name:u,type:e,value:i}),inputTestBatch:getStringParamInputTestBatch({formUtils:t,id:n,label:o}),onFirstRender:c(n),required:r},"".concat(n,"-wrapper"))}},combineIds=function(){for(var s=arguments.length,e=Array(s),t=0;t{let{fenceId:e,fenceParameterTooltipProps:t,fenceTemplate:n,formUtils:r,previousFenceName:l,previousFenceParameters:u}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:d}=r,b=(0,o.useMemo)(()=>{let s;if(n&&e){let{parameters:o}=n[e],b={};u&&(b=Object.entries(u).reduce((s,t)=>{let[a,n]=t,r=combineIds(e,a);return s[r]=n,s},{}));let{optional:f,required:p}=Object.entries(o).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).reduce((s,n)=>{var l,o;let[u,{content_type:i,default:c,deprecated:d,description:f,options:p,required:h}]=n,v="1"===String(d);if(v)return s;let{optional:x,required:g}=s,j=null!==(l=S[i])&&void 0!==l?l:S.string,w=combineIds(e,u),M=null!==(o=b[w])&&void 0!==o?o:c,Z="1"===String(h),k=/passw/i.test(u),I=j({formUtils:r,id:w,isChecked:F.includes(M),isRequired:Z,isSensitive:k,label:u,selectOptions:p,value:M}),P=(0,a.jsx)(m.Z,{componentsProps:{tooltip:{sx:{maxWidth:{md:"62.6em"}}}},disableInteractive:!0,placement:"top-start",title:(0,a.jsx)(y.Ac,{children:f}),...t,children:(0,a.jsx)(C.Z,{children:I})},"".concat(w,"-tooltip"));return Z?g.push(P):x.push(P),s},{optional:[],required:[]}),h=combineIds(e,"name"),w="Fence device name";s=(0,a.jsxs)(v.Z,{sx:{"& > div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,a.jsx)(j.TZ,{expandInitially:!0,header:"Required parameters",children:(0,a.jsxs)(A,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:h,label:w,name:h,value:l}),inputTestBatch:(0,P.Gn)(w,()=>{d(h)},{onFinishBatch:i(h)},s=>{d(h,{children:s})}),onFirstRender:c(h),required:!0},"".concat(h,"-wrapper")),p]})}),(0,a.jsx)(j.TZ,{header:"Optional parameters",children:(0,a.jsx)(A,{children:f})})]})}return s},[i,c,e,t,n,r,l,u,d]);return(0,a.jsx)(a.Fragment,{children:b})},T=t(81796),U=t(42702);let _="add-fence-input-agent";var ManageFence_AddFenceInputGroup=s=>{let{fenceTemplate:e,formUtils:t,loading:n}=s,{setValidity:r}=t,l=(0,U.Z)(),[u,i]=(0,o.useState)(null),c=(0,o.useMemo)(()=>e?Object.entries(e).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).map(s=>{let[e,{description:t}]=s;return{fenceDescription:"string"==typeof t?t:"No description.",fenceId:e,label:e}}):[],[e]),d=(0,o.useMemo)(()=>(0,a.jsx)(f.Z,{id:_,isOptionEqualToValue:(s,e)=>s.fenceId===e.fenceId,label:"Fence device type",onChange:(s,e)=>{r(_,null!==e),i(e)},openOnFocus:!0,options:c,renderOption:(s,e,t)=>{let{fenceDescription:n,fenceId:r}=e,{selected:l}=t;return(0,a.jsxs)(C.Z,{component:"li",sx:{display:"flex",flexDirection:"column","& > *":{width:"100%"}},...s,children:[(0,a.jsx)(y.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:l?400:void 0},children:r}),(0,a.jsx)(y.Ac,{selected:!1,children:n})]})},sx:{marginTop:".3em"},value:u}),[c,u,r]),b=(0,o.useMemo)(()=>(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:null==u?void 0:u.fenceId,fenceTemplate:e,formUtils:t}),[e,null==u?void 0:u.fenceId,t]),p=(0,o.useMemo)(()=>n?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[d,b]}),[d,b,n]);return(0,o.useEffect)(()=>{l&&r(_,null!==u)},[u,l,r]),(0,a.jsx)(a.Fragment,{children:p})},N=t(56597),ManageFence_EditFenceInputGroup=s=>{let{fenceId:e,fenceTemplate:t,formUtils:n,loading:r,previousFenceName:l,previousFenceParameters:u}=s,i=(0,o.useMemo)(()=>r?(0,a.jsx)(T.Z,{}):(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:e,fenceTemplate:t,formUtils:n,previousFenceName:l,previousFenceParameters:u}),[t,e,n,r,l,u]);return(0,a.jsx)(a.Fragment,{children:i})},R=t(87038),O=t(15079),E=t(63071),B=t(21642),H=t(64666),D=t(32576),G=t(58839),q=t(96867);let assertFormInputId=s=>{let{id:e}=s,t=new RegExp("^(fence[^-]+)".concat("-","([^\\s]+)$")),a=e.match(t);if(!a)throw Error("Not target input element");return a},assertFormInputName=(s,e,t)=>{if("name"===s)throw e.name=t,Error("Not child parameter")},assertFormParamSpec=s=>{if(!s)throw Error("Not parameter specification")},assertFormParamValue=(s,e)=>{if([e,"",null,void 0].some(e=>s===e))throw Error("Skippable parameter value")},getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{try{let a=assertFormInputId(t),[,n,r]=a;e.agent=n;let{checked:l,value:o}=t;assertFormInputName(r,e,o);let{[n]:{parameters:{[r]:u}}}=s;assertFormParamSpec(u);let{content_type:i,default:c}=u,d=o;"boolean"===i&&(d=l?"1":""),assertFormParamValue(d,c),e.parameters[r]=d}catch(s){}return e},{agent:"",name:"",parameters:{}})};var ManageFence=()=>{let s=(0,U.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,G.Z)(),[i,d]=(0,G.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(),[h,x]=(0,o.useState)(!1),[g,w]=(0,o.useState)(!0),{isLoading:M}=(0,H.Z)("".concat(b.Z,"/fence"),{onSuccess:s=>f(s),refreshInterval:6e4}),Z=(0,o.useCallback)(()=>{u.Z.get("/fence").then(s=>{let{data:e}=s;f(e)})},[f]),k=(0,q.Z)([_],n),{isFormInvalid:I,isFormSubmitting:P,submitForm:F}=k,{buildDeleteDialogProps:S,checks:A,getCheck:L,hasChecks:V,resetChecks:W,setCheck:z}=(0,D.Z)({list:C}),$=(0,o.useCallback)(s=>{let{cap:e,depth:t,key:a}=s;return 0===t?e(a):a},[]),Q=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:h,disableDelete:!V,edit:h,header:!0,listItems:C,onAdd:()=>{var s;d({actionProceedText:"Add",content:(0,a.jsx)(ManageFence_AddFenceInputGroup,{fenceTemplate:p,formUtils:k}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s),{agent:r,name:o}=n;l({actionProceedText:"Add",content:(0,a.jsx)(O.Z,{entries:n,hasPassword:!0,getEntryLabel:$}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add fence device. ",s]}),method:"post",onSuccess:()=>Z(),successMsg:"Added fence device ".concat(o),url:"/fence"})},titleText:(0,a.jsxs)(y.z,{children:["Add a"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:r})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a fence device"}),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(S({getConfirmDialogTitle:s=>"Delete ".concat(s," fence device(s)?"),onProceedAppend:()=>{F({body:{uuids:A},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete fence device(s). ",s]}),method:"delete",onSuccess:()=>{Z(),W()},url:"/fence"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(y.Ac,{children:null==C?void 0:C[e].fenceName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{x(s=>!s)},onItemCheckboxChange:(s,e,t)=>{z(s,t)},onItemClick:s=>{var n;let{fenceAgent:r,fenceName:o,fenceParameters:u,fenceUUID:i}=s;d({actionProceedText:"Update",content:(0,a.jsx)(ManageFence_EditFenceInputGroup,{fenceId:r,fenceTemplate:p,formUtils:k,previousFenceName:o,previousFenceParameters:u}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s);l({actionProceedText:"Update",content:(0,a.jsx)(O.Z,{entries:n,hasPassword:!0,getEntryLabel:$}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update fence device. ",s]}),method:"put",onSuccess:()=>Z(),successMsg:"Updated fence device ".concat(o),url:"/fence/".concat(i)})},titleText:(0,a.jsxs)(y.z,{children:["Update"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:o})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(y.z,{children:["Update fence device"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:o})," ","parameters"]})}),null===(n=t.current.setOpen)||void 0===n||n.call(null,!0)},renderListItemCheckboxState:s=>L(s),renderListItem:(s,e)=>{let{fenceAgent:t,fenceName:n,fenceParameters:r}=e;return(0,a.jsxs)(v.Z,{row:!0,children:[(0,a.jsx)(y.Ac,{children:n}),(0,a.jsx)(y.Ac,{children:Object.entries(r).reduce((s,e)=>{let[t,n]=e,r=(0,a.jsxs)(a.Fragment,{children:[t,'="']});return r=/passw/i.test(t)?(0,a.jsxs)(a.Fragment,{children:[r,(0,a.jsx)(y.PJ,{inline:!0,children:n})]}):(0,a.jsxs)(a.Fragment,{children:[r,n]}),(0,a.jsxs)(a.Fragment,{children:[s," ",r,'"']})},t)})]})}}),[S,A,C,p,k,L,Z,$,V,h,W,z,l,d,F]),K=(0,o.useMemo)(()=>g||M?(0,a.jsx)(T.Z,{}):Q,[M,g,Q]),X=(0,o.useMemo)(()=>(0,a.jsx)(B.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/fence/template").then(s=>{let{data:e}=s;m(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(y.z,{children:"Manage fence devices"})}),K]}),(0,a.jsx)(R.Z,{dialogProps:{PaperProps:{sx:{minWidth:{xs:"90%",md:"50em"}}}},scrollBoxProps:{padding:".3em .5em"},...i,disableProceed:I,loadingAction:P,preActionArea:X,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollBoxProps:{paddingRight:"1em"},...r,ref:e,scrollContent:!0})]})},L=t(28951);let V="an-host-input",W="".concat(V,"-cell"),z="IPMI IP",$={fence:(s,e)=>{let{dataset:{hostId:t="",fenceId:a="",fenceName:n=""},value:r}=e,{hostConfig:{hosts:{[t]:l}}}=s,{fences:o={}}=l;o[a]={fenceName:n,fencePort:r},l.fences=o},host:(s,e)=>{let{dataset:{hostId:t="",hostNumber:a="",hostType:n=""}}=e,r=Number.parseInt(a,10);s.hostConfig.hosts[t]={hostNumber:r,hostType:n}},ipmi:(s,e)=>{let{dataset:{hostId:t=""},value:a}=e,{hostConfig:{hosts:{[t]:n}}}=s;n.ipmiIp=a},network:(s,e)=>{let{dataset:{hostId:t="",networkId:a="",networkNumber:n="",networkType:r=""},value:l}=e,{hostConfig:{hosts:{[t]:o}}}=s,{networks:u={}}=o,i=Number.parseInt(n,10);u[a]={networkIp:l,networkNumber:i,networkType:r},o.networks=u},ups:(s,e)=>{let{checked:t,dataset:{hostId:a="",upsId:n="",upsName:r=""}}=e,{hostConfig:{hosts:{[a]:l}}}=s,{upses:o={}}=l;o[n]={isUsed:t,upsName:r},l.upses=o}},Q={xs:1,sm:2,md:3},buildInputIdAHFencePort=(s,e)=>"".concat(V,"-").concat(s,"-").concat(e,"-port"),buildInputIdAHIpmiIp=s=>"".concat(V,"-").concat(s,"-ipmi-ip"),buildInputIdAHNetworkIp=(s,e)=>"".concat(V,"-").concat(s,"-").concat(e,"-ip"),buildInputIdAHUpsPowerHost=(s,e)=>"".concat(V,"-").concat(s,"-").concat(e,"-power-host");var ManageManifest_AnHostInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,buildInputUnmountFunction:n,setMessage:r},hostId:l,hostNumber:u,hostType:c,previous:{fences:d={},ipmiIp:b,networks:C={},upses:f={}}={},hostLabel:p="".concat(c.replace("node","subnode")," ").concat(u)}=s,m=(0,o.useMemo)(()=>Object.entries(d),[d]),h=(0,o.useMemo)(()=>Object.entries(C),[C]),w=(0,o.useMemo)(()=>Object.entries(f),[f]),M=(0,o.useMemo)(()=>!!w.length,[w.length]),Z=(0,o.useMemo)(()=>"".concat(V,"-").concat(l),[l]),k=(0,o.useMemo)(()=>buildInputIdAHIpmiIp(l),[l]),I=(0,o.useMemo)(()=>"".concat(W,"-").concat(l,"-ipmi-ip"),[l]),F=(0,o.useMemo)(()=>m.reduce((s,n)=>{let[o,{fenceName:u,fencePort:i}]=n,c="".concat(W,"-").concat(l,"-").concat(o,"-port"),d=buildInputIdAHFencePort(l,o),b="Port on ".concat(u);return s[c]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"fence","data-host-id":l,"data-fence-id":o,"data-fence-name":u},id:d,label:b,value:i}),inputTestBatch:(0,P.Gn)("".concat(l," ").concat(b),()=>{r(d)},{onFinishBatch:e(d)},s=>{r(d,{children:s})}),onFirstRender:t(d),required:!0})},s},{}),[e,t,m,l,r]),S=(0,o.useMemo)(()=>h.reduce((s,o)=>{let[u,{networkIp:i,networkNumber:c,networkType:d}]=o,b="".concat(W,"-").concat(l,"-").concat(u,"-ip"),C=buildInputIdAHNetworkIp(l,u),f="".concat(d.toUpperCase()," ").concat(c," IP");return s[b]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"network","data-host-id":l,"data-network-id":u,"data-network-number":c,"data-network-type":d},id:C,label:f,value:i}),inputTestBatch:(0,P._)("".concat(l," ").concat(f),()=>{r(C)},{onFinishBatch:e(C)},s=>{r(C,{children:s})}),onFirstRender:t(C),onUnmount:n(C),required:!0})},s},{}),[h,l,e,t,n,r]),A=(0,o.useMemo)(()=>w.reduce((s,e)=>{let[t,{isUsed:n,upsName:r}]=e,o="".concat(W,"-").concat(l,"-").concat(t,"-power-host"),u=buildInputIdAHUpsPowerHost(l,t);return s[o]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{baseInputProps:{"data-handler":"ups","data-host-id":l,"data-ups-id":t,"data-ups-name":r},checked:n,id:u,label:"Uses ".concat(r)}),valueType:"boolean"})},s},{}),[l,w]),T=(0,o.useMemo)(()=>M&&(0,a.jsx)(i.Z,{columns:Q,layout:A,spacing:"1em"}),[M,A]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsx)(j.CH,{children:(0,a.jsx)(y.Ac,{children:p})}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:Z,readOnly:!0,"data-handler":"host","data-host-id":l,"data-host-number":u,"data-host-type":c}),(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:Q,layout:{...S,[I]:{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"ipmi","data-host-id":l},id:k,label:z,value:b}),inputTestBatch:(0,P._)("".concat(l," ").concat(z),()=>{r(k)},{onFinishBatch:e(k)},s=>{r(k,{children:s})}),onFirstRender:t(k),onUnmount:n(k)})},...F},spacing:"1em"}),T]})]})]})};let K="".concat("".concat("an-host-config-input","-group"),"-cell"),X={node1:{hostNumber:1,hostType:"node"},node2:{hostNumber:2,hostType:"node"}},guessHostIpOnNetwork=s=>{let{anSeq:e,minIp:t,offset3:a=10,step3:n=2,subnetMask:r,subSeq:l}=s;try{let s=new L.Netmask("".concat(t,"/").concat(r));if(16!==s.bitmask)return"".concat(s.base.replace(/\.0/g,""),".");return t.replace(/^((\d+\.){2})\d+\.\d+$/,"$1".concat((e-1)*n+a,".").concat(l))}catch(s){return""}};var ManageManifest_AnHostConfigInputGroup=s=>{let{anSequence:e,formUtils:t,knownFences:n={},knownUpses:r={},networkListEntries:l,previous:{hosts:u=X}={}}=s,c=(0,o.useMemo)(()=>Object.entries(u),[u]),d=(0,o.useMemo)(()=>Object.values(n),[n]),b=(0,o.useMemo)(()=>Object.values(r),[r]),C=(0,o.useMemo)(()=>c.reduce((s,n)=>{let[r,o]=n,{fences:u={},hostNumber:i,hostType:c,ipmiIp:C,networks:f={},upses:p={}}=o,m=C,h=d.reduce((s,e)=>{let{fenceName:t}=e,{[t]:{fencePort:a=""}={}}=u;return s[t]={fenceName:t,fencePort:a},s},{}),v=l.reduce((s,t)=>{let[a,{networkMinIp:n,networkNumber:r,networkSubnetMask:l,networkType:o}]=t,{[a]:{networkIp:u=""}={}}=f;return u||(u=guessHostIpOnNetwork({anSeq:e,minIp:n,subnetMask:l,subSeq:i})),m||"bcn"!==o||1!==r||(m=guessHostIpOnNetwork({anSeq:e,minIp:n,offset3:11,subnetMask:l,subSeq:i})),s[a]={networkIp:u,networkNumber:r,networkType:o},s},{}),x=b.reduce((s,e)=>{let{upsName:t}=e,{[t]:{isUsed:a=!0}={}}=p;return s[t]={isUsed:a,upsName:t},s},{}),g="".concat(K,"-").concat(r);return s[g]={children:(0,a.jsx)(ManageManifest_AnHostInputGroup,{formUtils:t,hostId:r,hostNumber:i,hostType:c,previous:{fences:h,ipmiIp:m,networks:v,upses:x}}),md:3,sm:2},s},{}),[e,t,c,d,b,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:C,spacing:"1em"})},J=t(23279),Y=t.n(J);let ss="an-id-input",se="".concat(ss,"-domain"),st="".concat(ss,"-prefix"),sa="".concat(ss,"-sequence"),sn="Domain name",sr="Prefix",sl="Sequence";var ManageManifest_AnIdInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,setMessage:r},onSequenceChange:l,previous:{domain:u,prefix:c,sequence:d}={}}=s,b=(0,o.useMemo)(()=>l&&Y()(l,e),[e,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{"an-id-input-cell-prefix":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:st,label:sr,value:c}),inputTestBatch:(0,P.Gn)(sr,()=>{r(st)},{onFinishBatch:t(st)},s=>{r(st,{children:s})}),onFirstRender:n(st),required:!0})},"an-id-input-cell-domain":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:se,label:sn,value:u}),inputTestBatch:(0,P.Gn)(sn,()=>{r(se)},{onFinishBatch:t(se)},s=>{r(se,{children:s})}),onFirstRender:n(se),required:!0})},"an-id-input-cell-sequence":{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:b},input:(0,a.jsx)(g.Z,{id:sa,label:sl,value:d}),inputTestBatch:(0,P.qY)(sl,()=>{r(sa)},{onFinishBatch:t(sa)},s=>{r(sa,{children:s})}),onFirstRender:n(sa),required:!0,valueType:"number"})}},spacing:"1em"})},so=t(25934),su=t(5813),si=t(83221);let sc="an-network-input",sd="".concat(sc,"-cell"),sb={gateway:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkGateway=a},minip:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkMinIp=a},network:(s,e)=>{let{dataset:{networkId:t="",networkNumber:a="",networkType:n=""}}=e,{networkConfig:{networks:r}}=s,l=Number.parseInt(a,10);r[t]={networkNumber:l,networkType:n}},subnetmask:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkSubnetMask=a}},buildInputIdANGateway=s=>"".concat(sc,"-").concat(s,"-gateway"),buildInputIdANMinIp=s=>"".concat(sc,"-").concat(s,"-min-ip"),buildInputIdANNetworkType=s=>"".concat(sc,"-").concat(s,"-network-type"),buildInputIdANSubnetMask=s=>"".concat(sc,"-").concat(s,"-subnet-mask");var ManageManifest_AnNetworkInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,buildInputUnmountFunction:r,setMessage:l},inputGatewayLabel:u="Gateway",inputMinIpLabel:c="IP address",inputSubnetMaskLabel:d="Subnet mask",networkId:b,networkNumber:C,networkType:f,networkTypeOptions:p,onClose:m,onNetworkGatewayChange:h,onNetworkMinIpChange:v,onNetworkSubnetMaskChange:M,onNetworkTypeChange:Z,previous:{gateway:k,minIp:y,subnetMask:I}={},readonlyNetworkName:F,showCloseButton:S,showGateway:A}=s,T=(0,o.useMemo)(()=>"".concat(su.default[f]," ").concat(C),[C,f]),U=(0,o.useMemo)(()=>"".concat(sd,"-").concat(b,"-gateway"),[b]),_=(0,o.useMemo)(()=>"".concat(sd,"-").concat(b,"-ip"),[b]),N=(0,o.useMemo)(()=>"".concat(sd,"-").concat(b,"-subnet-mask"),[b]),R=(0,o.useMemo)(()=>"".concat(sc,"-").concat(b),[b]),O=(0,o.useMemo)(()=>buildInputIdANGateway(b),[b]),E=(0,o.useMemo)(()=>buildInputIdANMinIp(b),[b]),B=(0,o.useMemo)(()=>buildInputIdANNetworkType(b),[b]),H=(0,o.useMemo)(()=>buildInputIdANSubnetMask(b),[b]),D=(0,o.useMemo)(()=>A?void 0:"none",[A]),G=(0,o.useMemo)(()=>h&&Y()(h,e),[e,h]),q=(0,o.useMemo)(()=>v&&Y()(v,e),[e,v]),L=(0,o.useMemo)(()=>M&&Y()(M,e),[e,M]),V=(0,o.useMemo)(()=>S&&(0,a.jsx)(si.Z,{mapPreset:"close",iconProps:{fontSize:"small"},onClick:function(){for(var s=arguments.length,e=Array(s),t=0;t{let s;return A&&O&&(s=(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(O)},{onFinishBatch:t(O)},s=>{l(O,{children:s})}),onFirstRender:n(O),onUnmount:r(O),required:A})),s},[A,O,b,u,k,T,t,n,r,G,f,l]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsxs)(j.CH,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:B,isReadOnly:F,onChange:function(){for(var s=arguments.length,e=Array(s),t=0;tT},value:f})}),V]}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:R,readOnly:!0,"data-handler":"network","data-network-id":b,"data-network-number":C,"data-network-type":f}),(0,a.jsx)(i.Z,{layout:{[_]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(E)},{onFinishBatch:t(E)},s=>{l(E,{children:s})}),onFirstRender:n(E),onUnmount:r(E),required:!0})},[N]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(H)},{onFinishBatch:t(H)},s=>{l(H,{children:s})}),onFirstRender:n(H),onUnmount:r(H),required:!0})},[U]:{children:W,display:D}},spacing:"1em"})]})]})},sC=t(84070);let sf="an-network-config-input",sp="".concat(sf,"-cell"),sm="".concat(sf,"-dns"),sh="".concat(sf,"-mtu"),sv="".concat(sf,"-ntp"),sx=Object.entries(su.default),sg={bcn:{base:"10.201.0.0",mask:"255.255.0.0"},mn:{base:"10.199.0.0",mask:"255.255.0.0"},sn:{base:"10.101.0.0",mask:"255.255.0.0"}},assertIfn=s=>"ifn"===s,assertMn=s=>"mn"===s,guessNetworkMinIp=s=>{let{entries:e,type:t}=s,a=e.filter(s=>{let[,{networkType:e}]=s;return e===t}).sort((s,e)=>{let[,{networkNumber:t}]=s,[,{networkNumber:a}]=e;return t>a?1:-1}).pop();if(!a){var n;return null!==(n=sg[t])&&void 0!==n?n:{}}let[,{networkMinIp:r,networkSubnetMask:l}]=a;try{let s=new L.Netmask("".concat(r,"/").concat(l)),{base:e,mask:t}=s.next();return{base:e,mask:t}}catch(s){return{}}};var ManageManifest_AnNetworkConfigInputGroup=s=>{let{formUtils:e,networkListEntries:t,previous:{dnsCsv:n="8.8.8.8,8.8.4.4",mtu:r,ntpCsv:l}={},setNetworkList:u}=s,{buildFinishInputTestBatchFunction:c,buildInputFirstRenderFunction:d,setMessage:b,setMessageRe:C}=e,f=(0,o.useCallback)(function(s){let{input:e=t,end:a=t.length}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a-1,r=0;return e.every((e,t)=>{let[,{networkType:a}]=e;return a===s&&(r+=1),tsx.map(s=>{let[e,t]=s;return{displayValue:t,value:e}}),[]),m=(0,o.useCallback)(function(){let{networkMinIp:s="",networkSubnetMask:e="",networkType:a=t.some(s=>{let[,{networkType:e}]=s;return assertMn(e)})?"ifn":"mn",networkGateway:n=assertIfn(a)?"":void 0,networkNumber:r=f(a)+1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{base:l=s,mask:o=e}=guessNetworkMinIp({entries:t,type:a});return{network:{networkGateway:n,networkMinIp:l,networkNumber:r,networkSubnetMask:o,networkType:a},networkId:(0,so.Z)()}},[f,t]),h=(0,o.useCallback)((s,e)=>u((0,sC.ZP)(s,e)),[u]),v=(0,o.useCallback)((s,e,t)=>u(a=>{let n={...a},{[s]:r}=n;return r&&(r[e]=t),n}),[u]),j=(0,o.useCallback)((s,e)=>{let{networkId:a,networkType:n}=s,{target:{value:r}}=e,l=String(r),o=!1,i=0,c=t.reduce((s,e)=>{let[r,u]=e,{networkNumber:c,networkType:d,networkMinIp:b,networkSubnetMask:f,...p}=u,m=c,h=d;r===a&&(o=!0,h=l,C(RegExp(r)));let v=h===l;if(v&&(i+=1),o){v?m=i:h===n&&(m-=1);let{base:e=b,mask:a=f}=guessNetworkMinIp({entries:t,type:h});s[r]={...p,networkMinIp:e,networkSubnetMask:a,networkNumber:m,networkType:h}}else s[r]=u;return s},{});u(c)},[t,C,u]),w=(0,o.useCallback)(s=>{let{networkId:e,networkType:a}=s,n=!1,r=0,l=t.reduce((s,t)=>{let[l,o]=t;if(l===e)return n=!0,s;let{networkType:u}=o,i=u===a;return i&&(r+=1),s[l]=n&&i?{...o,networkNumber:r}:o,s},{});u(l)},[t,u]),M=(0,o.useMemo)(()=>t.reduce((s,t)=>{let[n,{networkGateway:r,networkMinIp:l,networkNumber:o,networkSubnetMask:u,networkType:i}]=t,c="".concat(sp,"-").concat(n),d=assertIfn(i),b=assertMn(i),C=b||1!==o;return s[c]={children:(0,a.jsx)(ManageManifest_AnNetworkInputGroup,{formUtils:e,networkId:n,networkNumber:o,networkType:i,networkTypeOptions:p,onClose:w,onNetworkMinIpChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkMinIp",a)},onNetworkSubnetMaskChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkSubnetMask",a)},onNetworkTypeChange:j,previous:{gateway:r,minIp:l,subnetMask:u},readonlyNetworkName:!C,showCloseButton:C,showGateway:d}),md:3,sm:2},s},{}),[t,e,p,w,j,v]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{...M,"an-network-config-cell-add-network":{children:(0,a.jsx)(si.Z,{mapPreset:"add",onClick:()=>{let{network:s,networkId:e}=m();h(e,s)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sm,label:"DNS",value:n}),inputTestBatch:(0,P.dg)("DNS",()=>{b(sm)},{onFinishBatch:c(sm)},s=>{b(sm,{children:s})}),onFirstRender:d(sm),required:!0})},"an-network-config-input-cell-ntp":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sv,label:"NTP",value:l}),inputTestBatch:(0,P.dg)("NTP",()=>{b(sv)},{onFinishBatch:c(sv)},s=>{b(sv,{children:s})}),onFirstRender:d(sv)})},"an-network-config-input-cell-mtu":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sh,inputProps:{placeholder:"1500"},label:"MTU",value:r}),inputTestBatch:(0,P.qY)("MTU",()=>{b(sh)},{onFinishBatch:c(sh)},s=>{b(sh,{children:s})}),onFirstRender:d(sh),valueType:"number"})}},spacing:"1em"})};let sj={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}};var ManageManifest_AddManifestInputGroup=s=>{var e;let{formUtils:t,knownFences:n,knownUpses:r,previous:{hostConfig:l,networkConfig:u={},...i}={}}=s,{networks:c=sj}=u,[d,b]=(0,o.useState)(null!==(e=null==i?void 0:i.sequence)&&void 0!==e?e:0),[C,f]=(0,o.useState)(c),p=(0,o.useMemo)(()=>Object.entries(C),[C]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(ManageManifest_AnIdInputGroup,{formUtils:t,onSequenceChange:s=>{let{target:{value:e}}=s;b(Number(e))},previous:i}),(0,a.jsx)(ManageManifest_AnNetworkConfigInputGroup,{formUtils:t,networkListEntries:p,previous:u,setNetworkList:f}),(0,a.jsx)(ManageManifest_AnHostConfigInputGroup,{anSequence:d,formUtils:t,knownFences:n,knownUpses:r,networkListEntries:p,previous:l})]})},ManageManifest_EditManifestInputGroup=s=>{let{formUtils:e,knownFences:t,knownUpses:n,previous:r}=s;return(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:e,knownFences:t,knownUpses:n,previous:r})};let sw="run-manifest-input",sM="".concat(sw,"-host"),sZ="".concat(sw,"-an-description"),sk="".concat(sw,"-an-password"),sy="".concat(sw,"-an-confirm-password"),sI="Description",sP="Password",sF="Confirm password",sS=(0,p.ZP)(y.$_)({justifyContent:"end"}),buildInputIdRMHost=s=>"".concat(sM,"-").concat(s);var ManageManifest_RunManifestInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},knownFences:r={},knownHosts:l={},knownUpses:u={},previous:{domain:c,hostConfig:d={},networkConfig:b={}}={}}=s,C=(0,o.useRef)({}),{hosts:f={}}=d,{dnsCsv:p,mtu:m,networks:j={},ntpCsv:M="--"}=b,Z=(0,o.useMemo)(()=>Object.entries(f),[f]),k=(0,o.useMemo)(()=>Object.entries(r),[r]),I=(0,o.useMemo)(()=>Object.entries(l),[l]),F=(0,o.useMemo)(()=>Object.entries(u),[u]),S=(0,o.useMemo)(()=>Object.entries(j),[j]),A=(0,o.useMemo)(()=>I.map(s=>{let[,{hostName:e,hostUUID:t}]=s;return{displayValue:e,value:t}}),[I]),{headers:T,hosts:U,hostNames:_}=(0,o.useMemo)(()=>Z.reduce((s,r)=>{let[l,{hostName:o,hostNumber:u,hostType:i}]=r,{headers:d,hosts:b,hostNames:C}=s,f="".concat(i.replace("node","subnode")," ").concat(u);d["run-manifest-column-header-cell-".concat(l)]={children:(0,a.jsx)(y.Ac,{children:f})};let p=buildInputIdRMHost(l),m="".concat(f," host");return b["run-manifest-host-cell-".concat(l)]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:p,label:m,selectItems:A,value:""}),inputTestBatch:(0,P.Gn)(m,()=>{n(p)},{onFinishBatch:e(p)},s=>{n(p,{children:s})}),onFirstRender:t(p),required:!0})},C["run-manifest-new-host-name-cell-".concat(l)]={children:(0,a.jsxs)(y.$_,{children:[o,".",c]})},s},{headers:{"run-manifest-column-header-cell-offset":{}},hosts:{"run-manifest-host-cell-header":{children:(0,a.jsx)(y.Ac,{children:"Uses host"})}},hostNames:{"run-manifest-new-host-name-cell-header":{children:(0,a.jsx)(y.Ac,{children:"New hostname"})}}}),[c,e,t,Z,A,n]),{gateway:N,hostNetworks:R}=(0,o.useMemo)(()=>S.reduce((s,e)=>{let[t,{networkGateway:n,networkNumber:r,networkType:l}]=e,{gateway:o,hostNetworks:u}=s,i="run-manifest-host-network-cell-".concat(t),c="".concat(l.toUpperCase()).concat(r);u["".concat(i,"-header")]={children:(0,a.jsx)(y.Ac,{children:c})},Z.forEach(s=>{let[e,{networks:n={}}]=s,{[t]:{networkIp:r="--"}={}}=n;u["".concat(i,"-").concat(e,"-ip")]={children:(0,a.jsx)(y.$_,{children:r})}});let d="run-manifest-gateway-cell";return n&&!o[d]&&(o[d]={children:(0,a.jsx)(sS,{children:n})}),s},{gateway:{"run-manifest-gateway-cell-header":{children:(0,a.jsx)(y.Ac,{children:"Gateway"})}},hostNetworks:{}}),[Z,S]),O=(0,o.useMemo)(()=>k.reduce((s,e)=>{let[t,{fenceName:n}]=e,r="run-manifest-fence-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(y.Ac,{children:["Port on ",n]})},Z.forEach(e=>{let[t,{fences:l={}}]=e,{[n]:{fencePort:o="--"}={}}=l;s["".concat(r,"-").concat(t,"-port")]={children:(0,a.jsx)(y.$_,{children:o})}}),s},{}),[Z,k]),E=(0,o.useMemo)(()=>F.reduce((s,e)=>{let[t,{upsName:n}]=e,r="run-manifest-ups-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(y.Ac,{children:["Uses ",n]})},Z.forEach(e=>{let[t,{upses:l={}}]=e,{[n]:{isUsed:o=!1}={}}=l;s["".concat(r,"-").concat(t,"-is-used")]={children:(0,a.jsx)(y.$_,{children:o?"yes":"no"})}}),s},{}),[Z,F]),B=(0,o.useMemo)(()=>{let s=(0,P.Gn)(sF,()=>{n(sy)},{onFinishBatch:e(sy)},s=>{n(sy,{children:s})}),r=t(sy);return s.tests.push({onFailure:()=>{n(sy,{children:(0,a.jsx)(a.Fragment,{children:"Confirm password must match password."})})},test:s=>{var e;let{value:t}=s;return(null===(e=C.current.getValue)||void 0===e?void 0:e.call(null))===t}}),{inputTestBatch:s,onFirstRender:r}},[e,t,n]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"run-manifest-input-cell-an-description":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sZ,label:sI}),inputTestBatch:(0,P.Gn)(sI,()=>{n(sZ)},{onFinishBatch:e(sZ)},s=>{n(sZ,{children:s})}),onFirstRender:t(sZ),required:!0}),sm:2},"run-manifest-input-cell-an-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sk,label:sP,type:h.Z.password}),inputTestBatch:(0,P.Gn)(sP,()=>{n(sk)},{onFinishBatch:e(sk)},s=>{n(sk,{children:s})}),onFirstRender:t(sk),ref:C,required:!0})},"run-manifest-input-cell-an-confirm-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sy,label:sF,type:h.Z.password}),required:!0,...B})}},spacing:"1em"}),(0,a.jsx)(i.Z,{alignItems:"center",columns:{xs:Z.length+1},layout:{...T,...U,..._,...R,...O,...E},columnSpacing:"1em",rowSpacing:"0.4em"}),(0,a.jsx)(i.Z,{columns:{xs:2},layout:{...N,"run-manifest-dns-csv-cell-header":{children:(0,a.jsx)(y.Ac,{children:"DNS"})},"run-manifest-dns-csv-cell":{children:(0,a.jsx)(sS,{children:p})},"run-manifest-ntp-csv-cell-header":{children:(0,a.jsx)(y.Ac,{children:"NTP"})},"run-manifest-ntp-csv-cell":{children:(0,a.jsx)(sS,{children:M})},"run-manifest-mtu-cell-header":{children:(0,a.jsx)(y.Ac,{children:"MTU"})},"run-manifest-mtu-cell":{children:(0,a.jsx)(sS,{children:m})}},spacing:"0.4em"})]})};let ManageManifestPanel_getFormData=function(){for(var s=arguments.length,e=Array(s),t=0;t{var t,a;let{id:n}=e;if(RegExp("^".concat(V)).test(n)){let{dataset:{handler:a=""}}=e;null===(t=$[a])||void 0===t||t.call(null,s,e)}else if(RegExp("^".concat(sc)).test(n)){let{dataset:{handler:t=""}}=e;null===(a=sb[t])||void 0===a||a.call(null,s,e)}return s},{domain:r,hostConfig:{hosts:{}},networkConfig:{dnsCsv:u,mtu:d,networks:{},ntpCsv:c},prefix:l,sequence:b})},getRunFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let[t,{hostNumber:a,hostType:n}]=e,l=buildInputIdRMHost(t),{value:o}=r.namedItem(l);return s[t]={hostNumber:a,hostType:n,hostUuid:o},s},{});return{description:l,hosts:u,password:o}};var ManageManifest=()=>{let s=(0,U.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),r=(0,o.useRef)({}),l=(0,o.useRef)({}),[i,d]=(0,G.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(!1),[h,x]=(0,o.useState)(!0),[g,w]=(0,o.useState)(!0),[M,Z]=(0,o.useState)(!0),[k,I]=(0,o.useState)(),[P,F]=(0,o.useState)(),[S,A]=(0,o.useState)(),{isLoading:_}=(0,H.Z)("".concat(b.Z,"/manifest"),{onSuccess:s=>I(s),refreshInterval:6e4}),L=(0,o.useCallback)(()=>{u.Z.get("/manifest").then(s=>{let{data:e}=s;I(e)})},[I]),V=(0,q.Z)([se,st,sa,sm,sh,sv],l),{isFormInvalid:W,isFormSubmitting:z,submitForm:$}=V,Q=(0,q.Z)([sy,sZ,sk],l),{isFormInvalid:K,isFormSubmitting:X,submitForm:J}=Q,{buildDeleteDialogProps:Y,checks:ss,getCheck:sn,hasChecks:sr,resetChecks:sl,setCheck:so}=(0,D.Z)({list:k}),{hostConfig:{hosts:su={}}={},name:sc,uuid:sd}=(0,o.useMemo)(()=>null!=P?P:{},[P]),{domain:sb,fences:sC,prefix:sf,sequence:sp,upses:sx}=(0,o.useMemo)(()=>null!=S?S:{},[S]),sg=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:V,knownFences:sC,knownUpses:sx,previous:{domain:sb,prefix:sf,sequence:sp}}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{$({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add install manifest. ",s]}),method:"post",onSuccess:()=>L(),successMsg:"Successfully added install manifest",url:"/manifest"})},titleText:"Add install manifest?"}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Add an install manifest"}),[V,L,sC,sx,sb,sf,sp,d,$]),sj=(0,o.useMemo)(()=>({actionProceedText:"Edit",content:(0,a.jsx)(ManageManifest_EditManifestInputGroup,{formUtils:V,knownFences:sC,knownUpses:sx,previous:P}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{$({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update install manifest. ",s]}),method:"put",onSuccess:()=>L(),successMsg:"Successfully updated install manifest ".concat(sc),url:"/manifest/".concat(sd)})},titleText:"Update install manifest ".concat(sc,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},loading:g,titleText:"Update install manifest ".concat(sc)}),[V,sC,sx,P,g,sc,d,$,sd,L]),sw=(0,o.useMemo)(()=>({actionProceedText:"Run",content:(0,a.jsx)(ManageManifest_RunManifestInputGroup,{formUtils:Q,knownFences:sC,knownHosts:C,knownUpses:sx,previous:P}),loading:g,onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{J({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to run install manifest. ",s]}),method:"put",successMsg:"Successfully ran install manifest ".concat(sc),url:"/command/run-manifest/".concat(sd)})},titleText:"Run install manifest ".concat(sc,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Run install manifest ".concat(sc)}),[Q,sC,C,sx,P,g,sc,su,d,J,sd]),sM=(0,o.useCallback)((s,e)=>{w(!0),u.Z.get("manifest/".concat(s)).then(e=>{let{data:t}=e;t.uuid=s,F(t)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1),null==e||e.call(null)})},[w,F]),sI=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:p,disableDelete:!sr,edit:p,header:!0,listEmpty:"No manifest(s) registered.",listItems:k,onAdd:()=>{var s;null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;d(Y({onProceedAppend:()=>{$({body:{uuids:ss},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Delete manifest(s) failed. ",s]}),method:"delete",onSuccess:()=>{L(),sl()},url:"/manifest"})},getConfirmDialogTitle:s=>"Delete ".concat(s," manifest(s)?"),renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(y.Ac,{children:null==k?void 0:k[e].manifestName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{m(s=>!s)},onItemCheckboxChange:(s,e,t)=>{so(s,t)},onItemClick:s=>{var e;let{manifestName:t,manifestUUID:a}=s;F({name:t,uuid:a}),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0),sM(a)},renderListItemCheckboxState:s=>sn(s),renderListItem:(s,e)=>{let{manifestName:t}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(si.Z,{disabled:p,mapPreset:"play",onClick:()=>{var e;F({name:t,uuid:s}),null===(e=r.current.setOpen)||void 0===e||e.call(null,!0),sM(s)},variant:"normal"}),(0,a.jsx)(y.Ac,{children:t})]})}}),[Y,ss,sn,sM,L,sr,p,k,sl,so,d,F,$]),sP=(0,o.useMemo)(()=>h||M||_?(0,a.jsx)(T.Z,{}):sI,[h,_,M,sI]),sF=(0,o.useMemo)(()=>(0,a.jsx)(B.Z,{count:1,defaultMessageType:"warning",ref:l}),[]);return s&&(u.Z.get("/manifest/template").then(s=>{let{data:e}=s;A(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{Z(!1)}),u.Z.get("/host",{params:{types:"node"}}).then(s=>{let{data:e}=s;f(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{x(!1)})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(y.z,{children:"Manage manifests"})}),sP]}),(0,a.jsx)(R.Z,{...sg,disableProceed:W,loadingAction:z,preActionArea:sF,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(R.Z,{...sj,disableProceed:W,loadingAction:z,preActionArea:sF,ref:n,scrollContent:!0,showClose:!0}),(0,a.jsx)(R.Z,{...sw,disableProceed:K,loadingAction:X,preActionArea:sF,ref:r,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...i,ref:e,scrollContent:!0,wide:!0})]})};let sA="common-ups-input-ip-address",sT="common-ups-input-host-name",sU="IP address",s_="Host name";var ManageUps_CommonUpsInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},previous:{upsIPAddress:r,upsName:l}={}}=s;return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"common-ups-input-cell-host-name":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sT,label:s_,value:l}),inputTestBatch:(0,P.Gn)(s_,()=>{n(sT)},{onFinishBatch:e(sT)},s=>{n(sT,{children:s})}),onFirstRender:t(sT),required:!0})},"common-ups-input-cell-ip-address":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sA,label:sU,value:r}),inputTestBatch:(0,P._)(sU,()=>{n(sA)},{onFinishBatch:e(sA)},s=>{n(sA,{children:s})}),onFirstRender:t(sA),required:!0})}},spacing:"1em"})},sN=t(69836);let sR="add-ups-select-ups-type-id";var ManageUps_AddUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n={},upsTemplate:r}=s,{buildInputFirstRenderFunction:l,setValidity:u}=e,{upsTypeId:i=""}=n,c=(0,U.Z)(),[d,b]=(0,o.useState)(i),C=(0,o.useMemo)(()=>r?Object.entries(r).map(s=>{let e,[t,{brand:n,description:r,links:{0:l}}]=s;if(l){let{linkHref:s,linkLabel:t}=l;e=(0,a.jsx)(sN.Z,{href:s,onClick:s=>{s.stopPropagation()},sx:{display:"inline-flex",color:k.E5},target:"_blank",children:t})}return{displayValue:(0,a.jsxs)(v.Z,{spacing:0,children:[(0,a.jsx)(y.Ac,{inverted:!0,children:n}),(0,a.jsxs)(y.Ac,{inverted:!0,children:[r," (",e,")"]})]}),value:t}}):[],[r]),f=(0,o.useMemo)(()=>r&&(0,a.jsx)(w.Z,{formControlProps:{sx:{marginTop:".3em"}},id:sR,label:"UPS type",onChange:s=>{let{target:{value:e}}=s,t=String(e);u(sR,!0),b(t)},required:!0,selectItems:C,selectProps:{onClearIndicatorClick:()=>{u(sR,!1),b("")},renderValue:s=>{let e=String(s),{brand:t}=r[e];return t}},value:d}),[r,C,d,u]),p=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[f,d&&(0,a.jsx)(ManageUps_CommonUpsInputGroup,{formUtils:e,previous:n})]}),[e,d,t,f,n]);return(0,o.useEffect)(()=>{c&&l(sR)({isValid:!!d})},[l,d,c]),p};let sO="edit-ups-input-ups-uuid";var ManageUps_EditUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n,upsTemplate:r,upsUUID:l}=s,u=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:e,previous:n,upsTemplate:r}),(0,a.jsx)("input",{hidden:!0,id:sO,readOnly:!0,value:l})]}),[e,t,n,r,l]);return u};let ManageUpsPanel_getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let{brand:e,ipAddress:t,name:n,uuid:r}=s;return(0,a.jsx)(E.Z,{listItems:{"ups-brand":{label:"Brand",value:e},"ups-name":{label:"Host name",value:n},"ups-ip-address":{label:"IP address",value:t}},listItemProps:{sx:{padding:0}},renderListItem:(s,e)=>{let{label:t,value:n}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,growFirst:!0,row:!0,children:[(0,a.jsx)(y.Ac,{children:t}),(0,a.jsx)(y.$_,{children:n})]},"confirm-ups-".concat(r,"-").concat(s))}})};var ManageUps=()=>{let s=(0,U.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,G.Z)(),[i,d]=(0,G.Z)(),[C,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!0),[h,x]=(0,o.useState)(),{data:g,isLoading:w}=(0,H.Z)("".concat(b.Z,"/ups"),{refreshInterval:6e4}),M=(0,q.Z)([sA,sT,sR],n),{isFormInvalid:Z,isFormSubmitting:k,submitForm:I}=M,{buildDeleteDialogProps:P,checks:F,getCheck:S,hasChecks:A,setCheck:_}=(0,D.Z)({list:g}),O=(0,o.useCallback)(s=>{var t,n;let{upsAgent:r,upsIPAddress:o,upsName:u,upsUUID:i}=s,c=null!==(n=null===(t=Object.entries(null!=h?h:{}).find(s=>{let[,{agent:e}]=s;return r===e}))||void 0===t?void 0:t[0])&&void 0!==n?n:"";return{actionProceedText:"Update",content:(0,a.jsx)(ManageUps_EditUpsInputGroup,{formUtils:M,previous:{upsIPAddress:o,upsName:u,upsTypeId:c},upsTemplate:h,upsUUID:i}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{name:r}=n;l({actionProceedText:"Update",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{I({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update UPS. ",s]}),method:"put",successMsg:"Successfully updated UPS ".concat(u),url:"/ups/".concat(i)})},titleText:(0,a.jsxs)(y.z,{children:["Update"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:r})," ","with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(y.z,{children:["Update UPS"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:u})]})}},[M,l,I,h]),L=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:M,upsTemplate:h}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{brand:r,name:o}=n;l({actionProceedText:"Add",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{I({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add UPS. ",s]}),method:"post",successMsg:"Successfully added UPS ".concat(o),url:"/ups"})},titleText:(0,a.jsxs)(y.z,{children:["Add a"," ",(0,a.jsx)(y.Q0,{fontSize:"inherit",children:r})," UPS with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a UPS"}),[M,l,I,h]),V=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:C,disableDelete:!A,edit:C,header:!0,listEmpty:"No Ups(es) registered.",listItems:g,onAdd:()=>{var s;d(L),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(P({getConfirmDialogTitle:s=>"Delete ".concat(s," UPSes?"),onProceedAppend:()=>{I({body:{uuids:F},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete UPS(es). ",s]}),method:"delete",url:"/ups"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(y.Ac,{children:null==g?void 0:g[e].upsName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{f(s=>!s)},onItemCheckboxChange:(s,e,t)=>{_(s,t)},onItemClick:s=>{var e;d(O(s)),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},renderListItemCheckboxState:s=>S(s),renderListItem:(s,e)=>{let{upsAgent:t,upsIPAddress:n,upsName:r}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(y.Ac,{children:r}),(0,a.jsxs)(y.Ac,{children:['agent="',t,'"']}),(0,a.jsxs)(y.Ac,{children:['ip="',n,'"']})]})}}),[L,P,O,F,S,A,C,_,l,d,I,g]),W=(0,o.useMemo)(()=>p||w?(0,a.jsx)(T.Z,{}):V,[p,w,V]),z=(0,o.useMemo)(()=>(0,a.jsx)(B.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/ups/template").then(s=>{let{data:e}=s;x(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{m(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(y.z,{children:"Manage UPSes"})}),W]}),(0,a.jsx)(R.Z,{...i,disableProceed:Z,loadingAction:k,preActionArea:z,ref:t,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...r,ref:e})]})},sE=t(22961),sB=t(72450),sH=t(54799),sD=t(19467),sG=t(88187),sq=t(84376),sL=t(64568),sV=t(53640),sW=t(40476),sz=t(68061),components_RadioGroupWithLabel=s=>{let{formControlProps:e,formControlLabelProps:t,formLabelProps:n,id:r,label:l,onChange:u,radioItems:i,radioProps:{sx:c,...d}={},radioGroupProps:b}=s,C=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(y.Ac,{children:l}):l,[l]),f=(0,o.useMemo)(()=>{let s=Object.entries(i);return s.map(s=>{let[e,{label:n,value:l}]=s,o="string"==typeof n?(0,a.jsx)(y.Ac,{children:n}):n;return(0,a.jsx)(M.Z,{control:(0,a.jsx)(sq.Z,{...d,sx:{["&.".concat(sL.Z.root)]:{color:k.s7},...c}}),value:l,label:o,...t},"".concat(r,"-").concat(e))})},[t,r,i,c,d]);return(0,a.jsxs)(sV.Z,{...e,children:[(0,a.jsx)(sW.Z,{...n,children:C}),(0,a.jsx)(sz.Z,{onChange:u,row:!0,...b,children:f})]})};let s$="Alteeve enterprise key",sQ="Host name",sK="RedHat password",sX="RedHat user",sJ={enterpriseKey:"enterpriseKey",hostName:"hostName",redhatPassword:"redhatPassword",redhatUser:"redhatUser"},sY={xs:1,sm:2};var components_PrepareHostForm=()=>{let s=(0,o.useRef)({}),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),r=(0,o.useRef)({}),l=(0,o.useRef)({}),[d,b]=(0,o.useState)(),[f,p]=(0,o.useState)(),[m,w]=(0,o.useState)(),[M,Z]=(0,o.useState)(""),[I,F]=(0,o.useState)(""),[S,A]=(0,o.useState)(!0),[U,_]=(0,o.useState)(!1),[R,O]=(0,o.useState)(!0),[E,H]=(0,o.useState)(!0),[D,G]=(0,o.useState)(!1),[q,L]=(0,o.useState)(!0),[V,W]=(0,o.useState)(!1),[z,$]=(0,o.useState)(!1),[Q,K]=(0,o.useState)(!1),[X,J]=(0,o.useState)(!1),Y=(0,o.useCallback)(s=>{var e;null===(e=l.current.setMessage)||void 0===e||e.call(null,sJ.hostName,s)},[]),ss=(0,o.useCallback)(s=>{var e;null===(e=l.current.setMessage)||void 0===e||e.call(null,sJ.enterpriseKey,s)},[]),se=(0,o.useCallback)(s=>{var e;null===(e=l.current.setMessage)||void 0===e||e.call(null,sJ.redhatPassword,s)},[]),st=(0,o.useCallback)(s=>{var e;null===(e=l.current.setMessage)||void 0===e||e.call(null,sJ.redhatUser,s)},[]),sa=(0,o.useCallback)(s=>{var e;return null===(e=l.current.setMessage)||void 0===e?void 0:e.call(null,"submitPrepareHost",s)},[]),sn=(0,o.useMemo)(()=>({[sJ.enterpriseKey]:(0,P.$e)(s$,()=>{ss()},void 0,s=>{ss({children:s,type:"warning"})}),[sJ.hostName]:(0,P.Ye)(sQ,()=>{Y()},void 0,s=>{Y({children:s,type:"warning"})}),[sJ.redhatPassword]:(0,P.Gn)(sK,()=>{se()},void 0,s=>{se({children:s,type:"warning"})}),[sJ.redhatUser]:(0,P.Gn)(sX,()=>{st()},void 0,s=>{st({children:s,type:"warning"})})}),[ss,Y,se,st]),sr=(0,o.useMemo)(()=>(0,P.LT)(sn),[sn]),sl=(0,o.useMemo)(()=>Q?void 0:"none",[Q]),so=(0,o.useMemo)(()=>(0,a.jsx)(sG.ZP,{allowSubmit:q,gridProps:{wrapperBoxProps:{sx:{display:D?"flex":"none"}}},identifierInputTestBatchBuilder:P._,identifierLabel:"Host IP address",onIdentifierBlurAppend:s=>{let{target:{value:e}}=s;if(f){let s=e!==f;L(s),W(!s),K(!s)}},onSubmitAppend:(s,e,a,n)=>{u.Z.put("/command/inquire-host",{ipAddress:s,password:e}).then(n=>{let{data:{hostName:r,hostOS:l,hostUUID:o,isConnected:u,isInetConnected:i,isOSRegistered:c}}=n;if(u){var d;null===(d=t.current.setValue)||void 0===d||d.call(null,r);let a=sr({inputs:{[sJ.hostName]:{value:r}}});_(a),i&&/rhel/i.test(l)&&!c&&K(!0),p(s),w(e),Z(o),L(!1),W(!0)}else a({children:"Failed to establish a connection with the given host credentials.",type:"error"})}).catch(s=>{let e=(0,c.Z)(s);null==a||a.call(null,e)}).finally(()=>{n(!1)})},passphraseLabel:"Host root password",submitLabel:"Test access"}),[D,q,f,w,Z,sr]),su=(0,o.useMemo)(()=>(0,a.jsx)(i.Z,{columns:sY,layout:{"preparehost-host-name":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{width:"100%"}},id:"preparehost-host-name-input",inputProps:{onBlur:s=>{let{target:{value:e}}=s,t=sr({inputs:{[sJ.hostName]:{value:e}}});_(t)},onFocus:()=>{Y()}},label:sQ}),ref:t})},"preparehost-enterprise-key":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{width:"100%"}},id:"preparehost-enterprise-key-input",inputProps:{onBlur:s=>{let{target:{value:e}}=s;if(e){let s=sr({inputs:{[sJ.enterpriseKey]:{value:e}}});A(s)}},onFocus:()=>{ss()}},label:s$}),ref:e})}},spacing:"1em",wrapperBoxProps:{sx:{display:V?void 0:"none"}}}),[V,ss,Y,sr]),si=(0,o.useMemo)(()=>(0,a.jsx)(i.Z,{columns:sY,layout:{"preparehost-redhat-user":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{width:"100%"}},id:"preparehost-redhat-user-input",inputProps:{onBlur:s=>{let{target:{value:e}}=s;if(e){let s=sr({inputs:{[sJ.redhatUser]:{value:e}}});H(s)}},onFocus:()=>{st()}},label:sX}),ref:r})},"preparehost-redhat-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{width:"100%"}},id:"preparehost-redhat-password-input",inputProps:{onBlur:s=>{let{target:{value:e}}=s;if(e){let s=sr({inputs:{[sJ.redhatPassword]:{value:e}}});O(s)}},onFocus:()=>{se()},onPasswordVisibilityAppend:s=>{$(s!==h.Z.password)},type:h.Z.password},label:sK}),ref:n})}},spacing:"1em",wrapperBoxProps:{sx:{display:sl}}}),[sl,se,st,sr]),sc=(0,o.useMemo)(()=>(0,a.jsx)(C.Z,{sx:{display:V?void 0:"none"},children:(0,a.jsx)(B.Z,{count:1,ref:l})}),[V]),sd=(0,o.useMemo)(()=>X?(0,a.jsx)(T.Z,{mt:0}):(0,a.jsx)(v.Z,{row:!0,sx:{display:V?"flex":"none",justifyContent:"flex-end"},children:(0,a.jsx)(sD.Z,{disabled:!U||!S||!E||!R,onClick:()=>{var a,l,o,u,i;let c=null===(a=n.current.getValue)||void 0===a?void 0:a.call(null);b({enterpriseKey:(null===(l=e.current.getValue)||void 0===l?void 0:l.call(null))||"none; using community version",hostName:(null===(o=t.current.getValue)||void 0===o?void 0:o.call(null))||"",redhatPassword:c||"none",redhatPasswordHidden:(null==c?void 0:c.replace(/./g,"*"))||"none",redhatUser:(null===(u=r.current.getValue)||void 0===u?void 0:u.call(null))||"none"}),sa(),null===(i=s.current.setOpen)||void 0===i||i.call(null,!0)},children:"Prepare host"})}),[S,U,R,E,V,X,sa]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(y.z,{children:"Prepare a host to include in Anvil!"})}),(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(components_RadioGroupWithLabel,{id:"preparehost-host-type",label:"Host type",onChange:(s,e)=>{F(e),G(!0)},radioItems:{node:{label:"Subnode",value:"node"},dr:{label:"Disaster Recovery (DR) host",value:"dr"}}}),so,su,si,sc,sd]})]}),(0,a.jsx)(N.Z,{actionProceedText:"Prepare",closeOnProceed:!0,content:(0,a.jsx)(i.Z,{calculateItemBreakpoints:s=>({xs:s%2==0?1:2}),columns:3,layout:{"preparehost-confirm-host-type-label":{children:(0,a.jsx)(y.Ac,{children:"Host type"})},"preparehost-confirm-host-type-value":{children:(0,a.jsx)(y.$_,{children:"dr"===I?"Disaster Recovery (DR)":"Subnode"})},"preparehost-confirm-host-name-label":{children:(0,a.jsx)(y.Ac,{children:"Host name"})},"preparehost-confirm-host-name-value":{children:(0,a.jsx)(y.$_,{children:null==d?void 0:d.hostName})},"preparehost-confirm-enterprise-key-label":{children:(0,a.jsx)(y.Ac,{children:"Alteeve enterprise key"})},"preparehost-confirm-enterprise-key-value":{children:(0,a.jsx)(y.$_,{children:null==d?void 0:d.enterpriseKey})},"preparehost-confirm-redhat-user-label":{children:(0,a.jsx)(y.Ac,{children:"RedHat user"}),sx:{display:sl}},"preparehost-confirm-redhat-user-value":{children:(0,a.jsx)(y.$_,{children:null==d?void 0:d.redhatUser}),sx:{display:sl}},"preparehost-confirm-redhat-password-label":{children:(0,a.jsx)(y.Ac,{children:"RedHat password"}),sx:{display:sl}},"preparehost-confirm-redhat-password-value":{children:(0,a.jsxs)(v.Z,{row:!0,sx:{height:"100%",maxWidth:"100%"},children:[(0,a.jsx)(y.$_,{sx:{flexGrow:1,maxWidth:"calc(100% - 3em)",overflowX:"scroll"},children:z?null==d?void 0:d.redhatPassword:null==d?void 0:d.redhatPasswordHidden}),(0,a.jsx)(sH.Z,{onClick:()=>{$(s=>!s)},sx:{color:k.s7,padding:0},children:z?(0,a.jsx)(sB.Z,{}):(0,a.jsx)(sE.Z,{})})]}),sx:{display:sl}}},spacing:".6em"}),onCancelAppend:()=>{$(!1)},onProceedAppend:()=>{var s,a,l,o;J(!0),u.Z.put("/host/prepare",{enterpriseUUID:null===(s=e.current.getValue)||void 0===s?void 0:s.call(null),hostIPAddress:f,hostName:null===(a=t.current.getValue)||void 0===a?void 0:a.call(null),hostPassword:m,hostType:I,hostUUID:M,redhatPassword:null===(l=n.current.getValue)||void 0===l?void 0:l.call(null),redhatUser:null===(o=r.current.getValue)||void 0===o?void 0:o.call(null)}).then(()=>{sa({children:"Successfully initiated prepare host."}),setTimeout(()=>{sa()},5e3)}).catch(s=>{let e=(0,c.Z)(s,{onResponseErrorAppend:s=>{let e,{status:t}=s;return 400===t&&(e={children:"The API found invalid values. Did you forget to fill in one of the RedHat fields?",type:"warning"}),e}});sa(e)}).finally(()=>{J(!1)})},ref:s,titleText:"Confirm host preparation"})]})},s0=t(68917),s1=t(7932),s2=t(10406);let s5="prepare-network-host-name-input",s9="prepare-network-netconf-input-group",s3="Host name",PrepareNetworkForm_getFormData=function(s){let{netconf:e}=s;for(var t,a=arguments.length,n=Array(a>1?a-1:0),r=1;r{let{networks:e=[],...t}=s,a=e.reduce((s,e)=>{let{interfaces:t,ipAddress:a,name:n="",type:r,typeCount:l,subnetMask:o}=e,u="".concat(r).concat(l),i=t.reduce((s,e,t)=>{if(e){let{networkInterfaceName:a}=e;s["link".concat(t+1)]=a}return s},{});return s[u]={name:n,network:"".concat(a,"/").concat(o),...i},s},{});return{...t,networks:a}};var components_PrepareNetworkForm=s=>{let{expectUUID:e=!1,hostUUID:t}=s,{isReady:n,query:{host_uuid:r}}=(0,l.useRouter)(),i=(0,o.useRef)({}),d=(0,o.useRef)({}),b=(0,o.useRef)({}),[C,f]=(0,G.Z)(),[p,m]=(0,o.useState)(),[h,w]=(0,o.useState)(),[M,Z]=(0,o.useState)(!0),[k,I]=(0,o.useState)(),{buildFinishInputTestBatchFunction:F,buildInputFirstRenderFunction:S,isFormInvalid:A,setMessage:U,setValidity:_,submitForm:R}=(0,q.Z)([s5,s9],b),E=(0,o.useMemo)(()=>t!==k,[t,k]),H=(0,o.useMemo)(()=>!!t&&E,[t,E]),D=(0,o.useMemo)(()=>(0,a.jsx)(j.V9,{children:(0,a.jsxs)(y.z,{children:["Prepare network on ",null==p?void 0:p.shortHostName]})}),[p]),L=(0,o.useMemo)(()=>(0,a.jsx)(s1.Z,{expectHostDetail:!0,hostDetail:p,ref:d,toggleSubmitDisabled:s=>{_(s9,s)}}),[p,_]),V=(0,o.useMemo)(()=>(0,a.jsx)(B.Z,{count:1,defaultMessageType:"warning",ref:b}),[]),W=(0,o.useMemo)(()=>M?(0,a.jsx)(T.Z,{mt:0}):h?(0,a.jsx)(s0.Z,{...h}):(0,a.jsxs)(a.Fragment,{children:[D,(0,a.jsxs)(v.Z,{component:"form",onSubmit:function(){for(var s,e=arguments.length,n=Array(e),r=0;r{let{cap:e,key:t}=s;return/^(dns|[a-z]+n\d+)/.test(t)?t.toUpperCase():e(t)}}),onProceedAppend:()=>{var s;R({body:o,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to prepare network. ",s]}),method:"put",onSuccess:()=>{(0,s2.Z)(0)},setMsg:null==d?void 0:null===(s=d.current)||void 0===s?void 0:s.setMessage,successMsg:"Initiated prepare network on ".concat(null==p?void 0:p.shortHostName),url:"/host/".concat(t,"?handler=subnode-network")})},titleText:"Prepare ".concat(null==p?void 0:p.shortHostName," network?")}),null===(s=i.current.setOpen)||void 0===s||s.call(null,!0)},children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{maxWidth:"20em"}},id:s5,label:s3,value:null==p?void 0:p.hostName}),inputTestBatch:(0,P.Gn)(s3,()=>{U(s5)},{onFinishBatch:F(s5)},s=>{U(s5,{children:s})}),onFirstRender:S(s5),required:!0}),V,L,(0,a.jsx)(v.Z,{row:!0,justifyContent:"flex-end",children:(0,a.jsx)(sD.Z,{disabled:A,type:"submit",children:"Prepare network"})})]})]}),[M,h,D,null==p?void 0:p.hostName,null==p?void 0:p.shortHostName,F,S,V,L,A,f,R,t,U]),z=(0,o.useCallback)(s=>{Z(!0),M&&u.Z.get("/host/".concat(s)).then(s=>{let{data:e}=s;I(e.hostUUID),m(e)}).catch(s=>{let{children:e}=(0,c.Z)(s);w({children:"Failed to get target host information; cannot continue. ".concat(e),type:"error"})}).finally(()=>{Z(!1)})},[Z,M,I,m,w]);return(0,o.useEffect)(()=>{e?H&&z(t):n&&!h&&(r?z(lib_getQueryParam(r)):(w({children:"No host UUID provided; cannot continue.",type:"error"}),Z(!1)))},[h,z,t,e,n,r,w,m,Z,H]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.s_,{children:W}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollContent:!0,...C,ref:i})]})},s6=t(75316),s7=t(21073),components_Tab=s=>{let{label:e,...t}=s,n=(0,o.useMemo)(()=>"string"==typeof e?(0,a.jsx)(y.Ac,{inheritColour:!0,children:e}):e,[e]);return(0,a.jsx)(s6.Z,{...t,label:n,sx:{borderRadius:k.n_,color:k.s7,padding:".4em .8em",textTransform:"none",["&.".concat(s7.Z.selected)]:{color:k.Ej}}})},components_TabContent=s=>{let{changingTabId:e,children:t,retain:n=!1,tabId:r}=s,l=(0,o.useMemo)(()=>e===r,[e,r]),u=(0,o.useMemo)(()=>n?(0,a.jsx)(C.Z,{sx:{display:l?"initial":"none"},children:t}):l&&t,[t,l,n]);return(0,a.jsx)(a.Fragment,{children:u})},s4=t(2734),s8=t(98396),es=t(37023),ee=t(85982);let et="1.8em";var components_Tabs=s=>{let{orientation:e,variant:t="fullWidth",...n}=s,r=(0,s4.Z)(),l=(0,o.useCallback)(s=>r.breakpoints.up(s),[r]),u=(0,s8.Z)(l("xs")),i=(0,s8.Z)(l("sm")),c=(0,s8.Z)(l("md")),d=(0,s8.Z)(l("lg")),b=(0,s8.Z)(l("xl")),C=(0,o.useMemo)(()=>[["xs",u],["sm",i],["md",c],["lg",d],["xl",b]],[d,c,i,b,u]),f=(0,o.useMemo)(()=>{let s;return"object"==typeof e?C.some(t=>{let[a,n]=t;return n&&e[a]&&(s=e[a]),!n}):s=e,s},[C,e]);return(0,a.jsx)(es.Z,{...n,orientation:f,variant:t,sx:{minHeight:"1em",["&.".concat(ee.tabsClasses.vertical)]:{minHeight:et,["& .".concat(ee.tabClasses.root)]:{alignItems:"flex-start",minHeight:et,paddingLeft:"2em"},["& .".concat(ee.tabsClasses.indicator)]:{right:"initial"}},["& .".concat(ee.tabClasses.root)]:{minHeight:"1em"},["& .".concat(ee.tabsClasses.indicator)]:{backgroundColor:k.Ej,borderRadius:k.n_}}})};let ea="prepare-host",en="prepare-network",er="manage-fence",el="manage-ups",eo="manage-manifest",eu={[ea]:"Prepare Host",[en]:"Prepare Network",[er]:"Manage Fence Devices",[el]:"Manage UPSes",[eo]:"Manage Manifests"},ei="Loading",ec={md:8,sm:6,xs:1},ed={md:6,sm:4,xs:1},PrepareHostTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"preparehost-left-column":{},"preparehost-center-column":{children:(0,a.jsx)(components_PrepareHostForm,{}),...ed}}}),PrepareNetworkTabContent=()=>{let s=(0,U.Z)(),[e,t]=(0,o.useState)(),[n,r]=(0,o.useState)(!1),l=(0,o.useMemo)(()=>{let s;if(e){let t=Object.entries(e);s=(0,a.jsx)(components_Tabs,{onChange:(s,e)=>{r(e)},orientation:"vertical",value:n,children:t.map(s=>{let[e,{shortHostName:t}]=s;return(0,a.jsx)(components_Tab,{label:t,value:e},"".concat(en,"-").concat(e))})})}else s=(0,a.jsx)(T.Z,{mt:0});return s},[e,n]);return s&&u.Z.get("/host",{params:{types:["dr","node"]}}).then(s=>{let{data:e}=s;t(e),r(Object.keys(e)[0])}).catch(s=>{(0,c.Z)(s)}),(0,a.jsx)(i.Z,{columns:ec,layout:{"preparenetwork-left-column":{children:(0,a.jsx)(j.s_,{children:l}),sm:2},"preparenetwork-center-column":{children:(0,a.jsx)(components_PrepareNetworkForm,{expectUUID:!0,hostUUID:n||void 0}),...ed}}})},ManageFenceTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managefence-left-column":{},"managefence-center-column":{children:(0,a.jsx)(ManageFence,{}),...ed}}}),ManageUpsTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"manageups-left-column":{},"manageups-center-column":{children:(0,a.jsx)(ManageUps,{}),...ed}}}),ManageManifestContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managemanifest-left-column":{},"managemanifest-center-column":{children:(0,a.jsx)(ManageManifest,{}),...ed}}});var manage_element=()=>{let{isReady:s,query:{step:e}}=(0,l.useRouter)(),[t,n]=(0,o.useState)(!1),[u,i]=(0,o.useState)(ei);return(0,o.useEffect)(()=>{if(s){let s=lib_getQueryParam(e,{fallbackValue:ea});eu[s]||(s=ea),u===ei&&i(eu[s]),t||n(s)}},[s,t,u,e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:u})}),(0,a.jsx)(d.Z,{}),(0,a.jsx)(j.s_,{children:(0,a.jsxs)(components_Tabs,{onChange:(s,e)=>{n(e),i(eu[e])},orientation:{xs:"vertical",sm:"horizontal"},value:t,children:[(0,a.jsx)(components_Tab,{label:"Prepare host",value:ea}),(0,a.jsx)(components_Tab,{label:"Prepare network",value:en}),(0,a.jsx)(components_Tab,{label:"Manage fence devices",value:er}),(0,a.jsx)(components_Tab,{label:"Manage UPSes",value:el}),(0,a.jsx)(components_Tab,{label:"Manage manifests",value:eo})]})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:ea,children:(0,a.jsx)(PrepareHostTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:en,children:(0,a.jsx)(PrepareNetworkTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:er,children:(0,a.jsx)(ManageFenceTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:el,children:(0,a.jsx)(ManageUpsTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:eo,children:(0,a.jsx)(ManageManifestContent,{})})]})}}},function(s){s.O(0,[494,804,416,50,263,213,310,461,203,197,569,775,675,633,733,556,270,774,888,179],function(){return s(s.s=29582)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/striker-ui/out/_next/static/chunks/pages/manage-element-7ac129e45d98ff58.js b/striker-ui/out/_next/static/chunks/pages/manage-element-7ac129e45d98ff58.js new file mode 100644 index 00000000..dec0480e --- /dev/null +++ b/striker-ui/out/_next/static/chunks/pages/manage-element-7ac129e45d98ff58.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[808],{85982:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return s6.tabClasses},tabsClasses:function(){return el.tabsClasses}});var a=t(2373);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99164);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}});var r=t(22307);t.o(r,"tabClasses")&&t.d(e,{tabClasses:function(){return r.tabClasses}}),t.o(r,"tabsClasses")&&t.d(e,{tabsClasses:function(){return r.tabsClasses}});var l=t(16781);t.o(l,"tabClasses")&&t.d(e,{tabClasses:function(){return l.tabClasses}}),t.o(l,"tabsClasses")&&t.d(e,{tabsClasses:function(){return l.tabsClasses}});var o=t(21490);t.o(o,"tabClasses")&&t.d(e,{tabClasses:function(){return o.tabClasses}}),t.o(o,"tabsClasses")&&t.d(e,{tabsClasses:function(){return o.tabsClasses}});var u=t(82120);t.o(u,"tabClasses")&&t.d(e,{tabClasses:function(){return u.tabClasses}}),t.o(u,"tabsClasses")&&t.d(e,{tabsClasses:function(){return u.tabsClasses}});var i=t(52290);t.o(i,"tabClasses")&&t.d(e,{tabClasses:function(){return i.tabClasses}}),t.o(i,"tabsClasses")&&t.d(e,{tabsClasses:function(){return i.tabsClasses}});var c=t(49179);t.o(c,"tabClasses")&&t.d(e,{tabClasses:function(){return c.tabClasses}}),t.o(c,"tabsClasses")&&t.d(e,{tabsClasses:function(){return c.tabsClasses}});var b=t(89904);t.o(b,"tabClasses")&&t.d(e,{tabClasses:function(){return b.tabClasses}}),t.o(b,"tabsClasses")&&t.d(e,{tabsClasses:function(){return b.tabsClasses}});var d=t(3498);t.o(d,"tabClasses")&&t.d(e,{tabClasses:function(){return d.tabClasses}}),t.o(d,"tabsClasses")&&t.d(e,{tabsClasses:function(){return d.tabsClasses}});var C=t(53624);t.o(C,"tabClasses")&&t.d(e,{tabClasses:function(){return C.tabClasses}}),t.o(C,"tabsClasses")&&t.d(e,{tabsClasses:function(){return C.tabsClasses}});var f=t(87305);t.o(f,"tabClasses")&&t.d(e,{tabClasses:function(){return f.tabClasses}}),t.o(f,"tabsClasses")&&t.d(e,{tabsClasses:function(){return f.tabsClasses}});var p=t(58987);t.o(p,"tabClasses")&&t.d(e,{tabClasses:function(){return p.tabClasses}}),t.o(p,"tabsClasses")&&t.d(e,{tabsClasses:function(){return p.tabsClasses}});var m=t(17714);t.o(m,"tabClasses")&&t.d(e,{tabClasses:function(){return m.tabClasses}}),t.o(m,"tabsClasses")&&t.d(e,{tabsClasses:function(){return m.tabsClasses}});var h=t(34952);t.o(h,"tabClasses")&&t.d(e,{tabClasses:function(){return h.tabClasses}}),t.o(h,"tabsClasses")&&t.d(e,{tabsClasses:function(){return h.tabsClasses}});var v=t(37373);t.o(v,"tabClasses")&&t.d(e,{tabClasses:function(){return v.tabClasses}}),t.o(v,"tabsClasses")&&t.d(e,{tabsClasses:function(){return v.tabsClasses}});var x=t(32749);t.o(x,"tabClasses")&&t.d(e,{tabClasses:function(){return x.tabClasses}}),t.o(x,"tabsClasses")&&t.d(e,{tabsClasses:function(){return x.tabsClasses}});var g=t(21727);t.o(g,"tabClasses")&&t.d(e,{tabClasses:function(){return g.tabClasses}}),t.o(g,"tabsClasses")&&t.d(e,{tabsClasses:function(){return g.tabsClasses}});var j=t(19100);t.o(j,"tabClasses")&&t.d(e,{tabClasses:function(){return j.tabClasses}}),t.o(j,"tabsClasses")&&t.d(e,{tabsClasses:function(){return j.tabsClasses}});var w=t(15975);t.o(w,"tabClasses")&&t.d(e,{tabClasses:function(){return w.tabClasses}}),t.o(w,"tabsClasses")&&t.d(e,{tabsClasses:function(){return w.tabsClasses}});var M=t(26146);t.o(M,"tabClasses")&&t.d(e,{tabClasses:function(){return M.tabClasses}}),t.o(M,"tabsClasses")&&t.d(e,{tabsClasses:function(){return M.tabsClasses}});var Z=t(82539);t.o(Z,"tabClasses")&&t.d(e,{tabClasses:function(){return Z.tabClasses}}),t.o(Z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Z.tabsClasses}});var I=t(3330);t.o(I,"tabClasses")&&t.d(e,{tabClasses:function(){return I.tabClasses}}),t.o(I,"tabsClasses")&&t.d(e,{tabsClasses:function(){return I.tabsClasses}});var k=t(32180);t.o(k,"tabClasses")&&t.d(e,{tabClasses:function(){return k.tabClasses}}),t.o(k,"tabsClasses")&&t.d(e,{tabsClasses:function(){return k.tabsClasses}});var P=t(10964);t.o(P,"tabClasses")&&t.d(e,{tabClasses:function(){return P.tabClasses}}),t.o(P,"tabsClasses")&&t.d(e,{tabsClasses:function(){return P.tabsClasses}});var y=t(72260);t.o(y,"tabClasses")&&t.d(e,{tabClasses:function(){return y.tabClasses}}),t.o(y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return y.tabsClasses}});var F=t(42160);t.o(F,"tabClasses")&&t.d(e,{tabClasses:function(){return F.tabClasses}}),t.o(F,"tabsClasses")&&t.d(e,{tabsClasses:function(){return F.tabsClasses}});var A=t(96474);t.o(A,"tabClasses")&&t.d(e,{tabClasses:function(){return A.tabClasses}}),t.o(A,"tabsClasses")&&t.d(e,{tabsClasses:function(){return A.tabsClasses}});var S=t(56729);t.o(S,"tabClasses")&&t.d(e,{tabClasses:function(){return S.tabClasses}}),t.o(S,"tabsClasses")&&t.d(e,{tabsClasses:function(){return S.tabsClasses}});var T=t(36111);t.o(T,"tabClasses")&&t.d(e,{tabClasses:function(){return T.tabClasses}}),t.o(T,"tabsClasses")&&t.d(e,{tabsClasses:function(){return T.tabsClasses}});var _=t(47170);t.o(_,"tabClasses")&&t.d(e,{tabClasses:function(){return _.tabClasses}}),t.o(_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return _.tabsClasses}});var U=t(3897);t.o(U,"tabClasses")&&t.d(e,{tabClasses:function(){return U.tabClasses}}),t.o(U,"tabsClasses")&&t.d(e,{tabsClasses:function(){return U.tabsClasses}});var N=t(4602);t.o(N,"tabClasses")&&t.d(e,{tabClasses:function(){return N.tabClasses}}),t.o(N,"tabsClasses")&&t.d(e,{tabsClasses:function(){return N.tabsClasses}});var O=t(75814);t.o(O,"tabClasses")&&t.d(e,{tabClasses:function(){return O.tabClasses}}),t.o(O,"tabsClasses")&&t.d(e,{tabsClasses:function(){return O.tabsClasses}});var R=t(91370);t.o(R,"tabClasses")&&t.d(e,{tabClasses:function(){return R.tabClasses}}),t.o(R,"tabsClasses")&&t.d(e,{tabsClasses:function(){return R.tabsClasses}});var E=t(95118);t.o(E,"tabClasses")&&t.d(e,{tabClasses:function(){return E.tabClasses}}),t.o(E,"tabsClasses")&&t.d(e,{tabsClasses:function(){return E.tabsClasses}});var H=t(83972);t.o(H,"tabClasses")&&t.d(e,{tabClasses:function(){return H.tabClasses}}),t.o(H,"tabsClasses")&&t.d(e,{tabsClasses:function(){return H.tabsClasses}});var D=t(52756);t.o(D,"tabClasses")&&t.d(e,{tabClasses:function(){return D.tabClasses}}),t.o(D,"tabsClasses")&&t.d(e,{tabsClasses:function(){return D.tabsClasses}});var q=t(13694);t.o(q,"tabClasses")&&t.d(e,{tabClasses:function(){return q.tabClasses}}),t.o(q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return q.tabsClasses}});var B=t(98371);t.o(B,"tabClasses")&&t.d(e,{tabClasses:function(){return B.tabClasses}}),t.o(B,"tabsClasses")&&t.d(e,{tabsClasses:function(){return B.tabsClasses}});var G=t(35714);t.o(G,"tabClasses")&&t.d(e,{tabClasses:function(){return G.tabClasses}}),t.o(G,"tabsClasses")&&t.d(e,{tabsClasses:function(){return G.tabsClasses}});var L=t(68247);t.o(L,"tabClasses")&&t.d(e,{tabClasses:function(){return L.tabClasses}}),t.o(L,"tabsClasses")&&t.d(e,{tabsClasses:function(){return L.tabsClasses}});var z=t(45237);t.o(z,"tabClasses")&&t.d(e,{tabClasses:function(){return z.tabClasses}}),t.o(z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return z.tabsClasses}});var V=t(39884);t.o(V,"tabClasses")&&t.d(e,{tabClasses:function(){return V.tabClasses}}),t.o(V,"tabsClasses")&&t.d(e,{tabsClasses:function(){return V.tabsClasses}});var W=t(33805);t.o(W,"tabClasses")&&t.d(e,{tabClasses:function(){return W.tabClasses}}),t.o(W,"tabsClasses")&&t.d(e,{tabsClasses:function(){return W.tabsClasses}});var Q=t(15282);t.o(Q,"tabClasses")&&t.d(e,{tabClasses:function(){return Q.tabClasses}}),t.o(Q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Q.tabsClasses}});var $=t(24099);t.o($,"tabClasses")&&t.d(e,{tabClasses:function(){return $.tabClasses}}),t.o($,"tabsClasses")&&t.d(e,{tabsClasses:function(){return $.tabsClasses}});var J=t(37870);t.o(J,"tabClasses")&&t.d(e,{tabClasses:function(){return J.tabClasses}}),t.o(J,"tabsClasses")&&t.d(e,{tabsClasses:function(){return J.tabsClasses}});var K=t(97236);t.o(K,"tabClasses")&&t.d(e,{tabClasses:function(){return K.tabClasses}}),t.o(K,"tabsClasses")&&t.d(e,{tabsClasses:function(){return K.tabsClasses}});var X=t(41712);t.o(X,"tabClasses")&&t.d(e,{tabClasses:function(){return X.tabClasses}}),t.o(X,"tabsClasses")&&t.d(e,{tabsClasses:function(){return X.tabsClasses}});var Y=t(66210);t.o(Y,"tabClasses")&&t.d(e,{tabClasses:function(){return Y.tabClasses}}),t.o(Y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Y.tabsClasses}});var ss=t(40901);t.o(ss,"tabClasses")&&t.d(e,{tabClasses:function(){return ss.tabClasses}}),t.o(ss,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ss.tabsClasses}});var se=t(19496);t.o(se,"tabClasses")&&t.d(e,{tabClasses:function(){return se.tabClasses}}),t.o(se,"tabsClasses")&&t.d(e,{tabsClasses:function(){return se.tabsClasses}});var st=t(33869);t.o(st,"tabClasses")&&t.d(e,{tabClasses:function(){return st.tabClasses}}),t.o(st,"tabsClasses")&&t.d(e,{tabsClasses:function(){return st.tabsClasses}});var sa=t(47259);t.o(sa,"tabClasses")&&t.d(e,{tabClasses:function(){return sa.tabClasses}}),t.o(sa,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sa.tabsClasses}});var sn=t(55857);t.o(sn,"tabClasses")&&t.d(e,{tabClasses:function(){return sn.tabClasses}}),t.o(sn,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sn.tabsClasses}});var sr=t(68282);t.o(sr,"tabClasses")&&t.d(e,{tabClasses:function(){return sr.tabClasses}}),t.o(sr,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sr.tabsClasses}});var sl=t(95124);t.o(sl,"tabClasses")&&t.d(e,{tabClasses:function(){return sl.tabClasses}}),t.o(sl,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sl.tabsClasses}});var so=t(34857);t.o(so,"tabClasses")&&t.d(e,{tabClasses:function(){return so.tabClasses}}),t.o(so,"tabsClasses")&&t.d(e,{tabsClasses:function(){return so.tabsClasses}});var su=t(69232);t.o(su,"tabClasses")&&t.d(e,{tabClasses:function(){return su.tabClasses}}),t.o(su,"tabsClasses")&&t.d(e,{tabsClasses:function(){return su.tabsClasses}});var si=t(95461);t.o(si,"tabClasses")&&t.d(e,{tabClasses:function(){return si.tabClasses}}),t.o(si,"tabsClasses")&&t.d(e,{tabsClasses:function(){return si.tabsClasses}});var sc=t(25477);t.o(sc,"tabClasses")&&t.d(e,{tabClasses:function(){return sc.tabClasses}}),t.o(sc,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sc.tabsClasses}});var sb=t(30207);t.o(sb,"tabClasses")&&t.d(e,{tabClasses:function(){return sb.tabClasses}}),t.o(sb,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sb.tabsClasses}});var sd=t(68123);t.o(sd,"tabClasses")&&t.d(e,{tabClasses:function(){return sd.tabClasses}}),t.o(sd,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sd.tabsClasses}});var sC=t(90596);t.o(sC,"tabClasses")&&t.d(e,{tabClasses:function(){return sC.tabClasses}}),t.o(sC,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sC.tabsClasses}});var sf=t(45289);t.o(sf,"tabClasses")&&t.d(e,{tabClasses:function(){return sf.tabClasses}}),t.o(sf,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sf.tabsClasses}});var sp=t(15162);t.o(sp,"tabClasses")&&t.d(e,{tabClasses:function(){return sp.tabClasses}}),t.o(sp,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sp.tabsClasses}});var sm=t(91032);t.o(sm,"tabClasses")&&t.d(e,{tabClasses:function(){return sm.tabClasses}}),t.o(sm,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sm.tabsClasses}});var sh=t(74567);t.o(sh,"tabClasses")&&t.d(e,{tabClasses:function(){return sh.tabClasses}}),t.o(sh,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sh.tabsClasses}});var sv=t(91107);t.o(sv,"tabClasses")&&t.d(e,{tabClasses:function(){return sv.tabClasses}}),t.o(sv,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sv.tabsClasses}});var sx=t(44395);t.o(sx,"tabClasses")&&t.d(e,{tabClasses:function(){return sx.tabClasses}}),t.o(sx,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sx.tabsClasses}});var sg=t(48699);t.o(sg,"tabClasses")&&t.d(e,{tabClasses:function(){return sg.tabClasses}}),t.o(sg,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sg.tabsClasses}});var sj=t(14426);t.o(sj,"tabClasses")&&t.d(e,{tabClasses:function(){return sj.tabClasses}}),t.o(sj,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sj.tabsClasses}});var sw=t(92429);t.o(sw,"tabClasses")&&t.d(e,{tabClasses:function(){return sw.tabClasses}}),t.o(sw,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sw.tabsClasses}});var sM=t(40512);t.o(sM,"tabClasses")&&t.d(e,{tabClasses:function(){return sM.tabClasses}}),t.o(sM,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sM.tabsClasses}});var sZ=t(12331);t.o(sZ,"tabClasses")&&t.d(e,{tabClasses:function(){return sZ.tabClasses}}),t.o(sZ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sZ.tabsClasses}});var sI=t(86071);t.o(sI,"tabClasses")&&t.d(e,{tabClasses:function(){return sI.tabClasses}}),t.o(sI,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sI.tabsClasses}});var sk=t(67971);t.o(sk,"tabClasses")&&t.d(e,{tabClasses:function(){return sk.tabClasses}}),t.o(sk,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sk.tabsClasses}});var sP=t(26736);t.o(sP,"tabClasses")&&t.d(e,{tabClasses:function(){return sP.tabClasses}}),t.o(sP,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sP.tabsClasses}});var sy=t(46570);t.o(sy,"tabClasses")&&t.d(e,{tabClasses:function(){return sy.tabClasses}}),t.o(sy,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sy.tabsClasses}});var sF=t(33472);t.o(sF,"tabClasses")&&t.d(e,{tabClasses:function(){return sF.tabClasses}}),t.o(sF,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sF.tabsClasses}});var sA=t(8268);t.o(sA,"tabClasses")&&t.d(e,{tabClasses:function(){return sA.tabClasses}}),t.o(sA,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sA.tabsClasses}});var sS=t(63238);t.o(sS,"tabClasses")&&t.d(e,{tabClasses:function(){return sS.tabClasses}}),t.o(sS,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sS.tabsClasses}});var sT=t(96194);t.o(sT,"tabClasses")&&t.d(e,{tabClasses:function(){return sT.tabClasses}}),t.o(sT,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sT.tabsClasses}});var s_=t(51834);t.o(s_,"tabClasses")&&t.d(e,{tabClasses:function(){return s_.tabClasses}}),t.o(s_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s_.tabsClasses}});var sU=t(61652);t.o(sU,"tabClasses")&&t.d(e,{tabClasses:function(){return sU.tabClasses}}),t.o(sU,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sU.tabsClasses}});var sN=t(10267);t.o(sN,"tabClasses")&&t.d(e,{tabClasses:function(){return sN.tabClasses}}),t.o(sN,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sN.tabsClasses}});var sO=t(25190);t.o(sO,"tabClasses")&&t.d(e,{tabClasses:function(){return sO.tabClasses}}),t.o(sO,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sO.tabsClasses}});var sR=t(27193);t.o(sR,"tabClasses")&&t.d(e,{tabClasses:function(){return sR.tabClasses}}),t.o(sR,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sR.tabsClasses}});var sE=t(77319);t.o(sE,"tabClasses")&&t.d(e,{tabClasses:function(){return sE.tabClasses}}),t.o(sE,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sE.tabsClasses}});var sH=t(13713);t.o(sH,"tabClasses")&&t.d(e,{tabClasses:function(){return sH.tabClasses}}),t.o(sH,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sH.tabsClasses}});var sD=t(75866);t.o(sD,"tabClasses")&&t.d(e,{tabClasses:function(){return sD.tabClasses}}),t.o(sD,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sD.tabsClasses}});var sq=t(18782);t.o(sq,"tabClasses")&&t.d(e,{tabClasses:function(){return sq.tabClasses}}),t.o(sq,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sq.tabsClasses}});var sB=t(45525);t.o(sB,"tabClasses")&&t.d(e,{tabClasses:function(){return sB.tabClasses}}),t.o(sB,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sB.tabsClasses}});var sG=t(82325);t.o(sG,"tabClasses")&&t.d(e,{tabClasses:function(){return sG.tabClasses}}),t.o(sG,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sG.tabsClasses}});var sL=t(59976);t.o(sL,"tabClasses")&&t.d(e,{tabClasses:function(){return sL.tabClasses}}),t.o(sL,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sL.tabsClasses}});var sz=t(25673);t.o(sz,"tabClasses")&&t.d(e,{tabClasses:function(){return sz.tabClasses}}),t.o(sz,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sz.tabsClasses}});var sV=t(74256);t.o(sV,"tabClasses")&&t.d(e,{tabClasses:function(){return sV.tabClasses}}),t.o(sV,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sV.tabsClasses}});var sW=t(14189);t.o(sW,"tabClasses")&&t.d(e,{tabClasses:function(){return sW.tabClasses}}),t.o(sW,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sW.tabsClasses}});var sQ=t(84122);t.o(sQ,"tabClasses")&&t.d(e,{tabClasses:function(){return sQ.tabClasses}}),t.o(sQ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sQ.tabsClasses}});var s$=t(46895);t.o(s$,"tabClasses")&&t.d(e,{tabClasses:function(){return s$.tabClasses}}),t.o(s$,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s$.tabsClasses}});var sJ=t(55167);t.o(sJ,"tabClasses")&&t.d(e,{tabClasses:function(){return sJ.tabClasses}}),t.o(sJ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sJ.tabsClasses}});var sK=t(70947);t.o(sK,"tabClasses")&&t.d(e,{tabClasses:function(){return sK.tabClasses}}),t.o(sK,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sK.tabsClasses}});var sX=t(99761);t.o(sX,"tabClasses")&&t.d(e,{tabClasses:function(){return sX.tabClasses}}),t.o(sX,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sX.tabsClasses}});var sY=t(67669);t.o(sY,"tabClasses")&&t.d(e,{tabClasses:function(){return sY.tabClasses}}),t.o(sY,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sY.tabsClasses}});var s0=t(60246);t.o(s0,"tabClasses")&&t.d(e,{tabClasses:function(){return s0.tabClasses}}),t.o(s0,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s0.tabsClasses}});var s1=t(21413);t.o(s1,"tabClasses")&&t.d(e,{tabClasses:function(){return s1.tabClasses}}),t.o(s1,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s1.tabsClasses}});var s2=t(62284);t.o(s2,"tabClasses")&&t.d(e,{tabClasses:function(){return s2.tabClasses}}),t.o(s2,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s2.tabsClasses}});var s3=t(75113);t.o(s3,"tabClasses")&&t.d(e,{tabClasses:function(){return s3.tabClasses}}),t.o(s3,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s3.tabsClasses}});var s5=t(62210);t.o(s5,"tabClasses")&&t.d(e,{tabClasses:function(){return s5.tabClasses}}),t.o(s5,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s5.tabsClasses}});var s9=t(40723);t.o(s9,"tabClasses")&&t.d(e,{tabClasses:function(){return s9.tabClasses}}),t.o(s9,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s9.tabsClasses}});var s6=t(63163);t.o(s6,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s6.tabsClasses}});var s4=t(60374);t.o(s4,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s4.tabsClasses}});var s7=t(25501);t.o(s7,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s7.tabsClasses}});var s8=t(26945);t.o(s8,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s8.tabsClasses}});var es=t(55644);t.o(es,"tabsClasses")&&t.d(e,{tabsClasses:function(){return es.tabsClasses}});var ee=t(22238);t.o(ee,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ee.tabsClasses}});var et=t(83239);t.o(et,"tabsClasses")&&t.d(e,{tabsClasses:function(){return et.tabsClasses}});var ea=t(56495);t.o(ea,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ea.tabsClasses}});var en=t(16338);t.o(en,"tabsClasses")&&t.d(e,{tabsClasses:function(){return en.tabsClasses}});var er=t(22164);t.o(er,"tabsClasses")&&t.d(e,{tabsClasses:function(){return er.tabsClasses}});var el=t(22386)},50303:function(){},57042:function(){},22307:function(s,e,t){"use strict";var a=t(57042);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},68332:function(){},16781:function(s,e,t){"use strict";var a=t(68332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},38599:function(){},21490:function(s,e,t){"use strict";var a=t(38599);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},49028:function(){},82120:function(s,e,t){"use strict";var a=t(49028);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83419:function(){},52290:function(s,e,t){"use strict";var a=t(83419);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},41976:function(){},49179:function(s,e,t){"use strict";var a=t(41976);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},48036:function(){},89904:function(s,e,t){"use strict";var a=t(48036);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21512:function(){},3498:function(s,e,t){"use strict";var a=t(21512);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24612:function(){},53624:function(s,e,t){"use strict";var a=t(24612);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3656:function(){},87305:function(s,e,t){"use strict";var a=t(3656);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},80262:function(){},58987:function(s,e,t){"use strict";var a=t(80262);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},64179:function(){},17714:function(s,e,t){"use strict";var a=t(64179);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88001:function(){},34952:function(s,e,t){"use strict";var a=t(88001);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1396:function(){},37373:function(s,e,t){"use strict";var a=t(1396);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54354:function(){},32749:function(s,e,t){"use strict";var a=t(54354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60817:function(){},21727:function(s,e,t){"use strict";var a=t(60817);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},6091:function(){},19100:function(s,e,t){"use strict";var a=t(6091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88980:function(){},15975:function(s,e,t){"use strict";var a=t(88980);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99127);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},99127:function(){},99277:function(){},26146:function(s,e,t){"use strict";var a=t(99277);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66993:function(){},82539:function(s,e,t){"use strict";var a=t(66993);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},90705:function(){},3330:function(s,e,t){"use strict";var a=t(90705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},89513:function(){},32180:function(s,e,t){"use strict";var a=t(89513);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26481:function(){},10964:function(s,e,t){"use strict";var a=t(26481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24079:function(){},72260:function(s,e,t){"use strict";var a=t(24079);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},74215:function(){},42160:function(s,e,t){"use strict";var a=t(74215);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},35289:function(){},96474:function(s,e,t){"use strict";var a=t(35289);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31106:function(){},56729:function(s,e,t){"use strict";var a=t(31106);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54760:function(){},36111:function(s,e,t){"use strict";var a=t(54760);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},47170:function(){},91707:function(){},3897:function(s,e,t){"use strict";var a=t(91707);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},56758:function(){},4602:function(s,e,t){"use strict";var a=t(56758);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},75814:function(){},43754:function(){},95118:function(s,e,t){"use strict";var a=t(43754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5614:function(){},83972:function(s,e,t){"use strict";var a=t(5614);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31353:function(){},52756:function(s,e,t){"use strict";var a=t(31353);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},76827:function(){},13694:function(s,e,t){"use strict";var a=t(76827);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83481:function(){},98371:function(s,e,t){"use strict";var a=t(83481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54367:function(){},35714:function(s,e,t){"use strict";var a=t(54367);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20091:function(){},68247:function(s,e,t){"use strict";var a=t(20091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60482:function(){},45237:function(s,e,t){"use strict";var a=t(60482);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},39884:function(){},49144:function(){},33805:function(s,e,t){"use strict";var a=t(49144);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21577:function(){},15282:function(s,e,t){"use strict";var a=t(21577);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26873:function(){},24099:function(s,e,t){"use strict";var a=t(26873);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},25312:function(){},37870:function(s,e,t){"use strict";var a=t(25312);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99119:function(){},97236:function(s,e,t){"use strict";var a=t(99119);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},43992:function(){},91299:function(){},41712:function(s,e,t){"use strict";var a=t(43992);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(91299);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90190:function(){},66210:function(s,e,t){"use strict";var a=t(90190);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},19496:function(){},33869:function(){},58548:function(){},47259:function(s,e,t){"use strict";var a=t(58548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55332:function(){},55857:function(s,e,t){"use strict";var a=t(55332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},33255:function(){},68282:function(s,e,t){"use strict";var a=t(33255);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62587:function(){},95124:function(s,e,t){"use strict";var a=t(62587);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},82354:function(){},34857:function(s,e,t){"use strict";var a=t(82354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},69232:function(s,e,t){"use strict";var a=t(55149);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55149:function(){},95461:function(s,e,t){"use strict";var a=t(37974);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37974:function(){},25477:function(s,e,t){"use strict";var a=t(1514);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1514:function(){},30207:function(s,e,t){"use strict";var a=t(78051);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},78051:function(){},68123:function(s,e,t){"use strict";var a=t(54098);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54098:function(){},90596:function(s,e,t){"use strict";var a=t(79665);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},79665:function(){},45289:function(s,e,t){"use strict";var a=t(13724);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13724:function(){},15162:function(s,e,t){"use strict";var a=t(63422);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},63422:function(){},91032:function(s,e,t){"use strict";var a=t(54417);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54417:function(){},74567:function(s,e,t){"use strict";var a=t(99811);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99811:function(){},91107:function(s,e,t){"use strict";var a=t(30450);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30450:function(){},44395:function(s,e,t){"use strict";var a=t(96488);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},96488:function(){},48699:function(s,e,t){"use strict";var a=t(55865);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55865:function(){},14426:function(s,e,t){"use strict";var a=t(87147);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},87147:function(){},92429:function(s,e,t){"use strict";var a=t(32212);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32212:function(){},40512:function(s,e,t){"use strict";var a=t(31820);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31820:function(){},12331:function(){},86071:function(s,e,t){"use strict";var a=t(5240);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5240:function(){},67971:function(s,e,t){"use strict";var a=t(85310);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},85310:function(){},26736:function(s,e,t){"use strict";var a=t(20902);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20902:function(){},46570:function(){},33472:function(s,e,t){"use strict";var a=t(37393);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37393:function(){},8268:function(s,e,t){"use strict";var a=t(70553);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},70553:function(){},63238:function(s,e,t){"use strict";var a=t(5317);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5317:function(){},96194:function(s,e,t){"use strict";var a=t(62475);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62475:function(){},79428:function(){},51834:function(s,e,t){"use strict";var a=t(79428);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(32336);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},32336:function(){},61652:function(){},10267:function(){},25190:function(s,e,t){"use strict";var a=t(88094);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88094:function(){},27193:function(){},77319:function(s,e,t){"use strict";var a=t(66432);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66432:function(){},13713:function(s,e,t){"use strict";var a=t(40597);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},40597:function(){},75866:function(s,e,t){"use strict";var a=t(34456);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},34456:function(){},18782:function(s,e,t){"use strict";var a=t(67504);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67504:function(){},45525:function(){},56166:function(){},82325:function(s,e,t){"use strict";var a=t(56166);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(28925);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},28925:function(){},59976:function(s,e,t){"use strict";var a=t(42709);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},42709:function(){},25673:function(s,e,t){"use strict";var a=t(10754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10754:function(){},74256:function(s,e,t){"use strict";var a=t(93989);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},93989:function(){},14189:function(s,e,t){"use strict";var a=t(2437);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},2437:function(){},84122:function(s,e,t){"use strict";var a=t(29406);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},29406:function(){},46895:function(){},18618:function(){},55167:function(s,e,t){"use strict";var a=t(90834);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(18618);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90834:function(){},70947:function(s,e,t){"use strict";var a=t(13548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13548:function(){},99761:function(s,e,t){"use strict";var a=t(63520);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},63520:function(){},67669:function(s,e,t){"use strict";var a=t(20204);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20204:function(){},60246:function(s,e,t){"use strict";var a=t(10261);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10261:function(){},21413:function(s,e,t){"use strict";var a=t(71794);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},71794:function(){},80902:function(){},62284:function(s,e,t){"use strict";var a=t(25325);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(80902);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},25325:function(){},75113:function(s,e,t){"use strict";var a=t(62568);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62568:function(){},62210:function(){},40723:function(s,e,t){"use strict";var a=t(32705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32705:function(){},63163:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return a.Z}});var a=t(21073),n=t(70612);t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},60374:function(s,e,t){"use strict";var a=t(13899);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13899:function(){},25501:function(s,e,t){"use strict";var a=t(67893);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67893:function(){},26945:function(s,e,t){"use strict";var a=t(61725);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},61725:function(){},55644:function(s,e,t){"use strict";var a=t(3707);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3707:function(){},22238:function(s,e,t){"use strict";var a=t(30148);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30148:function(){},83239:function(s,e,t){"use strict";var a=t(55969);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55969:function(){},56495:function(s,e,t){"use strict";var a=t(73632);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},73632:function(){},16338:function(s,e,t){"use strict";var a=t(83479);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83479:function(){},22164:function(s,e,t){"use strict";var a=t(3580);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3580:function(){},22386:function(s,e,t){"use strict";t.d(e,{tabsClasses:function(){return a.Z}});var a=t(90852)},1234:function(){},89860:function(){},40901:function(s,e,t){"use strict";var a=t(1234);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(89860);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},91370:function(){},2373:function(s,e,t){"use strict";var a=t(50303);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99164:function(){},70612:function(){},29582:function(s,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage-element",function(){return t(70788)}])},87038:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(56597);let l=(0,n.forwardRef)((s,e)=>{let{children:t,contentContainerProps:l,dialogProps:o,onSubmitAppend:u,proceedButtonProps:i,scrollBoxProps:c,scrollContent:b,...d}=s,C=(0,n.useMemo)(()=>({...l,component:"form",onSubmit:function(){for(var s=arguments.length,e=Array(s),t=0;t({...c,sx:b?{overflowX:"hidden",paddingTop:".6em",...null==c?void 0:c.sx}:null==c?void 0:c.sx}),[c,b]);return(0,a.jsx)(r.Z,{dialogProps:o,contentContainerProps:C,proceedButtonProps:{...i,type:"submit"},scrollContent:b,scrollBoxProps:f,wide:!0,...d,ref:e,children:t})});l.displayName="FormDialog",e.Z=l},37039:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(48263),l=t(5616);e.Z=s=>{let{calculateItemBreakpoints:e=()=>({xs:1}),layout:t,wrapperBoxProps:o,...u}=s,i=(0,n.useMemo)(()=>{let s=Object.entries(t);return s.map((s,t)=>{let[a,l]=s;return l?(0,n.createElement)(r.ZP,{...e(t,a),key:a,item:!0,...l}):void 0})},[e,t]);return(0,a.jsx)(l.Z,{...o,children:(0,a.jsx)(r.ZP,{container:!0,...u,children:i})})}},58839:function(s,e,t){"use strict";var a=t(67294);e.Z=function(){let{actionProceedText:s="",content:e="",titleText:t="",...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.useState)({actionProceedText:s,content:e,titleText:t,...n})}},96867:function(s,e,t){"use strict";var a=t(67294),n=t(67645),r=t(84070),l=t(41247);e.Z=(s,e)=>{var t;let[o,u]=(0,a.useState)(!1),[i,c]=(0,a.useState)({}),b=(0,a.useCallback)(s=>{var t,a;return null==e?void 0:null===(a=e.current)||void 0===a?void 0:null===(t=a.setMessage)||void 0===t?void 0:t.call(null,"api",s)},[e]),d=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessage)||void 0===a||a.call(null,String(s),t)},[e]),C=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessageRe)||void 0===a||a.call(null,s,t)},[e]),f=(0,a.useCallback)((s,e)=>{c((0,r.ZP)(s,e))},[]),p=(0,a.useCallback)((s,e)=>{c((0,r.Um)(s,e))},[]),m=(0,a.useCallback)(s=>{d(s),f(s)},[d,f]),h=(0,a.useCallback)(s=>{C(s),p(s)},[C,p]),v=(0,a.useCallback)(s=>e=>{f(s,e)},[f]),x=(0,a.useCallback)(s=>e=>{let{isValid:t}=e;f(s,t)},[f]),g=(0,a.useCallback)(s=>()=>{m(s)},[m]),j=(0,a.useCallback)(s=>{let{body:a,getErrorMsg:r,msgKey:o="api",method:i,onError:c,onSuccess:b,setMsg:d=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.setMessage,successMsg:C,url:f}=s;u(!0),n.Z.request({data:a,method:i,url:f}).then(()=>{null==d||d.call(null,o,{children:C,type:"info"}),null==b||b.call(null)}).catch(s=>{let e=(0,l.Z)(s);e.children=r(e.children),null==d||d.call(null,o,e),null==c||c.call(null)}).finally(()=>{u(!1)})},[e,u]),w=(0,a.useMemo)(()=>Object.values(i).some(s=>!s),[i]);return{buildFinishInputTestBatchFunction:v,buildInputFirstRenderFunction:x,buildInputUnmountFunction:g,formValidity:i,isFormInvalid:w,isFormSubmitting:o,setApiMessage:b,setFormValidity:c,setMessage:d,setMessageRe:C,setValidity:f,setValidityRe:p,submitForm:j,unsetKey:m,unsetKeyRe:h}}},70788:function(s,e,t){"use strict";t.r(e),t.d(e,{default:function(){return manage_element}});var a=t(85893),n=t(9008),r=t.n(n),l=t(11163),o=t(67294),u=t(67645),lib_getQueryParam=function(s){let{fallbackValue:e="",joinSeparator:t="",limit:a=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s instanceof Array?s.slice(0,a).join(t):null!=s?s:e},i=t(37039),c=t(41247),b=t(21405),d=t(98436),C=t(5616),f=t(89712),p=t(90948),m=t(34386),h=t(94121),v=t(55238),x=t(92917),g=t(55675),j=t(37260),w=t(52886),M=t(58843),Z=t(72852),I=t(6010),k=t(84154);let P=(0,p.ZP)(M.Z)({height:"3.5em",marginLeft:0,width:"100%"});var components_SwitchWithLabel=s=>{let{baseInputProps:e,checked:t,formControlLabelProps:n,id:r,label:l,name:u,onChange:i,switchProps:c}=s,b=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(k.Ac,{inheritColour:!0,color:"".concat(I.s7,"AF"),children:l}):(0,a.jsx)(a.Fragment,{children:l}),[l]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{componentsProps:{typography:{flexGrow:1}},control:(0,a.jsx)(Z.Z,{checked:t,edge:"end",name:u,onChange:i,...c}),label:b,labelPlacement:"start",...n}),(0,a.jsx)("input",{checked:t,hidden:!0,id:r,readOnly:!0,...e})]})},y=t(50233);let F=["1","on"],getStringParamInputTestBatch=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,setMessage:t},id:a,label:n}=s,r=e(a),onSuccess=()=>{t(a)};return"ip"===n.toLowerCase()?(0,y._)(n,onSuccess,{onFinishBatch:r},s=>{t(a,{children:s})}):{defaults:{onSuccess},onFinishBatch:r,tests:[{test:y.HJ}]}},buildNumberParamInput=s=>{let{formUtils:e,id:t,isRequired:n,label:r="",name:l=t,value:o}=s,{buildFinishInputTestBatchFunction:u,buildInputFirstRenderFunction:i,setMessage:c}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:t,label:r,name:l,value:o}),inputTestBatch:(0,y.qY)(r,()=>{c(t)},{onFinishBatch:u(t)},s=>{c(t,{children:s})}),onFirstRender:i(t),required:n,valueType:"number"},"".concat(t,"-wrapper"))},A={boolean:s=>{let{id:e,isChecked:t=!1,label:n,name:r=e}=s;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{checked:t,id:e,label:n,name:r}),valueType:"boolean"},"".concat(e,"-wrapper"))},integer:buildNumberParamInput,second:buildNumberParamInput,select:s=>{let{formUtils:e,id:t,isRequired:n,label:r,name:l=t,selectOptions:o=[],value:u=""}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:b}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:t,label:r,name:l,selectItems:o,value:u}),inputTestBatch:{defaults:{onSuccess:()=>{b(t)}},onFinishBatch:i(t),tests:[{test:y.HJ}]},onFirstRender:c(t),required:n},"".concat(t,"-wrapper"))},string:s=>{let e;let{formUtils:t,id:n,isRequired:r,isSensitive:l=!1,label:o="",name:u=n,value:i}=s,{buildInputFirstRenderFunction:c}=t;return l&&(e=h.Z.password),(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:n,label:o,name:u,type:e,value:i}),inputTestBatch:getStringParamInputTestBatch({formUtils:t,id:n,label:o}),onFirstRender:c(n),required:r},"".concat(n,"-wrapper"))}},combineIds=function(){for(var s=arguments.length,e=Array(s),t=0;t{let{fenceId:e,fenceParameterTooltipProps:t,fenceTemplate:n,formUtils:r,previousFenceName:l,previousFenceParameters:u}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:b}=r,d=(0,o.useMemo)(()=>{let s;if(n&&e){let{parameters:o}=n[e],d={};u&&(d=Object.entries(u).reduce((s,t)=>{let[a,n]=t,r=combineIds(e,a);return s[r]=n,s},{}));let{optional:f,required:p}=Object.entries(o).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).reduce((s,n)=>{var l,o;let[u,{content_type:i,default:c,deprecated:b,description:f,options:p,required:h}]=n,v="1"===String(b);if(v)return s;let{optional:x,required:g}=s,j=null!==(l=A[i])&&void 0!==l?l:A.string,w=combineIds(e,u),M=null!==(o=d[w])&&void 0!==o?o:c,Z="1"===String(h),I=/passw/i.test(u),P=j({formUtils:r,id:w,isChecked:F.includes(M),isRequired:Z,isSensitive:I,label:u,selectOptions:p,value:M}),y=(0,a.jsx)(m.Z,{componentsProps:{tooltip:{sx:{maxWidth:{md:"62.6em"}}}},disableInteractive:!0,placement:"top-start",title:(0,a.jsx)(k.Ac,{children:f}),...t,children:(0,a.jsx)(C.Z,{children:P})},"".concat(w,"-tooltip"));return Z?g.push(y):x.push(y),s},{optional:[],required:[]}),h=combineIds(e,"name"),w="Fence device name";s=(0,a.jsxs)(v.Z,{sx:{"& > div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,a.jsx)(j.TZ,{expandInitially:!0,header:"Required parameters",children:(0,a.jsxs)(S,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:h,label:w,name:h,value:l}),inputTestBatch:(0,y.Gn)(w,()=>{b(h)},{onFinishBatch:i(h)},s=>{b(h,{children:s})}),onFirstRender:c(h),required:!0},"".concat(h,"-wrapper")),p]})}),(0,a.jsx)(j.TZ,{header:"Optional parameters",children:(0,a.jsx)(S,{children:f})})]})}return s},[i,c,e,t,n,r,l,u,b]);return(0,a.jsx)(a.Fragment,{children:d})},T=t(81796),_=t(42702);let U="add-fence-input-agent";var ManageFence_AddFenceInputGroup=s=>{let{fenceTemplate:e,formUtils:t,loading:n}=s,{setValidity:r}=t,l=(0,_.Z)(),[u,i]=(0,o.useState)(null),c=(0,o.useMemo)(()=>e?Object.entries(e).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).map(s=>{let[e,{description:t}]=s;return{fenceDescription:"string"==typeof t?t:"No description.",fenceId:e,label:e}}):[],[e]),b=(0,o.useMemo)(()=>(0,a.jsx)(f.Z,{id:U,isOptionEqualToValue:(s,e)=>s.fenceId===e.fenceId,label:"Fence device type",onChange:(s,e)=>{r(U,null!==e),i(e)},openOnFocus:!0,options:c,renderOption:(s,e,t)=>{let{fenceDescription:n,fenceId:r}=e,{selected:l}=t;return(0,a.jsxs)(C.Z,{component:"li",sx:{display:"flex",flexDirection:"column","& > *":{width:"100%"}},...s,children:[(0,a.jsx)(k.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:l?400:void 0},children:r}),(0,a.jsx)(k.Ac,{selected:!1,children:n})]})},sx:{marginTop:".3em"},value:u}),[c,u,r]),d=(0,o.useMemo)(()=>(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:null==u?void 0:u.fenceId,fenceTemplate:e,formUtils:t}),[e,null==u?void 0:u.fenceId,t]),p=(0,o.useMemo)(()=>n?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[b,d]}),[b,d,n]);return(0,o.useEffect)(()=>{l&&r(U,null!==u)},[u,l,r]),(0,a.jsx)(a.Fragment,{children:p})},N=t(56597),ManageFence_EditFenceInputGroup=s=>{let{fenceId:e,fenceTemplate:t,formUtils:n,loading:r,previousFenceName:l,previousFenceParameters:u}=s,i=(0,o.useMemo)(()=>r?(0,a.jsx)(T.Z,{}):(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:e,fenceTemplate:t,formUtils:n,previousFenceName:l,previousFenceParameters:u}),[t,e,n,r,l,u]);return(0,a.jsx)(a.Fragment,{children:i})},O=t(87038),R=t(15079),E=t(63071),H=t(21642),D=t(64666),q=t(32576),B=t(58839),G=t(96867);let assertFormInputId=s=>{let{id:e}=s,t=new RegExp("^(fence[^-]+)".concat("-","([^\\s]+)$")),a=e.match(t);if(!a)throw Error("Not target input element");return a},assertFormInputName=(s,e,t)=>{if("name"===s)throw e.name=t,Error("Not child parameter")},assertFormParamSpec=s=>{if(!s)throw Error("Not parameter specification")},assertFormParamValue=(s,e)=>{if([e,"",null,void 0].some(e=>s===e))throw Error("Skippable parameter value")},getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{try{let a=assertFormInputId(t),[,n,r]=a;e.agent=n;let{checked:l,value:o}=t;assertFormInputName(r,e,o);let{[n]:{parameters:{[r]:u}}}=s;assertFormParamSpec(u);let{content_type:i,default:c}=u,b=o;"boolean"===i&&(b=l?"1":""),assertFormParamValue(b,c),e.parameters[r]=b}catch(s){}return e},{agent:"",name:"",parameters:{}})};var ManageFence=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,B.Z)(),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(),[h,x]=(0,o.useState)(!1),[g,w]=(0,o.useState)(!0),{isLoading:M}=(0,D.Z)("".concat(d.Z,"/fence"),{onSuccess:s=>f(s),refreshInterval:6e4}),Z=(0,o.useCallback)(()=>{u.Z.get("/fence").then(s=>{let{data:e}=s;f(e)})},[f]),I=(0,G.Z)([U],n),{isFormInvalid:P,isFormSubmitting:y,submitForm:F}=I,{buildDeleteDialogProps:A,checks:S,getCheck:L,hasChecks:z,resetChecks:V,setCheck:W}=(0,q.Z)({list:C}),Q=(0,o.useCallback)(s=>{let{cap:e,depth:t,key:a}=s;return 0===t?e(a):a},[]),$=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:h,disableDelete:!z,edit:h,header:!0,listItems:C,onAdd:()=>{var s;b({actionProceedText:"Add",content:(0,a.jsx)(ManageFence_AddFenceInputGroup,{fenceTemplate:p,formUtils:I}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s),{agent:r,name:o}=n;l({actionProceedText:"Add",content:(0,a.jsx)(R.Z,{entries:n,hasPassword:!0,getEntryLabel:Q}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add fence device. ",s]}),method:"post",onSuccess:()=>Z(),successMsg:"Added fence device ".concat(o),url:"/fence"})},titleText:(0,a.jsxs)(k.z,{children:["Add a"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a fence device"}),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(A({getConfirmDialogTitle:s=>"Delete ".concat(s," fence device(s)?"),onProceedAppend:()=>{F({body:{uuids:S},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete fence device(s). ",s]}),method:"delete",onSuccess:()=>{Z(),V()},url:"/fence"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==C?void 0:C[e].fenceName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{x(s=>!s)},onItemCheckboxChange:(s,e,t)=>{W(s,t)},onItemClick:s=>{var n;let{fenceAgent:r,fenceName:o,fenceParameters:u,fenceUUID:i}=s;b({actionProceedText:"Update",content:(0,a.jsx)(ManageFence_EditFenceInputGroup,{fenceId:r,fenceTemplate:p,formUtils:I,previousFenceName:o,previousFenceParameters:u}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s);l({actionProceedText:"Update",content:(0,a.jsx)(R.Z,{entries:n,hasPassword:!0,getEntryLabel:Q}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update fence device. ",s]}),method:"put",onSuccess:()=>Z(),successMsg:"Updated fence device ".concat(o),url:"/fence/".concat(i)})},titleText:(0,a.jsxs)(k.z,{children:["Update"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:o})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(k.z,{children:["Update fence device"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:o})," ","parameters"]})}),null===(n=t.current.setOpen)||void 0===n||n.call(null,!0)},renderListItemCheckboxState:s=>L(s),renderListItem:(s,e)=>{let{fenceAgent:t,fenceName:n,fenceParameters:r}=e;return(0,a.jsxs)(v.Z,{row:!0,children:[(0,a.jsx)(k.Ac,{children:n}),(0,a.jsx)(k.Ac,{children:Object.entries(r).reduce((s,e)=>{let[t,n]=e,r=(0,a.jsxs)(a.Fragment,{children:[t,'="']});return r=/passw/i.test(t)?(0,a.jsxs)(a.Fragment,{children:[r,(0,a.jsx)(k.PJ,{inline:!0,children:n})]}):(0,a.jsxs)(a.Fragment,{children:[r,n]}),(0,a.jsxs)(a.Fragment,{children:[s," ",r,'"']})},t)})]})}}),[A,S,C,p,I,L,Z,Q,z,h,V,W,l,b,F]),J=(0,o.useMemo)(()=>g||M?(0,a.jsx)(T.Z,{}):$,[M,g,$]),K=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/fence/template").then(s=>{let{data:e}=s;m(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage fence devices"})}),J]}),(0,a.jsx)(O.Z,{dialogProps:{PaperProps:{sx:{minWidth:{xs:"90%",md:"50em"}}}},scrollBoxProps:{padding:".3em .5em"},...i,disableProceed:P,loadingAction:y,preActionArea:K,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollBoxProps:{paddingRight:"1em"},...r,ref:e,scrollContent:!0})]})},L=t(82456),z=t(48263),V=t(73393),W=t(84376),Q=t(64568),$=t(53640),J=t(40476),K=t(68061),components_RadioGroupWithLabel=s=>{let{formControlProps:e,formControlLabelProps:t,formLabelProps:n,id:r,label:l,name:u,onChange:i,radioItems:c,radioProps:{sx:b,...d}={},radioGroupProps:C,value:f}=s,p=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(k.Ac,{children:l}):l,[l]),m=(0,o.useMemo)(()=>{let s=Object.entries(c);return s.map(s=>{let[e,{label:n,value:l}]=s,o="string"==typeof n?(0,a.jsx)(k.Ac,{children:n}):n;return(0,a.jsx)(M.Z,{control:(0,a.jsx)(W.Z,{...d,sx:{["&.".concat(Q.Z.root)]:{color:I.s7},...b}}),value:l,label:o,...t},"".concat(r,"-").concat(e))})},[t,r,c,b,d]);return(0,a.jsxs)($.Z,{...e,children:[(0,a.jsx)(J.Z,{...n,children:p}),(0,a.jsx)(K.Z,{id:r,name:u,onChange:i,row:!0,value:f,...C,children:m})]})},X=t(16310),Y=t(65939);let ss=X.Ry().shape({enterpriseKey:X.Z_().uuid().optional(),ip:X.Z_().matches(Y.tf,{message:"Expected IP address to be a valid IPv4 address."}),name:X.Z_().required(),redhatConfirmPassword:X.Z_().when("redhatPassword",(s,e)=>String(s).length>0?e.required().oneOf([X.iH("redhatPassword")]):e.optional()),redhatPassword:X.Z_().when("redhatUsername",(s,e)=>String(s).length>0?e.required():e.optional()),redhatUsername:X.Z_().when("redhatPassword",(s,e)=>String(s).length>0?e.required():e.optional()),type:X.Z_().oneOf(["dr","subnode"]).required(),uuid:X.Z_().uuid().required()},[["redhatUsername","redhatPassword"]]);var se=t(88468),st=t(21197);let sa={subnode:{label:"Subnode",value:"subnode"},dr:{label:"Disaster Recovery (DR) host",value:"dr"}};var ManageHost_PrepareHostForm=s=>{let{host:e,tools:t}=s,{disabledSubmit:n,formik:r,formikErrors:l,handleChange:i}=(0,st.Z)({initialValues:{ip:e.hostIpAddress,name:e.hostName,password:e.hostPassword,type:"",uuid:e.hostUUID},onSubmit:(s,e)=>{let{setSubmitting:n}=e,{enterpriseKey:r,ip:l,name:o,password:i,type:b,uuid:d,redhatPassword:C,redhatUsername:f}=s;t.confirm.prepare({actionProceedText:"Prepare",content:(0,a.jsx)(R.Z,{entries:s,hasPassword:!0}),onCancelAppend:()=>n(!1),onProceedAppend:()=>{t.confirm.loading(!0),u.Z.put("/host/prepare",{enterpriseUUID:r,hostIPAddress:l,hostName:o,hostPassword:i,hostType:"subnode"===b?"node":b,hostUUID:d,redhatPassword:C,redhatUser:f}).then(()=>{t.confirm.finish("Success",{children:(0,a.jsxs)(a.Fragment,{children:["Started job to prepare host at ",l,"."]})}),t.add.open(!1)}).catch(s=>{let e=(0,c.Z)(s);e.children=(0,a.jsxs)(a.Fragment,{children:["Failed to prepare host at ",l,". ",e.children]}),t.confirm.finish("Error",e),n(!1)})},titleText:"Prepare host at ".concat(s.ip," with the following?")}),t.confirm.open()},validationSchema:ss}),b=(0,o.useMemo)(()=>"enterpriseKey",[]),d=(0,o.useMemo)(()=>"name",[]),C=(0,o.useMemo)(()=>"redhatConfirmPassword",[]),f=(0,o.useMemo)(()=>"redhatPassword",[]),p=(0,o.useMemo)(()=>"redhatUsername",[]),m=(0,o.useMemo)(()=>"type",[]),h=(0,o.useMemo)(()=>e.isInetConnected&&/rhel/i.test(e.hostOS)&&!e.isOSRegistered,[e.hostOS,e.isInetConnected,e.isOSRegistered]);return(0,a.jsxs)(z.ZP,{columns:{xs:1,sm:2},component:"form",container:!0,onSubmit:s=>{s.preventDefault(),r.submitForm()},spacing:"1em",children:[(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(components_RadioGroupWithLabel,{id:m,label:"Host type",name:m,onChange:i,radioItems:sa,value:r.values.type})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{id:d,label:"Host name",name:d,onChange:i,required:!0,value:r.values.name})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{id:b,label:"Alteeve enterprise key",name:b,onChange:i,value:r.values.enterpriseKey})})}),h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:p,label:"RedHat username",name:p,onChange:i,value:r.values.redhatUsername})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:f,label:"RedHat password",name:f,onChange:i,type:"password",value:r.values.redhatPassword})})}),(0,a.jsx)(z.ZP,{display:{xs:"none",sm:"initial"},item:!0,sm:1}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:C,label:"Confirm RedHat password",name:C,onChange:i,type:"password",value:r.values.redhatConfirmPassword})})})]}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(H.Z,{count:1,messages:l})}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(V.Z,{actions:[{background:"blue",children:"Prepare host",disabled:n,type:"submit"}]})})]})};let sn=X.Ry({ip:X.Z_().matches(Y.tf,{message:"Expected IP address to be a valid IPv4 address."}).required(),password:X.Z_().required()});var ManageHost_TestAccessForm=s=>{let{setResponse:e}=s,t=(0,o.useRef)(null),[n,r]=(0,o.useState)(!1),l=(0,o.useCallback)(s=>{var e,a;return null==t?void 0:null===(a=t.current)||void 0===a?void 0:null===(e=a.setMessage)||void 0===e?void 0:e.call(null,"api",s)},[]),{disabledSubmit:i,formik:b,formikErrors:d,handleChange:C}=(0,st.Z)({initialValues:{ip:"",password:""},onSubmit:(s,t)=>{let{setSubmitting:n}=t;r(!0),e(void 0);let{ip:o,password:i}=s;u.Z.put("/command/inquire-host",{ipAddress:o,password:i}).then(s=>{let{data:t}=s;e({...t,hostIpAddress:o,hostPassword:i}),l()}).catch(s=>{let e=(0,c.Z)(s);e.children=(0,a.jsxs)(a.Fragment,{children:["Failed to access ",o,". ",e.children]}),l(e)}).finally(()=>{n(!1),r(!1)})},validationSchema:sn}),f=(0,o.useMemo)(()=>"ip",[]),p=(0,o.useMemo)(()=>"password",[]);return(0,a.jsxs)(z.ZP,{component:"form",container:!0,columns:{xs:1,sm:2},onSubmit:s=>{s.preventDefault(),b.submitForm()},spacing:"1em",children:[(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:f,label:"IP address",name:f,onChange:C,required:!0,value:b.values.ip})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:p,label:"Password",name:p,onChange:C,required:!0,type:"password",value:b.values.password})})}),n?(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(T.Z,{})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(H.Z,{count:1,messages:d,ref:t})}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(V.Z,{actions:[{background:"blue",children:"Test access",disabled:i,type:"submit"}]})})]})]})},ManageHost_ManageHost=()=>{let[s,e]=(0,o.useState)();return(0,a.jsx)(L.Z,{addHeader:"Initialize host",editHeader:"",entriesUrl:"/host?types=dr,node",entryUrlPrefix:"/host",getDeleteErrorMessage:function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n"Delete the following ".concat(s," host(s)?"),getDeleteSuccessMessage:()=>({children:(0,a.jsx)(a.Fragment,{children:"Successfully deleted host(s)"})}),listEmpty:"No host(s) found",listProps:{allowAddItem:!0,allowEdit:!1},renderAddForm:t=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ManageHost_TestAccessForm,{setResponse:e}),s&&(0,a.jsx)(ManageHost_PrepareHostForm,{host:s,tools:t})]}),renderDeleteItem:(s,e)=>{let{key:t}=e,n=null==s?void 0:s[t];return(0,a.jsx)(k.Ac,{children:null==n?void 0:n.shortHostName})},renderEditForm:()=>(0,a.jsx)(a.Fragment,{}),renderListItem:(s,e)=>{let{hostName:t}=e;return(0,a.jsx)(k.Ac,{children:t})}})},sr=t(28951);let sl="an-host-input",so="".concat(sl,"-cell"),su="IPMI IP",si={fence:(s,e)=>{let{dataset:{hostId:t="",fenceId:a="",fenceName:n=""},value:r}=e,{hostConfig:{hosts:{[t]:l}}}=s,{fences:o={}}=l;o[a]={fenceName:n,fencePort:r},l.fences=o},host:(s,e)=>{let{dataset:{hostId:t="",hostNumber:a="",hostType:n=""}}=e,r=Number.parseInt(a,10);s.hostConfig.hosts[t]={hostNumber:r,hostType:n}},ipmi:(s,e)=>{let{dataset:{hostId:t=""},value:a}=e,{hostConfig:{hosts:{[t]:n}}}=s;n.ipmiIp=a},network:(s,e)=>{let{dataset:{hostId:t="",networkId:a="",networkNumber:n="",networkType:r=""},value:l}=e,{hostConfig:{hosts:{[t]:o}}}=s,{networks:u={}}=o,i=Number.parseInt(n,10);u[a]={networkIp:l,networkNumber:i,networkType:r},o.networks=u},ups:(s,e)=>{let{checked:t,dataset:{hostId:a="",upsId:n="",upsName:r=""}}=e,{hostConfig:{hosts:{[a]:l}}}=s,{upses:o={}}=l;o[n]={isUsed:t,upsName:r},l.upses=o}},sc={xs:1,sm:2,md:3},buildInputIdAHFencePort=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-port"),buildInputIdAHIpmiIp=s=>"".concat(sl,"-").concat(s,"-ipmi-ip"),buildInputIdAHNetworkIp=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-ip"),buildInputIdAHUpsPowerHost=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-power-host");var ManageManifest_AnHostInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,buildInputUnmountFunction:n,setMessage:r},hostId:l,hostNumber:u,hostType:c,previous:{fences:b={},ipmiIp:d,networks:C={},upses:f={}}={},hostLabel:p="".concat(c.replace("node","subnode")," ").concat(u)}=s,m=(0,o.useMemo)(()=>Object.entries(b),[b]),h=(0,o.useMemo)(()=>Object.entries(C),[C]),w=(0,o.useMemo)(()=>Object.entries(f),[f]),M=(0,o.useMemo)(()=>!!w.length,[w.length]),Z=(0,o.useMemo)(()=>"".concat(sl,"-").concat(l),[l]),I=(0,o.useMemo)(()=>buildInputIdAHIpmiIp(l),[l]),P=(0,o.useMemo)(()=>"".concat(so,"-").concat(l,"-ipmi-ip"),[l]),F=(0,o.useMemo)(()=>m.reduce((s,n)=>{let[o,{fenceName:u,fencePort:i}]=n,c="".concat(so,"-").concat(l,"-").concat(o,"-port"),b=buildInputIdAHFencePort(l,o),d="Port on ".concat(u);return s[c]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"fence","data-host-id":l,"data-fence-id":o,"data-fence-name":u},id:b,label:d,value:i}),inputTestBatch:(0,y.Gn)("".concat(l," ").concat(d),()=>{r(b)},{onFinishBatch:e(b)},s=>{r(b,{children:s})}),onFirstRender:t(b),required:!0})},s},{}),[e,t,m,l,r]),A=(0,o.useMemo)(()=>h.reduce((s,o)=>{let[u,{networkIp:i,networkNumber:c,networkType:b}]=o,d="".concat(so,"-").concat(l,"-").concat(u,"-ip"),C=buildInputIdAHNetworkIp(l,u),f="".concat(b.toUpperCase()," ").concat(c," IP");return s[d]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"network","data-host-id":l,"data-network-id":u,"data-network-number":c,"data-network-type":b},id:C,label:f,value:i}),inputTestBatch:(0,y._)("".concat(l," ").concat(f),()=>{r(C)},{onFinishBatch:e(C)},s=>{r(C,{children:s})}),onFirstRender:t(C),onUnmount:n(C),required:!0})},s},{}),[h,l,e,t,n,r]),S=(0,o.useMemo)(()=>w.reduce((s,e)=>{let[t,{isUsed:n,upsName:r}]=e,o="".concat(so,"-").concat(l,"-").concat(t,"-power-host"),u=buildInputIdAHUpsPowerHost(l,t);return s[o]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{baseInputProps:{"data-handler":"ups","data-host-id":l,"data-ups-id":t,"data-ups-name":r},checked:n,id:u,label:"Uses ".concat(r)}),valueType:"boolean"})},s},{}),[l,w]),T=(0,o.useMemo)(()=>M&&(0,a.jsx)(i.Z,{columns:sc,layout:S,spacing:"1em"}),[M,S]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsx)(j.CH,{children:(0,a.jsx)(k.Ac,{children:p})}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:Z,readOnly:!0,"data-handler":"host","data-host-id":l,"data-host-number":u,"data-host-type":c}),(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:sc,layout:{...A,[P]:{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"ipmi","data-host-id":l},id:I,label:su,value:d}),inputTestBatch:(0,y._)("".concat(l," ").concat(su),()=>{r(I)},{onFinishBatch:e(I)},s=>{r(I,{children:s})}),onFirstRender:t(I),onUnmount:n(I)})},...F},spacing:"1em"}),T]})]})]})};let sb="".concat("".concat("an-host-config-input","-group"),"-cell"),sd={node1:{hostNumber:1,hostType:"node"},node2:{hostNumber:2,hostType:"node"}},guessHostIpOnNetwork=s=>{let{anSeq:e,minIp:t,offset3:a=10,step3:n=2,subnetMask:r,subSeq:l}=s;try{let s=new sr.Netmask("".concat(t,"/").concat(r));if(16!==s.bitmask)return"".concat(s.base.replace(/\.0/g,""),".");return t.replace(/^((\d+\.){2})\d+\.\d+$/,"$1".concat((e-1)*n+a,".").concat(l))}catch(s){return""}};var ManageManifest_AnHostConfigInputGroup=s=>{let{anSequence:e,formUtils:t,knownFences:n={},knownUpses:r={},networkListEntries:l,previous:{hosts:u=sd}={}}=s,c=(0,o.useMemo)(()=>Object.entries(u),[u]),b=(0,o.useMemo)(()=>Object.values(n),[n]),d=(0,o.useMemo)(()=>Object.values(r),[r]),C=(0,o.useMemo)(()=>c.reduce((s,n)=>{let[r,o]=n,{fences:u={},hostNumber:i,hostType:c,ipmiIp:C,networks:f={},upses:p={}}=o,m=C,h=b.reduce((s,e)=>{let{fenceName:t}=e,{[t]:{fencePort:a=""}={}}=u;return s[t]={fenceName:t,fencePort:a},s},{}),v=l.reduce((s,t)=>{let[a,{networkMinIp:n,networkNumber:r,networkSubnetMask:l,networkType:o}]=t,{[a]:{networkIp:u=""}={}}=f;return u||(u=guessHostIpOnNetwork({anSeq:e,minIp:n,subnetMask:l,subSeq:i})),m||"bcn"!==o||1!==r||(m=guessHostIpOnNetwork({anSeq:e,minIp:n,offset3:11,subnetMask:l,subSeq:i})),s[a]={networkIp:u,networkNumber:r,networkType:o},s},{}),x=d.reduce((s,e)=>{let{upsName:t}=e,{[t]:{isUsed:a=!0}={}}=p;return s[t]={isUsed:a,upsName:t},s},{}),g="".concat(sb,"-").concat(r);return s[g]={children:(0,a.jsx)(ManageManifest_AnHostInputGroup,{formUtils:t,hostId:r,hostNumber:i,hostType:c,previous:{fences:h,ipmiIp:m,networks:v,upses:x}}),md:3,sm:2},s},{}),[e,t,c,b,d,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:C,spacing:"1em"})},sC=t(23279),sf=t.n(sC);let sp="an-id-input",sm="".concat(sp,"-domain"),sh="".concat(sp,"-prefix"),sv="".concat(sp,"-sequence"),sx="Domain name",sg="Prefix",sj="Sequence";var ManageManifest_AnIdInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,setMessage:r},onSequenceChange:l,previous:{domain:u,prefix:c,sequence:b}={}}=s,d=(0,o.useMemo)(()=>l&&sf()(l,e),[e,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{"an-id-input-cell-prefix":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sh,label:sg,value:c}),inputTestBatch:(0,y.Gn)(sg,()=>{r(sh)},{onFinishBatch:t(sh)},s=>{r(sh,{children:s})}),onFirstRender:n(sh),required:!0})},"an-id-input-cell-domain":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sm,label:sx,value:u}),inputTestBatch:(0,y.Gn)(sx,()=>{r(sm)},{onFinishBatch:t(sm)},s=>{r(sm,{children:s})}),onFirstRender:n(sm),required:!0})},"an-id-input-cell-sequence":{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:d},input:(0,a.jsx)(g.Z,{id:sv,label:sj,value:b}),inputTestBatch:(0,y.qY)(sj,()=>{r(sv)},{onFinishBatch:t(sv)},s=>{r(sv,{children:s})}),onFirstRender:n(sv),required:!0,valueType:"number"})}},spacing:"1em"})},sw=t(25934),sM=t(5813),sZ=t(83221);let sI="an-network-input",sk="".concat(sI,"-cell"),sP={gateway:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkGateway=a},minip:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkMinIp=a},network:(s,e)=>{let{dataset:{networkId:t="",networkNumber:a="",networkType:n=""}}=e,{networkConfig:{networks:r}}=s,l=Number.parseInt(a,10);r[t]={networkNumber:l,networkType:n}},subnetmask:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkSubnetMask=a}},buildInputIdANGateway=s=>"".concat(sI,"-").concat(s,"-gateway"),buildInputIdANMinIp=s=>"".concat(sI,"-").concat(s,"-min-ip"),buildInputIdANNetworkType=s=>"".concat(sI,"-").concat(s,"-network-type"),buildInputIdANSubnetMask=s=>"".concat(sI,"-").concat(s,"-subnet-mask");var ManageManifest_AnNetworkInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,buildInputUnmountFunction:r,setMessage:l},inputGatewayLabel:u="Gateway",inputMinIpLabel:c="IP address",inputSubnetMaskLabel:b="Subnet mask",networkId:d,networkNumber:C,networkType:f,networkTypeOptions:p,onClose:m,onNetworkGatewayChange:h,onNetworkMinIpChange:v,onNetworkSubnetMaskChange:M,onNetworkTypeChange:Z,previous:{gateway:I,minIp:k,subnetMask:P}={},readonlyNetworkName:F,showCloseButton:A,showGateway:S}=s,T=(0,o.useMemo)(()=>"".concat(sM.default[f]," ").concat(C),[C,f]),_=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-gateway"),[d]),U=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-ip"),[d]),N=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-subnet-mask"),[d]),O=(0,o.useMemo)(()=>"".concat(sI,"-").concat(d),[d]),R=(0,o.useMemo)(()=>buildInputIdANGateway(d),[d]),E=(0,o.useMemo)(()=>buildInputIdANMinIp(d),[d]),H=(0,o.useMemo)(()=>buildInputIdANNetworkType(d),[d]),D=(0,o.useMemo)(()=>buildInputIdANSubnetMask(d),[d]),q=(0,o.useMemo)(()=>S?void 0:"none",[S]),B=(0,o.useMemo)(()=>h&&sf()(h,e),[e,h]),G=(0,o.useMemo)(()=>v&&sf()(v,e),[e,v]),L=(0,o.useMemo)(()=>M&&sf()(M,e),[e,M]),z=(0,o.useMemo)(()=>A&&(0,a.jsx)(sZ.Z,{mapPreset:"close",iconProps:{fontSize:"small"},onClick:function(){for(var s=arguments.length,e=Array(s),t=0;t{let s;return S&&R&&(s=(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(R)},{onFinishBatch:t(R)},s=>{l(R,{children:s})}),onFirstRender:n(R),onUnmount:r(R),required:S})),s},[S,R,d,u,I,T,t,n,r,B,f,l]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsxs)(j.CH,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:H,isReadOnly:F,onChange:function(){for(var s=arguments.length,e=Array(s),t=0;tT},value:f})}),z]}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:O,readOnly:!0,"data-handler":"network","data-network-id":d,"data-network-number":C,"data-network-type":f}),(0,a.jsx)(i.Z,{layout:{[U]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(E)},{onFinishBatch:t(E)},s=>{l(E,{children:s})}),onFirstRender:n(E),onUnmount:r(E),required:!0})},[N]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(D)},{onFinishBatch:t(D)},s=>{l(D,{children:s})}),onFirstRender:n(D),onUnmount:r(D),required:!0})},[_]:{children:V,display:q}},spacing:"1em"})]})]})},sy=t(84070);let sF="an-network-config-input",sA="".concat(sF,"-cell"),sS="".concat(sF,"-dns"),sT="".concat(sF,"-mtu"),s_="".concat(sF,"-ntp"),sU=Object.entries(sM.default),sN={bcn:{base:"10.201.0.0",mask:"255.255.0.0"},mn:{base:"10.199.0.0",mask:"255.255.0.0"},sn:{base:"10.101.0.0",mask:"255.255.0.0"}},assertIfn=s=>"ifn"===s,assertMn=s=>"mn"===s,guessNetworkMinIp=s=>{let{entries:e,type:t}=s,a=e.filter(s=>{let[,{networkType:e}]=s;return e===t}).sort((s,e)=>{let[,{networkNumber:t}]=s,[,{networkNumber:a}]=e;return t>a?1:-1}).pop();if(!a){var n;return null!==(n=sN[t])&&void 0!==n?n:{}}let[,{networkMinIp:r,networkSubnetMask:l}]=a;try{let s=new sr.Netmask("".concat(r,"/").concat(l)),{base:e,mask:t}=s.next();return{base:e,mask:t}}catch(s){return{}}};var ManageManifest_AnNetworkConfigInputGroup=s=>{let{formUtils:e,networkListEntries:t,previous:{dnsCsv:n="8.8.8.8,8.8.4.4",mtu:r,ntpCsv:l}={},setNetworkList:u}=s,{buildFinishInputTestBatchFunction:c,buildInputFirstRenderFunction:b,setMessage:d,setMessageRe:C}=e,f=(0,o.useCallback)(function(s){let{input:e=t,end:a=t.length}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a-1,r=0;return e.every((e,t)=>{let[,{networkType:a}]=e;return a===s&&(r+=1),tsU.map(s=>{let[e,t]=s;return{displayValue:t,value:e}}),[]),m=(0,o.useCallback)(function(){let{networkMinIp:s="",networkSubnetMask:e="",networkType:a=t.some(s=>{let[,{networkType:e}]=s;return assertMn(e)})?"ifn":"mn",networkGateway:n=assertIfn(a)?"":void 0,networkNumber:r=f(a)+1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{base:l=s,mask:o=e}=guessNetworkMinIp({entries:t,type:a});return{network:{networkGateway:n,networkMinIp:l,networkNumber:r,networkSubnetMask:o,networkType:a},networkId:(0,sw.Z)()}},[f,t]),h=(0,o.useCallback)((s,e)=>u((0,sy.ZP)(s,e)),[u]),v=(0,o.useCallback)((s,e,t)=>u(a=>{let n={...a},{[s]:r}=n;return r&&(r[e]=t),n}),[u]),j=(0,o.useCallback)((s,e)=>{let{networkId:a,networkType:n}=s,{target:{value:r}}=e,l=String(r),o=!1,i=0,c=t.reduce((s,e)=>{let[r,u]=e,{networkNumber:c,networkType:b,networkMinIp:d,networkSubnetMask:f,...p}=u,m=c,h=b;r===a&&(o=!0,h=l,C(RegExp(r)));let v=h===l;if(v&&(i+=1),o){v?m=i:h===n&&(m-=1);let{base:e=d,mask:a=f}=guessNetworkMinIp({entries:t,type:h});s[r]={...p,networkMinIp:e,networkSubnetMask:a,networkNumber:m,networkType:h}}else s[r]=u;return s},{});u(c)},[t,C,u]),w=(0,o.useCallback)(s=>{let{networkId:e,networkType:a}=s,n=!1,r=0,l=t.reduce((s,t)=>{let[l,o]=t;if(l===e)return n=!0,s;let{networkType:u}=o,i=u===a;return i&&(r+=1),s[l]=n&&i?{...o,networkNumber:r}:o,s},{});u(l)},[t,u]),M=(0,o.useMemo)(()=>t.reduce((s,t)=>{let[n,{networkGateway:r,networkMinIp:l,networkNumber:o,networkSubnetMask:u,networkType:i}]=t,c="".concat(sA,"-").concat(n),b=assertIfn(i),d=assertMn(i),C=d||1!==o;return s[c]={children:(0,a.jsx)(ManageManifest_AnNetworkInputGroup,{formUtils:e,networkId:n,networkNumber:o,networkType:i,networkTypeOptions:p,onClose:w,onNetworkMinIpChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkMinIp",a)},onNetworkSubnetMaskChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkSubnetMask",a)},onNetworkTypeChange:j,previous:{gateway:r,minIp:l,subnetMask:u},readonlyNetworkName:!C,showCloseButton:C,showGateway:b}),md:3,sm:2},s},{}),[t,e,p,w,j,v]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{...M,"an-network-config-cell-add-network":{children:(0,a.jsx)(sZ.Z,{mapPreset:"add",onClick:()=>{let{network:s,networkId:e}=m();h(e,s)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sS,label:"DNS",value:n}),inputTestBatch:(0,y.dg)("DNS",()=>{d(sS)},{onFinishBatch:c(sS)},s=>{d(sS,{children:s})}),onFirstRender:b(sS),required:!0})},"an-network-config-input-cell-ntp":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:s_,label:"NTP",value:l}),inputTestBatch:(0,y.dg)("NTP",()=>{d(s_)},{onFinishBatch:c(s_)},s=>{d(s_,{children:s})}),onFirstRender:b(s_)})},"an-network-config-input-cell-mtu":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sT,inputProps:{placeholder:"1500"},label:"MTU",value:r}),inputTestBatch:(0,y.qY)("MTU",()=>{d(sT)},{onFinishBatch:c(sT)},s=>{d(sT,{children:s})}),onFirstRender:b(sT),valueType:"number"})}},spacing:"1em"})};let sO={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}};var ManageManifest_AddManifestInputGroup=s=>{var e;let{formUtils:t,knownFences:n,knownUpses:r,previous:{hostConfig:l,networkConfig:u={},...i}={}}=s,{networks:c=sO}=u,[b,d]=(0,o.useState)(null!==(e=null==i?void 0:i.sequence)&&void 0!==e?e:0),[C,f]=(0,o.useState)(c),p=(0,o.useMemo)(()=>Object.entries(C),[C]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(ManageManifest_AnIdInputGroup,{formUtils:t,onSequenceChange:s=>{let{target:{value:e}}=s;d(Number(e))},previous:i}),(0,a.jsx)(ManageManifest_AnNetworkConfigInputGroup,{formUtils:t,networkListEntries:p,previous:u,setNetworkList:f}),(0,a.jsx)(ManageManifest_AnHostConfigInputGroup,{anSequence:b,formUtils:t,knownFences:n,knownUpses:r,networkListEntries:p,previous:l})]})},ManageManifest_EditManifestInputGroup=s=>{let{formUtils:e,knownFences:t,knownUpses:n,previous:r}=s;return(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:e,knownFences:t,knownUpses:n,previous:r})};let sR="run-manifest-input",sE="".concat(sR,"-host"),sH="".concat(sR,"-an-description"),sD="".concat(sR,"-an-password"),sq="".concat(sR,"-an-confirm-password"),sB="Description",sG="Password",sL="Confirm password",sz=(0,p.ZP)(k.$_)({justifyContent:"end"}),buildInputIdRMHost=s=>"".concat(sE,"-").concat(s);var ManageManifest_RunManifestInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},knownFences:r={},knownHosts:l={},knownUpses:u={},previous:{domain:c,hostConfig:b={},networkConfig:d={}}={}}=s,C=(0,o.useRef)({}),{hosts:f={}}=b,{dnsCsv:p,mtu:m,networks:j={},ntpCsv:M="--"}=d,Z=(0,o.useMemo)(()=>Object.entries(f),[f]),I=(0,o.useMemo)(()=>Object.entries(r),[r]),P=(0,o.useMemo)(()=>Object.entries(l),[l]),F=(0,o.useMemo)(()=>Object.entries(u),[u]),A=(0,o.useMemo)(()=>Object.entries(j),[j]),S=(0,o.useMemo)(()=>P.map(s=>{let[,{hostName:e,hostUUID:t}]=s;return{displayValue:e,value:t}}),[P]),{headers:T,hosts:_,hostNames:U}=(0,o.useMemo)(()=>Z.reduce((s,r)=>{let[l,{hostName:o,hostNumber:u,hostType:i}]=r,{headers:b,hosts:d,hostNames:C}=s,f="".concat(i.replace("node","subnode")," ").concat(u);b["run-manifest-column-header-cell-".concat(l)]={children:(0,a.jsx)(k.Ac,{children:f})};let p=buildInputIdRMHost(l),m="".concat(f," host");return d["run-manifest-host-cell-".concat(l)]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:p,label:m,selectItems:S,value:""}),inputTestBatch:(0,y.Gn)(m,()=>{n(p)},{onFinishBatch:e(p)},s=>{n(p,{children:s})}),onFirstRender:t(p),required:!0})},C["run-manifest-new-host-name-cell-".concat(l)]={children:(0,a.jsxs)(k.$_,{children:[o,".",c]})},s},{headers:{"run-manifest-column-header-cell-offset":{}},hosts:{"run-manifest-host-cell-header":{children:(0,a.jsx)(k.Ac,{children:"Uses host"})}},hostNames:{"run-manifest-new-host-name-cell-header":{children:(0,a.jsx)(k.Ac,{children:"New hostname"})}}}),[c,e,t,Z,S,n]),{gateway:N,hostNetworks:O}=(0,o.useMemo)(()=>A.reduce((s,e)=>{let[t,{networkGateway:n,networkNumber:r,networkType:l}]=e,{gateway:o,hostNetworks:u}=s,i="run-manifest-host-network-cell-".concat(t),c="".concat(l.toUpperCase()).concat(r);u["".concat(i,"-header")]={children:(0,a.jsx)(k.Ac,{children:c})},Z.forEach(s=>{let[e,{networks:n={}}]=s,{[t]:{networkIp:r="--"}={}}=n;u["".concat(i,"-").concat(e,"-ip")]={children:(0,a.jsx)(k.$_,{children:r})}});let b="run-manifest-gateway-cell";return n&&!o[b]&&(o[b]={children:(0,a.jsx)(sz,{children:n})}),s},{gateway:{"run-manifest-gateway-cell-header":{children:(0,a.jsx)(k.Ac,{children:"Gateway"})}},hostNetworks:{}}),[Z,A]),R=(0,o.useMemo)(()=>I.reduce((s,e)=>{let[t,{fenceName:n}]=e,r="run-manifest-fence-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(k.Ac,{children:["Port on ",n]})},Z.forEach(e=>{let[t,{fences:l={}}]=e,{[n]:{fencePort:o="--"}={}}=l;s["".concat(r,"-").concat(t,"-port")]={children:(0,a.jsx)(k.$_,{children:o})}}),s},{}),[Z,I]),E=(0,o.useMemo)(()=>F.reduce((s,e)=>{let[t,{upsName:n}]=e,r="run-manifest-ups-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(k.Ac,{children:["Uses ",n]})},Z.forEach(e=>{let[t,{upses:l={}}]=e,{[n]:{isUsed:o=!1}={}}=l;s["".concat(r,"-").concat(t,"-is-used")]={children:(0,a.jsx)(k.$_,{children:o?"yes":"no"})}}),s},{}),[Z,F]),H=(0,o.useMemo)(()=>{let s=(0,y.Gn)(sL,()=>{n(sq)},{onFinishBatch:e(sq)},s=>{n(sq,{children:s})}),r=t(sq);return s.tests.push({onFailure:()=>{n(sq,{children:(0,a.jsx)(a.Fragment,{children:"Confirm password must match password."})})},test:s=>{var e;let{value:t}=s;return(null===(e=C.current.getValue)||void 0===e?void 0:e.call(null))===t}}),{inputTestBatch:s,onFirstRender:r}},[e,t,n]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"run-manifest-input-cell-an-description":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sH,label:sB}),inputTestBatch:(0,y.Gn)(sB,()=>{n(sH)},{onFinishBatch:e(sH)},s=>{n(sH,{children:s})}),onFirstRender:t(sH),required:!0}),sm:2},"run-manifest-input-cell-an-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sD,label:sG,type:h.Z.password}),inputTestBatch:(0,y.Gn)(sG,()=>{n(sD)},{onFinishBatch:e(sD)},s=>{n(sD,{children:s})}),onFirstRender:t(sD),ref:C,required:!0})},"run-manifest-input-cell-an-confirm-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sq,label:sL,type:h.Z.password}),required:!0,...H})}},spacing:"1em"}),(0,a.jsx)(i.Z,{alignItems:"center",columns:{xs:Z.length+1},layout:{...T,..._,...U,...O,...R,...E},columnSpacing:"1em",rowSpacing:"0.4em"}),(0,a.jsx)(i.Z,{columns:{xs:2},layout:{...N,"run-manifest-dns-csv-cell-header":{children:(0,a.jsx)(k.Ac,{children:"DNS"})},"run-manifest-dns-csv-cell":{children:(0,a.jsx)(sz,{children:p})},"run-manifest-ntp-csv-cell-header":{children:(0,a.jsx)(k.Ac,{children:"NTP"})},"run-manifest-ntp-csv-cell":{children:(0,a.jsx)(sz,{children:M})},"run-manifest-mtu-cell-header":{children:(0,a.jsx)(k.Ac,{children:"MTU"})},"run-manifest-mtu-cell":{children:(0,a.jsx)(sz,{children:m})}},spacing:"0.4em"})]})};let ManageManifestPanel_getFormData=function(){for(var s=arguments.length,e=Array(s),t=0;t{var t,a;let{id:n}=e;if(RegExp("^".concat(sl)).test(n)){let{dataset:{handler:a=""}}=e;null===(t=si[a])||void 0===t||t.call(null,s,e)}else if(RegExp("^".concat(sI)).test(n)){let{dataset:{handler:t=""}}=e;null===(a=sP[t])||void 0===a||a.call(null,s,e)}return s},{domain:r,hostConfig:{hosts:{}},networkConfig:{dnsCsv:u,mtu:b,networks:{},ntpCsv:c},prefix:l,sequence:d})},getRunFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let[t,{hostNumber:a,hostType:n}]=e,l=buildInputIdRMHost(t),{value:o}=r.namedItem(l);return s[t]={hostNumber:a,hostType:n,hostUuid:o},s},{});return{description:l,hosts:u,password:o}};var ManageManifest=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),r=(0,o.useRef)({}),l=(0,o.useRef)({}),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(!1),[h,x]=(0,o.useState)(!0),[g,w]=(0,o.useState)(!0),[M,Z]=(0,o.useState)(!0),[I,P]=(0,o.useState)(),[y,F]=(0,o.useState)(),[A,S]=(0,o.useState)(),{isLoading:U}=(0,D.Z)("".concat(d.Z,"/manifest"),{onSuccess:s=>P(s),refreshInterval:6e4}),L=(0,o.useCallback)(()=>{u.Z.get("/manifest").then(s=>{let{data:e}=s;P(e)})},[P]),z=(0,G.Z)([sm,sh,sv,sS,sT,s_],l),{isFormInvalid:V,isFormSubmitting:W,submitForm:Q}=z,$=(0,G.Z)([sq,sH,sD],l),{isFormInvalid:J,isFormSubmitting:K,submitForm:X}=$,{buildDeleteDialogProps:Y,checks:ss,getCheck:se,hasChecks:st,resetChecks:sa,setCheck:sn}=(0,q.Z)({list:I}),{hostConfig:{hosts:sr={}}={},name:sl,uuid:so}=(0,o.useMemo)(()=>null!=y?y:{},[y]),{domain:su,fences:si,prefix:sc,sequence:sb,upses:sd}=(0,o.useMemo)(()=>null!=A?A:{},[A]),sC=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:z,knownFences:si,knownUpses:sd,previous:{domain:su,prefix:sc,sequence:sb}}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{Q({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add install manifest. ",s]}),method:"post",onSuccess:()=>L(),successMsg:"Successfully added install manifest",url:"/manifest"})},titleText:"Add install manifest?"}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Add an install manifest"}),[z,L,si,sd,su,sc,sb,b,Q]),sf=(0,o.useMemo)(()=>({actionProceedText:"Edit",content:(0,a.jsx)(ManageManifest_EditManifestInputGroup,{formUtils:z,knownFences:si,knownUpses:sd,previous:y}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{Q({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update install manifest. ",s]}),method:"put",onSuccess:()=>L(),successMsg:"Successfully updated install manifest ".concat(sl),url:"/manifest/".concat(so)})},titleText:"Update install manifest ".concat(sl,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},loading:g,titleText:"Update install manifest ".concat(sl)}),[z,si,sd,y,g,sl,b,Q,so,L]),sp=(0,o.useMemo)(()=>({actionProceedText:"Run",content:(0,a.jsx)(ManageManifest_RunManifestInputGroup,{formUtils:$,knownFences:si,knownHosts:C,knownUpses:sd,previous:y}),loading:g,onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{X({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to run install manifest. ",s]}),method:"put",successMsg:"Successfully ran install manifest ".concat(sl),url:"/command/run-manifest/".concat(so)})},titleText:"Run install manifest ".concat(sl,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Run install manifest ".concat(sl)}),[$,si,C,sd,y,g,sl,sr,b,X,so]),sx=(0,o.useCallback)((s,e)=>{w(!0),u.Z.get("manifest/".concat(s)).then(e=>{let{data:t}=e;t.uuid=s,F(t)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1),null==e||e.call(null)})},[w,F]),sg=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:p,disableDelete:!st,edit:p,header:!0,listEmpty:"No manifest(s) registered.",listItems:I,onAdd:()=>{var s;null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;b(Y({onProceedAppend:()=>{Q({body:{uuids:ss},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Delete manifest(s) failed. ",s]}),method:"delete",onSuccess:()=>{L(),sa()},url:"/manifest"})},getConfirmDialogTitle:s=>"Delete ".concat(s," manifest(s)?"),renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==I?void 0:I[e].manifestName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{m(s=>!s)},onItemCheckboxChange:(s,e,t)=>{sn(s,t)},onItemClick:s=>{var e;let{manifestName:t,manifestUUID:a}=s;F({name:t,uuid:a}),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0),sx(a)},renderListItemCheckboxState:s=>se(s),renderListItem:(s,e)=>{let{manifestName:t}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(sZ.Z,{disabled:p,mapPreset:"play",onClick:()=>{var e;F({name:t,uuid:s}),null===(e=r.current.setOpen)||void 0===e||e.call(null,!0),sx(s)},variant:"normal"}),(0,a.jsx)(k.Ac,{children:t})]})}}),[Y,ss,se,sx,L,st,p,I,sa,sn,b,F,Q]),sj=(0,o.useMemo)(()=>h||M||U?(0,a.jsx)(T.Z,{}):sg,[h,U,M,sg]),sw=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:l}),[]);return s&&(u.Z.get("/manifest/template").then(s=>{let{data:e}=s;S(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{Z(!1)}),u.Z.get("/host",{params:{types:"node"}}).then(s=>{let{data:e}=s;f(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{x(!1)})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage manifests"})}),sj]}),(0,a.jsx)(O.Z,{...sC,disableProceed:V,loadingAction:W,preActionArea:sw,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(O.Z,{...sf,disableProceed:V,loadingAction:W,preActionArea:sw,ref:n,scrollContent:!0,showClose:!0}),(0,a.jsx)(O.Z,{...sp,disableProceed:J,loadingAction:K,preActionArea:sw,ref:r,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...i,ref:e,scrollContent:!0,wide:!0})]})};let sV="common-ups-input-ip-address",sW="common-ups-input-host-name",sQ="IP address",s$="Host name";var ManageUps_CommonUpsInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},previous:{upsIPAddress:r,upsName:l}={}}=s;return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"common-ups-input-cell-host-name":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sW,label:s$,value:l}),inputTestBatch:(0,y.Gn)(s$,()=>{n(sW)},{onFinishBatch:e(sW)},s=>{n(sW,{children:s})}),onFirstRender:t(sW),required:!0})},"common-ups-input-cell-ip-address":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sV,label:sQ,value:r}),inputTestBatch:(0,y._)(sQ,()=>{n(sV)},{onFinishBatch:e(sV)},s=>{n(sV,{children:s})}),onFirstRender:t(sV),required:!0})}},spacing:"1em"})},sJ=t(69836);let sK="add-ups-select-ups-type-id";var ManageUps_AddUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n={},upsTemplate:r}=s,{buildInputFirstRenderFunction:l,setValidity:u}=e,{upsTypeId:i=""}=n,c=(0,_.Z)(),[b,d]=(0,o.useState)(i),C=(0,o.useMemo)(()=>r?Object.entries(r).map(s=>{let e,[t,{brand:n,description:r,links:{0:l}}]=s;if(l){let{linkHref:s,linkLabel:t}=l;e=(0,a.jsx)(sJ.Z,{href:s,onClick:s=>{s.stopPropagation()},sx:{display:"inline-flex",color:I.E5},target:"_blank",children:t})}return{displayValue:(0,a.jsxs)(v.Z,{spacing:0,children:[(0,a.jsx)(k.Ac,{inverted:!0,children:n}),(0,a.jsxs)(k.Ac,{inverted:!0,children:[r," (",e,")"]})]}),value:t}}):[],[r]),f=(0,o.useMemo)(()=>r&&(0,a.jsx)(w.Z,{formControlProps:{sx:{marginTop:".3em"}},id:sK,label:"UPS type",onChange:s=>{let{target:{value:e}}=s,t=String(e);u(sK,!0),d(t)},required:!0,selectItems:C,selectProps:{onClearIndicatorClick:()=>{u(sK,!1),d("")},renderValue:s=>{let e=String(s),{brand:t}=r[e];return t}},value:b}),[r,C,b,u]),p=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[f,b&&(0,a.jsx)(ManageUps_CommonUpsInputGroup,{formUtils:e,previous:n})]}),[e,b,t,f,n]);return(0,o.useEffect)(()=>{c&&l(sK)({isValid:!!b})},[l,b,c]),p};let sX="edit-ups-input-ups-uuid";var ManageUps_EditUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n,upsTemplate:r,upsUUID:l}=s,u=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:e,previous:n,upsTemplate:r}),(0,a.jsx)("input",{hidden:!0,id:sX,readOnly:!0,value:l})]}),[e,t,n,r,l]);return u};let ManageUpsPanel_getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let{brand:e,ipAddress:t,name:n,uuid:r}=s;return(0,a.jsx)(E.Z,{listItems:{"ups-brand":{label:"Brand",value:e},"ups-name":{label:"Host name",value:n},"ups-ip-address":{label:"IP address",value:t}},listItemProps:{sx:{padding:0}},renderListItem:(s,e)=>{let{label:t,value:n}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,growFirst:!0,row:!0,children:[(0,a.jsx)(k.Ac,{children:t}),(0,a.jsx)(k.$_,{children:n})]},"confirm-ups-".concat(r,"-").concat(s))}})};var ManageUps=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,B.Z)(),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!0),[h,x]=(0,o.useState)(),{data:g,isLoading:w}=(0,D.Z)("".concat(d.Z,"/ups"),{refreshInterval:6e4}),M=(0,G.Z)([sV,sW,sK],n),{isFormInvalid:Z,isFormSubmitting:I,submitForm:P}=M,{buildDeleteDialogProps:y,checks:F,getCheck:A,hasChecks:S,setCheck:U}=(0,q.Z)({list:g}),R=(0,o.useCallback)(s=>{var t,n;let{upsAgent:r,upsIPAddress:o,upsName:u,upsUUID:i}=s,c=null!==(n=null===(t=Object.entries(null!=h?h:{}).find(s=>{let[,{agent:e}]=s;return r===e}))||void 0===t?void 0:t[0])&&void 0!==n?n:"";return{actionProceedText:"Update",content:(0,a.jsx)(ManageUps_EditUpsInputGroup,{formUtils:M,previous:{upsIPAddress:o,upsName:u,upsTypeId:c},upsTemplate:h,upsUUID:i}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{name:r}=n;l({actionProceedText:"Update",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{P({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update UPS. ",s]}),method:"put",successMsg:"Successfully updated UPS ".concat(u),url:"/ups/".concat(i)})},titleText:(0,a.jsxs)(k.z,{children:["Update"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," ","with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(k.z,{children:["Update UPS"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:u})]})}},[M,l,P,h]),L=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:M,upsTemplate:h}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{brand:r,name:o}=n;l({actionProceedText:"Add",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{P({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add UPS. ",s]}),method:"post",successMsg:"Successfully added UPS ".concat(o),url:"/ups"})},titleText:(0,a.jsxs)(k.z,{children:["Add a"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," UPS with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a UPS"}),[M,l,P,h]),z=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:C,disableDelete:!S,edit:C,header:!0,listEmpty:"No Ups(es) registered.",listItems:g,onAdd:()=>{var s;b(L),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(y({getConfirmDialogTitle:s=>"Delete ".concat(s," UPSes?"),onProceedAppend:()=>{P({body:{uuids:F},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete UPS(es). ",s]}),method:"delete",url:"/ups"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==g?void 0:g[e].upsName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{f(s=>!s)},onItemCheckboxChange:(s,e,t)=>{U(s,t)},onItemClick:s=>{var e;b(R(s)),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},renderListItemCheckboxState:s=>A(s),renderListItem:(s,e)=>{let{upsAgent:t,upsIPAddress:n,upsName:r}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(k.Ac,{children:r}),(0,a.jsxs)(k.Ac,{children:['agent="',t,'"']}),(0,a.jsxs)(k.Ac,{children:['ip="',n,'"']})]})}}),[L,y,R,F,A,S,C,U,l,b,P,g]),V=(0,o.useMemo)(()=>p||w?(0,a.jsx)(T.Z,{}):z,[p,w,z]),W=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/ups/template").then(s=>{let{data:e}=s;x(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{m(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage UPSes"})}),V]}),(0,a.jsx)(O.Z,{...i,disableProceed:Z,loadingAction:I,preActionArea:W,ref:t,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...r,ref:e})]})},sY=t(19467),s0=t(68917),s1=t(7932),s2=t(10406);let s3="prepare-network-host-name-input",s5="prepare-network-netconf-input-group",s9="Host name",PrepareNetworkForm_getFormData=function(s){let{netconf:e}=s;for(var t,a=arguments.length,n=Array(a>1?a-1:0),r=1;r{let{networks:e=[],...t}=s,a=e.reduce((s,e)=>{let{interfaces:t,ipAddress:a,name:n="",type:r,typeCount:l,subnetMask:o}=e,u="".concat(r).concat(l),i=t.reduce((s,e,t)=>{if(e){let{networkInterfaceName:a}=e;s["link".concat(t+1)]=a}return s},{});return s[u]={name:n,network:"".concat(a,"/").concat(o),...i},s},{});return{...t,networks:a}};var components_PrepareNetworkForm=s=>{let{expectUUID:e=!1,hostUUID:t}=s,{isReady:n,query:{host_uuid:r}}=(0,l.useRouter)(),i=(0,o.useRef)({}),b=(0,o.useRef)({}),d=(0,o.useRef)({}),[C,f]=(0,B.Z)(),[p,m]=(0,o.useState)(),[h,w]=(0,o.useState)(),[M,Z]=(0,o.useState)(!0),[I,P]=(0,o.useState)(),{buildFinishInputTestBatchFunction:F,buildInputFirstRenderFunction:A,isFormInvalid:S,setMessage:_,setValidity:U,submitForm:O}=(0,G.Z)([s3,s5],d),E=(0,o.useMemo)(()=>t!==I,[t,I]),D=(0,o.useMemo)(()=>!!t&&E,[t,E]),q=(0,o.useMemo)(()=>(0,a.jsx)(j.V9,{children:(0,a.jsxs)(k.z,{children:["Prepare network on ",null==p?void 0:p.shortHostName]})}),[p]),L=(0,o.useMemo)(()=>(0,a.jsx)(s1.Z,{expectHostDetail:!0,hostDetail:p,ref:b,toggleSubmitDisabled:s=>{U(s5,s)}}),[p,U]),z=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:d}),[]),V=(0,o.useMemo)(()=>M?(0,a.jsx)(T.Z,{mt:0}):h?(0,a.jsx)(s0.Z,{...h}):(0,a.jsxs)(a.Fragment,{children:[q,(0,a.jsxs)(v.Z,{component:"form",onSubmit:function(){for(var s,e=arguments.length,n=Array(e),r=0;r{let{cap:e,key:t}=s;return/^(dns|[a-z]+n\d+)/.test(t)?t.toUpperCase():e(t)}}),onProceedAppend:()=>{var s;O({body:o,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to prepare network. ",s]}),method:"put",onSuccess:()=>{(0,s2.Z)(0)},setMsg:null==b?void 0:null===(s=b.current)||void 0===s?void 0:s.setMessage,successMsg:"Initiated prepare network on ".concat(null==p?void 0:p.shortHostName),url:"/host/".concat(t,"?handler=subnode-network")})},titleText:"Prepare ".concat(null==p?void 0:p.shortHostName," network?")}),null===(s=i.current.setOpen)||void 0===s||s.call(null,!0)},children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{maxWidth:"20em"}},id:s3,label:s9,value:null==p?void 0:p.hostName}),inputTestBatch:(0,y.Gn)(s9,()=>{_(s3)},{onFinishBatch:F(s3)},s=>{_(s3,{children:s})}),onFirstRender:A(s3),required:!0}),z,L,(0,a.jsx)(v.Z,{row:!0,justifyContent:"flex-end",children:(0,a.jsx)(sY.Z,{disabled:S,type:"submit",children:"Prepare network"})})]})]}),[M,h,q,null==p?void 0:p.hostName,null==p?void 0:p.shortHostName,F,A,z,L,S,f,O,t,_]),W=(0,o.useCallback)(s=>{Z(!0),M&&u.Z.get("/host/".concat(s)).then(s=>{let{data:e}=s;P(e.hostUUID),m(e)}).catch(s=>{let{children:e}=(0,c.Z)(s);w({children:"Failed to get target host information; cannot continue. ".concat(e),type:"error"})}).finally(()=>{Z(!1)})},[Z,M,P,m,w]);return(0,o.useEffect)(()=>{e?D&&W(t):n&&!h&&(r?W(lib_getQueryParam(r)):(w({children:"No host UUID provided; cannot continue.",type:"error"}),Z(!1)))},[h,W,t,e,n,r,w,m,Z,D]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.s_,{children:V}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollContent:!0,...C,ref:i})]})},s6=t(75316),s4=t(21073),components_Tab=s=>{let{label:e,...t}=s,n=(0,o.useMemo)(()=>"string"==typeof e?(0,a.jsx)(k.Ac,{inheritColour:!0,children:e}):e,[e]);return(0,a.jsx)(s6.Z,{...t,label:n,sx:{borderRadius:I.n_,color:I.s7,padding:".4em .8em",textTransform:"none",["&.".concat(s4.Z.selected)]:{color:I.Ej}}})},components_TabContent=s=>{let{changingTabId:e,children:t,retain:n=!1,tabId:r}=s,l=(0,o.useMemo)(()=>e===r,[e,r]),u=(0,o.useMemo)(()=>n?(0,a.jsx)(C.Z,{sx:{display:l?"initial":"none"},children:t}):l&&t,[t,l,n]);return(0,a.jsx)(a.Fragment,{children:u})},s7=t(2734),s8=t(98396),es=t(37023),ee=t(85982);let et="1.8em";var components_Tabs=s=>{let{orientation:e,variant:t="fullWidth",...n}=s,r=(0,s7.Z)(),l=(0,o.useCallback)(s=>r.breakpoints.up(s),[r]),u=(0,s8.Z)(l("xs")),i=(0,s8.Z)(l("sm")),c=(0,s8.Z)(l("md")),b=(0,s8.Z)(l("lg")),d=(0,s8.Z)(l("xl")),C=(0,o.useMemo)(()=>[["xs",u],["sm",i],["md",c],["lg",b],["xl",d]],[b,c,i,d,u]),f=(0,o.useMemo)(()=>{let s;return"object"==typeof e?C.some(t=>{let[a,n]=t;return n&&e[a]&&(s=e[a]),!n}):s=e,s},[C,e]);return(0,a.jsx)(es.Z,{...n,orientation:f,variant:t,sx:{minHeight:"1em",["&.".concat(ee.tabsClasses.vertical)]:{minHeight:et,["& .".concat(ee.tabClasses.root)]:{alignItems:"flex-start",minHeight:et,paddingLeft:"2em"},["& .".concat(ee.tabsClasses.indicator)]:{right:"initial"}},["& .".concat(ee.tabClasses.root)]:{minHeight:"1em"},["& .".concat(ee.tabsClasses.indicator)]:{backgroundColor:I.Ej,borderRadius:I.n_}}})};let ea="prepare-host",en="prepare-network",er="manage-fence",el="manage-ups",eo="manage-manifest",eu={[ea]:"Prepare Host",[en]:"Prepare Network",[er]:"Manage Fence Devices",[el]:"Manage UPSes",[eo]:"Manage Manifests"},ei="Loading",ec={md:8,sm:6,xs:1},eb={md:6,sm:4,xs:1},PrepareHostTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"preparehost-left-column":{},"preparehost-center-column":{children:(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Hosts"})}),(0,a.jsx)(ManageHost_ManageHost,{})]}),...eb}}}),PrepareNetworkTabContent=()=>{let s=(0,_.Z)(),[e,t]=(0,o.useState)(),[n,r]=(0,o.useState)(!1),l=(0,o.useMemo)(()=>{let s;if(e){let t=Object.entries(e);s=(0,a.jsx)(components_Tabs,{onChange:(s,e)=>{r(e)},orientation:"vertical",value:n,children:t.map(s=>{let[e,{shortHostName:t}]=s;return(0,a.jsx)(components_Tab,{label:t,value:e},"".concat(en,"-").concat(e))})})}else s=(0,a.jsx)(T.Z,{mt:0});return s},[e,n]);return s&&u.Z.get("/host",{params:{types:["dr","node"]}}).then(s=>{let{data:e}=s;t(e),r(Object.keys(e)[0])}).catch(s=>{(0,c.Z)(s)}),(0,a.jsx)(i.Z,{columns:ec,layout:{"preparenetwork-left-column":{children:(0,a.jsx)(j.s_,{children:l}),sm:2},"preparenetwork-center-column":{children:(0,a.jsx)(components_PrepareNetworkForm,{expectUUID:!0,hostUUID:n||void 0}),...eb}}})},ManageFenceTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managefence-left-column":{},"managefence-center-column":{children:(0,a.jsx)(ManageFence,{}),...eb}}}),ManageUpsTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"manageups-left-column":{},"manageups-center-column":{children:(0,a.jsx)(ManageUps,{}),...eb}}}),ManageManifestContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managemanifest-left-column":{},"managemanifest-center-column":{children:(0,a.jsx)(ManageManifest,{}),...eb}}});var manage_element=()=>{let{isReady:s,query:{step:e}}=(0,l.useRouter)(),[t,n]=(0,o.useState)(!1),[u,i]=(0,o.useState)(ei);return(0,o.useEffect)(()=>{if(s){let s=lib_getQueryParam(e,{fallbackValue:ea});eu[s]||(s=ea),u===ei&&i(eu[s]),t||n(s)}},[s,t,u,e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:u})}),(0,a.jsx)(b.Z,{}),(0,a.jsx)(j.s_,{children:(0,a.jsxs)(components_Tabs,{onChange:(s,e)=>{n(e),i(eu[e])},orientation:{xs:"vertical",sm:"horizontal"},value:t,children:[(0,a.jsx)(components_Tab,{label:"Prepare host",value:ea}),(0,a.jsx)(components_Tab,{label:"Prepare network",value:en}),(0,a.jsx)(components_Tab,{label:"Manage fence devices",value:er}),(0,a.jsx)(components_Tab,{label:"Manage UPSes",value:el}),(0,a.jsx)(components_Tab,{label:"Manage manifests",value:eo})]})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:ea,children:(0,a.jsx)(PrepareHostTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:en,children:(0,a.jsx)(PrepareNetworkTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:er,children:(0,a.jsx)(ManageFenceTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:el,children:(0,a.jsx)(ManageUpsTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:eo,children:(0,a.jsx)(ManageManifestContent,{})})]})}}},function(s){s.O(0,[494,804,416,50,263,213,310,461,264,203,197,814,775,675,633,733,556,270,17,774,888,179],function(){return s(s.s=29582)}),_N_E=s.O()}]); \ No newline at end of file diff --git a/striker-ui/out/anvil.html b/striker-ui/out/anvil.html index 6911956b..2b7be05b 100644 --- a/striker-ui/out/anvil.html +++ b/striker-ui/out/anvil.html @@ -1 +1 @@ -Anvil
\ No newline at end of file +Anvil
\ No newline at end of file diff --git a/striker-ui/out/config.html b/striker-ui/out/config.html index 9b829513..d75e3cdf 100644 --- a/striker-ui/out/config.html +++ b/striker-ui/out/config.html @@ -1 +1 @@ -Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file +Loading...
Install target
Configure striker peers
Configure striker peers
Inbound connections

    No inbound connections found.
Peer connections

    No peer connections found.
Manage changed SSH keys
Manage changed SSH keys
The identity of the following targets have unexpectedly changed.
If you haven't rebuilt the listed targets, then you could be experiencing a
"Man In The Middle"
attack. Please verify the targets have changed for a known reason before proceeding to remove the broken keys.

Host name

IP address


    No conflicting keys found.
Manage users
Manage users

    No users found.
\ No newline at end of file diff --git a/striker-ui/out/file-manager.html b/striker-ui/out/file-manager.html index 381ca4f2..bf408af5 100644 --- a/striker-ui/out/file-manager.html +++ b/striker-ui/out/file-manager.html @@ -1 +1 @@ -File Manager

Files

\ No newline at end of file +File Manager

Files

\ No newline at end of file diff --git a/striker-ui/out/index.html b/striker-ui/out/index.html index 08cd1842..6d9b744d 100644 --- a/striker-ui/out/index.html +++ b/striker-ui/out/index.html @@ -1 +1 @@ -Dashboard

Nodes

\ No newline at end of file +Dashboard

Nodes

\ No newline at end of file diff --git a/striker-ui/out/init.html b/striker-ui/out/init.html index 082a2f0e..10768bff 100644 --- a/striker-ui/out/init.html +++ b/striker-ui/out/init.html @@ -1 +1 @@ -

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file +

Loading...

Placeholder
Uncheck to skip domain and host name pattern validation.
\ No newline at end of file diff --git a/striker-ui/out/login.html b/striker-ui/out/login.html index b071eca4..e4830095 100644 --- a/striker-ui/out/login.html +++ b/striker-ui/out/login.html @@ -1 +1 @@ -Login
Placeholder
\ No newline at end of file +Login
Placeholder
\ No newline at end of file diff --git a/striker-ui/out/mail-config.html b/striker-ui/out/mail-config.html index 5bc327d7..be888b1a 100644 --- a/striker-ui/out/mail-config.html +++ b/striker-ui/out/mail-config.html @@ -1 +1 @@ -Mail Config

Mail config

Manage mail servers
Manage mail servers

Manage mail recipients
Manage mail recipients

\ No newline at end of file +Mail Config

Mail config

Manage mail servers
Manage mail servers

Manage mail recipients
Manage mail recipients

\ No newline at end of file diff --git a/striker-ui/out/manage-element.html b/striker-ui/out/manage-element.html index f538f725..7bd4868f 100644 --- a/striker-ui/out/manage-element.html +++ b/striker-ui/out/manage-element.html @@ -1 +1 @@ -Loading
\ No newline at end of file +Loading
\ No newline at end of file diff --git a/striker-ui/out/server.html b/striker-ui/out/server.html index daa0177c..d97a722c 100644 --- a/striker-ui/out/server.html +++ b/striker-ui/out/server.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file