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BC,SAAU,CACvE1L,MAAOuK,GACNlJ,GAEe,gBAAoBoK,EAAA,EAAuBC,SAAU,CACvE1L,MAAOuK,GACO,gBAAoBe,EAAWhO,EAAO+D,GACxD,EACO0I,CACT,CA1EmC,CA0EjC,aACFA,EAAgB4B,UAoDZ,CAAC,EACL5B,EAAgB6B,aArJG,CACjBL,UAAW,MACXC,aAAc,SAAsB3D,GAClC,OAAOA,CACT,GAkJF,O,uCClKA,IAAe,gBAAoB,K","sources":["components/Checkbox/Checkbox.styled.ts","components/Checkbox/Checkbox.tsx","types/EpiElementDependency.ts","utils/evaluteVisibilityFromDependencies.ts","utils/generateValidationRules.ts","../node_modules/react-transition-group/esm/utils/ChildMapping.js","../node_modules/react-transition-group/esm/TransitionGroup.js","../node_modules/react-transition-group/esm/TransitionGroupContext.js"],"sourcesContent":["import {\n FormHelperText,\n Checkbox,\n FormControl,\n FormControlLabel,\n FormGroup,\n FormLabel,\n} from \"@mui/material\";\nimport { styled, css } from \"styled-components\";\nimport theme from \"styled-theming\";\n\nimport Icon from \"components/Icon\";\nimport {\n styleBodyL,\n styleBodyM,\n styleBodyS,\n styleLabelM,\n} from \"style/components/Typography\";\nimport { MQ } from \"style/mediaQueries\";\n\nconst labelColor = theme(\"theme\", {\n undefined: \"--text-on-neutral-secondary\",\n lightgray: \"--text-on-neutral-secondary\",\n blue: \"--text-on-blue-secondary\",\n cyan: \"--text-on-cyan-secondary\",\n black: \"--text-on-blue-secondary\",\n});\n\nconst disabledColor = theme(\"theme\", {\n undefined: \"--text-on-neutral-disabled\",\n lightgray: \"--text-on-neutral-disabled\",\n blue: \"--text-on-blue-disabled\",\n cyan: \"--text-on-cyan-disabled\",\n black: \"--text-on-blue-disabled\",\n});\n\nconst textColor = theme(\"theme\", {\n undefined: \"--text-on-neutral-primary\",\n lightgray: \"--text-on-neutral-primary\",\n blue: \"--text-on-blue-primary\",\n cyan: \"--text-on-cyan-primary\",\n black: \"--text-on-blue-primary\",\n});\n\nconst markedColor = theme(\"theme\", {\n undefined: \"--icon-on-neutral-primary\",\n lightgray: \"--icon-on-neutral-primary\",\n blue: \"--icon-on-blue-primary\",\n cyan: \"--icon-on-cyan-primary\",\n black: \"--icon-on-blue-primary\",\n});\n\nconst borderHover = theme(\"theme\", {\n undefined: \"--field-on-neutral-hover-border\",\n lightgray: \"--field-on-neutral-hover-border\",\n blue: \"--field-on-blue-hover-border\",\n cyan: \"--field-on-cyan-hover-border\",\n black: \"--field-on-blue-hover-border\",\n});\n\nconst borderColor = theme(\"theme\", {\n undefined: \"--field-on-neutral-default-border\",\n lightgray: \"--field-on-neutral-default-border\",\n blue: \"--field-on-blue-default-border\",\n cyan: \"--field-on-cyan-default-border\",\n black: \"--field-on-blue-default-border\",\n});\n\nconst borderDisabledColor = theme(\"theme\", {\n undefined: \"--field-on-neutral-disabled-border\",\n lightgray: \"--field-on-neutral-disabled-border\",\n blue: \"--field-on-blue-disabled-border\",\n cyan: \"--field-on-cyan-disabled-border\",\n black: \"--field-on-blue-disabled-border\",\n});\n\nconst borderError = theme(\"theme\", {\n undefined: \"--field-on-neutral-error-border\",\n lightgray: \"--field-on-neutral-error-border\",\n blue: \"--field-on-blue-error-border\",\n cyan: \"--field-on-cyan-error-border\",\n black: \"--field-on-blue-error-border\",\n});\n\nexport const Wrapper = styled(FormControl)`\n && {\n grid-column: col-start 1 / span 2;\n margin-top: 0.875rem;\n width: 100%;\n\n ${MQ.FROM_M} {\n margin-top: 1.3125rem;\n grid-column: ${theme(\"displayOption\", {\n Full: \"auto / span 6\",\n Half: \"auto / span 3\",\n OneThird: \"auto / span 2\",\n TwoThirds: \"auto / span 4\",\n })};\n }\n\n ${MQ.FROM_XL} {\n margin-top: 1.75rem;\n }\n\n &:first-child {\n margin-top: 0;\n }\n }\n`;\n\nexport const Label = styled(FormLabel)`\n && {\n ${styleLabelM}\n color: var(${textColor});\n margin-bottom: 1.75rem;\n\n &.Mui-focused {\n color: var(${textColor});\n }\n }\n`;\n\nexport const CheckboxItems = styled(FormGroup)`\n && {\n row-gap: 1.3125rem;\n }\n`;\n\nexport const IconWrapper = styled.div`\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: 0.4375rem;\n`;\n\nexport const CheckboxIcon = styled.div.attrs<{\n $checked: boolean;\n $error: boolean;\n}>(() => ({}))`\n border: 0.0625rem solid var(${borderColor});\n border-radius: 0.25rem;\n display: block;\n height: 1.75rem;\n position: relative;\n transition: border-color 0.2s ease-in-out;\n width: 1.75rem;\n\n ${MQ.FROM_XL} {\n height: ${theme(\"size\", {\n small: \"1.75rem\",\n medium: \"2.1875rem\",\n })};\n width: ${theme(\"size\", {\n small: \"1.75rem\",\n medium: \"2.1875rem\",\n })};\n }\n\n &::before,\n &::after {\n background: transparent;\n border-radius: 0.1875rem;\n content: \"\";\n display: none;\n position: absolute;\n }\n\n &::before {\n background: var(${markedColor});\n transition: inset 0.1s ease-in-out;\n }\n\n ${(props) =>\n props.$error &&\n css`\n border-color: var(${borderError});\n `}\n\n ${(props) =>\n props.$checked &&\n css`\n &::before {\n display: block;\n inset: 0.4375rem;\n }\n `}\n`;\n\nexport const ErrorIcon = styled(Icon)`\n color: var(${borderError});\n`;\n\nexport const CheckboxLabel = styled(FormControlLabel)`\n && {\n align-items: flex-start;\n margin-left: 0;\n\n .MuiFormControlLabel-label {\n ${theme(\"size\", {\n small: styleBodyM,\n medium: styleBodyL,\n })};\n color: var(${textColor});\n\n &.Mui-disabled {\n color: var(${disabledColor});\n }\n }\n\n &:hover:not(.Mui-disabled) {\n ${CheckboxIcon} {\n border-color: var(${borderHover});\n\n &::before {\n border-radius: 0.125rem;\n display: block;\n inset: 0.6875rem;\n\n ${MQ.FROM_XL} {\n inset: ${theme(\"size\", {\n small: \"0.6875rem\",\n medium: \"0.875rem\",\n })};\n }\n\n ${(props) =>\n props.checked &&\n css`\n border-radius: 0.125rem;\n inset: 0.5625rem;\n\n ${MQ.FROM_XL} {\n border-radius: ${theme(\"size\", {\n small: \"0.125rem\",\n medium: \"0.1875rem\",\n })};\n inset: 0.5625rem;\n }\n `}\n }\n }\n }\n }\n`;\n\nexport const CheckboxControl = styled(Checkbox)`\n && {\n margin-right: 0.875rem;\n padding: 0;\n\n &:has(> input:focus) {\n ${CheckboxIcon} {\n border-color: var(${borderHover});\n box-shadow: 0 0 0 0.4375rem var(--field-focus);\n }\n }\n\n &:hover {\n background: none;\n }\n\n &.Mui-disabled {\n ${CheckboxIcon} {\n border-color: var(${borderDisabledColor});\n\n &::before {\n background-color: var(${disabledColor});\n }\n }\n }\n\n &.Mui-error {\n ${CheckboxIcon} {\n border-color: var(${borderError});\n\n &::before {\n background-color: var(${borderError});\n }\n }\n }\n }\n`;\n\nexport const Description = styled(FormHelperText)`\n && {\n ${theme(\"size\", {\n small: styleBodyS,\n medium: styleBodyM,\n })};\n color: var(${labelColor});\n letter-spacing: normal;\n margin-left: 0;\n\n &.Mui-disabled {\n color: var(${disabledColor});\n }\n }\n`;\n\nexport const HelperText = styled(FormHelperText)`\n && {\n ${theme(\"size\", {\n small: styleBodyS,\n medium: styleBodyM,\n })};\n color: var(${labelColor});\n letter-spacing: normal;\n margin: 0;\n text-transform: none;\n\n &.Mui-disabled {\n color: var(${disabledColor});\n }\n }\n`;\n","import {\n ThemeProvider as MuiThemeProvider,\n createTheme,\n} from \"@mui/material/styles\";\nimport classNames from \"classnames\";\nimport React, {\n ReactElement,\n SyntheticEvent,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport { Controller, useFormContext } from \"react-hook-form\";\nimport { ThemeProvider } from \"styled-components\";\n\nimport ChoiceElementProps from \"components/ChoiceElement/ChoiceElementProps\";\nimport evaluteVisibilityFromDependencies from \"utils/evaluteVisibilityFromDependencies\";\nimport generateValidationRules from \"utils/generateValidationRules\";\n\nimport {\n Wrapper,\n Label,\n CheckboxItems,\n CheckboxLabel,\n CheckboxControl,\n CheckboxIcon,\n HelperText,\n Description,\n ErrorIcon,\n IconWrapper,\n} from \"./Checkbox.styled\";\n\nconst Checkbox = ({\n label,\n id,\n identifier,\n elementName,\n description,\n items,\n displayOption = \"Full\",\n disabled = false,\n className,\n validators,\n dependencies,\n control,\n size = \"medium\",\n setValue,\n onFocus,\n}: ChoiceElementProps): ReactElement => {\n const formContext = useFormContext(); // retrieve those props\n const unregister = formContext?.unregister || undefined;\n\n const defaultValue = useMemo(\n () =>\n (items &&\n items.length > 0 &&\n items\n .filter((item) => item.checked && item.checked === true)\n ?.map((item) => item.value)) ||\n [],\n [items],\n );\n const [values, setValues] = useState(defaultValue);\n\n const classes = classNames(\n className,\n validators?.map((validator) => {\n return validator?.model?.validationCssClass || \"\";\n }),\n );\n\n const rules =\n validators && validators?.length > 0\n ? generateValidationRules(validators)\n : undefined;\n\n const visibleFromDependencies =\n dependencies && control\n ? evaluteVisibilityFromDependencies(dependencies, control)\n : true;\n\n const handleFocus = useCallback(\n (event: React.FocusEvent) => {\n if (onFocus) onFocus(event);\n },\n [onFocus],\n );\n\n const handleChange = (\n event: SyntheticEvent,\n callback: (...event: any[]) => void, // eslint-disable-line @typescript-eslint/no-explicit-any\n ) => {\n const target = event.target as HTMLInputElement;\n let newValues = typeof values === \"string\" ? [values] : [...values];\n\n if (target.checked && !newValues.includes(target.value))\n newValues.push(target.value);\n else\n newValues = newValues.filter(\n (newValue) => newValue !== target.value,\n );\n\n callback(newValues);\n setValues(newValues);\n };\n\n useEffect(() => {\n if (elementName && setValue && unregister)\n if (visibleFromDependencies) {\n setValue(elementName, defaultValue);\n setValues(defaultValue);\n } else {\n unregister(elementName);\n setValues([]);\n }\n }, [\n defaultValue,\n elementName,\n setValue,\n unregister,\n visibleFromDependencies,\n ]);\n\n const checkBoxIcon = (checked: boolean, error: boolean): JSX.Element => (\n \n {error && }\n \n \n );\n\n return (\n \n \n {visibleFromDependencies && (\n \n {(label || description) && (\n \n )}\n\n {\n return (\n <>\n \n {items?.map((item, index) => {\n return (\n \n \n {\n item.caption\n }\n {item.description && (\n \n {\n item.description\n }\n \n )}\n \n }\n disabled={\n item.disabled ||\n disabled\n }\n onChange={(event) =>\n handleChange(\n event,\n onChange,\n )\n }\n control={\n \n }\n />\n \n );\n })}\n \n \n );\n }}\n />\n \n )}\n \n \n );\n};\n\nexport default React.memo(Checkbox);\n","export default interface EpiElementDependency {\n action?: {\n displayName?: string;\n name?: string;\n order?: number;\n clientsideAction?: EpiDependencyAction;\n };\n conditionCombination?: EpiConditionCombination;\n conditions: EpiCondition[];\n}\n\nexport interface EpiCondition {\n fieldName: string;\n operator: EpiConditionOperator;\n fieldValue: string;\n}\n\nexport enum EpiConditionCombination {\n All = \"All\",\n Any = \"Any\",\n}\n\nexport enum EpiDependencyAction {\n Hide = \"hide\",\n Show = \"show\",\n}\n\nexport enum EpiConditionOperator {\n NotApplicable = \"NotApplicable\",\n MatchRegularExpression = \"MatchRegularExpression\",\n Equals = \"Equals\",\n NotEquals = \"NotEquals\",\n Contains = \"Contains\",\n NotContains = \"NotContains\",\n}\n","import { useWatch, Control } from \"react-hook-form\";\n\nimport EpiElementDependency, {\n EpiConditionCombination,\n EpiConditionOperator,\n EpiDependencyAction,\n} from \"types/EpiElementDependency\";\n\nconst evaluateConditionByOperator = (\n operator: EpiConditionOperator,\n targetValue: string | string[],\n conditionValue: string,\n): boolean => {\n if (typeof targetValue === \"undefined\") return false;\n\n if (!Array.isArray(targetValue))\n switch (operator) {\n case EpiConditionOperator.Equals:\n return targetValue === conditionValue;\n case EpiConditionOperator.NotEquals:\n return targetValue !== conditionValue;\n case EpiConditionOperator.Contains:\n return targetValue.includes(conditionValue);\n case EpiConditionOperator.NotContains:\n return !targetValue.includes(conditionValue);\n case EpiConditionOperator.MatchRegularExpression:\n return new RegExp(conditionValue).test(targetValue);\n case EpiConditionOperator.NotApplicable:\n return true;\n default:\n return false;\n }\n else\n switch (operator) {\n case EpiConditionOperator.Equals:\n return targetValue.includes(conditionValue);\n case EpiConditionOperator.NotEquals:\n return !targetValue.includes(conditionValue);\n case EpiConditionOperator.Contains:\n return targetValue.some((value) =>\n value.includes(conditionValue),\n );\n case EpiConditionOperator.NotContains:\n return !targetValue.some((value) =>\n value.includes(conditionValue),\n );\n case EpiConditionOperator.MatchRegularExpression:\n return targetValue.some((value) =>\n new RegExp(conditionValue).test(value),\n );\n case EpiConditionOperator.NotApplicable:\n return true;\n default:\n return false;\n }\n};\n\nconst evaluteVisibleFromDependencies = (\n dependency: EpiElementDependency | undefined,\n control: Control, any>, // eslint-disable-line @typescript-eslint/no-explicit-any\n): boolean => {\n if (dependency && control) {\n const { conditionCombination, action } = dependency;\n const returnValue =\n action?.clientsideAction === EpiDependencyAction.Show;\n\n const conditions = dependency.conditions || [];\n const elementValues = conditions.map(\n (condition) =>\n useWatch({\n control,\n name: condition.fieldName,\n }) || \"\",\n );\n\n if (conditionCombination === EpiConditionCombination.Any)\n return conditions\n .map((condition, index) => {\n const { operator, fieldValue } = condition;\n const elementValue = elementValues[index];\n return evaluateConditionByOperator(\n operator,\n elementValue,\n fieldValue || \"\",\n )\n ? returnValue\n : !returnValue;\n })\n .some(Boolean);\n else\n return conditions.every((condition, index) => {\n const { operator, fieldValue } = condition;\n const elementValue = elementValues[index];\n return evaluateConditionByOperator(\n operator,\n elementValue,\n fieldValue || \"\",\n )\n ? returnValue\n : !returnValue;\n });\n }\n return true;\n};\n\nexport default evaluteVisibleFromDependencies;\n","import { ValidationRule } from \"react-hook-form\";\n\nimport EpiValidator from \"types/EpiValidator\";\n\nconst generateValidationRules = (validationRules: EpiValidator[]) => {\n let rules = { validate: {} } as Rules;\n\n validationRules.forEach((validationRule: EpiValidator, index: number) => {\n switch (validationRule.type) {\n case \"RequiredValidator\":\n rules = {\n ...rules,\n required: {\n value: true,\n message:\n validationRule?.model?.message ||\n \"This field is required\",\n },\n };\n break;\n case \"MaxLengthValidator\":\n rules = {\n ...rules,\n maxLength: {\n value: validationRule?.model?.maxLength || 100,\n message:\n validationRule?.model?.message ||\n \"This field has a too long value\",\n },\n };\n break;\n case \"AllowedExtensionsValidator\":\n rules = {\n ...rules,\n validate: {\n ...rules.validate,\n [`${validationRule.type}-${index}`]: (\n FileList: any[], //eslint-disable-line @typescript-eslint/no-explicit-any\n ): string | boolean => {\n if (FileList && FileList.length > 0) {\n const files = Array.from(FileList);\n const fallbackExtensions = [\n \"jpg\",\n \"jpeg\",\n \"png\",\n \"gif\",\n \"bmp\",\n \"webp\",\n \"svg\",\n \"doc\",\n \"docx\",\n \"xls\",\n \"xlsx\",\n \"pdf\",\n ];\n const allowedExtensions = validationRule?.model\n ?.accept\n ? validationRule.model.accept\n .replaceAll(\".\", \"\")\n .split(\",\")\n : fallbackExtensions;\n const filesExtensions = files.map((file) =>\n file.name.split(\".\").pop().toLowerCase(),\n );\n const isValid = filesExtensions.every(\n (extension) =>\n allowedExtensions.includes(extension),\n );\n if (!isValid) {\n return (\n validationRule?.model?.message ||\n \"This field is invalid\"\n );\n }\n }\n return true;\n },\n },\n };\n break;\n case \"MaxFileSizeValidator\":\n rules = {\n ...rules,\n validate: {\n ...rules.validate,\n [`${validationRule.type}-${index}`]: (\n FileList: any[], //eslint-disable-line @typescript-eslint/no-explicit-any\n ): string | boolean => {\n if (FileList && FileList.length > 0) {\n const files = Array.from(FileList);\n const fallbackSizeInBytes = 104857600;\n const allowedSizeInBytes =\n validationRule?.model?.sizeInBytes ||\n fallbackSizeInBytes;\n const isValid = files.every(\n (file) =>\n Number(file?.size) < allowedSizeInBytes,\n );\n if (!isValid) {\n return (\n validationRule?.model?.message ||\n \"This field is invalid\"\n );\n }\n }\n return true;\n },\n },\n };\n break;\n default:\n if (validationRule?.model?.jsPattern) {\n rules = {\n ...rules,\n pattern: {\n value: new RegExp(validationRule?.model?.jsPattern),\n message:\n validationRule?.model?.message ||\n \"This field is invalid\",\n },\n };\n }\n break;\n }\n });\n return rules;\n};\n\ninterface Rules {\n required?: ValidationRule;\n maxLength?: ValidationRule;\n pattern?: ValidationRule;\n validate: {\n [key: string]: (value: any) => string | boolean; //eslint-disable-line @typescript-eslint/no-explicit-any\n };\n}\n\nexport default generateValidationRules;\n","import { Children, cloneElement, isValidElement } from 'react';\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\n\nexport function getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && isValidElement(child) ? mapFn(child) : child;\n };\n var result = Object.create(null);\n if (children) Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\nexport function mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n var i;\n var childMapping = {};\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n return childMapping;\n}\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\nexport function getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\nexport function getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!isValidElement(child)) return;\n var hasPrev = (key in prevChildMapping);\n var hasNext = (key in nextChildMapping);\n var prevChild = prevChildMapping[key];\n var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = cloneElement(child, {\n in: false\n });\n } else if (hasNext && hasPrev && isValidElement(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = cloneElement(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { getChildMapping, getInitialChildMapping, getNextChildMapping } from './utils/ChildMapping';\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n};\n/**\n * The `` component manages a set of transition components\n * (`` and ``) in a list. Like with the transition\n * components, `` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the ``.\n *\n * Note that `` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\nvar TransitionGroup = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n function TransitionGroup(props, context) {\n var _this;\n _this = _React$Component.call(this, props, context) || this;\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear\n\n _this.state = {\n contextValue: {\n isMounting: true\n },\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n var _proto = TransitionGroup.prototype;\n _proto.componentDidMount = function componentDidMount() {\n this.mounted = true;\n this.setState({\n contextValue: {\n isMounting: false\n }\n });\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n } // node is `undefined` when user provided `nodeRef` prop\n ;\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = getChildMapping(this.props.children);\n if (child.key in currentChildMapping) return;\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n var contextValue = this.state.contextValue;\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n if (Component === null) {\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, children);\n }\n return /*#__PURE__*/React.createElement(TransitionGroupContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Component, props, children));\n };\n return TransitionGroup;\n}(React.Component);\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `` renders a `
` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `
` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: PropTypes.any,\n /**\n * A set of `` components, that are toggled `in` and out as they\n * leave. the `` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `` as\n * with our `` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: PropTypes.node,\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: PropTypes.bool,\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: PropTypes.bool,\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: PropTypes.bool,\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: PropTypes.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\nexport default TransitionGroup;","import React from 'react';\nexport default React.createContext(null);"],"names":["labelColor","theme","undefined","lightgray","blue","cyan","black","disabledColor","textColor","markedColor","borderHover","borderColor","borderDisabledColor","borderError","Wrapper","styled","FormControl","withConfig","componentId","MQ","FROM_M","Full","Half","OneThird","TwoThirds","FROM_XL","Label","FormLabel","styleLabelM","CheckboxItems","FormGroup","IconWrapper","div","CheckboxIcon","attrs","small","medium","props","$error","css","$checked","ErrorIcon","Icon","CheckboxLabel","FormControlLabel","styleBodyM","styleBodyL","checked","CheckboxControl","Checkbox","Description","FormHelperText","styleBodyS","HelperText","label","id","identifier","elementName","description","items","displayOption","disabled","className","validators","dependencies","control","size","setValue","onFocus","formContext","useFormContext","unregister","defaultValue","useMemo","_items$filter","length","filter","item","map","value","values","setValues","useState","classes","classNames","validator","_validator$model","model","validationCssClass","rules","generateValidationRules","visibleFromDependencies","evaluteVisibilityFromDependencies","handleFocus","useCallback","event","useEffect","checkBoxIcon","error","_jsxs","children","_jsx","icon","MuiThemeProvider","createTheme","ThemeProvider","Controller","name","render","field","onChange","fieldState","_Fragment","index","includes","caption","required","handleChange","callback","target","newValues","push","newValue","disableRipple","role","checkedIcon","React","EpiConditionCombination","EpiDependencyAction","EpiConditionOperator","evaluateConditionByOperator","operator","targetValue","conditionValue","Array","isArray","Equals","NotEquals","Contains","some","NotContains","MatchRegularExpression","RegExp","test","NotApplicable","evaluteVisibleFromDependencies","dependency","conditionCombination","action","returnValue","clientsideAction","Show","conditions","elementValues","condition","useWatch","fieldName","Any","fieldValue","elementValue","Boolean","every","validationRules","validate","forEach","validationRule","_validationRule$model","_validationRule$model2","_validationRule$model3","_validationRule$model8","type","message","maxLength","FileList","_validationRule$model4","files","from","fallbackExtensions","allowedExtensions","accept","replaceAll","split","_validationRule$model5","file","pop","toLowerCase","extension","_validationRule$model6","fallbackSizeInBytes","allowedSizeInBytes","sizeInBytes","_validationRule$model7","Number","_validationRule$model9","_validationRule$model10","jsPattern","pattern","getChildMapping","mapFn","result","Object","create","Children","c","child","key","isValidElement","mapper","getProp","prop","getNextChildMapping","nextProps","prevChildMapping","onExited","nextChildMapping","prev","next","getValueForKey","i","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","mergeChildMappings","keys","hasPrev","hasNext","prevChild","isLeaving","in","cloneElement","bind","exit","enter","obj","k","TransitionGroup","_React$Component","context","_this","handleExited","call","this","state","contextValue","isMounting","firstRender","_proto","prototype","componentDidMount","mounted","setState","componentWillUnmount","getDerivedStateFromProps","_ref","appear","node","currentChildMapping","_this$props","Component","component","childFactory","TransitionGroupContext","Provider","propTypes","defaultProps"],"sourceRoot":""}