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ativeMobile.ts","webpack://@vestwell-frontend/registration/../../../src/components/Favicon.tsx","webpack://@vestwell-frontend/registration/../../src/MaterialProvider.tsx","webpack://@vestwell-frontend/registration/../../src/ThemeProvider.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Loader.tsx","webpack://@vestwell-frontend/registration/../../../src/components/PageContext.ts","webpack://@vestwell-frontend/registration/../../../src/components/PageFooter.tsx","webpack://@vestwell-frontend/registration/../../src/getBearerToken.ts","webpack://@vestwell-frontend/registration/../../src/useCamelCase.ts","webpack://@vestwell-frontend/registration/../../../src/utils/errorCodes.ts","webpack://@vestwell-frontend/registration/../../src/useDocumentTitle.ts","webpack://@vestwell-frontend/registration/../../src/useDownload.tsx","webpack://@vestwell-frontend/registration/../../src/useNotifications.ts","webpack://@vestwell-frontend/registration/../../src/useBearerToken.ts","webpack://@vestwell-frontend/registration/../../src/useWeglot.tsx","webpack://@vestwell-frontend/registration/../../src/useToggle.ts","webpack://@vestwell-frontend/registration/../../src/useValidateOnboardingQuestionnaire.hook.ts","webpack://@vestwell-frontend/registration/../../../src/components/Button.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/icon/ExceptionIcon.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Link.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Loading.tsx","webpack://@vestwell-frontend/registration/../../../src/helpers/useIsAnimationActive.ts","webpack://@vestwell-frontend/registration/../../../src/components/Text.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Error.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/icon/Error404Icon.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/icon/Error500Icon.tsx","webpack://@vestwell-frontend/registration/../../../src/components/StatusCodeError.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Page.tsx","webpack://@vestwell-frontend/registration/../../../src/components/ApiBoundary.tsx","webpack://@vestwell-frontend/registration/./src/contexts/AuthProvider.tsx","webpack://@vestwell-frontend/registration/./src/contexts/ConfigProvider.tsx","webpack://@vestwell-frontend/registration/../../../src/components/WizardContext.tsx","webpack://@vestwell-frontend/registration/./src/contexts/RegistrationProvider.tsx","webpack://@vestwell-frontend/registration/../../../src/components/PageNotFound.tsx","webpack://@vestwell-frontend/registration/../../../src/components/SuspenseImage.tsx","webpack://@vestwell-frontend/registration/../../../src/consts/strings.ts","webpack://@vestwell-frontend/registration/../../../src/helpers/hexToRgba.ts","webpack://@vestwell-frontend/registration/../../../src/components/Pill.tsx","webpack://@vestwell-frontend/registration/./src/components/Header.tsx","webpack://@vestwell-frontend/registration/../../../src/helpers/safeArea.style.ts","webpack://@vestwell-frontend/registration/../../../src/components/ModalBody.tsx","webpack://@vestwell-frontend/registration/../../../src/components/ModalContainer.tsx","webpack://@vestwell-frontend/registration/../../../src/components/ModalHeader.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Modal.tsx","webpack://@vestwell-frontend/registration/../../../src/components/IconTooltip.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/FormFieldLabel.tsx","webpack://@vestwell-frontend/registration/../../../src/components/RadioButton.tsx","webpack://@vestwell-frontend/registration/../../../src/components/ModalFooter.tsx","webpack://@vestwell-frontend/registration/./src/components/LanguageSelectorModal.tsx","webpack://@vestwell-frontend/registration/./src/components/LanguageSelector.tsx","webpack://@vestwell-frontend/registration/./src/components/BackgroundCard.tsx","webpack://@vestwell-frontend/registration/./src/components/Banner.tsx","webpack://@vestwell-frontend/registration/./src/components/Page.tsx","webpack://@vestwell-frontend/registration/./src/components/BackgroundError.tsx","webpack://@vestwell-frontend/registration/./src/components/CancelRegistrationButton.tsx","webpack://@vestwell-frontend/registration/./src/components/ErrorBoundary.tsx","webpack://@vestwell-frontend/registration/./src/components/Root.tsx","webpack://@vestwell-frontend/registration/../../../src/security/PasswordCheckList.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/Form.tsx","webpack://@vestwell-frontend/registration/../../../src/components/TextBox.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/FormField.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/FormSaveButton.tsx","webpack://@vestwell-frontend/registration/../../src/parseDate.ts","webpack://@vestwell-frontend/registration/../../src/formatDate.ts","webpack://@vestwell-frontend/registration/../../src/validations.ts","webpack://@vestwell-frontend/registration/./src/schemas.ts","webpack://@vestwell-frontend/registration/./src/pages/AccountSetupPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/AdvisorVerificationPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/ContactPage.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/FormRadioGroup.tsx","webpack://@vestwell-frontend/registration/./src/pages/ParticipantAddressVerifyPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/ParticipantCompanyVerifyPage.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/attributes/VerticalAttribute.tsx","webpack://@vestwell-frontend/registration/./src/pages/ParticipantContactPage.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Tooltip.tsx","webpack://@vestwell-frontend/registration/../../../src/components/CookiesBanner.tsx","webpack://@vestwell-frontend/registration/./src/pages/ParticipantVerificationPage.tsx","webpack://@vestwell-frontend/registration/../../src/useSearchParams.tsx","webpack://@vestwell-frontend/registration/./src/pages/SponsorExemptionConfirmationPage.tsx","webpack://@vestwell-frontend/registration/../../../src/components/Checkbox.tsx","webpack://@vestwell-frontend/registration/../../../../src/components/form/FormCheckbox.tsx","webpack://@vestwell-frontend/registration/./src/pages/SponsorExemptionReasonPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/SponsorProgramElectionPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/SponsorVerificationPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/SponsorSendAccessCodePage.tsx","webpack://@vestwell-frontend/registration/./src/pages/UnsupportedRecordkeeperErrorPage.tsx","webpack://@vestwell-frontend/registration/./src/pages/UserLockoutErrorPage.tsx","webpack://@vestwell-frontend/registration/./src/components/ErrorCodeHandler.tsx","webpack://@vestwell-frontend/registration/./src/config/advisorRegistration.ts","webpack://@vestwell-frontend/registration/./src/config/accessCode.ts","webpack://@vestwell-frontend/registration/./src/config/participantRegistration.ts","webpack://@vestwell-frontend/registration/./src/config/sponsorRegistration.ts","webpack://@vestwell-frontend/registration/./src/router.tsx","webpack://@vestwell-frontend/registration/./src/index.tsx"],"sourcesContent":["import { Device } from '@capacitor/device';\n\nexport const isNativeMobile = async () => {\n  const deviceInfo = await Device.getInfo();\n  return ['ios', 'android'].includes(deviceInfo?.platform);\n};\n\nexport const isEmbeddedBrowser = async () => {\n  const isNative = await isNativeMobile();\n  const isInstanceOfCordovaIAB =\n    //@ts-ignore\n    !!window?.webkit?.messageHandlers?.cordova_iab || !!window?.cordova_iab;\n\n  return !isNative && isInstanceOfCordovaIAB;\n};\n","import { useGetWhiteLabelUnauthorized } from '@portal-middleware/hooks';\n\nimport { FC, useEffect } from 'react';\n\nexport const Favicon: FC = () => {\n  const whitelabel = useGetWhiteLabelUnauthorized();\n\n  useEffect(() => {\n    if (!whitelabel.data?.metadata?.favicon) {\n      return;\n    }\n\n    let link: HTMLLinkElement = document.querySelector('link#favicon');\n\n    if (!link) {\n      link = document.createElement('link');\n      link.id = 'favicon';\n      link.type = 'image/x-icon';\n      link.rel = 'icon';\n      document.getElementsByTagName('head')[0].appendChild(link);\n    }\n\n    link.href = whitelabel.data?.metadata?.favicon;\n  }, [whitelabel.data]);\n\n  useEffect(() => {\n    if (!['jpmorgan'].includes(whitelabel.data?.subdomain)) {\n      return;\n    }\n\n    let link: HTMLLinkElement = document.querySelector('link#apple-touch-icon');\n\n    if (!link) {\n      link = document.createElement('link');\n      link.id = 'apple-touch-icon';\n      link.rel = 'apple-touch-icon';\n      document.getElementsByTagName('head')[0].appendChild(link);\n    }\n\n    link.href = `/images/touch-icons/${whitelabel.data?.subdomain}-180x180.png`;\n  }, [whitelabel.data]);\n\n  return null;\n};\n\nFavicon.displayName = 'Favicon';\n","import {\n  createTheme,\n  inputClasses,\n  Theme,\n  ThemeOptions,\n  ThemeProvider\n} from '@mui/material';\nimport merge from '@mui/system/merge';\nimport { useGetWhiteLabelUnauthorized } from '@portal-middleware/hooks';\n\nimport { FC, memo, ReactNode, useMemo } from 'react';\n\nimport { VestwellPalette } from './global';\n\nexport type MaterialThemeProviderProps = {\n  children: ReactNode;\n  isWhitelabeled?: boolean;\n  themeOverrides?: Partial<Theme>;\n};\n\nexport const palette: VestwellPalette = {\n  alert: {\n    contrastText: '#FFFFFF',\n    dark: '#D46E29',\n    light: '#FFAD73',\n    main: '#F58645'\n  },\n  aliceBlue: {\n    contrastText: '#0D0400',\n    dark: '#C4DDE8',\n    light: '#FFFFFF',\n    main: '#F2FBFF'\n  },\n  apple: {\n    contrastText: '#FFFFFF',\n    dark: '#C56767',\n    light: '#F5ADAD',\n    main: '#E68888'\n  },\n  ash: {\n    contrastText: '#FFFFFF',\n    dark: '#B8BEC8',\n    light: '#F1F3F6',\n    main: '#DBE0E7'\n  },\n  azureishWhite: {\n    contrastText: '#241007',\n    dark: '#A8C9E0',\n    light: '#F2FBFF',\n    main: '#DBEFF8'\n  },\n  black: {\n    contrastText: '#FFFFFF',\n    dark: '#000000',\n    light: '#333333',\n    main: '#000000' // no darker variant than black\n  },\n  blister: {\n    contrastText: '#FFFFFF',\n    dark: '#B58A00',\n    light: '#F2CE4F',\n    main: '#DEB304'\n  },\n  bloodOrange: {\n    contrastText: '#FFFFFF',\n    dark: '#C2510D',\n    light: '#FF9050',\n    main: '#EC6517'\n  },\n  blueIvy: {\n    contrastText: '#FFFFFF',\n    dark: '#1F75A1',\n    light: '#65B3E0',\n    main: '#3092CB'\n  },\n  blueSapphire: {\n    contrastText: '#FFFFFF',\n    dark: '#06405B',\n    light: '#3578A6',\n    main: '#0B5A80'\n  },\n  brandyButter: {\n    contrastText: '#FFFFFF',\n    dark: '#C78A61',\n    light: '#F9D2B7',\n    main: '#F4B98F'\n  },\n  cherry: {\n    contrastText: '#FFFFFF',\n    dark: '#991F34',\n    light: '#E46A80',\n    main: '#C52C48'\n  },\n  cornflowerBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#5D49C7',\n    light: '#A18FF8',\n    main: '#7D62EC'\n  },\n  darkBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#0B2444',\n    light: '#446294',\n    main: '#123561'\n  },\n  darkGold: {\n    contrastText: '#FFFFFF',\n    dark: '#5E4F14',\n    light: '#A5964C',\n    main: '#7C6A20'\n  },\n  denim: {\n    contrastText: '#FFFFFF',\n    dark: '#206F98',\n    light: '#5DAEDF',\n    main: '#2C8FC5'\n  },\n  dijon: {\n    contrastText: '#FFFFFF',\n    dark: '#B79D2A',\n    light: '#EBD27C',\n    main: '#DDC04A'\n  },\n  disabled: {\n    contrastText: '#000000',\n    dark: '#6E6E6E',\n    light: '#BFBFBF',\n    main: '#959595'\n  },\n  emphasize: {\n    contrastText: '#FFFFFF',\n    dark: '#012332',\n    light: '#266A82',\n    main: '#033952'\n  },\n  error: {\n    contrastText: '#FFFFFF',\n    dark: '#8B071E',\n    light: '#D8425A',\n    main: '#C00A2B'\n  },\n  ghostWhite: {\n    contrastText: '#241007',\n    dark: '#C8DBE3',\n    light: '#FFFFFF',\n    main: '#F5FBFF'\n  },\n  grannyApple: {\n    contrastText: '#0D0400',\n    dark: '#A3BDB7',\n    light: '#D9F3E0',\n    main: '#C8E6C9'\n  },\n  grey100: {\n    contrastText: '#FFFFFF',\n    dark: '#3A3A3A',\n    light: '#7A7A7A',\n    main: '#4F4F4F'\n  },\n  grey200: {\n    contrastText: '#FFFFFF',\n    dark: '#4E4E4E',\n    light: '#8C8C8C',\n    main: '#6B6B6B'\n  },\n  grey300: {\n    contrastText: '#FFFFFF',\n    dark: '#525252',\n    light: '#A0A0A0',\n    main: '#737373'\n  },\n  grey400: {\n    contrastText: '#FFFFFF',\n    dark: '#676767',\n    light: '#B5B5B5',\n    main: '#919191'\n  },\n  grey50: {\n    contrastText: '#FFFFFF',\n    dark: '#1A1A1A',\n    light: '#565656',\n    main: '#333333'\n  },\n  grey500: {\n    contrastText: '#000000',\n    dark: '#999999',\n    light: '#E0E0E0',\n    main: '#BDBDBD'\n  },\n  grey600: {\n    contrastText: '#000000',\n    dark: '#BDBDBD',\n    light: '#F2F2F2',\n    main: '#E0E0E0'\n  },\n  grey700: {\n    contrastText: '#000000',\n    dark: '#E0E0E0',\n    light: '#FFFFFF',\n    main: '#F2F2F2'\n  },\n  grey800: {\n    contrastText: '#000000',\n    dark: '#E2E2E2',\n    light: '#FFFFFF',\n    main: '#F5F5F5'\n  },\n  grey900: {\n    contrastText: '#000000',\n    dark: '#EDEDED',\n    light: '#FFFFFF',\n    main: '#FAFAFA'\n  },\n  imgPlaceholder: {\n    contrastText: '#000000',\n    dark: '#D9D9D9',\n    light: '#FFFFFF',\n    main: '#F5F5F5'\n  },\n  info: {\n    contrastText: '#FFFFFF',\n    dark: '#07537B',\n    light: '#5BA2D3',\n    main: '#0C78AB'\n  },\n  interact: {\n    contrastText: '#FFFFFF',\n    dark: '#005E90',\n    light: '#4CA5CF',\n    main: '#0679af'\n  },\n  khaki: {\n    contrastText: '#000000',\n    dark: '#B1AC97',\n    light: '#E9E6DB',\n    main: '#D9D4C1'\n  },\n  lightBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#5193BA',\n    light: '#A2D2F4',\n    main: '#77B8E6'\n  },\n  lightGold: {\n    contrastText: '#FFFFFF',\n    dark: '#C3A954',\n    light: '#F5E29C',\n    main: '#E8D377'\n  },\n  lightKhaki: {\n    contrastText: '#000000',\n    dark: '#E0DED6',\n    light: '#FFFFFF',\n    main: '#F4F2ED'\n  },\n  lightestGray: {\n    contrastText: '#FFFFFF',\n    dark: '#6E6E6E',\n    light: '#BFBFBF',\n    main: '#959595'\n  },\n  limeGreen: {\n    contrastText: '#FFFFFF',\n    dark: '#207614',\n    light: '#5FB14E',\n    main: '#2CA01C'\n  },\n  mahogany: {\n    contrastText: '#FFFFFF',\n    dark: '#8E3100',\n    light: '#D66029',\n    main: '#B64200'\n  },\n  malibu: {\n    contrastText: '#FFFFFF',\n    dark: '#48A1D7',\n    light: '#A0DEFF',\n    main: '#72C6FE'\n  },\n  mediumBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#265480',\n    light: '#639AC6',\n    main: '#3574A7'\n  },\n  mediumGold: {\n    contrastText: '#FFFFFF',\n    dark: '#988835',\n    light: '#DEC778',\n    main: '#C3AD4D'\n  },\n  metallicBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#133847',\n    light: '#4D7C95',\n    main: '#1F5670'\n  },\n  mint: {\n    contrastText: '#FFFFFF',\n    dark: '#5AB399',\n    light: '#B4F3DE',\n    main: '#88E6C4'\n  },\n  muck: {\n    contrastText: '#FFFFFF',\n    dark: '#0A3E2B',\n    light: '#3A8066',\n    main: '#105B41'\n  },\n  niceBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#04587F',\n    light: '#46A6D4',\n    main: '#0678AC'\n  },\n  oceanGreen: {\n    contrastText: '#FFFFFF',\n    dark: '#28A475',\n    light: '#70E5B9',\n    main: '#39CC97'\n  },\n  onPayBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#0C78AB',\n    light: '#5BA2D3',\n    main: '#054296'\n  },\n  oxfordBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#012535',\n    light: '#305E75',\n    main: '#033952'\n  },\n  page: {\n    contrastText: '#000000',\n    dark: '#E0E0E0',\n    light: '#FFFFFF',\n    main: '#FAFAFA'\n  },\n  paleSalmon: {\n    contrastText: '#FFFFFF',\n    dark: '#D89366',\n    light: '#F7CEAE',\n    main: '#F4B98F'\n  },\n  pictonBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#3A87B5',\n    light: '#77C4F0',\n    main: '#53ACE3'\n  },\n  pine: {\n    contrastText: '#FFFFFF',\n    dark: '#2EB083',\n    light: '#71E7C0',\n    main: '#45DCA6'\n  },\n  placeholder: {\n    contrastText: '#FFFFFF',\n    dark: '#515151',\n    light: '#8A8A8A',\n    main: '#6B6B6B'\n  },\n  plantation: {\n    contrastText: '#FFFFFF',\n    dark: '#1D4135',\n    light: '#4D7A6B',\n    main: '#285849'\n  },\n  primary: {\n    contrastText: '#FFFFFF',\n    dark: '#005E90',\n    light: '#3394C6',\n    main: '#0679AF'\n  },\n  regalBlue: {\n    contrastText: '#FFFFFF',\n    dark: '#002C50',\n    light: '#276691',\n    main: '#004574'\n  },\n  ruby: {\n    contrastText: '#FFFFFF',\n    dark: '#F03456',\n    light: '#F5768E',\n    main: '#F2526F'\n  },\n  seasick: {\n    contrastText: '#000000',\n    dark: '#AEDFCC',\n    light: '#F1FCF5',\n    main: '#DEF9EA'\n  },\n  secondary: {\n    contrastText: '#FFFFFF',\n    dark: '#116743',\n    light: '#46A07F',\n    main: '#19855F'\n  },\n  sky: {\n    contrastText: '#FFFFFF',\n    dark: '#66A6D0',\n    light: '#A6DBF1',\n    main: '#88CAE6'\n  },\n  slate: {\n    contrastText: '#FFFFFF',\n    dark: '#526679',\n    light: '#92A2B2',\n    main: '#6F889C'\n  },\n  spinach: {\n    contrastText: '#FFFFFF',\n    dark: '#116743',\n    light: '#46A07F',\n    main: '#19855F'\n  },\n  success: {\n    contrastText: '#FFFFFF',\n    dark: '#06603F',\n    light: '#3CA574',\n    main: '#098056'\n  },\n  vividBurgundy: {\n    contrastText: '#FFFFFF',\n    dark: '#6E0F20',\n    light: '#B54156',\n    main: '#9A142C'\n  },\n  warning: {\n    contrastText: '#FFFFFF',\n    dark: '#993600',\n    light: '#E07233',\n    main: '#CB4A00'\n  },\n  water: {\n    contrastText: '#1F5670',\n    dark: '#A5D7E8',\n    light: '#F1FAFF',\n    main: '#DCF1FA'\n  },\n  wheat: {\n    contrastText: '#FFFFFF',\n    dark: '#C7B377',\n    light: '#F2E6B0',\n    main: '#EEDD93'\n  },\n  white: {\n    contrastText: '#000000',\n    dark: '#F0F0F0',\n    light: '#FFFFFF',\n    main: '#FFFFFF'\n  },\n  wintersDay: {\n    contrastText: '#0D0400',\n    dark: '#BEDDE8',\n    light: '#F0FAFF',\n    main: '#DFF4FF'\n  }\n};\n\nexport const theme = createTheme({\n  components: {\n    MuiAccordionSummary: {\n      styleOverrides: {\n        content: {\n          '&.Mui-expanded': {\n            margin: 0\n          },\n          margin: 0\n        }\n      }\n    },\n    MuiAlert: {\n      defaultProps: {\n        'data-component': 'alert'\n      },\n      styleOverrides: {\n        message: {\n          '& a': {\n            color: palette.black.main,\n            textDecoration: 'underline'\n          },\n          '& button.MuiButton-inline': {\n            color: palette.black.main,\n            textDecoration: 'underline'\n          }\n        },\n        root: {\n          borderRadius: '7px',\n          color: palette.grey50.main,\n          fontSize: '0.875rem',\n          lineHeight: 1.5,\n          marginTop: '1rem',\n          padding: '1rem auto',\n          //the same as navbar\n          zIndex: 120\n        }\n      }\n    },\n    MuiAutocomplete: {\n      defaultProps: {\n        'data-component': 'autocomplete'\n      },\n      styleOverrides: {\n        input: ({ theme }) => ({\n          padding: theme.spacing(1, 2)\n        })\n      }\n    },\n    MuiAvatar: {\n      defaultProps: {\n        'data-component': 'avatar'\n      }\n    },\n    MuiBottomNavigation: {\n      styleOverrides: {\n        root: {\n          boxShadow: '0 0 #0000, 0 0 #0000, 0px 0px 10px #72727226',\n          height: 64\n        }\n      }\n    },\n    MuiBottomNavigationAction: {\n      defaultProps: {\n        focusRipple: false\n      },\n      styleOverrides: {\n        root: {\n          color: palette.black.main,\n          height: '4rem',\n          maxWidth: 'unset',\n          minWidth: 'unset',\n          padding: 0\n        }\n      }\n    },\n    MuiButton: {\n      defaultProps: {\n        disableFocusRipple: true\n      },\n      styleOverrides: {\n        contained: {\n          boxShadow: 'none',\n          fontSize: '0.875rem',\n          fontWeight: 700,\n          lineHeight: '1.5',\n          paddingLeft: '1rem',\n          paddingRight: '1rem'\n        },\n        inline: {\n          '&:hover': {\n            backgroundColor: 'transparent'\n          },\n          fontWeight: 700,\n          lineHeight: 'inherit',\n          minWidth: 0,\n          padding: 0,\n          width: 'fit-content'\n        },\n        outlined: ({ ownerState, theme }) => ({\n          border: `1px solid ${\n            theme.palette[ownerState.color]?.main || theme.palette.primary.main\n          }`,\n          fontSize: '0.875rem',\n          fontWeight: 700,\n          lineHeight: '1.5',\n          paddingLeft: '1rem',\n          paddingRight: '1rem'\n        }),\n        root: ({ ownerState, theme }) => ({\n          '& .MuiCircularProgress-root': {\n            color: theme.palette.primary.main\n          },\n          '&.Mui-disabled': {\n            backgroundColor: palette.grey700.main,\n            borderColor: palette.grey600.main,\n            color: palette.grey300.main\n          },\n          '&:focus-visible': {\n            outline: `1px solid ${\n              theme.palette[ownerState.color]?.main ||\n              theme.palette.primary.main\n            }`,\n            outlineOffset: '2px'\n          },\n          borderRadius: '0.375rem',\n          borderWidth: 1,\n          fontSize: '0.875rem',\n          fontWeight: 700,\n          lineHeight: '1.5',\n          marginBottom: 0,\n          textTransform: 'unset'\n        }),\n        text: {\n          fontWeight: 700,\n          lineHeight: '1.5',\n          paddingLeft: '1rem',\n          paddingRight: '1rem'\n        }\n      }\n    },\n    MuiButtonBase: {\n      defaultProps: {\n        'data-component': 'buttonBase'\n      },\n      styleOverrides: {\n        root: {\n          '&.MuiAccordionSummary-root.Mui-expanded': {\n            minHeight: '48px'\n          }\n        }\n      }\n    },\n    MuiButtonGroup: {\n      defaultProps: {\n        disableFocusRipple: true\n      }\n    },\n    MuiCard: {\n      defaultProps: {\n        'data-component': 'card'\n      },\n      styleOverrides: {\n        root: {\n          borderRadius: '0.5rem',\n          padding: '16px'\n        }\n      }\n    },\n    MuiCardContent: {\n      defaultProps: {\n        'data-component': 'cardContent'\n      },\n      styleOverrides: {\n        root: {\n          '&:last-child': {\n            paddingBottom: 0\n          },\n          padding: 0\n        }\n      }\n    },\n    MuiCardHeader: {\n      defaultProps: {\n        'data-component': 'cardHeader'\n      },\n      styleOverrides: {\n        root: {\n          paddingLeft: 0,\n          paddingRight: 0,\n          paddingTop: 0\n        }\n      }\n    },\n    MuiCheckbox: {\n      defaultProps: {\n        disableFocusRipple: true\n      },\n      styleOverrides: {\n        root: ({ ownerState, theme }) => ({\n          '&.Mui-focusVisible': {\n            outline: `1px solid ${\n              theme.palette[ownerState.color]?.main ||\n              theme.palette.primary.main\n            }`,\n            outlineOffset: '2px'\n          },\n          borderRadius: '5px',\n          margin: '0 9px',\n          padding: 0\n        })\n      }\n    },\n    MuiCssBaseline: {\n      styleOverrides: theme => ({\n        '.bg-primary': {\n          backgroundColor: theme.palette.primary.main\n        },\n        '.border-primary': {\n          borderColor: theme.palette.primary.main\n        },\n        //TODO: return to it once Form is refactored\n        '.contents': {\n          display: 'contents'\n        },\n        '.list-disc': {\n          listStyleType: 'disc'\n        },\n        '.list-inside': {\n          listStylePosition: 'inside'\n        },\n        '.list-outside': {\n          listStylePosition: 'outside'\n        },\n        '.sr-only': {\n          borderWidth: 0,\n          clip: 'rect(0, 0, 0, 0)',\n          height: '1px',\n          margin: '-1px',\n          overflow: 'hidden',\n          padding: 0,\n          position: 'absolute',\n          whiteSpace: 'nowrap',\n          width: '1px'\n        },\n        '.text-primary': {\n          color: theme.palette.primary.main\n        },\n        'a:focus-visible': {\n          borderRadius: '5px',\n          outline: `1px solid ${theme.palette.primary.main}`,\n          outlineOffset: '2px'\n        },\n        'a:not(.MuiButtonBase-root)': {\n          fontWeight: 700\n        }\n      })\n    },\n    MuiDataGrid: {\n      defaultProps: {\n        'data-component': 'dataGrid'\n      },\n      styleOverrides: {\n        cell: ({ theme }) => ({\n          '&[aria-invalid=\"true\"].MuiDataGrid-cell--editing:focus-within': {\n            outline: 'none'\n          },\n          '&[aria-invalid=\"true\"].MuiDataGrid-withBorderColor': {\n            // todo:: find a way to better blend this into the palette\n            backgroundColor: '#FEF8FF',\n            border: `solid ${theme.palette.error.main} 1px`,\n            outline: 'none'\n          }\n        }),\n        editInputCell: ({ theme }) => ({\n          '& input': {\n            color: theme.palette.primary.main,\n            fontSize: 'initial',\n            padding: theme.spacing(0, 1)\n          },\n          height: '100%',\n          margin: 0\n        }),\n        overlayWrapperInner: {\n          display: 'flex',\n          flexDirection: 'column'\n        },\n        root: ({ theme }) => ({\n          '& .MuiDataGrid-cell': {\n            alignItems: 'center',\n            display: 'flex',\n            fontSize: '1rem',\n            lineHeight: 1.43,\n            padding: '0.25rem'\n          },\n          '& .MuiDataGrid-cell--editable': {\n            cursor: 'cell'\n          },\n          '& .MuiDataGrid-cell--editable > input': {\n            padding: '0.25rem !important'\n          },\n          '& .MuiDataGrid-cell--textRight.MuiDataGrid-cell--editable > input': {\n            textAlign: 'right'\n          },\n          '& .MuiDataGrid-columnHeader': {\n            color: theme.palette.grey50.main,\n            fontSize: '0.6875rem',\n            fontWeight: 800,\n            letterSpacing: '0.07em',\n            lineHeight: 1.5,\n            padding: '0 0.25rem',\n            textTransform: 'uppercase'\n          },\n          '& .MuiDataGrid-columnHeader .MuiDataGrid-iconButtonContainer': {\n            visibility: 'visible',\n            width: 'auto'\n          },\n          '& .MuiDataGrid-columnHeader--alignRight': {\n            textAlign: 'right'\n          },\n          '& .MuiDataGrid-columnHeader:not(.MuiDataGrid-columnHeader--sorted) .MuiDataGrid-sortIcon':\n            {\n              opacity: '1 !important'\n            },\n          '& .MuiDataGrid-columnHeaderTitle': {\n            fontWeight: 800\n          },\n          '& .MuiDataGrid-columnHeaders': {\n            height: '100%'\n          },\n          '& .MuiDataGrid-columnHeadersInner': {\n            alignItems: 'center',\n            height: 'inherit'\n          },\n          '& .MuiDataGrid-columnSeparator': {\n            display: 'none'\n          },\n          '& .MuiDataGrid-container--top [role=row]': {\n            backgroundColor: 'inherit'\n          },\n          '& .MuiDataGrid-row:hover': {\n            backgroundColor: theme.palette.ghostWhite.main\n          },\n          '& .MuiIconButton-root': {\n            color: theme.palette.grey300.main\n          },\n          '& .MuiIconButton-root:hover': {\n            backgroundColor: 'transparent',\n            color: theme.palette.primary.main\n          },\n          '& .MuiTablePagination-displayedRows': {\n            color: theme.palette.grey100.main,\n            fontSize: '1rem',\n            marginBottom: 0\n          },\n          '& .MuiTablePagination-selectLabel': {\n            color: theme.palette.grey100.main,\n            fontSize: '1rem',\n            marginBottom: 0\n          },\n          '&.MuiDataGrid-row--editing': {\n            boxShadow: 'none'\n          },\n          border: 0,\n          color: theme.palette.grey100.main\n        })\n      }\n    },\n    MuiIconButton: {\n      defaultProps: {\n        disableFocusRipple: true\n      },\n      styleOverrides: {\n        root: ({ ownerState, theme }) => ({\n          '&:focus-visible': {\n            outline: `1px solid ${\n              theme.palette[ownerState.color]?.main ||\n              theme.palette.primary.main\n            }`,\n            outlineOffset: '2px'\n          }\n        }),\n        sizeSmall: {\n          '& > svg': {\n            height: '0.75em',\n            width: '0.75em'\n          },\n          height: '0.75em',\n          width: '0.75em'\n        }\n      }\n    },\n    MuiInput: {\n      styleOverrides: {\n        input: {\n          textAlign: 'inherit'\n        },\n        root: ({ ownerState, theme }) => ({\n          '& input::placeholder': {\n            color: theme.palette.grey300.main,\n            opacity: 1\n          },\n          '&:after': {\n            borderBottom: 0\n          },\n          '&:before': {\n            borderBottom: `1px dashed ${\n              ownerState['data-no-focus-style']\n                ? 'transparent !important'\n                : theme.palette[ownerState.disabled ? 'grey600' : 'grey300']\n                    .main\n            }`\n          },\n          [`label+&.${inputClasses.root}`]: {\n            marginTop: 0\n          },\n          [`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}, .${inputClasses.focused}):before`]:\n            {\n              borderBottom: ownerState['data-no-focus-style']\n                ? `1px dashed transparent !important`\n                : `1px dashed ${theme.palette.primary.main}`\n            },\n          [`&.${inputClasses.focused}:hover:before`]: {\n            borderBottom: 0\n          },\n          [`&.${inputClasses.focused}`]: {\n            outline: ownerState['data-no-focus-style']\n              ? 'none'\n              : `1px solid ${theme.palette.primary.main}`\n          },\n          [`&.${inputClasses.focused}:before`]: {\n            borderBottom: 0\n          },\n          [`&.${inputClasses.focused}:after`]: {\n            borderBottom: 0\n          },\n          backgroundColor:\n            theme.palette[ownerState.disabled ? 'grey800' : 'white'].main,\n          borderRadius: theme.spacing(0.5),\n          color:\n            theme.palette[ownerState.disabled ? 'grey400' : 'primary'].main,\n          marginBottom: 0,\n          padding: theme.spacing(1, 2)\n        })\n      }\n    },\n    MuiInputLabel: {\n      styleOverrides: {\n        root: {\n          color: palette.grey100.main,\n          fontWeight: 700,\n          marginBottom: 0,\n          position: 'relative',\n          transform: 'none',\n          whiteSpace: 'inherit',\n          zIndex: 0\n        }\n      }\n    },\n    MuiList: {\n      defaultProps: {\n        'data-component': 'list'\n      }\n    },\n    MuiListItem: {\n      defaultProps: {\n        'data-component': 'listItem'\n      }\n    },\n    MuiListItemButton: {\n      defaultProps: {\n        'data-component': 'listItemButton'\n      }\n    },\n    MuiListSubheader: {\n      defaultProps: {\n        'data-component': 'listSubheader'\n      }\n    },\n    MuiMenuItem: {\n      styleOverrides: {\n        root: ({ theme }) => ({\n          '&.Mui-selected': {\n            '&:focus': {\n              backgroundColor: theme.palette.grey900.main\n            },\n            '&:hover': {\n              backgroundColor: theme.palette.grey900.main\n            },\n            backgroundColor: theme.palette.white.main,\n            color: theme.palette.primary.main,\n            fontWeight: 700\n          },\n          '&:focus': {\n            backgroundColor: theme.palette.grey900.main,\n            borderLeft: `4px solid ${theme.palette.primary.main}`\n          },\n          '&:hover': {\n            backgroundColor: theme.palette.grey900.main\n          },\n          backgroundColor: theme.palette.white.main,\n          borderBottomColor: theme.palette.grey600.main,\n          borderBottomStyle: 'dashed',\n          borderBottomWidth: 1,\n          borderLeft: '4px solid transparent',\n          color: theme.palette.grey100.main,\n          fontSize: '1rem',\n          fontWeight: 400,\n          lineHeight: '1.5',\n          margin: 0,\n          outline: 'none',\n          padding: 8,\n          userSelect: 'none'\n        })\n      }\n    },\n    MuiModal: {\n      defaultProps: {\n        'data-component': 'modal'\n      }\n    },\n    MuiPaper: {\n      defaultProps: {\n        'data-component': 'paper'\n      },\n      styleOverrides: {\n        elevation0: ({ theme }) => ({\n          '&.MuiCard-root': {\n            border: `${theme.spacing(0.25)} solid ${theme.palette.grey600.main}`\n          }\n        }),\n        // todo:: temporary workaround until we can get a valid shadow list from ux\n        elevation1: ({ theme }) => ({\n          '&.MuiCard-root': {\n            boxShadow: theme.shadows[24]\n          }\n        })\n      }\n    },\n    MuiPopper: {\n      defaultProps: {\n        'data-component': 'popper'\n      }\n    },\n    MuiRadio: {\n      defaultProps: {\n        disableFocusRipple: true\n      },\n      styleOverrides: {\n        root: ({ ownerState, theme }) => ({\n          '&.Mui-focusVisible': {\n            outline: `1px solid ${\n              theme.palette[ownerState.color]?.main ||\n              theme.palette.primary.main\n            }`,\n            outlineOffset: '2px'\n          },\n          padding: 0\n        })\n      }\n    },\n    MuiSkeleton: {\n      defaultProps: {\n        'data-component': 'skeleton'\n      }\n    },\n    MuiSvgIcon: {\n      styleOverrides: {\n        fontSizeLarge: {\n          height: '1.2em',\n          width: '1.2em'\n        },\n        fontSizeSmall: {\n          height: '0.85em',\n          width: '0.85em'\n        }\n      }\n    },\n    MuiTableCell: {\n      styleOverrides: {\n        head: ({ theme }) => ({\n          color: theme.palette.grey50.main,\n          fontSize: '0.6875rem',\n          fontWeight: 800,\n          letterSpacing: '0.07em',\n          lineHeight: 1.5,\n          textTransform: 'uppercase'\n        }),\n        root: {\n          '&[role=\"rowheader\"]': {\n            fontWeight: 600\n          },\n          ':first-of-type': {\n            paddingLeft: '0.25rem'\n          },\n          ':last-of-type': {\n            paddingRight: '0.25rem'\n          },\n          fontSize: '1rem',\n          padding: '0.6875rem'\n        }\n      }\n    },\n    MuiTableRow: {\n      styleOverrides: {\n        root: {\n          ':last-child:not(.MuiTableRow-head) .MuiTableCell-root': {\n            borderBottom: '1px solid transparent'\n          }\n        }\n      }\n    },\n    MuiToggleButton: {\n      styleOverrides: {\n        root: {\n          fontSize: '0.875rem',\n          fontWeight: 500,\n          lineHeight: '1.5',\n          padding: '0.5rem 0.25rem',\n          width: '3rem'\n        }\n      }\n    },\n    MuiToolbar: {\n      defaultProps: {\n        'data-component': 'toolbar'\n      },\n      styleOverrides: {\n        root: ({ theme }) => ({\n          '& .MuiTablePagination-actions': {\n            color: theme.palette.grey100.main,\n            fontSize: '1rem',\n            marginBottom: 0\n          },\n          '& .MuiTablePagination-displayedRows': {\n            color: theme.palette.grey100.main,\n            fontSize: '1rem',\n            marginBottom: 0\n          },\n          '& .MuiTablePagination-selectLabel': {\n            color: theme.palette.grey100.main,\n            fontSize: '1rem',\n            marginBottom: 0\n          }\n        })\n      }\n    },\n    MuiTooltip: {\n      styleOverrides: {\n        arrow: {\n          '&::before': {\n            boxShadow: '0 2px 8px rgba(0, 0, 0, 0.25)'\n          },\n          color: palette.white.main\n        },\n        tooltip: {\n          backgroundColor: palette.white.main,\n          boxShadow: '0 2px 8px rgba(0, 0, 0, 0.25)',\n          color: palette.grey300.main,\n          fontSize: '0.875rem',\n          fontWeight: 400,\n          padding: '0.75rem'\n        }\n      }\n    },\n    MuiTypography: {\n      defaultProps: {\n        'data-component': 'text'\n      }\n    },\n    Navbar: {\n      styleOverrides: {\n        desktop: {\n          selected: 'rgb(250,250,250)',\n          unselected: 'rgb(242,242,242)'\n        },\n        mobile: {\n          selected: '#153850FF',\n          unselected: 'rgb(250,250,250)'\n        }\n      }\n    }\n  },\n  palette,\n  shadows: [\n    'none',\n    '0px 2px 1px -1px rgba(114, 114, 114, 0.15),0px 1px 1px 0px rgba(114, 114, 114, 0.15),0px 1px 3px 0px rgba(114, 114, 114, 0.15)',\n    '0px 3px 3px -2px rgba(114, 114, 114, 0.15),0px 3px 4px 0px rgba(114, 114, 114, 0.15),0px 1px 8px 0px rgba(114, 114, 114, 0.15)',\n    '0px 3px 1px -2px rgba(114, 114, 114, 0.15),0px 2px 2px 0px rgba(114, 114, 114, 0.15),0px 1px 5px 0px rgba(114, 114, 114, 0.15)',\n    '0px 2px 4px -1px rgba(114, 114, 114, 0.15),0px 4px 5px 0px rgba(114, 114, 114, 0.15),0px 1px 10px 0px rgba(114, 114, 114, 0.15)',\n    '0px 3px 5px -1px rgba(114, 114, 114, 0.15),0px 5px 8px 0px rgba(114, 114, 114, 0.15),0px 1px 14px 0px rgba(114, 114, 114, 0.15)',\n    '0px 3px 5px -1px rgba(114, 114, 114, 0.15),0px 6px 10px 0px rgba(114, 114, 114, 0.15),0px 1px 18px 0px rgba(114, 114, 114, 0.15)',\n    '0px 4px 5px -2px rgba(114, 114, 114, 0.15),0px 7px 10px 1px rgba(114, 114, 114, 0.15),0px 2px 16px 1px rgba(114, 114, 114, 0.15)',\n    '0px 5px 5px -3px rgba(114, 114, 114, 0.15),0px 8px 10px 1px rgba(114, 114, 114, 0.15),0px 3px 14px 2px rgba(114, 114, 114, 0.15)',\n    '0px 5px 6px -3px rgba(114, 114, 114, 0.15),0px 9px 12px 1px rgba(114, 114, 114, 0.15),0px 3px 16px 2px rgba(114, 114, 114, 0.15)',\n    '0px 6px 6px -3px rgba(114, 114, 114, 0.15),0px 10px 14px 1px rgba(114, 114, 114, 0.15),0px 4px 18px 3px rgba(114, 114, 114, 0.15)',\n    '0px 6px 7px -4px rgba(114, 114, 114, 0.15),0px 11px 15px 1px rgba(114, 114, 114, 0.15),0px 4px 20px 3px rgba(114, 114, 114, 0.15)',\n    '0px 7px 8px -4px rgba(114, 114, 114, 0.15),0px 12px 17px 2px rgba(114, 114, 114, 0.15),0px 5px 22px 4px rgba(114, 114, 114, 0.15)',\n    '0px 7px 8px -4px rgba(114, 114, 114, 0.15),0px 13px 19px 2px rgba(114, 114, 114, 0.15),0px 5px 24px 4px rgba(114, 114, 114, 0.15)',\n    '0px 7px 9px -4px rgba(114, 114, 114, 0.15),0px 14px 21px 2px rgba(114, 114, 114, 0.15),0px 5px 26px 4px rgba(114, 114, 114, 0.15)',\n    '0px 8px 9px -5px rgba(114, 114, 114, 0.15),0px 15px 22px 2px rgba(114, 114, 114, 0.15),0px 6px 28px 5px rgba(114, 114, 114, 0.15)',\n    '0px 8px 10px -5px rgba(114, 114, 114, 0.15),0px 16px 24px 2px rgba(114, 114, 114, 0.15),0px 6px 30px 5px rgba(114, 114, 114, 0.15)',\n    '0px 8px 11px -5px rgba(114, 114, 114, 0.15),0px 17px 26px 2px rgba(114, 114, 114, 0.15),0px 6px 32px 5px rgba(114, 114, 114, 0.15)',\n    '0px 9px 11px -5px rgba(114, 114, 114, 0.15),0px 18px 28px 2px rgba(114, 114, 114, 0.15),0px 7px 34px 6px rgba(114, 114, 114, 0.15)',\n    '0px 9px 12px -6px rgba(114, 114, 114, 0.15),0px 19px 29px 2px rgba(114, 114, 114, 0.15),0px 7px 36px 6px rgba(114, 114, 114, 0.15)',\n    '0px 10px 13px -6px rgba(114, 114, 114, 0.15),0px 20px 31px 3px rgba(114, 114, 114, 0.15),0px 8px 38px 7px rgba(114, 114, 114, 0.15)',\n    '0px 10px 13px -6px rgba(114, 114, 114, 0.15),0px 21px 33px 3px rgba(114, 114, 114, 0.15),0px 8px 40px 7px rgba(114, 114, 114, 0.15)',\n    '0px 10px 14px -6px rgba(114, 114, 114, 0.15),0px 22px 35px 3px rgba(114, 114, 114, 0.15),0px 8px 42px 7px rgba(114, 114, 114, 0.15)',\n    '0px 11px 14px -7px rgba(114, 114, 114, 0.15),0px 23px 36px 3px rgba(114, 114, 114, 0.15),0px 9px 44px 8px rgba(114, 114, 114, 0.15)',\n    '0 1px 3px #00000026' // shadow which is in use for all cards\n  ],\n  spacing: 4,\n  typography: {\n    a1: {\n      fontSize: '3rem',\n      fontWeight: 300,\n      lineHeight: 1.2\n    },\n    a2: {\n      fontSize: '3rem',\n      fontWeight: 400,\n      lineHeight: 1.2\n    },\n    allVariants: {\n      marginBottom: '1rem'\n    },\n    b1: {\n      fontSize: '2.5rem',\n      fontWeight: 300,\n      letterSpacing: '0.025rem',\n      lineHeight: 1.15\n    },\n    b2: {\n      fontSize: '2.5rem',\n      fontWeight: 600,\n      letterSpacing: '0.025rem',\n      lineHeight: 1.15\n    },\n    c1: {\n      fontSize: '2.0625rem',\n      fontWeight: 400,\n      letterSpacing: '0.02063rem',\n      lineHeight: 1.15\n    },\n    c2: {\n      fontSize: '2.0625rem',\n      fontWeight: 600,\n      letterSpacing: '0.02063rem',\n      lineHeight: 1.15\n    },\n    d1: {\n      fontSize: '1.6875rem',\n      fontWeight: 400,\n      letterSpacing: '0.01688rem',\n      lineHeight: 1.15\n    },\n    d2: {\n      fontSize: '1.6875rem',\n      fontWeight: 700,\n      letterSpacing: '0.01688rem',\n      lineHeight: 1.15\n    },\n    e1: {\n      fontSize: '1.5rem',\n      fontWeight: 400,\n      letterSpacing: '0.015rem',\n      lineHeight: 1.25\n    },\n    e2: {\n      fontSize: '1.5rem',\n      fontWeight: 700,\n      letterSpacing: '0.015rem',\n      lineHeight: 1.25\n    },\n    f1: {\n      fontSize: '1.1875rem',\n      fontWeight: 400,\n      letterSpacing: '0.01188rem',\n      lineHeight: 1.4\n    },\n    f2: {\n      fontSize: '1.1875rem',\n      fontWeight: 700,\n      letterSpacing: '0.01188rem',\n      lineHeight: 1.4\n    },\n    fontFamily: [\n      'Nunito Sans',\n      'ui-sans-serif',\n      'system-ui',\n      '-apple-system',\n      'BlinkMacSystemFont',\n      'Segoe UI',\n      'Roboto',\n      'Helvetica Neue',\n      'Arial',\n      'Noto Sans,sans-serif',\n      'Apple Color Emoji',\n      'Segoe UI Emoji',\n      'Segoe UI Symbol',\n      'Noto Color Emoji'\n    ].join(','),\n    fontSize: 13,\n    g1: {\n      fontSize: '1rem',\n      fontWeight: 400,\n      letterSpacing: '0.01rem',\n      lineHeight: 1.36\n    },\n    g2: {\n      fontSize: '1rem',\n      fontWeight: 700,\n      letterSpacing: '0.0075rem',\n      lineHeight: 1.36\n    },\n    htmlFontSize: 13,\n    i1: {\n      fontFamily: 'Nunito Sans',\n      fontSize: '0.875rem',\n      fontWeight: 400,\n      letterSpacing: '0.00875rem',\n      lineHeight: 1.4\n    },\n    i2: {\n      fontFamily: 'Nunito Sans',\n      fontSize: '0.875rem',\n      fontWeight: 700,\n      letterSpacing: '0.00875rem',\n      lineHeight: 1.4\n    },\n    j1: {\n      fontFamily: 'Nunito Sans',\n      fontSize: '0.75rem',\n      fontWeight: 600,\n      letterSpacing: '0.0075rem',\n      lineHeight: 1.4\n    },\n    j2: {\n      fontFamily: 'Nunito Sans',\n      fontSize: '0.75rem',\n      fontWeight: 700,\n      letterSpacing: '0.015rem',\n      lineHeight: 1.4\n    },\n    k3: {\n      fontSize: '0.6875rem',\n      fontWeight: 800,\n      letterSpacing: '0.055rem',\n      lineHeight: 1.45,\n      textTransform: 'uppercase'\n    }\n  }\n} as ThemeOptions);\n\nexport const MaterialThemeProvider: FC<MaterialThemeProviderProps> = memo(\n  ({ themeOverrides = {}, ...props }) => {\n    const whitelabel = useGetWhiteLabelUnauthorized({\n      query: {\n        enabled: !!props.isWhitelabeled,\n        keepPreviousData: true,\n        useErrorBoundary: false\n      }\n    });\n\n    const muiTheme = useMemo(\n      () => ({\n        ...merge(\n          theme,\n          !!props.isWhitelabeled && whitelabel.data?.theme\n            ? whitelabel.data?.theme\n            : themeOverrides\n        )\n      }),\n      [whitelabel.data?.theme, props.isWhitelabeled, themeOverrides]\n    );\n\n    return <ThemeProvider theme={muiTheme}>{props.children}</ThemeProvider>;\n  }\n);\n\nMaterialThemeProvider.displayName = 'MaterialThemeProvider';\n","import { StyledEngineProvider } from '@mui/material';\nimport { MaterialThemeProvider } from '@vestwell-frontend/style';\n\nimport { FC, memo, ReactNode } from 'react';\n\nexport type ThemeProviderProps = {\n  isWhitelabeled?: boolean;\n  children: ReactNode;\n};\n\nexport const ThemeProvider: FC<ThemeProviderProps> = memo(props => {\n  return (\n    <StyledEngineProvider injectFirst>\n      <MaterialThemeProvider isWhitelabeled={props.isWhitelabeled}>\n        {props.children}\n      </MaterialThemeProvider>\n    </StyledEngineProvider>\n  );\n});\n\nThemeProvider.displayName = 'ThemeProvider';\n","import { CircularProgress, Stack, StackProps } from '@mui/material';\n\nimport { FC } from 'react';\n\nexport type LoaderProps = {\n  'data-testid'?: string;\n  position?: StackProps['position'];\n};\n\nexport const Loader: FC<LoaderProps> = props => (\n  <Stack\n    alignItems='center'\n    aria-busy\n    bottom={0}\n    data-component='Loader'\n    data-testid={props['data-testid']}\n    justifyContent='center'\n    left={0}\n    position={props.position || 'absolute'}\n    right={0}\n    top={0}>\n    <CircularProgress />\n  </Stack>\n);\n\nLoader.displayName = 'Loader';\n","import { createContext } from 'react';\n\nexport type PageContextValue = {\n  hasMainSiblings: boolean;\n};\n\nexport const PageContext = createContext<PageContextValue>(null);\n","import { styled } from '@mui/material';\n\nimport { FC, ReactNode } from 'react';\n\nexport type PageFooterProps = {\n  /** Rendered within bar */\n  children?: ReactNode;\n  /** Style for container */\n  className?: string;\n  /** Containing element to render in DOM */\n  role?: string;\n  sticky?: boolean;\n};\n\nconst StylePageFooter = styled('div', {\n  shouldForwardProp: prop => prop !== 'sticky'\n})<{ sticky?: boolean }>(({ theme, sticky }) => ({\n  display: 'flex',\n  flexDirection: 'row',\n  paddingBottom: theme.spacing(4),\n  paddingRight: theme.spacing(4),\n  paddingTop: theme.spacing(4),\n  width: '100%',\n  ...(sticky\n    ? {\n        backgroundColor: theme.palette.white.main,\n        bottom: 0,\n        boxShadow: '1px -3px 5px #72727226',\n        marginLeft: theme.spacing(-12),\n        marginRight: theme.spacing(-12),\n        paddingLeft: theme.spacing(12),\n        paddingRight: theme.spacing(12),\n        position: 'sticky',\n        width: 'unset',\n        [theme.breakpoints.down('lg')]: {\n          marginLeft: theme.spacing(-10),\n          marginRight: theme.spacing(-10),\n          paddingLeft: theme.spacing(10)\n        },\n        [theme.breakpoints.down('sm')]: {\n          marginLeft: theme.spacing(-4),\n          marginRight: theme.spacing(-4),\n          paddingLeft: theme.spacing(4)\n        }\n      }\n    : {\n        gridArea: 'pageFooter'\n      })\n}));\n\nexport const PageFooter: FC<PageFooterProps> = props => {\n  return (\n    <StylePageFooter {...props} data-component='pageFooter'>\n      {props.children}\n    </StylePageFooter>\n  );\n};\n\nPageFooter.displayName = 'PageFooter';\n","import { SecureStoragePlugin } from 'capacitor-secure-storage-plugin';\nimport Cookies from 'js-cookie';\n\nexport const getBearerToken = async (\n  isMobile: boolean\n): Promise<string | null> => {\n  if (isMobile) {\n    try {\n      const tokenData = await SecureStoragePlugin.get({ key: 'token' });\n      const tokenObject = tokenData?.value ? JSON.parse(tokenData.value) : null;\n      return tokenObject?.access_token && tokenObject?.token_type\n        ? `${tokenObject.token_type} ${tokenObject.access_token}`\n        : null;\n    } catch (e) {\n      console.warn('SecureStoragePlugin.get failed', e);\n    }\n  } else {\n    const bearerToken = Cookies.get('token');\n    return bearerToken && bearerToken?.indexOf('Bearer') === 0\n      ? bearerToken\n      : null;\n  }\n};\n","import { camelCase } from 'lodash';\nimport { useMemo } from 'react';\n\nexport function useCamelCase(text?: string) {\n  return useMemo(() => camelCase(text || ''), [text]);\n}\n","export type HttpErrorType = Error & {\n  code?: string;\n  headers?: Record<string, unknown>;\n  message: string;\n  meta?: Record<string, unknown>;\n  method?: string;\n  name: string;\n  status?: number;\n  traceId?: string;\n  url?: string;\n};\n\nexport class HttpError extends Error {\n  code?: string;\n  headers?: Record<string, unknown>;\n  message: string;\n  meta?: Record<string, unknown>;\n  method?: string;\n  name: string;\n  status?: number;\n  traceId?: string;\n  url?: string;\n\n  constructor(props: HttpErrorType) {\n    super(props.message);\n    this.code = props.code;\n    this.headers = props.headers;\n    this.name = props.name;\n    this.message = props.message;\n    this.status = props.status;\n    this.traceId = props.traceId;\n    this.meta = props.meta;\n    this.method = props.method;\n    this.url = props.url;\n  }\n}\n\nexport class HttpClientError extends HttpError {\n  constructor(props?: HttpErrorType) {\n    super({\n      ...props,\n      message: props?.message,\n      name: 'HttpClientError',\n      status: props?.status\n    });\n  }\n}\n\nexport function getErrorCode(\n  body: Record<string, unknown>,\n  defaultCode?: string\n) {\n  return (\n    body.errors?.[0]?.code ?? body.code ?? defaultCode ?? 'UNKNOWN_EXCEPTION'\n  );\n}\n","import { useGetWhiteLabelUnauthorized } from '@portal-middleware/hooks';\n\nimport { useEffect } from 'react';\n\nexport const useDocumentTitle = (\n  title: string | undefined,\n  ...args: string[]\n) => {\n  const whitelabel = useGetWhiteLabelUnauthorized();\n\n  useEffect(() => {\n    if (!whitelabel.error && !!whitelabel.data?.metadata?.title) {\n      document.title = title\n        ? [title, ...args, whitelabel.data.metadata.title].join(' / ')\n        : whitelabel.data.metadata.title;\n    }\n  }, [title, args, whitelabel.error, whitelabel.data?.metadata?.title]);\n};\n","import { FileOpener } from '@capacitor-community/file-opener';\nimport { Directory, Filesystem } from '@capacitor/filesystem';\nimport { isNativeMobile } from '@vestwell-frontend/helpers';\n\nimport axios from 'axios';\nimport { MouseEvent, useCallback, useEffect, useState } from 'react';\n\nimport { useBearerToken } from './useBearerToken';\nimport { useNotifications } from './useNotifications';\n\nconst blobToBase64DataUrl = (blob: Blob): Promise<string> => {\n  return new Promise((resolve, reject) => {\n    const reader = new FileReader();\n    reader.onloadend = () => resolve(reader.result as string);\n    reader.onerror = reject;\n    reader.readAsDataURL(blob);\n  });\n};\n\nfunction triggerFileDownload(data: string, name: string) {\n  const link = document.createElement('a');\n  link.href = data;\n  link.download = name;\n  document.body.appendChild(link);\n  link.click();\n  document.body.removeChild(link);\n}\n\nexport const useDownload = (\n  pathname: string,\n  avoidPreview: boolean = false\n) => {\n  const [fileUri, setFileUri] = useState<string | null>(null);\n  const [fileName, setFileName] = useState<string | null>(null);\n  const [isLoading, setIsLoading] = useState(false);\n  const [isMobileApp, setIsMobileApp] = useState<boolean | null>(null);\n\n  const [token] = useBearerToken();\n\n  const notify = useNotifications();\n\n  useEffect(() => {\n    isNativeMobile().then(setIsMobileApp);\n  }, []);\n\n  return useCallback(\n    async (e: MouseEvent<HTMLElement>) => {\n      e.preventDefault();\n\n      // If already loading or data exists, prevent further action\n      if (isLoading) {\n        notify.info('Document is already being downloaded.');\n        return;\n      }\n\n      if (fileUri) {\n        if (!isMobileApp) {\n          if (avoidPreview) {\n            triggerFileDownload(fileUri, fileName); // For web, download existing document\n          } else {\n            window.open(fileUri, '_blank'); // For web, open existing document\n          }\n        } else {\n          try {\n            // For mobile, re-open the file if already downloaded\n            await FileOpener.open({\n              filePath: fileUri,\n              openWithDefault: true\n            });\n          } catch (error) {\n            console.error('Error re-opening file on mobile', error);\n            notify.error('Error re-opening file');\n          }\n        }\n        return;\n      }\n\n      notify.info(\n        'The document is being prepared for download. This may take a few seconds.'\n      );\n      setIsLoading(true);\n\n      try {\n        const response = await axios.get(pathname, {\n          headers: {\n            Authorization: token\n          },\n          responseType: 'blob'\n        });\n\n        const blob = response.data;\n        const contentDisposition = response.headers['content-disposition'];\n        const downloadedFileName = contentDisposition\n          ? contentDisposition\n              .split('filename=')[1]\n              ?.split(';')[0]\n              ?.replace(/\"/g, '')\n          : `${new Date().getTime()}.${getFileExtension(blob.type)}`;\n        setFileName(downloadedFileName);\n\n        if (!isMobileApp) {\n          if (avoidPreview) {\n            // Web: just download document\n            const dataUrl = await blobToBase64DataUrl(blob);\n            setFileUri(dataUrl);\n            triggerFileDownload(dataUrl, downloadedFileName);\n          } else {\n            // Web: Open the blob as a new URL\n            const blobUrl = window.URL.createObjectURL(blob);\n            setFileUri(blobUrl);\n            window.open(blobUrl, '_blank'); // open in new tab\n          }\n        } else {\n          // Mobile: Save file and open with default app\n          const dataUrl = await blobToBase64DataUrl(blob);\n\n          const savedFile = await Filesystem.writeFile({\n            data: dataUrl,\n            directory: Directory.Documents,\n            path: downloadedFileName,\n            recursive: true\n          });\n\n          setFileUri(savedFile.uri); // Store file URI for reuse\n\n          await FileOpener.open({\n            filePath: savedFile.uri,\n            openWithDefault: true\n          });\n        }\n      } catch (error) {\n        console.error('Failed to fetch document', error);\n        notify.error('Failed to fetch document');\n      } finally {\n        setIsLoading(false);\n      }\n    },\n    [fileUri, isLoading, isMobileApp, pathname, avoidPreview, token]\n  );\n};\n\nconst getFileExtension = (mimeType: string) => {\n  switch (mimeType) {\n    case 'application/pdf':\n      return 'pdf';\n    case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':\n      return 'xlsx';\n    default:\n      return mimeType.split('/')[1];\n  }\n};\n","import { OptionsObject, SnackbarKey, useSnackbar } from 'notistack';\nimport { ReactNode, useMemo } from 'react';\n\ntype MessageFn = (message: ReactNode, options?: OptionsObject) => SnackbarKey;\n\nexport type UseNotifications = {\n  close: (key?: SnackbarKey) => void;\n  error: MessageFn;\n  info: MessageFn;\n  success: MessageFn;\n  warning: MessageFn;\n};\n\nexport function useNotifications(): UseNotifications {\n  const snackbar = useSnackbar();\n\n  return useMemo(\n    () => ({\n      close: key => snackbar.closeSnackbar(key),\n      error: (message: ReactNode, options?: OptionsObject) =>\n        snackbar.enqueueSnackbar(message, {\n          ...options,\n          variant: 'error'\n        }),\n      info: (message: ReactNode, options?: OptionsObject) =>\n        snackbar.enqueueSnackbar(message, {\n          ...options,\n          variant: 'info'\n        }),\n      success: (message: ReactNode, options?: OptionsObject) =>\n        snackbar.enqueueSnackbar(message, {\n          ...options,\n          variant: 'success'\n        }),\n      warning: (message: ReactNode, options?: OptionsObject) =>\n        snackbar.enqueueSnackbar(message, {\n          ...options,\n          variant: 'warning'\n        })\n    }),\n    [snackbar.closeSnackbar, snackbar.enqueueSnackbar]\n  );\n}\n","import { getBearerToken, isNativeMobile } from '@vestwell-frontend/helpers';\n\nimport {\n  Dispatch,\n  SetStateAction,\n  useCallback,\n  useEffect,\n  useState\n} from 'react';\n\nexport function useBearerToken(): [\n  string | null,\n  Dispatch<SetStateAction<string>>,\n  boolean\n] {\n  const [bearerTokenValue, setBearerTokenValue] = useState<string | null>(null);\n  const [isMobileApp, setIsMobileApp] = useState<boolean | null>(null);\n  const [isLoading, setIsLoading] = useState<boolean>(true);\n\n  const getBearerTokenValue = useCallback(async () => {\n    try {\n      const token = await getBearerToken(isMobileApp);\n      setBearerTokenValue(token || null);\n      setIsLoading(false);\n    } catch (e) {\n      console.warn(`Failed to get bearer token`, e);\n      setIsLoading(false);\n    }\n  }, [isMobileApp]);\n\n  useEffect(() => {\n    isNativeMobile().then(setIsMobileApp);\n  }, []);\n\n  useEffect(() => {\n    if (isMobileApp !== null) getBearerTokenValue();\n  }, [getBearerTokenValue, isMobileApp]);\n\n  useEffect(() => {\n    const handleTokenChange = () => {\n      getBearerTokenValue();\n    };\n\n    window.addEventListener('tokenChange', handleTokenChange);\n\n    return () => {\n      window.removeEventListener('tokenChange', handleTokenChange);\n    };\n  }, [getBearerTokenValue]);\n\n  return [bearerTokenValue, setBearerTokenValue, isLoading];\n}\n","import Cookies from 'js-cookie';\nimport { useCallback, useEffect, useMemo, useState } from 'react';\n\ndeclare global {\n  interface Window {\n    Weglot: {\n      options: {\n        languages: { language_to: string }[];\n        language_from: string;\n      };\n      getCurrentLang: () => string;\n      getLanguageName: (lang: string) => string;\n      switchTo: (lang: string) => void;\n      on: (event: string, callback: (lang: string) => void) => void;\n      off: (event: string, callback: (lang: string) => void) => void;\n    };\n  }\n}\n\nexport function useWeglot() {\n  const [languageOptions, setLanguageOptions] = useState([]);\n  const [currentLanguage, setCurrentLanguage] = useState('');\n  const [currentLanguageLabel, setCurrentLanguageLabel] = useState('');\n  const [languagePreference, setLanguagePreference] = useState(\n    Cookies.get('wg') || ''\n  );\n  const [isWeglotAvailable, setIsWeglotAvailable] = useState(true);\n  const domain = useMemo(() => {\n    return window.location.host.split('.').slice(-2).join('.');\n  }, [window.location.host]);\n\n  useEffect(() => {\n    if (!window.Weglot) {\n      console.error('Weglot is not loaded.');\n      setIsWeglotAvailable(false);\n      return;\n    }\n\n    if (!isWeglotAvailable) return;\n\n    try {\n      const availableLanguages = [\n        ...window.Weglot.options.languages.map(lang => lang.language_to),\n        window.Weglot.options.language_from\n      ];\n\n      const options = availableLanguages.map(lang => ({\n        label: window.Weglot.getLanguageName(lang),\n        value: lang\n      }));\n\n      setLanguageOptions(options);\n\n      const currentLang = window.Weglot.getCurrentLang();\n      setCurrentLanguage(currentLang);\n      setCurrentLanguageLabel(window.Weglot.getLanguageName(currentLang));\n\n      const handleLanguageChange = newLang => {\n        setCurrentLanguage(newLang);\n        setCurrentLanguageLabel(window.Weglot.getLanguageName(newLang));\n      };\n\n      window.Weglot.on('languageChanged', handleLanguageChange);\n\n      return () => {\n        window.Weglot.off('languageChanged', handleLanguageChange);\n      };\n    } catch (error) {\n      console.error('Weglot initialization failed:', error);\n      setIsWeglotAvailable(false);\n    }\n  }, [isWeglotAvailable]);\n\n  const switchLanguage = useCallback(\n    async newLanguage => {\n      if (!window.Weglot || !isWeglotAvailable) return;\n\n      try {\n        await new Promise(resolve => {\n          const handleLanguageChange = lang => {\n            setCurrentLanguage(lang);\n            setCurrentLanguageLabel(window.Weglot.getLanguageName(lang));\n            setLanguagePreference(lang);\n            Cookies.set('wg', lang, {\n              domain: `.${domain}`,\n              expires: 365,\n              path: '/'\n            });\n\n            resolve(true);\n            window.Weglot.off('languageChanged', handleLanguageChange);\n          };\n\n          window.Weglot.on('languageChanged', handleLanguageChange);\n          window.Weglot.switchTo(newLanguage);\n        });\n      } catch (error) {\n        console.error('Failed to switch language:', error);\n      }\n    },\n    [isWeglotAvailable, setLanguagePreference]\n  );\n\n  const syncLanguageWithCookie = useCallback(() => {\n    const savedLanguage = Cookies.get('wg');\n\n    if (savedLanguage && savedLanguage !== currentLanguage) {\n      switchLanguage(savedLanguage);\n    }\n  }, [currentLanguage, switchLanguage]);\n\n  return {\n    currentLanguage,\n    currentLanguageLabel,\n    isWeglotAvailable,\n    languageOptions,\n    languagePreference,\n    switchLanguage,\n    syncLanguageWithCookie\n  };\n}\n","import { SyntheticEvent, useCallback, useState } from 'react';\n\ntype UseToggleEvent =\n  | SyntheticEvent\n  | KeyboardEvent\n  | boolean\n  | any\n  | ((prev: boolean) => boolean);\n\ntype UseToggleFn = (e?: UseToggleEvent) => void;\n\nexport function useToggle(initialValue?: boolean): [boolean, UseToggleFn] {\n  const [state, setState] = useState(!!initialValue);\n\n  const toggleState = useCallback((e?: UseToggleEvent) => {\n    setState(\n      typeof e === 'boolean' || typeof e === 'function' ? e : prev => !prev\n    );\n  }, []);\n\n  return [state, toggleState];\n}\n","import {\n  makeListBuilderSchema,\n  validateAddress,\n  validateEin,\n  validatePhone,\n  validateZip\n} from '@vestwell-frontend/helpers';\n\nimport { format, lastDayOfMonth } from 'date-fns';\nimport { useMemo } from 'react';\nimport * as yup from 'yup';\n\nconst lastDayOfFebruary = `2/${format(\n  lastDayOfMonth(new Date(new Date().getFullYear(), 1, 1)),\n  'd'\n)}`;\n\nexport const fiscalYearEnds = [\n  { label: '12/31', value: '12/31' },\n  { label: '11/30', value: '11/30' },\n  { label: '10/31', value: '10/31' },\n  { label: '9/30', value: '9/30' },\n  { label: '8/31', value: '8/31' },\n  { label: '7/31', value: '7/31' },\n  { label: '6/30', value: '6/30' },\n  { label: '5/31', value: '5/31' },\n  { label: '4/30', value: '4/30' },\n  { label: '3/31', value: '3/31' },\n  { label: lastDayOfFebruary, value: lastDayOfFebruary },\n  { label: '1/31', value: '1/31' }\n];\n\nexport const useValidateOnboardingQuestionnaire = (args: {\n  isMepTpa?: boolean;\n  isStarter401kPlan?: boolean;\n  isTpa?: boolean;\n  planDesignConsultType?: string;\n}) => {\n  return useMemo(\n    () =>\n      yup.object({\n        authSignerFirstName: yup\n          .string()\n          .nullable()\n          .required('First Name is required'),\n\n        authSignerLastName: yup\n          .string()\n          .nullable()\n          .required('Last Name is required'),\n\n        authSignerWorkPhone: validatePhone('Invalid phone number')\n          .nullable()\n          .required('Phone is required'),\n\n        authorizedSignerEmail: yup\n          .string()\n          .nullable()\n          .email('Invalid email')\n          .required('Email is required'),\n\n        companyEntityType: yup\n          .string()\n          .nullable()\n          .required('Company Entity Type is required'),\n\n        companyName: yup\n          .string()\n          .nullable()\n          .required('Company Legal Name is required'),\n\n        companyPhoneNumber: validatePhone('Invalid phone number')\n          .nullable()\n          .required('Phone is required'),\n\n        dayToDayContactEmail: yup\n          .string()\n          .nullable()\n          .email('Invalid email')\n          .required('Email is required'),\n\n        dayToDayContactLastName: yup\n          .string()\n          .nullable()\n          .required('Last Name is required'),\n\n        dayToDayContactName: yup\n          .string()\n          .nullable()\n          .required('First Name is required'),\n\n        dayToDayContactNumber: validatePhone('Invalid phone number')\n          .nullable()\n          .required('Phone is required'),\n\n        doingBusinessAs: yup.string().nullable(),\n\n        employerIdentificationNumber: validateEin('Must be a valid EIN')\n          .nullable()\n          .required('EIN is required'),\n\n        fiscalYearEnd: yup\n          .string()\n          .oneOf(fiscalYearEnds.map(({ value }) => value))\n          .nullable()\n          .required('Fiscal Year End is required'),\n\n        ...(!args.isTpa &&\n          !args.isStarter401kPlan && {\n            $adoptionAgreementDoc: yup\n              .array()\n              .nullable()\n              .test({\n                test: function (value) {\n                  if (\n                    !value?.length &&\n                    this.parent.isConvert === 'true' &&\n                    !['SEP_IRA', 'SIMPLE_IRA'].includes(\n                      this.parent.existingPlanType\n                    )\n                  ) {\n                    return this.createError({\n                      message: 'Document is required',\n                      path: this.path\n                    });\n                  }\n\n                  return true;\n                }\n              }),\n\n            // only used for internal questionnaire state\n            $priorYear5500Doc: yup.array().nullable().optional(),\n\n            anticipatedHires: yup\n              .number()\n              .nullable()\n              .required('This field is required'),\n\n            ...(args.planDesignConsultType !== 'Website Direct' && {\n              contributionScenario: yup\n                .string()\n                .nullable()\n                .when('isConvert', {\n                  is: v => v !== 'true',\n                  then: yup\n                    .string()\n                    .nullable()\n                    .required('This field is required')\n                })\n            }),\n\n            currentComplianceIssues: yup\n              .array()\n              .of(\n                yup\n                  .object({\n                    label: yup.string(),\n                    value: yup\n                      .string()\n                      .oneOf([\n                        'missing_5500',\n                        'late_deposits',\n                        'missing_contributions',\n                        'failed_testing',\n                        'other'\n                      ])\n                  })\n                  .nullable()\n              )\n              .when('isConvert', {\n                is: 'false',\n                then: yup.array().nullable().optional()\n              }),\n\n            existingPlanProvider: yup\n              .string()\n              .nullable()\n              .when('isConvert', {\n                is: 'true',\n                then: yup\n                  .string()\n                  .nullable()\n                  .required('Current Provider is required')\n              }),\n\n            existingPlanType: yup\n              .string()\n              .nullable()\n              .when('isConvert', {\n                is: 'true',\n                then: yup\n                  .string()\n                  .oneOf([\n                    '401k',\n                    '403b',\n                    'SIMPLE_IRA',\n                    'SEP_IRA',\n                    'defined_benefit',\n                    'cash_balance',\n                    'other'\n                  ])\n                  .nullable()\n                  .required('Plan Type is required')\n              }),\n\n            highlyCompensatedEmployees: yup\n              .number()\n              .nullable()\n              .required('This field is required'),\n\n            ...(args.planDesignConsultType !== 'Website Direct' && {\n              industryGroup: yup\n                .string()\n                .nullable()\n                .when('isConvert', {\n                  is: v => v !== 'true',\n                  then: yup\n                    .string()\n                    .nullable()\n                    .required('This field is required')\n                })\n            }),\n\n            isConvert: yup\n              .string()\n              .oneOf(['true', 'false'])\n              .nullable()\n              .required('This field is required'),\n\n            ownerEmployees: yup\n              .number()\n              .nullable()\n              .required('This field is required'),\n\n            ...(args.planDesignConsultType !== 'Website Direct' && {\n              payrollProviderId: yup\n                .string()\n                .nullable()\n                .required('Payroll Provider is required')\n            }),\n\n            payrollSystemOther: yup\n              .string()\n              .nullable()\n              .when('payrollProviderId', {\n                is: '6', // id for 'Other'\n                then: yup\n                  .string()\n                  .nullable()\n                  .required('Payroll System is required')\n              }),\n\n            relativesOfOwnerEmployees: yup\n              .number()\n              .nullable()\n              .required('This field is required'),\n\n            ...(args.planDesignConsultType !== 'Website Direct' && {\n              retirementObjectives: yup\n                .string()\n                .nullable()\n                .when('isConvert', {\n                  is: v => v !== 'true',\n                  then: yup\n                    .string()\n                    .nullable()\n                    .required('This field is required')\n                })\n            })\n          }),\n        ...(!args.isMepTpa &&\n          args.planDesignConsultType !== 'Website Direct' && {\n            controlGroupBusinesses: yup.array().when('isPartOfControlGroup', {\n              is: true,\n              then: makeListBuilderSchema(\n                yup\n                  .object({\n                    business: yup.string().required('Company Name is required'),\n                    ein: validateEin().required('EIN is required')\n                  })\n                  .required()\n              )\n            }),\n\n            isPartOfControlGroup: yup\n              .boolean()\n              .nullable()\n              .required('This field is required'),\n\n            totalEmployeesNumber: yup\n              .number()\n              .nullable()\n              .required('Number of employees is required')\n          }),\n\n        physicalAddress1: validateAddress()\n          .nullable()\n          .required('Physical Address is required'),\n\n        physicalAddress2: yup.string().nullable(),\n\n        physicalCity: yup.string().nullable().required('City is required'),\n\n        physicalState: yup.string().nullable().required('State is required'),\n\n        physicalZip: validateZip().nullable().required('Zip is required'),\n\n        stateOfIncorporation: yup\n          .string()\n          .nullable()\n          .required('State of Incorporation is required'),\n\n        wiredAtWork: yup.boolean().nullable().required('This field is required')\n      }),\n    [\n      args.isMepTpa,\n      args.isStarter401kPlan,\n      args.isTpa,\n      args.planDesignConsultType\n    ]\n  );\n};\n","import {\n  CircularProgress,\n  ExtendButtonBase,\n  Button as MuiButton,\n  ButtonProps as MuiButtonProps,\n  styled\n} from '@mui/material';\nimport { ButtonTypeMap } from '@mui/material/Button/Button';\nimport { useCamelCase } from '@vestwell-frontend/hooks';\n\nimport {\n  forwardRef,\n  ForwardRefExoticComponent,\n  HTMLAttributeAnchorTarget,\n  RefAttributes\n} from 'react';\nimport * as React from 'react';\nimport { Link, LinkProps } from 'react-router-dom';\n\nexport type ButtonProps = MuiButtonProps<\n  ExtendButtonBase<ButtonTypeMap>,\n  {\n    'data-component'?: string;\n    'data-testid'?: string;\n    loading?: boolean;\n    target?: HTMLAttributeAnchorTarget | undefined;\n    to?: string;\n    external?: boolean;\n  }\n>;\n\nconst StyledButton = styled(MuiButton, {\n  shouldForwardProp: prop => prop !== 'loading'\n})<\n  ButtonProps & {\n    component?: ForwardRefExoticComponent<\n      LinkProps & RefAttributes<HTMLAnchorElement>\n    >;\n  }\n>(({ color, ...props }) => ({\n  backgroundColor: props.loading\n    ? props.theme.palette.grey700.main\n    : props.disabled && props.variant === 'inline'\n      ? 'transparent'\n      : undefined,\n  color: props.loading\n    ? 'transparent !important'\n    : props.variant === 'inline'\n      ? props.theme.palette[color ?? 'primary'].main\n      : undefined\n}));\n\nconst LoadingIndicator = styled(CircularProgress, {\n  shouldForwardProp: prop => prop !== 'loading'\n})(props => ({\n  color: props.theme.palette.action.disabled,\n  position: 'absolute'\n}));\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n  ({ color = 'primary', variant = 'contained', ...props }, ref) => {\n    const dataTestId = useCamelCase(\n      typeof props.children === 'string' ? props.children : ''\n    );\n\n    return (\n      <StyledButton\n        {...props}\n        color={color}\n        component={props.to ? Link : undefined}\n        data-component={props['data-component'] || 'button'}\n        data-disabled={!!props.disabled || !!props.loading}\n        data-testid={props['data-testid'] || dataTestId}\n        disabled={!!props.disabled || !!props.loading}\n        ref={ref}\n        target={\n          props.external || (props.to && props.to.includes(':'))\n            ? '_blank'\n            : undefined\n        }\n        to={props.to}\n        variant={variant}>\n        {!!props.loading && <LoadingIndicator color='inherit' size={16} />}\n        {props.children}\n      </StyledButton>\n    );\n  }\n);\n\nButton.displayName = 'Button';\n","import { createSvgIcon, SvgIconProps } from '@mui/material';\n\nimport { FC } from 'react';\n\nexport const ExceptionIcon: FC<SvgIconProps> = createSvgIcon(\n  <svg viewBox='0 0 127 128'>\n    <path\n      d='M9.61352 18.6494C8.31439 19.9511 8.31439 21.7737 9.61352 23.0755C10.9127 24.3772 12.7315 24.3772 14.0306 23.0755C36.1159 0.944975 71.9721 0.944975 94.0574 23.0755C102.372 31.4069 107.049 42.8627 107.049 54.5788C107.049 66.5553 102.372 77.7507 94.0574 86.0822C87.3019 92.8515 78.7276 96.4966 69.3738 96.4966C60.02 96.4966 51.1859 92.8515 44.6902 86.0822C39.4937 80.875 36.6356 74.1057 36.6356 66.5553C36.6356 59.2653 39.4937 52.2356 44.6902 47.0284C45.9893 45.7266 45.9893 43.9041 44.6902 42.6023C43.3911 41.3005 41.5723 41.3005 40.2731 42.6023C27.0219 55.8806 27.0219 77.23 40.2731 90.2479C48.068 98.0587 58.461 102.485 69.6336 102.485C80.8062 102.485 90.9394 98.0587 98.9941 90.2479C108.608 80.6147 113.804 67.8571 113.804 54.0581C113.804 40.2591 108.608 27.5015 98.9941 17.8683C74.0507 -6.08471 34.0373 -6.08471 9.61352 18.6494z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M71.7123 19.1701C71.7123 17.3476 70.1533 15.7855 68.3346 15.7855C66.5158 15.7855 64.9568 17.3476 64.9568 19.1701C64.9568 20.9926 66.5158 22.5548 68.3346 22.5548C70.1533 22.5548 71.7123 20.9926 71.7123 19.1701z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M7.01533 27.7618C7.01533 25.9393 5.45637 24.3772 3.63758 24.3772C1.81879 24.3772 0 25.9393 0 27.7618C0 29.8447 1.55896 31.4069 3.37775 31.4069C5.19654 31.4069 7.01533 29.8447 7.01533 27.7618z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M7.01538 36.0933C8.83417 36.0933 10.3931 37.6555 10.3931 39.478C10.3931 41.5608 8.83417 43.123 7.01538 42.8626C5.19659 42.8626 3.63763 41.3005 3.63763 39.478C3.63763 37.6555 5.19659 36.0933 7.01538 36.0933z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M119.52 88.6859C117.702 88.6859 116.143 90.248 116.143 92.0705C116.143 93.893 117.702 95.4552 119.52 95.4552C121.339 95.4552 122.898 93.893 122.898 92.0705C122.898 90.248 121.339 88.6859 119.52 88.6859z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M120.56 63.6914C120.56 61.8689 122.119 60.3067 123.938 60.3067C125.756 60.3067 127.315 61.8689 127.315 63.6914C127.315 65.5139 125.756 67.0761 123.938 67.0761C122.119 67.0761 120.56 65.5139 120.56 63.6914z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M49.3672 106.651C49.3672 104.828 47.8082 103.266 45.9895 103.266C44.1707 103.266 42.6117 104.828 42.6117 106.651C42.6117 108.473 44.1707 110.035 45.9895 110.035C47.8082 110.035 49.3672 108.473 49.3672 106.651z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      d='M68.0746 121.231C83.1446 121.231 97.4351 115.242 108.088 104.568C109.127 103.266 110.686 103.787 111.985 105.088C113.285 106.39 113.285 108.213 111.985 109.515C100.033 121.491 84.4437 128 67.555 128C50.6662 128 35.0766 121.491 23.1245 109.515C13.5109 99.8813 8.31438 87.1237 8.31438 73.3247C8.31438 59.5257 13.5109 46.7681 23.1245 37.1349C31.1792 29.3241 41.3124 24.898 52.485 24.898C63.6576 24.898 74.0507 29.3241 81.8455 37.1349C95.0967 50.1528 95.0967 71.5022 81.8455 84.7805C80.5463 86.0823 78.7275 86.0823 77.4284 84.7805C76.1293 83.4787 76.1293 81.6562 77.4284 80.3544C88.0813 69.6797 88.0813 52.2357 77.4284 41.561C70.9327 34.7916 62.0986 31.1466 52.7448 31.1466C43.391 31.1466 34.8168 34.7916 28.0612 41.561C19.7468 49.8924 15.0699 61.0878 15.0699 73.0643C15.0699 84.7805 19.7468 96.2362 28.0612 104.568C38.7142 115.242 53.0047 121.231 68.0746 121.231z'\n      fill='currentColor'\n      role='presentation'\n    />\n    <path\n      clipRule='evenodd'\n      d='M42.8715 63.1707C42.8715 52.7564 51.186 44.4249 61.579 44.4249C71.7123 44.4249 80.2866 52.7564 80.2866 63.1707C80.2866 73.5851 71.9721 81.9165 61.579 81.9165C51.186 81.9165 42.8715 73.5851 42.8715 63.1707zM49.1073 63.4311C49.1073 70.2004 54.8235 75.9283 61.579 75.9283C68.3346 75.9283 74.0508 70.2004 74.0508 63.4311C74.0508 56.6618 68.3346 50.9339 61.579 50.9339C54.8235 50.9339 49.1073 56.6618 49.1073 63.4311z'\n      fill='currentColor'\n      fillRule='evenodd'\n      role='presentation'\n    />\n  </svg>,\n  'ExceptionIcon'\n);\n\nExceptionIcon.displayName = 'ExceptionIcon';\n","import { PaletteColor, styled, useTheme } from '@mui/material';\nimport { useDownload } from '@vestwell-frontend/hooks';\n\nimport { Children, cloneElement, forwardRef } from 'react';\nimport {\n  Link as RouterLink,\n  LinkProps as RouterLinkProps\n} from 'react-router-dom';\n\nimport { TextProps } from './Text';\n\nfunction injectLinkedProp(children) {\n  if (\n    Children.count(children) > 1 ||\n    !children.type ||\n    children.type.name !== 'Card'\n  ) {\n    return children;\n  }\n  return cloneElement(children, { isLinked: true });\n}\n\nexport type LinkProps = Omit<RouterLinkProps, 'to'> & {\n  'data-component'?: string;\n  'data-testid'?: string;\n  external?: boolean;\n  isSecureDownload?: boolean;\n  to?: string;\n  variant?: TextProps['variant'];\n};\n\nconst LinkStyled = styled(RouterLink)(props => ({\n  color: (props.theme.palette[props.color] as PaletteColor)?.main\n}));\n\nconst AnchorStyled = styled('a')(props => ({\n  color: (props.theme.palette[props.color] as PaletteColor)?.main\n}));\n\nAnchorStyled.displayName = 'AnchorStyled';\n\nexport const Link = forwardRef<any, LinkProps>(\n  (\n    {\n      external,\n      isSecureDownload,\n      to,\n      children,\n      color = 'primary',\n      variant,\n      ...props\n    },\n    ref\n  ) => {\n    const theme = useTheme();\n    const isExternal = external || (to && to.includes(':'));\n    const target = isExternal ? '_blank' : undefined; // external + URL schemes\n\n    const download = useDownload(to || '');\n\n    if (isExternal || !to) {\n      return (\n        <AnchorStyled\n          {...props}\n          color={color}\n          data-component={props['data-component'] || 'link'}\n          href={isSecureDownload ? '#' : to}\n          onClick={isSecureDownload ? download : props.onClick}\n          ref={ref}\n          sx={theme.typography[variant]}\n          target={target}>\n          {children}\n        </AnchorStyled>\n      );\n    }\n\n    const linkedChildren = injectLinkedProp(children);\n\n    return (\n      <LinkStyled\n        {...props}\n        color={color}\n        data-component={props['data-component'] || 'link'}\n        onClick={isSecureDownload ? download : props.onClick}\n        ref={ref}\n        sx={theme.typography[variant]}\n        target={target}\n        to={isSecureDownload ? '#' : to}>\n        {linkedChildren}\n      </LinkStyled>\n    );\n  }\n);\n\nLink.displayName = 'Link';\n","import isPropValid from '@emotion/is-prop-valid';\nimport {\n  Palette,\n  PaletteColor,\n  Skeleton,\n  SkeletonProps,\n  styled\n} from '@mui/material';\n\nimport { FC, useId } from 'react';\n\nimport { useIsAnimationActive } from '../helpers';\nimport { TextProps } from './Text';\n\nexport type LoadingProps = Omit<SkeletonProps, 'variant'> & {\n  'aria-labelledby'?: string;\n  'data-testid'?: string;\n  backgroundColor?: keyof Palette;\n  className?: string;\n  variant?: TextProps['variant'];\n};\n\nconst LoadingStyled = styled(Skeleton, {\n  shouldForwardProp: isPropValid\n})<LoadingProps>(({ backgroundColor, height, theme, width, ...props }) => {\n  const variantStyles = {\n    a1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    a2: {\n      borderRadius: '0.625rem',\n      width: '7rem'\n    },\n    b1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    b2: {\n      borderRadius: '0.625rem',\n      width: '7rem'\n    },\n    c1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    c2: {\n      borderRadius: '0.625rem',\n      width: '12rem'\n    },\n    d1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    d2: {\n      borderRadius: '0.437rem',\n      width: '12rem'\n    },\n    e1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    e2: {\n      borderRadius: '0.437rem',\n      width: '12rem'\n    },\n    f1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    f2: {\n      borderRadius: '0.3125rem',\n      width: '7rem'\n    },\n    g1: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    g2: {\n      borderRadius: '0.437rem',\n      width: '6rem'\n    },\n    i1: {\n      borderRadius: '0.3125rem',\n      width: '6rem'\n    },\n    i2: {\n      borderRadius: '0.3125rem',\n      width: '6rem'\n    },\n    j1: {\n      borderRadius: '0.3125rem',\n      width: '6rem'\n    },\n    j2: {\n      borderRadius: '0.3125rem',\n      width: '6rem'\n    },\n    k3: {\n      borderRadius: '0.437rem',\n      width: '7rem'\n    }\n  }[props['data-variant']] || {\n    borderRadius: '0.3125rem',\n    width: '100%'\n  };\n\n  return {\n    backgroundColor: backgroundColor\n      ? (theme.palette[backgroundColor] as PaletteColor)?.main\n      : undefined,\n    borderRadius: variantStyles.borderRadius,\n    display: 'inline-block',\n    maxWidth: '100%',\n    width: variantStyles.width\n  };\n});\n\nexport const Loading: FC<LoadingProps> = ({ variant, ...props }) => {\n  const isAnimationActive = useIsAnimationActive();\n\n  const labelId = useId();\n\n  return (\n    <LoadingStyled\n      {...props}\n      animation={isAnimationActive ? undefined : false}\n      aria-busy\n      aria-labelledby={props['aria-labelledby'] || labelId}\n      aria-valuetext='Loading'\n      data-variant={variant}\n      data-wg-notranslate\n      role='progressbar'>\n      <>&nbsp;</>\n      <span className='sr-only' id={labelId} role='presentation'>\n        Loading\n      </span>\n    </LoadingStyled>\n  );\n};\n\nLoading.displayName = 'Loading';\n","import isChromatic from 'chromatic/isChromatic';\nimport { useMemo } from 'react';\n\nexport const useIsAnimationActive = () =>\n  useMemo(() => {\n    return !isChromatic();\n  }, []);\n","import {\n  Palette,\n  PaletteColor,\n  styled,\n  Typography,\n  TypographyProps\n} from '@mui/material';\n\nimport { AriaAttributes, FC, ReactNode } from 'react';\n\nimport { Loading } from './Loading';\n\nconst htmlTag = {\n  a1: 'span',\n  a2: 'h1',\n  b1: 'span',\n  b2: 'h1',\n  c1: 'span',\n  c2: 'h2',\n  d1: 'span',\n  d2: 'h2',\n  e1: 'span',\n  e2: 'h2',\n  f1: 'span',\n  f2: 'h3',\n  g1: 'p',\n  g2: 'span',\n  i1: 'p',\n  i2: 'span',\n  j1: 'span',\n  j2: 'p',\n  k3: 'span'\n};\n\nexport type TextProps = {\n  backgroundColor?: keyof Palette;\n  className?: string;\n  color?: keyof Palette;\n  component?: ReactNode;\n  id?: string;\n  isLoading?: boolean;\n  role?: string;\n  tabIndex?: number;\n} & TypographyProps &\n  AriaAttributes;\n\nconst TextContainer = styled(Typography, {\n  shouldForwardProp: propName => propName !== 'isLoading'\n})<TextProps>(props => {\n  return {\n    backgroundColor:\n      (props.theme.palette[props.backgroundColor] as PaletteColor)?.main ||\n      props.theme.palette[props.bgcolor as string]?.main,\n    color: props.theme.palette[props.color as string]?.main\n  };\n});\n\nTextContainer.displayName = 'TextContainer';\n\nexport const Text: FC<TextProps> = ({\n  maxWidth = '45rem',\n  mb = 4,\n  variant = 'g1',\n  ...props\n}) => {\n  return (\n    <TextContainer\n      component={props.component || htmlTag[variant]}\n      data-component='text'\n      data-variant={variant}\n      maxWidth={maxWidth}\n      mb={mb}\n      variant={variant}\n      {...props}\n      aria-label={props.isLoading ? 'Loading' : props['aria-label']}>\n      {props.isLoading ? <Loading variant={variant} /> : props.children}\n    </TextContainer>\n  );\n};\n\nText.displayName = 'Text';\n","import { Box, styled, useMediaQuery } from '@mui/material';\nimport { useQueryClient } from '@tanstack/react-query';\n\nimport { ElementType, FC, ReactNode } from 'react';\n\nimport { Button } from './Button';\nimport { ExceptionIcon } from './icon';\nimport { Link } from './Link';\nimport { Text } from './Text';\n\nexport const numericCodes = {\n  BAD_REQUEST: 'VW0018',\n  DOCUMENT_NOT_FOUND: 'VW0004',\n  EMAIL_SEND: 'VW0017',\n  ENCRYPT: 'VW0009',\n  FORBIDDEN: 'VW0019',\n  INVALID_ARG: 'VW0013',\n  INVALID_ENV_VAR: 'VW0014',\n  INVALID_RESPONSE: 'VW0020',\n  INVALID_TOKEN: 'VW0015',\n  MISSING_CONTEXT: 'VW0006',\n  MISSING_COOKIE: 'VW0016',\n  MISSING_ENV_VAR: 'VW0008',\n  MISSING_PARAMETER: 'VW0005',\n  MISSING_RELATIONSHIP: 'VW0007',\n  NOT_FOUND: 'VW0003',\n  PARTICIPANT_REGISTRATION_ADDRESS_VERIFY: 'VW0103',\n  PARTICIPANT_REGISTRATION_COMPANY_VERIFY: 'VW0104',\n  // preserve sub-100 range for general errors\n  PARTICIPANT_REGISTRATION_EXISTS: 'VW0100',\n  PARTICIPANT_REGISTRATION_LOCKOUT: 'VW0105',\n  PARTICIPANT_REGISTRATION_NO_MATCH: 'VW0101',\n  PARTICIPANT_REGISTRATION_PARTIAL_MATCH: 'VW0102',\n  PARTICIPANT_REGISTRATION_USER_EXISTS: 'VW0106',\n  SPONSOR_REGISTRATION_EXISTS: 'VW0108',\n  SPONSOR_REGISTRATION_LOCKOUT: 'VW0107',\n  SPONSOR_REGISTRATION_NO_MATCH: 'VW0109',\n  SPONSOR_REGISTRATION_PARTIAL_MATCH: 'VW0110',\n  SPONSOR_REGISTRATION_USER_EXISTS: 'VW0111',\n  TOKEN_DECRYPT: 'VW0010',\n  TOKEN_EXPIRED: 'VW0011',\n  TOKEN_VERIFY: 'VW0012',\n  UNAUTHORIZED: 'VW0002',\n  UNKNOWN_EXCEPTION: 'VW0001'\n};\n\nexport type ErrorProps = {\n  children?: ReactNode;\n  /** Numeric error code */\n  code?: string;\n  /** ID on details DOM element */\n  descriptionId?: string;\n  /** Text to use for details */\n  details?: ReactNode;\n  icon?: ElementType;\n  /** ID on title DOM element */\n  labelId?: string;\n  /** Override component name */\n  name?: string;\n  /** Support email address to show on error messaging. */\n  supportEmail?: string;\n  showRefreshButton?: boolean;\n  /** Text to use for title */\n  title?: ReactNode;\n};\n\nconst StyledExceptionIcon = styled(ExceptionIcon)(({ theme }) => ({\n  color: theme.palette.dijon.main,\n  height: theme.spacing(32),\n  marginBottom: theme.spacing(4),\n  width: theme.spacing(32)\n}));\n\nconst StyledLink = styled(Link)(({ theme }) => ({\n  display: 'inline-block',\n  marginTop: theme.spacing(8)\n}));\n\nexport const Error: FC<ErrorProps> = ({\n  icon = StyledExceptionIcon,\n  name = 'Error',\n  ...props\n}) => {\n  const isMobile = useMediaQuery(theme => theme.breakpoints.down('sm'));\n\n  const queryClient = useQueryClient();\n\n  const Icon = icon;\n\n  return (\n    <Box\n      data-component={name}\n      padding={8}\n      role='presentation'\n      textAlign='center'>\n      <Icon color='dijon' />\n      {props.title && (\n        <Text\n          color='black'\n          component='h1'\n          data-testid={`${name}__title`}\n          id={props.labelId}\n          marginX='auto'\n          mt={isMobile ? 8 : 12}\n          variant={isMobile ? 'e2' : 'b2'}>\n          {props.title}\n        </Text>\n      )}\n      {props.details && (\n        <Text\n          color='grey100'\n          component='div'\n          data-testid={`${name}__details`}\n          id={props.descriptionId}\n          marginX='auto'\n          mb={isMobile ? 16 : undefined}\n          mt={isMobile ? 8 : 6}\n          textAlign={isMobile ? 'left' : undefined}>\n          {props.details}\n        </Text>\n      )}\n      {props.supportEmail && (\n        <StyledLink\n          data-testid='Error__supportEmail'\n          to={`mailto:${props.supportEmail}`}>\n          {props.supportEmail}\n        </StyledLink>\n      )}\n      {props.children && (\n        <Box data-testid='Error__children' mt={10}>\n          {props.children}\n        </Box>\n      )}\n      {props.code && (\n        <Text\n          color='grey300'\n          component='code'\n          data-testid='Error_code'\n          display='block'\n          mt={6}\n          variant='i1'>\n          Error Code: {numericCodes[props.code] || 'UNKNOWN_EXCEPTION'}\n        </Text>\n      )}\n      {props.showRefreshButton && (\n        <Button onClick={() => queryClient.resetQueries()}>Refresh</Button>\n      )}\n    </Box>\n  );\n};\n\nError.displayName = 'Error';\n","import { createSvgIcon, SvgIconProps } from '@mui/material';\n\nimport { FC } from 'react';\n\nexport const Error404Icon: FC<SvgIconProps> = createSvgIcon(\n  <svg viewBox='0 0 128 128'>\n    <g fill='none'>\n      <path\n        clipRule='evenodd'\n        d='M90.391 18.5469V63.7388L105.498 123.82C105.758 124.865 105.498 125.91 104.977 126.694C104.196 127.478 103.414 128 102.372 128H26.5768H25.7954H25.5349C25.2744 128 25.014 128 24.7535 127.478C24.7535 127.216 24.493 127.216 24.493 127.216L24.2326 126.955L23.9721 126.694L23.7117 126.433C23.4512 126.171 23.1907 125.649 23.1907 125.388V124.343V124.082L38.5582 63.4775V18.2857V18.0245V17.502C38.5582 17.502 38.8187 17.2408 38.8187 16.9796V16.7184L48.9769 1.56735C49.4978 0.522449 50.5396 0 51.5815 0H76.8467C77.8886 0 78.9305 0.522449 79.9723 1.82857L90.1305 16.9796V17.2408C90.1305 17.2408 90.391 17.502 90.391 17.7633V18.2857V18.5469zM75.2839 6.53061H53.4048L47.6745 15.151H81.0142L75.2839 6.53061zM83.8793 21.6816H44.8094V60.8653H83.8793V21.6816zM76.3258 67.3959H44.028L37.7768 93.2571L76.3258 67.3959zM84.9212 69.4857L35.1722 102.661L31.5256 117.551L87.5258 80.1959L84.9212 69.4857zM89.3491 86.7265L37.2559 121.731H55.749L91.9538 97.4367L89.3491 86.7265zM93.777 104.229L67.4699 121.731H98.2049L93.777 104.229zM28.4001 38.1387C29.9629 38.1387 31.5257 39.4449 31.5257 41.2734C31.5257 43.102 29.9629 44.6693 28.1396 44.6693H9.12559C7.5628 44.6693 6 43.102 6 41.2734C6 39.7061 7.30233 38.1387 9.12559 38.1387H28.4001zM12.2511 23.5102L28.6605 32.9143C29.1814 33.1755 29.7024 33.4367 30.2233 33.4367C31.2652 33.4367 32.5675 32.9143 33.0884 31.8694C33.8698 30.302 33.3489 28.2122 31.7861 27.4286L15.6372 18.0245C14.0744 16.9796 11.9907 17.502 10.9488 19.0694C10.1674 20.6367 10.6883 22.7265 12.2511 23.5102zM28.6605 49.3715C30.2233 48.5878 32.307 49.1103 33.0884 50.6776C34.1303 52.245 33.6094 54.0735 31.7861 54.8572L15.3767 64.2613C14.8558 64.5225 14.3349 64.7837 13.8139 64.7837C12.7721 64.7837 11.4697 64.2613 10.9488 63.2164C10.1674 61.649 10.6883 59.5592 12.2511 58.7756L28.6605 49.3715zM119.303 38.1387H100.289C98.4654 38.1387 97.1631 39.7061 97.1631 41.2734C97.1631 43.102 98.7259 44.6693 100.289 44.6693H119.303C121.126 44.6693 122.428 43.102 122.428 41.2734C122.689 39.4449 121.126 38.1387 119.303 38.1387zM99.7678 33.1756C99.2468 33.4368 98.7259 33.6981 98.205 33.6981C97.1631 33.6981 96.1213 32.9144 95.6003 31.6083C94.8189 30.0409 95.3399 27.9511 96.9027 27.1674L113.312 17.7634C114.875 16.9797 116.959 17.5021 117.74 19.0695C118.521 20.6368 118 22.7266 116.438 23.5103L99.7678 33.1756zM116.438 59.0368L99.7678 49.3715C98.205 48.5878 96.1212 49.1103 95.3399 50.6776C94.5584 52.245 95.0794 54.3348 96.6422 55.1184L113.052 64.5225C113.572 64.7837 114.093 65.045 114.614 65.045C115.656 65.045 116.959 64.5225 117.479 63.4776C118.521 61.9103 117.74 59.8205 116.438 59.0368zM50.0187 41.5347C50.0187 33.4368 56.5304 27.1674 64.3444 27.1674C72.1584 27.1674 78.4095 33.4368 78.67 41.5347C78.67 49.6327 72.1584 55.9021 64.3444 55.9021C56.2699 55.9021 50.0187 49.3715 50.0187 41.5347zM56.5304 41.2735C56.5304 45.7143 60.1769 49.1103 64.3444 49.1103C68.5118 49.1103 71.8979 45.4531 72.1584 41.2735C72.1584 36.8327 68.5118 33.4368 64.3444 33.4368C59.9165 33.4368 56.5304 37.0939 56.5304 41.2735z'\n        fill='currentColor'\n        fillRule='evenodd'\n        role='presentation'\n      />\n    </g>\n  </svg>,\n  'Error404Icon'\n);\n\nError404Icon.displayName = 'Error404Icon';\n","import { createSvgIcon, SvgIconProps } from '@mui/material';\n\nimport { FC } from 'react';\n\nexport const Error500Icon: FC<SvgIconProps> = createSvgIcon(\n  <svg viewBox='0 0 128 128'>\n    <g fill='none'>\n      <path\n        d='M82.7671 21.7143C77.0411 21.7143 70.274 24.8403 70.274 39.1681V43.0756C70.274 45.4202 70.274 47.7647 70.0137 48.8067C69.2329 49.0672 66.6301 49.0672 64.2877 49.0672H62.726V27.4454C62.726 11.8151 57.2603 4 46.3288 4C35.3973 4 29.9315 11.8151 29.9315 27.4454V66C27.589 66 25.2466 66 24.4658 65.7395C24.2055 64.958 24.2055 62.3529 24.2055 60.0084V47.5042V47.2437C24.2055 32.916 17.4384 29.7899 11.9726 29.7899C6.76712 30.0504 0 33.1765 0 47.5042V70.4286C0 83.9748 5.72603 89.9664 19.5205 89.9664H30.4521V124.874C30.4521 126.697 32.0137 128 33.5753 128H59.6027C61.4247 128 62.726 126.437 62.726 124.874V72.7731H75.2192C88.7534 72.7731 94.7397 67.042 94.7397 53.2353V39.1681C95 24.5798 88.2329 21.7143 82.7671 21.7143zM56.4795 121.487H36.9589V89.9664H42.6849C44.5069 89.9664 45.8082 88.4034 45.8082 86.8403C45.8082 85.2773 44.2466 83.7143 42.6849 83.7143H19.5205C9.36986 83.7143 6.50685 80.8487 6.50685 70.6891V47.7647C6.50685 36.8235 10.411 36.8235 12.2329 36.8235C14.0548 36.8235 17.9589 36.8235 17.9589 47.5042V47.7647V60.5294C17.9589 71.4706 19.5205 72.7731 30.1918 72.7731H42.1644C43.9863 72.7731 45.2877 71.2101 45.2877 69.6471C45.2877 68.084 43.726 66.521 42.1644 66.521H36.4384V27.4454C36.4384 10.5126 43.2055 10.5126 46.3288 10.5126C49.1918 10.5126 56.2192 10.5126 56.2192 27.4454V121.487H56.4795zM88.4932 53.2353C88.4932 63.395 85.6301 66.2605 75.4795 66.2605H62.9863V55.5798H64.5479C75.4794 55.5798 76.7808 54.0168 76.7808 43.0756V39.1681C76.7808 28.2269 80.6849 28.2269 82.5069 28.2269C84.3288 28.2269 88.2329 28.2269 88.2329 39.1681V53.2353H88.4932z'\n        fill='currentColor'\n        role='presentation'\n      />\n      <path\n        d='M127.5 117.2C127.5 116.7 127.2 116.2 126.7 116C126.2 115.8 125.7 115.9 125.3 116.3C125.3 116.3 121.7 119.8 117.3 120.4C116.8 118.4 115.3 116.8 113.3 116.2C114 115.2 114.5 114 114.5 112.7C114.5 109.5 111.9 106.9 108.7 106.9H101.1C101.4 104.3 102 98.3 102 94.8C102 90.5 98.6 89 96.2 89H90.8C86.5 89 85 92.4 85 94.8C85 95.4 85.5 95.9 86.1 96L94 96.9V107.1C91.2 107.5 89 109.9 89 112.8C89 114.1 89.4 115.3 90.2 116.3C87.8 116.9 86 119.1 86 121.8C86 125 88.6 127.6 91.8 127.6H111.4H111.8H117.3C125.4 127.5 127.5 120.8 127.5 117.2zM87.7 93.7C88 92.7 88.7 91.5 90.8 91.5H96.3C96.6 91.5 99.5 91.6 99.5 94.7C99.5 98.2 98.9 104.4 98.6 106.9H96.5V95.8C96.5 95.2 96 94.6 95.4 94.6L87.7 93.7zM94.8 109.5H108.8C110.6 109.5 112 111 112 112.7C112 114.4 110.5 116 108.8 116H94.8C93 116 91.6 114.5 91.6 112.8C91.6 111.1 93 109.5 94.8 109.5zM111.3 125H91.8C90 125 88.6 123.5 88.6 121.8C88.6 120.1 90.1 118.6 91.8 118.6H111.8C113.6 118.6 115 120.1 115 121.8C115 123.5 113.5 125 111.8 125H111.3zM117.2 125H116.4C116.8 124.4 117.1 123.7 117.3 122.9C120.1 122.6 122.6 121.4 124.4 120.2C123.6 122.4 121.7 125 117.2 125z'\n        fill='currentColor'\n        role='presentation'\n      />\n    </g>\n  </svg>,\n  'Error500Icon'\n);\n\nError500Icon.displayName = 'Error500Icon';\n","import { styled } from '@mui/material';\nimport type { HttpErrorType } from '@vestwell-frontend/hooks';\n\nimport { FC } from 'react';\n\nimport { Error, ErrorProps } from './Error';\nimport { Error404Icon, Error500Icon, ExceptionIcon } from './icon';\n\nexport const ERRORS = {\n  401: {\n    message: 'Redirecting to login…',\n    title: 'You have been logged out'\n  },\n  404: {\n    message:\n      'The page you were looking for does not seem to exist. We apologize for any inconvenience. Rest assured we are actively looking into where it went.',\n    title: 'Page Not Found'\n  },\n  500: {\n    message:\n      'We recommend refreshing the page or going back and trying again. We apologize for any inconvenience. Rest assured we are actively looking into what happened.',\n    title: 'Whoops… something’s gone wrong.'\n  }\n};\n\nexport const GENERIC_ERROR = {\n  message:\n    'If the problem persists, please reach out and tell us a bit about what happened.',\n  title: 'Something’s gone wrong!'\n};\n\nexport type StatusCodeErrorProps = Partial<\n  HttpErrorType &\n    ErrorProps & {\n      /** Styles to merge with container */\n      className?: string;\n    }\n>;\n\nconst StyledError404Icon = styled(Error404Icon)(({ theme }) => ({\n  height: theme.spacing(32),\n  width: theme.spacing(32)\n}));\n\nconst StyledExceptionIcon = styled(ExceptionIcon)(({ theme }) => ({\n  color: theme.palette.dijon.main,\n  height: theme.spacing(32),\n  marginBottom: theme.spacing(4),\n  width: theme.spacing(32)\n}));\n\nconst StyledError500Icon = styled(Error500Icon)(({ theme }) => ({\n  height: theme.spacing(32),\n  width: theme.spacing(32)\n}));\n\nexport const StatusCodeError: FC<StatusCodeErrorProps> = ({\n  status,\n  ...props\n}) => {\n  const error = ERRORS[status] || GENERIC_ERROR;\n\n  const errorStatus = status?.toString();\n\n  const icon =\n    errorStatus === '404'\n      ? StyledError404Icon\n      : errorStatus === '500'\n        ? StyledError500Icon\n        : StyledExceptionIcon;\n\n  return (\n    <Error\n      {...props}\n      details={error.message}\n      icon={icon}\n      name='StatusCodeError'\n      showRefreshButton={errorStatus === '500'}\n      title={error.title}\n    />\n  );\n};\n\nStatusCodeError.displayName = 'StatusCodeError';\n","import isPropValid from '@emotion/is-prop-valid';\nimport { Box, Container, styled } from '@mui/material';\nimport type { HttpErrorType } from '@vestwell-frontend/hooks';\n\nimport {\n  Children,\n  CSSProperties,\n  DetailedHTMLProps,\n  forwardRef,\n  HTMLAttributes,\n  isValidElement,\n  ReactElement,\n  ReactNode,\n  useMemo\n} from 'react';\n\nimport { Loader } from './Loader';\nimport { PageContext } from './PageContext';\nimport { PageFooter, PageFooterProps } from './PageFooter';\nimport { StatusCodeError } from './StatusCodeError';\n\nconst Content = styled(Container, {\n  shouldForwardProp: prop =>\n    !['innerStyles', 'hasStickyFooter'].includes(prop.toString())\n})<{ innerStyles?: CSSProperties; hasStickyFooter?: boolean }>(\n  ({ innerStyles, hasStickyFooter, theme }) => ({\n    ...(hasStickyFooter && {\n      marginBottom: theme.spacing(16)\n    }),\n    ...innerStyles\n  })\n);\n\n/**\n * Page\n * Scrollable, stretched layout for content\n */\nexport type PageProps = DetailedHTMLProps<\n  HTMLAttributes<HTMLDivElement>,\n  HTMLDivElement\n> & {\n  'data-component'?: string;\n  children: ReactNode;\n  /** when truthy it displays the error message */\n  error?: Pick<HttpErrorType, 'code' | 'status'>;\n  /** Slot to render footer within layout */\n  footer?: ReactNode;\n  /** adds extra padding in mobile view for drawer button (padding-left) */\n  hasDrawer?: boolean;\n  /** adds extra padding in mobile view for shelf button (padding-right) */\n  hasShelf?: boolean;\n  /** add css styles to the nested div */\n  innerStyles?: CSSProperties;\n  /** display the loading indicator */\n  isLoading?: boolean;\n  /** temporary workaround for portals with corrected page structure */\n  noBottomPadding?: boolean;\n};\n\nconst StyledPage = styled('div', {\n  shouldForwardProp: isPropValid\n})<{\n  hasDrawer?: boolean;\n  hasShelf?: boolean;\n  hasStickyFooter?: boolean;\n}>(props => ({\n  '& + [data-component=\"pageFooter\"]': {\n    boxShadow: '1px -3px 5px #72727226',\n    paddingLeft: props.theme.spacing(12),\n    paddingRight: props.theme.spacing(props.hasShelf ? 6 : 12),\n    [props.theme.breakpoints.down('lg')]: {\n      paddingLeft: props.theme.spacing(10),\n      paddingRight: props.theme.spacing(10)\n    },\n    [props.theme.breakpoints.down('sm')]: {\n      paddingLeft: props.theme.spacing(props.hasShelf ? 10 : 4),\n      paddingRight: props.theme.spacing(props.hasShelf ? 10 : 4)\n    }\n  },\n  display: 'flex',\n  flex: 1,\n  flexDirection: 'column',\n  gridArea: 'page',\n  height: '100%',\n  overflowY: 'auto',\n  paddingLeft: props.theme.spacing(12),\n  paddingRight: props.theme.spacing(props.hasShelf ? 6 : 12),\n  paddingTop: props.theme.spacing(8),\n  position: 'relative',\n  width: '100%',\n  [props.theme.breakpoints.down('sm')]: {\n    padding: props.theme.spacing(\n      5,\n      props.hasShelf ? 10 : 4,\n      1,\n      props.hasDrawer ? 10 : 4\n    ),\n    width: '100%'\n  },\n  ...(props.hasStickyFooter && {\n    paddingBottom: '0 !important'\n  })\n}));\n\nconst hasFooter = (\n  element: ReactNode\n): element is ReactElement<PageFooterProps> =>\n  isValidElement<PageFooterProps>(element) && element.type === PageFooter;\n\nexport const Page = forwardRef<HTMLDivElement, PageProps>(\n  (\n    {\n      children,\n      error,\n      footer,\n      innerStyles,\n      isLoading,\n      noBottomPadding,\n      ...props\n    },\n    ref\n  ) => {\n    const ctx = useMemo(\n      () => ({\n        hasMainSiblings: Children.count(children) > 1\n      }),\n      [children]\n    );\n    const hasStickyFooter = useMemo(\n      () => hasFooter(footer) && footer.props.sticky,\n      [footer]\n    );\n\n    return (\n      <PageContext.Provider value={ctx}>\n        <StyledPage\n          {...props}\n          data-component={props['data-component'] || 'Page'}\n          hasStickyFooter={hasStickyFooter}\n          id='mainContent'\n          ref={ref}>\n          <Content\n            hasStickyFooter={hasStickyFooter}\n            innerStyles={innerStyles}\n            //https://stackoverflow.com/questions/45519275/grid-in-material-ui-causes-horizontal-scroll-react\n            maxWidth={false}>\n            {isLoading && <Loader />}\n            {error && (\n              <Box\n                alignItems='center'\n                bottom={0}\n                display='flex'\n                height='100%'\n                justifyContent='center'\n                left={0}\n                position='absolute'\n                right={0}\n                top={0}\n                width='100%'>\n                <StatusCodeError code={error.code} status={error.status} />\n              </Box>\n            )}\n            {!isLoading && children}\n          </Content>\n          {!isLoading && footer}\n        </StyledPage>\n      </PageContext.Provider>\n    );\n  }\n);\n\nPage.displayName = 'Page';\n","import { Box } from '@mui/material';\nimport type { HttpErrorType } from '@vestwell-frontend/hooks';\n\nimport { Component, FC, Fragment, ReactNode, Suspense } from 'react';\n\nimport { Loader } from './Loader';\nimport { Page } from './Page';\nimport { StatusCodeError } from './StatusCodeError';\n\ntype ApiBoundaryState = {\n  error?: Partial<HttpErrorType>;\n  code?: string;\n  status?: number;\n};\n\nexport type ApiBoundaryProps = {\n  children?: ReactNode;\n  hidePage?: boolean;\n  isLoading?: boolean;\n  error?: Partial<HttpErrorType>;\n};\n\nexport class ApiBoundary extends Component<ApiBoundaryProps, ApiBoundaryState> {\n  state = {\n    code: undefined,\n    error: undefined,\n    status: undefined\n  };\n\n  static getDerivedStateFromError(error) {\n    return {\n      code: error.code,\n      error,\n      status: error.status ?? 500\n    };\n  }\n\n  render() {\n    const error = this.state.error || this.props.error;\n    const isPage = !this.props.hidePage;\n    const Wrapper = isPage ? Page : Fragment;\n\n    if (error && error?.status !== 401) {\n      return (\n        <Wrapper>\n          {isPage ? (\n            <Box\n              alignItems='center'\n              bottom={0}\n              display='flex'\n              height='100%'\n              justifyContent='center'\n              left={0}\n              position='absolute'\n              right={0}\n              top={0}\n              width='100%'>\n              <StatusCodeError code={error.code} status={error.status} />\n            </Box>\n          ) : (\n            <StatusCodeError code={error.code} status={error.status} />\n          )}\n        </Wrapper>\n      );\n    }\n\n    if (this.props.isLoading) {\n      return (\n        <Wrapper>\n          <Loader position={isPage ? 'absolute' : 'relative'} />\n        </Wrapper>\n      );\n    }\n\n    return (\n      <Suspense\n        fallback={\n          <Wrapper>\n            <Loader position={isPage ? 'absolute' : 'relative'} />\n          </Wrapper>\n        }>\n        {this.props.children}\n      </Suspense>\n    );\n  }\n}\n\nexport function withApiBoundary<Props>(\n  Component,\n  apiBoundaryProps?: ApiBoundaryProps\n): FC<Props> {\n  const Wrapper: FC<Props> = props => (\n    <ApiBoundary {...apiBoundaryProps}>\n      <Component {...props} />\n    </ApiBoundary>\n  );\n\n  Wrapper.displayName = 'ApiBoundary';\n\n  return Wrapper;\n}\n","import axios from 'axios';\nimport { createContext, FC, ReactNode, useContext, useEffect } from 'react';\nimport { useLocalStorage } from 'usehooks-ts';\nimport { createStore, StoreApi, useStore } from 'zustand';\n\ntype Auth = {\n  token: string;\n  setToken: (token: string) => void;\n};\n\ntype AuthProviderProps = {\n  children: ReactNode;\n};\n\nconst AuthContext = createContext<StoreApi<Auth>>(null);\n\nexport const useAuth = () => {\n  const store = useContext(AuthContext);\n  return useStore(store) as Auth;\n};\n\nexport const AuthProvider: FC<AuthProviderProps> = props => {\n  const [token, setToken] = useLocalStorage('token', null);\n\n  const authConfigStore = createStore<Auth>()(() => ({\n    setToken: token => {\n      const validToken = token ? token : null;\n      setToken(validToken);\n      axios.defaults.headers.common['Authorization'] = validToken;\n    },\n    token\n  }));\n\n  useEffect(() => {\n    axios.defaults.headers.common['Authorization'] = token;\n  }, []);\n\n  return (\n    <AuthContext.Provider value={authConfigStore}>\n      {props.children}\n    </AuthContext.Provider>\n  );\n};\n","import {\n  GetWhiteLabelResDto,\n  useGetWhiteLabelUnauthorized\n} from '@portal-middleware/hooks';\n\nimport { createContext, FC, ReactNode, useContext } from 'react';\nimport { createStore, StoreApi, useStore } from 'zustand';\n\ntype ConfigProviderProps = {\n  children: ReactNode;\n};\n\ntype Config = GetWhiteLabelResDto;\n\nconst ConfigContext = createContext<StoreApi<Config>>(null);\n\nexport const useConfig = () => {\n  const store = useContext(ConfigContext);\n  return useStore(store) as Config;\n};\n\nexport const ConfigProvider: FC<ConfigProviderProps> = props => {\n  const whitelabel = useGetWhiteLabelUnauthorized({\n    query: {\n      keepPreviousData: true,\n      useErrorBoundary: false\n    }\n  });\n\n  const configStore = createStore<Config>()(() => {\n    return whitelabel.data;\n  });\n\n  return whitelabel.isInitialLoading ? (\n    <></>\n  ) : (\n    <ConfigContext.Provider value={configStore}>\n      {props.children}\n    </ConfigContext.Provider>\n  );\n};\n","import { nanoid } from 'nanoid';\nimport {\n  createContext,\n  FC,\n  ReactNode,\n  SyntheticEvent,\n  useContext,\n  useEffect,\n  useMemo,\n  useRef\n} from 'react';\nimport { useLocation, useNavigate } from 'react-router-dom';\nimport { usePrevious, useUpdateEffect } from 'react-use';\nimport { createStore, StoreApi, useStore } from 'zustand';\nimport { createJSONStorage, persist } from 'zustand/middleware';\n\nexport type WizardStatus = 'active' | 'inactive' | 'complete' | 'error';\n\nexport type WizardConfig<T = Record<string, unknown>> = {\n  initialState: T;\n  steps: WizardStep<T>[];\n};\n\nexport type WizardStep<State = Record<string, unknown>> = {\n  caption?: ReactNode;\n  /** set the component you want to render here */\n  Component?: FC<{ state?: State } & Record<string, unknown>>;\n  id?: number | string;\n  index?: number;\n  isVisible?: (prop?: boolean) => boolean;\n  onClick?: () => void;\n  /** status of step */\n  status?: WizardStatus;\n  subTitle?: ReactNode;\n  /** title of step */\n  title?: string;\n  /** callback to set the step as active when it returns true */\n  when?: (state: State) => boolean;\n  url?: string;\n  params?: object;\n};\n\nexport interface WizardProviderCtx<State = Record<string, unknown>> {\n  /** whether the steps are link based  */\n  hasLinks: boolean;\n  /** whether there is a next step */\n  hasNextStep: boolean;\n  /** whether there is a prev step */\n  hasPrevStep: boolean;\n  /** current step index */\n  index: number;\n  /** initial state of the state */\n  initialState?: State;\n  /** navigate to next step */\n  nextStep: (e?: SyntheticEvent) => void;\n  /** navigate to prev step */\n  prevStep: (e?: SyntheticEvent) => void;\n  /** reset state to initialState */\n  resetState: () => void;\n  /** update current state */\n  setState: (state: Partial<State>) => void;\n  /** update current step */\n  setStep: (step: WizardStep) => void;\n  /** update steps */\n  setSteps: (steps: WizardStep[]) => void;\n  /** tracks the current state for the wizard */\n  state?: State;\n  /** current step in wizard */\n  step?: WizardStep;\n  /** all steps for wizard */\n  steps: WizardStep[];\n}\n\nexport interface WizardProviderProps<State = Record<string, unknown>> {\n  children: ReactNode;\n  /** initial state for the context */\n  initialState?: State;\n  /** namespace to use for localstorage */\n  name?: string;\n  /** callback for when state changes */\n  onStateChange?: (state) => Promise<void> | void;\n  /** callback for when step changes */\n  onStepChange?: (step: WizardStep) => Promise<void> | void;\n  /** current state; will use this value when change is detected */\n  state?: State;\n  /** the steps for the wizard */\n  steps: WizardStep<State>[];\n  /** enables localstorage of store */\n  useLocalStorage?: boolean;\n}\n\nexport const WizardContext = createContext<StoreApi<WizardProviderCtx>>(null);\n\nexport function useWizard<State = Record<string, unknown>>() {\n  const store = useContext(WizardContext);\n  return useStore(store) as WizardProviderCtx<State>;\n}\n\nexport function storage<T>(useLocalStorage, store, name) {\n  return useLocalStorage\n    ? createStore<WizardProviderCtx<T>, any>(\n        persist<WizardProviderCtx<T>>(set => store(set), {\n          merge: (storage: WizardProviderCtx<T>, current) => {\n            /**\n             * load prior values stored, and re-hydrate the\n             * steps with properties that could not be serialized,\n             * e.g. when()\n             */\n\n            const initSteps = current.steps.reduce(\n              (acc, step, i) => ({ ...acc, [i]: step }),\n              {}\n            );\n\n            const steps = storage.steps.map((step, i) => ({\n              ...step,\n              ...initSteps[i]\n            }));\n\n            return {\n              ...current,\n              ...storage,\n              steps\n            };\n          },\n          name,\n          storage: createJSONStorage(() => sessionStorage)\n        })\n      )\n    : createStore<WizardProviderCtx<T>>(set => store(set));\n}\n\nexport function WizardProvider<State extends Record<string, unknown>>({\n  useLocalStorage,\n  name,\n  ...props\n}: WizardProviderProps<State>) {\n  const location = useLocation();\n  const isStorybook = !!process.env.STORYBOOK;\n\n  const steps = useMemo(\n    () =>\n      props.steps.map((step, index) => ({\n        ...step,\n        id: step.id || nanoid(),\n        index,\n        title: step.title\n      })),\n    [props.steps]\n  );\n\n  const hasLinks = useMemo(() => steps.every(step => step.url), [steps]);\n\n  const index = useMemo(() => {\n    if (!hasLinks) return 0;\n    const foundIndex = steps.findIndex(({ url }) =>\n      location.pathname.endsWith(url)\n    );\n    return foundIndex !== -1 || !isStorybook ? foundIndex : 0;\n  }, [hasLinks, steps, location.pathname, isStorybook]);\n\n  const createWizardStore = () =>\n    storage<State>(\n      useLocalStorage,\n      set => ({\n        hasLinks,\n        hasNextStep: !!steps[index + 1],\n        hasPrevStep: !!steps[index - 1],\n        index,\n        initialState: props.initialState,\n        nextStep: () =>\n          set(prev => {\n            const index = prev.hasLinks\n              ? prev.steps.findIndex(({ url }) =>\n                  window.location.pathname.endsWith(url)\n                ) + 1\n              : prev.index + 1;\n\n            return {\n              ...prev,\n              hasNextStep: !!prev.steps[index + 1],\n              hasPrevStep: true,\n              index,\n              step: prev.steps[index]\n            };\n          }),\n        prevStep: () =>\n          set(prev => {\n            const index = prev.hasLinks\n              ? prev.steps.findIndex(({ url }) =>\n                  window.location.pathname.endsWith(url)\n                ) - 1\n              : prev.index - 1;\n\n            return {\n              ...prev,\n              hasNextStep: true,\n              hasPrevStep: !!prev.steps[index - 1],\n              index,\n              step: prev.steps[index]\n            };\n          }),\n        resetState: () =>\n          set(prev => ({\n            ...prev,\n            state: prev.initialState\n          })),\n        setState: update =>\n          set(prev => {\n            return {\n              ...prev,\n              state: {\n                ...prev.state,\n                ...update\n              }\n            };\n          }),\n        setStep: (step: WizardStep<State>) =>\n          set(prev => ({\n            ...prev,\n            hasNextStep: !!prev.steps[step.index + 1],\n            hasPrevStep: !!prev.steps[step.index - 1],\n            index: step.index,\n            step\n          })),\n        setSteps: (steps: WizardStep<State>[]) =>\n          set(prev => {\n            const updatedSteps = steps.map((step, index) => ({\n              ...step,\n              id: step.id || nanoid(),\n              index\n            }));\n\n            const hasLinks = updatedSteps.every(step => step.url);\n\n            const index = hasLinks\n              ? updatedSteps.findIndex(({ url }) =>\n                  location.pathname.endsWith(url)\n                )\n              : 0;\n\n            return {\n              ...prev,\n              hasLinks,\n              hasNextStep: !!prev.steps[index + 1],\n              hasPrevStep: !!prev.steps[index - 1],\n              index,\n              step: prev.steps[index],\n              steps: updatedSteps\n            };\n          }),\n        state: props.state ?? props.initialState,\n        step: steps[index],\n        steps\n      }),\n      name\n    );\n\n  const storeRef = useRef<ReturnType<typeof createWizardStore>>(undefined);\n\n  if (!storeRef.current) {\n    storeRef.current = createWizardStore();\n  }\n\n  return (\n    <WizardContext.Provider value={storeRef.current}>\n      <WizardProviderCtrl\n        initialState={props.initialState}\n        onStateChange={props.onStateChange}\n        onStepChange={props.onStepChange}\n        steps={steps}>\n        {props.children}\n      </WizardProviderCtrl>\n    </WizardContext.Provider>\n  );\n}\n\nexport const WizardProviderCtrl: FC<\n  Pick<\n    WizardProviderProps,\n    'children' | 'initialState' | 'onStateChange' | 'onStepChange' | 'steps'\n  >\n> = props => {\n  const location = useLocation();\n  const navigate = useNavigate();\n\n  const store = useWizard();\n  const prevIndex = usePrevious(store.step?.index ?? 0);\n\n  /** update the steps and initialState when reference changes */\n  useUpdateEffect(() => {\n    if (props.steps?.length) {\n      store.setState(props.initialState);\n      store.setSteps(props.steps);\n    }\n  }, [props.steps]);\n\n  /** update the step when state changes & at least one step has when property */\n  useEffect(() => {\n    /** using state driven */\n    if (!store.hasLinks && prevIndex > -1 && prevIndex > store.step.index) {\n      return;\n    }\n\n    if (!store.steps.some(step => step.when)) {\n      return;\n    }\n\n    const nextStep = store.steps\n      .slice()\n      .reverse()\n      .find(step => (step.when ? step.when(store.state) : step));\n\n    const hasStepChanged = store.hasLinks\n      ? nextStep && store.step?.url !== nextStep?.url\n      : nextStep && store.step.index !== nextStep?.index;\n\n    if (hasStepChanged) {\n      store.setStep(nextStep);\n    }\n\n    if (store.hasLinks && nextStep && nextStep.url !== location.pathname) {\n      navigate(nextStep.url);\n    }\n  }, [store.state, prevIndex, location.pathname]);\n\n  /** update the step when url changes */\n  useUpdateEffect(() => {\n    if (store.hasLinks) {\n      const nextStep = store.steps.find(({ url }) =>\n        location.pathname.endsWith(url)\n      );\n\n      if (nextStep && store.step?.url !== nextStep?.url) {\n        store.setStep(nextStep);\n      }\n    }\n  }, [location.pathname, store.steps]);\n\n  /** when step changes, navigate to that url */\n  useUpdateEffect(() => {\n    if (store.step?.url) {\n      navigate(store.step.url, { state: store.step?.params });\n    }\n  }, [store.step?.url]);\n\n  /** when state changes, call onStateChange */\n  useUpdateEffect(() => {\n    (async () => {\n      if (props.onStateChange) {\n        await props.onStateChange(store.state);\n      }\n    })();\n  }, [store.state]);\n\n  /** when step changes, call onStepChange */\n  useEffect(() => {\n    (async () => {\n      if (props.onStepChange) {\n        await props.onStepChange(store.step);\n      }\n    })();\n  }, [store.step]);\n\n  /**\n   * prevent showing children when step is undefined;\n   * e.g. wait for step to be defined\n   */\n  return <>{!!store.step && props.children}</>;\n};\n","import {\n  useGetRegistrationState,\n  usePatchRegistrationState\n} from '@sentinel/hooks';\nimport { WizardProvider, WizardProviderProps } from '@vestwell-frontend/ui';\n\nimport { useCallback } from 'react';\n\nimport { useAuth } from './AuthProvider';\n\ninterface RegistrationProviderProps<Status>\n  extends Pick<\n    WizardProviderProps<Status>,\n    'initialState' | 'children' | 'steps'\n  > {\n  entity: 'advisor' | 'participant' | 'sponsor';\n}\n\nexport function RegistrationProvider<Status extends Record<string, unknown>>(\n  props: RegistrationProviderProps<Status>\n) {\n  const auth = useAuth();\n\n  const state = useGetRegistrationState<Status>({\n    query: {\n      keepPreviousData: true,\n      onSuccess: data => {\n        if (data.type && props.entity !== data.type) {\n          auth.setToken('');\n          window.location.assign(\n            `${window.location.origin}/auth/api/register/reset?entity=${props.entity}`\n          );\n        }\n      }\n    }\n  });\n\n  const setState = usePatchRegistrationState({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        state.refetch();\n      }\n    }\n  });\n\n  const onStateChange = useCallback(\n    async state => {\n      await setState.mutateAsync({\n        data: {\n          entity: props.entity,\n          state\n        }\n      });\n    },\n    [props.entity]\n  );\n\n  return !state.data ? null : (\n    <WizardProvider<Status>\n      initialState={props.initialState}\n      onStateChange={onStateChange}\n      state={state.data}\n      steps={props.steps}>\n      {props.children}\n    </WizardProvider>\n  );\n}\n","import { Box, styled, useMediaQuery } from '@mui/material';\n\nimport { FC, useMemo } from 'react';\n\nimport { Error404Icon } from './icon';\nimport { Text } from './Text';\n\nexport type PageNotFoundProps = {\n  basePath?: string;\n  default?: boolean;\n  defaultPath?: string;\n  legacyPaths?: (string | RegExp)[];\n};\n\nconst Container = styled('div')(({ theme }) => ({\n  alignItems: 'center',\n  display: 'flex',\n  flexDirection: 'column',\n  gridArea: 'page',\n  justifyContent: 'center',\n  padding: theme.spacing(8),\n  textAlign: 'center',\n  width: '100%'\n}));\n\nconst StyledError404Icon = styled(Error404Icon)(({ theme }) => ({\n  height: theme.spacing(32),\n  width: theme.spacing(32)\n}));\n\nconst legacyPaths = [/^\\/api\\//, /^\\/auth\\/api\\//];\n\nexport const PageNotFound: FC<PageNotFoundProps> = props => {\n  const isMobile = useMediaQuery(theme => theme.breakpoints.down('sm'));\n\n  const isRedirectPath = useMemo(\n    () =>\n      [\n        ...(props.basePath ? [props.basePath] : []),\n        ...(process.env.NODE_ENV === 'development' ? ['/'] : [])\n      ].some(p => p === window.location.pathname),\n    [props.basePath]\n  );\n\n  const isLegacyPath = useMemo(\n    () =>\n      [...legacyPaths, ...(props.legacyPaths ?? [])].some(p => {\n        return typeof p === 'string'\n          ? window.location.pathname === p\n          : p.test(window.location.pathname);\n      }),\n    [props.legacyPaths]\n  );\n\n  /**\n   * redirect to the index path if path is props.basePath or \"/\" (dev only)\n   * otherwise, show the page not found error.\n   */\n  if (isRedirectPath && props.defaultPath) {\n    window.location.pathname = props.defaultPath;\n    return null;\n  }\n\n  /**\n   * redirect to the index path if path is props.basePath or \"/\" (dev only)\n   * otherwise, show the page not found error.\n   */\n  if (isLegacyPath) {\n    window.location.href = `${window.location.origin}${window.location.pathname}`;\n    return null;\n  }\n\n  return (\n    <Container data-component='PageNotFound' role='presentation'>\n      <StyledError404Icon color='dijon' />\n      <Text\n        color='black'\n        component='h1'\n        data-testid='PageNotFound__title'\n        marginX='auto'\n        mt={isMobile ? 8 : 12}\n        variant={isMobile ? 'e2' : 'b2'}>\n        Page Not Found\n      </Text>\n      <Box mt={10}>\n        The page you were looking for does not exist. We apologize for any\n        inconvenience. We are continually working to improve the site.\n      </Box>\n      <Box mt={4}>If you need assistance, please contact Client Services.</Box>\n    </Container>\n  );\n};\n\nPageNotFound.displayName = 'PageNotFound';\n","import {\n  DetailedHTMLProps,\n  FC,\n  ImgHTMLAttributes,\n  useCallback,\n  useState\n} from 'react';\n\nexport type SuspenseImageProps = DetailedHTMLProps<\n  ImgHTMLAttributes<HTMLImageElement>,\n  HTMLImageElement\n>;\n\nexport const SuspenseImage: FC<SuspenseImageProps> = ({\n  alt = '',\n  src,\n  crossOrigin = null,\n  ...rest\n}) => {\n  const [imageUrl, setImageUrl] = useState(src || rest['data-defaultsrc']);\n\n  const onError = useCallback(() => {\n    setImageUrl(rest['data-defaultsrc']);\n  }, [rest['data-defaultsrc']]);\n\n  return (\n    <img\n      {...rest}\n      alt={alt}\n      crossOrigin={crossOrigin}\n      onError={onError}\n      src={imageUrl}\n    />\n  );\n};\n","export const PLACEHOLDER = '--';\n\nexport const EXAMPLE_LONG_PARAGRAPH = `\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec aliquet massa nec massa interdum efficitur. Suspendisse vitae quam nulla. Proin sodales odio vitae tortor fermentum aliquet. Aenean dapibus eleifend massa, at maximus mi ornare ac. Nam turpis velit, rhoncus ac ex sed, imperdiet dictum sem. Donec vitae sapien consectetur tortor aliquam vulputate fermentum malesuada arcu. Aenean vel orci vulputate, semper ipsum sit amet, placerat nisl. Aenean at consectetur diam. Etiam pellentesque libero mauris, nec dictum arcu dictum accumsan. Curabitur accumsan magna eget odio volutpat, eu hendrerit dui egestas. Duis a elementum sapien. Phasellus sit amet purus enim.\n`;\n","export function hexToRgba(hex: string, opacity = 1) {\n  if (opacity === 1 || typeof opacity !== 'number') {\n    return hex;\n  }\n\n  const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n\n  const rgba = result\n    ? [\n        parseInt(result[1], 16),\n        parseInt(result[2], 16),\n        parseInt(result[3], 16),\n        opacity\n      ]\n    : null;\n\n  return rgba ? `rgba(${rgba.join(', ')})` : hex;\n}\n","import { Palette, PaletteColor, styled } from '@mui/material';\n\nimport { FC, ReactNode } from 'react';\n\nimport { PLACEHOLDER } from '../consts';\nimport { hexToRgba } from '../helpers';\nimport { Loading } from './Loading';\n\nexport type PillProps = {\n  'data-testid'?: string;\n  backgroundColor: keyof Palette;\n  backgroundColorOpacity?: number;\n  fontColor?: keyof Palette;\n  isLoading?: boolean;\n  value: ReactNode;\n};\n\nconst StyledBox = styled('div')<\n  Pick<PillProps, 'backgroundColor' | 'backgroundColorOpacity'> & {\n    color: PillProps['fontColor'];\n  }\n>(({ theme, color, backgroundColor, backgroundColorOpacity }) => ({\n  backgroundColor: hexToRgba(\n    (theme.palette[backgroundColor] as PaletteColor)?.main,\n    backgroundColorOpacity\n  ),\n  borderRadius: theme.spacing(2),\n  color: (theme.palette[color] as PaletteColor)?.main,\n  fontSize: theme.spacing(2.5),\n  fontWeight: 800,\n  padding: theme.spacing(1, 2),\n  textTransform: 'uppercase',\n  width: 'fit-content'\n}));\n\nexport const Pill: FC<PillProps> = ({\n  backgroundColorOpacity = 0.3,\n  ...props\n}) => (\n  <StyledBox\n    {...props}\n    backgroundColor={props.backgroundColor}\n    backgroundColorOpacity={backgroundColorOpacity}\n    color={props.fontColor}\n    data-component='pill'\n    data-testid={props['data-testid']}>\n    {props.value || <span>{props.isLoading ? <Loading /> : PLACEHOLDER}</span>}\n  </StyledBox>\n);\n\nPill.displayName = 'Pill';\n","import { BusinessOutlined } from '@mui/icons-material';\nimport { Stack, styled } from '@mui/material';\nimport { useDocumentTitle } from '@vestwell-frontend/hooks';\nimport { Pill, Text } from '@vestwell-frontend/ui';\n\nimport { FC, ReactNode } from 'react';\n\nconst planType = {\n  '401k': 'Retirement Savings 401(k)',\n  '403b': 'Retirement Savings 403(b)',\n  ESA: 'Emergency Savings'\n} as const;\n\nconst StyledBusinessOutlined = styled(BusinessOutlined)(({ theme }) => ({\n  marginRight: theme.spacing(2)\n}));\n\nexport const Header: FC<{\n  caption?: ReactNode;\n  companyName?: string;\n  planName?: string;\n  planType?: string;\n  title: string;\n}> = props => {\n  useDocumentTitle(props.title);\n\n  return (\n    <Stack alignItems='center' data-componet='header' mb={6} spacing={4}>\n      <Text\n        align='center'\n        color='grey50'\n        data-testid='title'\n        mb={0}\n        variant='b2'>\n        {props.title}\n      </Text>\n      {!!props.caption && (\n        <Text\n          align='center'\n          color='grey50'\n          data-testid='caption'\n          mb={0}\n          mx='auto'>\n          {props.caption}\n        </Text>\n      )}\n      {!!props.companyName && (\n        <Text\n          alignItems='center'\n          color='black'\n          data-testid='companyName'\n          data-wg-notranslate\n          display='flex'\n          mb={0}\n          mt={10}\n          variant='g2'>\n          <StyledBusinessOutlined color='grey500' />\n          {props.companyName}\n        </Text>\n      )}\n      {props.planName && (\n        <Stack\n          alignItems='center'\n          border={0.25}\n          borderRadius={1}\n          direction='row'\n          justifyContent='space-between'\n          paddingX={4}\n          paddingY={2}\n          spacing={2}\n          sx={theme => ({\n            borderColor: `${theme.palette.grey500.main} !important`\n          })}>\n          <Text\n            color='grey100'\n            data-testid='planName'\n            data-wg-notranslate\n            mb={0}\n            variant='i2'>\n            {props.planName}\n          </Text>\n          {!!planType[props.planType] && (\n            <Pill\n              backgroundColor='sky'\n              data-testid='planType'\n              fontColor='blueSapphire'\n              value={planType[props.planType]}\n            />\n          )}\n        </Stack>\n      )}\n    </Stack>\n  );\n};\n\nHeader.displayName = 'Header';\n","const safeAreaValues = {\n  bottom: 'var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))',\n  left: 'var(--safe-area-inset-left, env(safe-area-inset-left, 0px))',\n  right: 'var(--safe-area-inset-right, env(safe-area-inset-right, 0px))',\n  top: 'var(--safe-area-inset-top, env(safe-area-inset-top, 0px))'\n};\n\nexport const safeArea = safeAreaValues;\n","import { Alert, CircularProgress, styled } from '@mui/material';\n\nimport { FC, HTMLAttributes, ReactNode } from 'react';\n\nexport type ModalBodyProps = HTMLAttributes<HTMLDivElement> & {\n  className?: string;\n  children: ReactNode;\n  error?: string | ReactNode;\n  isLoading?: boolean;\n  isRounded?: boolean;\n};\n\nconst StyledModalBody = styled('div', {\n  shouldForwardProp: prop => prop !== 'isRounded'\n})<{\n  isRounded?: boolean;\n}>(props => ({\n  /** WCAG 1.4.10 */\n  '@media (max-height: 500px)': {\n    overflow: 'unset'\n  },\n  borderRadius: props.isRounded ? '0.75rem' : undefined,\n  display: 'flex',\n  flexDirection: 'column',\n  flexGrow: 1,\n  height: '100%',\n  overflow: 'hidden'\n}));\n\nconst StyledModalBodyContents = styled('div', {\n  shouldForwardProp: prop => prop !== 'isLoading'\n})<{\n  isLoading?: boolean;\n}>(({ theme, isLoading }) => ({\n  /** WCAG 1.4.10 */\n  '@media (max-height: 500px)': {\n    overflowY: 'unset'\n  },\n  overflowY: 'auto',\n  padding: theme.spacing(10, 10),\n  webkitOverflowScrolling: 'touch',\n  [theme.breakpoints.down('sm')]: {\n    padding: theme.spacing(10, 6)\n  },\n  ...(isLoading && {\n    alignItems: 'center',\n    display: 'flex',\n    flexDirection: 'column'\n  })\n}));\n\nexport const ModalBody: FC<ModalBodyProps> = ({ isRounded, ...props }) => {\n  return (\n    <StyledModalBody isRounded={isRounded}>\n      <StyledModalBodyContents\n        data-component='modalBody'\n        isLoading={props.isLoading}\n        role='presentation'\n        {...props}>\n        {props.isLoading && <CircularProgress data-component='modalLoader' />}\n        {typeof props.error === 'string' && (\n          <Alert\n            dangerouslySetInnerHTML={{ __html: props.error }}\n            data-component='modalError'\n            severity='error'\n          />\n        )}\n        {props.error && typeof props.error !== 'string' && (\n          <Alert data-component='modalError' severity='error'>\n            {props.error}\n          </Alert>\n        )}\n        {!props.isLoading && props.children}\n      </StyledModalBodyContents>\n    </StyledModalBody>\n  );\n};\n\nModalBody.displayName = 'ModalBody';\n","import isPropValid from '@emotion/is-prop-valid';\nimport { styled } from '@mui/material';\n\nimport { forwardRef, HTMLAttributes, ReactNode } from 'react';\n\nexport type ModalContainerProps = HTMLAttributes<HTMLDivElement> & {\n  className?: string;\n  children: ReactNode;\n  lgWidth?: number | string;\n  mdWidth?: number | string;\n};\n\nconst StyledModalContainer = styled('div', {\n  shouldForwardProp: isPropValid\n})<ModalContainerProps>(props => ({\n  '& > form': {\n    display: 'contents'\n  },\n  /** WCAG 1.4.10 */\n  '@media (max-height: 500px)': {\n    overflowY: 'auto'\n  },\n  backgroundColor: 'white',\n  borderRadius: '0.75rem',\n  boxShadow: '0 0 #0000, 0 0 #0000, 0px 4px 48px #0006',\n  display: 'flex',\n  flexDirection: 'column',\n  margin: props.theme.spacing(4),\n  maxHeight: 'calc(100% - 1rem)',\n  outline: 'none',\n  position: 'relative',\n  width: props.lgWidth ?? '44rem',\n  [props.theme.breakpoints.down('md')]: {\n    width: props.mdWidth ?? '44rem'\n  },\n  [props.theme.breakpoints.down('sm')]: {\n    height: '100%',\n    margin: 0,\n    width: '100%'\n  }\n}));\n\nexport const ModalContainer = forwardRef<HTMLDivElement, ModalContainerProps>(\n  (props, ref) => {\n    return (\n      <StyledModalContainer {...props} ref={ref}>\n        {props.children}\n      </StyledModalContainer>\n    );\n  }\n);\n\nModalContainer.displayName = 'ModalContainer';\n","import isPropValid from '@emotion/is-prop-valid';\nimport { styled } from '@mui/material';\n\nimport { FC, HTMLAttributes, ReactNode } from 'react';\n\nimport { Text, TextProps } from './Text';\n\nexport type ModalHeaderProps = HTMLAttributes<HTMLDivElement> & {\n  className?: string;\n  children: ReactNode;\n};\n\nconst StyledModalHeader = styled('div', {\n  shouldForwardProp: isPropValid\n})<ModalHeaderProps>(props => ({\n  display: 'flex',\n  flexDirection: 'column',\n  justifyContent: 'space-between',\n  padding: props.theme.spacing(6, 10),\n  [props.theme.breakpoints.down('sm')]: {\n    padding: props.theme.spacing(6)\n  }\n}));\n\nconst StyledModalHeaderText = styled(Text)<TextProps>(props => ({\n  alignItems: 'center',\n  display: 'flex',\n  justifyContent: 'flex-start',\n  marginBottom: 0,\n  width: '100%',\n  [props.theme.breakpoints.down('sm')]: {\n    justifyContent: 'center'\n  }\n}));\n\nexport const ModalHeader: FC<ModalHeaderProps> = ({ id, ...props }) => {\n  return (\n    <StyledModalHeader data-component='modalHeader' {...props}>\n      <StyledModalHeaderText color='grey100' id={id} variant='e2'>\n        {props.children}\n      </StyledModalHeaderText>\n    </StyledModalHeader>\n  );\n};\n\nModalHeader.displayName = 'ModalHeader';\n","import { Close } from '@mui/icons-material';\nimport {\n  CircularProgress,\n  Divider,\n  IconButton,\n  Modal as MuiModal,\n  ModalProps as MuiModalProps,\n  type Palette,\n  styled,\n  useTheme\n} from '@mui/material';\n\nimport {\n  FC,\n  ReactNode,\n  SyntheticEvent,\n  useCallback,\n  useId,\n  useMemo\n} from 'react';\n\nimport { safeArea } from '../helpers/safeArea.style';\nimport { ModalBody } from './ModalBody';\nimport { ModalContainer } from './ModalContainer';\nimport { ModalHeader } from './ModalHeader';\n\nexport type ModalProps = Pick<MuiModalProps, 'disableEnforceFocus' | 'ref'> & {\n  /** Text content labeling the modal */\n  'aria-label'?: string;\n  /** ID of an element that labels the modal */\n  'aria-labelledby'?: string;\n  /** ID of an element with additional details about the modal */\n  'aria-describedby'?: string;\n  /** unique id; used for test selector */\n  'data-testid'?: string;\n  /** Text or component content */\n  children: ReactNode;\n  /** Display a close button */\n  closeButton?: boolean;\n  /** close confirmation dialog text */\n  confirmMessage?: string;\n  /** Text or component content for sticky header */\n  header?: ReactNode;\n  /** loading state of the modal */\n  isLoading?: boolean;\n  /** Determines the modal's visibility */\n  isOpen?: boolean;\n  /** sets width of modal for lg breakpoint */\n  lgWidth?: number | string;\n  /** Disable ability to close */\n  locked?: boolean;\n  /** sets width of modal for md breakpoint */\n  mdWidth?: number | string;\n  /** Handler function to close modal using keyboard  */\n  onRequestClose(e?: SyntheticEvent): void;\n  /** Make the user confirm before closing */\n  requireConfirmOnClose?: boolean;\n  /** adds scroll event handler to modal body */\n  onScroll?: (e?: SyntheticEvent) => void;\n  /** Aria role */\n  role?: string;\n  /** Color for backdrop */\n  overlayColor?: keyof Palette;\n};\n\nconst ModalLoader = styled('div', { name: 'modalLoader' })({\n  alignItems: 'center',\n  display: 'flex',\n  justifyContent: 'center',\n  minHeight: 350,\n  width: '100%'\n});\n\nconst StyledMuiModal = styled(MuiModal)({\n  alignItems: 'center',\n  display: 'flex',\n  justifyContent: 'center',\n  left: 0,\n  paddingBottom: safeArea.bottom,\n  paddingTop: safeArea.top,\n  position: 'fixed',\n  right: 0,\n  top: 0\n});\n\nconst StyledIconButton = styled(IconButton, {\n  shouldForwardProp: prop => prop !== 'hasHeader'\n})<{ hasHeader: boolean }>(({ theme, hasHeader }) => ({\n  color: theme.palette.black.main,\n  position: 'absolute',\n  right: hasHeader ? theme.spacing(8) : theme.spacing(2),\n  top: hasHeader ? theme.spacing(4.5) : theme.spacing(2)\n}));\n\nexport const Modal: FC<ModalProps> = ({\n  confirmMessage = 'Your data is not saved yet. Are you sure you want to close the form?',\n  ...props\n}) => {\n  const labelId = useId();\n\n  const theme = useTheme();\n\n  const ariaLabelledBy = useMemo(\n    () => (typeof props.header === 'string' ? labelId : undefined),\n    [labelId, props.header]\n  );\n\n  const handleClose = useCallback(() => {\n    if (!props.requireConfirmOnClose) {\n      return props.onRequestClose();\n    }\n\n    if (window.confirm(confirmMessage)) {\n      props.onRequestClose();\n    }\n  }, [confirmMessage, props.onRequestClose, props.requireConfirmOnClose]);\n\n  return (\n    <StyledMuiModal\n      onClose={props.locked ? undefined : handleClose}\n      open={!!(props.locked || props.isOpen)}\n      role='presentation'\n      slotProps={{\n        backdrop: {\n          style: {\n            backgroundColor: props.overlayColor\n              ? theme.palette[props.overlayColor]?.main\n              : undefined\n          }\n        }\n      }}>\n      <ModalContainer\n        aria-describedby={props['aria-describedby']}\n        aria-label={props['aria-label']}\n        aria-labelledby={props['aria-labelledby'] ?? ariaLabelledBy}\n        data-component='modalContainer'\n        data-testid={props['data-testid']}\n        lgWidth={props.lgWidth}\n        mdWidth={props.mdWidth}\n        role={props.role || 'dialog'}>\n        {!props.isLoading && props.header && (\n          <>\n            <ModalHeader id={ariaLabelledBy}>{props.header}</ModalHeader>\n            <Divider />\n          </>\n        )}\n        {props.isLoading ? (\n          <ModalBody isRounded={!props.header}>\n            <ModalLoader>\n              <CircularProgress />\n            </ModalLoader>\n          </ModalBody>\n        ) : (\n          props.children\n        )}\n        {props.closeButton && (\n          <StyledIconButton\n            aria-label='close'\n            hasHeader={!!props.header}\n            onClick={handleClose}>\n            <Close />\n          </StyledIconButton>\n        )}\n      </ModalContainer>\n    </StyledMuiModal>\n  );\n};\n\nModal.displayName = 'Modal';\n","import { InfoOutlined } from '@mui/icons-material';\nimport {\n  IconButton,\n  Tooltip as MuiTooltip,\n  TooltipProps as MuiTooltipProps\n} from '@mui/material';\nimport { IconButtonProps } from '@mui/material/IconButton/IconButton';\n\nimport { FC, ReactNode } from 'react';\n\nexport type IconTooltipProps = IconButtonProps & {\n  'aria-label'?: MuiTooltipProps['aria-label'];\n  arrow?: MuiTooltipProps['arrow'];\n  children?: ReactNode;\n  id?: string;\n  onClick?: MuiTooltipProps['onClick'];\n  placement?: MuiTooltipProps['placement'];\n  title?: MuiTooltipProps['title'];\n  trigger?: ReactNode;\n  ml?: number;\n};\n\nexport const IconTooltip: FC<IconTooltipProps> = ({\n  ['aria-label']: ariaLabel,\n  arrow = true,\n  children,\n  onClick,\n  placement,\n  title,\n  trigger = <InfoOutlined color='primary' fontSize='small' />,\n  ml,\n  ...props\n}) => {\n  return (\n    <MuiTooltip\n      aria-label={ariaLabel ?? 'More Info'}\n      arrow={arrow}\n      componentsProps={{\n        popper: {\n          // @ts-expect-error - problems with types\n          'data-testid': props['data-testid']\n        }\n      }}\n      describeChild\n      enterTouchDelay={0}\n      onClick={onClick}\n      placement={placement}\n      title={title || children}>\n      <IconButton\n        {...props}\n        size='small'\n        sx={{\n          ml: ml ?? 1\n        }}>\n        {trigger}\n      </IconButton>\n    </MuiTooltip>\n  );\n};\n","import { LockOutlined } from '@mui/icons-material';\nimport {\n  FormControlLabelProps,\n  InputLabel,\n  SelectProps,\n  Stack,\n  styled\n} from '@mui/material';\nimport { useCamelCase } from '@vestwell-frontend/hooks';\n\nimport { FC, ReactNode } from 'react';\nimport { useToggle } from 'react-use';\n\nimport { IconTooltip } from '../IconTooltip';\nimport { Modal } from '../Modal';\nimport { ModalBody } from '../ModalBody';\n\nconst Details = styled('p')(({ theme }) => ({\n  color: theme.palette.grey300.main,\n  fontSize: '.875rem',\n  lineHeight: 1.625,\n  maxWidth: '39.9375em'\n}));\n\nexport type FormFieldLabelProps = {\n  'data-component': string;\n  info?: ReactNode;\n  infoId?: string;\n  details?: ReactNode;\n  detailsId?: string;\n  disabled?: SelectProps['disabled'];\n  disabledId?: string;\n  label: FormControlLabelProps['label'];\n  labelId?: SelectProps['labelId'];\n  helpModal?: ReactNode;\n  helpModalId?: string;\n  hideLabel?: boolean;\n  hideLocked?: boolean;\n  name: SelectProps['name'];\n  required?: SelectProps['required'];\n};\n\nconst StyledInputLabel = styled(InputLabel)`\n  pointer-events: all !important;\n`;\n\nexport const FormFieldLabel: FC<FormFieldLabelProps> = props => {\n  const [isModalOpen, toggleIsModalOpen] = useToggle(false);\n\n  const testIdName = useCamelCase(props.name);\n\n  return !props.label || props.hideLabel ? (\n    <label\n      className='sr-only'\n      data-component={props['data-component']}\n      data-testid={testIdName}\n      id={props.labelId}>\n      {props.label || props.name}\n    </label>\n  ) : (\n    <Stack>\n      <Stack alignItems='center' direction='row'>\n        <StyledInputLabel\n          data-component={props['data-component']}\n          data-testid={testIdName}\n          disabled={props.disabled}\n          id={props.labelId}\n          required={!!props.required}\n          shrink={false}>\n          {props.label}\n        </StyledInputLabel>\n        {props.disabled && !props.hideLocked && (\n          <IconTooltip\n            aria-label='Disabled'\n            data-component={`${props['data-component']}Disabled`}\n            data-testid={testIdName}\n            id={props.disabledId}\n            trigger={<LockOutlined fontSize='small' />}\n          />\n        )}\n        {props.info && (\n          <IconTooltip\n            aria-label={`More Info On ${props.label}`}\n            data-component={`${props['data-component']}Info`}\n            data-testid={testIdName}\n            id={props.infoId}>\n            {props.info}\n          </IconTooltip>\n        )}\n        {props.helpModal && (\n          <>\n            <IconTooltip\n              aria-label={`Info for ${props.label}`}\n              data-component={`${props['data-component']}InfoModal`}\n              data-testid={testIdName}\n              id={props.helpModalId}\n              onClick={toggleIsModalOpen}\n            />\n            <Modal\n              aria-labelledby={props.helpModalId}\n              closeButton\n              isOpen={isModalOpen}\n              onRequestClose={toggleIsModalOpen}>\n              <ModalBody>{props.helpModal}</ModalBody>\n            </Modal>\n          </>\n        )}\n      </Stack>\n      {props.details && (\n        <Details\n          data-component={`${props['data-component']}Details`}\n          data-testid={testIdName}\n          id={props.detailsId}>\n          {props.details}\n        </Details>\n      )}\n    </Stack>\n  );\n};\n\nFormFieldLabel.displayName = 'FormFieldLabel';\n","import { InfoOutlined } from '@mui/icons-material';\nimport {\n  FormControl,\n  FormControlLabel,\n  FormControlLabelProps,\n  FormControlProps,\n  FormHelperText,\n  RadioGroup as MuiRadioGroup,\n  RadioGroupProps as MuiRadioGroupProps,\n  Radio,\n  RadioProps,\n  Stack,\n  styled\n} from '@mui/material';\nimport { useCamelCase } from '@vestwell-frontend/hooks';\n\nimport {\n  createContext,\n  FC,\n  ReactNode,\n  useCallback,\n  useContext,\n  useId,\n  useMemo,\n  useState\n} from 'react';\nimport { useUpdateEffect } from 'react-use';\n\nimport { FormFieldLabel, FormFieldLabelProps } from './form/FormFieldLabel';\n\nexport type RadioButtonVariant = 'standard' | 'card';\n\nexport type RadioGroupProps = Partial<FormFieldLabelProps> &\n  Omit<MuiRadioGroupProps, 'onChange'> & {\n    error?: FormControlProps['error'];\n    errorMessage?: ReactNode;\n    formField?: boolean;\n    hideError?: boolean;\n    label?: FormControlLabelProps['label'];\n    fullWidth?: FormControlProps['fullWidth'];\n    onChange?: (value: any) => void;\n    required?: boolean;\n    position?: 'left' | 'right';\n    variant?: RadioButtonVariant;\n  };\n\ntype RadioGroupContextValue = Pick<\n  RadioGroupProps,\n  | 'disabled'\n  | 'fullWidth'\n  | 'name'\n  | 'onChange'\n  | 'required'\n  | 'position'\n  | 'value'\n  | 'variant'\n>;\n\nconst RadioGroupContext = createContext<RadioGroupContextValue>({\n  variant: 'standard'\n});\n\nconst StyledRadio = styled(Radio, {\n  shouldForwardProp: prop => prop !== 'variant'\n})<RadioProps & { variant: RadioButtonVariant }>(props => ({\n  margin: props.variant === 'card' ? undefined : props.theme.spacing(1, 2)\n}));\n\nconst StyledFormControlLabel = styled(FormControlLabel, {\n  shouldForwardProp: prop =>\n    !['fullWidth', 'position', 'variant'].includes(prop as string)\n})<\n  FormControlLabelProps &\n    Pick<RadioGroupContextValue, 'fullWidth' | 'position' | 'variant'>\n>(props => ({\n  ...(props.variant === 'card'\n    ? {\n        '& .MuiFormControlLabel-label': {\n          flex: 1\n        },\n        '& .MuiRadio-root': {\n          flex: 0\n        },\n        alignItems: 'flex-start',\n        ...(props.checked\n          ? { border: `1px solid ${props.theme.palette.primary.main}` }\n          : { border: '1px solid transparent' }),\n        borderRadius: '0.437rem',\n        boxShadow: props.theme.shadows[props.theme.shadows.length - 1],\n        columnGap: props.theme.spacing(3),\n        display: 'flex',\n        flexDirection: props.position === 'left' ? 'row' : 'row-reverse',\n        justifyContent: props.position === 'left' ? undefined : 'space-between',\n        marginBottom: props.theme.spacing(4),\n        marginRight: 0,\n        maxWidth: '100%',\n        padding: props.theme.spacing(3),\n        ...(props.fullWidth\n          ? { width: '100%' }\n          : {\n              // todo:: old rule; should be replaced with width: 100%\n              minWidth: '18.75rem'\n            })\n      }\n    : {})\n}));\n\nexport type RadioButtonProps = Omit<FormControlLabelProps, 'control'>;\n\nexport const RadioButton: FC<RadioButtonProps> = ({ label, ...props }) => {\n  const ctx = useContext(RadioGroupContext);\n\n  const onChange = useCallback(() => {\n    if (!props.disabled) {\n      ctx.onChange(props.value);\n    }\n  }, [ctx.onChange, props.disabled, props.value]);\n\n  return (\n    <StyledFormControlLabel\n      {...props}\n      checked={ctx.value === props.value}\n      control={\n        <StyledRadio\n          inputProps={{\n            'aria-checked': ctx.value === props.value,\n            'aria-disabled': !!ctx.disabled,\n            'aria-required': !!ctx.required,\n            //@ts-expect-error\n            'data-component': 'radioButtonInput',\n            'data-testid': `${ctx.name}_${useCamelCase(\n              props.value?.toString()\n            )}`\n          }}\n          onChange={onChange}\n          size={ctx.variant === 'card' ? 'medium' : 'small'}\n          variant={ctx.variant}\n        />\n      }\n      data-component='radioButtonLabel'\n      data-testid={`${ctx.name}_${useCamelCase(props.value?.toString())}`}\n      disableTypography\n      disabled={props.disabled || !!ctx.disabled}\n      fullWidth={ctx.fullWidth}\n      label={label}\n      position={ctx.position}\n      variant={ctx.variant}\n    />\n  );\n};\n\nRadioButton.displayName = 'RadioButton';\n\nconst StyledFormControl = styled(FormControl)(() => ({\n  display: 'flex'\n}));\n\nconst StyledFormHelperText = styled(FormHelperText)({\n  marginLeft: 0,\n  marginRight: 0\n});\n\nexport const RadioGroup: FC<RadioGroupProps> = ({\n  details,\n  disabled,\n  error,\n  errorMessage,\n  formField,\n  fullWidth,\n  label,\n  helpModal,\n  hideLabel,\n  hideError,\n  info,\n  onChange,\n  position = 'right',\n  value: initialValue = '',\n  variant = 'standard',\n  ...props\n}) => {\n  const detailsId = useId();\n  const disabledId = useId();\n  const helpModalId = useId();\n  const errorId = useId();\n  const infoId = useId();\n  const labelId = useId();\n\n  const [value, setValue] = useState(initialValue);\n\n  const describedBy =\n    `${disabled ? `${disabledId} ` : ''}${info ? `${infoId} ` : ''}${\n      helpModal ? `${helpModalId} ` : ''\n    }${details ? `${detailsId} ` : ''}${\n      errorMessage ? `${errorId} ` : ''\n    }`.trimEnd() || undefined;\n\n  const onRadioButtonChange = useCallback(\n    value => {\n      setValue(value);\n\n      if (onChange) {\n        onChange(value);\n      }\n    },\n    [onChange]\n  );\n\n  const ctx = useMemo(\n    () => ({\n      disabled: !!disabled,\n      fullWidth: !!fullWidth,\n      name: props.name,\n      onChange: onRadioButtonChange,\n      position,\n      required: !!props.required,\n      value,\n      variant\n    }),\n    [\n      disabled,\n      fullWidth,\n      onRadioButtonChange,\n      position,\n      value,\n      variant,\n      props.name,\n      props.required\n    ]\n  );\n\n  useUpdateEffect(() => {\n    setValue(initialValue);\n  }, [initialValue]);\n\n  return (\n    <StyledFormControl\n      data-component='radioGroupControl'\n      data-testid={props.name}\n      error={error}\n      fullWidth={fullWidth}>\n      <FormFieldLabel\n        data-component='radioGroupLabel'\n        details={details}\n        detailsId={detailsId}\n        disabled={!!disabled}\n        disabledId={disabledId}\n        helpModal={helpModal}\n        helpModalId={helpModalId}\n        hideLabel={hideLabel}\n        info={info}\n        infoId={infoId}\n        label={label}\n        labelId={labelId}\n        name={props.name}\n        required={!!props.required}\n      />\n      <RadioGroupContext.Provider value={ctx}>\n        <MuiRadioGroup\n          {...props}\n          aria-describedby={describedBy}\n          aria-disabled={!!disabled}\n          aria-invalid={!!error}\n          aria-labelledby={labelId}\n          aria-required={!!props.required}\n          data-component='radioGroup'\n          data-testid={props.name}\n          value={initialValue}\n        />\n      </RadioGroupContext.Provider>\n      {formField && (\n        <StyledFormHelperText\n          aria-atomic='true'\n          data-component='radioGroupError'\n          data-testid={props.name}\n          id={errorId}\n          role='alert'>\n          {!hideError && errorMessage ? (\n            <Stack alignItems='center' direction='row' gap={1}>\n              <InfoOutlined color='error' fontSize='small' />\n              {!!label && <span className='sr-only'>Error for {label}:</span>}\n              {errorMessage}\n            </Stack>\n          ) : (\n            ' '\n          )}\n        </StyledFormHelperText>\n      )}\n    </StyledFormControl>\n  );\n};\n\nRadioGroup.displayName = 'RadioGroup';\n","import { Stack, StackProps, styled } from '@mui/material';\n\nimport { FC, ReactNode } from 'react';\n\nexport type ModalFooterProps = {\n  children?: ReactNode;\n  justifyBetween?: boolean;\n  justifyCenter?: boolean;\n  noBoxShadow?: boolean;\n};\n\nconst StyledModalFooter = styled(Stack, {\n  shouldForwardProp: prop =>\n    !['justifyBetween', 'justifyCenter', 'noBoxShadow'].includes(\n      prop.toString()\n    )\n})<\n  {\n    justifyBetween?: boolean;\n    justifyCenter?: boolean;\n    noBoxShadow?: boolean;\n  } & StackProps\n>(props => ({\n  backgroundColor: props.theme.palette.white.main,\n  borderBottomLeftRadius: '0.75rem',\n  borderBottomRightRadius: '0.75rem',\n  boxShadow: props.noBoxShadow\n    ? 'none'\n    : '0 0 #0000, 0 0 #0000, 1px -3px 5px #72727226',\n  gap: props.justifyBetween || props.justifyCenter ? 0 : props.theme.spacing(4),\n  justifyContent: props.justifyBetween\n    ? 'space-between'\n    : props.justifyCenter\n      ? 'center'\n      : 'flex-end',\n  transform: 'translateY(-1px) scaleX(1) scaleY(1)',\n  [props.theme.breakpoints.down('sm')]: {\n    '& > button': {\n      width: '100%'\n    },\n    flexDirection: 'column-reverse',\n    gap: props.theme.spacing(2),\n    justifyContent: 'center'\n  }\n}));\n\nexport const ModalFooter: FC<ModalFooterProps> = props => {\n  return (\n    <StyledModalFooter\n      alignItems='center'\n      bottom={0}\n      data-component='modalFooter'\n      direction='row'\n      justifyBetween={props.justifyBetween}\n      justifyCenter={props.justifyCenter}\n      left={0}\n      noBoxShadow={props.noBoxShadow}\n      padding={2}\n      right={0}\n      role='presentation'>\n      {props.children}\n    </StyledModalFooter>\n  );\n};\n\nModalFooter.displayName = 'ModalFooter';\n","import { useToggle, useWeglot } from '@vestwell-frontend/hooks';\nimport {\n  Button,\n  Modal,\n  ModalBody,\n  ModalFooter,\n  RadioButton,\n  RadioGroup,\n  Text\n} from '@vestwell-frontend/ui';\n\nimport React, { FC, useCallback, useEffect, useState } from 'react';\n\nexport type LanguageSelectorModalProps = {\n  isOpen: boolean;\n  onClose: () => void;\n};\n\nexport const LanguageSelectorModal: FC<LanguageSelectorModalProps> = ({\n  isOpen,\n  onClose\n}) => {\n  const weglot = useWeglot();\n  const [isDisclaimerOpen, toggleIsDisclaimerOpen] = useToggle(false);\n  const [chosenLanguage, setChosenLanguage] = useState(weglot.currentLanguage);\n  const [isLanguageChanged, toggleIsLanguageChanged] = useToggle(false);\n\n  const handleChange = useCallback(\n    async value => {\n      setChosenLanguage(value);\n      if (value !== weglot.currentLanguage) {\n        toggleIsLanguageChanged(true);\n        return;\n      }\n      toggleIsLanguageChanged(false);\n    },\n    [weglot.currentLanguage]\n  );\n\n  const onUpdateLanguage = useCallback(async () => {\n    await weglot.switchLanguage(chosenLanguage);\n    onClose();\n  }, [chosenLanguage, weglot]);\n\n  useEffect(() => {\n    if (isOpen) {\n      setChosenLanguage(weglot.currentLanguage);\n      toggleIsLanguageChanged(false);\n    }\n  }, [isOpen, weglot.currentLanguage, toggleIsLanguageChanged]);\n\n  return (\n    <>\n      {!isDisclaimerOpen ? (\n        <Modal\n          closeButton\n          header='Select your language'\n          isOpen={isOpen}\n          onRequestClose={onClose}>\n          <ModalBody>\n            <Text color='black'>\n              Before selecting a language other than English, please review the\n              translation disclaimer, as translations may not be perfectly\n              accurate.{' '}\n              <Button\n                aria-haspopup='dialog'\n                onClick={toggleIsDisclaimerOpen}\n                variant='inline'>\n                Read Disclaimer\n              </Button>\n            </Text>\n            <RadioGroup\n              name='language'\n              onChange={handleChange}\n              value={weglot.currentLanguage}>\n              {weglot.languageOptions.map(option => (\n                <RadioButton\n                  data-wg-notranslate\n                  key={option.value}\n                  label={option.label}\n                  value={option.value}\n                />\n              ))}\n            </RadioGroup>\n          </ModalBody>\n          <ModalFooter>\n            <Button onClick={onClose} variant='inline'>\n              Cancel\n            </Button>\n            <Button disabled={!isLanguageChanged} onClick={onUpdateLanguage}>\n              Update\n            </Button>\n          </ModalFooter>\n        </Modal>\n      ) : (\n        <Modal\n          header='Disclaimer'\n          isOpen={isDisclaimerOpen}\n          onRequestClose={toggleIsDisclaimerOpen}>\n          <ModalBody>\n            <Text>\n              The information provided to you on our website, app, and in your\n              account portal has been translated from English into other\n              languages for your convenience using translation software.\n            </Text>\n            <Text>\n              Some of the terminology relating to your Plan or Account or our\n              services does not translate perfectly from English into your\n              specified language.\n            </Text>\n            <Text>\n              Reasonable efforts have been made to provide an accurate\n              translation; however, no automated translation is perfect nor is\n              it intended to replace human translators. Translations are\n              provided as a service to end users of our services and are\n              provided \"as is.\" We disclaim all warranties related to the\n              translated materials, express or implied, including all warranties\n              of accuracy, reliability, and any implied warranties of\n              merchantability, fitness for a particular purpose, and\n              noninfringement.\n            </Text>\n            <Text>\n              Some content (such as images, videos, etc.) may also not be\n              accurately translated due to the limitations of the translation\n              software. The official text is the English version of the website.\n              Any discrepancies or differences created in the translation are\n              not binding and have no legal effect for compliance or enforcement\n              purposes. If any questions arise related to the accuracy of the\n              information contained in the translated website, refer to the\n              English version of the website, which is the official version.\n            </Text>\n          </ModalBody>\n          <ModalFooter>\n            <Button onClick={toggleIsDisclaimerOpen} variant='text'>\n              Close\n            </Button>\n          </ModalFooter>\n        </Modal>\n      )}\n    </>\n  );\n};\n\nLanguageSelectorModal.displayName = 'LanguageSelectorModal';\n","import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';\nimport LanguageIcon from '@mui/icons-material/Language';\nimport WarningAmberIcon from '@mui/icons-material/WarningAmber';\nimport { Stack, styled, Tooltip } from '@mui/material';\nimport { useWeglot } from '@vestwell-frontend/hooks';\nimport { Button } from '@vestwell-frontend/ui';\n\nimport React, { useState } from 'react';\n\nimport { LanguageSelectorModal } from '../components/LanguageSelectorModal';\n\nconst StyledWarningAmberIcon = styled(WarningAmberIcon)(({ theme }) => ({\n  color: theme.palette.warning.main,\n  fontSize: theme.spacing(5)\n}));\n\nexport const LanguageSelector = () => {\n  const weglot = useWeglot();\n  const [isOpen, setIsOpen] = useState(false);\n\n  if (!weglot.isWeglotAvailable) {\n    return (\n      <Stack alignItems='center' direction='row' spacing={1}>\n        <Button disabled startIcon={<LanguageIcon />} variant='inline'>\n          English\n        </Button>\n        <Tooltip\n          arrow\n          placement='top'\n          title='Translation is currently unavailable. Please try again later.'>\n          <StyledWarningAmberIcon />\n        </Tooltip>\n      </Stack>\n    );\n  }\n\n  return (\n    <>\n      <Button\n        aria-haspopup='dialog'\n        data-wg-notranslate\n        endIcon={<ArrowDropDownIcon />}\n        onClick={() => setIsOpen(true)}\n        startIcon={<LanguageIcon />}\n        variant='inline'>\n        {weglot.currentLanguageLabel}\n      </Button>\n      <LanguageSelectorModal isOpen={isOpen} onClose={() => setIsOpen(false)} />\n    </>\n  );\n};\n\nLanguageSelector.displayName = 'LanguageSelector';\n","import { Card, Stack, styled } from '@mui/material';\nimport { SuspenseImage, useWizard } from '@vestwell-frontend/ui';\n\nimport { FC, ReactNode } from 'react';\n\nimport { useConfig } from '../contexts';\nimport { Header } from './Header';\nimport { LanguageSelector } from './LanguageSelector';\n\nexport const BackgroundContent = styled('div')(() => ({\n  alignItems: 'center',\n  display: 'flex',\n  flexDirection: 'column',\n  height: '100%',\n  justifyContent: 'space-between',\n  width: '100%'\n}));\n\nexport const BackgroundContainer = styled(Card)(({ theme }) => ({\n  alignItems: 'center',\n  borderRadius: '4px',\n  borderTopColor: theme.palette.primary.main,\n  borderTopWidth: '3px',\n  display: 'flex',\n  flexDirection: 'column',\n  padding: theme.spacing(7.5, 10),\n  [theme.breakpoints.down('sm')]: {\n    width: '100%'\n  },\n  [theme.breakpoints.up('sm')]: {\n    width: '440px'\n  }\n}));\n\nexport const Logo = styled(SuspenseImage)(({ theme }) => ({\n  height: theme.spacing(12.75),\n  marginBottom: theme.spacing(6),\n  padding: theme.spacing(1, 4, 2.25, 4)\n}));\n\nexport const BackgroundCard: FC<{\n  children?: ReactNode;\n}> = props => {\n  const ctx = useWizard();\n\n  const config = useConfig();\n\n  return (\n    <BackgroundContainer>\n      <Logo\n        alt={`${\n          config.subdomain === 'connect' ? 'vestwell' : config.subdomain\n        } logo`}\n        data-component='logo'\n        src={config.registration?.logo?.desktop}\n      />\n      <BackgroundContent data-component='content'>\n        {!!ctx.step.title && (\n          <Header\n            caption={ctx.step.caption}\n            companyName={ctx.state.companyName as string}\n            planName={ctx.state.planName as string}\n            planType={ctx.state.planType as string}\n            title={ctx.step.title as string}\n          />\n        )}\n        {props.children}\n        <Stack direction='row' justifyContent='center' mt={10}>\n          <LanguageSelector />\n        </Stack>\n      </BackgroundContent>\n    </BackgroundContainer>\n  );\n};\n\nBackgroundCard.displayName = 'BackgroundCard';\n","import { styled } from '@mui/material';\nimport { SuspenseImage } from '@vestwell-frontend/ui';\n\nimport { FC } from 'react';\n\nimport { useConfig } from '../contexts';\n\nconst StyledBanner = styled(SuspenseImage)(props => ({\n  [props.theme.breakpoints.up('sm')]: {\n    alignSelf: 'center',\n    borderBottomLeftRadius: '10px',\n    borderBottomRightRadius: '10px',\n    maxWidth: '1440px',\n    position: 'fixed',\n    top: 0,\n    zIndex: -1\n  }\n}));\n\nexport const Banner: FC = () => {\n  const config = useConfig();\n\n  // todo:: update db entries path & extension\n  return (\n    !!config.login?.banner && (\n      <StyledBanner\n        data-component='banner'\n        src={config.login.banner\n          .replace('/clients/login', '')\n          .replace('.png', '.webp')}\n      />\n    )\n  );\n};\n\nBanner.displayName = 'Banner';\n","import { Grid, styled } from '@mui/material';\n\nimport { FC, ReactNode } from 'react';\n\nconst StyledPage = styled(Grid)(props => ({\n  alignItems: 'center',\n  flexGrow: 1,\n  flexWrap: 'nowrap',\n  height: `calc(100% - ${props.theme.spacing(16)})`,\n  justifyContent: 'start'\n}));\n\nexport const Page: FC<{\n  'data-testid'?: string;\n  children: ReactNode;\n}> = props => {\n  return (\n    <StyledPage\n      container\n      data-component='page'\n      data-testid={props['data-testid']}\n      direction='column'>\n      {props.children}\n    </StyledPage>\n  );\n};\n\nPage.displayName = 'Page';\n","import { styled, useMediaQuery } from '@mui/material';\nimport { GetWhiteLabelResDto } from '@portal-middleware/hooks';\n\nimport { FC, ReactNode, useEffect } from 'react';\n\nimport { BackgroundContainer, BackgroundContent, Logo } from './BackgroundCard';\nimport { Banner } from './Banner';\nimport { Header } from './Header';\nimport { Page } from './Page';\n\nconst PageContainer = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  [theme.breakpoints.down('sm')]: {\n    width: '100%'\n  },\n  [theme.breakpoints.up('sm')]: {\n    alignItems: 'center',\n    margin: 'auto'\n  }\n}));\n\nexport const BackgroundError: FC<{\n  'data-testid'?: string;\n  title?: string;\n  caption?: ReactNode;\n  children?: ReactNode;\n  config: GetWhiteLabelResDto;\n  auth: {\n    token: string;\n    setToken: (token: string) => void;\n  };\n}> = props => {\n  const isMobile = useMediaQuery(theme => theme.breakpoints.down('sm'));\n\n  const { config, auth } = props;\n\n  useEffect(() => {\n    auth.setToken('');\n  }, []);\n\n  return (\n    <>\n      {!isMobile && <Banner />}\n      <Page data-testid={props['data-testid']}>\n        {isMobile && <Banner />}\n        <PageContainer>\n          <BackgroundContainer>\n            <Logo\n              alt={`${\n                config.subdomain === 'connect' ? 'vestwell' : config.subdomain\n              } logo`}\n              data-component='logo'\n              src={config.registration?.logo?.desktop}\n            />\n            <BackgroundContent data-component='content'>\n              {!!props.title && (\n                <Header caption={props.caption} title={props.title} />\n              )}\n              {props.children}\n            </BackgroundContent>\n          </BackgroundContainer>\n        </PageContainer>\n      </Page>\n    </>\n  );\n};\n\nBackgroundError.displayName = 'BackgroundError';\n","import { styled } from '@mui/material';\nimport { Button } from '@vestwell-frontend/ui';\n\nimport { FC, ReactNode, useCallback } from 'react';\n\nimport { useAuth } from '../contexts';\n\nconst StyledButton = styled(Button)(() => ({\n  alignSelf: 'center'\n}));\n\nexport const CancelRegistrationButton: FC<{\n  entity: 'advisor' | 'participant' | 'sponsor';\n  children: ReactNode;\n}> = props => {\n  const auth = useAuth();\n\n  const onClick = useCallback(() => {\n    auth.setToken('');\n    window.location.assign(\n      `${window.location.origin}/auth/api/register/reset?entity=${props.entity}`\n    );\n  }, [props.entity]);\n\n  return (\n    <StyledButton onClick={onClick} variant='inline'>\n      {props.children}\n    </StyledButton>\n  );\n};\n\nCancelRegistrationButton.displayName = 'CancelRegistrationButton';\n","import { Stack } from '@mui/material';\nimport type { HttpErrorType } from '@vestwell-frontend/hooks';\nimport { StatusCodeError } from '@vestwell-frontend/ui';\n\nimport { Component, ReactNode } from 'react';\n\ntype ErrorBoundaryState = Partial<HttpErrorType> & {\n  hasError?: boolean;\n};\n\ntype ErrorBoundaryProps = {\n  children?: ReactNode;\n  renderErrorCode?: (\n    error: ErrorBoundaryState,\n    clearError?: () => void\n  ) => ReactNode;\n};\n\nexport class ErrorBoundary extends Component<\n  ErrorBoundaryProps,\n  ErrorBoundaryState\n> {\n  static getDerivedStateFromError(error) {\n    return {\n      ...error,\n      hasError: true\n    };\n  }\n\n  state: ErrorBoundaryState = {\n    code: ''\n  };\n\n  clearError = () => {\n    this.setState({\n      code: '',\n      hasError: false\n    });\n  };\n\n  render() {\n    if (!this.state.hasError) {\n      return this.props.children;\n    }\n\n    if (this.props.renderErrorCode && this.state.code) {\n      return this.props.renderErrorCode(this.state, this.clearError);\n    }\n\n    return (\n      <Stack\n        alignItems='center'\n        bottom={0}\n        justifyContent='center'\n        left={4}\n        position='fixed'\n        right={0}\n        top={5}>\n        <StatusCodeError code={this.state.code} status={this.state.status} />\n      </Stack>\n    );\n  }\n}\n","import { styled, useMediaQuery } from '@mui/material';\nimport { useCamelCase, useWeglot } from '@vestwell-frontend/hooks';\nimport { useWizard } from '@vestwell-frontend/ui';\n\nimport { FC, ReactNode } from 'react';\nimport { Outlet } from 'react-router-dom';\nimport { useEffectOnce } from 'react-use';\n\nimport { BackgroundCard } from './BackgroundCard';\nimport { Banner } from './Banner';\nimport { Page } from './Page';\n\nconst PageWrapper = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  [theme.breakpoints.down('sm')]: {\n    width: '100%'\n  },\n  [theme.breakpoints.up('sm')]: {\n    alignItems: 'center',\n    margin: 'auto'\n  }\n}));\n\nexport const Root: FC<{\n  children?: ReactNode;\n}> = props => {\n  const isMobile = useMediaQuery(theme => theme.breakpoints.down('sm'));\n\n  const ctx = useWizard();\n  const weglot = useWeglot();\n\n  useEffectOnce(() => {\n    weglot.syncLanguageWithCookie();\n  });\n\n  const dataTestId = useCamelCase(\n    typeof ctx.step.title === 'string' ? ctx.step.title : ''\n  );\n\n  return (\n    <>\n      {!isMobile && <Banner />}\n      <Page data-testid={dataTestId}>\n        {isMobile && <Banner />}\n        <PageWrapper>\n          <BackgroundCard>{props.children || <Outlet />}</BackgroundCard>\n        </PageWrapper>\n      </Page>\n    </>\n  );\n};\n\nRoot.displayName = 'Root';\n","import { Check, Close } from '@mui/icons-material';\nimport { List, ListItem, ListItemIcon } from '@mui/material';\nimport { passwordErrorMsg } from '@sentinel/utils';\nimport { Text } from '@vestwell-frontend/ui';\n\nimport { useFormikContext } from 'formik';\nimport { pick } from 'lodash';\nimport { FC, useMemo } from 'react';\n\nconst ERRORS = pick(passwordErrorMsg, [\n  'minLength',\n  'obvious',\n  'oneNumber',\n  'oneSpecialCharacter',\n  'repeatingChars',\n  'contextSpecific'\n]);\n\nexport const validatePasswords = schema => async values => {\n  if (typeof schema === 'function') {\n    schema = schema();\n  }\n  try {\n    await schema.validate(values, { abortEarly: false });\n  } catch (err) {\n    return err.inner.reduce(\n      (errors, error) => {\n        if (error.path === 'password') {\n          errors[error.path] = errors.passwordConditions.push(error.message);\n        }\n        errors[error.path] = error.message;\n\n        return errors;\n      },\n      { passwordConditions: [] }\n    );\n  }\n};\n\nexport const PasswordCheckList: FC<{\n  describedById?: string;\n}> = props => {\n  const ctx = useFormikContext<{\n    password: string;\n    passwordConfirm: string;\n    passwordConditions: string[];\n  }>();\n\n  const checkList = useMemo(\n    () =>\n      Object.keys(ERRORS)\n        .sort()\n        .map(error => ({\n          checked: !ctx.errors.passwordConditions?.includes(ERRORS[error]),\n          id: error,\n          message: ERRORS[error]\n        })),\n    [ctx.errors.passwordConditions]\n  );\n\n  return (\n    <div data-testid='passwordCheckList'>\n      <Text color='grey100' mt={2} variant='j2'>\n        Your password must:\n      </Text>\n      <List data-component='list' sx={{ p: 0 }}>\n        {checkList.map(item => (\n          <ListItem\n            data-checked={item.checked}\n            data-component='listItem'\n            data-testid={item.id}\n            key={item.id}\n            sx={{ my: 2, p: 0 }}>\n            <ListItemIcon sx={{ minWidth: 0, mr: 2 }}>\n              {item.checked ? (\n                <Check fontSize='small' style={{ color: '#19855F' }} />\n              ) : (\n                <Close fontSize='small' style={{ color: '#C52C48' }} />\n              )}\n            </ListItemIcon>\n            <span className='sr-only'>\n              {item.checked\n                ? 'Password Requirement Met:'\n                : 'Password Requirement Not Met:'}\n            </span>\n            <Text color='grey50' mb={0} variant='i1'>\n              {item.message}\n            </Text>\n          </ListItem>\n        ))}\n      </List>\n      <span className='sr-only' id={props.describedById}>\n        Create a password with a minimum of 10 characters including a mix of\n        letters, numbers and symbols.\n      </span>\n    </div>\n  );\n};\n\nPasswordCheckList.displayName = 'PasswordCheckList';\n","import { Alert, Box, styled } from '@mui/material';\n\nimport type { FormikConfig, FormikContextType } from 'formik';\nimport {\n  Formik,\n  FormikErrors,\n  Form as FormikForm,\n  getIn,\n  useFormikContext,\n  yupToFormErrors\n} from 'formik';\nimport { pick } from 'lodash';\nimport {\n  createContext,\n  Dispatch,\n  FC,\n  forwardRef,\n  memo,\n  ReactNode,\n  SetStateAction,\n  useCallback,\n  useEffect,\n  useMemo,\n  useState\n} from 'react';\nimport { useDebounce, useToggle, useUnmount, useUpdateEffect } from 'react-use';\n\nexport const FORM_SUBMIT_ERROR = 'error';\n\nexport type FormConfirmProps = {\n  confirm: () => void | Promise<void>;\n  dismiss: () => void | Promise<void>;\n  open: boolean;\n  values?: any;\n};\n\nexport type FormProps<T> = Omit<\n  FormikConfig<T>,\n  'initialValues' | 'innerRef' | 'onSubmit'\n> & {\n  'aria-label'?: string;\n  'aria-labelledby'?: string;\n  'data-component'?: string;\n  autoComplete?: string;\n  children?: ReactNode;\n  /** className to apply to the wrapping form element */\n  className?: string;\n  /** component used for confirmation */\n  Confirm?: FC<FormConfirmProps>;\n  initialValues?: any;\n  /** onChange called when values in the form changed */\n  onChange?:\n    | Dispatch<SetStateAction<T | undefined>>\n    | ((values: T) => void | Promise<void>);\n  /** onChange called when values in the form changed */\n  onErrors?:\n    | Dispatch<SetStateAction<FormikErrors<T> | undefined>>\n    | ((errors: FormikErrors<T>) => void | Promise<void>);\n  /** onRawErrors called when raw yup errors are updated */\n  onRawErrors?: (errors: FormikErrors<T> | null) => void;\n  /** called when submitting state changes */\n  onSubmitting?: (isSubmitting: boolean) => void | Promise<void>;\n  /** called when resetting the form */\n  onSubmit?: FormikConfig<T>['onSubmit'];\n  /** called when submitting the form */\n  onReset?: FormikConfig<T>['onReset'];\n  /** onValidation called when form validation state changed */\n  onValidation?:\n    | Dispatch<SetStateAction<boolean | undefined>>\n    | ((valid: boolean) => void | Promise<void>);\n  /** prevent onChange from getting called after mount */\n  preventOnChangeOnMount?: boolean;\n  /** additional context to pass to yup validationSchema; accessed via this.options.context */\n  validationContext?: Record<string, unknown>;\n};\n\n/**\n * this is a wrapper for the Confirm prop/component; it\n * implements to subsequent submission post confirmation\n */\nconst FormConfirm: FC<\n  FormConfirmProps & {\n    isConfirmed?: boolean;\n    Confirm: FC<FormConfirmProps>;\n  }\n> = memo(({ Confirm, isConfirmed, ...props }) => {\n  const ctx = useFormikContext<any>();\n\n  useUpdateEffect(() => {\n    if (!props.open && isConfirmed) {\n      (async () => {\n        await ctx.handleSubmit();\n      })();\n    }\n  }, [isConfirmed]);\n\n  return <Confirm {...props} values={ctx.values} />;\n});\n/**\n * this is a workaround for adding an onChange callback to Form\n * unfortunately, formik does not provide onChange callback (only <form onChange>)\n */\nconst FormChangeHandler: FC<{\n  onChange: FormProps<any>['onChange'];\n  preventOnChangeOnMount?: boolean;\n}> = memo(props => {\n  const ctx = useFormikContext<any>();\n  const [mounted, setMounted] = useState(false);\n\n  useEffect(() => {\n    const $timeout = setTimeout(() => {\n      setMounted(true);\n    }, 10);\n    return () => {\n      clearTimeout($timeout);\n    };\n  }, []);\n\n  const [, cancel] = useDebounce(\n    () => {\n      const shouldCall =\n        !props.preventOnChangeOnMount ||\n        (props.preventOnChangeOnMount && mounted);\n\n      if (props.onChange && shouldCall) {\n        props.onChange(ctx.values);\n      }\n    },\n    10,\n    [ctx.values]\n  );\n\n  useUnmount(() => {\n    cancel();\n  });\n\n  return null;\n});\n\n/**\n * this is a workaround for adding an onValidation callback to Form\n * unfortunately, formik does not provide onValidation callback\n */\nconst FormValidationHandler: FC<{\n  onValidation: FormProps<any>['onValidation'];\n}> = memo(props => {\n  const ctx = useFormikContext<any>();\n\n  useEffect(() => {\n    props.onValidation(ctx.isValid);\n  }, [ctx.isValid]);\n\n  return null;\n});\n\n/**\n * this is a workaround for adding an onErrors callback to Form\n * unfortunately, formik does not provide onErrors callback\n */\nconst FormErrorHandler: FC<{ onErrors: FormProps<any>['onErrors'] }> = memo(\n  props => {\n    const ctx = useFormikContext<any>();\n\n    useEffect(() => {\n      if (props.onErrors) {\n        props.onErrors(ctx.errors);\n      }\n    }, [ctx.errors]);\n\n    return null;\n  }\n);\n\n/**\n * this is a workaround to re-validate form when schema changes\n */\nconst FormValidationSchemaChanged: FC<{ validationSchema: unknown }> = memo(\n  props => {\n    const ctx = useFormikContext<any>();\n\n    useUpdateEffect(() => {\n      ctx.validateForm();\n    }, [props.validationSchema]);\n\n    return null;\n  }\n);\n\nexport const IsRequiredFieldContext = createContext({});\n\nexport const Form = forwardRef<FormikContextType<any>, FormProps<any>>(\n  (\n    {\n      Confirm,\n      enableReinitialize = true,\n      initialValues = {},\n      validateOnBlur = true,\n      validateOnChange = true,\n      validateOnMount = true,\n      ...props\n    },\n    ref\n  ) => {\n    const [isConfirmed, toggleIsConfirmed] = useToggle(false);\n    const [showConfirm, toggleShowConfirm] = useToggle(false);\n\n    const onConfirm = useCallback(() => {\n      toggleIsConfirmed(true);\n      toggleShowConfirm(false);\n    }, []);\n\n    const onDismiss = useCallback(() => {\n      toggleIsConfirmed(false);\n      toggleShowConfirm(false);\n    }, []);\n\n    /** wrapper around callback to provide validationContext to the yup schema */\n    const onValidate = useCallback(\n      async values => {\n        if (props.validate) {\n          return props.validate(values);\n        }\n\n        try {\n          await props.validationSchema.validate(values, {\n            abortEarly: false,\n            context: {\n              ...(props.validationContext || {})\n            }\n          });\n        } catch (e) {\n          if (props.onRawErrors) {\n            props.onRawErrors(e);\n          }\n\n          return yupToFormErrors(e);\n        }\n      },\n      [\n        props.onRawErrors,\n        props.validate,\n        props.validationContext,\n        props.validationSchema\n      ]\n    );\n\n    const onReset = useCallback(\n      (values, ctx) => {\n        if (Confirm && isConfirmed) {\n          toggleIsConfirmed(false);\n        }\n\n        if (props.onReset) {\n          return props.onReset(values, ctx);\n        }\n      },\n      [Confirm, isConfirmed, props.onReset]\n    );\n\n    const onSubmit = useCallback(\n      async (values, ctx) => {\n        if (!isConfirmed && Confirm) {\n          toggleShowConfirm(true);\n          ctx.setSubmitting(false);\n          return;\n        }\n\n        const result = props.onSubmit\n          ? await props.onSubmit(values, ctx)\n          : undefined;\n\n        toggleIsConfirmed(false);\n\n        return result;\n      },\n      [Confirm, isConfirmed, props.onSubmit]\n    );\n\n    const isRequiredFieldValue = useMemo(() => {\n      if (!props.validationSchema) {\n        return {};\n      }\n\n      const fields = props.validationSchema.describe().fields ?? {};\n\n      return Object.keys(fields).reduce(\n        (acc, field) => ({\n          ...acc,\n          [field]: !!getIn(fields, field)?.tests?.find(\n            test => test.name === 'required'\n          )\n        }),\n        {}\n      );\n    }, []);\n\n    const ariaLabel = props['aria-label'];\n    const ariaLabelledBy = props['aria-labelledby'];\n\n    return (\n      <IsRequiredFieldContext.Provider value={isRequiredFieldValue}>\n        <Formik\n          autoComplete={props.autoComplete}\n          enableReinitialize={enableReinitialize}\n          initialTouched={props.initialTouched}\n          initialValues={initialValues}\n          innerRef={ref as any}\n          onReset={onReset}\n          onSubmit={onSubmit}\n          validate={onValidate}\n          validateOnBlur={validateOnBlur}\n          validateOnChange={validateOnChange}\n          validateOnMount={validateOnMount}>\n          <FormikForm\n            {...(ariaLabel ? { 'aria-label': ariaLabel } : {})}\n            {...(ariaLabelledBy ? { 'aria-labelledby': ariaLabel } : {})}\n            {...pick(props, ['className'])}\n            autoComplete={props.autoComplete}\n            data-component={props['data-component'] || 'Form'}\n            data-testid={props['data-testid']}>\n            {props.children}\n            {Confirm && (\n              <FormConfirm\n                Confirm={Confirm}\n                confirm={onConfirm}\n                dismiss={onDismiss}\n                isConfirmed={isConfirmed}\n                open={showConfirm}\n              />\n            )}\n            {props.onValidation && (\n              <FormValidationHandler onValidation={props.onValidation} />\n            )}\n            {props.onChange && (\n              <FormChangeHandler\n                onChange={props.onChange}\n                preventOnChangeOnMount={props.preventOnChangeOnMount}\n              />\n            )}\n            {props.onErrors && <FormErrorHandler onErrors={props.onErrors} />}\n            <FormValidationSchemaChanged\n              validationSchema={props.validationSchema}\n            />\n          </FormikForm>\n        </Formik>\n      </IsRequiredFieldContext.Provider>\n    );\n  }\n);\n\nexport type FormErrorsProps = {\n  renderPlaceholder?: ReactNode | true;\n};\n\nconst StyledAlert = styled(Alert)(({ theme }) => ({\n  marginBottom: theme.spacing(4),\n  width: 'fit-content'\n}));\n\nexport const FormErrors: FC<FormErrorsProps> = props => {\n  const { errors } = useFormikContext<any>();\n\n  if (!errors.form && !props.renderPlaceholder) return null;\n\n  if (Array.isArray(errors.form)) {\n    return (\n      <>\n        {errors.form.map(error => (\n          <StyledAlert {...props} key={error} severity='error'>\n            {error}\n          </StyledAlert>\n        ))}\n      </>\n    );\n  } else if (typeof errors.form === 'string') {\n    return (\n      <StyledAlert {...props} severity='error'>\n        {errors.form}\n      </StyledAlert>\n    );\n  } else if (props.renderPlaceholder === true) {\n    return <Box aria-hidden='true' component='span' height={24} />;\n  } else {\n    // handle generic validation results, e.g. `true` without messaging\n    return null;\n  }\n};\n\nForm.displayName = 'Form';\n","import { VisibilityOffOutlined, VisibilityOutlined } from '@mui/icons-material';\nimport { IconButton, Input, InputProps, styled } from '@mui/material';\nimport { useCamelCase, useToggle } from '@vestwell-frontend/hooks';\n\nimport { format, parse, parseISO } from 'date-fns';\nimport { pick } from 'lodash';\nimport {\n  forwardRef,\n  ReactNode,\n  useCallback,\n  useEffect,\n  useImperativeHandle,\n  useMemo,\n  useRef,\n  useState\n} from 'react';\nimport {\n  NumberFormatBase,\n  NumberFormatBaseProps,\n  NumericFormat\n} from 'react-number-format';\nimport { useUpdateEffect } from 'react-use';\n\nconst isNumberAllowed =\n  ({ min, max }) =>\n  input => {\n    const isValueDefined = typeof input.floatValue === 'number';\n    const isMinDefined = typeof min === 'number';\n    const isMaxDefined = typeof max === 'number';\n\n    const isAboveMin =\n      !isMinDefined ||\n      !isValueDefined ||\n      (isMinDefined && isValueDefined && input.floatValue >= min);\n\n    const isBelowMax =\n      !isMaxDefined ||\n      !isValueDefined ||\n      (isMaxDefined && isValueDefined && input.floatValue <= max);\n\n    return isAboveMin && isBelowMax ? input : false;\n  };\n\nexport type TextBoxFormatProps = Omit<\n  NumberFormatBaseProps,\n  'onChange' | 'value' | 'format'\n> & {\n  dateMask?: 'MM/dd/yyyy' | 'MM/yyyy';\n  dateInputFormat?: 'yyyy-MM-dd' | 'MM/dd/yyyy' | 'MM/yyyy';\n  format?:\n    | 'currencyUs'\n    | 'date'\n    | 'dateShort'\n    | 'ein'\n    | 'number'\n    | 'numericString'\n    | 'phoneUs'\n    | 'percent'\n    | 'routing'\n    | 'ssn'\n    | 'zip';\n  precision?: number;\n  onChange?(value): void;\n  suffix?: string;\n  value?: string;\n};\n\ntype MaskOptions = NumberFormatBaseProps & {\n  allowEmptyFormatting?: boolean;\n  expectFormattedValue?: boolean;\n  expectNumericValue?: boolean;\n  formatChangeValue?(value: string): string;\n  formatPasteValue?(value: string): string;\n  formatDisplayValue?(value: string): string;\n  reformatOnBlur?(value: string): string;\n};\n\ntype Masks = Record<\n  TextBoxFormatProps['format'],\n  (options: {\n    dateMask?: string;\n    dateInputFormat?: string;\n    max?: string | number | Date;\n    min?: string | number | Date;\n    precision?: number;\n    suffix?: string;\n  }) => MaskOptions\n>;\n\nexport const maskProps: Masks = {\n  currencyUs: ({ min, max, precision }) => ({\n    allowEmptyFormatting: false,\n    allowLeadingZeros: false,\n    allowNegative: ((min || 0) as number) < 0,\n    decimalScale: precision || 0,\n    expectNumericValue: true,\n    isAllowed: isNumberAllowed({\n      max,\n      min: min || 0\n    }),\n    prefix: '$',\n    thousandSeparator: true\n  }),\n  date: ({ dateMask, dateInputFormat }) => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value\n        .replace(/\\D/g, '')\n        .replace(/^(\\d{2})(\\d{1,2})/, '$1/$2')\n        .replace(/^(\\d{2})\\/(\\d{2})(.+)/, '$1/$2/$3')\n        .substring(0, 10);\n    },\n    formatChangeValue: value => {\n      try {\n        return value.length < dateInputFormat.length\n          ? value\n          : format(new Date(value), dateInputFormat);\n      } catch {\n        return value.length === dateInputFormat.length ? value : '';\n      }\n    },\n    formatDisplayValue: value => {\n      try {\n        return format(\n          parse(value, dateInputFormat, new Date()) as any,\n          dateMask\n        );\n      } catch {\n        return '';\n      }\n    },\n    formatPasteValue: value => {\n      try {\n        return format(\n          parseISO(new Date(value).toISOString().replace('Z', '')),\n          dateMask\n        );\n      } catch {\n        return value;\n      }\n    },\n    mask: '',\n    placeholder: dateMask.toUpperCase()\n  }),\n  dateShort: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value\n        .replace(/\\D/g, '')\n        .replace(/^(\\d{2})(\\d{1,2})/, '$1/$2')\n        .substring(0, 5);\n    }\n  }),\n  ein: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value\n        .replace(/\\D/g, '')\n        .replace(/^(\\d{2})(\\d{1,7})/, '$1-$2')\n        .substring(0, 10);\n    },\n    mask: '',\n    placeholder: '##-#######'\n  }),\n  number: ({ min, max, precision }) => ({\n    allowEmptyFormatting: false,\n    allowLeadingZeros: false,\n    allowNegative: ((min || 0) as number) < 0,\n    decimalScale: precision || 0,\n    expectNumericValue: true,\n    isAllowed: isNumberAllowed({\n      max,\n      min: min || 0\n    }),\n    thousandSeparator: true\n  }),\n  numericString: ({ min, max }) => ({\n    allowEmptyFormatting: false,\n    allowLeadingZeros: true,\n    allowNegative: ((min || 0) as number) < 0,\n    decimalScale: 0,\n    expectNumericValue: false,\n    isAllowed: isNumberAllowed({\n      max,\n      min: min || 0\n    }),\n    thousandSeparator: false\n  }),\n  percent: ({ min, max, precision, suffix }) => ({\n    allowEmptyFormatting: false,\n    allowLeadingZeros: false,\n    allowNegative: ((min || 0) as number) < 0,\n    decimalScale: precision || 0,\n    expectNumericValue: true,\n    isAllowed: isNumberAllowed({\n      max: max || 100,\n      min: min || 0\n    }),\n    suffix: suffix || '%'\n  }),\n  phoneUs: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value\n        .replace(/\\D/g, '')\n        .replace(/^(\\d{3})(\\d{1,2})/, '$1-$2')\n        .replace(/^(\\d{3})-(\\d{3})(.+)/, '$1-$2-$3')\n        .substring(0, 12);\n    },\n    mask: '',\n    placeholder: '###-###-####'\n  }),\n  routing: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value.replace(/\\D/g, '').substring(0, 9);\n    },\n    mask: '',\n    placeholder: '#########'\n  }),\n  ssn: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return value\n        .replace(/\\D/g, '')\n        .replace(/^(\\d{3})(\\d{1,2})/, '$1-$2')\n        .replace(/^(\\d{3})-(\\d{2})(.+)/, '$1-$2-$3')\n        .substring(0, 11);\n    },\n    mask: '',\n    placeholder: '###-##-####'\n  }),\n  zip: () => ({\n    allowEmptyFormatting: false,\n    expectFormattedValue: true,\n    format: value => {\n      return (value || '').length > 5\n        ? value.substring(0, 5) + '-' + value.substring(5)\n        : value;\n    },\n    isAllowed: input => {\n      if (\n        !(\n          typeof input.formattedValue === 'string' &&\n          input.formattedValue !== ''\n        )\n      ) {\n        return true;\n      }\n\n      return (\n        input.formattedValue.length >= 0 && input.formattedValue.length <= 10\n      );\n    },\n    placeholder: '#####-####',\n    reformatOnBlur: value => {\n      if (value === '' || value === undefined) {\n        return '';\n      }\n\n      if (value?.length >= 5 && value?.length < 10) {\n        return value.substring(0, 5);\n      }\n\n      if (value?.length >= 0 && value?.length > 10) {\n        return value.substring(0, 10);\n      }\n\n      return value;\n    }\n  })\n};\n\nexport const TextBoxFormat = forwardRef<HTMLInputElement, TextBoxFormatProps>(\n  (\n    {\n      dateMask = 'MM/dd/yyyy',\n      dateInputFormat = 'yyyy-MM-dd',\n      format,\n      onChange,\n      min,\n      max,\n      precision,\n      placeholder,\n      ...props\n    },\n    ref\n  ) => {\n    const {\n      allowEmptyFormatting,\n      expectFormattedValue,\n      expectNumericValue,\n      formatChangeValue,\n      formatDisplayValue,\n      formatPasteValue,\n      reformatOnBlur,\n      ...inputProps\n    } = useMemo<MaskOptions>(\n      () =>\n        maskProps[format]({\n          dateInputFormat,\n          dateMask,\n          max,\n          min,\n          precision,\n          suffix: props.suffix\n        }),\n      [dateInputFormat, dateMask, format, max, min, precision, props.suffix]\n    );\n\n    const isDate = format === 'date';\n\n    const [isFocused, toggleIsFocused] = useToggle(false);\n\n    const [textValue, setTextValue] = useState(() =>\n      formatDisplayValue\n        ? formatDisplayValue(props.value?.toString())\n        : [null, undefined, ''].includes(props.value?.toString())\n          ? ''\n          : props.value\n    );\n\n    const onBlur = useCallback(\n      e => {\n        if (reformatOnBlur) {\n          setTextValue(() => reformatOnBlur(e.target.value));\n        }\n\n        toggleIsFocused();\n\n        if (props.onBlur) {\n          props.onBlur(e);\n        }\n      },\n      [props.onBlur, reformatOnBlur]\n    );\n\n    const onFocus = useCallback(\n      e => {\n        toggleIsFocused();\n\n        if (props.onFocus) {\n          props.onFocus(e);\n        }\n      },\n      [props.onFocus]\n    );\n\n    const onPaste = useCallback(\n      e => {\n        e.stopPropagation();\n        /** prevent duplication of value */\n        e.preventDefault();\n        setTextValue(formatPasteValue(e.clipboardData.getData('text')));\n      },\n      [formatPasteValue]\n    );\n\n    /** update the textValue when changes occur */\n    const onValueChange = useCallback(\n      event => {\n        setTextValue(\n          () =>\n            event[\n              expectFormattedValue\n                ? 'formattedValue'\n                : expectNumericValue\n                  ? 'floatValue'\n                  : 'value'\n            ]\n        );\n      },\n      [expectFormattedValue, expectNumericValue]\n    );\n\n    const Component = useMemo(\n      () =>\n        ['currencyUs', 'number', 'numericString', 'percent'].includes(format)\n          ? NumericFormat\n          : NumberFormatBase,\n      [format]\n    );\n\n    useUpdateEffect(() => {\n      onChange(\n        expectNumericValue && textValue === ''\n          ? null\n          : formatChangeValue\n            ? formatChangeValue(textValue)\n            : textValue\n      );\n    }, [textValue]);\n\n    /** update textValue whenever props.value is changed (external) */\n    useUpdateEffect(() => {\n      if (!isFocused) {\n        const value = [null, undefined, ''].includes(props.value)\n          ? ''\n          : props.value;\n\n        setTextValue(() =>\n          formatDisplayValue ? formatDisplayValue(value) : value\n        );\n      }\n    }, [props.value, isDate, dateMask]);\n\n    return (\n      <Component\n        data-raw-value={props.value}\n        {...props}\n        {...inputProps}\n        getInputRef={ref}\n        onBlur={onBlur}\n        onFocus={onFocus}\n        onPaste={formatPasteValue ? onPaste : undefined}\n        onValueChange={onValueChange}\n        placeholder={placeholder || inputProps.placeholder}\n        value={textValue}\n        valueIsNumericString={\n          typeof props.value === 'string' && /^\\d*\\.?\\d*$/.test(textValue)\n        }\n      />\n    );\n  }\n);\n\nTextBoxFormat.displayName = 'TextBoxFormat';\n\nexport type TextBoxProps = Omit<TextBoxFormatProps, 'format'> & {\n  align?: 'center' | 'left' | 'right';\n  endAdornment?: ReactNode;\n  format?: TextBoxFormatProps['format'] | 'email';\n  label?: ReactNode;\n  noFocusStyle?: boolean;\n  revealable?: boolean;\n  variant?: 'small' | 'large';\n  width?: number;\n  fullWidth?: boolean;\n};\n\nconst StyledInput = styled(Input, {\n  shouldForwardProp: prop => prop !== 'align'\n})<InputProps & Pick<TextBoxProps, 'align' | 'variant'>>(props => ({\n  '& input': {\n    ...(props['data-secure'] && {\n      WebkitTextSecurity: 'disc'\n    })\n  },\n  ...(props.variant === 'large' && {\n    fontSize: props.theme.spacing(10)\n  }),\n  textAlign: props.align ? props.align : undefined\n}));\n\nconst StyledIconButton = styled(IconButton)(({ theme }) => ({\n  marginRight: theme.spacing(2),\n  padding: 0\n}));\n\nexport const TextBox = forwardRef<HTMLInputElement, TextBoxProps>(\n  (\n    {\n      align,\n      autoComplete = 'off',\n      autoFocus = false,\n      disabled,\n      endAdornment,\n      fullWidth,\n      label,\n      noFocusStyle = false,\n      readOnly,\n      required,\n      revealable = false,\n      type = 'text',\n      variant = 'small',\n      width,\n      ...props\n    },\n    ref\n  ) => {\n    const testId = useCamelCase(props.name);\n\n    const [reveal, toggleReveal] = useToggle(false);\n\n    const $input = useRef(null);\n\n    useImperativeHandle(ref, () => $input.current);\n\n    useEffect(() => {\n      const timeout = setTimeout(() => {\n        if (autoFocus) {\n          $input.current.focus();\n          $input.current.select();\n        }\n      }, 10);\n\n      return () => {\n        clearTimeout(timeout);\n      };\n    }, []);\n\n    const onPaste = useCallback(\n      e => {\n        if (props.onPaste) {\n          return props.onPaste(e);\n        }\n\n        e.stopPropagation();\n        e.preventDefault();\n\n        props.onChange(e.clipboardData.getData('text').trim());\n      },\n      [props.onChange, props.onPaste]\n    );\n\n    const isMask = props.format && props.format !== 'email';\n\n    return (\n      <StyledInput\n        {...pick(props, 'className')}\n        align={align}\n        data-no-focus-style={noFocusStyle}\n        data-secure={!!revealable && type !== 'password' && !reveal}\n        disabled={!!disabled}\n        endAdornment={\n          revealable ? (\n            <StyledIconButton\n              aria-label={`${reveal ? 'Hide' : 'Show'}${\n                label || props.name ? ` ${label || props.name}` : ''\n              }`}\n              aria-pressed={reveal}\n              data-component='textFieldRevealButton'\n              data-testid={testId}\n              onClick={toggleReveal}\n              onMouseDown={toggleReveal}>\n              {reveal ? (\n                <VisibilityOffOutlined fontSize='small' />\n              ) : (\n                <VisibilityOutlined fontSize='small' />\n              )}\n            </StyledIconButton>\n          ) : (\n            endAdornment\n          )\n        }\n        fullWidth={fullWidth}\n        inputComponent={isMask ? (TextBoxFormat as any) : undefined}\n        inputProps={{\n          ...props,\n          'aria-disabled': !!disabled,\n          'aria-live': 'polite',\n          'aria-required': !!required,\n          autoComplete:\n            props.name === 'password'\n              ? reveal\n                ? 'off'\n                : autoComplete\n              : autoComplete,\n          autoFocus,\n          'data-component': 'textFieldInput',\n          'data-testid': testId,\n          onChange: isMask\n            ? props.onChange\n            : //@ts-expect-error\n              e => props.onChange(e.target.value),\n          onPaste: props.format === 'email' ? onPaste : props.onPaste,\n          type:\n            revealable && type === 'password'\n              ? reveal\n                ? 'text'\n                : 'password'\n              : type\n        }}\n        inputRef={$input}\n        readOnly={readOnly}\n        required={!!required}\n        sx={theme => ({\n          width: width ? theme.spacing(width) : undefined\n        })}\n        value={props.value ?? ''}\n        variant={variant}\n      />\n    );\n  }\n);\n\nTextBox.displayName = 'TextBox';\n","import { InfoOutlined } from '@mui/icons-material';\nimport { FormControl, FormHelperText, Stack, styled } from '@mui/material';\nimport { useCamelCase } from '@vestwell-frontend/hooks';\n\nimport { FieldValidator, useField } from 'formik';\nimport { FC, ReactNode, useCallback, useContext, useId } from 'react';\n\nimport { TextBox, TextBoxProps } from '../TextBox';\nimport { IsRequiredFieldContext } from './Form';\nimport { FormFieldLabel } from './FormFieldLabel';\n\nexport type FormFieldProps = TextBoxProps & {\n  details?: ReactNode;\n  disabled?: boolean;\n  help?: string | ReactNode;\n  helpModal?: ReactNode;\n  hideError?: boolean;\n  hideLabel?: boolean;\n  hideLocked?: boolean;\n  label?: string;\n  revealable?: boolean;\n  validate?: FieldValidator;\n};\n\nconst StyledFormControl = styled(FormControl)(() => ({\n  display: 'flex'\n}));\n\nconst StyledFormHelperText = styled(FormHelperText)(() => ({\n  marginLeft: 0,\n  marginRight: 0\n}));\n\nexport const FormField: FC<FormFieldProps> = ({\n  align,\n  'aria-describedby': ariaDescribedBy,\n  'aria-labelledby': ariaLabelledBy,\n  details,\n  disabled,\n  endAdornment,\n  fullWidth,\n  helpModal,\n  hideLabel,\n  hideLocked,\n  hideError,\n  help,\n  label,\n  readOnly,\n  width,\n  ...props\n}) => {\n  const isRequired = useContext(IsRequiredFieldContext)[props.name] ?? false;\n\n  const testId = useCamelCase(props.name);\n\n  const [field, meta, helpers] = useField({\n    name: props.name,\n    validate: props.validate\n  });\n\n  const detailsId = useId();\n  const disabledId = useId();\n  const helpModalId = useId();\n  const errorId = useId();\n  const infoId = useId();\n  const labelId = useId();\n\n  const errorMessage = meta.touched ? meta.error : undefined;\n\n  const describedBy =\n    `${ariaDescribedBy ? `${ariaDescribedBy} ` : ''}${\n      disabled ? `${disabledId} ` : ''\n    }${help ? `${infoId} ` : ''}${helpModal ? `${helpModalId} ` : ''}${\n      details ? `${detailsId} ` : ''\n    }${errorMessage ? `${errorId} ` : ''}`.trimEnd() || undefined;\n\n  const onChange = useCallback(\n    value => {\n      helpers.setValue(value);\n\n      if (props.onChange) {\n        props.onChange(value);\n      }\n    },\n    [helpers.setValue, props.onChange]\n  );\n\n  return (\n    <StyledFormControl\n      data-component='textField'\n      data-testid={testId}\n      error={!!meta.error && !!meta.touched}\n      required={!!isRequired}>\n      <FormFieldLabel\n        data-component='textFieldLabel'\n        details={details}\n        detailsId={detailsId}\n        disabled={disabled}\n        disabledId={disabledId}\n        helpModal={helpModal}\n        helpModalId={helpModalId}\n        hideLabel={hideLabel}\n        hideLocked={hideLocked}\n        info={help}\n        infoId={infoId}\n        label={label}\n        labelId={labelId}\n        name={props.name}\n        required={!!isRequired}\n      />\n      <TextBox\n        {...props}\n        align={align}\n        aria-describedby={describedBy}\n        aria-invalid={!!meta.error && !!meta.touched}\n        aria-labelledby={`${\n          ariaLabelledBy ? `${ariaLabelledBy} ` : ''\n        }${labelId}`}\n        disabled={disabled}\n        endAdornment={endAdornment}\n        fullWidth={fullWidth}\n        id={props.id || props.name}\n        label={label}\n        onBlur={props.onBlur || field.onBlur}\n        onChange={onChange}\n        readOnly={readOnly}\n        required={isRequired}\n        value={field.value ?? ''}\n        width={width}\n      />\n      <StyledFormHelperText\n        aria-atomic='true'\n        data-component='textFieldError'\n        data-testid={testId}\n        id={errorId}\n        role='alert'>\n        {!hideError && errorMessage ? (\n          <Stack alignItems='center' direction='row' gap={1}>\n            <InfoOutlined color='error' fontSize='small' />\n            {!!label && <span className='sr-only'>Error for {label}:</span>}\n            {errorMessage}\n          </Stack>\n        ) : (\n          ' '\n        )}\n      </StyledFormHelperText>\n    </StyledFormControl>\n  );\n};\n\nFormField.displayName = 'FormField';\n","import { Alert, styled } from '@mui/material';\n\nimport { useFormikContext } from 'formik';\nimport React, {\n  forwardRef,\n  ReactNode,\n  useCallback,\n  useEffect,\n  useState\n} from 'react';\n\nimport { Button, ButtonProps } from '../Button';\n\nexport type FormSaveButtonProps = ButtonProps & {\n  'data-component'?: string;\n  ensureDirty?: boolean;\n  serverError?: ReactNode;\n};\n\nconst StyledAlert = styled(Alert)(() => ({\n  width: 'fit-content'\n}));\n\nexport const FormSaveButton = forwardRef<\n  HTMLButtonElement,\n  FormSaveButtonProps\n>(\n  (\n    { children = 'Save', ensureDirty, serverError, type = 'submit', ...props },\n    ref\n  ) => {\n    const ctx = useFormikContext<any>();\n\n    if (!ctx) {\n      throw new Error('FormSaveButton must be used inside a Formik context');\n    }\n\n    const [isDisabled, setDisabled] = useState(true);\n\n    useEffect(() => {\n      setDisabled(\n        props.disabled ||\n          ctx.isSubmitting ||\n          !ctx.isValid ||\n          (ctx.status === 'error' && !ctx.dirty) ||\n          (ensureDirty && !ctx.dirty)\n      );\n    }, [\n      ctx.dirty,\n      ctx.isSubmitting,\n      ctx.isValid,\n      ctx.status,\n      ensureDirty,\n      props.disabled\n    ]);\n\n    const handleClick = useCallback(\n      e => {\n        ctx.handleSubmit(e);\n      },\n      [ctx.handleSubmit]\n    );\n\n    return (\n      <>\n        <Button\n          {...props}\n          data-component={props['data-component'] || 'formSubmitButton'}\n          data-disabled={isDisabled}\n          data-error={ctx.status === 'error'}\n          data-is-dirty={ctx.dirty}\n          data-is-valid={ctx.isValid}\n          data-status={ctx.status}\n          data-submitting={ctx.isSubmitting}\n          disabled={isDisabled}\n          loading={props.loading || ctx.isSubmitting}\n          onClick={handleClick}\n          ref={ref}\n          type={type}>\n          {children}\n        </Button>\n        {serverError && (\n          <StyledAlert severity='error'>{serverError}</StyledAlert>\n        )}\n      </>\n    );\n  }\n);\n\nFormSaveButton.displayName = 'FormSaveButton';\n","import { toZonedTime } from 'date-fns-tz';\n\nexport function parseDate<T = Date | string>(value: Date | string): T {\n  try {\n    const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\n    const isUtc =\n      typeof value === 'string'\n        ? value.includes('Z') || /^(\\d{4})-(\\d{2})-(\\d{2})/.test(value)\n        : false;\n\n    const finalDate = isUtc ? toZonedTime(value, timezone) : new Date(value);\n\n    if (\n      isNaN(finalDate.valueOf()) ||\n      (typeof value === 'string' &&\n        !(value as string).includes(\n          (finalDate as Date).getFullYear().toString()\n        ))\n    ) {\n      return value as unknown as T;\n    }\n    return finalDate as unknown as T;\n  } catch {\n    return value as unknown as T;\n  }\n}\n","import { format } from 'date-fns';\n\nimport { parseDate } from './parseDate';\n\n/** conversion for legacy formats */\nconst dateFormatToDateFnsFormat = {\n  DATE_FULL: 'MMMM d, yyyy',\n  DATE_MED: 'MMM d, yyyy',\n  a: 'yyyy-MM-dd'\n};\n\nexport function formatDate(\n  value: string | Date,\n  dateFormat = 'M/d/yyyy'\n): string {\n  try {\n    const date = parseDate(value) as Date;\n\n    if (\n      !date ||\n      isNaN(date.valueOf()) ||\n      (typeof value === 'string' &&\n        !(value as string).includes((date as Date).getFullYear().toString()))\n    ) {\n      return value as string;\n    }\n\n    return format(date, dateFormatToDateFnsFormat[dateFormat] || dateFormat);\n  } catch {\n    return value as string;\n  }\n}\n","import { getDate, getMonth, getYear, isExists } from 'date-fns';\nimport { get } from 'lodash';\nimport * as yup from 'yup';\n\nimport {\n  AVOID_SIMPLE_OR_OBVIOUS_ENGLISH_WORDS,\n  HAVE_AT_LEAST_EIGHT_CHARACTERS,\n  HAVE_AT_LEAST_ONE_LOWERCASE_LETTER,\n  HAVE_AT_LEAST_ONE_NUMBER,\n  HAVE_AT_LEAST_ONE_SPECIAL_CHARACTER,\n  HAVE_AT_LEAST_ONE_UPPERCASE_LETTER\n} from './consts/passwordRequirements';\nimport {\n  CANADIAN_STATES,\n  US_STATES,\n  US_STATES_AND_TERRITORIES\n} from './consts/states';\nimport { formatDate } from './formatDate';\nimport { parseDate } from './parseDate';\nimport { numericStringRegex } from './parseNumber';\n\nconst EMAIL_REGEXP =\n  /^(([a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*)|(\\.?[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)*))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\nconst SPECIAL_CHARACTERS_REGEXP = /^[^<>%${}]*$/;\nconst ZIP_US_REGEXP = /^([0-9]{5})(?:[-]([0-9]{4}))?$/;\nconst ZIP_CA_REGEXP =\n  /^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJKLMNPRSTVXY][ ]\\d[ABCEGHJKLMNPRSTVXY]\\d$/i;\nconst PHONE_REGEX = /^[^1]\\(?\\d{2}\\)?[\\s-]?\\d{3}[\\s-]?\\d{4}$/;\nconst EIN_REGEX = /^(\\d{2}-\\d{7}|\\d{9})$/;\nconst SDAT_REGEX = /^[A-Z]+\\d{8}/i;\nconst ADDRESS_REGEX =\n  /(^(?!(.*p\\.?\\s*o\\.?\\s*box.*)|(.*post\\s*office\\s*box.*)))/i;\nconst SPECIAL_CHAR = /[~`!@#$%^&*+=\\-[\\]\\\\';,/{}|\\\\\":<>?]/;\nconst UPPER_CHAR = /[A-Z]/;\nconst LOWER_CHAR = /[a-z]/;\nconst NUMBER = /[0-9]/;\n\nexport function validateEmail(\n  message = 'Invalid email value provided',\n  excludeEmptyString = false\n) {\n  return yup.string().matches(EMAIL_REGEXP, { excludeEmptyString, message });\n}\n\nexport function validateSafeString(errorMessage = 'Invalid value provided') {\n  return yup.string().matches(SPECIAL_CHARACTERS_REGEXP, errorMessage);\n}\n\nexport function validateSdat(errorMessage = 'Invalid value provided') {\n  return yup.string().matches(SDAT_REGEX, errorMessage);\n}\n\nexport function validateRoutingNumber(errorMessage = 'Invalid Routing Number') {\n  return yup.string().test({\n    test: function (value) {\n      const isFormatValid =\n        value?.length === 9 && !isNaN(+value) && value !== '000000000';\n\n      if (!isFormatValid) {\n        return this.createError({\n          message: errorMessage,\n          path: this.path\n        });\n      }\n\n      const firstTwoDigits = +value.slice(0, 2);\n      const isRangeValid =\n        firstTwoDigits <= 12 ||\n        (firstTwoDigits >= 21 && firstTwoDigits <= 32) ||\n        (firstTwoDigits >= 61 && firstTwoDigits <= 72) ||\n        firstTwoDigits === 80;\n      const isChecksumValid =\n        (3 * (+value[0] + +value[3] + +value[6]) +\n          7 * (+value[1] + +value[4] + +value[7]) +\n          (+value[2] + +value[5] + +value[8])) %\n          10 ===\n        0;\n\n      if (!isRangeValid || !isChecksumValid) {\n        return this.createError({\n          message: errorMessage,\n          path: this.path\n        });\n      }\n\n      return true;\n    }\n  });\n}\n\ntype DateValidatorOptions = {\n  max?: string | Date;\n  min?: string | Date;\n  maxErrorMessage?: string;\n  minErrorMessage?: string;\n  required?: boolean;\n  errorMessage?: string;\n};\n\n/** @deprecated - use dateValidator instead */\nexport function validateDate(options) {\n  return value => {\n    try {\n      const date = new Date(value).getTime();\n      const isValid = !isNaN(date);\n\n      if (!isValid) {\n        return false;\n      }\n\n      if (options?.min && date < options.min.getTime()) {\n        return false;\n      }\n\n      return true;\n    } catch {\n      return false;\n    }\n  };\n}\n\nexport const dateValidator = (name, options: DateValidatorOptions) =>\n  yup.string().test({\n    test: function (value) {\n      const date = parseDate(value);\n      const maxDate = options?.max && parseDate(options.max);\n      const minDate = options?.min && parseDate(options.min);\n\n      const isLessThanMax = !maxDate || date <= maxDate;\n      const isGreaterThanMin = !minDate || date >= minDate;\n      const isValidDate =\n        date instanceof Date &&\n        isExists(getYear(date), getMonth(date), getDate(date));\n      const isValid =\n        date instanceof Date && !isNaN(date.getTime()) && isValidDate;\n\n      if (options.required && !isValid) {\n        return this.createError({\n          message:\n            options.errorMessage || `${name} is an invalid date [MM/DD/YYYY]`,\n          path: this.path\n        });\n      }\n\n      if (value && !isLessThanMax) {\n        return this.createError({\n          message:\n            options.maxErrorMessage ||\n            `${name} must be less than ${formatDate(maxDate as string)}`,\n          path: this.path\n        });\n      }\n\n      if (value && !isGreaterThanMin) {\n        return this.createError({\n          message:\n            options.minErrorMessage ||\n            `${name} must be greater than ${formatDate(minDate as string)}`,\n          path: this.path\n        });\n      }\n\n      return true;\n    }\n  });\n\nexport function validateZip(\n  message = 'Invalid Zip',\n  excludeEmptyString = false,\n  country: 'US' | 'CA' = 'US'\n) {\n  return yup\n    .string()\n    .matches(country === 'US' ? ZIP_US_REGEXP : ZIP_CA_REGEXP, {\n      excludeEmptyString,\n      message\n    });\n}\n\nexport function validateConfirmation(\n  field: string,\n  errorMessage = 'Confirmation does not match'\n) {\n  return yup.string().test({\n    test: function (value) {\n      return (\n        get(this.parent, field) === value ||\n        this.createError({\n          message: errorMessage,\n          path: this.path\n        })\n      );\n    }\n  });\n}\n\nexport function validateName(\n  message = 'Invalid Name',\n  excludeEmptyString = false\n) {\n  return yup.string().matches(/^[a-zA-Z]+(([',. -][a-zA-Z ])?[a-zA-Z]*)*\\.?$/, {\n    excludeEmptyString,\n    message\n  });\n}\n\nexport function validateNumericString(\n  message = 'Invalid Number',\n  excludeEmptyString = false\n) {\n  return yup.string().matches(numericStringRegex, {\n    excludeEmptyString,\n    message\n  });\n}\n\nexport function validateSsn(\n  message = 'Invalid SSN Format',\n  excludeEmptyString = true\n) {\n  return yup\n    .string()\n    .nullable(false)\n    .test(function (value = '') {\n      if (excludeEmptyString && value === '') {\n        return true;\n      }\n\n      if (!/^(\\d+-?)+\\d+$/.test(value)) {\n        return this.createError({\n          message,\n          path: this.path\n        });\n      }\n\n      const rawValue = value.replace(/[^0-9]/g, '');\n\n      // check if the value is all the same number\n      if (rawValue.length === 9 && /^([0-9])\\1+$/.test(rawValue)) {\n        return this.createError({\n          message,\n          path: this.path\n        });\n      }\n\n      if (['987654321', '123456789'].includes(rawValue)) {\n        return this.createError({\n          message,\n          path: this.path\n        });\n      }\n\n      /**\n       * ITIN:\n       * All valid ITINs are a nine-digit number in the same format\n       * as the SSN (9XX-8X-XXXX), begins with a “9” and the\n       * 4th and 5th digits range from 50 to 65, 70 to 88, 90 to 92,\n       * and 94 to 99.\n       */\n      if (rawValue.startsWith('9')) {\n        return (\n          /^9\\d{2}(5\\d|6[0-5]|7\\d|8[0-8]|9[0-2,4-9])\\d{4}$/.test(rawValue) ||\n          this.createError({\n            message: message.replace('SSN', 'ITIN'),\n            path: this.path\n          })\n        );\n      }\n\n      // SSN\n      return (\n        /^(?!(000|666|9))\\d{3}-?(?!(00))\\d{2}-?(?!(0000))\\d{4}$/.test(\n          rawValue\n        ) ||\n        this.createError({\n          message,\n          path: this.path\n        })\n      );\n    });\n}\n\nexport function validatePhone(\n  message = 'Invalid value provided',\n  excludeEmptyString = false\n) {\n  return yup.string().matches(PHONE_REGEX, { excludeEmptyString, message });\n}\n\nexport function validateEin(\n  message = 'Invalid value provided',\n  excludeEmptyString = false\n) {\n  return yup.string().matches(EIN_REGEX, { excludeEmptyString, message });\n}\n\nexport function validatePassword(value) {\n  const tests = {\n    [AVOID_SIMPLE_OR_OBVIOUS_ENGLISH_WORDS]:\n      value.length > 0 &&\n      !['password', 'vestwell', 'test', '401'].some(\n        forbiddenString =>\n          value.toUpperCase().indexOf(forbiddenString.toUpperCase()) > -1\n      ),\n    [HAVE_AT_LEAST_EIGHT_CHARACTERS]: value.length >= 8,\n    [HAVE_AT_LEAST_ONE_LOWERCASE_LETTER]: LOWER_CHAR.test(value),\n    [HAVE_AT_LEAST_ONE_NUMBER]: NUMBER.test(value),\n    [HAVE_AT_LEAST_ONE_SPECIAL_CHARACTER]: SPECIAL_CHAR.test(value),\n    [HAVE_AT_LEAST_ONE_UPPERCASE_LETTER]: UPPER_CHAR.test(value)\n  };\n\n  return Object.values(tests).every(Boolean) ? undefined : tests;\n}\n\nexport function validateAddress(\n  message = \"Address can't be Post Office Box\",\n  excludeEmptyString = false\n) {\n  return yup.string().matches(ADDRESS_REGEX, { excludeEmptyString, message });\n}\n\nexport function validateState(country: 'US' | 'US_AND_TERRITORIES' | 'CA') {\n  return yup.string().test({\n    test: function (value) {\n      if (country === 'US' && !US_STATES[value]) {\n        return this.createError({\n          message: 'Invalid US State',\n          path: this.path\n        });\n      }\n\n      if (\n        country === 'US_AND_TERRITORIES' &&\n        !US_STATES_AND_TERRITORIES[value]\n      ) {\n        return this.createError({\n          message: 'Invalid US State',\n          path: this.path\n        });\n      }\n\n      if (country === 'CA' && !CANADIAN_STATES[value]) {\n        return this.createError({\n          message: 'Invalid Canadian State/Province',\n          path: this.path\n        });\n      }\n\n      return true;\n    }\n  });\n}\n\nexport function validateBlankSpaces(\n  message = 'The field cannot begin or end with blank space',\n  excludeEmptyString = true\n) {\n  return yup\n    .string()\n    .matches(/^\\S+(\\s+\\S+)*$/, { excludeEmptyString, message });\n}\n","import {\n  dateValidator,\n  validateEin,\n  validateEmail,\n  validateSafeString,\n  validateSdat\n} from '@vestwell-frontend/helpers';\n\nimport * as yup from 'yup';\n\nexport const fields = {\n  BIRTH_DATE: dateValidator('Date of Birth', {\n    max: new Date(),\n    required: true\n  }),\n  EIN: validateEin('Must be a valid EIN').required('Required'),\n  EMAIL: validateEmail('Please use standard email format').required('Required'),\n  EXEMPTION_REASON: yup.string().required('Required'),\n  FIRST_NAME: validateSafeString('Invalid first name provided').required(\n    'Required'\n  ),\n  INVITE_CODE: yup.string().required('Required'),\n  LAST_NAME: validateSafeString('Invalid last name provided').required(\n    'Required'\n  ),\n  NAME: validateSafeString('Invalid name provided').required('Required'),\n  PASSWORD: yup.string().required('Required'),\n  PHONE_NUMBER: yup\n    .string()\n    .min(12, 'Must be a valid US phone number')\n    .required('Required'),\n  SDAT: validateSdat('Must be a valid SDAT').required('Required'),\n  SSN: yup\n    .string()\n    .required('Required')\n    .min(11, 'Must be a valid Social Security Number')\n};\n","import { Alert, Stack, styled } from '@mui/material';\nimport {\n  usePostAdvisorConnect,\n  usePostAdvisorPassword,\n  usePostForgotPassword,\n  usePostParticipantConnectVerify,\n  usePostParticipantPassword,\n  usePostRegistrationContact,\n  usePostSponsorConnect,\n  usePostSponsorPassword\n} from '@sentinel/hooks';\nimport { validatePassword } from '@sentinel/utils';\nimport {\n  PasswordCheckList,\n  validatePasswords\n} from '@vestwell-frontend/elements';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback, useId, useMemo } from 'react';\nimport { useToggle } from 'react-use';\nimport * as yup from 'yup';\n\nimport { useAuth } from '../contexts';\nimport { fields } from '../schemas';\nimport { State } from '../types';\n\nconst schema = yup.object().shape({\n  email: fields.EMAIL,\n  password: fields.PASSWORD\n});\n\nconst editSchema = yup.object().shape({\n  email: fields.EMAIL\n});\n\nconst StyledFormFieldContainer = styled('div')(({ theme }) => ({\n  '& > .MuiFormControl-root': {\n    marginRight: theme.spacing(4),\n    width: '100%'\n  },\n  display: 'flex',\n  flexDirection: 'row',\n  justifyContent: 'space-between'\n}));\n\n//todo\nconst useConnect = props => {\n  const advisor = usePostAdvisorConnect(props);\n\n  const participant = usePostParticipantConnectVerify(props);\n\n  const sponsor = usePostSponsorConnect(props);\n\n  return {\n    advisor,\n    participant,\n    sponsor\n  };\n};\n\n//todo\nconst usePassword = props => {\n  const advisor = usePostAdvisorPassword(props);\n\n  const participant = usePostParticipantPassword(props);\n\n  const sponsor = usePostSponsorPassword(props);\n\n  return {\n    advisor,\n    participant,\n    sponsor\n  };\n};\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst StyledPasswordCheckList = styled(PasswordCheckList)(() => ({\n  textAlign: 'left'\n}));\n\nconst StyledAlert = styled(Alert)(({ theme }) => ({\n  marginTop: `${theme.spacing(2)} !important`\n}));\n\nexport const AccountSetupPage: FC<{\n  entity: 'advisor' | 'participant' | 'sponsor';\n  finishUrl: string;\n}> = props => {\n  const [isEdit, toggleIsEdit] = useToggle(false);\n  const [isResetLinkSent, toggleIsResetLinkSent] = useToggle(false);\n\n  const ctx = useWizard<State>();\n\n  const auth = useAuth();\n\n  const connect = useConnect({\n    mutation: {\n      onSuccess: () => {\n        auth.setToken('');\n        window.location.assign(`${window.location.origin}${props.finishUrl}`);\n      }\n    }\n  })[props.entity];\n\n  const password = usePassword({\n    mutation: {\n      onSuccess: () => {\n        auth.setToken('');\n        window.location.assign(`${window.location.origin}${props.finishUrl}`);\n      }\n    }\n  })[props.entity];\n\n  const editEmail = usePostRegistrationContact({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const forgotPassword = usePostForgotPassword();\n\n  const userId = useMemo(() => ctx.state.userId, [ctx.state.userId]);\n  const hasPassword = useMemo(\n    () => ctx.state.hasPassword,\n    [ctx.state.hasPassword]\n  );\n\n  const describedById = useId();\n\n  const onBack = useCallback(() => {\n    ctx.setState({ email: '' });\n  }, []);\n\n  const onSubmit = useCallback(\n    async data => {\n      if (isEdit) {\n        await editEmail.mutateAsync({\n          data: { ...data, entity: props.entity }\n        });\n        toggleIsEdit();\n      } else if (hasPassword || (!hasPassword && isResetLinkSent)) {\n        await connect.mutateAsync({ data });\n      } else {\n        await password.mutateAsync({ data });\n      }\n    },\n    [hasPassword, isEdit, isResetLinkSent, props.entity]\n  );\n\n  const onForgotPassword = useCallback(async () => {\n    const res = await forgotPassword.mutateAsync({\n      data: {\n        email: ctx.state.email\n      }\n    });\n\n    toggleIsResetLinkSent();\n\n    console.log(res.link);\n  }, [ctx.state.email]);\n\n  const onChange = useCallback(() => {\n    connect.reset();\n    password.reset();\n    editEmail.reset();\n    forgotPassword.reset();\n  }, []);\n\n  const validate = useMemo(\n    () =>\n      validatePasswords(\n        yup.object().shape({\n          email: fields.EMAIL,\n          password: validatePassword([ctx.state?.email || '']).required(\n            'Required'\n          ),\n          passwordConfirm: yup\n            .string()\n            .oneOf([yup.ref('password'), undefined], 'Passwords Must Match')\n            .required('Required')\n        })\n      ),\n    [ctx.state?.email]\n  );\n\n  const error =\n    editEmail.error || connect.error || password.error || forgotPassword.error;\n\n  const loading =\n    editEmail.isLoading ||\n    connect.isLoading ||\n    password.isLoading ||\n    forgotPassword.isLoading;\n\n  return (\n    <StyledForm\n      initialValues={{\n        ...{ email: ctx.state.email || '' },\n        ...(isEdit ? {} : { password: '' }),\n        ...(isEdit || hasPassword ? {} : { passwordConfirm: '' })\n      }}\n      key={isEdit.toString()}\n      onChange={onChange}\n      onSubmit={onSubmit}\n      validate={hasPassword || !!userId || isEdit ? undefined : validate}\n      validationSchema={\n        isEdit ? editSchema : hasPassword || !!userId ? schema : undefined\n      }>\n      <Stack data-heap-redact-text='true' spacing={6}>\n        <StyledFormFieldContainer>\n          <FormField\n            autoFocus\n            disabled={!isEdit}\n            format='email'\n            fullWidth\n            help={\n              hasPassword && !!userId\n                ? 'You will use this email to sign in'\n                : 'If you already have an account with us, please enter that email address here.'\n            }\n            hideLocked\n            label='Login Email'\n            name='email'\n          />\n          {!isEdit && (\n            <Button\n              aria-label='Edit Login Email'\n              disabled={loading}\n              onClick={toggleIsEdit}\n              variant='inline'>\n              Edit\n            </Button>\n          )}\n        </StyledFormFieldContainer>\n        {!isEdit && (\n          <>\n            {!hasPassword && !!userId && (\n              <>\n                <StyledAlert severity='info'>\n                  We found an account with the provided email address. For\n                  security reasons you must reset your password to continue.\n                </StyledAlert>\n                {isResetLinkSent ? (\n                  <>\n                    <FormField\n                      aria-describedby={describedById}\n                      hideError={!hasPassword && !userId}\n                      label='Password'\n                      name='password'\n                      revealable\n                      type='password'\n                    />\n                    <Alert severity='success'>\n                      A reset link has been sent to your login email. Please\n                      reset your password and return to this screen to connect\n                      your accounts.\n                    </Alert>\n                  </>\n                ) : (\n                  <Button\n                    disabled={loading || forgotPassword.isLoading}\n                    fullWidth\n                    loading={forgotPassword.isLoading}\n                    onClick={onForgotPassword}\n                    variant='contained'>\n                    Reset Password\n                  </Button>\n                )}\n              </>\n            )}\n            {hasPassword && (\n              <>\n                <StyledAlert severity='info'>\n                  We found an account with the provided email address. Sign in\n                  to complete registration and view all your accounts in one\n                  place.\n                </StyledAlert>\n                <FormField\n                  aria-describedby={describedById}\n                  hideError={!hasPassword && !userId}\n                  label='Password'\n                  name='password'\n                  revealable\n                  type='password'\n                />\n                <Stack direction='row' justifyContent='flex-end'>\n                  {isResetLinkSent ? (\n                    <Alert severity='success'>\n                      A reset link has been sent to your login email. Please\n                      reset your password and return to this screen to connect\n                      your accounts.\n                    </Alert>\n                  ) : (\n                    <Button\n                      disabled={loading || forgotPassword.isLoading}\n                      loading={forgotPassword.isLoading}\n                      onClick={onForgotPassword}\n                      variant='inline'>\n                      Forgot Your Password?\n                    </Button>\n                  )}\n                </Stack>\n              </>\n            )}\n            {!hasPassword && !userId && (\n              <>\n                <FormField\n                  aria-describedby={describedById}\n                  label='Password'\n                  name='password'\n                  revealable\n                  type='password'\n                />\n                <FormField\n                  label='Confirm Password'\n                  name='passwordConfirm'\n                  revealable\n                  type='password'\n                />\n                <StyledPasswordCheckList describedById={describedById} />\n              </>\n            )}\n          </>\n        )}\n        {error?.message && (\n          <Alert severity='error'>\n            <span\n              dangerouslySetInnerHTML={{\n                __html: error.message\n              }}\n            />\n          </Alert>\n        )}\n        {(hasPassword ||\n          (!hasPassword && !!userId && isResetLinkSent) ||\n          (!hasPassword && !userId)) && (\n          <FormSaveButton disabled={!!error} fullWidth>\n            {isEdit\n              ? 'Continue'\n              : !hasPassword && !userId\n                ? 'Create Account'\n                : 'Connect Accounts'}\n          </FormSaveButton>\n        )}\n        {props.entity === 'participant' && (\n          <Button disabled={loading} fullWidth onClick={onBack} variant='text'>\n            Go Back\n          </Button>\n        )}\n      </Stack>\n    </StyledForm>\n  );\n};\n","import {\n  Alert,\n  AlertTitle,\n  LinearProgress,\n  Stack,\n  styled\n} from '@mui/material';\nimport { AdvisorRegistration, usePostAdvisorVerify } from '@sentinel/hooks';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { useCallback } from 'react';\nimport { useMount, useSearchParam } from 'react-use';\nimport * as yup from 'yup';\n\nimport { useAuth } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledLinearProgress = styled(LinearProgress)(() => ({\n  width: '100%'\n}));\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst schema = yup.object().shape({\n  inviteCode: fields.INVITE_CODE\n});\n\nexport const AdvisorVerificationPage = () => {\n  const inviteCode = useSearchParam('code') || '';\n\n  const ctx = useWizard<AdvisorRegistration>();\n\n  const auth = useAuth();\n\n  const verify = usePostAdvisorVerify({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      },\n      useErrorBoundary: false\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data => await verify.mutateAsync({ data }),\n    []\n  );\n\n  useMount(async () => {\n    if (inviteCode) {\n      try {\n        await verify.mutateAsync({\n          data: { inviteCode }\n        });\n      } catch {\n        //\n      }\n    }\n  });\n\n  return (verify.isLoading || verify.isIdle) && !!inviteCode ? (\n    <StyledLinearProgress />\n  ) : (\n    <StyledForm\n      initialValues={{\n        inviteCode\n      }}\n      onChange={verify.reset}\n      onSubmit={onSubmit}\n      preventOnChangeOnMount\n      validationSchema={schema}>\n      <Stack spacing={6}>\n        {(!verify.error || (!inviteCode && verify.error)) && (\n          <div data-heap-redact-text='true'>\n            <FormField\n              details='Your access code was sent to you by email.'\n              label='Access Code'\n              name='inviteCode'\n            />\n          </div>\n        )}\n        {verify.error?.message && (\n          <Alert severity='error'>\n            {verify.error?.meta?.title &&\n              typeof verify.error?.meta?.title === 'string' && (\n                <AlertTitle>{verify.error.meta.title}</AlertTitle>\n              )}\n            <span\n              dangerouslySetInnerHTML={{\n                __html: verify.error.message\n              }}\n            />\n          </Alert>\n        )}\n        {(!verify.error || (!inviteCode && verify.error)) && (\n          <FormSaveButton\n            disabled={!!verify.error}\n            fullWidth\n            loading={verify.isLoading}>\n            Begin\n          </FormSaveButton>\n        )}\n      </Stack>\n      <Stack alignItems='center' mt={10}>\n        <Button href='/' variant='inline'>\n          Return to Login\n        </Button>\n      </Stack>\n    </StyledForm>\n  );\n};\n","import { Alert, Stack, styled } from '@mui/material';\nimport {\n  AdvisorRegistration,\n  SponsorRegistration,\n  usePostRegistrationContact\n} from '@sentinel/hooks';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nimport { useAuth } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst StyledButton = styled(Button)(() => ({\n  alignSelf: 'center'\n}));\n\nconst schema = yup.object().shape({\n  email: fields.EMAIL\n});\n\nexport const ContactPage: FC<{ entity: 'advisor' | 'sponsor' }> = props => {\n  const ctx = useWizard<AdvisorRegistration | SponsorRegistration>();\n\n  const auth = useAuth();\n\n  const contact = usePostRegistrationContact({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data =>\n      await contact.mutateAsync({\n        data: { ...data, entity: props.entity }\n      }),\n    [props.entity]\n  );\n\n  const onExempt = useCallback(\n    () =>\n      ctx.setState({\n        program: 'exempt'\n      }),\n    []\n  );\n\n  return (\n    <StyledForm\n      initialValues={{\n        email: ctx.state.email ?? ctx.state.inviteEmail ?? ''\n      }}\n      onChange={contact.reset}\n      onSubmit={onSubmit}\n      validationSchema={schema}>\n      <Stack spacing={6}>\n        <div data-heap-redact-text='true'>\n          <FormField\n            details='You will use this email to sign in.'\n            format='email'\n            label='Email'\n            name='email'\n          />\n        </div>\n        {contact.error?.message && (\n          <Alert severity='error'>\n            <span dangerouslySetInnerHTML={{ __html: contact.error.message }} />\n          </Alert>\n        )}\n        <FormSaveButton\n          disabled={!!contact.error}\n          fullWidth\n          loading={contact.isLoading}>\n          Continue\n        </FormSaveButton>\n        {/*//@ts-expect-error*/}\n        {ctx.state.isState && (\n          <StyledButton fullWidth onClick={onExempt} variant='inline'>\n            Are you looking to exempt from the Program?\n          </StyledButton>\n        )}\n      </Stack>\n    </StyledForm>\n  );\n};\n","import { styled } from '@mui/material';\n\nimport { useField } from 'formik';\nimport { FC, useCallback, useContext } from 'react';\n\nimport { RadioGroup, RadioGroupProps } from '../RadioButton';\nimport { IsRequiredFieldContext } from './Form';\n\nexport type FormRadioGroupProps = Omit<\n  RadioGroupProps,\n  'value' | 'required'\n> & {\n  name: string;\n  align?:\n    | 'center'\n    | 'flex-start'\n    | 'flex-end'\n    | 'space-between'\n    | 'space-around'\n    | 'space-evenly';\n};\n\nconst StyledRadioGroup = styled(RadioGroup, {\n  shouldForwardProp: prop => prop !== 'align'\n})<FormRadioGroupProps>(props => ({\n  ...(props.align && {\n    '& .MuiFormGroup-root': {\n      justifyContent: props.align\n    }\n  })\n}));\n\nexport const FormRadioGroup: FC<FormRadioGroupProps> = props => {\n  const isRequired = useContext(IsRequiredFieldContext)[props.name] ?? false;\n\n  const [field, meta, helpers] = useField(props.name);\n\n  const onBlur = useCallback(\n    e => {\n      helpers.setTouched(true);\n\n      if (props.onBlur) {\n        props.onBlur(e);\n      }\n    },\n    [helpers.setTouched, props.onBlur]\n  );\n\n  const onChange = useCallback(\n    value => {\n      helpers.setValue(value);\n\n      if (props.onChange) {\n        props.onChange(value);\n      }\n    },\n    [helpers.setValue, props.onChange]\n  );\n\n  return (\n    <StyledRadioGroup\n      {...props}\n      error={!!meta.error && !!meta.touched}\n      errorMessage={meta.touched ? meta.error : undefined}\n      formField\n      id={props.id || props.name}\n      onBlur={onBlur}\n      onChange={onChange}\n      required={isRequired}\n      value={field.value}\n    />\n  );\n};\n\nFormRadioGroup.displayName = 'FormRadioGroup';\n","import {\n  Alert,\n  AlertTitle,\n  LinearProgress,\n  Stack,\n  styled\n} from '@mui/material';\nimport {\n  ParticipantRegistration,\n  useGetParticipantAddressOptions,\n  usePostParticipantAddressVerify\n} from '@sentinel/hooks';\nimport {\n  Form,\n  FormRadioGroup,\n  FormSaveButton,\n  RadioButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nimport { CancelRegistrationButton } from '../components';\nimport { useAuth } from '../contexts';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst RadioButtonsContainer = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  gap: theme.spacing(2)\n}));\n\nconst schema = yup.object().shape({\n  address1: yup.string().required('Required')\n});\n\nexport const ParticipantAddressVerifyPage: FC = () => {\n  const ctx = useWizard<ParticipantRegistration>();\n\n  const auth = useAuth();\n\n  const addresses = useGetParticipantAddressOptions<string[]>();\n\n  const verify = usePostParticipantAddressVerify({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data => await verify.mutateAsync({ data }),\n    []\n  );\n\n  return (\n    <StyledForm\n      initialValues={{\n        address1: ''\n      }}\n      onChange={verify.reset}\n      onSubmit={onSubmit}\n      validationSchema={schema}>\n      <Stack spacing={6}>\n        <FormRadioGroup\n          hideLabel\n          label='Verify address'\n          name='address1'\n          variant='standard'>\n          <RadioButtonsContainer>\n            {addresses.data?.map(value => (\n              <RadioButton\n                data-wg-notranslate\n                key={value}\n                label={value}\n                value={value}\n              />\n            )) || <LinearProgress />}\n          </RadioButtonsContainer>\n        </FormRadioGroup>\n        {verify.error?.message && (\n          <Alert severity='error'>\n            {verify.error?.meta?.title &&\n              typeof verify.error?.meta?.title === 'string' && (\n                <AlertTitle>{verify.error.meta.title}</AlertTitle>\n              )}\n            <span dangerouslySetInnerHTML={{ __html: verify.error.message }} />\n          </Alert>\n        )}\n        <FormSaveButton disabled={!!verify.error} fullWidth>\n          Verify Address\n        </FormSaveButton>\n        <CancelRegistrationButton entity='participant'>\n          Cancel Registration\n        </CancelRegistrationButton>\n      </Stack>\n    </StyledForm>\n  );\n};\n","import {\n  Alert,\n  AlertTitle,\n  LinearProgress,\n  Stack,\n  styled\n} from '@mui/material';\nimport {\n  ParticipantRegistration,\n  useGetParticipantCompanyOptions,\n  usePostParticipantCompanyVerify\n} from '@sentinel/hooks';\nimport {\n  Form,\n  FormRadioGroup,\n  FormSaveButton,\n  RadioButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nimport { CancelRegistrationButton } from '../components';\nimport { useAuth } from '../contexts';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst RadioButtonsContainer = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  gap: theme.spacing(2)\n}));\n\nconst schema = yup.object().shape({\n  companyName: yup.string().required('Required')\n});\n\nexport const ParticipantCompanyVerifyPage: FC = () => {\n  const ctx = useWizard<ParticipantRegistration>();\n\n  const auth = useAuth();\n\n  const companies = useGetParticipantCompanyOptions<string[]>();\n\n  const verify = usePostParticipantCompanyVerify({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data => await verify.mutateAsync({ data }),\n    []\n  );\n\n  return (\n    <StyledForm\n      initialValues={{\n        companyName: ''\n      }}\n      onSubmit={onSubmit}\n      validationSchema={schema}>\n      <Stack spacing={6}>\n        <FormRadioGroup\n          hideLabel\n          label='Verify company'\n          name='companyName'\n          onChange={verify.reset}\n          variant='standard'>\n          <RadioButtonsContainer>\n            {companies.data?.map(value => (\n              <RadioButton\n                data-wg-notranslate\n                key={value}\n                label={value}\n                value={value}\n              />\n            )) || <LinearProgress />}\n          </RadioButtonsContainer>\n        </FormRadioGroup>\n        {verify.error?.message && (\n          <Alert severity='error'>\n            {verify.error?.meta?.title &&\n              typeof verify.error?.meta?.title === 'string' && (\n                <AlertTitle>{verify.error.meta.title}</AlertTitle>\n              )}\n            <span dangerouslySetInnerHTML={{ __html: verify.error.message }} />\n          </Alert>\n        )}\n        <FormSaveButton disabled={!!verify.error} fullWidth>\n          Verify Company\n        </FormSaveButton>\n        <CancelRegistrationButton entity='participant'>\n          Cancel Registration\n        </CancelRegistrationButton>\n      </Stack>\n    </StyledForm>\n  );\n};\n","import { Grid2, styled } from '@mui/material';\nimport { useCamelCase } from '@vestwell-frontend/hooks';\n\nimport { FC, isValidElement, ReactNode } from 'react';\n\nimport { PLACEHOLDER } from '../../consts';\nimport { Link } from '../Link';\nimport { Loading } from '../Loading';\nimport { Text } from '../Text';\n\nexport type VerticalAttributeProps = {\n  'aria-level'?: number;\n  excludeTranslation?: boolean;\n  caption?: ReactNode;\n  children?: ReactNode;\n  'data-testid'?: string;\n  isLoading?: boolean;\n  label: ReactNode;\n  linkTo?: string;\n  role?: string;\n  tooltip?: ReactNode;\n  value?: ReactNode;\n  variant?: 'medium' | 'large';\n};\n\nconst StyledLink = styled(Link, { name: 'VerticalAttributeLink' })(\n  ({ theme, ...props }) => ({\n    ...(props['data-variant'] === 'large' && {\n      fontSize: theme.spacing(4.5),\n      fontWeight: theme.typography.fontWeightBold\n    }),\n    ...(props['data-variant'] === 'medium' && {\n      fontSize: theme.spacing(4),\n      fontWeight: theme.typography.fontWeightBold\n    })\n  })\n);\n\nconst StyledText = styled('div', { name: 'VerticalAttributeText' })(\n  ({ theme, ...props }) => ({\n    color: theme.palette.grey100.main,\n    fontSize:\n      props['data-variant'] === 'medium'\n        ? theme.spacing(4)\n        : theme.spacing(4.5),\n    fontWeight: theme.typography.fontWeightBold\n  })\n);\n\nconst StyledVerticalAttribute = styled('div', { name: 'VerticalAttribute' })(\n  ({ theme }) => ({\n    marginBottom: theme.spacing(8),\n    textAlign: 'left'\n  })\n);\n\nexport const VerticalAttribute: FC<VerticalAttributeProps> = ({\n  variant = 'medium',\n  ...props\n}) => {\n  const testId = useCamelCase(\n    props['data-testid'] || (typeof props.label === 'string' ? props.label : '')\n  );\n\n  return (\n    <StyledVerticalAttribute\n      {...props}\n      data-component='verticalAttribute'\n      data-testid={testId}>\n      <Grid2 alignItems='end' container>\n        <Grid2>\n          <Text\n            aria-level={props['aria-level']}\n            color='grey300'\n            data-component='verticalAttributeLabel'\n            data-testid={testId}\n            mb={0}\n            role={props.role}>\n            {props.label}\n          </Text>\n        </Grid2>\n        <Grid2>{props.tooltip}</Grid2>\n      </Grid2>\n      {props.isLoading ? (\n        <Loading\n          backgroundColor='grey800'\n          data-testid='VerticalAttributeLoading'\n          width={80}\n        />\n      ) : (\n        <>\n          {props.linkTo ? (\n            <StyledLink\n              data-component='verticalAttributeLink'\n              data-testid={testId}\n              data-variant={variant}\n              data-wg-notranslate={\n                props.excludeTranslation ? 'true' : undefined\n              }\n              to={props.linkTo}>\n              {props.children || props.value || PLACEHOLDER}\n            </StyledLink>\n          ) : (\n            <StyledText\n              data-component='verticalAttributeText'\n              data-testid={testId}\n              data-variant={variant}\n              data-wg-notranslate={\n                isValidElement(props.value) ? undefined : 'true'\n              }>\n              {props.children || props.value || PLACEHOLDER}\n            </StyledText>\n          )}\n          {props.caption && (\n            <Text\n              color='grey300'\n              data-component='verticalAttributeCaption'\n              data-testid={testId}\n              variant='i1'>\n              {props.caption}\n            </Text>\n          )}\n        </>\n      )}\n    </StyledVerticalAttribute>\n  );\n};\n","import { Alert, Stack, styled } from '@mui/material';\nimport {\n  ParticipantRegistration,\n  usePatchParticipantContact,\n  usePostRegistrationContact\n} from '@sentinel/hooks';\nimport {\n  Form,\n  FormField,\n  FormSaveButton,\n  useWizard,\n  VerticalAttribute\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nimport { useAuth } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst StyledVerticalAttribute = styled(VerticalAttribute)(() => ({\n  width: '50%'\n}));\n\nconst schema = yup.object().shape({\n  email: fields.EMAIL,\n  firstName: fields.FIRST_NAME,\n  lastName: fields.LAST_NAME,\n  phoneNumber: fields.PHONE_NUMBER\n});\n\nexport const ParticipantContactPage: FC = () => {\n  const ctx = useWizard<ParticipantRegistration>();\n\n  const auth = useAuth();\n\n  const patchContact = usePatchParticipantContact();\n\n  const postContact = usePostRegistrationContact({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onChange = useCallback(() => {\n    patchContact.reset();\n    postContact.reset();\n  }, []);\n\n  const onSubmit = useCallback(async data => {\n    await patchContact.mutateAsync({ data });\n    await postContact.mutateAsync({ data });\n  }, []);\n\n  return (\n    <StyledForm\n      initialValues={{\n        email: ctx.state.email || '',\n        firstName: ctx.state.firstName || '',\n        lastName: ctx.state.lastName || '',\n        phoneNumber: ctx.state.phoneNumber || ''\n      }}\n      onChange={onChange}\n      onSubmit={onSubmit}\n      validationSchema={schema}>\n      <Stack\n        data-component='container'\n        data-heap-redact-text='true'\n        data-testid='nameFields'\n        direction='row'\n        mt={4}>\n        <StyledVerticalAttribute\n          label='First Name'\n          value={ctx.state.firstName || ''}\n          variant='large'\n        />\n        <StyledVerticalAttribute\n          label='Last Name'\n          value={ctx.state.lastName || ''}\n          variant='large'\n        />\n      </Stack>\n      <Stack spacing={6}>\n        <div data-heap-redact-text='true'>\n          <Stack spacing={2}>\n            <FormField format='email' label='Personal Email' name='email' />\n            <FormField\n              format='phoneUs'\n              label='Phone Number'\n              name='phoneNumber'\n            />\n          </Stack>\n        </div>\n        {(patchContact.error?.message || postContact.error?.message) && (\n          <Alert severity='error'>\n            <span\n              dangerouslySetInnerHTML={{\n                __html:\n                  patchContact.error?.message || postContact.error?.message\n              }}\n            />\n          </Alert>\n        )}\n        <FormSaveButton\n          disabled={patchContact.isError || postContact.isError}\n          fullWidth>\n          Continue to Account Setup\n        </FormSaveButton>\n      </Stack>\n    </StyledForm>\n  );\n};\n","import {\n  Tooltip as MuiTooltip,\n  TooltipProps as MuiTooltipProps\n} from '@mui/material';\n\nimport { FC, ReactNode } from 'react';\n\nexport type TooltipProps = Omit<MuiTooltipProps, 'children' | 'title'> & {\n  anchorEl?: Element;\n  children?: ReactNode;\n  title?: MuiTooltipProps['title'];\n  trigger: ReactNode;\n};\n\nexport const Tooltip: FC<TooltipProps> = ({\n  arrow = true,\n  children,\n  title,\n  trigger,\n  ...props\n}) => {\n  return (\n    <MuiTooltip\n      {...props}\n      arrow={arrow}\n      componentsProps={{\n        popper: {\n          ...(props.anchorEl ? { anchorEl: props.anchorEl } : {}),\n          // @ts-expect-error - problems with types\n          'data-testid': props['data-testid']\n        }\n      }}\n      describeChild\n      enterTouchDelay={0}\n      title={title || children}>\n      {trigger as any}\n    </MuiTooltip>\n  );\n};\n","import { CloseOutlined } from '@mui/icons-material';\nimport { AlertProps, Box, IconButton, Stack, styled } from '@mui/material';\n\nimport Cookies from 'js-cookie';\nimport { FC, ReactNode, useCallback, useEffect, useId } from 'react';\n\nexport type CookiesBannerProps = Pick<AlertProps, 'onClose'> & {\n  bannerName: string;\n  isOpen: boolean;\n  setIsOpen: (value: boolean) => void;\n  icon?: ReactNode;\n  text: ReactNode;\n  title: ReactNode;\n};\n\nconst StyledStack = styled(Stack)(({ theme }) => ({\n  backgroundColor: theme.palette.white.main,\n  borderRadius: theme.spacing(1),\n  bottom: theme.spacing(6),\n  boxShadow: theme.shadows[4],\n  maxWidth: theme.spacing(80),\n  padding: theme.spacing(4),\n  position: 'absolute',\n  right: theme.spacing(6),\n  [theme.breakpoints.down('sm')]: {\n    bottom: theme.spacing(4),\n    maxWidth: '92%',\n    right: 'auto'\n  }\n}));\n\nexport const CookiesBanner: FC<CookiesBannerProps> = props => {\n  const labelId = useId();\n\n  const onClose = useCallback(async () => {\n    Cookies.set(props.bannerName, JSON.stringify({ dismissed: true }), {\n      expires: 1,\n      path: '/'\n    });\n    props.setIsOpen(false);\n  }, []);\n\n  useEffect(() => {\n    const cookie = Cookies.get(props.bannerName);\n    const dismissed = cookie ? JSON.parse(cookie).dismissed : false;\n    if (!dismissed) {\n      props.setIsOpen(true);\n    }\n  }, []);\n\n  return props.isOpen ? (\n    <StyledStack\n      aria-labelledby={labelId}\n      data-component='cookiesBanner'\n      spacing={1}>\n      <Stack\n        alignItems='center'\n        direction='row'\n        id={labelId}\n        justifyContent='space-between'>\n        <Stack alignItems='center' direction='row' spacing={2}>\n          {props.icon ? props.icon : null}\n          <Box>{props.title}</Box>\n        </Stack>\n        <IconButton data-component='cookiesBannerCloseButton' onClick={onClose}>\n          <CloseOutlined fontSize='small' />\n        </IconButton>\n      </Stack>\n      {props.text}\n    </StyledStack>\n  ) : undefined;\n};\n\nCookiesBanner.displayName = 'CookiesBanner';\n","import { CookieOutlined } from '@mui/icons-material';\nimport { Alert, AlertTitle, Stack, styled } from '@mui/material';\nimport {\n  ParticipantRegistration,\n  usePostParticipantVerify\n} from '@sentinel/hooks';\nimport { useSearchParams } from '@vestwell-frontend/hooks';\nimport {\n  Button,\n  CookiesBanner,\n  Form,\n  FormField,\n  FormSaveButton,\n  Text,\n  Tooltip,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport Cookies from 'js-cookie';\nimport { FC, useCallback, useState } from 'react';\nimport * as yup from 'yup';\n\nimport { useAuth, useConfig } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst StyledFormSaveButton = styled(FormSaveButton)(({ theme }) => ({\n  marginTop: theme.spacing(6)\n}));\n\nconst StyledAlert = styled(Alert)(({ theme }) => ({\n  marginTop: theme.spacing(6)\n}));\n\nconst StyledIcon = styled(CookieOutlined)(({ theme }) => ({\n  backgroundColor: theme.palette.water.main,\n  borderRadius: theme.spacing(25),\n  padding: theme.spacing(1)\n}));\n\nconst schema = yup.object().shape({\n  birthDate: fields.BIRTH_DATE,\n  lastName: fields.LAST_NAME,\n  ssn: fields.SSN\n});\n\nexport const ParticipantVerificationPage: FC = () => {\n  const { recordKeeperId } = useSearchParams();\n\n  const ctx = useWizard<ParticipantRegistration>();\n\n  const auth = useAuth();\n  const config = useConfig();\n\n  const [isOpen, setIsOpen] = useState(false);\n\n  const verify = usePostParticipantVerify({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    data =>\n      verify.mutateAsync({\n        data: {\n          ...data,\n          ...(recordKeeperId ? { recordKeeperId: +recordKeeperId } : {})\n        }\n      }),\n    [recordKeeperId]\n  );\n\n  const onClick = useCallback(async () => {\n    Cookies.set('cookiesBanner', JSON.stringify({ dismissed: true }), {\n      expires: 1,\n      path: '/'\n    });\n    setIsOpen(false);\n    window.open('https://www.jpmorgan.com/privacy', '_blank');\n  }, []);\n\n  return (\n    <>\n      <StyledForm\n        initialValues={{\n          birthDate: '',\n          lastName: '',\n          ssn: ''\n        }}\n        onChange={verify.reset}\n        onSubmit={onSubmit}\n        validationSchema={schema}>\n        <div data-heap-redact-text='true'>\n          <Stack spacing={2}>\n            <FormField\n              format='ssn'\n              label='Social Security Number'\n              name='ssn'\n              placeholder='XXX-XX-XXXX'\n              revealable\n            />\n            <FormField\n              format='date'\n              label='Date of Birth'\n              name='birthDate'\n              placeholder='MM/DD/YYYY'\n            />\n            <FormField label='Last Name' name='lastName' />\n          </Stack>\n          {verify.error?.message && (\n            <StyledAlert severity='error'>\n              {verify.error?.meta?.title &&\n                typeof verify.error?.meta?.title === 'string' && (\n                  <AlertTitle>{verify.error.meta.title}</AlertTitle>\n                )}\n              <span\n                dangerouslySetInnerHTML={{\n                  __html: verify.error.message\n                }}\n              />\n            </StyledAlert>\n          )}\n          <StyledFormSaveButton disabled={!!verify.error} fullWidth>\n            Begin Registration\n          </StyledFormSaveButton>\n        </div>\n        <Stack direction='row' justifyContent='space-between' mt={10}>\n          <Button href='/' variant='inline'>\n            Return to Login\n          </Button>\n          <Tooltip\n            trigger={<Button variant='inline'>Advisor or Employer?</Button>}>\n            If you are a financial advisor, or trying to register an employer\n            account, you will need to contact {config.support?.sponsor?.email}.\n            We will provide you a special link to access information that way.\n          </Tooltip>\n        </Stack>\n      </StyledForm>\n      {config.subdomain === 'jpmorgan' && (\n        <CookiesBanner\n          bannerName='cookiesBanner'\n          icon={<StyledIcon color='info' fontSize='medium' />}\n          isOpen={isOpen}\n          setIsOpen={setIsOpen}\n          text={\n            <Text mb={0} variant='i1'>\n              We and our partners use cookies and other tools for advertising,\n              to help stop fraud, and for other purposes. By using this site,\n              you agree to how your information is used as outlined in our{' '}\n              <Button onClick={onClick} variant='inline'>\n                Privacy Policy\n              </Button>\n              .\n            </Text>\n          }\n          title={\n            <Text mb={0} variant='i2'>\n              Cookies\n            </Text>\n          }\n        />\n      )}\n    </>\n  );\n};\n","import { useMemo } from 'react';\nimport { useSearchParams as useSearchParamsReactRouterDom } from 'react-router-dom';\n\nexport const useSearchParams = () => {\n  const [searchParams] = useSearchParamsReactRouterDom();\n\n  return useMemo(\n    () => (searchParams ? Object.fromEntries([...searchParams]) : {}),\n    [searchParams]\n  );\n};\n","import { Alert, Stack, styled } from '@mui/material';\nimport {\n  SponsorRegistration,\n  usePostSponsorExemptionConfirmation\n} from '@sentinel/hooks';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  Text,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback, useEffect, useState } from 'react';\nimport { useToggle } from 'react-use';\nimport * as yup from 'yup';\n\nimport { useAuth } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst schema = yup.object().shape({\n  email: fields.EMAIL\n});\n\nexport const SponsorExemptionConfirmationPage: FC = () => {\n  const ctx = useWizard<SponsorRegistration>();\n\n  const [isOpen, toggleIsOpen] = useToggle(false);\n  const [state] = useState(ctx.state);\n\n  const confirm = usePostSponsorExemptionConfirmation();\n\n  const auth = useAuth();\n\n  const onSubmit = useCallback(\n    async data => await confirm.mutateAsync({ data: { ...data, ...state } }),\n    [state]\n  );\n\n  useEffect(() => {\n    auth.setToken('');\n  }, []);\n\n  return (\n    <>\n      <Text align='center' variant='g2'>\n        Exemption Code:{` ${ctx.state.confirmationCode}`}\n      </Text>\n      <Button onClick={toggleIsOpen} variant='inline'>\n        Email me the exemption code\n      </Button>\n      {isOpen && (\n        <StyledForm\n          enableReinitialize={false}\n          initialValues={{\n            email: ''\n          }}\n          onChange={confirm.reset}\n          onSubmit={onSubmit}\n          validateOnMount\n          validationSchema={schema}>\n          <Stack mt={10} spacing={6}>\n            <FormField\n              disabled={confirm.isSuccess}\n              format='email'\n              label='Email'\n              name='email'\n            />\n            {confirm.error?.message && (\n              <Alert severity='error'>\n                <span\n                  dangerouslySetInnerHTML={{ __html: confirm.error.message }}\n                />\n              </Alert>\n            )}\n            {confirm.isSuccess && (\n              <Alert severity='success'>\n                The exemption code has been sent to the provided email.\n              </Alert>\n            )}\n            <FormSaveButton\n              disabled={confirm.isSuccess || !!confirm.error}\n              fullWidth>\n              {confirm.isSuccess\n                ? 'Email Successfully Sent'\n                : 'Send Exemption Code'}\n            </FormSaveButton>\n          </Stack>\n        </StyledForm>\n      )}\n    </>\n  );\n};\n","import { InfoOutlined } from '@mui/icons-material';\nimport {\n  FormControl,\n  FormControlLabel,\n  FormControlLabelProps,\n  FormControlProps,\n  FormGroup,\n  FormHelperText,\n  FormLabel,\n  Checkbox as MuiCheckbox,\n  CheckboxProps as MuiCheckboxProps,\n  Stack,\n  styled\n} from '@mui/material';\n\nimport { omit } from 'lodash';\nimport {\n  ReactNode,\n  Ref,\n  SyntheticEvent,\n  useCallback,\n  useId,\n  useMemo\n} from 'react';\n\ntype SingleValue = string | number | boolean;\n\ntype MultipleValue = {\n  label: string;\n  value: SingleValue;\n}[];\n\nexport type CheckboxProps<T extends boolean> = Omit<\n  MuiCheckboxProps,\n  'onChange' | 'value'\n> & {\n  error?: FormControlProps['error'];\n  errorMessage?: ReactNode;\n  innerRef?: Ref<HTMLButtonElement>;\n  label?: FormControlLabelProps['label'];\n  hideError?: boolean;\n  formField?: boolean;\n  fullWidth?: FormControlProps['fullWidth'];\n} & (T extends true\n    ? {\n        multiple: T;\n        onChange?: (value: MultipleValue, e: SyntheticEvent) => void;\n        value?: MultipleValue;\n        options: MultipleValue;\n        row?: boolean;\n      }\n    : {\n        multiple?: T;\n        onChange?: (value: SingleValue, e: SyntheticEvent) => void;\n        value?: SingleValue;\n      });\n\nconst StyledFormControl = styled(FormControl)({\n  display: 'flex'\n});\n\nconst StyledFormHelperText = styled(FormHelperText)({\n  marginLeft: 0,\n  marginRight: 0\n});\n\nexport const Checkbox = <T extends boolean>({\n  label,\n  checked = false,\n  error,\n  errorMessage,\n  innerRef,\n  hideError,\n  formField,\n  fullWidth,\n  onChange,\n  size = 'small',\n  value = '',\n  ...props\n}: CheckboxProps<T>) => {\n  const checkboxLegendId = useId();\n  const errorId = useId();\n\n  const onValueChange = useCallback(\n    e => {\n      if (onChange) {\n        /*@ts-expect-error: issue in ts*/\n        onChange(value, e);\n      }\n    },\n    [onChange, value]\n  );\n\n  const isChecked = useMemo(() => {\n    if (!props.multiple) return;\n\n    /*@ts-expect-error: issue in ts*/\n    return props.options?.map(option =>\n      Array.isArray(value)\n        ? value.map(v => v.value).includes(option.value)\n        : false\n    );\n    /*@ts-expect-error: issue in ts*/\n  }, [props.multiple, value, props.options]);\n\n  return (\n    <StyledFormControl\n      data-component='checkbox'\n      data-testid={props.name}\n      error={error}\n      fullWidth={fullWidth}>\n      {props.multiple ? (\n        <>\n          {!!label && (\n            <FormLabel\n              component='legend'\n              data-component='checkboxLegend'\n              data-testid={props.name}\n              id={checkboxLegendId}>\n              {label}\n            </FormLabel>\n          )}\n          <FormGroup\n            aria-describedby={errorMessage ? errorId : undefined}\n            aria-invalid={!!props.required}\n            aria-labelledby={checkboxLegendId}\n            aria-required={!!error}\n            data-component='checkboxGroup'\n            data-testid={props.name}\n            //@ts-expect-error: issue in ts with complex types\n            row={props.row}>\n            {/*@ts-expect-error: issue in ts*/}\n            {props.options?.map((option, i) => (\n              <FormControlLabel\n                control={\n                  <MuiCheckbox\n                    checked={isChecked[i]}\n                    inputProps={{\n                      'aria-checked': isChecked[i],\n                      'data-component': 'checkboxInput',\n                      'data-optionindex': i,\n                      'data-testid': option.value\n                    }}\n                    name={option.label}\n                    ref={innerRef}\n                    size={size}\n                    value={option.value}\n                    {...omit(props, 'name', 'row', 'value')}\n                    onChange={onValueChange}\n                  />\n                }\n                data-component='checkboxLabel'\n                data-testid={option.value}\n                disableTypography\n                key={`${option.label}-${option.value}`}\n                label={option.label}\n                value='end'\n              />\n            ))}\n          </FormGroup>\n        </>\n      ) : (\n        <FormControlLabel\n          control={\n            <MuiCheckbox\n              checked={!!checked}\n              inputProps={{\n                'aria-checked': !!checked,\n                'aria-describedby': errorMessage ? errorId : undefined,\n                'aria-invalid': !!error,\n                'aria-required': !!props.required,\n                'data-component': 'checkboxInput',\n                'data-testid': props.name\n              }}\n              size={size}\n              value={value}\n              {...props}\n              onChange={onValueChange}\n              ref={innerRef}\n            />\n          }\n          data-component='checkboxLabel'\n          data-testid={props.name}\n          disableTypography\n          label={label}\n        />\n      )}\n      {formField && (\n        <StyledFormHelperText\n          aria-atomic='true'\n          data-component='checkboxError'\n          data-testid={props.name}\n          id={errorId}\n          role='alert'>\n          {!hideError && errorMessage ? (\n            <Stack alignItems='center' direction='row' gap={1}>\n              <InfoOutlined color='error' fontSize='small' />\n              {!!label && <span className='sr-only'>Error for {label}:</span>}\n              {errorMessage}\n            </Stack>\n          ) : (\n            ' '\n          )}\n        </StyledFormHelperText>\n      )}\n    </StyledFormControl>\n  );\n};\n\nCheckbox.displayName = 'Checkbox';\n","import { useField } from 'formik';\nimport { isMatch, reject, uniq } from 'lodash';\nimport { FC, useCallback, useContext } from 'react';\n\nimport { Checkbox, CheckboxProps } from '../Checkbox';\nimport { IsRequiredFieldContext } from './Form';\n\nexport const FormCheckbox: FC<CheckboxProps<true | false>> = props => {\n  const isRequired = useContext(IsRequiredFieldContext)[props.name] ?? false;\n\n  const [field, meta, helpers] = useField(props.name);\n\n  const onBlur = useCallback(\n    e => {\n      helpers.setTouched(true);\n\n      if (props.onBlur) {\n        props.onBlur(e);\n      }\n    },\n    [helpers.setTouched, props.onBlur]\n  );\n\n  const onChange = useCallback(\n    (value, e) => {\n      if (props.multiple === true) {\n        const newValue = e.target.checked\n          ? uniq([\n              ...field.value,\n              props.options[+e.target.getAttribute('data-optionindex')]\n            ])\n          : reject(\n              field.value,\n              isMatch.bind(\n                null,\n                props.options[+e.target.getAttribute('data-optionindex')]\n              )\n            );\n        helpers.setValue(newValue);\n        if (props.onChange) {\n          props.onChange(newValue, e);\n        }\n      } else {\n        helpers.setValue(!value);\n        if (props.onChange) {\n          props.onChange(!value, e);\n        }\n      }\n    },\n    [helpers.setValue, props.onChange, props.multiple, field.value]\n  );\n\n  return (\n    <Checkbox\n      {...props}\n      checked={field.value}\n      error={!!meta.error && !!meta.touched}\n      errorMessage={meta.touched ? meta.error : undefined}\n      formField\n      id={props.id || props.name}\n      onBlur={onBlur}\n      onChange={onChange}\n      required={isRequired}\n      value={field.value}\n    />\n  );\n};\n\nFormCheckbox.displayName = 'FormCheckbox';\n","import { OpenInNewSharp } from '@mui/icons-material';\nimport { Alert, Stack, styled } from '@mui/material';\nimport {\n  SponsorRegistration,\n  usePostSponsorExemptionReason\n} from '@sentinel/hooks';\nimport { validateSdat } from '@vestwell-frontend/helpers';\nimport {\n  Button,\n  Checkbox,\n  Form,\n  FormCheckbox,\n  FormField,\n  FormRadioGroup,\n  FormSaveButton,\n  RadioButton,\n  Text,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback, useMemo } from 'react';\nimport { useToggle } from 'react-use';\nimport * as yup from 'yup';\n\nimport { useAuth, useConfig } from '../contexts';\nimport { fields } from '../schemas';\n\nconst RadioButtonsContainer = styled('div')(({ theme }) => ({\n  display: 'flex',\n  flexDirection: 'column',\n  gap: theme.spacing(2)\n}));\n\nconst StyledEnrollButton = styled(Button)(() => ({\n  alignSelf: 'center'\n}));\n\nconst StyledDiv = styled('div')(({ theme }) => ({\n  alignItems: 'flex-start',\n  alignSelf: 'stretch',\n  border: `1px solid ${theme.palette.grey600.main}`,\n  borderRadius: theme.spacing(1.75),\n  display: 'flex',\n  flexDirection: 'column',\n  gap: theme.spacing(3),\n  marginBottom: theme.spacing(6),\n  padding: theme.spacing(3, 4)\n}));\n\nexport const SponsorExemptionReasonPage: FC = () => {\n  const ctx = useWizard<SponsorRegistration>();\n\n  const auth = useAuth();\n  const config = useConfig();\n\n  const [isChecked, toggleIsChecked] = useToggle(false);\n\n  const exempt = usePostSponsorExemptionReason({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState(data);\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data => await exempt.mutateAsync({ data }),\n    []\n  );\n\n  const onRegister = useCallback(\n    () =>\n      ctx.setState({\n        program: 'register'\n      }),\n    []\n  );\n\n  const schema = useMemo(\n    () =>\n      yup.object().shape({\n        'confirm-info': yup\n          .boolean()\n          .required('Confirmation Required')\n          .isTrue('Confirmation Required'),\n        exemptionReason: fields.EXEMPTION_REASON,\n        name: fields.NAME,\n        sdat: config.registration?.hasSDAT\n          ? validateSdat('Must be a valid SDAT').required('Required')\n          : yup.string().notRequired()\n      }),\n    [config.registration?.hasSDAT]\n  );\n\n  return (\n    <Form\n      initialValues={{\n        exemptionReason: '',\n        name: '',\n        sdat: ctx.state?.alternateEmployerId || ''\n      }}\n      onSubmit={onSubmit}\n      validationSchema={schema}>\n      {config.subdomain === 'marylandsaves' && (\n        <StyledDiv>\n          <Checkbox\n            checked={isChecked}\n            label={\n              <Stack spacing={1}>\n                <Text variant='g2'>I offer a qualified retirement plan</Text>\n                <Text variant='i1'>\n                  If you offer a qualified retirement plan, you can claim your\n                  $300 SDAT waiver by completing the State's Form\n                </Text>\n              </Stack>\n            }\n            name='offerRetirementPlan'\n            onChange={toggleIsChecked}\n          />\n        </StyledDiv>\n      )}\n      {config.subdomain !== 'marylandsaves' ||\n      (config.subdomain === 'marylandsaves' && !isChecked) ? (\n        <>\n          <FormRadioGroup\n            label='Exemption Reason'\n            name='exemptionReason'\n            variant='standard'>\n            <RadioButtonsContainer>\n              {config.registration?.exemptionReasons?.map(item => (\n                <RadioButton\n                  key={item.key}\n                  label={item.value}\n                  value={item.key}\n                />\n              ))}\n            </RadioButtonsContainer>\n          </FormRadioGroup>\n          <Stack\n            data-component='container'\n            data-heap-redact-text='true'\n            data-testid='accept'\n            gap={2}\n            mb={2}>\n            {!!config.registration?.hasSDAT && (\n              <FormField\n                details='This is your State Department of Assessments and Taxation number.'\n                label='SDAT Number'\n                maxLength={9}\n                name='sdat'\n                placeholder='XXXXXXXXX'\n              />\n            )}\n            <FormField label='Enter your full name:' name='name' />\n            <Text color='grey50' mb={4} variant='g1'>\n              Date: {new Date().toLocaleDateString('en-US')}\n            </Text>\n            <FormCheckbox\n              label='By checking this box, you certify the information above is accurate'\n              name='confirm-info'\n            />\n          </Stack>\n          <Stack spacing={6}>\n            {exempt.error?.message && (\n              <Alert severity='error'>\n                <span\n                  dangerouslySetInnerHTML={{ __html: exempt.error.message }}\n                />\n              </Alert>\n            )}\n            <FormSaveButton fullWidth loading={exempt.isLoading}>\n              Confirm Exemption\n            </FormSaveButton>\n            <StyledEnrollButton fullWidth onClick={onRegister} variant='inline'>\n              Are you looking to enroll in the program?\n            </StyledEnrollButton>\n          </Stack>\n        </>\n      ) : (\n        <Stack spacing={6}>\n          <Button\n            endIcon={<OpenInNewSharp />}\n            href='https://www.marylandsaves.org/claim-fee-waiver/'\n            target='_blank'>\n            Claim Fee Waiver\n          </Button>\n          <Text align='center' variant='i1'>\n            Upon selecting the Fee Waiver option, proceed there to complete the\n            Fee Waiver Form. No further action is required on this page.\n          </Text>\n        </Stack>\n      )}\n    </Form>\n  );\n};\n","import { styled } from '@mui/material';\nimport { SponsorRegistration } from '@sentinel/hooks';\nimport {\n  Form,\n  FormRadioGroup,\n  FormSaveButton,\n  RadioButton,\n  Text,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nconst schema = yup.object().shape({\n  program: yup.string().required('Required')\n});\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst StyledFormSaveButton = styled(FormSaveButton)(({ theme }) => ({\n  marginTop: theme.spacing(6)\n}));\n\nconst StyledRadioButton = styled(RadioButton)(({ theme }) => ({\n  marginBottom: theme.spacing(2),\n  marginLeft: theme.spacing(0),\n  marginTop: theme.spacing(2)\n}));\n\nexport const SponsorProgramElectionPage: FC = () => {\n  const ctx = useWizard<SponsorRegistration>();\n\n  const onSubmit = useCallback(\n    async (data: { program: 'register' | 'exempt' }) => {\n      ctx.setState(data);\n    },\n    []\n  );\n\n  return (\n    <StyledForm onSubmit={onSubmit} validationSchema={schema}>\n      <FormRadioGroup\n        fullWidth\n        hideLabel\n        label='Select a program'\n        name='program'\n        variant='card'>\n        <StyledRadioButton\n          label={\n            <div>\n              <Text color='grey50' mb={0} variant='g2'>\n                Register my business\n              </Text>\n              <Text color='grey200' mb={0} variant='i1'>\n                Start now to help your employees save and plan for their future.\n              </Text>\n            </div>\n          }\n          value='register'\n        />\n        <StyledRadioButton\n          label={\n            <div>\n              <Text color='grey50' mb={0} variant='g2'>\n                Certify my exemption\n              </Text>\n              <Text color='grey200' mb={0} variant='i1'>\n                Exempt from the program only if you meet the criteria for\n                exemption.\n              </Text>\n            </div>\n          }\n          value='exempt'\n        />\n      </FormRadioGroup>\n      <StyledFormSaveButton fullWidth>Continue</StyledFormSaveButton>\n    </StyledForm>\n  );\n};\n","import {\n  Alert,\n  AlertTitle,\n  LinearProgress,\n  Stack,\n  styled\n} from '@mui/material';\nimport { SponsorRegistration, usePostSponsorVerify } from '@sentinel/hooks';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  useWizard\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport { useMount, useSearchParam } from 'react-use';\nimport * as yup from 'yup';\n\nimport { Header } from '../components';\nimport { useAuth, useConfig } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledLinearProgress = styled(LinearProgress)(() => ({\n  width: '100%'\n}));\n\nconst StyledFormFieldContainer = styled('div')(({ theme }) => ({\n  '& > .MuiFormControl-root': {\n    marginBottom: theme.spacing(2)\n  }\n}));\n\nconst schema = yup.object().shape({\n  inviteCode: fields.INVITE_CODE\n});\n\nconst einSchema = yup.object().shape({\n  ein: fields.EIN,\n  inviteCode: fields.INVITE_CODE\n});\n\nexport const SponsorVerificationPage: FC = () => {\n  const inviteCode = useSearchParam('code') || '';\n\n  const ctx = useWizard<SponsorRegistration>();\n\n  const auth = useAuth();\n  const config = useConfig();\n\n  const verify = usePostSponsorVerify({\n    mutation: {\n      onSuccess: data => {\n        auth.setToken(data.token);\n        ctx.setState({\n          ...data,\n          ...(inviteCode ? { program: 'register' } : {})\n        });\n      }\n    }\n  });\n\n  const onSubmit = useCallback(\n    async data => await verify.mutateAsync({ data }),\n    []\n  );\n\n  useMount(async () => {\n    if (inviteCode) {\n      try {\n        await verify.mutateAsync({\n          data: { bypassEin: true, inviteCode }\n        });\n      } catch {\n        //\n      }\n    }\n  });\n\n  const validationSchema =\n    !inviteCode && !!config.registration?.hasEIN ? einSchema : schema;\n\n  const title = config.registration?.isState\n    ? 'Employer Verification'\n    : 'Employer Registration';\n\n  return (verify.isLoading || verify.isIdle) && !!inviteCode ? (\n    <StyledLinearProgress />\n  ) : (\n    <>\n      <Header\n        caption={\n          config.registration?.isState\n            ? 'Verify your identity to begin'\n            : 'Set up your account to access the employer portal'\n        }\n        title={title}\n      />\n      <Form\n        initialValues={{\n          ein: '',\n          inviteCode\n        }}\n        onChange={verify.reset}\n        onSubmit={onSubmit}\n        preventOnChangeOnMount\n        validationSchema={validationSchema}>\n        <Stack spacing={6}>\n          <StyledFormFieldContainer data-heap-redact-text='true'>\n            {(!verify.error || (!inviteCode && verify.error)) &&\n              !!config.registration?.hasEIN && (\n                <FormField\n                  details='This is the tax ID for your company.'\n                  format='ein'\n                  label='EIN'\n                  name='ein'\n                  placeholder='XX-XXXXXXX'\n                />\n              )}\n            {(!verify.error || (!inviteCode && verify.error)) && (\n              <FormField\n                details='Your access code was sent to you by postal service or email.'\n                label='Access Code'\n                name='inviteCode'\n              />\n            )}\n          </StyledFormFieldContainer>\n          {verify.error?.message && (\n            <Alert severity='error'>\n              {verify.error?.meta?.title &&\n                typeof verify.error?.meta?.title === 'string' && (\n                  <AlertTitle>{verify.error.meta.title}</AlertTitle>\n                )}\n              <span\n                dangerouslySetInnerHTML={{\n                  __html: verify.error.message\n                }}\n              />\n            </Alert>\n          )}\n          {(!verify.error || (!inviteCode && verify.error)) && (\n            <FormSaveButton\n              disabled={!!verify.error}\n              fullWidth\n              loading={verify.isLoading}>\n              Begin\n            </FormSaveButton>\n          )}\n          {config.registration?.isState && (\n            <Button\n              fullWidth\n              href='/register/employer/access-code-request'\n              variant='text'>\n              Don’t have your Access Code?\n            </Button>\n          )}\n        </Stack>\n      </Form>\n    </>\n  );\n};\n","import { Alert, AlertTitle, Box, Stack, styled } from '@mui/material';\nimport type { SponsorAccessCodeRequestBody } from '@sentinel/hooks';\nimport { usePostSponsorAccessCodeRequest } from '@sentinel/hooks';\nimport {\n  Button,\n  Form,\n  FormField,\n  FormSaveButton,\n  Link\n} from '@vestwell-frontend/ui';\n\nimport { FC, useCallback } from 'react';\nimport * as yup from 'yup';\n\nimport { useConfig } from '../contexts';\nimport { fields } from '../schemas';\n\nconst StyledForm = styled(Form)(() => ({\n  width: '100%'\n}));\n\nconst validationSchema = yup.object().shape({\n  ein: fields.EIN\n});\n\nexport const SponsorSendAccessCodePage: FC = () => {\n  const config = useConfig();\n\n  const request = usePostSponsorAccessCodeRequest();\n\n  const onSubmit = useCallback(\n    async (data: SponsorAccessCodeRequestBody) =>\n      await request.mutateAsync({\n        data\n      }),\n    []\n  );\n\n  return (\n    <StyledForm\n      initialValues={{\n        ein: ''\n      }}\n      onChange={request.reset}\n      onSubmit={onSubmit}\n      validationSchema={validationSchema}>\n      <Box mb={2}>\n        <FormField\n          details='This is the tax ID for your company.'\n          format='ein'\n          label='EIN'\n          name='ein'\n          placeholder='XX-XXXXXXX'\n        />\n      </Box>\n      <Stack spacing={6}>\n        {request.isError && (\n          <Alert severity='error'>\n            We do not have an email address on file for the provided EIN or the\n            Access Code has been used. Please contact{' '}\n            <Link\n              data-testid='phone'\n              to={`tel:${config.support?.sponsor?.phone}`}\n              type='phone'\n              variant='g2'>\n              {config.support?.sponsor?.phone}\n            </Link>\n            .\n          </Alert>\n        )}\n        {request.isSuccess && (\n          <Alert severity='success'>\n            <AlertTitle>\n              Your access code has been sent to {request.data?.email}.\n            </AlertTitle>\n            If you did not receive the email or believe the email address to be\n            incorrect, please contact{' '}\n            <Link\n              data-testid='phone'\n              to={`tel:${config.support?.sponsor?.phone}`}\n              type='phone'\n              variant='g2'>\n              {config.support?.sponsor?.phone}\n            </Link>\n            .\n          </Alert>\n        )}\n        <FormSaveButton\n          disabled={request.isError || request.isSuccess}\n          fullWidth\n          loading={request.isLoading}>\n          Get Access Code\n        </FormSaveButton>\n        <Button fullWidth href='/register/employer' variant='text'>\n          Go Back\n        </Button>\n      </Stack>\n    </StyledForm>\n  );\n};\n","import { styled, useMediaQuery } from '@mui/material';\nimport { Button } from '@vestwell-frontend/ui';\n\nimport { FC, SyntheticEvent } from 'react';\n\nimport { ErrorProps } from '../types';\n\nexport type UnsupportedRecordkeeperErrorProps = {\n  error: ErrorProps & {\n    meta: {\n      unsupportedFirms: {\n        link: string;\n        logo: {\n          desktop: string;\n          mobile: string;\n        };\n        name: string;\n      }[];\n    };\n  };\n  onClear: (e: SyntheticEvent) => void;\n};\n\nconst CompanyWrapper = styled('div', {\n  name: 'CompanyWrapper'\n})(({ theme }) => ({\n  alignItems: 'center',\n  display: 'flex',\n  minWidth: theme.spacing(72),\n  [theme.breakpoints.down('sm')]: {\n    flexDirection: 'column'\n  },\n  [theme.breakpoints.up('sm')]: {\n    justifyContent: 'space-between'\n  }\n}));\n\nconst StyledVisitButton = styled(Button)(({ theme }) => ({\n  marginLeft: theme.spacing(4),\n  marginRight: theme.spacing(4)\n}));\n\nconst StyledGoBackButton = styled(Button)(({ theme }) => ({\n  marginTop: theme.spacing(8)\n}));\n\nexport const UnsupportedRecordkeeperErrorPage: FC<\n  UnsupportedRecordkeeperErrorProps\n> = props => {\n  const isMobile = useMediaQuery(theme => theme.breakpoints.down('sm'));\n\n  return (\n    <>\n      {props.error.meta.unsupportedFirms.map((company, i) => (\n        <CompanyWrapper\n          data-component='wrapper'\n          data-testid={`company${company?.name || i}`}\n          key={company?.name}>\n          <img\n            alt={company?.name}\n            src={isMobile ? company?.logo?.mobile : company?.logo?.desktop}\n            style={{ width: 256 }}\n          />\n          <StyledVisitButton\n            href={company?.link}\n            target='_blank'\n            variant='outlined'>\n            Visit\n          </StyledVisitButton>\n        </CompanyWrapper>\n      ))}\n      <StyledGoBackButton fullWidth onClick={props.onClear} variant='inline'>\n        Go Back\n      </StyledGoBackButton>\n    </>\n  );\n};\n","import { Link, Text } from '@vestwell-frontend/ui';\n\nimport { FC } from 'react';\nimport { useLocation } from 'react-use';\n\nimport { CancelRegistrationButton } from '../components';\nimport { useConfig } from '../contexts';\n\nexport const UserLockoutErrorPage: FC = () => {\n  const location = useLocation();\n\n  const config = useConfig();\n\n  const type = location.pathname.includes('advisor')\n    ? 'advisor'\n    : location.pathname.includes('employer')\n      ? 'sponsor'\n      : 'participant';\n\n  return (\n    <>\n      <Text align='center' color='grey50' mt={3}>\n        For security purposes, we have temporarily disabled the verification\n        process.\n      </Text>\n      <Text align='center' color='grey50' mb={31} variant='g2'>\n        To unlock verification please reach out to{' '}\n        {config.registration?.isState ? (\n          <Link\n            data-testid='phone'\n            to={`tel:${config.support?.[type]?.phone}`}\n            type='phone'\n            variant='g2'>\n            {config.support?.[type]?.phone}\n          </Link>\n        ) : (\n          <Link\n            data-testid='email'\n            to={`mailto:${config.support?.[type]?.email}`}\n            variant='g2'>\n            {config.support?.[type]?.email}\n          </Link>\n        )}\n      </Text>\n      <CancelRegistrationButton\n        entity={config.registration?.isState ? 'sponsor' : 'participant'}>\n        Back\n      </CancelRegistrationButton>\n    </>\n  );\n};\n","import { FC } from 'react';\n\nimport { useAuth, useConfig } from '../contexts';\nimport {\n  UnsupportedRecordkeeperErrorPage,\n  UserLockoutErrorPage\n} from '../pages';\nimport { BackgroundError } from './BackgroundError';\n\nexport const ErrorCodeHandler: FC<{ error: any; clearError: () => void }> = ({\n  error,\n  clearError\n}) => {\n  const config = useConfig();\n  const auth = useAuth();\n\n  if (error.code === 'REGISTRATION_LOCKOUT') {\n    return (\n      <BackgroundError\n        auth={auth}\n        caption='Multiple Invalid Attempts'\n        config={config}\n        data-testid='lockedOut'\n        title='Verification Locked'>\n        <UserLockoutErrorPage />\n      </BackgroundError>\n    );\n  }\n\n  if (error.code === 'UNSUPPORTED_RECORDKEEPER') {\n    return (\n      <BackgroundError\n        auth={auth}\n        caption='We do not currently support saver registrations for state programs. Please visit your state below to register.'\n        config={config}\n        data-testid='unsupportedRecordKeeper'\n        title='State Saver Registration'>\n        <UnsupportedRecordkeeperErrorPage error={error} onClear={clearError} />\n      </BackgroundError>\n    );\n  }\n\n  return null;\n};\n","import { AdvisorRegistration } from '@sentinel/hooks';\nimport { WizardStep } from '@vestwell-frontend/ui';\n\n// title should be string, because we use it in useDocumentTitle\nexport const advisorRegistration = {\n  initialState: {\n    companyName: '',\n    email: '',\n    matched: false,\n    userId: undefined\n  },\n  steps: [\n    {\n      title: 'Advisor Registration',\n      url: '/register/advisor'\n    },\n    {\n      caption: 'We will never sell your information to anyone or spam you',\n      title: 'Register',\n      url: '/register/advisor/contact',\n      when: state => state.matched\n    },\n    {\n      title: 'Account Setup',\n      url: '/register/advisor/account-setup',\n      when: state => !!state.email\n    }\n  ] as WizardStep<AdvisorRegistration>[]\n};\n","import { SponsorRegistration } from '@sentinel/hooks';\nimport { WizardStep } from '@vestwell-frontend/ui';\n\n// title should be string, because we use it in useDocumentTitle\nexport const accessCode = {\n  initialState: {},\n  steps: [\n    {\n      caption: 'Enter your EIN to receive the access code via email',\n      title: 'Send Access Code',\n      url: '/register/employer/access-code-request'\n    }\n  ] as WizardStep<SponsorRegistration>[]\n};\n","import { ParticipantRegistration } from '@sentinel/hooks';\nimport { WizardStep } from '@vestwell-frontend/ui';\n\n// title should be string, because we use it in useDocumentTitle\nexport const participantRegistration = {\n  initialState: {\n    addressVerified: false,\n    companyVerified: false,\n    email: '',\n    matched: false,\n    userId: undefined\n  },\n  steps: [\n    {\n      caption:\n        'Verify your identity to register and begin contributing towards your savings goals.',\n      title: 'Saver Registration',\n      url: '/register'\n    },\n    {\n      caption: 'Please select your company out of the list below',\n      title: 'Company Verification',\n      url: '/register/company',\n      when: state => state.matched\n    },\n    {\n      caption: 'Please select the address you recognize from your life',\n      title: 'Personal Verification',\n      url: '/register/address',\n      when: state => state.companyVerified\n    },\n    {\n      caption: 'We will never sell your information to anyone or spam you',\n      title: 'Contact Information',\n      url: '/register/contact',\n      when: state => state.addressVerified\n    },\n    {\n      caption: 'To gain access to your saver portal',\n      title: 'Account Setup',\n      url: '/register/account-setup',\n      when: state => !!state.email\n    }\n  ] as WizardStep<ParticipantRegistration>[]\n};\n","import { SponsorRegistration } from '@sentinel/hooks';\nimport { WizardStep } from '@vestwell-frontend/ui';\n\n// title should be string, because we use it in useDocumentTitle\nexport const sponsorRegistration = {\n  initialState: {\n    companyName: '',\n    email: '',\n    isState: false,\n    matched: false,\n    program: '',\n    reason: false,\n    userId: undefined\n  },\n  steps: [\n    {\n      url: '/register/employer'\n    },\n    {\n      title: 'Program Election',\n      url: '/register/employer/program-election',\n      when: state => state.matched && state.isState\n    },\n    {\n      caption: 'We will never sell your information to anyone or spam you',\n      title: 'Register',\n      url: '/register/employer/contact',\n      when: state =>\n        (state.matched && state.program === 'register') ||\n        (state.matched && !state.isState)\n    },\n    {\n      caption:\n        'Select your reason for exemption. Note: This does not include payroll deduction IRAs',\n      title: 'Program Exemption',\n      url: '/register/employer/exempt/reason',\n      when: state => state.matched && state.program === 'exempt'\n    },\n    {\n      caption: 'Please retain the exemption code below for your records.',\n      title: 'Program Exemption Successful',\n      url: '/register/employer/exempt/confirmation',\n      when: state => state.reason\n    },\n    {\n      title: 'Account Setup',\n      url: '/register/employer/account-setup',\n      when: state => !!state.email\n    }\n  ] as WizardStep<SponsorRegistration>[]\n};\n","import { CssBaseline, GlobalStyles } from '@mui/material';\nimport { PageNotFound } from '@vestwell-frontend/ui';\n\nimport { Navigate, Route, Routes, useLocation } from 'react-router-dom';\n\nimport { ErrorBoundary, ErrorCodeHandler, Root } from './components';\nimport * as config from './config';\nimport { AuthProvider, ConfigProvider, RegistrationProvider } from './contexts';\nimport {\n  AccountSetupPage,\n  AdvisorVerificationPage,\n  ContactPage,\n  ParticipantAddressVerifyPage,\n  ParticipantCompanyVerifyPage,\n  ParticipantContactPage,\n  ParticipantVerificationPage,\n  SponsorExemptionConfirmationPage,\n  SponsorExemptionReasonPage,\n  SponsorProgramElectionPage,\n  SponsorSendAccessCodePage,\n  SponsorVerificationPage\n} from './pages';\nimport { State } from './types';\n\nexport function Router() {\n  const location = useLocation();\n\n  const entity = location.pathname.includes('advisor')\n    ? 'advisorRegistration'\n    : location.pathname.includes('access-code-request')\n      ? 'accessCode'\n      : location.pathname.includes('employer') ||\n          location.pathname.includes('exempt')\n        ? 'sponsorRegistration'\n        : 'participantRegistration';\n\n  return (\n    <>\n      <CssBaseline />\n      <GlobalStyles\n        styles={theme => ({\n          body: {\n            backgroundColor: `${theme.palette.grey700.main} !important`\n          },\n          'div#root': {\n            justifyContent: 'center',\n            overflowY: 'auto'\n          }\n        })}\n      />\n      <ErrorBoundary\n        renderErrorCode={(error, clearError) => (\n          <ConfigProvider>\n            <AuthProvider>\n              <ErrorCodeHandler clearError={clearError} error={error} />\n            </AuthProvider>\n          </ConfigProvider>\n        )}>\n        <ConfigProvider>\n          <AuthProvider>\n            {/* @ts-expect-error */}\n            <RegistrationProvider<State>\n              entity={entity}\n              initialState={config[entity]?.initialState}\n              steps={config[entity]?.steps}>\n              <Routes>\n                <Route element={<Root />} path='/register'>\n                  <Route\n                    element={<AdvisorVerificationPage />}\n                    path='/register/advisor'\n                  />\n                  <Route\n                    element={<ContactPage entity='advisor' />}\n                    path='/register/advisor/contact'\n                  />\n                  <Route\n                    element={\n                      <AccountSetupPage\n                        entity='advisor'\n                        finishUrl='/auth/api/register/advisor/finish'\n                      />\n                    }\n                    path='/register/advisor/account-setup'\n                  />\n                  <Route\n                    element={<SponsorVerificationPage />}\n                    path='/register/employer'\n                  />\n                  <Route\n                    element={<SponsorSendAccessCodePage />}\n                    path='/register/employer/access-code-request'\n                  />\n                  <Route\n                    element={<SponsorProgramElectionPage />}\n                    path='/register/employer/program-election'\n                  />\n                  <Route\n                    element={<ContactPage entity='sponsor' />}\n                    path='/register/employer/contact'\n                  />\n                  <Route\n                    element={\n                      <AccountSetupPage\n                        entity='sponsor'\n                        finishUrl='/auth/api/register/employer/finish'\n                      />\n                    }\n                    path='/register/employer/account-setup'\n                  />\n                  <Route\n                    element={<Navigate replace to='/register/employer' />}\n                    path='/register/exempt'\n                  />\n                  <Route\n                    element={<SponsorExemptionReasonPage />}\n                    path='/register/employer/exempt/reason'\n                  />\n                  <Route\n                    element={<SponsorExemptionConfirmationPage />}\n                    path='/register/employer/exempt/confirmation'\n                  />\n                  <Route\n                    element={<ParticipantVerificationPage />}\n                    path='/register'\n                  />\n                  <Route\n                    element={<ParticipantCompanyVerifyPage />}\n                    path='/register/company'\n                  />\n                  <Route\n                    element={<ParticipantAddressVerifyPage />}\n                    path='/register/address'\n                  />\n                  <Route\n                    element={<ParticipantContactPage />}\n                    path='/register/contact'\n                  />\n                  <Route\n                    element={\n                      <AccountSetupPage\n                        entity='participant'\n                        finishUrl='/auth/api/register/finish'\n                      />\n                    }\n                    path='/register/account-setup'\n                  />\n                </Route>\n                <Route\n                  element={\n                    <PageNotFound\n                      basePath='/register'\n                      defaultPath='/register'\n                      legacyPaths={['/']}\n                    />\n                  }\n                  path='*'\n                />\n              </Routes>\n            </RegistrationProvider>\n          </AuthProvider>\n        </ConfigProvider>\n      </ErrorBoundary>\n    </>\n  );\n}\n","import { Overlay } from '@hermes/ui';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { Favicon } from '@vestwell-frontend/elements';\nimport { HttpError } from '@vestwell-frontend/hooks';\nimport { ApiBoundary, ThemeProvider } from '@vestwell-frontend/ui';\n\nimport type { AxiosError } from 'axios';\nimport { createRoot } from 'react-dom/client';\nimport { BrowserRouter } from 'react-router-dom';\n\nimport { AuthProvider } from './contexts';\nimport { Router } from './router';\n\nconst queryClient = new QueryClient({\n  defaultOptions: {\n    mutations: {\n      retry: false,\n      useErrorBoundary: (error: HttpError) =>\n        ['REGISTRATION_LOCKOUT', 'UNSUPPORTED_RECORDKEEPER'].includes(\n          error.code\n        )\n    },\n    queries: {\n      cacheTime: 60 * 1000 * 5,\n      refetchOnMount: false,\n      refetchOnReconnect: 'always',\n      refetchOnWindowFocus: false,\n      retry: (failureCount, error: AxiosError) =>\n        (['ECONNABORTED', 'ENOTFOUND', 'ETIMEDOUT', 'ECONNREFUSED'].includes(\n          error?.code\n        ) ||\n          [503, 504].includes(error?.status)) &&\n        failureCount < 6,\n      suspense: false,\n      useErrorBoundary: (error: HttpError) =>\n        ['REGISTRATION_LOCKOUT', 'UNSUPPORTED_RECORDKEEPER'].includes(\n          error.code\n        )\n    }\n  }\n});\n\nconst root = createRoot(document.getElementById('root'));\n\nroot.render(\n  <AuthProvider>\n    <QueryClientProvider client={queryClient}>\n      <ThemeProvider isWhitelabeled>\n        <BrowserRouter>\n          <Favicon />\n          <Overlay />\n          <ApiBoundary>\n            <Router />\n          </ApiBoundary>\n        </BrowserRouter>\n      </ThemeProvider>\n    </QueryClientProvider>\n  </AuthProvider>\n);\n"],"names":["isNativeMobile","deviceInfo","Device","getInfo","includes","platform","Favicon","whitelabel","useGetWhiteLabelUnauthorized","useEffect","data","metadata","favicon","link","document","querySelector","createElement","id","type","rel","getElementsByTagName","appendChild","href","subdomain","displayName","palette","alert","contrastText","dark","light","main","aliceBlue","apple","ash","azureishWhite","black","blister","bloodOrange","blueIvy","blueSapphire","brandyButter","cherry","cornflowerBlue","darkBlue","darkGold","denim","dijon","disabled","emphasize","error","ghostWhite","grannyApple","grey100","grey200","grey300","grey400","grey50","grey500","grey600","grey700","grey800","grey900","imgPlaceholder","info","interact","khaki","lightBlue","lightGold","lightKhaki","lightestGray","limeGreen","mahogany","malibu","mediumBlue","mediumGold","metallicBlue","mint","muck","niceBlue","oceanGreen","onPayBlue","oxfordBlue","page","paleSalmon","pictonBlue","pine","placeholder","plantation","primary","regalBlue","ruby","seasick","secondary","sky","slate","spinach","success","vividBurgundy","warning","water","wheat","white","wintersDay","theme","createTheme","components","MuiAccordionSummary","styleOverrides","content","margin","MuiAlert","defaultProps","message","color","textDecoration","root","borderRadius","fontSize","lineHeight","marginTop","padding","zIndex","MuiAutocomplete","spacing","MuiAvatar","MuiBottomNavigation","boxShadow","height","MuiBottomNavigationAction","focusRipple","maxWidth","minWidth","MuiButton","disableFocusRipple","contained","fontWeight","paddingLeft","paddingRight","inline","backgroundColor","width","ownerState","border","borderColor","outline","outlineOffset","borderWidth","marginBottom","textTransform","text","MuiButtonBase","minHeight","MuiButtonGroup","MuiCard","MuiCardContent","paddingBottom","MuiCardHeader","paddingTop","MuiCheckbox","MuiCssBaseline","display","listStyleType","listStylePosition","clip","overflow","position","whiteSpace","MuiDataGrid","editInputCell","overlayWrapperInner","flexDirection","alignItems","cursor","textAlign","letterSpacing","visibility","opacity","MuiIconButton","sizeSmall","MuiInput","input","borderBottom","inputClasses","focused","MuiInputLabel","transform","MuiList","MuiListItem","MuiListItemButton","MuiListSubheader","MuiMenuItem","borderLeft","borderBottomColor","borderBottomStyle","borderBottomWidth","userSelect","MuiModal","MuiPaper","shadows","MuiPopper","MuiRadio","MuiSkeleton","MuiSvgIcon","fontSizeLarge","fontSizeSmall","MuiTableCell","MuiTableRow","MuiToggleButton","MuiToolbar","MuiTooltip","arrow","tooltip","MuiTypography","Navbar","desktop","selected","unselected","mobile","typography","a1","a2","allVariants","b1","b2","c1","c2","d1","d2","e1","e2","f1","f2","fontFamily","join","g1","g2","htmlFontSize","i1","i2","j1","j2","k3","MaterialThemeProvider","memo","themeOverrides","props","query","enabled","isWhitelabeled","keepPreviousData","useErrorBoundary","muiTheme","useMemo","merge","ThemeProvider","children","StyledEngineProvider","injectFirst","Loader","Stack","aria-busy","bottom","data-component","data-testid","justifyContent","left","right","top","CircularProgress","PageContext","createContext","StylePageFooter","styled","shouldForwardProp","prop","sticky","marginLeft","marginRight","breakpoints","down","gridArea","PageFooter","getBearerToken","isMobile","tokenData","tokenObject","e","bearerToken","SecureStoragePlugin","get","key","value","JSON","parse","access_token","token_type","console","warn","Cookies","indexOf","useCamelCase","camelCase","Error","blobToBase64DataUrl","blob","Promise","resolve","reject","reader","FileReader","onloadend","result","onerror","readAsDataURL","triggerFileDownload","name","download","body","click","removeChild","useDownload","pathname","snackbar","avoidPreview","useState","fileUri","setFileUri","fileName","setFileName","isLoading","setIsLoading","isMobileApp","setIsMobileApp","useBearerToken","bearerTokenValue","setBearerTokenValue","getBearerTokenValue","useCallback","token","then","handleTokenChange","window","addEventListener","removeEventListener","notify","useSnackbar","close","closeSnackbar","options","enqueueSnackbar","variant","contentDisposition","response","downloadedFileName","dataUrl","blobUrl","savedFile","preventDefault","open","FileOpener","filePath","openWithDefault","axios","headers","Authorization","responseType","split","replace","getFileExtension","Date","getTime","URL","createObjectURL","Filesystem","writeFile","directory","Directory","Documents","path","recursive","uri","mimeType","useWeglot","languageOptions","setLanguageOptions","currentLanguage","setCurrentLanguage","currentLanguageLabel","setCurrentLanguageLabel","languagePreference","setLanguagePreference","isWeglotAvailable","setIsWeglotAvailable","domain","location","host","slice","Weglot","languages","map","lang","language_to","language_from","label","getLanguageName","currentLang","getCurrentLang","handleLanguageChange","newLang","on","off","switchLanguage","newLanguage","set","expires","switchTo","syncLanguageWithCookie","savedLanguage","useToggle","initialValue","state","setState","prev","format","lastDayOfMonth","getFullYear","StyledButton","loading","undefined","LoadingIndicator","action","Button","forwardRef","ref","dataTestId","component","to","Link","data-disabled","target","external","size","ExceptionIcon","createSvgIcon","svg","viewBox","d","fill","role","clipRule","fillRule","LinkStyled","RouterLink","AnchorStyled","isSecureDownload","useTheme","isExternal","onClick","sx","linkedChildren","Children","count","cloneElement","isLinked","injectLinkedProp","LoadingStyled","Skeleton","isPropValid","variantStyles","Loading","isAnimationActive","isChromatic","labelId","useId","animation","aria-labelledby","aria-valuetext","data-variant","data-wg-notranslate","span","className","htmlTag","TextContainer","Typography","propName","bgcolor","Text","mb","aria-label","numericCodes","BAD_REQUEST","DOCUMENT_NOT_FOUND","EMAIL_SEND","ENCRYPT","FORBIDDEN","INVALID_ARG","INVALID_ENV_VAR","INVALID_RESPONSE","INVALID_TOKEN","MISSING_CONTEXT","MISSING_COOKIE","MISSING_ENV_VAR","MISSING_PARAMETER","MISSING_RELATIONSHIP","NOT_FOUND","PARTICIPANT_REGISTRATION_ADDRESS_VERIFY","PARTICIPANT_REGISTRATION_COMPANY_VERIFY","PARTICIPANT_REGISTRATION_EXISTS","PARTICIPANT_REGISTRATION_LOCKOUT","PARTICIPANT_REGISTRATION_NO_MATCH","PARTICIPANT_REGISTRATION_PARTIAL_MATCH","PARTICIPANT_REGISTRATION_USER_EXISTS","SPONSOR_REGISTRATION_EXISTS","SPONSOR_REGISTRATION_LOCKOUT","SPONSOR_REGISTRATION_NO_MATCH","SPONSOR_REGISTRATION_PARTIAL_MATCH","SPONSOR_REGISTRATION_USER_EXISTS","TOKEN_DECRYPT","TOKEN_EXPIRED","TOKEN_VERIFY","UNAUTHORIZED","UNKNOWN_EXCEPTION","StyledExceptionIcon","StyledLink","icon","useMediaQuery","queryClient","useQueryClient","Icon","Box","title","marginX","mt","details","descriptionId","supportEmail","code","showRefreshButton","resetQueries","Error404Icon","g","Error500Icon","ERRORS","GENERIC_ERROR","StyledError404Icon","StyledError500Icon","StatusCodeError","status","errorStatus","toString","Content","Container","innerStyles","hasStickyFooter","StyledPage","hasShelf","flex","overflowY","hasDrawer","Page","footer","noBottomPadding","ctx","hasMainSiblings","element","isValidElement","Provider","ApiBoundary","getDerivedStateFromError","render","this","isPage","hidePage","Wrapper","Fragment","Suspense","fallback","Component","AuthContext","useAuth","store","useContext","useStore","AuthProvider","useLocalStorage","setToken","authConfigStore","createStore","validToken","defaults","common","ConfigContext","useConfig","ConfigProvider","configStore","isInitialLoading","WizardContext","useWizard","WizardProvider","useLocation","isStorybook","process","STORYBOOK","steps","step","index","nanoid","hasLinks","every","url","foundIndex","findIndex","endsWith","storeRef","useRef","current","persist","storage","initSteps","reduce","acc","i","createJSONStorage","sessionStorage","hasNextStep","hasPrevStep","initialState","resetState","update","setStep","updatedSteps","WizardProviderCtrl","onStateChange","onStepChange","navigate","useNavigate","prevIndex","usePrevious","useUpdateEffect","length","setSteps","some","when","nextStep","reverse","find","params","RegistrationProvider","auth","useGetRegistrationState","onSuccess","entity","assign","origin","usePatchRegistrationState","mutation","refetch","mutateAsync","legacyPaths","PageNotFound","isRedirectPath","basePath","p","isLegacyPath","test","defaultPath","SuspenseImage","alt","src","crossOrigin","rest","imageUrl","setImageUrl","onError","img","PLACEHOLDER","hexToRgba","hex","exec","rgba","parseInt","StyledBox","backgroundColorOpacity","Pill","fontColor","planType","ESA","StyledBusinessOutlined","BusinessOutlined","Header","args","useDocumentTitle","data-componet","align","caption","mx","companyName","planName","direction","paddingX","paddingY","safeArea","StyledModalBody","isRounded","flexGrow","StyledModalBodyContents","webkitOverflowScrolling","ModalBody","Alert","dangerouslySetInnerHTML","__html","severity","StyledModalContainer","maxHeight","lgWidth","mdWidth","ModalContainer","StyledModalHeader","StyledModalHeaderText","ModalHeader","ModalLoader","StyledMuiModal","StyledIconButton","IconButton","hasHeader","Modal","confirmMessage","ariaLabelledBy","header","handleClose","requireConfirmOnClose","onRequestClose","confirm","onClose","locked","isOpen","slotProps","backdrop","style","overlayColor","aria-describedby","Divider","closeButton","Close","IconTooltip","ariaLabel","placement","trigger","InfoOutlined","ml","componentsProps","popper","describeChild","enterTouchDelay","Details","StyledInputLabel","InputLabel","FormFieldLabel","isModalOpen","toggleIsModalOpen","testIdName","hideLabel","required","shrink","hideLocked","disabledId","LockOutlined","infoId","helpModal","helpModalId","detailsId","RadioGroupContext","StyledRadio","Radio","StyledFormControlLabel","FormControlLabel","checked","columnGap","fullWidth","RadioButton","onChange","control","inputProps","disableTypography","StyledFormControl","FormControl","StyledFormHelperText","FormHelperText","RadioGroup","errorMessage","formField","hideError","errorId","setValue","describedBy","trimEnd","onRadioButtonChange","MuiRadioGroup","aria-disabled","aria-invalid","aria-required","aria-atomic","gap","StyledModalFooter","borderBottomLeftRadius","borderBottomRightRadius","noBoxShadow","justifyBetween","justifyCenter","ModalFooter","LanguageSelectorModal","weglot","isDisclaimerOpen","toggleIsDisclaimerOpen","chosenLanguage","setChosenLanguage","isLanguageChanged","toggleIsLanguageChanged","handleChange","onUpdateLanguage","aria-haspopup","option","StyledWarningAmberIcon","WarningAmberIcon","LanguageSelector","setIsOpen","endIcon","ArrowDropDownIcon","startIcon","LanguageIcon","Tooltip","BackgroundContent","BackgroundContainer","Card","borderTopColor","borderTopWidth","up","Logo","BackgroundCard","config","registration","logo","StyledBanner","alignSelf","Banner","login","banner","Grid","flexWrap","container","PageContainer","BackgroundError","CancelRegistrationButton","ErrorBoundary","clearError","hasError","renderErrorCode","PageWrapper","Root","useEffectOnce","Outlet","pick","passwordErrorMsg","validatePasswords","schema","values","validate","abortEarly","err","inner","errors","passwordConditions","push","PasswordCheckList","useFormikContext","checkList","Object","keys","sort","div","List","item","ListItem","data-checked","my","ListItemIcon","mr","Check","describedById","FormConfirm","Confirm","isConfirmed","handleSubmit","FormChangeHandler","mounted","setMounted","$timeout","setTimeout","clearTimeout","cancel","useDebounce","shouldCall","preventOnChangeOnMount","useUnmount","FormValidationHandler","onValidation","isValid","FormErrorHandler","onErrors","FormValidationSchemaChanged","validateForm","validationSchema","IsRequiredFieldContext","Form","enableReinitialize","initialValues","validateOnBlur","validateOnChange","validateOnMount","toggleIsConfirmed","showConfirm","toggleShowConfirm","onConfirm","onDismiss","onValidate","context","validationContext","onRawErrors","yupToFormErrors","onReset","onSubmit","setSubmitting","isRequiredFieldValue","fields","describe","field","getIn","tests","Formik","autoComplete","initialTouched","innerRef","FormikForm","dismiss","isNumberAllowed","min","max","isValueDefined","floatValue","isMinDefined","isMaxDefined","isAboveMin","isBelowMax","maskProps","allowEmptyFormatting","allowLeadingZeros","allowNegative","decimalScale","precision","expectNumericValue","isAllowed","prefix","thousandSeparator","dateMask","dateInputFormat","expectFormattedValue","substring","formatDisplayValue","parseISO","toISOString","mask","toUpperCase","ein","numericString","suffix","ssn","formattedValue","TextBoxFormat","formatChangeValue","formatPasteValue","reformatOnBlur","isDate","isFocused","toggleIsFocused","textValue","setTextValue","onBlur","onFocus","onPaste","stopPropagation","clipboardData","getData","onValueChange","event","NumericFormat","NumberFormatBase","data-raw-value","getInputRef","valueIsNumericString","StyledInput","Input","WebkitTextSecurity","TextBox","autoFocus","endAdornment","noFocusStyle","readOnly","revealable","testId","reveal","toggleReveal","$input","useImperativeHandle","timeout","focus","select","trim","isMask","data-no-focus-style","data-secure","aria-pressed","onMouseDown","VisibilityOffOutlined","VisibilityOutlined","inputComponent","inputRef","FormField","ariaDescribedBy","help","isRequired","useField","meta","helpers","touched","StyledAlert","FormSaveButton","ensureDirty","serverError","isDisabled","setDisabled","isSubmitting","dirty","handleClick","data-error","data-is-dirty","data-is-valid","data-status","data-submitting","parseDate","timezone","Intl","DateTimeFormat","resolvedOptions","timeZone","finalDate","toZonedTime","isNaN","valueOf","dateFormatToDateFnsFormat","DATE_FULL","DATE_MED","a","formatDate","dateFormat","date","EMAIL_REGEXP","SPECIAL_CHARACTERS_REGEXP","EIN_REGEX","SDAT_REGEX","validateSafeString","yup","matches","validateSdat","BIRTH_DATE","maxDate","minDate","isLessThanMax","isGreaterThanMin","isValidDate","isExists","getYear","getMonth","getDate","createError","maxErrorMessage","minErrorMessage","EIN","excludeEmptyString","validateEin","EMAIL","validateEmail","EXEMPTION_REASON","FIRST_NAME","INVITE_CODE","LAST_NAME","NAME","PASSWORD","PHONE_NUMBER","SDAT","SSN","shape","email","password","editSchema","StyledFormFieldContainer","StyledForm","StyledPasswordCheckList","AccountSetupPage","isEdit","toggleIsEdit","isResetLinkSent","toggleIsResetLinkSent","connect","advisor","usePostAdvisorConnect","participant","usePostParticipantConnectVerify","sponsor","usePostSponsorConnect","useConnect","finishUrl","usePostAdvisorPassword","usePostParticipantPassword","usePostSponsorPassword","usePassword","editEmail","usePostRegistrationContact","forgotPassword","usePostForgotPassword","userId","hasPassword","onBack","onForgotPassword","res","log","reset","validatePassword","passwordConfirm","oneOf","data-heap-redact-text","StyledLinearProgress","LinearProgress","inviteCode","AdvisorVerificationPage","verify","useSearchParam","usePostAdvisorVerify","useMount","isIdle","AlertTitle","ContactPage","contact","onExempt","program","inviteEmail","isState","StyledRadioGroup","FormRadioGroup","setTouched","RadioButtonsContainer","address1","ParticipantAddressVerifyPage","addresses","useGetParticipantAddressOptions","usePostParticipantAddressVerify","ParticipantCompanyVerifyPage","companies","useGetParticipantCompanyOptions","usePostParticipantCompanyVerify","fontWeightBold","StyledText","StyledVerticalAttribute","Grid2","aria-level","linkTo","excludeTranslation","firstName","lastName","phoneNumber","ParticipantContactPage","patchContact","postContact","usePatchParticipantContact","isError","anchorEl","StyledStack","CookiesBanner","bannerName","stringify","dismissed","cookie","CloseOutlined","StyledFormSaveButton","StyledIcon","CookieOutlined","birthDate","ParticipantVerificationPage","searchParams","useSearchParamsReactRouterDom","fromEntries","recordKeeperId","usePostParticipantVerify","support","SponsorExemptionConfirmationPage","toggleIsOpen","usePostSponsorExemptionConfirmation","confirmationCode","isSuccess","Checkbox","checkboxLegendId","isChecked","multiple","Array","isArray","v","FormLabel","FormGroup","row","omit","FormCheckbox","newValue","uniq","getAttribute","isMatch","bind","StyledEnrollButton","StyledDiv","SponsorExemptionReasonPage","exempt","toggleIsChecked","usePostSponsorExemptionReason","onRegister","isTrue","exemptionReason","sdat","hasSDAT","notRequired","alternateEmployerId","exemptionReasons","maxLength","toLocaleDateString","OpenInNewSharp","StyledRadioButton","SponsorProgramElectionPage","einSchema","SponsorVerificationPage","usePostSponsorVerify","bypassEin","hasEIN","SponsorSendAccessCodePage","request","usePostSponsorAccessCodeRequest","phone","CompanyWrapper","StyledVisitButton","StyledGoBackButton","UnsupportedRecordkeeperErrorPage","unsupportedFirms","company","onClear","UserLockoutErrorPage","ErrorCodeHandler","advisorRegistration","matched","accessCode","participantRegistration","addressVerified","companyVerified","sponsorRegistration","reason","Router","CssBaseline","GlobalStyles","styles","Routes","Route","Navigate","QueryClient","defaultOptions","mutations","retry","queries","cacheTime","refetchOnMount","refetchOnReconnect","refetchOnWindowFocus","failureCount","suspense","createRoot","getElementById","QueryClientProvider","client","BrowserRouter","Overlay"],"sourceRoot":""}