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,QAAQ,mBAAqB,mBAC7B,QAAQ,iBAAmB,iBAC3B,QAAQ,WAAa,WACrB,QAAQ,YAAc,YACtB,QAAQ,oBAAsB,oBAC9B,QAAQ,YAAc,YACtB,QAAQ,YAAc,YACtB,QAAQ,UAAY,mBACpB,QAAQ,eAAiB,eACzB,QAAQ,gBAAkB,gBAC1B,QAAQ,kBAAoB,kBAC5B,QAAQ,uBAAyB,uBACjC,QAAQ,cAAgB,cACxB,QAAQ,0BAA4B,0BACpC,QAAQ,gCAAkC,gCAC1C,QAAQ,+CAAiD,+CACzD,QAAQ,WAAa,WACrB,QAAQ,kBAAoB,kBAC5B,QAAQ,qBAAuB,qBAC/B,QAAQ,YAAc,YACtB,QAAQ,mBAAqB,mBAC7B,QAAQ,sBAAwB,sBAChC,QAAQ,qCAAuC,qCAC/C,QAAQ,mBAAqB,mBAC7B,QAAQ,0BAA4B,0BACpC,QAAQ,mBAAqB","file":"/npm/@nwon/react-mui-hook-form-cjs@2.0.14/dist/packageExports.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@nwon/react-mui-hook-form-cjs@2.0.14/dist/packageExports.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var iconsMaterial = require('@mui/icons-material');\nvar material = require('@mui/material');\nvar baseline = require('@nvon/baseline');\nvar react = require('react');\nvar reactHookForm = require('react-hook-form');\nvar jsxRuntime = require('react/jsx-runtime');\nvar lodashEs = require('lodash-es');\nvar i18next = require('i18next');\nvar xDatePickers = require('@mui/x-date-pickers');\nvar dayjs = require('dayjs');\nvar reactNumberFormat = require('react-number-format');\nvar lab = require('@mui/lab');\n\nconst formContextNull = \"FormContext is null. This should not happen. You may need to use the HookFormProvider instead of the FormProvider exported by react-hook-form\";\n\nconst FormFieldErrorDisplay = ({\n  error,\n  formHelperTextProps\n}) => {\n  if (Array.isArray(error)) {\n    return /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, {\n      ...formHelperTextProps,\n      error: true,\n      children: error.map(e => e.message).filter(baseline.filterNoUndefinedNoNull).join(\", \")\n    });\n  }\n  if (error?.message) {\n    return /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, {\n      ...formHelperTextProps,\n      error: true,\n      children: error?.message\n    });\n  }\n  return null;\n};\n\n/**\n * Wrapper around react-hook-form's useFormContext.\n *\n * Should behave like the original function, only exposing a \"fieldName\"\n *  function on top which is used to validate field names.\n */\nconst useHookFormContext = () => {\n  const form = reactHookForm.useFormContext();\n  return {\n    ...form,\n    fieldName: lodashEs.identity\n  };\n};\n\n/**\n * Get the field errors for a (possibly nested) field name.\n *\n * Checking `formState.errors[fieldName]` only works if fieldName is not a path\n *  (e.g. Does not include dots).\n *\n * Did not find a built-in way to do this … there might be one though.\n */\nconst getFormErrorForNestedKeys = (errors, fieldName) => {\n  const nestedKeys = fieldName.split(\".\");\n  //\n  // To my best knowledge, this works as expected.\n  //\n  // It recursively walks the error object by the given keys\n  //  until the lowest level is reached, or undefined returned.\n  //\n  // Typescript is just not very happy with the dynamic nature of this,\n  //  hence the errors.\n  //\n  /* eslint-disable @typescript-eslint/ban-ts-comment,@typescript-eslint/no-unsafe-return */\n  // @ts-expect-error\n  return nestedKeys.reduce(\n  // @ts-expect-error\n  (errorObj, pathKey) => errorObj?.[pathKey], errors);\n  /* eslint-enable */\n};\n\n/**\n * Returns the error for a given field name.\n *\n * @throws Error when FormContext is null.\n */\nconst useFormFieldError = fieldName => {\n  const form = useHookFormContext();\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    formState\n  } = form;\n  const errors = getFormErrorForNestedKeys(formState.errors, fieldName);\n  return errors;\n};\n\nconst FormFieldError = ({\n  fieldName,\n  formHelperTextProps\n}) => {\n  const error = useFormFieldError(fieldName);\n  return /*#__PURE__*/jsxRuntime.jsx(FormFieldErrorDisplay, {\n    error: error,\n    formHelperTextProps: formHelperTextProps\n  });\n};\n\n/**\n * Returns whether or not a field has an error.\n *\n * @throws Error when FormContext is null.\n */\nconst useFormFieldHasError = fieldName => !!useFormFieldError(fieldName);\n\n/**\n * Return a function which turns our TranslatedString into a plain string.\n *\n * @throws Error if no t was provided but a translated string.\n */\nconst useTranslateString = () => {\n  if (!i18next.t) {\n    throw Error(\"If you pass in a translated validate function you need to provide a t\");\n  }\n  return react.useCallback(input => {\n    return typeof input === \"string\" ? input : input(i18next.t);\n  }, []);\n};\n\n/**\n * Merge a form field with defaults.\n */\nconst useMergedFormField = (\n/**\n * Form fields, typically those passed into a component.\n *\n */\nformField, t,\n/**\n * Additional defaults. Duplicate values will be overridden by the formField.\n */\nformFieldDefaults) => {\n  const translate = useTranslateString();\n  const merged = react.useMemo(() => {\n    const builtInDefaults = {\n      label: baseline.uppercaseFirstLetter(formField.name),\n      required: false,\n      requiredErrorMessage: \"Please fill in required information\",\n      validate: undefined\n    };\n    return {\n      ...builtInDefaults,\n      ...formFieldDefaults,\n      ...formField\n    };\n  }, [formField, formFieldDefaults]);\n  const withPlainStrings = react.useMemo(() => {\n    // Translating the validate function is a bit tricky,\n    //  since it can be an object in both cases.\n    const validate = (() => {\n      if (typeof merged.validate === \"object\" && typeof merged.validate.translated === \"function\") {\n        if (!t) {\n          throw Error(\"If you pass in a translated validate function you need to provide a t\");\n        }\n        return merged.validate.translated(t);\n      }\n      return merged.validate;\n    })(); // This should be fine. Not sure why TS is complaining.\n    return {\n      ...merged,\n      label: translate(merged.label, t),\n      requiredErrorMessage: translate(merged.requiredErrorMessage, t),\n      validate\n    };\n  }, [merged, t, translate]);\n  return withPlainStrings;\n};\n\n/**\n * An effect that unregisters a field from the form when the component unmounts.\n *\n * @throws Error when FormContext is null.\n */\nconst useEffectFieldUnregisterOnUnmount = ({\n  name,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  /**\n   * Default options for unregistering the field.\n   *\n   * Needed to wrap this in a state in order to prevent infinite rerenders.\n   */\n  const [options] = react.useState(unregisterOptions);\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    unregister\n  } = form;\n  react.useEffect(() => {\n    return () => {\n      if (isUnregisteringOnUnmount) {\n        unregister(name, options);\n      }\n    };\n  }, [isUnregisteringOnUnmount, name, unregister, options]);\n};\n\nvar GroupLabelSorting;\n(function (GroupLabelSorting) {\n  GroupLabelSorting[\"Alphabetical\"] = \"alphabetical\";\n  GroupLabelSorting[\"GroupMemberCountAsc\"] = \"groupMemberCountAsc\";\n})(GroupLabelSorting || (GroupLabelSorting = {}));\n/**\n * Sorts option in the desired order.\n */\nconst useSortedOptionsWithGroup$1 = (selectableOptions, sorting = GroupLabelSorting.Alphabetical) => {\n  return react.useMemo(() => {\n    if (sorting === GroupLabelSorting.GroupMemberCountAsc) {\n      const groupCounts = selectableOptions.reduce((acc, option) => {\n        if (option.group) {\n          acc[option.group] = (acc[option.group] || 0) + 1;\n        }\n        return acc;\n      }, {});\n      return selectableOptions.sort((a, b) => {\n        if (a.group == undefined && !!b.group) {\n          return -1;\n        }\n        if (a.group && b.group) {\n          const groupA = groupCounts[a.group];\n          const groupB = groupCounts[b.group];\n          if (groupA && groupB && groupA < groupB) {\n            return -1;\n          } else if (groupCounts[a.group] === groupCounts[b.group]) {\n            if (b.label > a.label) {\n              return -1;\n            }\n            return 1;\n          }\n          return 1;\n        }\n        if (b.label > a.label) {\n          return -1;\n        }\n        return 1;\n      });\n    }\n    return selectableOptions.sort((a, b) => {\n      if (a.group == undefined && !!b.group) {\n        return -1;\n      }\n      if (a.group && b.group && a.group < b.group) {\n        return -1;\n      }\n      if (a.group == b.group && b.label > a.label) {\n        return 1;\n      }\n      return 0;\n    });\n  }, [selectableOptions, sorting]);\n};\n\nconst icon = /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.CheckBoxOutlineBlank, {\n  fontSize: \"small\"\n});\nconst checkedIcon = /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.CheckBox, {\n  fontSize: \"small\"\n});\nconst defaultNonMultiselectValue = \"\";\n/**\n * Renders a MUI autocomplete input that is embedded in a react hook form context.\n *\n * @throws Error when FormContext is null.\n */\nconst InputAutocomplete = ({\n  formField,\n  selectableOptions,\n  noOptions,\n  autoCompleteProps,\n  checkboxesForMultiselect: renderCheckboxes,\n  groupSorting,\n  inputTextFieldProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    register,\n    control,\n    setValue\n  } = form;\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const multiSelect = !!autoCompleteProps?.multiple;\n  const value = reactHookForm.useWatch({\n    name,\n    control,\n    exact: true\n  });\n  const {\n    value: valueToUse,\n    hasValue\n  } = react.useMemo(() => {\n    if (value) {\n      return {\n        value,\n        hasValue: true\n      };\n    }\n    return {\n      value: multiSelect ? [] : defaultNonMultiselectValue,\n      hasValue: false\n    };\n  }, [multiSelect, value]);\n  const adjustedSelectableOptions = react.useMemo(() => {\n    if (hasValue || multiSelect) {\n      return selectableOptions;\n    }\n    return [...selectableOptions, {\n      value: defaultNonMultiselectValue,\n      label: \"\"\n    }];\n  }, [hasValue, multiSelect, selectableOptions]);\n  const sortedOptions = useSortedOptionsWithGroup$1(adjustedSelectableOptions, groupSorting);\n  baseline.assertTruthy([\"string\", \"number\", \"object\"].includes(typeof valueToUse), `Value (Field: ${name}, value: ${valueToUse?.toString() || \"undefined\"}) for select input has unexpected type`);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || autoCompleteProps?.disabled;\n  const props = register(name, {\n    required: isRequired ? requiredErrorMessage : false,\n    validate,\n    disabled: isDisabled\n  });\n  const currentValue = react.useMemo(() => {\n    return multiSelect ? adjustedSelectableOptions.filter(o => {\n      if (Array.isArray(valueToUse)) {\n        return valueToUse.includes(o.value);\n      }\n      return adjustedSelectableOptions.find(option => option.value === valueToUse);\n    }) : adjustedSelectableOptions.find(option => option.value === valueToUse);\n  }, [multiSelect, adjustedSelectableOptions, valueToUse]);\n  const renderOption = react.useMemo(() => {\n    if (autoCompleteProps?.renderOption) {\n      return autoCompleteProps.renderOption;\n    }\n    return multiSelect && renderCheckboxes ? (liProps, option) => {\n      return /*#__PURE__*/jsxRuntime.jsxs(\"li\", {\n        ...liProps,\n        children: [/*#__PURE__*/jsxRuntime.jsx(material.Checkbox, {\n          icon: icon,\n          checkedIcon: checkedIcon,\n          sx: {\n            mr: 2\n          },\n          checked: Array.isArray(currentValue) ? !!currentValue.find(item => item.value === option.value) : false\n        }), option.label]\n      });\n    } : undefined;\n  }, [autoCompleteProps?.renderOption, currentValue, multiSelect, renderCheckboxes]);\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    required: isRequired,\n    disabled: isDisabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.Autocomplete, {\n      options: sortedOptions,\n      value: currentValue,\n      ...props,\n      required: isRequired,\n      label: label,\n      renderOption: renderOption,\n      multiple: multiSelect,\n      getOptionLabel: o => {\n        if (baseline.objectHasKey(o, \"label\")) {\n          return o.label;\n        }\n        return \"\";\n      },\n      onChange: (e, selectedOption) => {\n        if (Array.isArray(selectedOption)) {\n          setValue(name, selectedOption.map(o => o.value), {\n            shouldDirty: true,\n            shouldValidate: true,\n            shouldTouch: true\n          });\n        } else if (selectedOption) {\n          setValue(name, selectedOption.value, {\n            shouldDirty: true,\n            shouldValidate: true,\n            shouldTouch: true\n          });\n        }\n      },\n      noOptionsText: noOptions,\n      filterOptions: (options, {\n        inputValue\n      }) => {\n        return options.filter(o => {\n          // Filter out the default empty option\n          if (o.value === defaultNonMultiselectValue) {\n            return false;\n          }\n          // If no input, show all non-default options\n          if (!inputValue) {\n            return true;\n          }\n          // Filter based on input text (case-insensitive)\n          return o.label.toLowerCase().includes(inputValue.toLowerCase());\n        });\n      },\n      renderInput: params => {\n        return /*#__PURE__*/jsxRuntime.jsx(material.TextField, {\n          ...params,\n          label: label,\n          variant: \"outlined\",\n          ...inputTextFieldProps,\n          required: isRequired,\n          disabled: isDisabled,\n          error: hasError\n        });\n      },\n      groupBy: option => option.group || \"Choose\"\n      // need to parse this as any in order to get no typing errors\n      // for multiselect\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      ,\n      ...autoCompleteProps\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputCheckbox = ({\n  formField,\n  jsxLabel,\n  checkboxProps,\n  formControlLabelProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control,\n    setValue\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const id = `hook-form-input-checkbox-${name}`;\n  const disabled = muiFormControl?.disabled || checkboxProps?.disabled;\n  const isRequired = required || muiFormControl?.required;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    disabled: disabled,\n    required: required,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, {\n      required: jsxLabel ? false : isRequired // If jsxLabel is set, we don't want to show the asterisk.\n      ,\n      disabled: disabled,\n      label: jsxLabel ?? label,\n      sx: {\n        color: t => hasError ? t.palette.error.main : undefined\n      },\n      control: /*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n        name: name,\n        control: control,\n        rules: {\n          required: isRequired ? requiredErrorMessage : false,\n          validate\n        },\n        render: ({\n          field: {\n            value\n          }\n        }) => {\n          return /*#__PURE__*/jsxRuntime.jsx(material.Checkbox, {\n            checked: !!value,\n            \"aria-labelledby\": id,\n            onChange: (e, val) => {\n              setValue(name, val, {\n                shouldValidate: true,\n                shouldDirty: true,\n                shouldTouch: true\n              });\n            },\n            ...checkboxProps,\n            disabled: disabled\n          });\n        }\n      }),\n      ...formControlLabelProps\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputDatePicker = ({\n  formField,\n  datePickerProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const [date, setDate] = react.useState(dayjs());\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || datePickerProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsx(material.Box, {\n    children: /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n      error: hasError,\n      required: isRequired,\n      disabled: isDisabled,\n      children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n        name: name,\n        defaultValue: date,\n        control: control,\n        rules: {\n          required: isRequired ? requiredErrorMessage : false\n        },\n        render: ({\n          field: {\n            onChange,\n            ...restField\n          }\n        }) => /*#__PURE__*/jsxRuntime.jsx(xDatePickers.DatePicker, {\n          label: label,\n          onChange: event => {\n            onChange(event);\n            if (event) {\n              setDate(event);\n            }\n          },\n          disabled: isDisabled,\n          slotProps: {\n            textField: {\n              required: isRequired,\n              disabled: isDisabled,\n              error: hasError\n            }\n          },\n          ...restField,\n          ...datePickerProps\n        })\n      }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n        fieldName: formField.name\n      })]\n    })\n  });\n};\n\nconst InputDateTimePicker = ({\n  formField,\n  dateTimePickerProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const [date, setDate] = react.useState(dayjs());\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || dateTimePickerProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsx(material.Box, {\n    children: /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n      error: hasError,\n      required: isRequired,\n      disabled: isDisabled,\n      children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n        name: name,\n        defaultValue: date,\n        control: control,\n        rules: {\n          required: isRequired ? requiredErrorMessage : false\n        },\n        render: ({\n          field: {\n            onChange,\n            ...restField\n          }\n        }) => /*#__PURE__*/jsxRuntime.jsx(xDatePickers.DateTimePicker, {\n          label: label,\n          ampm: dateTimePickerProps?.ampm ? dateTimePickerProps.ampm : false,\n          onChange: event => {\n            onChange(event);\n            if (event) {\n              setDate(event);\n            }\n          },\n          disabled: isDisabled,\n          required: isRequired,\n          slotProps: {\n            textField: {\n              required: isRequired,\n              disabled: isDisabled,\n              error: hasError\n            }\n          },\n          ...restField,\n          ...dateTimePickerProps\n        })\n      }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n        fieldName: formField.name\n      })]\n    })\n  });\n};\n\nconst InputNumber = ({\n  formField,\n  textFieldProps,\n  numericFormatProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  const {\n    control\n  } = form;\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const hasError = useFormFieldHasError(formField.name);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || textFieldProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    required: required,\n    disabled: isDisabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: props => {\n        const {\n          ref,\n          ...rest\n        } = props.field;\n        return (\n          /*#__PURE__*/\n          // @ts-expect-error TextFieldProps is not compatible with NumberFormatBaseProps\n          jsxRuntime.jsx(reactNumberFormat.NumericFormat, {\n            ...rest,\n            customInput: material.TextField,\n            onValueChange: target => {\n              rest.onChange(target.value);\n            },\n            label: label,\n            onChange: undefined,\n            onBlur: props.field.onBlur,\n            error: !!props.fieldState.error,\n            ...textFieldProps,\n            ...numericFormatProps,\n            disabled: isDisabled,\n            required: isRequired\n          })\n        );\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputOutlinedInput = ({\n  formField,\n  outlinedInputProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    control\n  } = form;\n  const hasError = useFormFieldHasError(formField.name);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || outlinedInputProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    required: required,\n    disabled: muiFormControl?.disabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.InputLabel, {\n      required: isRequired,\n      disabled: isDisabled,\n      children: label\n    }), /*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: ({\n        field: {\n          value,\n          onBlur,\n          onChange\n        }\n      }) => {\n        return /*#__PURE__*/jsxRuntime.jsx(material.OutlinedInput, {\n          value: value,\n          onChange: onChange,\n          onBlur: onBlur,\n          label: label,\n          ...outlinedInputProps,\n          required: isRequired,\n          disabled: isDisabled\n        });\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputRadio = ({\n  formField,\n  selectableOptions,\n  formControlLabelProps,\n  radioGroupProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const id = `hook-form-input-radio-${name}`;\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || formControlLabelProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    disabled: muiFormControl?.disabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.FormLabel, {\n      id: id,\n      required: isRequired,\n      disabled: isDisabled,\n      error: hasError,\n      sx: {\n        color: t => hasError ? t.palette.error.main : undefined\n      },\n      children: label\n    }), /*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: ({\n        field: {\n          onChange,\n          value,\n          onBlur\n        }\n      }) => {\n        return /*#__PURE__*/jsxRuntime.jsx(material.RadioGroup, {\n          value: value,\n          \"aria-labelledby\": id,\n          onChange: onChange,\n          onBlur: onBlur,\n          ...radioGroupProps,\n          children: selectableOptions?.map(option => {\n            return /*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, {\n              value: option.value,\n              control: /*#__PURE__*/jsxRuntime.jsx(material.Radio, {}),\n              label: option.label,\n              ...formControlLabelProps,\n              disabled: isDisabled\n            }, typeof option.value === \"boolean\" ? option.value.toString() : option.value);\n          })\n        });\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\n/**\n * Sorts the options by group and value.\n */\nconst useSortedOptionsWithGroup = selectableOptions => {\n  return react.useMemo(() => selectableOptions.sort((a, b) => {\n    if (a.group == undefined && !!b.group) {\n      return -1;\n    }\n    if (a.group && b.group && a.group < b.group) {\n      return -1;\n    }\n    if (a.group == b.group && b.value > a.value) {\n      return 1;\n    }\n    return 0;\n  }), [selectableOptions]);\n};\n\nconst InputSelect = ({\n  formField,\n  selectableOptions,\n  optionsTitle,\n  selectComponentProps,\n  tooltipHolder,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    control\n  } = form;\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const defaultValue = react.useMemo(() => selectComponentProps?.multiple ? [] : \"\", [selectComponentProps?.multiple]);\n  const id = `input-select-${name}`;\n  const adjustedOptions = react.useMemo(() => selectComponentProps?.multiple || Array.isArray(defaultValue) ? selectableOptions : [...selectableOptions, {\n    value: defaultValue,\n    label: \"\"\n  }], [defaultValue, selectComponentProps?.multiple, selectableOptions]);\n  const sortedOptions = useSortedOptionsWithGroup(adjustedOptions);\n  const hasErrors = useFormFieldHasError(formField.name);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || selectComponentProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasErrors,\n    required: isRequired,\n    disabled: isDisabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.InputLabel, {\n      id: id,\n      required: isRequired,\n      disabled: isDisabled,\n      error: hasErrors,\n      children: label\n    }), /*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: ({\n        field: {\n          onChange,\n          onBlur,\n          value\n        },\n        fieldState: {\n          error\n        }\n      }) => {\n        const valueToUse = value || defaultValue;\n        return /*#__PURE__*/jsxRuntime.jsxs(material.Select, {\n          labelId: id,\n          ...selectComponentProps,\n          label: label,\n          value: valueToUse,\n          error: !!error,\n          onChange: onChange,\n          onBlur: onBlur,\n          disabled: isDisabled,\n          required: isRequired,\n          children: [optionsTitle && /*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {\n            value: defaultValue,\n            disabled: true,\n            children: /*#__PURE__*/jsxRuntime.jsx(\"em\", {\n              children: optionsTitle\n            })\n          }), sortedOptions?.filter(o => o.value !== \"\").map((option, index) => {\n            const optionBefore = sortedOptions[index - 1];\n            const showGroup = (optionBefore || index == 0) && option.group && optionBefore?.group !== option.group;\n            const disabledText = typeof option.disabled === \"string\" ? option.disabled : undefined;\n            const isDisabledToUse = !!disabledText || !!option.disabled || isDisabled;\n            const menuItem = /*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {\n              value: typeof option.value === \"boolean\" ? option.value.toString() : option.value,\n              disabled: isDisabledToUse,\n              title: typeof option.disabled === \"string\" ? option.disabled : undefined,\n              selected: typeof option.value === \"boolean\" ? option.value.toString() === value : value === option.value,\n              children: /*#__PURE__*/jsxRuntime.jsx(material.Typography, {\n                dangerouslySetInnerHTML: {\n                  __html: option.label\n                }\n              })\n            }, option.label);\n            const wrappedMenuItem = disabledText ? /*#__PURE__*/jsxRuntime.jsxs(material.Box, {\n              sx: {\n                position: \"relative\"\n              },\n              children: [menuItem, /*#__PURE__*/jsxRuntime.jsx(material.Stack, {\n                direction: \"column\",\n                justifyContent: \"center\",\n                spacing: 1,\n                sx: {\n                  position: \"absolute\",\n                  right: th => th.spacing(0.5),\n                  top: 0,\n                  bottom: 0\n                },\n                children: tooltipHolder ? /*#__PURE__*/jsxRuntime.jsx(material.Tooltip, {\n                  title: disabledText,\n                  children: tooltipHolder\n                }) : null\n              })]\n            }) : menuItem;\n            return showGroup ? [/*#__PURE__*/jsxRuntime.jsx(material.ListSubheader, {\n              children: option.group\n            }, option.group), wrappedMenuItem] : wrappedMenuItem;\n          })]\n        });\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputSelectFromEnum = props => {\n  const {\n    enumData,\n    formField\n  } = props;\n  const translateFunction = formField.t;\n  const options = react.useMemo(() => {\n    return Object.entries(enumData.enumToUse).map(([key, value]) => {\n      const label = enumData.labelsForEnum[key];\n      baseline.assertTruthy(label, \"Could not find a label for value: \" + value + \" in Field \" + formField.name);\n      if (typeof label === \"string\") {\n        return {\n          label,\n          value\n        };\n      }\n      baseline.assertTruthy(translateFunction, `If you want to use translated labels for field (name: ${formField.name}) you need to provide a translate function in the HookFormProvider.`);\n      return {\n        label: label(translateFunction),\n        value\n      };\n    }).filter(option => {\n      if (props.limitOptions) {\n        return props.limitOptions.includes(option.value);\n      }\n      return true;\n    });\n  }, [enumData.enumToUse, enumData.labelsForEnum, formField.name, translateFunction, props.limitOptions]);\n  return /*#__PURE__*/jsxRuntime.jsx(InputSelect, {\n    ...props,\n    selectableOptions: options,\n    formField: formField\n  });\n};\n\nconst InputSlider = ({\n  formField,\n  sliderProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const {\n    control\n  } = form;\n  const hasError = useFormFieldHasError(formField.name);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || sliderProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    required: isRequired,\n    disabled: isDisabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      defaultValue: 0,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: ({\n        field: {\n          onChange,\n          value,\n          onBlur\n        }\n      }) => {\n        return /*#__PURE__*/jsxRuntime.jsx(material.Slider, {\n          value: value || 0,\n          onChange: onChange,\n          onBlur: onBlur,\n          required: isRequired,\n          label: label,\n          component: sliderProps?.component || \"span\",\n          max: typeof sliderProps?.max === \"number\" ? sliderProps.max : undefined,\n          min: typeof sliderProps?.min === \"number\" ? sliderProps.min : undefined,\n          ...sliderProps,\n          disabled: isDisabled\n        });\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: name\n    })]\n  });\n};\n\nconst InputSwitch = ({\n  formField,\n  switchProps,\n  formControlLabelProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control,\n    setValue\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || switchProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    disabled: isDisabled,\n    required: isRequired,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, {\n      label: formField.label,\n      disabled: isDisabled,\n      required: isRequired,\n      sx: {\n        color: t => hasError ? t.palette.error.main : undefined\n      },\n      control: /*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n        name: name,\n        control: control,\n        rules: {\n          required: isRequired ? requiredErrorMessage : false,\n          validate\n        },\n        render: ({\n          field: {\n            value\n          }\n        }) => {\n          return /*#__PURE__*/jsxRuntime.jsx(material.Switch, {\n            checked: !!value,\n            onChange: (e, val) => {\n              setValue(name, val, {\n                shouldValidate: true,\n                shouldDirty: true,\n                shouldTouch: true\n              });\n            },\n            ...switchProps\n          });\n        }\n      }),\n      ...formControlLabelProps\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputTextField = ({\n  formField,\n  textFieldProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const form = useHookFormContext();\n  const {\n    control\n  } = form;\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField, formField.t);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  if (!form) {\n    throw Error(formContextNull);\n  }\n  const hasError = useFormFieldHasError(formField.name);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || textFieldProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    required: isRequired,\n    disabled: isDisabled,\n    children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n      name: name,\n      control: control,\n      rules: {\n        required: isRequired ? requiredErrorMessage : false,\n        validate\n      },\n      render: ({\n        field: {\n          onChange,\n          value\n        },\n        fieldState: {\n          error\n        }\n      }) => {\n        return /*#__PURE__*/jsxRuntime.jsx(material.TextField, {\n          error: !!error,\n          onChange: onChange,\n          value: value,\n          label: label,\n          ...textFieldProps,\n          required: isRequired,\n          disabled: isDisabled\n        });\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst InputTimePicker = ({\n  formField,\n  timePickerProps,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    control\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    label,\n    name,\n    required,\n    requiredErrorMessage\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const [date, setDate] = react.useState(dayjs());\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || timePickerProps?.disabled;\n  return /*#__PURE__*/jsxRuntime.jsx(material.Box, {\n    children: /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n      error: hasError,\n      required: isRequired,\n      disabled: isDisabled,\n      children: [/*#__PURE__*/jsxRuntime.jsx(reactHookForm.Controller, {\n        name: name,\n        defaultValue: date,\n        control: control,\n        rules: {\n          required: isRequired ? requiredErrorMessage : false\n        },\n        render: ({\n          field: {\n            onChange,\n            ...restField\n          }\n        }) => /*#__PURE__*/jsxRuntime.jsx(xDatePickers.TimePicker, {\n          label: label,\n          onChange: event => {\n            onChange(event);\n            if (event) {\n              setDate(event);\n            }\n          },\n          disabled: isDisabled,\n          required: isRequired,\n          slotProps: {\n            textField: {\n              required: isRequired,\n              disabled: isDisabled,\n              error: hasError\n            }\n          },\n          ...restField,\n          ...timePickerProps\n        })\n      }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n        fieldName: formField.name\n      })]\n    })\n  });\n};\n\nconst InputToggleButton = ({\n  formField,\n  toggleButtonProps,\n  formControlLabelProps,\n  children,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    register,\n    control,\n    setValue\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const id = `hook-form-input-toggle-button-${name}`;\n  const valueToUse = !!reactHookForm.useWatch({\n    name: name,\n    control: control,\n    exact: true\n  });\n  baseline.assertTruthy(typeof valueToUse === \"boolean\", `Value (Field: ${name}, value: ${valueToUse?.toString() || \"undefined\"}) for a InputToggleButton should be undefined or boolean`);\n  const onClick = react.useCallback(\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  e => {\n    setValue(name, !valueToUse, {\n      shouldValidate: true,\n      shouldDirty: true,\n      shouldTouch: true\n    });\n  }, [name, setValue, valueToUse]);\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || toggleButtonProps?.disabled;\n  const registered = register(name, {\n    required: isRequired ? requiredErrorMessage : false,\n    validate,\n    disabled: muiFormControl?.disabled\n  });\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    disabled: isDisabled,\n    required: isRequired,\n    children: [/*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, {\n      required: isRequired,\n      label: formField.label,\n      labelPlacement: \"top\",\n      disabled: isDisabled,\n      control: /*#__PURE__*/jsxRuntime.jsx(material.ToggleButton, {\n        value: valueToUse,\n        selected: valueToUse,\n        \"aria-labelledby\": id,\n        onClick: onClick,\n        ...registered,\n        ...toggleButtonProps,\n        children: children\n      }),\n      sx: {\n        alignItems: \"flex-start\",\n        ml: 0,\n        color: t => hasError ? t.palette.error.main : undefined,\n        ...formControlLabelProps?.sx\n      },\n      ...formControlLabelProps\n    }), /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\nconst InputToggleButtonGroup = ({\n  formField,\n  toggleButtonGroupProps,\n  stackProps,\n  typographyProps,\n  buttons,\n  enforceValueSelected = false,\n  unregisterOptions,\n  isUnregisteringOnUnmount\n}) => {\n  const {\n    register,\n    setValue,\n    control\n  } = useHookFormContext();\n  const hasError = useFormFieldHasError(formField.name);\n  const muiFormControl = material.useFormControl();\n  const {\n    name,\n    required,\n    requiredErrorMessage,\n    validate\n  } = useMergedFormField(formField);\n  useEffectFieldUnregisterOnUnmount({\n    name,\n    unregisterOptions,\n    isUnregisteringOnUnmount\n  });\n  const changeEv = react.useCallback((_, value) => {\n    const onSetValue = () => setValue(name, value, {\n      shouldValidate: true,\n      shouldDirty: true,\n      shouldTouch: true\n    });\n    if (enforceValueSelected) {\n      if (toggleButtonGroupProps?.exclusive === true && value !== null) {\n        onSetValue();\n      } else if (toggleButtonGroupProps?.exclusive === false || toggleButtonGroupProps?.exclusive === undefined && value?.length) {\n        onSetValue();\n      }\n    } else {\n      onSetValue();\n    }\n  }, [enforceValueSelected, name, setValue, toggleButtonGroupProps?.exclusive]);\n  const id = `hook-form-input-toggle-button-group-${name}`;\n  const registered = register(name, {\n    required: required ? requiredErrorMessage : false,\n    validate,\n    disabled: muiFormControl?.disabled\n  });\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n  const valueFromForm = reactHookForm.useWatch({\n    name: name,\n    control: control,\n    exact: true\n  });\n  const isRequired = required || muiFormControl?.required;\n  const isDisabled = muiFormControl?.disabled || toggleButtonGroupProps?.disabled;\n  const toggleButtonGroup = /*#__PURE__*/jsxRuntime.jsx(material.ToggleButtonGroup, {\n    ...registered,\n    ...toggleButtonGroupProps,\n    onChange: changeEv\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    ,\n    value: valueFromForm,\n    children: buttons.map((button, i) => /*#__PURE__*/jsxRuntime.jsx(material.ToggleButton\n    // eslint-disable-next-line react/no-array-index-key\n    , {\n      value: button.value,\n      \"aria-labelledby\": id,\n      ...button.toggleButtonProps,\n      disabled: isDisabled,\n      children: button.icon\n    }, `${button.value.toString()}-${i}`))\n  });\n  const label = /*#__PURE__*/jsxRuntime.jsx(material.Typography, {\n    component: \"span\",\n    ...typographyProps,\n    sx: {\n      color: t => {\n        if (hasError) {\n          return t.palette.error.main;\n        }\n        return isDisabled ? t.palette.text.disabled : undefined;\n      }\n    },\n    children: formField.label\n  });\n  return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {\n    error: hasError,\n    disabled: isDisabled,\n    required: isRequired,\n    children: [formField.label ? /*#__PURE__*/jsxRuntime.jsxs(material.Stack, {\n      ...stackProps,\n      children: [isRequired ? /*#__PURE__*/jsxRuntime.jsxs(material.Stack, {\n        id: id,\n        component: \"label\",\n        sx: {\n          display: \"block\"\n        },\n        children: [label, /*#__PURE__*/jsxRuntime.jsxs(material.Box, {\n          component: \"span\",\n          \"aria-hidden\": true,\n          sx: {\n            color: hasError ? t => t.palette.error.main : undefined\n          },\n          children: [\"\\u2009\", \"*\"]\n        })]\n      }) : label, toggleButtonGroup]\n    }) : toggleButtonGroup, /*#__PURE__*/jsxRuntime.jsx(FormFieldError, {\n      fieldName: formField.name\n    })]\n  });\n};\n\n/**\n * Turn an async submitHandler into a synchronous one.\n *\n * Reasoning:\n * - we're often talking to the API during form submission. The onSubmit handler will be returning a Promise in this case.\n * - the `form` element, per definition, always expects a synchronous function.\n * - creating on inline function in every form is a bit clumsy, and does not look clean.\n *\n * Then/catch cases should be properly handled by the submit handler itself,\n *  the catch supplied here is only a last safety net against an \"unhandled promise rejection\" error.\n */\nconst syncSubmit = asyncSubmitHandler => {\n  return e => {\n    asyncSubmitHandler(e).catch(baseline.rethrow);\n  };\n};\n\n/**\n * Wrapper around react-hook-form's useForm.\n *\n * Should behave like the original function, only exposing a \"fieldName\"\n *  function on top which is used to validate field names.\n */\nconst useHookForm = props => {\n  const form = reactHookForm.useForm(props);\n  return {\n    ...form,\n    fieldName: lodashEs.identity\n  };\n};\nconst useHookFormFieldArray = reactHookForm.useFieldArray;\n\n/**\n * Reexport of FormProvider.\n *\n * This became necessary as context is not available when the FormProvider is initialized outside of the package. Most likely this is some kind of instance mismatch.\n */\nconst HookFormProvider = reactHookForm.FormProvider;\n\nconst InputEmail = props => {\n  const merged = useMergedFormField(props.formField, props.formField.t, formDefaults);\n  const commonProps = react.useMemo(() => ({\n    textFieldProps: {\n      type: \"email\",\n      autoComplete: \"email\",\n      ...props.textFieldProps\n    },\n    formField: merged\n  }), [merged, props.textFieldProps]);\n  return props.isUnregisteringOnUnmount ? /*#__PURE__*/jsxRuntime.jsx(InputTextField, {\n    ...commonProps,\n    isUnregisteringOnUnmount: props.isUnregisteringOnUnmount,\n    unregisterOptions: props.unregisterOptions\n  }) : /*#__PURE__*/jsxRuntime.jsx(InputTextField, {\n    ...commonProps,\n    isUnregisteringOnUnmount: props.isUnregisteringOnUnmount\n  });\n};\nconst formDefaults = {\n  required: true,\n  validate: emailInput => {\n    if (emailInput && emailInput.match(/.@./)) {\n      return true;\n    }\n    return \"E-Mail address invalid\";\n  }\n};\n\nconst InputPasswordSet = ({\n  passwordField,\n  passwordValidationField,\n  doNotMatchError,\n  passwordValidationTextFieldProps,\n  passwordTextFieldProps\n}) => {\n  const {\n    watch\n  } = useHookFormContext();\n  const passwordFieldMerged = useMergedFormField(passwordField, passwordField.t, {\n    required: true\n  });\n  const validationFieldMerged = useMergedFormField(passwordValidationField, passwordValidationField.t, {\n    required: true\n  });\n  const validatePasswordMatch = react.useCallback(value => {\n    const passwordValue = watch(passwordFieldMerged.name);\n    return value === passwordValue || doNotMatchError;\n  }, [doNotMatchError, passwordFieldMerged.name, watch]);\n  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {\n    children: [/*#__PURE__*/jsxRuntime.jsx(InputTextField, {\n      formField: passwordFieldMerged,\n      textFieldProps: {\n        type: \"password\",\n        autoComplete: \"new-password\",\n        ...passwordTextFieldProps\n      }\n    }), /*#__PURE__*/jsxRuntime.jsx(InputTextField, {\n      formField: {\n        ...validationFieldMerged,\n        validate: validatePasswordMatch,\n        t: passwordValidationField.t\n      },\n      textFieldProps: {\n        type: \"password\",\n        autoComplete: \"new-password\",\n        ...passwordValidationTextFieldProps\n      }\n    })]\n  });\n};\n\nexports.LoadingButtonState = void 0;\n(function (LoadingButtonState) {\n  LoadingButtonState[\"Idle\"] = \"idle\";\n  LoadingButtonState[\"Loading\"] = \"loading\";\n  LoadingButtonState[\"Success\"] = \"success\";\n})(exports.LoadingButtonState || (exports.LoadingButtonState = {}));\n\nconst LoadingButton = ({\n  buttonText,\n  buttonTextSuccess,\n  loadingButtonProps,\n  loadingButtonPropsPropsSuccess,\n  buttonState,\n  successIcon\n}) => {\n  const isSuccess = buttonState === exports.LoadingButtonState.Success;\n  const propsToSpread = isSuccess ? loadingButtonPropsPropsSuccess : loadingButtonProps;\n  return /*#__PURE__*/jsxRuntime.jsx(lab.LoadingButton, {\n    loading: buttonState === exports.LoadingButtonState.Loading,\n    disabled: buttonState !== exports.LoadingButtonState.Idle,\n    ...propsToSpread,\n    children: buttonState === exports.LoadingButtonState.Success ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {\n      children: [successIcon ? successIcon : null, buttonTextSuccess ? buttonTextSuccess : buttonText]\n    }) : buttonText\n  });\n};\n\n/**\n * Get loading button state from react-query mutation status.\n */\nconst loadingButtonStateFromReactQueryMutationStatus = mutationStatus => {\n  const mapStatus = {\n    idle: exports.LoadingButtonState.Idle,\n    error: exports.LoadingButtonState.Idle,\n    success: exports.LoadingButtonState.Success,\n    loading: exports.LoadingButtonState.Loading\n  };\n  return mapStatus[mutationStatus];\n};\n/**\n * Get loading button state from a react-hook-form context.\n */\nconst useLoadingButtonStateFromFormContext = () => {\n  const formContext = useHookFormContext();\n  return loadingButtonStateFromFormState(formContext.formState);\n};\n/**\n * Get loading button state from a react-hook-form state.\n */\nconst loadingButtonStateFromFormState = (\n// we are not interested in the value types FormState holds\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nformState) => {\n  if (formState.isSubmitting) {\n    return exports.LoadingButtonState.Loading;\n  }\n  if (formState.isDirty) {\n    return exports.LoadingButtonState.Idle;\n  }\n  if (formState.isSubmitSuccessful) {\n    return exports.LoadingButtonState.Success;\n  }\n  return exports.LoadingButtonState.Idle;\n};\n\nexports.FormFieldError = FormFieldError;\nexports.FormFieldErrorDisplay = FormFieldErrorDisplay;\nexports.HookFormProvider = HookFormProvider;\nexports.InputAutocomplete = InputAutocomplete;\nexports.InputCheckbox = InputCheckbox;\nexports.InputDatePicker = InputDatePicker;\nexports.InputDateTimePicker = InputDateTimePicker;\nexports.InputEmail = InputEmail;\nexports.InputNumber = InputNumber;\nexports.InputOutlinedInput = InputOutlinedInput;\nexports.InputPasswordSet = InputPasswordSet;\nexports.InputRadio = InputRadio;\nexports.InputSelect = InputSelect;\nexports.InputSelectFromEnum = InputSelectFromEnum;\nexports.InputSlider = InputSlider;\nexports.InputSwitch = InputSwitch;\nexports.InputText = InputOutlinedInput;\nexports.InputTextField = InputTextField;\nexports.InputTimePicker = InputTimePicker;\nexports.InputToggleButton = InputToggleButton;\nexports.InputToggleButtonGroup = InputToggleButtonGroup;\nexports.LoadingButton = LoadingButton;\nexports.getFormErrorForNestedKeys = getFormErrorForNestedKeys;\nexports.loadingButtonStateFromFormState = loadingButtonStateFromFormState;\nexports.loadingButtonStateFromReactQueryMutationStatus = loadingButtonStateFromReactQueryMutationStatus;\nexports.syncSubmit = syncSubmit;\nexports.useFormFieldError = useFormFieldError;\nexports.useFormFieldHasError = useFormFieldHasError;\nexports.useHookForm = useHookForm;\nexports.useHookFormContext = useHookFormContext;\nexports.useHookFormFieldArray = useHookFormFieldArray;\nexports.useLoadingButtonStateFromFormContext = useLoadingButtonStateFromFormContext;\nexports.useMergedFormField = useMergedFormField;\nexports.useSortedOptionsWithGroup = useSortedOptionsWithGroup;\nexports.useTranslateString = useTranslateString;\n\n"]}