@rws-aoa/react-library 8.2.7 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{FieldError.7Lfieqt3.js → FieldError.C1l5S0jl.js} +3 -3
- package/dist/chunks/{FieldError.7Lfieqt3.js.map → FieldError.C1l5S0jl.js.map} +1 -1
- package/dist/chunks/{compiler-runtime.CrLvXwKf.js → compiler-runtime.BNHg76kC.js} +3 -3
- package/dist/chunks/{compiler-runtime.CrLvXwKf.js.map → compiler-runtime.BNHg76kC.js.map} +1 -1
- package/dist/chunks/{lodash.DPVO3Hgf.js → lodash.CdkV4gpV.js} +94 -77
- package/dist/chunks/lodash.CdkV4gpV.js.map +1 -0
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js +2 -2
- package/dist/components-domain/ivon-project-planning/IvonProjectPlanning.js.map +1 -1
- package/dist/components-generic/_pages/project-page/ProjectPage.js +88 -97
- package/dist/components-generic/_pages/project-page/ProjectPage.js.map +1 -1
- package/dist/components-generic/atoms/_menu/menu-item/MenuItem.js +1 -1
- package/dist/components-generic/atoms/_menu/user-menu/UserMenu.js +9 -9
- package/dist/components-generic/atoms/_menu/user-menu/UserMenu.js.map +1 -1
- package/dist/components-generic/atoms/button/Button.js +1 -1
- package/dist/components-generic/atoms/icon-button/IconButton.js +2 -2
- package/dist/components-generic/atoms/input/Input.js +1 -1
- package/dist/components-generic/atoms/list/List.js +1 -1
- package/dist/components-generic/atoms/logo/Logo.js +44 -44
- package/dist/components-generic/atoms/logo/Logo.js.map +1 -1
- package/dist/components-generic/atoms/no-permission/PermissionWrapper.d.ts +31 -0
- package/dist/components-generic/atoms/no-permission/PermissionWrapper.d.ts.map +1 -0
- package/dist/components-generic/atoms/no-permission/PermissionWrapper.js +27 -0
- package/dist/components-generic/atoms/no-permission/PermissionWrapper.js.map +1 -0
- package/dist/components-generic/atoms/notification/Notification.js +1 -1
- package/dist/components-generic/atoms/notification/_icons/Error.js +4 -4
- package/dist/components-generic/atoms/notification/_icons/Error.js.map +1 -1
- package/dist/components-generic/atoms/notification/_icons/Info.js +4 -4
- package/dist/components-generic/atoms/notification/_icons/Info.js.map +1 -1
- package/dist/components-generic/atoms/notification/_icons/Success.js +4 -4
- package/dist/components-generic/atoms/notification/_icons/Success.js.map +1 -1
- package/dist/components-generic/atoms/notification/_icons/Warning.js +3 -3
- package/dist/components-generic/atoms/notification/_icons/Warning.js.map +1 -1
- package/dist/components-generic/atoms/section-header/SectionHeader.js +1 -1
- package/dist/components-generic/atoms/selection-buttons/checkbox/Checkbox.js +1 -1
- package/dist/components-generic/atoms/selection-buttons/radio-button/RadioButton.js +1 -1
- package/dist/components-generic/atoms/table/Table.d.ts.map +1 -1
- package/dist/components-generic/atoms/table/Table.js +15 -14
- package/dist/components-generic/atoms/table/Table.js.map +1 -1
- package/dist/components-generic/atoms/table/_QuickSearchToolbar.js +756 -722
- package/dist/components-generic/atoms/table/_QuickSearchToolbar.js.map +1 -1
- package/dist/components-generic/atoms/tooltip/Tooltip.js +1 -1
- package/dist/components-generic/atoms/zero-width-space/ZeroWidthSpace.js +1 -1
- package/dist/components-generic/molecules/field-error/FieldError.js +2 -2
- package/dist/components-generic/molecules/file-dropzone/FileDropzone.js +3 -3
- package/dist/components-generic/molecules/file-dropzone/FileDropzone.js.map +1 -1
- package/dist/components-generic/molecules/form-error/FormError.js +2 -2
- package/dist/components-generic/molecules/form-modal/FormModal.js +3 -3
- package/dist/components-generic/molecules/modal/Modal.js +2 -2
- package/dist/components-generic/molecules/modal-close-button/ModalCloseButton.js +3 -3
- package/dist/components-generic/molecules/modal-close-button/ModalCloseButton.js.map +1 -1
- package/dist/components-generic/molecules/navigation-bar/NavigationBar.js +5 -5
- package/dist/components-generic/molecules/navigation-bar/NavigationBar.js.map +1 -1
- package/dist/components-generic/molecules/no-label-number-field/NoLabelNumberField.js +2 -2
- package/dist/components-generic/molecules/upload-button/UploadButton.js +3 -3
- package/dist/components-generic/molecules/upload-button/UploadButton.js.map +1 -1
- package/dist/components-generic/organisms/content-page/ContentPage.js +1 -1
- package/dist/contexts/TanstackFormContext.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -17
- package/package.json +31 -31
- package/dist/chunks/lodash.DPVO3Hgf.js.map +0 -1
- package/dist/components-generic/atoms/no-permission/NoPermission.d.ts +0 -27
- package/dist/components-generic/atoms/no-permission/NoPermission.d.ts.map +0 -1
- package/dist/components-generic/atoms/no-permission/NoPermission.js +0 -23
- package/dist/components-generic/atoms/no-permission/NoPermission.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as m, jsxs as R } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "./compiler-runtime.
|
|
2
|
+
import { c as I } from "./compiler-runtime.BNHg76kC.js";
|
|
3
3
|
import { createFormHookContexts as ee, createFormHook as te } from "@tanstack/react-form";
|
|
4
4
|
import { AoaNotification as j } from "../components-generic/atoms/notification/Notification.js";
|
|
5
5
|
import { DialogTitle as oe, DialogContent as re, Dialog as ae, DialogActions as se, TextField as ie, inputBaseClasses as J } from "@mui/material";
|
|
6
|
-
import { l as $ } from "./lodash.
|
|
6
|
+
import { l as $ } from "./lodash.CdkV4gpV.js";
|
|
7
7
|
import { AoaButton as z } from "../components-generic/atoms/button/Button.js";
|
|
8
8
|
import { AoaModalCloseButton as ne } from "../components-generic/molecules/modal-close-button/ModalCloseButton.js";
|
|
9
9
|
import { AoaTooltip as le } from "../components-generic/atoms/tooltip/Tooltip.js";
|
|
@@ -227,4 +227,4 @@ export {
|
|
|
227
227
|
Ne as u,
|
|
228
228
|
Pe as w
|
|
229
229
|
};
|
|
230
|
-
//# sourceMappingURL=FieldError.
|
|
230
|
+
//# sourceMappingURL=FieldError.C1l5S0jl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldError.7Lfieqt3.js","sources":["../../src/components-generic/molecules/form-error/FormError.tsx","../../src/components-generic/molecules/form-modal/FormModal.tsx","../../../../node_modules/@sapphire/utilities/dist/esm/chunk-PAWJFY3S.mjs","../../../../node_modules/@sapphire/utilities/dist/esm/lib/isNullOrUndefined.mjs","../../../../node_modules/@sapphire/utilities/dist/esm/lib/isNullOrUndefinedOrEmpty.mjs","../../src/components-generic/molecules/no-label-number-field/NoLabelNumberField.tsx","../../src/contexts/TanstackFormContext.ts","../../src/components-generic/molecules/field-error/FieldError.tsx"],"sourcesContent":["import { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFormErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a form **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormError />`\n *\n * @internal\n * @param param0 - Props to pass to the form error\n * @returns A custom error message for a form\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormError />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormError({ 'data-qa': dataQa }: AoaFormErrorProps) {\n const form = useAoaFormContext();\n\n return (\n <form.Subscribe selector={(state) => state.errors}>\n {(errors) => {\n if (errors.length) {\n const error = errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level) ? (error.level as Severity) : 'error';\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n }}\n </form.Subscribe>\n );\n}\n","import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';\nimport { merge } from 'lodash';\nimport { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaButton, type AoaButtonProps } from '../../atoms/button/Button';\nimport type { AoaModalProps } from '../modal/Modal';\nimport { AoaModalCloseButton, type AoaModalCloseButtonProps } from '../modal-close-button/ModalCloseButton';\n\nexport interface AoaFormModalQAs {\n /**\n * Data-qa tag applied to the \"cancel\" button\n */\n cancelButton?: string;\n /**\n * Data-qa tag applied to the `DialogActions` component\n */\n dialogActions?: string;\n /**\n * Data-qa tag applied to the HTML `form` element\n */\n form?: string;\n /**\n * Data-qa tag applied to the \"submit\" button\n */\n submitButton?: string;\n}\n\nexport interface AoaFormModalLabels {\n cancel: string;\n submit: string;\n}\n\nexport interface AoaFormModalProps extends Omit<AoaModalProps, 'dialogActions'>, AoaModalCloseButtonProps {\n /**\n * Additional properties to provide to the {@link AoaButton | submit button}\n */\n AoaSubmitButtonProps?: Omit<AoaButtonProps, 'buttonType' | 'data-qa' | 'disabled' | 'onClick' | 'type'> & {\n disableWithFormState?: boolean;\n };\n /**\n * Labels for the buttons in {@link DialogActions}\n */\n formLabels: AoaFormModalLabels;\n /**\n * data-qa tags for the components in the form section of the modal\n */\n formModalQas?: AoaFormModalQAs;\n /**\n * Optionally the `name` property for the HTML form element\n */\n formName?: string;\n}\n\n/**\n * Constructs a modal **for holding a Form** using pre-defined Rijks styling\n *\n * For a modal without a form see `AoaModal`\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormModal />`\n *\n * @internal\n * @param props - Props to pass to the modal - {@link ModalProps}\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormModal\n * open={true}\n * formLabels={{\n * submit: 'submit',\n * cancel: 'cancel'\n * }}\n * formModalQas={{\n * cancelButton: 'cancel-button',\n * dialogActions: 'dialog-actions,\n * form: 'form',\n * submitButton: 'confirm-button'\n * }}\n * closeAction={handleClose}\n * topic='topic'\n * modalQas={{\n * modal: 'modal',\n * content: 'modal-content',\n * title: 'modal-title'\n * }}\n * formName='form'\n * dialogContent={content}\n * />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormModal({\n formModalQas,\n formLabels,\n formName,\n DialogProps,\n DialogTitleProps,\n DialogContentProps,\n AoaSubmitButtonProps: { disableWithFormState, ...AoaSubmitButtonProps } = {},\n modalQas,\n open,\n topic,\n dialogContent,\n closeAction\n}: Readonly<AoaFormModalProps>) {\n const form = useAoaFormContext();\n\n const SubmitButton = disableWithFormState ? (\n <form.Subscribe selector={(state) => [state.isSubmitting, state.canSubmit] as const}>\n {([isSubmitting, canSubmit]) => (\n <AoaButton\n {...AoaSubmitButtonProps}\n aria-disabled={isSubmitting || !canSubmit}\n buttonType='submit'\n data-qa={formModalQas?.submitButton ?? 'submit-form'}\n disabled={isSubmitting || !canSubmit}\n type='primary'\n >\n {formLabels.submit}\n </AoaButton>\n )}\n </form.Subscribe>\n ) : (\n <AoaButton {...AoaSubmitButtonProps} buttonType='submit' data-qa={formModalQas?.submitButton ?? 'submit-form'} type='primary'>\n {formLabels.submit}\n </AoaButton>\n );\n\n return (\n <Dialog\n {...DialogProps}\n data-qa={modalQas?.modal ?? 'modal'}\n open={Boolean(open)}\n sx={merge(\n {\n '> div > div': {\n borderRadius: 0\n }\n },\n DialogProps?.sx\n )}\n >\n <DialogTitle\n {...DialogTitleProps}\n data-qa={modalQas?.title ?? 'modal-title'}\n maxWidth='sm'\n sx={merge(\n {\n padding: '3rem 3rem 1rem',\n color: 'var(--color-rijks-logoblue)',\n fontSize: '1.1rem',\n fontWeight: 'bolder'\n },\n DialogTitleProps?.sx\n )}\n >\n {topic}\n </DialogTitle>\n <AoaModalCloseButton closeAction={closeAction} />\n <form\n data-qa={formModalQas?.form ?? 'form'}\n name={formName}\n onSubmit={async (event) => {\n event.preventDefault();\n event.stopPropagation();\n await form.handleSubmit();\n }}\n >\n <DialogContent\n {...DialogContentProps}\n data-qa={modalQas?.content ?? 'modal-content'}\n sx={merge(\n {\n padding: '0 3rem 2rem'\n },\n DialogContentProps?.sx\n )}\n >\n {dialogContent}\n </DialogContent>\n <DialogActions data-qa={formModalQas?.dialogActions ?? 'dialog-actions'}>\n <AoaButton\n data-qa={formModalQas?.cancelButton ?? 'cancel-form'}\n onClick={() => {\n form.reset();\n closeAction();\n }}\n type='secondary'\n >\n {formLabels.cancel}\n </AoaButton>\n {SubmitButton}\n </DialogActions>\n </form>\n </Dialog>\n );\n}\n","var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\nexport { __name };\n//# sourceMappingURL=chunk-PAWJFY3S.mjs.map\n//# sourceMappingURL=chunk-PAWJFY3S.mjs.map","import { __name } from '../chunk-PAWJFY3S.mjs';\n\n// src/lib/isNullOrUndefined.ts\nfunction isNullOrUndefined(value) {\n return value === undefined || value === null;\n}\n__name(isNullOrUndefined, \"isNullOrUndefined\");\n\nexport { isNullOrUndefined, isNullOrUndefined as isNullish };\n//# sourceMappingURL=isNullOrUndefined.mjs.map\n//# sourceMappingURL=isNullOrUndefined.mjs.map","import { __name } from '../chunk-PAWJFY3S.mjs';\nimport { isNullish } from './isNullOrUndefined.mjs';\n\nfunction isNullOrUndefinedOrEmpty(value) {\n return isNullish(value) || value.length === 0;\n}\n__name(isNullOrUndefinedOrEmpty, \"isNullOrUndefinedOrEmpty\");\n\nexport { isNullOrUndefinedOrEmpty, isNullOrUndefinedOrEmpty as isNullishOrEmpty };\n//# sourceMappingURL=isNullOrUndefinedOrEmpty.mjs.map\n//# sourceMappingURL=isNullOrUndefinedOrEmpty.mjs.map","import type { SxProps, Theme } from '@mui/material';\nimport { inputBaseClasses, TextField } from '@mui/material';\nimport { isNullishOrEmpty } from '@sapphire/utilities';\nimport { merge } from 'lodash';\nimport { useAoaFieldContext } from '../../../contexts/TanstackFormContext';\nimport { AoaTooltip } from '../../atoms/tooltip/Tooltip';\n\n/**\n * Props for {@link AoaNoLabelNumberField}.\n *\n * @remarks This interface defines the configurable aspects of the number field that is designed\n * to be paired with another field under a single label (\"double label\" pattern). Each prop maps to\n * a specific behavior or visual customization of the underlying MUI {@link TextField}.\n */\nexport interface AoaNoLabelNumberFieldProps {\n /**\n * Base QA / testing identifier. The component appends `-field` when applying it to the DOM as `data-qa`.\n *\n * @remarks Used for automated testing hooks.\n */\n readonly 'data-qa'?: string;\n /**\n * The id and name assigned to the input element.\n *\n * @remarks Must be unique within the form scope so that form state tracking works correctly.\n */\n readonly fieldId: string;\n\n /**\n * Disables the input when true.\n *\n * @defaultValue false\n */\n readonly isDisabled?: boolean;\n /**\n * Maximum number of digits the user can enter.\n *\n * @remarks Also used to compute the numeric max as `Number('9'.repeat(maxLength))`.\n */\n readonly maxLength: number;\n /**\n * Optional callback invoked before updating the field value on change.\n *\n * @remarks Can be used to reset related field values when one side of a range changes.\n */\n readonly resetValues?: CallableFunction;\n /**\n * Numeric step applied to the number input.\n *\n * @remarks Passed directly to the underlying input `step` attribute.\n */\n readonly step?: number;\n /**\n * Style overrides merged with the component's default styling for the root and input states.\n *\n * @see {@link SxProps}\n */\n readonly sx?: SxProps<Theme>;\n /**\n * Optional tooltip text. When provided, wraps the field in an {@link AoaTooltip}.\n */\n readonly tooltip?: string;\n}\n\n/**\n * This is a custom number field to allow for input fields that have one label with multiple fields.\n *\n * This component cannot be used without a proper wrapper around it. Please refer to the example below of how to properly use this component.\n *\n * @example\n * ```tsx\n * <Grid>\n * <InputLabel>My label</InputLabel>\n * <Grid container direction=\"column\">\n * <Grid alignItems=\"center\" container direction=\"row\">\n * <form.AppField name=\"firstField\">\n * {() => (\n * <AoaNoLabelNumberField\n * dataQa=\"first-field\"\n * fieldId=\"first-field\"\n * maxLength={5}\n * sx={{ width: 100 }}\n * />\n * )}\n * </form.AppField>\n * <Box sx={{ mx: 1 }}> / </Box>\n * <form.AppField name=\"secondField\">\n * {() => (\n * <AoaNoLabelNumberField\n * dataQa=\"second-field\"\n * fieldId=\"second-field\"\n * maxLength={5}\n * sx={{ width: 100 }}\n * />\n * )}\n * </form.AppField>\n * </Grid>\n * <form.Subscribe\n * selector={(state) => [\n * state.fieldMeta.firstField,\n * state.fieldMeta.secondField,\n * ]}\n * >\n * {([firstField, secondField]) => {\n * const hasFromError =\n * firstField?.isTouched && Boolean(firstField?.errors?.length);\n * const hasToError =\n * secondField?.isTouched && Boolean(secondField?.errors?.length);\n *\n * if (hasFromError || hasToError) {\n * return (\n * <AoaNotification\n * data-qa=\"first-second-field-error\"\n * message=\"Please correct the errors in the fields above.\"\n * severity=\"error\"\n * />\n * );\n * }\n *\n * return null;\n * }}\n * </form.Subscribe>\n * </Grid>\n * </Grid>;\n * ```\n */\nexport function AoaNoLabelNumberField<TData>({\n 'data-qa': dataQa,\n fieldId,\n isDisabled,\n maxLength,\n resetValues,\n step,\n sx,\n tooltip\n}: AoaNoLabelNumberFieldProps) {\n const field = useAoaFieldContext<TData>();\n\n const FieldComponent = (\n <TextField\n data-qa={`${dataQa}-field`}\n disabled={isDisabled}\n id={fieldId}\n name={fieldId}\n onBlur={field.handleBlur}\n /* v8 ignore start */\n onChange={(event) => {\n if (resetValues) {\n resetValues();\n }\n\n field.handleChange((prev) => (isNullishOrEmpty(event.target.value) ? undefined : (event.target as HTMLInputElement).valueAsNumber) as typeof prev);\n }}\n /* v8 ignore stop */\n onInput={(event) => {\n if ((event.target as HTMLInputElement).value.length > maxLength) {\n (event.target as HTMLInputElement).value = (event.target as HTMLInputElement).value.slice(0, maxLength);\n }\n }}\n slotProps={{\n htmlInput: { maxLength, min: 0, max: Number('9'.repeat(maxLength)), step }\n }}\n sx={merge(\n {\n [`.${inputBaseClasses.root}`]: {\n [`.${inputBaseClasses.input}`]: {\n ':disabled': {\n backgroundColor: 'var(--color-disabled)',\n borderColor: 'var(--color-disabled)'\n }\n }\n }\n },\n sx\n )}\n type='number'\n value={field.state.value ?? ''}\n />\n );\n\n return tooltip ? (\n <AoaTooltip placement='top' title={tooltip}>\n {FieldComponent}\n </AoaTooltip>\n ) : (\n FieldComponent\n );\n}\n","import { createFormHook, createFormHookContexts } from '@tanstack/react-form';\nimport { AoaFieldError } from '../components-generic/molecules/field-error/FieldError';\nimport { AoaFormError } from '../components-generic/molecules/form-error/FormError';\nimport { AoaFormModal } from '../components-generic/molecules/form-modal/FormModal';\nimport { AoaNoLabelNumberField } from '../components-generic/molecules/no-label-number-field/NoLabelNumberField';\n\nexport const {\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n useFieldContext: useAoaFieldContext,\n useFormContext: useAoaFormContext\n} = createFormHookContexts();\n\nexport const { useAppForm: useAoaAppForm, withForm: withAoaForm } = createFormHook({\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n fieldComponents: {\n AoaFieldError\n },\n formComponents: {\n AoaFormModal,\n AoaFormError,\n AoaNoLabelNumberField\n }\n});\n","import { useAoaFieldContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFieldErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a field **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<field.AoaFieldError />`\n *\n * @internal\n * @param param0 - Props to pass to the field error\n * @returns A custom error message for a field\n * @example\n * ```jsx\n * <form.AppField name='name'>\n * {(field) => {\n * return <field.AoaFieldError />;\n * }}\n * </form.AppField>\n * ```\n */\nexport function AoaFieldError<TData>({ 'data-qa': dataQa }: AoaFieldErrorProps) {\n const field = useAoaFieldContext<TData>();\n\n if (field.state.meta.isTouched && field.state.meta.errors.length) {\n const error = field.state.meta.errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level) ? (error.level as Severity) : 'error';\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n}\n"],"names":["AoaFormError","t0","$","_c","dataQa","form","useAoaFormContext","t1","errors","length","error","at","jsx","AoaNotification","parsedLevel","includes","level","message","t2","Subscribe","_temp","state","AoaFormModal","formModalQas","formLabels","formName","DialogProps","DialogTitleProps","DialogContentProps","AoaSubmitButtonProps","modalQas","open","topic","dialogContent","closeAction","undefined","disableWithFormState","t3","submit","submitButton","t4","isSubmitting","canSubmit","AoaButton","SubmitButton","modal","t5","Boolean","t6","sx","merge","borderRadius","t7","title","t8","padding","color","fontSize","fontWeight","t9","DialogTitle","t10","AoaModalCloseButton","t11","t12","event","preventDefault","stopPropagation","handleSubmit","t13","content","t14","t15","DialogContent","t16","dialogActions","t17","cancelButton","t18","reset","t19","cancel","t20","DialogActions","t21","t22","jsxs","Dialog","__defProp","__name","target","value","isNullOrUndefined","isNullOrUndefinedOrEmpty","isNullish","AoaNoLabelNumberField","fieldId","isDisabled","maxLength","resetValues","step","tooltip","field","useAoaFieldContext","FieldComponent","TextField","handleBlur","handleChange","prev","isNullishOrEmpty","valueAsNumber","slice","htmlInput","min","max","Number","repeat","inputBaseClasses","root","input","backgroundColor","borderColor","AoaTooltip","fieldContext","aoaFieldContext","formContext","aoaFormContext","useFieldContext","useFormContext","createFormHookContexts","useAppForm","useAoaAppForm","withForm","withAoaForm","createFormHook","fieldComponents","AoaFieldError","formComponents","meta","isTouched"],"mappings":";;;;;;;;;AAsBO,SAAAA,GAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAAsB;AAAA,IAAA,WAAAC;AAAAA,EAAAA,IAAAH,GAC3BI,IAAaC,EAAAA;AAAoB,MAAAC;AAAA,EAAAL,SAAAE,KAI5BG,IAAAC,CAAAA,MAAA;AACC,QAAIA,EAAMC,QAAO;AACf,YAAAC,IAAcF,EAAMG,GAAI,CAAC;AAEzB,UAAI,OAAOD,KAAU;AAAQ,eACpB,gBAAAE,EAACC,KAAyB,WAAAT,KAAA,cAAiCM,SAAAA,GAAgB,UAAA,SAAO;AACpF,UAAIA,KAAS,OAAOA,KAAU,UAAQ;AAC3C,cAAAI,IAAoB,CAAC,SAAS,QAAQ,WAAW,SAAS,EAACC,SAAUL,EAAKM,KAA4C,IAAjCN,EAAKM,QAAtE;AAAoG,eACjH,gBAAAJ,EAACC,KAAyB,WAAAT,KAAA,cAAiC,SAAAM,EAAKO,SAAoBH,UAA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gB,GAAAhB,OAAAmC,KAAAA,IAAAnC,EAAA,CAAA,GAAtFmC;AAAAA,IAAsF,WACpF3B,KAAS,OAAOA,KAAU,UAAQ;AAAA,UAAAQ;AAAA,MAAAhB,EAAA,CAAA,MAAAQ,EAAAM,SACvBE,IAAA,CAAC,SAAS,QAAQ,WAAW,SAAS,EAACH,SAAUL,EAAKM,KAA4C,IAAjCN,EAAKM,QAAtE,SAAmGd,EAAA,CAAA,IAAAQ,EAAAM,OAAAd,OAAAgB,KAAAA,IAAAhB,EAAA,CAAA;AAAvH,YAAAY,IAAoBI,GACamB,IAAAjC,KAAA;AAAuB,UAAAoC;AAAA,aAAAtC,EAAA,CAAA,MAAAQ,EAAAO,WAAAf,EAAA,CAAA,MAAAY,KAAAZ,EAAA,CAAA,MAAAmC,KAAjDG,IAAA,gBAAA5B,EAACC,KAAyB,WAAAwB,GAAkC,SAAA3B,EAAKO,SAAoBH,UAAAA,EAAAA,CAAW,GAAIZ,EAAA,CAAA,IAAAQ,EAAAO,SAAAf,OAAAY,GAAAZ,OAAAmC,GAAAnC,QAAAsC,KAAAA,IAAAtC,EAAA,EAAA,GAApGsC;AAAAA,IAAoG;AAAA,EAC5G;AACF,SAEM;AAAI;","x_google_ignoreList":[2,3,4]}
|
|
1
|
+
{"version":3,"file":"FieldError.C1l5S0jl.js","sources":["../../src/components-generic/molecules/form-error/FormError.tsx","../../src/components-generic/molecules/form-modal/FormModal.tsx","../../../../node_modules/@sapphire/utilities/dist/esm/chunk-PAWJFY3S.mjs","../../../../node_modules/@sapphire/utilities/dist/esm/lib/isNullOrUndefined.mjs","../../../../node_modules/@sapphire/utilities/dist/esm/lib/isNullOrUndefinedOrEmpty.mjs","../../src/components-generic/molecules/no-label-number-field/NoLabelNumberField.tsx","../../src/contexts/TanstackFormContext.ts","../../src/components-generic/molecules/field-error/FieldError.tsx"],"sourcesContent":["import { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFormErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a form **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormError />`\n *\n * @internal\n * @param param0 - Props to pass to the form error\n * @returns A custom error message for a form\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormError />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormError({ 'data-qa': dataQa }: AoaFormErrorProps) {\n const form = useAoaFormContext();\n\n return (\n <form.Subscribe selector={(state) => state.errors}>\n {(errors) => {\n if (errors.length) {\n const error = errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level) ? (error.level as Severity) : 'error';\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n }}\n </form.Subscribe>\n );\n}\n","import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';\nimport { merge } from 'lodash';\nimport { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaButton, type AoaButtonProps } from '../../atoms/button/Button';\nimport type { AoaModalProps } from '../modal/Modal';\nimport { AoaModalCloseButton, type AoaModalCloseButtonProps } from '../modal-close-button/ModalCloseButton';\n\nexport interface AoaFormModalQAs {\n /**\n * Data-qa tag applied to the \"cancel\" button\n */\n cancelButton?: string;\n /**\n * Data-qa tag applied to the `DialogActions` component\n */\n dialogActions?: string;\n /**\n * Data-qa tag applied to the HTML `form` element\n */\n form?: string;\n /**\n * Data-qa tag applied to the \"submit\" button\n */\n submitButton?: string;\n}\n\nexport interface AoaFormModalLabels {\n cancel: string;\n submit: string;\n}\n\nexport interface AoaFormModalProps extends Omit<AoaModalProps, 'dialogActions'>, AoaModalCloseButtonProps {\n /**\n * Additional properties to provide to the {@link AoaButton | submit button}\n */\n AoaSubmitButtonProps?: Omit<AoaButtonProps, 'buttonType' | 'data-qa' | 'disabled' | 'onClick' | 'type'> & {\n disableWithFormState?: boolean;\n };\n /**\n * Labels for the buttons in {@link DialogActions}\n */\n formLabels: AoaFormModalLabels;\n /**\n * data-qa tags for the components in the form section of the modal\n */\n formModalQas?: AoaFormModalQAs;\n /**\n * Optionally the `name` property for the HTML form element\n */\n formName?: string;\n}\n\n/**\n * Constructs a modal **for holding a Form** using pre-defined Rijks styling\n *\n * For a modal without a form see `AoaModal`\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormModal />`\n *\n * @internal\n * @param props - Props to pass to the modal - {@link ModalProps}\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormModal\n * open={true}\n * formLabels={{\n * submit: 'submit',\n * cancel: 'cancel'\n * }}\n * formModalQas={{\n * cancelButton: 'cancel-button',\n * dialogActions: 'dialog-actions,\n * form: 'form',\n * submitButton: 'confirm-button'\n * }}\n * closeAction={handleClose}\n * topic='topic'\n * modalQas={{\n * modal: 'modal',\n * content: 'modal-content',\n * title: 'modal-title'\n * }}\n * formName='form'\n * dialogContent={content}\n * />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormModal({\n formModalQas,\n formLabels,\n formName,\n DialogProps,\n DialogTitleProps,\n DialogContentProps,\n AoaSubmitButtonProps: { disableWithFormState, ...AoaSubmitButtonProps } = {},\n modalQas,\n open,\n topic,\n dialogContent,\n closeAction\n}: Readonly<AoaFormModalProps>) {\n const form = useAoaFormContext();\n\n const SubmitButton = disableWithFormState ? (\n <form.Subscribe selector={(state) => [state.isSubmitting, state.canSubmit] as const}>\n {([isSubmitting, canSubmit]) => (\n <AoaButton\n {...AoaSubmitButtonProps}\n aria-disabled={isSubmitting || !canSubmit}\n buttonType='submit'\n data-qa={formModalQas?.submitButton ?? 'submit-form'}\n disabled={isSubmitting || !canSubmit}\n type='primary'\n >\n {formLabels.submit}\n </AoaButton>\n )}\n </form.Subscribe>\n ) : (\n <AoaButton {...AoaSubmitButtonProps} buttonType='submit' data-qa={formModalQas?.submitButton ?? 'submit-form'} type='primary'>\n {formLabels.submit}\n </AoaButton>\n );\n\n return (\n <Dialog\n {...DialogProps}\n data-qa={modalQas?.modal ?? 'modal'}\n open={Boolean(open)}\n sx={merge(\n {\n '> div > div': {\n borderRadius: 0\n }\n },\n DialogProps?.sx\n )}\n >\n <DialogTitle\n {...DialogTitleProps}\n data-qa={modalQas?.title ?? 'modal-title'}\n maxWidth='sm'\n sx={merge(\n {\n padding: '3rem 3rem 1rem',\n color: 'var(--color-rijks-logoblue)',\n fontSize: '1.1rem',\n fontWeight: 'bolder'\n },\n DialogTitleProps?.sx\n )}\n >\n {topic}\n </DialogTitle>\n <AoaModalCloseButton closeAction={closeAction} />\n <form\n data-qa={formModalQas?.form ?? 'form'}\n name={formName}\n onSubmit={async (event) => {\n event.preventDefault();\n event.stopPropagation();\n await form.handleSubmit();\n }}\n >\n <DialogContent\n {...DialogContentProps}\n data-qa={modalQas?.content ?? 'modal-content'}\n sx={merge(\n {\n padding: '0 3rem 2rem'\n },\n DialogContentProps?.sx\n )}\n >\n {dialogContent}\n </DialogContent>\n <DialogActions data-qa={formModalQas?.dialogActions ?? 'dialog-actions'}>\n <AoaButton\n data-qa={formModalQas?.cancelButton ?? 'cancel-form'}\n onClick={() => {\n form.reset();\n closeAction();\n }}\n type='secondary'\n >\n {formLabels.cancel}\n </AoaButton>\n {SubmitButton}\n </DialogActions>\n </form>\n </Dialog>\n );\n}\n","var __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\nexport { __name };\n//# sourceMappingURL=chunk-PAWJFY3S.mjs.map\n//# sourceMappingURL=chunk-PAWJFY3S.mjs.map","import { __name } from '../chunk-PAWJFY3S.mjs';\n\n// src/lib/isNullOrUndefined.ts\nfunction isNullOrUndefined(value) {\n return value === undefined || value === null;\n}\n__name(isNullOrUndefined, \"isNullOrUndefined\");\n\nexport { isNullOrUndefined, isNullOrUndefined as isNullish };\n//# sourceMappingURL=isNullOrUndefined.mjs.map\n//# sourceMappingURL=isNullOrUndefined.mjs.map","import { __name } from '../chunk-PAWJFY3S.mjs';\nimport { isNullish } from './isNullOrUndefined.mjs';\n\nfunction isNullOrUndefinedOrEmpty(value) {\n return isNullish(value) || value.length === 0;\n}\n__name(isNullOrUndefinedOrEmpty, \"isNullOrUndefinedOrEmpty\");\n\nexport { isNullOrUndefinedOrEmpty, isNullOrUndefinedOrEmpty as isNullishOrEmpty };\n//# sourceMappingURL=isNullOrUndefinedOrEmpty.mjs.map\n//# sourceMappingURL=isNullOrUndefinedOrEmpty.mjs.map","import type { SxProps, Theme } from '@mui/material';\nimport { inputBaseClasses, TextField } from '@mui/material';\nimport { isNullishOrEmpty } from '@sapphire/utilities';\nimport { merge } from 'lodash';\nimport { useAoaFieldContext } from '../../../contexts/TanstackFormContext';\nimport { AoaTooltip } from '../../atoms/tooltip/Tooltip';\n\n/**\n * Props for {@link AoaNoLabelNumberField}.\n *\n * @remarks This interface defines the configurable aspects of the number field that is designed\n * to be paired with another field under a single label (\"double label\" pattern). Each prop maps to\n * a specific behavior or visual customization of the underlying MUI {@link TextField}.\n */\nexport interface AoaNoLabelNumberFieldProps {\n /**\n * Base QA / testing identifier. The component appends `-field` when applying it to the DOM as `data-qa`.\n *\n * @remarks Used for automated testing hooks.\n */\n readonly 'data-qa'?: string;\n /**\n * The id and name assigned to the input element.\n *\n * @remarks Must be unique within the form scope so that form state tracking works correctly.\n */\n readonly fieldId: string;\n\n /**\n * Disables the input when true.\n *\n * @defaultValue false\n */\n readonly isDisabled?: boolean;\n /**\n * Maximum number of digits the user can enter.\n *\n * @remarks Also used to compute the numeric max as `Number('9'.repeat(maxLength))`.\n */\n readonly maxLength: number;\n /**\n * Optional callback invoked before updating the field value on change.\n *\n * @remarks Can be used to reset related field values when one side of a range changes.\n */\n readonly resetValues?: CallableFunction;\n /**\n * Numeric step applied to the number input.\n *\n * @remarks Passed directly to the underlying input `step` attribute.\n */\n readonly step?: number;\n /**\n * Style overrides merged with the component's default styling for the root and input states.\n *\n * @see {@link SxProps}\n */\n readonly sx?: SxProps<Theme>;\n /**\n * Optional tooltip text. When provided, wraps the field in an {@link AoaTooltip}.\n */\n readonly tooltip?: string;\n}\n\n/**\n * This is a custom number field to allow for input fields that have one label with multiple fields.\n *\n * This component cannot be used without a proper wrapper around it. Please refer to the example below of how to properly use this component.\n *\n * @example\n * ```tsx\n * <Grid>\n * <InputLabel>My label</InputLabel>\n * <Grid container direction=\"column\">\n * <Grid alignItems=\"center\" container direction=\"row\">\n * <form.AppField name=\"firstField\">\n * {() => (\n * <AoaNoLabelNumberField\n * dataQa=\"first-field\"\n * fieldId=\"first-field\"\n * maxLength={5}\n * sx={{ width: 100 }}\n * />\n * )}\n * </form.AppField>\n * <Box sx={{ mx: 1 }}> / </Box>\n * <form.AppField name=\"secondField\">\n * {() => (\n * <AoaNoLabelNumberField\n * dataQa=\"second-field\"\n * fieldId=\"second-field\"\n * maxLength={5}\n * sx={{ width: 100 }}\n * />\n * )}\n * </form.AppField>\n * </Grid>\n * <form.Subscribe\n * selector={(state) => [\n * state.fieldMeta.firstField,\n * state.fieldMeta.secondField,\n * ]}\n * >\n * {([firstField, secondField]) => {\n * const hasFromError =\n * firstField?.isTouched && Boolean(firstField?.errors?.length);\n * const hasToError =\n * secondField?.isTouched && Boolean(secondField?.errors?.length);\n *\n * if (hasFromError || hasToError) {\n * return (\n * <AoaNotification\n * data-qa=\"first-second-field-error\"\n * message=\"Please correct the errors in the fields above.\"\n * severity=\"error\"\n * />\n * );\n * }\n *\n * return null;\n * }}\n * </form.Subscribe>\n * </Grid>\n * </Grid>;\n * ```\n */\nexport function AoaNoLabelNumberField<TData>({\n 'data-qa': dataQa,\n fieldId,\n isDisabled,\n maxLength,\n resetValues,\n step,\n sx,\n tooltip\n}: AoaNoLabelNumberFieldProps) {\n const field = useAoaFieldContext<TData>();\n\n const FieldComponent = (\n <TextField\n data-qa={`${dataQa}-field`}\n disabled={isDisabled}\n id={fieldId}\n name={fieldId}\n onBlur={field.handleBlur}\n /* v8 ignore start */\n onChange={(event) => {\n if (resetValues) {\n resetValues();\n }\n\n field.handleChange((prev) => (isNullishOrEmpty(event.target.value) ? undefined : (event.target as HTMLInputElement).valueAsNumber) as typeof prev);\n }}\n /* v8 ignore stop */\n onInput={(event) => {\n if ((event.target as HTMLInputElement).value.length > maxLength) {\n (event.target as HTMLInputElement).value = (event.target as HTMLInputElement).value.slice(0, maxLength);\n }\n }}\n slotProps={{\n htmlInput: { maxLength, min: 0, max: Number('9'.repeat(maxLength)), step }\n }}\n sx={merge(\n {\n [`.${inputBaseClasses.root}`]: {\n [`.${inputBaseClasses.input}`]: {\n ':disabled': {\n backgroundColor: 'var(--color-disabled)',\n borderColor: 'var(--color-disabled)'\n }\n }\n }\n },\n sx\n )}\n type='number'\n value={field.state.value ?? ''}\n />\n );\n\n return tooltip ? (\n <AoaTooltip placement='top' title={tooltip}>\n {FieldComponent}\n </AoaTooltip>\n ) : (\n FieldComponent\n );\n}\n","import { createFormHook, createFormHookContexts } from '@tanstack/react-form';\nimport { AoaFieldError } from '../components-generic/molecules/field-error/FieldError';\nimport { AoaFormError } from '../components-generic/molecules/form-error/FormError';\nimport { AoaFormModal } from '../components-generic/molecules/form-modal/FormModal';\nimport { AoaNoLabelNumberField } from '../components-generic/molecules/no-label-number-field/NoLabelNumberField';\n\nexport const {\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n useFieldContext: useAoaFieldContext,\n useFormContext: useAoaFormContext\n} = createFormHookContexts();\n\nexport const { useAppForm: useAoaAppForm, withForm: withAoaForm } = createFormHook({\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n fieldComponents: {\n AoaFieldError\n },\n formComponents: {\n AoaFormModal,\n AoaFormError,\n AoaNoLabelNumberField\n }\n});\n","import { useAoaFieldContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFieldErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a field **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<field.AoaFieldError />`\n *\n * @internal\n * @param param0 - Props to pass to the field error\n * @returns A custom error message for a field\n * @example\n * ```jsx\n * <form.AppField name='name'>\n * {(field) => {\n * return <field.AoaFieldError />;\n * }}\n * </form.AppField>\n * ```\n */\nexport function AoaFieldError<TData>({ 'data-qa': dataQa }: AoaFieldErrorProps) {\n const field = useAoaFieldContext<TData>();\n\n if (field.state.meta.isTouched && field.state.meta.errors.length) {\n const error = field.state.meta.errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level) ? (error.level as Severity) : 'error';\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n}\n"],"names":["AoaFormError","t0","$","_c","dataQa","form","useAoaFormContext","t1","errors","length","error","at","jsx","AoaNotification","parsedLevel","includes","level","message","t2","Subscribe","_temp","state","AoaFormModal","formModalQas","formLabels","formName","DialogProps","DialogTitleProps","DialogContentProps","AoaSubmitButtonProps","modalQas","open","topic","dialogContent","closeAction","undefined","disableWithFormState","t3","submit","submitButton","t4","isSubmitting","canSubmit","AoaButton","SubmitButton","modal","t5","Boolean","t6","sx","merge","borderRadius","t7","title","t8","padding","color","fontSize","fontWeight","t9","DialogTitle","t10","AoaModalCloseButton","t11","t12","event","preventDefault","stopPropagation","handleSubmit","t13","content","t14","t15","DialogContent","t16","dialogActions","t17","cancelButton","t18","reset","t19","cancel","t20","DialogActions","t21","t22","jsxs","Dialog","__defProp","__name","target","value","isNullOrUndefined","isNullOrUndefinedOrEmpty","isNullish","AoaNoLabelNumberField","fieldId","isDisabled","maxLength","resetValues","step","tooltip","field","useAoaFieldContext","FieldComponent","TextField","handleBlur","handleChange","prev","isNullishOrEmpty","valueAsNumber","slice","htmlInput","min","max","Number","repeat","inputBaseClasses","root","input","backgroundColor","borderColor","AoaTooltip","fieldContext","aoaFieldContext","formContext","aoaFormContext","useFieldContext","useFormContext","createFormHookContexts","useAppForm","useAoaAppForm","withForm","withAoaForm","createFormHook","fieldComponents","AoaFieldError","formComponents","meta","isTouched"],"mappings":";;;;;;;;;AAsBO,SAAAA,GAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAAsB;AAAA,IAAA,WAAAC;AAAAA,EAAAA,IAAAH,GAC3BI,IAAaC,EAAAA;AAAoB,MAAAC;AAAA,EAAAL,SAAAE,KAI5BG,IAAAC,CAAAA,MAAA;AACC,QAAIA,EAAMC,QAAO;AACf,YAAAC,IAAcF,EAAMG,GAAI,CAAC;AAEzB,UAAI,OAAOD,KAAU;AAAQ,eACpB,gBAAAE,EAACC,KAAyB,WAAAT,KAAA,cAAiCM,SAAAA,GAAgB,UAAA,SAAO;AACpF,UAAIA,KAAS,OAAOA,KAAU,UAAQ;AAC3C,cAAAI,IAAoB,CAAC,SAAS,QAAQ,WAAW,SAAS,EAACC,SAAUL,EAAKM,KAA4C,IAAjCN,EAAKM,QAAtE;AAAoG,eACjH,gBAAAJ,EAACC,KAAyB,WAAAT,KAAA,cAAiC,SAAAM,EAAKO,SAAoBH,UAAAA,EAAAA,CAAW;AAAA,MAAI;AAAA,IAC3G;AACF,WAEM;AAAA,EAAI,GACZZ,OAAAE,GAAAF,OAAAK,KAAAA,IAAAL,EAAA,CAAA;AAAA,MAAAgB;AAAA,SAAAhB,SAAAG,EAAAc,aAAAjB,SAAAK,KAdHW,sBAAAb,EAAA,WAAA,EAA0B,UAAAe,IACvBb,UAAAA,GAcH,GAAiBL,EAAA,CAAA,IAAAG,EAAAc,WAAAjB,OAAAK,GAAAL,OAAAgB,KAAAA,IAAAhB,EAAA,CAAA,GAfjBgB;AAeiB;AAnBd,SAAAE,GAAAC,GAAA;AAA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AuB,UAAAoC;AAAA,aAAAtC,EAAA,CAAA,MAAAQ,EAAAO,WAAAf,EAAA,CAAA,MAAAY,KAAAZ,EAAA,CAAA,MAAAmC,KAAjDG,IAAA,gBAAA5B,EAACC,KAAyB,WAAAwB,GAAkC,SAAA3B,EAAKO,SAAoBH,UAAAA,EAAAA,CAAW,GAAIZ,EAAA,CAAA,IAAAQ,EAAAO,SAAAf,OAAAY,GAAAZ,OAAAmC,GAAAnC,QAAAsC,KAAAA,IAAAtC,EAAA,EAAA,GAApGsC;AAAAA,IAAoG;AAAA,EAC5G;AACF,SAEM;AAAI;","x_google_ignoreList":[2,3,4]}
|
|
@@ -12,7 +12,7 @@ function s() {
|
|
|
12
12
|
var n = {};
|
|
13
13
|
var u;
|
|
14
14
|
function m() {
|
|
15
|
-
return u || (u = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
+
return u || (u = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
16
16
|
var o = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
17
17
|
n.c = function(r) {
|
|
18
18
|
var i = o.H;
|
|
@@ -24,7 +24,7 @@ function m() {
|
|
|
24
24
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
25
25
|
), i.useMemoCache(r);
|
|
26
26
|
};
|
|
27
|
-
}()), n;
|
|
27
|
+
})()), n;
|
|
28
28
|
}
|
|
29
29
|
var c;
|
|
30
30
|
function l() {
|
|
@@ -34,4 +34,4 @@ var _ = l();
|
|
|
34
34
|
export {
|
|
35
35
|
_ as c
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=compiler-runtime.
|
|
37
|
+
//# sourceMappingURL=compiler-runtime.BNHg76kC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-runtime.
|
|
1
|
+
{"version":3,"file":"compiler-runtime.BNHg76kC.js","sources":["../../../../node_modules/react/cjs/react-compiler-runtime.production.js","../../../../node_modules/react/cjs/react-compiler-runtime.development.js","../../../../node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"names":["ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1"],"mappings":";;;;;;AAWA,MAAIA,IACFC,EAAiB;AACnB,SAAAC,EAAA,IAAY,SAAUC,GAAM;AAC1B,WAAOH,EAAqB,EAAE,aAAaG,CAAI;AAAA,EACjD;;;;;sBCJiB,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,QAAIH,IACFC,EAAiB;AACnB,IAAAG,EAAA,IAAY,SAAUD,GAAM;AAC1B,UAAIE,IAAaL,EAAqB;AACtC,aAASK,MAAT,QACE,QAAQ;AAAA,QACN;AAAA;AAAA;AAAA;AAAA;AAAA,SAEGA,EAAW,aAAaF,CAAI;AAAA,IACzC;AAAA,EACA,GAAG;;;;sBCdC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBL,EAAA,IAEjBK,EAAA,UAAiBC,EAAA;;;","x_google_ignoreList":[0,1,2]}
|