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ACGA,GAASnL,EAAAA,EAAAA,GAAK,MAAO,CAAEM,GAAIyK,EAAW,0BAA2BC,KAA0BhL,EAAAA,EAAAA,GAAK,MAAO,CAAEM,GAAIyK,EAAW/M,UAAW,eAAiB,EC9BlJ8N,EAAgBC,IACzB,MAAOC,EAAkBC,IAAuBvC,EAAAA,EAAAA,WAAS,IAClD+B,EAAOS,IAAYxC,EAAAA,EAAAA,UAAS,IACnC,IAAIyC,GAAsB,EACtBC,EAAc,GAClBhE,EAAAA,EAAAA,YAAU,KACN,GAAI4D,IAAqBG,EAAqB,CAdhCE,EAACC,EAASC,EAAWA,MAAe,MACtD,MAAMC,EAASlE,SAASmE,cAAc,WACjCvD,OAAOwD,yBAA2BH,IACnCrD,OAAOwD,wBAA0BH,GAErCC,EAAOG,IAAM,oFAAoFL,IACjGhE,SAASC,KAAKqE,YAAYJ,EAAO,EASzBH,CAAcN,GACd,MAAMc,EAAWhB,aAAY,KACzBrC,IACsB,MAAhB4C,GACFd,cAAcuB,EAClB,GACD,MAEH,OADAC,IACO,KACHxB,cAAcuB,EAAS,CAE/B,IACD,CAACb,IACJ,MAGMxC,EAAUA,KACZ,MAAMuD,EAAkB7D,OACpB6D,EAAgBpC,YAAcoC,EAAgBpC,WAAWC,SACzDmC,EAAgBpC,WACXC,QAAQmB,GACRP,MAAK,SAAUwB,GAChBd,EAASc,EACb,IACKtB,OAAM,KACPC,QAAQlO,MAAM,oCAAoC,GAE1D,EAEEqP,EAAyBA,KAC3BX,GAAsB,CAAI,EAExBjB,GAAiBnD,EAAAA,EAAAA,cAAakF,IAChCf,EAASe,EAAe,GACzB,IAEH,MAAO,CAvBiBC,MACnBlB,GAAoBC,GAAoB,EAAK,EAqBvBD,GAAoBhM,EAAAA,EAAAA,GAAK8K,EAAW,CAAEhG,OAAQ,SAAUmG,QAASc,EAAkBb,eAAgBA,IAAqB,KACtGO,EAAOjC,EAAQ,C","sources":["../node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js","../node_modules/@mui/material/FormControlLabel/FormControlLabel.js","../node_modules/@web-for-marketing/react-ui/lib/esm/components/FormControls/Checkbox/Checkbox.js","../node_modules/@web-for-marketing/react-ui/lib/esm/components/V2Button/V2Button.js","../node_modules/@web-for-marketing/react-ui/lib/esm/components/V2Button/styles.js","../node_modules/@web-for-marketing/react-ui/lib/esm/shared/utils/keyPressEvent/keyPressEvent.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useFocusTrap/useFocusTrap.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useAccessiblePopout/useAccessiblePopout.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useDisableScroll/useDisableScroll.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useEventListener/useEventListener.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useRecaptcha/Recaptcha.js","../node_modules/@web-for-marketing/react-ui/lib/esm/hooks/useRecaptcha/useRecaptcha.js"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getFormControlLabelUtilityClasses(slot) {\n return generateUtilityClass('MuiFormControlLabel', slot);\n}\nconst formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);\nexport default formControlLabelClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useFormControl } from \"../FormControl/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from \"./formControlLabelClasses.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n labelPlacement,\n error,\n required\n } = ownerState;\n const slots = {\n root: ['root', disabled && 'disabled', `labelPlacement${capitalize(labelPlacement)}`, error && 'error', required && 'required'],\n label: ['label', disabled && 'disabled'],\n asterisk: ['asterisk', error && 'error']\n };\n return composeClasses(slots, getFormControlLabelUtilityClasses, classes);\n};\nexport const FormControlLabelRoot = styled('label', {\n name: 'MuiFormControlLabel',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${formControlLabelClasses.label}`]: styles.label\n }, styles.root, styles[`labelPlacement${capitalize(ownerState.labelPlacement)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n display: 'inline-flex',\n alignItems: 'center',\n cursor: 'pointer',\n // For correct alignment with the text.\n verticalAlign: 'middle',\n WebkitTapHighlightColor: 'transparent',\n marginLeft: -11,\n marginRight: 16,\n // used for row presentation of radio/checkbox\n [`&.${formControlLabelClasses.disabled}`]: {\n cursor: 'default'\n },\n [`& .${formControlLabelClasses.label}`]: {\n [`&.${formControlLabelClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n },\n variants: [{\n props: {\n labelPlacement: 'start'\n },\n style: {\n flexDirection: 'row-reverse',\n marginRight: -11\n }\n }, {\n props: {\n labelPlacement: 'top'\n },\n style: {\n flexDirection: 'column-reverse'\n }\n }, {\n props: {\n labelPlacement: 'bottom'\n },\n style: {\n flexDirection: 'column'\n }\n }, {\n props: ({\n labelPlacement\n }) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',\n style: {\n marginLeft: 16 // used for row presentation of radio/checkbox\n }\n }]\n})));\nconst AsteriskComponent = styled('span', {\n name: 'MuiFormControlLabel',\n slot: 'Asterisk',\n overridesResolver: (props, styles) => styles.asterisk\n})(memoTheme(({\n theme\n}) => ({\n [`&.${formControlLabelClasses.error}`]: {\n color: (theme.vars || theme).palette.error.main\n }\n})));\n\n/**\n * Drop-in replacement of the `Radio`, `Switch` and `Checkbox` component.\n * Use this component if you want to display an extra label.\n */\nconst FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiFormControlLabel'\n });\n const {\n checked,\n className,\n componentsProps = {},\n control,\n disabled: disabledProp,\n disableTypography,\n inputRef,\n label: labelProp,\n labelPlacement = 'end',\n name,\n onChange,\n required: requiredProp,\n slots = {},\n slotProps = {},\n value,\n ...other\n } = props;\n const muiFormControl = useFormControl();\n const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;\n const required = requiredProp ?? control.props.required;\n const controlProps = {\n disabled,\n required\n };\n ['checked', 'name', 'onChange', 'value', 'inputRef'].forEach(key => {\n if (typeof control.props[key] === 'undefined' && typeof props[key] !== 'undefined') {\n controlProps[key] = props[key];\n }\n });\n const fcs = formControlState({\n props,\n muiFormControl,\n states: ['error']\n });\n const ownerState = {\n ...props,\n disabled,\n labelPlacement,\n required,\n error: fcs.error\n };\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots,\n slotProps: {\n ...componentsProps,\n ...slotProps\n }\n };\n const [TypographySlot, typographySlotProps] = useSlot('typography', {\n elementType: Typography,\n externalForwardedProps,\n ownerState\n });\n let label = labelProp;\n if (label != null && label.type !== Typography && !disableTypography) {\n label = /*#__PURE__*/_jsx(TypographySlot, {\n component: \"span\",\n ...typographySlotProps,\n className: clsx(classes.label, typographySlotProps?.className),\n children: label\n });\n }\n return /*#__PURE__*/_jsxs(FormControlLabelRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other,\n children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(\"div\", {\n children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {\n ownerState: ownerState,\n \"aria-hidden\": true,\n className: classes.asterisk,\n children: [\"\\u2009\", '*']\n })]\n }) : label]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? FormControlLabel.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component appears selected.\n */\n checked: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The props used for each slot inside.\n * @default {}\n * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n componentsProps: PropTypes.shape({\n typography: PropTypes.object\n }),\n /**\n * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.\n */\n control: PropTypes.element.isRequired,\n /**\n * If `true`, the control is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the label is rendered as it is passed without an additional typography node.\n */\n disableTypography: PropTypes.bool,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * A text or an element to be used in an enclosing label element.\n */\n label: PropTypes.node,\n /**\n * The position of the label.\n * @default 'end'\n */\n labelPlacement: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * @ignore\n */\n name: PropTypes.string,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the label will indicate that the `input` is required.\n */\n required: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n typography: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component.\n */\n value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","import { jsx as _jsx } from \"@emotion/react/jsx-runtime\";\nimport { FormControlLabel, Checkbox as MUICheckbox, } from '@mui/material';\nimport { ClassNames } from '@emotion/react';\nimport { formControlStyles as classes } from '../formControlStyles';\n/**\n * A component that allows the user to toggle between checked and not checked.\n *\n * @example\n *\n *\n */\nexport function Checkbox({ label, id, name, disabled, hiddenLabel, onChange, onBlur, onFocus, checked, labelColor, checkedColor, uncheckedColor, value, defaultChecked, labelPlacement, className, }) {\n return (_jsx(ClassNames, { children: ({ css }) => (_jsx(FormControlLabel, { disabled: disabled, control: _jsx(MUICheckbox, { defaultChecked: defaultChecked, checked: checked, value: value, onFocus: onFocus, onBlur: onBlur, onChange: onChange, name: name, disabled: disabled, id: id, inputProps: {\n 'aria-label': hiddenLabel && typeof label === 'string' ? label : undefined,\n }, css: [\n classes.formControlLabelInput(labelPlacement),\n classes.checkbox(uncheckedColor, checkedColor),\n ] }), label: !hiddenLabel ? label : '', classes: {\n label: css(classes.formControlLabelText(labelColor)),\n }, labelPlacement: labelPlacement, css: classes.formControlLabelRoot(labelPlacement), className: className })) }));\n}\n","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"@emotion/react/jsx-runtime\";\nimport React from 'react';\nimport { buttonBaseStyles, getFocusStyles, getVariantStyles, getWidthStyles, sizeStyles } from './styles';\nimport { getResponsiveStyleObject } from \"../../shared/utils/responsive/responsive\";\nfunction V2ButtonComponent(props, ref) {\n const { component, children, variant = 'primary', size = 'medium', color = 'blue', fullWidth = false, leftIcon, rightIcon, isSelected = false, disabled = false, type } = props, componentProps = __rest(props, [\"component\", \"children\", \"variant\", \"size\", \"color\", \"fullWidth\", \"leftIcon\", \"rightIcon\", \"isSelected\", \"disabled\", \"type\"]);\n const Component = component || 'button';\n const buttonProps = {};\n if (Component === 'button') {\n buttonProps.type = type === undefined ? 'button' : type;\n buttonProps.disabled = disabled;\n }\n else {\n if (disabled) {\n buttonProps['aria-disabled'] = disabled;\n }\n }\n return (_jsxs(Component, Object.assign({ ref: ref, css: [\n buttonBaseStyles,\n getFocusStyles(color),\n getWidthStyles(fullWidth),\n getResponsiveStyleObject(size, (size) => sizeStyles[size]),\n getVariantStyles(variant, color, isSelected), // variant styles must come after sizeStyles in order to override padding for link variant\n ], \"data-disabled\": disabled || undefined, tabIndex: disabled ? -1 : 0 }, buttonProps, componentProps, { children: [leftIcon ? _jsx(\"span\", { css: { marginRight: '1rem', display: 'inline-flex' }, children: leftIcon }) : null, children, rightIcon ? _jsx(\"span\", { css: { marginLeft: '1rem', display: 'inline-flex' }, children: rightIcon }) : null] })));\n}\n/**\n * A component that allows users to take actions, and make choices, with a single tap\n *\n * @example\n *Button text\n *\n */\nexport const V2Button = React.forwardRef(V2ButtonComponent);\n","import { fontWeights } from \"../../tokens/typography\";\nimport { body1Styles, body2Styles, body3Styles } from \"../../presets/typography\";\nimport { v2Colors } from \"../../tokens/color\";\nimport { getRgbaColor } from \"../../shared/utils/color/color\";\nexport const sizeStyles = {\n micro: Object.assign({ padding: '0.4rem 1.2rem' }, body3Styles),\n small: Object.assign({ padding: '0.8rem 1.2rem' }, body2Styles),\n medium: Object.assign({ padding: '1.2rem 2.4rem' }, body2Styles),\n large: Object.assign({ padding: '1.6rem 2.4rem' }, body1Styles),\n};\nconst colorStyles = {\n whiteSecondary: {\n color: v2Colors.text.inverseActivePrimary,\n '&:hover:not([data-disabled])': {\n boxShadow: 'inset 0 0 0 2px currentColor',\n },\n },\n blueSecondary: {\n color: v2Colors.text.activePrimary,\n '&:hover:not([data-disabled])': {\n color: v2Colors.text.activeSecondary,\n boxShadow: 'inset 0 0 0 2px currentColor',\n },\n },\n whiteFloating: {\n color: v2Colors.text.inverseActivePrimary,\n '&:hover:not([data-disabled])': {\n boxShadow: 'inset 0 0 0 1px currentColor',\n },\n },\n blueFloating: {\n color: v2Colors.text.activePrimary,\n '&:hover:not([data-disabled])': {\n boxShadow: 'inset 0 0 0 1px currentColor',\n color: v2Colors.text.activeSecondary,\n },\n },\n whiteGhost: {\n color: v2Colors.text.inverseActivePrimary,\n '&:hover:not([data-disabled])': {\n background: getRgbaColor(v2Colors.text.inverseActivePrimary, 0.2),\n },\n },\n blueGhost: {\n color: v2Colors.text.activePrimary,\n '&:hover:not([data-disabled])': {\n background: v2Colors.action.active,\n color: v2Colors.text.activeSecondary,\n },\n },\n whiteLink: {\n color: v2Colors.text.inverseActivePrimary,\n },\n blueLink: {\n color: v2Colors.text.activePrimary,\n },\n};\nexport function getVariantStyles(variant, color, isSelected) {\n const variantStyles = {\n primary: {\n color: v2Colors.text.inverseActivePrimary,\n background: v2Colors.action.innovation,\n '&:hover:not([data-disabled])': {\n background: v2Colors.action.innovationDark,\n },\n '&[data-disabled]': {\n background: v2Colors.action.disabled,\n },\n },\n secondary: Object.assign(Object.assign(Object.assign({ boxShadow: 'inset 0 0 0 1px currentColor', background: v2Colors.transparent }, (color === 'white' ? colorStyles.whiteSecondary : colorStyles.blueSecondary)), (isSelected ? getSelectedStyles(variant, color) : {})), { '&[data-disabled]': {\n background: v2Colors.action.disabled,\n boxShadow: 'none',\n } }),\n tertiary: {\n background: v2Colors.action.paleGray,\n color: v2Colors.text.secondary,\n '&:hover:not([data-disabled])': {\n background: v2Colors.action.lightGray,\n },\n '&[data-disabled]': {\n background: v2Colors.action.disabled,\n },\n },\n floating: Object.assign({ background: v2Colors.transparent }, (color === 'white' ? colorStyles.whiteFloating : colorStyles.blueFloating)),\n ghost: Object.assign(Object.assign({}, (color === 'white' ? colorStyles.whiteGhost : colorStyles.blueGhost)), (isSelected ? getSelectedStyles(variant, color) : {})),\n link: Object.assign(Object.assign({}, (color === 'white' ? colorStyles.whiteLink : colorStyles.blueLink)), { padding: 0, '&:hover:not([data-disabled])': {\n textDecoration: 'underline',\n } }),\n };\n return variantStyles[variant];\n}\nexport function getWidthStyles(fullWidth) {\n return {\n width: fullWidth ? '100%' : 'auto',\n };\n}\nexport function getFocusStyles(color) {\n return {\n '&:focus-visible': {\n outline: `2px solid ${color === 'white' ? v2Colors.border.inversePrimary : v2Colors.border.activePrimary}`,\n outlineOffset: '3px',\n },\n };\n}\nexport function getSelectedStyles(variant, color) {\n const selectedStyles = {\n primary: {},\n secondary: {\n boxShadow: 'inset 0 0 0 2px currentColor',\n background: color === 'blue' ? v2Colors.action.active : getRgbaColor(v2Colors.background.white, 0.15),\n },\n tertiary: {},\n floating: {},\n ghost: {\n boxShadow: 'inset 0 0 0 1px currentColor',\n background: color === 'blue' ? v2Colors.action.active : getRgbaColor(v2Colors.background.white, 0.2),\n },\n link: {},\n };\n return {\n color: color === 'blue' ? v2Colors.text.activeSecondary : v2Colors.text.inversePrimary,\n '&:not([data-disabled])': selectedStyles[variant],\n };\n}\nexport const buttonBaseStyles = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n fontWeight: fontWeights.medium,\n userSelect: 'none',\n position: 'relative',\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n borderRadius: '4px',\n transition: 'background-color 300ms ease, box-shadow 300ms ease, color 300ms ease',\n border: 0,\n outline: 0,\n background: 'none',\n textDecoration: 'none',\n '& svg': {\n height: '1em',\n width: '1em',\n color: 'currentcolor',\n '& path': {\n fill: 'currentcolor',\n },\n },\n '&[data-disabled]': {\n pointerEvents: 'none',\n color: v2Colors.text.disabled,\n },\n};\n","export const keyIsTab = (event) => {\n return event.key === 'Tab' || event.code === 'Tab';\n};\nexport const keyIsEscape = (event) => {\n return event.key === 'Escape' || event.code === 'Escape';\n};\n","import { useEffect, useState } from 'react';\nimport { keyIsTab } from \"../../shared/utils/keyPressEvent/keyPressEvent\";\nconst focusableElement = ['a', 'button', 'textarea', 'input', 'select', 'iframe'];\n/**\n * A hook that applies a focus trap on a specified element\n *\n * @param containerRef a ref to the container element that the focus trap is applied to\n * @param focusableElementQueryArray an array of selectors to be queried which are allowed to be focused on\n * @param focusedElementIndex the index of the element that should initially have focus.\n * If this is not defined, the first focusable element will have focus by default\n *\n * @returns a function that resets the focus trap. This can be useful if the focusable elements\n * inside the container changes, but the focusableElementQueryArray stays the same\n */\nexport const useFocusTrap = (containerRef, focusableElementQueryArray = focusableElement, focusedElementIndex) => {\n const [refresh, setRefresh] = useState(0);\n const refreshFocusableElements = () => setRefresh((previousValue) => previousValue + 1);\n const targetElement = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;\n useEffect(() => {\n let firstFocusElement = null;\n let lastFocusElement = null;\n function handleTabKeyPress(event) {\n if (keyIsTab(event)) {\n if (!event.shiftKey && document.activeElement === lastFocusElement) {\n event.preventDefault();\n firstFocusElement === null || firstFocusElement === void 0 ? void 0 : firstFocusElement.focus();\n }\n else if (event.shiftKey && document.activeElement === firstFocusElement) {\n event.preventDefault();\n lastFocusElement === null || lastFocusElement === void 0 ? void 0 : lastFocusElement.focus();\n }\n }\n }\n if (focusableElementQueryArray.length) {\n const focusableElementQuery = `${focusableElementQueryArray.join(':not([tabIndex=\"-1\"]):not([disabled]):not([aria-hidden=\"true\"]), ')}:not([tabIndex=\"-1\"]):not([disabled]):not([aria-hidden=\"true\"])`;\n if (targetElement) {\n const focusableElements = targetElement.querySelectorAll(focusableElementQuery);\n if (focusableElements.length) {\n firstFocusElement = focusableElements[0];\n lastFocusElement = focusableElements[focusableElements.length - 1];\n focusedElementIndex && focusableElements[focusedElementIndex]\n ? focusableElements[focusedElementIndex].focus()\n : firstFocusElement.focus();\n }\n targetElement.addEventListener('keydown', handleTabKeyPress);\n }\n }\n return () => {\n targetElement === null || targetElement === void 0 ? void 0 : targetElement.removeEventListener('keydown', handleTabKeyPress);\n };\n }, [focusableElementQueryArray, refresh, targetElement]);\n return refreshFocusableElements;\n};\n","import { useCallback } from 'react';\nimport { keyIsEscape } from \"../../shared/utils/keyPressEvent/keyPressEvent\";\nimport { useDisableScroll } from '../useDisableScroll/useDisableScroll';\nimport { useFocusTrap } from '../useFocusTrap/useFocusTrap';\nimport { useEventListener } from '../useEventListener/useEventListener';\n/**\n * A react hook that ensures popout components are accessible\n *\n * @param popOutRef a ref to the popout element\n * @param isOpen if true the popout is open\n * @param handleClose a callback to be executed when the popout is closed\n * @param optionOverrides options that can override the default behavior of the hook\n * @param optionOverrides.disableScroll if true disables scrolling on the page\n * @param optionOverrides.focusLock if true enables a focus trap on the specified element\n * @param optionOverrides.escapeToClose if true esc key will execute a handleClose callback\n * @param optionOverrides.focusableElementQueryArray an array of selectors to be queried which are allowed to be focused on\n * @param optionOverrides.focusedElementIndex the index of the element that should initially have focus\n *\n * @returns a function that resets the focus trap. This can be useful if the focusable elements\n * inside the popout changes, but the focusableElementQueryArray stays the same\n */\nexport const useAccessiblePopout = (popOutRef, isOpen, handleClose, optionOverrides) => {\n const options = Object.assign({ disableScroll: true, focusLock: true, escapeToClose: true, focusableElementQueryArray: ['a', 'button', 'textarea', 'input', 'select', 'iframe'], focusedElementIndex: 0 }, optionOverrides);\n const focusElements = isOpen && options.focusLock && options.focusableElementQueryArray ? options.focusableElementQueryArray : [];\n const handleEscapeKeyPress = useCallback((event) => {\n if (keyIsEscape(event)) {\n handleClose();\n }\n }, [handleClose]);\n useDisableScroll(isOpen && options.disableScroll);\n useEventListener('keydown', handleEscapeKeyPress, popOutRef, isOpen && options.escapeToClose);\n const refreshFocusableElements = useFocusTrap(popOutRef, focusElements, options.focusedElementIndex);\n return refreshFocusableElements;\n};\n","import { useEffect } from 'react';\n/**\n * A React hook that disables scrolling of the page\n *\n * @param disabled if true scroll is disabled on the page\n */\nexport const useDisableScroll = (disabled = true) => {\n useEffect(() => {\n const originalOverflow = document.body.style.overflow;\n if (disabled) {\n document.body.style.overflow = 'hidden';\n }\n else {\n document.body.style.overflow = originalOverflow;\n }\n return () => {\n document.body.style.overflow = originalOverflow;\n };\n }, [disabled]);\n};\n","import { useRef, useEffect } from 'react';\n/**\n * A React hook to manage event listeners\n *\n * @param eventName the event name\n * @param handler the event handler function to execute\n * @param element the element to add the event listener to.\n * If not defined, the event listener will be added to window by default\n * @param listen if true, the event listener will be added to the specified element or window\n */\nexport const useEventListener = (eventName, handler, element, listen = true) => {\n const savedHandler = useRef();\n useEffect(() => {\n const targetElement = (element === null || element === void 0 ? void 0 : element.current) || window;\n if (!(targetElement && targetElement.addEventListener) || !listen) {\n return;\n }\n if (savedHandler.current !== handler) {\n savedHandler.current = handler;\n }\n const eventListener = (event) => {\n if (savedHandler === null || savedHandler === void 0 ? void 0 : savedHandler.current) {\n savedHandler.current(event);\n }\n };\n targetElement.addEventListener(eventName, eventListener);\n return () => {\n targetElement.removeEventListener(eventName, eventListener);\n };\n }, [eventName, element, handler, listen]);\n};\n","import { jsx as _jsx } from \"@emotion/react/jsx-runtime\";\nimport { useState, useEffect } from 'react';\nconst isReady = () => {\n var _a;\n return (typeof window !== 'undefined' &&\n typeof window.grecaptcha !== 'undefined' &&\n typeof ((_a = window.grecaptcha) === null || _a === void 0 ? void 0 : _a.execute) !== 'undefined');\n};\nlet readyCheck;\nconst ReCaptcha = ({ elementID = 'g-recaptcha', verifyCallbackName = 'verifyCallbackName', sitekey, action, verifyCallback, }) => {\n const [ready, setReady] = useState(isReady());\n const updateReadyState = () => {\n if (isReady()) {\n setReady(true);\n clearInterval(readyCheck);\n }\n };\n useEffect(() => {\n const execute = () => {\n var _a, _b;\n if (ready) {\n (_b = (_a = window.grecaptcha) === null || _a === void 0 ? void 0 : _a.execute) === null || _b === void 0 ? void 0 : _b.call(_a, sitekey, { action }).then((token) => {\n if (typeof verifyCallback !== 'undefined') {\n verifyCallback(token);\n }\n }).catch((e) => {\n console.log(e);\n });\n }\n };\n if (ready) {\n execute();\n }\n else {\n readyCheck = window.setInterval(updateReadyState, 1000);\n }\n //cleanup function to run when component unmounted\n return () => {\n clearInterval(readyCheck);\n };\n }, [ready]);\n return ready ? (_jsx(\"div\", { id: elementID, \"data-verifycallbackname\": verifyCallbackName })) : (_jsx(\"div\", { id: elementID, className: 'g-recaptcha' }));\n};\nexport default ReCaptcha;\n","import { jsx as _jsx } from \"@emotion/react/jsx-runtime\";\nimport { useState, useEffect, useCallback } from 'react';\nimport ReCaptcha from './Recaptcha';\nconst loadReCaptcha = (siteKey, callback = () => undefined) => {\n const script = document.createElement('script');\n if (!window.onLoadCaptchaV3Callback && callback) {\n window.onLoadCaptchaV3Callback = callback;\n }\n script.src = `https://www.recaptcha.net/recaptcha/api.js?onload=onLoadCaptchaV3Callback&render=${siteKey}`;\n document.body.appendChild(script);\n};\nexport const useRecaptcha = (recaptchaSiteKey) => {\n const [recaptchaEnabled, setRecaptchaEnabled] = useState(false);\n const [token, setToken] = useState('');\n let recaptchaLoadedOnce = false;\n let repetitions = 0;\n useEffect(() => {\n if (recaptchaEnabled && !recaptchaLoadedOnce) {\n loadReCaptcha(recaptchaSiteKey);\n const interval = setInterval(() => {\n refresh();\n if (++repetitions === 5) {\n clearInterval(interval);\n }\n }, 110000);\n setRecaptchaLoadedOnce();\n return () => {\n clearInterval(interval);\n };\n }\n }, [recaptchaEnabled]);\n const enableRecaptcha = () => {\n !recaptchaEnabled && setRecaptchaEnabled(true);\n };\n const refresh = () => {\n const recaptchaWindow = window;\n if (recaptchaWindow.grecaptcha && recaptchaWindow.grecaptcha.execute) {\n recaptchaWindow.grecaptcha\n .execute(recaptchaSiteKey)\n .then(function (refreshToken) {\n setToken(refreshToken);\n })\n .catch(() => {\n console.error('Failed to refresh recaptcha token');\n });\n }\n };\n const setRecaptchaLoadedOnce = () => {\n recaptchaLoadedOnce = true;\n };\n const verifyCallback = useCallback((recaptchaToken) => {\n setToken(recaptchaToken);\n }, []);\n const recaptchaComponent = recaptchaEnabled ? (_jsx(ReCaptcha, { action: 'submit', sitekey: recaptchaSiteKey, verifyCallback: verifyCallback })) : null;\n return [enableRecaptcha, recaptchaComponent, token, refresh];\n};\n"],"names":["getFormControlLabelUtilityClasses","slot","generateUtilityClass","generateUtilityClasses","FormControlLabelRoot","styled","name","overridesResolver","props","styles","ownerState","formControlLabelClasses","label","root","capitalize","labelPlacement","memoTheme","theme","display","alignItems","cursor","verticalAlign","WebkitTapHighlightColor","marginLeft","marginRight","disabled","color","vars","palette","text","variants","style","flexDirection","AsteriskComponent","asterisk","error","main","React","inProps","ref","useDefaultProps","checked","className","componentsProps","control","disabledProp","disableTypography","inputRef","labelProp","onChange","required","requiredProp","slots","slotProps","value","other","muiFormControl","useFormControl","controlProps","forEach","key","fcs","formControlState","states","classes","composeClasses","useUtilityClasses","externalForwardedProps","TypographySlot","typographySlotProps","useSlot","elementType","Typography","type","_jsx","component","clsx","children","_jsxs","Checkbox","id","hiddenLabel","onBlur","onFocus","labelColor","checkedColor","uncheckedColor","defaultChecked","ClassNames","css","FormControlLabel","MUICheckbox","inputProps","undefined","formControlLabelInput","checkbox","formControlLabelText","formControlLabelRoot","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","V2Button","variant","size","fullWidth","leftIcon","rightIcon","isSelected","componentProps","Component","buttonProps","assign","buttonBaseStyles","getFocusStyles","getWidthStyles","getResponsiveStyleObject","sizeStyles","getVariantStyles","tabIndex","micro","padding","body3Styles","small","body2Styles","medium","large","body1Styles","colorStyles","whiteSecondary","v2Colors","inverseActivePrimary","boxShadow","blueSecondary","activePrimary","activeSecondary","whiteFloating","blueFloating","whiteGhost","background","getRgbaColor","blueGhost","action","active","whiteLink","blueLink","primary","innovation","innovationDark","secondary","transparent","getSelectedStyles","tertiary","paleGray","lightGray","floating","ghost","link","textDecoration","width","outline","border","inversePrimary","outlineOffset","selectedStyles","white","justifyContent","fontWeight","fontWeights","userSelect","position","boxSizing","borderRadius","transition","height","fill","pointerEvents","focusableElement","useAccessiblePopout","popOutRef","isOpen","handleClose","optionOverrides","options","disableScroll","focusLock","escapeToClose","focusableElementQueryArray","focusedElementIndex","focusElements","handleEscapeKeyPress","useCallback","event","code","keyIsEscape","useDisableScroll","useEffect","originalOverflow","document","body","overflow","useEventListener","eventName","handler","element","listen","savedHandler","useRef","targetElement","current","window","addEventListener","eventListener","removeEventListener","useFocusTrap","containerRef","refresh","setRefresh","useState","firstFocusElement","lastFocusElement","handleTabKeyPress","keyIsTab","shiftKey","activeElement","preventDefault","focus","focusableElementQuery","join","focusableElements","querySelectorAll","refreshFocusableElements","previousValue","isReady","_a","grecaptcha","execute","readyCheck","ReCaptcha","elementID","verifyCallbackName","sitekey","verifyCallback","ready","setReady","updateReadyState","clearInterval","_b","then","token","catch","console","log","setInterval","useRecaptcha","recaptchaSiteKey","recaptchaEnabled","setRecaptchaEnabled","setToken","recaptchaLoadedOnce","repetitions","loadReCaptcha","siteKey","callback","script","createElement","onLoadCaptchaV3Callback","src","appendChild","interval","setRecaptchaLoadedOnce","recaptchaWindow","refreshToken","recaptchaToken","enableRecaptcha"],"sourceRoot":""}