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ClBa,MAAAM,GAAmBnF,GAAkB,CAChDkB,YAAU,IAAM,CACd,GAAI,UAAYlB,EACd,SAAS,MAAQA,MAEjB,OAAM,IAAI,MACR,0DACF,CACF,EACC,CAACA,CAAK,CAAC,CACZ","names":["AuthService","apiUrl","axios","response","setupApi","openApi","requireAuth","doSetupApi","authService","error","onRejected","authResult","redirectWindow","isRefreshing","refreshAndRetryQueue","isRefresh","isNotAuthorized","originalRequest","config","resolve","reject","err","url","getSessionId","addSessionIdHeader","session","deleteHeapCookies","heapCookies","deleteCookie","name","path","domain","cookie","cookieKey","heapCookie","Button","Checkbox","Link","textSizes","defineStyle","Text","sizes","Divider","Container","helpers","createMultiStyleConfigHelpers","ExpandableText","Heading","outlineVariantStyle","Input","Form","FormLabel","FormError","Paper","defineStyleConfig","Radio","Select","Switch","components","green","red","gray","brandDefault","focusState","icons","colors","styles","fontSizes","lineHeights","theme","Card","card","jsxs","Flex","jsx","Icon","ControlIconButton","icon","isDisabled","onClick","ariaLabel","testId","IconButton","Control","children","rightIconProps","leftIconProps","rest","hasLeftIcon","hasRightIcon","getLeftIcon","Box","getRightIcon","props","ChakraDivider","Footer","logoUrl","website","linkAriaLabel","logoAriaLabel","language","rightsCopy","footerLinks","customBottomContent","Image","lang","link","ContactUs","contactInfo","buttonProps","handleCall","trackHeapEvent","PhoneIcon","Markdown","CustomLi","ListItem","FAQAccordionItem","title","AccordionItem","AccordionButton","AccordionIcon","AccordionPanel","FAQs","markdown","Accordion","UnorderedList","HelpBottomSheet","isOpen","onClose","contactProps","faqProps","BottomSheet","LanguageSync","i18n","useTranslation","useEffect","setDefaultOptions","es","enUS","OtherAmountInput","forwardRef","value","onChange","inputValidation","size","ref","CurrencyInput","amount","e","ProgressBar","percentage","barColor","height","minWidth","OptInLabel","label","OptInLabelRow","YearTag","year","YearTagRow","getItemProps","item","paymentAppliedLabel","formatCurrency","MonthContent","asRow","paymentPastDueLabel","itemProps","ResultsGrid","months","selectedMonth","selectedYear","showYearTag","nextYear","Grid","index","backgroundColor","isSelectedMonth","addYearTag","GridItem","FullScreenLayout","topContent","customTopContent","primaryButtonProps","secondaryButtonProps","stickyButtons","hideButtons","ChakraComponent","event","child","VStack","useClientFaq","filename","resolvedLanguage","clientFaq","setClientFaq","useState","getFaq","faq","__variableDynamicImportRuntimeHelper","useSetPageTitle"],"ignoreList":[],"sources":["../../../m3p-core/src/utils/auth.ts","../../../m3p-core/src/utils/session.ts","../../../m3p-core/src/utils/heap.ts","../../../m3p-core/src/theme/components/Button.ts","../../../m3p-core/src/theme/components/Checkbox.ts","../../../m3p-core/src/theme/components/Link.ts","../../../m3p-core/src/theme/textSizes.ts","../../../m3p-core/src/theme/components/Text.ts","../../../m3p-core/src/theme/components/Divider.ts","../../../m3p-core/src/theme/components/Container.ts","../../../m3p-core/src/theme/components/ExpandableText.ts","../../../m3p-core/src/theme/components/Heading.ts","../../../m3p-core/src/theme/components/Input.ts","../../../m3p-core/src/theme/components/Form.ts","../../../m3p-core/src/theme/components/FormLabel.ts","../../../m3p-core/src/theme/components/FormError.ts","../../../m3p-core/src/theme/components/Paper.ts","../../../m3p-core/src/theme/components/Radio.ts","../../../m3p-core/src/theme/components/Select.ts","../../../m3p-core/src/theme/components/Switch.ts","../../../m3p-core/src/theme/components/index.ts","../../../m3p-core/src/theme/colors.ts","../../../m3p-core/src/theme/index.ts","../../../m3p-core/src/components/Card/Card.tsx","../../../m3p-core/src/components/Control/Control.tsx","../../../m3p-core/src/components/Divider/index.tsx","../../../m3p-core/src/components/Footer/Footer.tsx","../../../m3p-core/src/components/HelpBottomSheet/ContactUs/index.tsx","../../../m3p-core/src/components/HelpBottomSheet/FAQs/index.tsx","../../../m3p-core/src/components/HelpBottomSheet/index.tsx","../../../m3p-core/src/components/LanguageSync/index.tsx","../../../m3p-core/src/components/OtherAmountInput/index.tsx","../../../m3p-core/src/components/ProgressBar/ProgressBar.tsx","../../../m3p-core/src/components/ResultsGrid/OptInLabel.tsx","../../../m3p-core/src/components/ResultsGrid/OptInLabelRow.tsx","../../../m3p-core/src/components/ResultsGrid/YearTag.tsx","../../../m3p-core/src/components/ResultsGrid/YearTagRow.tsx","../../../m3p-core/src/components/ResultsGrid/MonthContent.tsx","../../../m3p-core/src/components/ResultsGrid/index.tsx","../../../m3p-core/src/layout/FullScreenLayout/index.tsx","../../../m3p-core/src/hooks/useClientFaq.ts","../../../m3p-core/src/hooks/useSetPageTitle.ts"],"sourcesContent":["import axios, {\n AxiosError,\n AxiosRequestConfig,\n InternalAxiosRequestConfig,\n} from \"axios\";\n\nexport interface AuthResponse {\n hasRefreshToken: boolean;\n isLoggedIn: boolean;\n}\n\nexport interface AuthPathResponse {\n path: string;\n}\n\nexport class AuthService {\n apiUrl: string;\n authUrl: string;\n\n constructor(apiUrl: string) {\n this.apiUrl = apiUrl;\n this.authUrl = \"https://auth\" + apiUrl.substring(apiUrl.indexOf(\"-api.\"));\n }\n\n async auth(): Promise {\n const result = await axios.get(this.authUrl + \"/sso/auth\", {\n withCredentials: true,\n });\n return result.data as AuthResponse;\n }\n\n async refresh(): Promise {\n await axios.get(this.authUrl + \"/sso/refresh\", {\n withCredentials: true,\n });\n\n return this.auth();\n }\n\n async authPath(): Promise {\n const result = await axios.get(\n `${this.apiUrl}/auth/path?RedirectUrl=${encodeURIComponent(window.location.href)}`,\n {\n withCredentials: true,\n },\n );\n const response = result.data as AuthPathResponse;\n return this.authUrl + response.path;\n }\n}\n\nexport interface OpenApi {\n BASE: string;\n WITH_CREDENTIALS: boolean;\n}\n\nexport async function setupApi(\n apiUrl: string,\n openApi: OpenApi,\n requireAuth: boolean = true,\n) {\n return doSetupApi(apiUrl, openApi, new AuthService(apiUrl), requireAuth);\n}\n\nexport async function doSetupApi(\n apiUrl: string,\n openApi: OpenApi,\n authService: AuthService,\n requireAuth: boolean = true,\n) {\n openApi.BASE = apiUrl;\n openApi.WITH_CREDENTIALS = true;\n\n if (!requireAuth) {\n return true;\n }\n\n axios.interceptors.response.use(\n (response) => response,\n (error) => onRejected(error, authService),\n );\n\n let authResult = await authService.auth();\n\n if (!authResult.isLoggedIn && authResult.hasRefreshToken) {\n authResult = await authService.refresh();\n }\n\n if (!authResult.isLoggedIn) {\n redirectWindow(await authService.authPath());\n }\n\n return authResult.isLoggedIn;\n}\n\nlet isRefreshing = false;\ninterface RetryQueueItem {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n resolve: (value?: any) => void;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n reject: (error?: any) => void;\n config: AxiosRequestConfig;\n}\n\nconst refreshAndRetryQueue: RetryQueueItem[] = [];\n\nfunction isRefresh(error: AxiosError) {\n return error.config && error.config.url?.endsWith(\"/refresh\");\n}\n\nfunction isNotAuthorized(error: AxiosError) {\n return error.response && error.response.status === 401;\n}\n\nexport async function onRejected(error: AxiosError, authService: AuthService) {\n const originalRequest: AxiosRequestConfig =\n error.config as InternalAxiosRequestConfig;\n\n if (!originalRequest) {\n return Promise.reject(error);\n }\n\n // try to refresh the token if we get a not authorized error\n // ignore refresh token requests that fail, so they fall through\n if (isNotAuthorized(error) && !isRefresh(error)) {\n if (!isRefreshing) {\n isRefreshing = true;\n try {\n const result = await authService.refresh();\n\n if (!result.isLoggedIn) {\n redirectWindow(await authService.authPath());\n } else {\n refreshAndRetryQueue.forEach(({ config, resolve, reject }) => {\n axios\n .request(config)\n .then((response) => resolve(response))\n .catch((err) => reject(err));\n });\n\n refreshAndRetryQueue.length = 0;\n return axios(originalRequest);\n }\n } finally {\n isRefreshing = false;\n }\n }\n\n return new Promise((resolve, reject) => {\n refreshAndRetryQueue.push({ config: originalRequest, resolve, reject });\n });\n } else if (isNotAuthorized(error) && isRefresh(error)) {\n redirectWindow(await authService.authPath());\n return Promise.resolve(\"redirect\");\n }\n\n return Promise.reject(error);\n}\n\nfunction redirectWindow(url: string) {\n window.location.href = url;\n}\n","import axios, { AxiosRequestConfig, InternalAxiosRequestConfig } from \"axios\";\n\nexport const getSessionId = () => {\n if (window.DD_RUM) {\n return window.DD_RUM.getInternalContext()?.session_id;\n }\n return null;\n};\n\nexport const addSessionIdHeader = (config: AxiosRequestConfig) => {\n if (!config.headers) {\n config.headers = {};\n }\n\n if (window.DD_RUM) {\n const session = getSessionId();\n if (session) {\n config.headers[\"x-datadog-session-id\"] = session;\n }\n }\n return config as InternalAxiosRequestConfig;\n};\n\naxios.interceptors.request.use(\n (config) => {\n return addSessionIdHeader(config);\n },\n (error) => {\n return Promise.reject(error);\n },\n);\n","export const deleteHeapCookies = () => {\n const heapCookies = [\n \"_hp2_id\",\n \"_hp2_ses_props\",\n \"_hp2_props\",\n \"_hp5_meta\",\n \"_hp5_event_props\",\n \"_hp5_let\",\n \"_hp2_hld\",\n ];\n\n const deleteCookie = (name: string, path = \"/\", domain = \".m3p.health\") => {\n document.cookie = `${name}=; Max-Age=0; path=${path}; domain=${domain};`;\n };\n\n document.cookie.split(\";\").forEach((cookie) => {\n const cookieKey = cookie.split(\"=\")[0].trim();\n if (\n heapCookies.some((heapCookie) => cookieKey.startsWith(`${heapCookie}.`))\n ) {\n deleteCookie(cookieKey);\n }\n });\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Button: ComponentSingleStyleConfig = {\n sizes: {\n lg: {\n fontSize: \"lg\",\n px: 6,\n py: 5,\n h: \"60px\",\n },\n },\n\n variants: {\n primary: {\n bg: \"brand.600\",\n color: \"white\",\n _hover: {\n bg: \"brand.700\",\n _disabled: {\n bg: \"gray.200\",\n color: \"gray.400\",\n },\n },\n _active: {\n bg: \"brand.800\",\n },\n _disabled: {\n bg: \"gray.200\",\n color: \"gray.400\",\n },\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n secondary: {\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n destructive: {\n bg: \"red.600\",\n color: \"white\",\n _hover: {\n bg: \"red.700\",\n _disabled: {\n bg: \"red.200\",\n color: \"white\",\n },\n },\n _active: {\n bg: \"red.800\",\n },\n _disabled: {\n bg: \"red.200\",\n color: \"white\",\n },\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n ghost: {\n bg: \"white\",\n color: \"gray.900\",\n _hover: {\n bg: \"gray.50\",\n _disabled: {\n opacity: 0.3,\n color: \"gray.900\",\n },\n },\n _active: {\n bg: \"gray.100\",\n },\n _disabled: {\n opacity: 0.3,\n color: \"gray.900\",\n },\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n\n control: {\n bg: \"gray.100\",\n borderColor: \"gray.300\",\n borderWidth: \"1px\",\n borderRadius: \"100px\",\n minW: 16,\n h: 10,\n _hover: {\n bg: \"gray.200\",\n },\n _active: {\n bg: \"gray.300\",\n },\n _disabled: {\n opacity: 0.15,\n cursor: \"not-allowed\",\n },\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n\n icon: {\n h: 10,\n minW: 10,\n _focusVisible: {\n outlineColor: \"focusState\",\n },\n },\n },\n\n defaultProps: {\n variant: \"primary\",\n size: \"lg\",\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Checkbox: ComponentSingleStyleConfig = {\n baseStyle: {\n control: {\n boxShadow: \"none\",\n borderColor: \"gray.500\",\n opacity: 1,\n\n _disabled: {\n opacity: 1,\n bg: \"none\",\n borderColor: \"gray.300\",\n color: \"white\",\n },\n\n _checked: {\n bg: \"brand.600\",\n borderColor: \"brand.600\",\n color: \"white\",\n\n _disabled: {\n opacity: 1,\n bg: \"brand.600\",\n borderColor: \"brand.600\",\n color: \"white\",\n },\n\n _hover: {\n bg: \"brand.600\",\n borderColor: \"brand.600\",\n },\n },\n\n _invalid: {\n borderColor: \"coral.900\",\n\n _checked: {\n borderColor: \"coral.900\",\n bg: \"coral.900\",\n color: \"white\",\n },\n\n _disabled: {\n borderColor: \"gray.300\",\n },\n },\n },\n icon: {\n borderRadius: 3,\n size: \"lg\",\n },\n label: {\n color: \"black\",\n ml: 3,\n textWrap: \"wrap\",\n\n _disabled: {\n opacity: 1,\n color: \"black\",\n },\n },\n },\n sizes: {\n md: {\n label: {\n fontSize: \"md\",\n },\n icon: {\n fontSize: \"11px\",\n },\n control: {\n width: \"20px\",\n height: \"20px\",\n },\n },\n lg: {\n label: {\n fontSize: \"lg\",\n },\n icon: {\n fontSize: \"12px\",\n },\n control: {\n width: \"22px\",\n height: \"22px\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Link: ComponentSingleStyleConfig = {\n baseStyle: {\n fontSize: \"lg\",\n\n _focusVisible: {\n outlineColor: \"focusState\",\n borderRadius: 8,\n },\n },\n defaultProps: {},\n};\n","import { defineStyle } from \"@chakra-ui/react\";\n\n/**\n * Sizes for Heading and Text components.\n */\nexport const textSizes = {\n sm: defineStyle({\n fontSize: \"sm\", // 14px\n lineHeight: \"sm\",\n }),\n base: defineStyle({\n fontSize: \"base\", // 15px\n lineHeight: \"base\",\n }),\n md: defineStyle({\n fontSize: \"md\", // 16px\n lineHeight: \"md\",\n }),\n lg: defineStyle({\n fontSize: \"lg\", // 17px\n lineHeight: \"lg\",\n }),\n xl: defineStyle({\n fontSize: \"xl\", // 20px\n lineHeight: \"xl\",\n }),\n \"2xl\": defineStyle({\n fontSize: \"2xl\", // 24px\n lineHeight: \"2xl\",\n }),\n \"3xl\": defineStyle({\n fontSize: \"3xl\", // 30px\n lineHeight: \"3xl\",\n }),\n \"4xl\": defineStyle({\n fontSize: \"4xl\", // 36px\n lineHeight: \"4xl\",\n }),\n \"5xl\": defineStyle({\n fontSize: \"5xl\", // 48px\n lineHeight: \"5xl\",\n }),\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\nimport { textSizes as sizes } from \"../textSizes\";\n\nexport const Text: ComponentSingleStyleConfig = {\n baseStyle: {\n color: \"gray.900\",\n },\n defaultProps: {\n size: \"xl\",\n },\n sizes,\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Divider: ComponentSingleStyleConfig = {\n baseStyle: {\n backgroundColor: \"gray.300\",\n height: \"1px\",\n },\n defaultProps: {},\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Container: ComponentSingleStyleConfig = {\n baseStyle: {\n maxW: \"container.xl\",\n },\n variants: {\n reduced: {\n maxW: \"684px\",\n px: { base: 4, md: 0 },\n },\n backplate: {\n maxW: \"684px\",\n position: \"relative\",\n top: \"-80px\",\n },\n },\n defaultProps: {},\n};\n","import { createMultiStyleConfigHelpers } from \"@chakra-ui/styled-system\";\n\nconst helpers = createMultiStyleConfigHelpers([\"expandableText\", \"icon\"]);\n\nexport const ExpandableText = helpers.defineMultiStyleConfig({\n baseStyle: {\n expandableText: {\n bg: \"white\",\n borderWidth: \"1px\",\n borderColor: \"gray.200\",\n },\n icon: {\n color: \"black\",\n },\n button: {\n bg: \"white\",\n textColor: \"brand.600\",\n _hover: {\n bg: \"gray.100\",\n },\n },\n text: {\n color: \"gray.600\",\n },\n },\n variants: {},\n});\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\nimport { textSizes as sizes } from \"../textSizes\";\n\nexport const Heading: ComponentSingleStyleConfig = {\n baseStyle: {\n color: \"gray.900\",\n },\n defaultProps: {\n size: \"xl\",\n },\n sizes,\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nconst outlineVariantStyle = {\n field: {\n borderWidth: \"1px\",\n borderColor: \"gray.300\",\n color: \"gray.900\",\n\n _placeholder: {\n color: \"gray.500\",\n },\n\n _hover: {\n boxShadow: \"none\",\n borderColor: \"gray.400\",\n },\n\n _invalid: {\n boxShadow: \"none\",\n borderColor: \"red.700\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"red.700\",\n },\n\n _focus: {\n boxShadow: \"none\",\n borderColor: \"brand.600\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"brand.600\",\n\n _invalid: {\n borderColor: \"red.700\",\n outlineColor: \"red.700\",\n },\n },\n\n _focusVisible: {\n boxShadow: \"none\",\n borderColor: \"brand.600\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"brand.600\",\n\n _invalid: {\n borderColor: \"red.700\",\n outlineColor: \"red.700\",\n },\n },\n\n _disabled: {\n opacity: 1,\n backgroundColor: \"gray.100\",\n color: \"gray.500\",\n\n _hover: {\n borderColor: \"gray.300\",\n },\n },\n },\n};\n\nexport const Input: ComponentSingleStyleConfig = {\n baseStyle: {\n field: {\n fontSize: \"lg\",\n borderRadius: 8,\n boxShadow: \"none\",\n backgroundColor: \"white\",\n outlineOffset: 0,\n },\n },\n variants: {\n outline: outlineVariantStyle,\n },\n sizes: {\n sm: {\n field: {\n fontSize: \"sm\",\n height: 10,\n borderRadius: 6,\n },\n addon: {\n height: 10,\n },\n element: {\n height: 10,\n },\n },\n md: {\n field: {\n fontSize: \"md\",\n height: 12,\n paddingStart: 3,\n paddingEnd: 3,\n },\n addon: {\n height: 12,\n },\n element: {\n height: 12,\n },\n },\n lg: {\n field: {\n fontSize: \"lg\",\n height: \"60px\",\n paddingStart: 3,\n paddingEnd: 3,\n },\n addon: {\n height: \"60px\",\n },\n element: {\n height: \"60px\",\n },\n },\n },\n defaultProps: {\n size: \"lg\",\n focusBorderColor: \"brand.600\",\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Form: ComponentSingleStyleConfig = {\n baseStyle: {\n requiredIndicator: {\n color: \"red.700\",\n },\n helperText: {\n fontSize: \"lg\",\n color: \"gray.500\",\n },\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\nimport { textSizes as sizes } from \"../textSizes\";\n\nexport const FormLabel: ComponentSingleStyleConfig = {\n baseStyle: {\n fontSize: \"lg\",\n fontFamily: \"primary\",\n fontWeight: 400,\n color: \"gray.900\",\n mt: 0,\n mb: 1,\n },\n sizes,\n defaultProps: {\n size: \"lg\",\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const FormError: ComponentSingleStyleConfig = {\n baseStyle: {\n text: {\n color: \"red.900\",\n fontSize: \"lg\",\n },\n },\n};\n","import { defineStyleConfig } from \"@chakra-ui/react\";\n\nexport const Paper = defineStyleConfig({\n baseStyle: {},\n variants: {\n heavy: {\n borderWidth: \"1px\",\n borderColor: \"gray.300\",\n borderRadius: \"xl\",\n boxShadow:\n \"box-shadow: 0px 4px 6px -4px #0000000D; box-shadow: 0px 10px 15px -3px #0000000D;\",\n },\n },\n});\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Radio: ComponentSingleStyleConfig = {\n baseStyle: {\n control: {\n boxShadow: \"none\",\n borderColor: \"gray.500\",\n opacity: 1,\n\n _disabled: {\n opacity: 1,\n bg: \"none\",\n borderColor: \"gray.300\",\n color: \"white\",\n },\n\n _checked: {\n bg: \"white\",\n borderColor: \"brand.700\",\n color: \"brand.700\",\n\n _disabled: {\n opacity: 1,\n bg: \"brand.300\",\n borderColor: \"brand.300\",\n color: \"white\",\n },\n\n _hover: {\n bg: \"white\",\n borderColor: \"brand.600\",\n color: \"brand.600\",\n },\n\n _before: {\n width: \"10px\",\n height: \"10px\",\n },\n },\n\n _invalid: {\n borderColor: \"coral.900\",\n\n _checked: {\n borderColor: \"coral.900\",\n bg: \"coral.900\",\n color: \"white\",\n },\n\n _disabled: {\n borderColor: \"gray.300\",\n },\n },\n },\n label: {\n color: \"black\",\n ml: 3,\n textWrap: \"wrap\",\n\n _disabled: {\n opacity: 1,\n color: \"black\",\n },\n },\n },\n sizes: {\n md: {\n label: {\n fontSize: \"md\",\n },\n icon: {\n fontSize: \"11px\",\n },\n control: {\n width: \"20px\",\n height: \"20px\",\n },\n },\n lg: {\n label: {\n fontSize: \"lg\",\n },\n icon: {\n fontSize: \"12px\",\n },\n control: {\n width: \"22px\",\n height: \"22px\",\n },\n },\n },\n\n defaultProps: {\n size: \"md\",\n },\n};\n","/* eslint-disable eslint-comments/disable-enable-pair */\nimport { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nconst outlineVariantStyle = {\n field: {\n borderWidth: \"1px\",\n borderColor: \"gray.300\",\n color: \"gray.900\",\n\n _placeholder: {\n color: \"gray.500\",\n },\n\n _hover: {\n boxShadow: \"none\",\n borderColor: \"gray.400\",\n },\n\n _invalid: {\n bg: \"white\",\n boxShadow: \"none\",\n borderColor: \"red.700\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"red.700\",\n },\n\n _focus: {\n boxShadow: \"none\",\n borderColor: \"brand.600\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"brand.600\",\n\n _invalid: {\n backgroundColor: \"white\",\n borderColor: \"red.300\",\n outlineColor: \"red.300\",\n },\n },\n\n _focusVisible: {\n boxShadow: \"none\",\n borderColor: \"brand.600\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"brand.600\",\n\n _invalid: {\n backgroundColor: \"white\",\n borderColor: \"red.300\",\n outlineColor: \"red.300\",\n },\n },\n\n _disabled: {\n opacity: 1,\n backgroundColor: \"gray.100\",\n color: \"gray.500\",\n\n _hover: {\n borderColor: \"gray.300\",\n },\n },\n },\n};\n\nexport const Select: ComponentSingleStyleConfig = {\n baseStyle: {\n field: {\n fontSize: \"lg\",\n borderRadius: 8,\n boxShadow: \"none\",\n backgroundColor: \"white\",\n outlineOffset: 0,\n },\n icon: {\n color: \"gray.600\",\n },\n },\n variants: {\n outline: outlineVariantStyle,\n },\n sizes: {\n sm: {\n field: {\n fontSize: \"sm\",\n height: 10,\n borderRadius: 6,\n },\n addon: {\n height: 10,\n },\n element: {\n height: 10,\n },\n },\n md: {\n field: {\n fontSize: \"md\",\n height: 12,\n paddingStart: 3,\n paddingEnd: 3,\n },\n addon: {\n height: 12,\n },\n element: {\n height: 12,\n },\n },\n lg: {\n field: {\n fontSize: \"lg\",\n height: \"60px\",\n paddingStart: 3,\n paddingEnd: 3,\n },\n addon: {\n height: \"60px\",\n },\n element: {\n height: \"60px\",\n },\n },\n },\n defaultProps: {\n size: \"lg\",\n focusBorderColor: \"brand.600\",\n },\n};\n","import { ComponentSingleStyleConfig } from \"@chakra-ui/react\";\n\nexport const Switch: ComponentSingleStyleConfig = {\n baseStyle: {\n track: {\n bg: \"gray.400\",\n _checked: {\n bg: \"green.600\",\n },\n },\n },\n};\n","import { Button } from \"./Button\";\nimport { Checkbox } from \"./Checkbox\";\nimport { Link } from \"./Link\";\nimport { Text } from \"./Text\";\nimport { Divider } from \"./Divider\";\nimport { Container } from \"./Container\";\nimport { ExpandableText } from \"./ExpandableText\";\nimport { Heading } from \"./Heading\";\nimport { Input } from \"./Input\";\nimport { Form } from \"./Form\";\nimport { FormLabel } from \"./FormLabel\";\nimport { FormError } from \"./FormError\";\nimport { Paper } from \"./Paper\";\nimport { Radio } from \"./Radio\";\nimport { Select } from \"./Select\";\nimport { Switch } from \"./Switch\";\n\nexport const components = {\n Button,\n Checkbox,\n Link,\n Text,\n Divider,\n ExpandableText,\n Container,\n Heading,\n Input,\n Form,\n FormLabel,\n FormError,\n Paper,\n Radio,\n Select,\n Switch,\n};\n","import { Colors } from \"@chakra-ui/react\";\n\nconst green = {\n 50: \"#f0fdf4\",\n 100: \"#dcfce7\",\n 200: \"#bbf7d0\",\n 300: \"#86efac\",\n 400: \"#4ade80\",\n 500: \"#22c55e\",\n 600: \"#16a34a\",\n 700: \"#15803d\",\n 800: \"#166534\",\n 900: \"#14532d\",\n};\n\nconst red = {\n 50: \"#FEF2F2\",\n 100: \"#FEE2E2\",\n 200: \"#FECACA\",\n 300: \"#FCA5A5\",\n 400: \"#F87171\",\n 500: \"#EF4444\",\n 600: \"#DC2626\",\n 700: \"#B91C1C\",\n 800: \"#991B1B\",\n 900: \"#7F1D1D\",\n};\n\n/**\n * Neutral palette\n *\n * This will probably want to eventually become the default for the\n * ui package and let `pop` apply its own custom gray\n */\nconst gray = {\n 50: \"#FAFAFA\",\n 100: \"#F4F4F5\",\n 200: \"#E4E4E7\",\n 300: \"#D4D4D8\",\n 400: \"#A1A1Aa\",\n 500: \"#6F6F7A\",\n 600: \"#52525b\",\n 700: \"#3f3f46\",\n 800: \"#27272a\",\n 900: \"#18181b\",\n};\n\n/**\n * ESI sourced from their brand guidelines\n */\nexport const esi = {\n 200: \"#EAEAEA\",\n 300: \"#EAEAEA\",\n 500: \"#035C67\",\n 600: \"#035C67\",\n 700: \"#00363D\",\n 800: \"#00171A\",\n 900: \"#035C67\",\n};\n\n/**\n * CarePlus sourced from their brand guidelines\n */\nexport const careplus = {\n 200: \"#E6E7E8\",\n 300: \"#E6E7E8\",\n 500: \"#0062A6\",\n 600: \"#0062A6\",\n 700: \"#152349\",\n 800: \"#152349\",\n 900: \"#D11D2E\",\n};\n\n/**\n * Humana sourced from their brand guidelines\n */\nexport const humana = {\n 200: \"#C8C8C8\",\n 300: \"#C8C8C8\",\n 500: \"#612166\",\n 600: \"#612166\",\n 700: \"#4C1A51\",\n 800: \"#4C1A51\",\n 900: \"#5C9A1B\",\n};\n\n/**\n * Acme Corp. yellow (fake)\n */\nexport const acme = {\n 50: \"#FAF9EB\",\n 100: \"#F0EDC6\",\n 200: \"#E7E2A2\",\n 300: \"#DED77D\",\n 400: \"#D4CC58\",\n 500: \"#CBC034\",\n 600: \"#A29A2A\",\n 700: \"#7A731F\",\n 800: \"#514D15\",\n 900: \"#29260A\",\n};\n\n/**\n * Globex red (fake)\n */\nexport const globex = {\n 50: \"#FAEBEB\",\n 100: \"#F0C6C6\",\n 200: \"#E7A2A2\",\n 300: \"#DD7E7E\",\n 400: \"#D45959\",\n 500: \"#CA3535\",\n 600: \"#A22A2A\",\n 700: \"#792020\",\n 800: \"#511515\",\n 900: \"#280B0B\",\n};\n\nconst brandDefault = {\n 200: \"#C8C8C8\",\n 300: \"#C8C8C8\",\n 500: \"#52525B\",\n 600: \"#52525B\",\n 700: \"#3F3F46\",\n 800: \"#27272A\",\n 900: \"#1D1D1F\",\n};\n\nconst focusState = \"#1967D2\";\n\nexport const brandColors = {\n esi,\n careplus,\n humana,\n acme,\n globex,\n};\n\nconst icons = {\n duotone: {\n grayscale: {\n color1: gray[300],\n color2: gray[400],\n color3: gray[500],\n },\n },\n};\n\nexport const colors: Colors = {\n gray,\n green,\n red,\n brand: brandDefault,\n focusState,\n icons,\n};\n","import { ChakraTheme } from \"@chakra-ui/react\";\n\nimport { components } from \"./components\";\nimport { colors } from \"./colors\";\n\nexport * from \"./textSizes\";\n\nexport const styles = {\n global: {\n body: {\n background: \"white\",\n },\n },\n};\n\n/**\n * Font sizes\n */\nexport const fontSizes = {\n sm: \"0.875rem\", // 14px\n base: \"0.9375rem\", // 15px\n md: \"1rem\", // 16px\n lg: \"1.0625rem\", // 17px\n xl: \"1.25rem\", // 20px\n \"2xl\": \"1.5rem\", // 24px\n \"3xl\": \"1.875rem\", // 30px\n \"4xl\": \"2.25rem\", // 36px\n \"5xl\": \"3rem\", // 48px\n};\n\n/**\n * Line heights\n */\nexport const lineHeights = {\n sm: \"1.25rem\", // 20px\n base: \"1.375rem\", // 22px\n md: \"1.375rem\", // 22px\n lg: \"1.5rem\", // 24px\n xl: \"1.75rem\", // 28px\n \"2xl\": \"2rem\", // 32px\n \"3xl\": \"2.25rem\", // 36px\n \"4xl\": \"2.625rem\", // 42px\n \"5xl\": \"3.25rem\", // 52px\n};\n\n/**\n * Theme customizations\n */\nexport const theme: Partial = {\n colors,\n components,\n styles,\n fontSizes,\n lineHeights,\n};\n","import { Flex, Heading } from \"@chakra-ui/react\";\nimport { Text, Icon, IconKey } from \"@paytient/ui\";\n\nexport type CardProps = {\n id: string;\n content: string;\n title: string;\n icon: {\n name: IconKey;\n color: string;\n };\n testId?: string;\n};\n\nexport const Card = (card: CardProps) => {\n return (\n \n \n \n {card.title}\n \n \n {card.content}\n \n \n );\n};\n","/* eslint-disable @typescript-eslint/restrict-template-expressions */\nimport React, { ReactElement } from \"react\";\nimport { Flex, IconButton, FlexProps, Box } from \"@chakra-ui/react\";\n\ninterface ControlProps extends FlexProps {\n /**\n * Left icon to show on the control with its onClick\n *\n */\n leftIconProps?: {\n icon: ReactElement;\n onClick: () => void;\n isDisabled?: boolean;\n ariaLabel: string;\n testId?: string;\n };\n /**\n * Right icon to show on the control with its onClick\n *\n */\n rightIconProps?: {\n icon: ReactElement;\n onClick: () => void;\n isDisabled?: boolean;\n ariaLabel: string;\n testId?: string;\n };\n /**\n * Children to show in the control\n *\n */\n children?: string | React.ReactNode;\n testId?: string;\n}\n\ninterface ControlIconButtonProps {\n icon?: ReactElement;\n isDisabled?: boolean;\n onClick?: () => void;\n ariaLabel?: string;\n testId?: string;\n}\n\nconst ControlIconButton = ({\n icon,\n isDisabled,\n onClick,\n ariaLabel,\n testId,\n}: ControlIconButtonProps) => {\n return (\n \n );\n};\n\nexport const Control: React.FC = ({\n children,\n rightIconProps,\n leftIconProps,\n testId = \"control\",\n ...rest\n}) => {\n const hasLeftIcon = Boolean(leftIconProps?.onClick);\n const hasRightIcon = Boolean(rightIconProps?.onClick);\n\n const getLeftIcon = () => {\n if (hasLeftIcon) {\n return (\n \n );\n }\n return ;\n };\n\n const getRightIcon = () => {\n if (hasRightIcon) {\n return (\n \n );\n }\n return ;\n };\n\n return (\n \n {getLeftIcon()}\n {children}\n {getRightIcon()}\n \n );\n};\n","import React from \"react\";\nimport {\n Divider as ChakraDivider,\n DividerProps as ChakraDividerProps,\n} from \"@chakra-ui/react\";\n\n/**\n *\n * @param props Divider props\n *\n * This component was created to accomodate for Axe tests where aria-orientation is forbidden and
tags are not allowed.\n */\nexport const Divider: React.FC = (props) => {\n return ;\n};\n","import React from \"react\";\nimport { Flex, Divider, Box, Image, Container } from \"@chakra-ui/react\";\nimport { Select, Text, Link, Icon } from \"@paytient/ui\";\n\ntype Option = { label: string; value: string };\n\ntype LanguageSelect = {\n label: string;\n onToggle: (language: string) => void;\n current?: string;\n options: Option[];\n};\n\ntype FooterLink = {\n label: string;\n ariaLabel: string;\n href: string;\n};\n\ntype Props = {\n sponsor: {\n logoUrl?: string;\n website: string;\n linkAriaLabel: string;\n logoAriaLabel: string;\n };\n language?: LanguageSelect;\n rightsCopy: string;\n footerLinks?: FooterLink[];\n customBottomContent?: React.ReactNode;\n};\n\nexport const Footer: React.FC = ({\n sponsor: { logoUrl, website, linkAriaLabel, logoAriaLabel },\n language,\n rightsCopy,\n footerLinks = [],\n customBottomContent,\n}: Props) => {\n return (\n \n \n \n \n \n {logoUrl ? (\n \n \n \n ) : (\n \n )}\n
\n {language ? (\n \n \n {language.options.map((lang) => (\n \n ))}\n \n
\n ) : null}\n \n \n {/* If Paytient Calc we get and use customBottomContent, otherwise render standard footerLinks */}\n {customBottomContent ?? (\n \n {footerLinks.map((link) => (\n \n {link.label}\n \n ))}\n \n )}\n \n \n {rightsCopy}\n \n \n \n \n \n );\n};\n","import { Container, Flex, Text } from \"@chakra-ui/react\";\nimport { Button } from \"@paytient/ui\";\nimport { trackHeapEvent } from \"@paytient/common\";\nimport { PhoneIcon } from \"@chakra-ui/icons\";\nimport Markdown from \"markdown-to-jsx\";\n\ntype ContactInfo = {\n message: string;\n phone: string;\n};\n\ntype ButtonProps = {\n label: string;\n ariaLabel: string;\n};\n\nexport type ContactUsProps = {\n contactInfo: ContactInfo;\n buttonProps: ButtonProps;\n};\n\nexport const ContactUs = ({ contactInfo, buttonProps }: ContactUsProps) => {\n const handleCall = () => {\n trackHeapEvent(\"Clicked Call Support Button\");\n window.open(`tel:${contactInfo.phone}`, \"_self\");\n };\n\n if (!contactInfo.phone || !contactInfo.message) return null;\n\n return (\n \n \n \n }\n aria-label={buttonProps.ariaLabel}\n onClick={() => handleCall()}\n >\n {buttonProps.label}\n \n \n {contactInfo.message}\n \n \n \n \n );\n};\n","import { ReactElement } from \"react\";\nimport {\n Accordion,\n AccordionButton,\n AccordionIcon,\n AccordionItem,\n AccordionPanel,\n Box,\n Container,\n Flex,\n Heading,\n ListItem,\n Text,\n UnorderedList,\n} from \"@chakra-ui/react\";\nimport Markdown from \"markdown-to-jsx\";\n\ntype FAQItem = {\n title: string;\n content: string;\n};\n\nexport type FAQProps = {\n title: string;\n markdown?: string;\n items?: FAQItem[];\n testId?: string;\n};\n\nconst CustomLi = ({ children }) => {\n return {children};\n};\n\nconst FAQAccordionItem = ({ children, title, testId }) => {\n return (\n \n

\n \n \n \n {title}\n \n \n \n \n

\n \n \n {children}\n \n \n \n );\n};\n\nexport const FAQs = ({ markdown, title }: FAQProps): ReactElement => {\n return (\n \n \n \n {title}\n \n \n {markdown as string}\n \n \n \n \n \n );\n};\n","import { ReactElement } from \"react\";\nimport { Divider, Flex } from \"@chakra-ui/react\";\nimport { BottomSheet } from \"@paytient/ui\";\n\nimport { ContactUs, ContactUsProps } from \"./ContactUs\";\nimport { FAQs, FAQProps } from \"./FAQs\";\n\nexport type HelpBottomSheetProps = {\n isOpen: boolean;\n onClose: () => void;\n title: string;\n contactProps: ContactUsProps;\n faqProps: FAQProps;\n};\n\nexport const HelpBottomSheet = ({\n isOpen,\n onClose,\n contactProps,\n faqProps,\n title,\n}: HelpBottomSheetProps): ReactElement => {\n return (\n \n \n \n \n \n \n \n );\n};\n","/* eslint-disable import/no-duplicates */\nimport { useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { setDefaultOptions } from \"date-fns\";\nimport { es, enUS } from \"date-fns/locale\";\n\nexport const LanguageSync = () => {\n const { i18n } = useTranslation();\n\n useEffect(() => {\n if (i18n.resolvedLanguage === \"es\") {\n setDefaultOptions({ locale: es });\n } else {\n setDefaultOptions({ locale: enUS });\n }\n }, [i18n.resolvedLanguage]);\n\n return null;\n};\n","import { forwardRef } from \"react\";\nimport { Box, InputProps } from \"@chakra-ui/react\";\nimport { CurrencyInput, CurrencyInputProps } from \"@paytient/ui\";\nimport { InputValidationProps } from \"../PaymentAmountWidget\";\n\ntype OtherAmountProps = {\n value: number | null;\n onChange: (amount: number | null) => void;\n inputValidation?: InputValidationProps;\n size?: InputProps[\"size\"];\n ariaLabel?: string;\n};\n\ntype Ref = HTMLInputElement;\n\nexport const OtherAmountInput = forwardRef(\n ({ value, onChange, inputValidation, size = \"md\", ariaLabel }, ref) => {\n return (\n \n {\n onChange(amount ? Number(amount) : null);\n }}\n handleBlur={() => {\n if (!value) {\n onChange(null);\n }\n }}\n data-testid=\"other-amount-input\"\n id=\"otherAmount\"\n name=\"otherAmount\"\n aria-label={ariaLabel ?? \"Other Amount\"}\n placeholder=\"$0.00\"\n textAlign=\"right\"\n onKeyPress={(e) => {\n e.which === 13 && e.preventDefault();\n }}\n _focus={{\n ...(inputValidation?.type === \"error\"\n ? {\n borderColor: \"red.700\",\n outline: 1,\n outlineStyle: \"solid\",\n outlineColor: \"red.700\",\n }\n : {}),\n }}\n size={size as unknown as CurrencyInputProps[\"size\"]}\n />\n \n );\n },\n);\n\nOtherAmountInput.displayName = \"OtherAmountInput\";\n","import React from \"react\";\nimport { Box, BoxProps } from \"@chakra-ui/react\";\n\ninterface ProgressBarProps extends Omit {\n barColor?: string;\n percentage: number;\n testId?: string;\n height?: number;\n minWidth?: number;\n}\n\nexport const ProgressBar: React.FC = ({\n percentage,\n barColor = \"purple.500\",\n testId = \"progress-bar\",\n height = 4,\n minWidth = height,\n ...rest\n}) => (\n \n \n \n);\n","import { Box, Text } from \"@chakra-ui/react\";\n\ntype OptInLabelProps = {\n label: string;\n};\n\nexport const OptInLabel: React.FC = ({ label }) => {\n return (\n \n \n {label}\n \n \n );\n};\n","import { Box, Text } from \"@chakra-ui/react\";\n\ntype OptInLabelRowProps = {\n label: string;\n};\n\nexport const OptInLabelRow: React.FC = ({ label }) => {\n return (\n \n \n {label}\n \n \n );\n};\n","import { Box, Text } from \"@chakra-ui/react\";\n\ntype YearTagProps = {\n year?: number | null;\n};\n\nexport const YearTag: React.FC = ({ year }) => {\n return (\n \n \n {year}\n \n \n );\n};\n","import { Box, Text } from \"@chakra-ui/react\";\n\ntype YearTagRowProps = {\n year?: number | null;\n};\n\nexport const YearTagRow: React.FC = ({ year }) => {\n return (\n \n \n {year}\n \n \n );\n};\n","import { Flex, Text } from \"@chakra-ui/react\";\nimport { formatCurrency } from \"@paytient/common\";\nimport { MonthItem } from \"../ResultsGrid\";\n\ntype MonthContentProps = {\n item: MonthItem;\n asRow: boolean;\n paymentPastDueLabel: string;\n paymentAppliedLabel: string;\n};\n\nconst getItemProps = (item: MonthItem, paymentAppliedLabel: string) => {\n if (item.minimumAmountDue === undefined) {\n return { color: \"black\", value: \"$ --\" };\n }\n if (item.status === \"PAST_DUE\") {\n return { color: \"red.700\", value: formatCurrency(item.minimumAmountDue) };\n }\n if (item.status === \"PAID\") {\n return { color: \"green.700\", value: paymentAppliedLabel };\n }\n return { color: \"black\", value: formatCurrency(item.minimumAmountDue) };\n};\n\nexport const MonthContent: React.FC = ({\n item,\n asRow,\n paymentPastDueLabel,\n paymentAppliedLabel,\n}) => {\n const itemProps = getItemProps(item, paymentAppliedLabel);\n\n return (\n \n \n {item.name.slice(0, 3)}\n \n \n {itemProps.value}\n \n {item.status === \"PAST_DUE\" && (\n \n {paymentPastDueLabel}\n \n )}\n \n );\n};\n","import { Box, Flex, Grid, GridItem } from \"@chakra-ui/react\";\nimport { OptInLabel } from \"./OptInLabel\";\nimport { OptInLabelRow } from \"./OptInLabelRow\";\nimport { YearTag } from \"./YearTag\";\nimport { YearTagRow } from \"./YearTagRow\";\nimport { MonthContent } from \"./MonthContent\";\n\nexport type MonthItemStatus =\n | \"PAID\"\n | \"PAST_DUE\"\n | \"OPEN\"\n | \"PROJECTED\"\n | \"INACTIVE\";\n\nexport type MonthItem = {\n name: string;\n value: string;\n minimumAmountDue?: number | undefined;\n status?: MonthItemStatus;\n};\n\ntype SelectedMonthItem = {\n name: string | null;\n label: string;\n};\n\ntype ResultsGridProps = {\n months?: MonthItem[];\n selectedMonth?: SelectedMonthItem;\n selectedYear: number;\n paymentAppliedLabel?: string;\n paymentPastDueLabel?: string;\n asRow?: boolean;\n // after NCY is live we can remove this prop and have the year tag always show in all packages\n showYearTag?: boolean;\n};\n\nexport const ResultsGrid: React.FC = ({\n months,\n selectedMonth,\n selectedYear,\n paymentAppliedLabel = \"Paid\",\n paymentPastDueLabel = \"Past Due\",\n asRow = false,\n showYearTag = false,\n}) => {\n if (!months) {\n return null;\n }\n const nextYear = selectedYear + 1;\n\n return (\n \n \n {months.map((item, index) => {\n const isDisabled = item.status === \"INACTIVE\";\n const testId = `results-${item.value}${isDisabled ? \"-disabled\" : \"\"}`;\n const backgroundColor = isDisabled ? \"gray.100\" : \"white\";\n const isSelectedMonth = item.value === selectedMonth?.name;\n const addYearTag =\n showYearTag && index !== 0 && item.value === \"JANUARY\" && nextYear;\n\n return (\n \n \n {isSelectedMonth &&\n (asRow ? (\n \n ) : (\n \n ))}\n {addYearTag &&\n (asRow ? (\n \n ) : (\n \n ))}\n \n \n \n );\n })}\n \n \n );\n};\n","import { ReactElement } from \"react\";\nimport {\n Box,\n Container,\n VStack,\n chakra as ChakraComponent,\n} from \"@chakra-ui/react\";\nimport { Button, Heading, Text } from \"@paytient/ui\";\nimport { FullScreenLayoutProps } from \"./types\";\n\nexport type { FullScreenLayoutProps };\n\nexport const FullScreenLayout = ({\n children,\n testId,\n topContent,\n customTopContent,\n primaryButtonProps,\n secondaryButtonProps,\n stickyButtons = true,\n hideButtons = false,\n backgroundColor = \"white\",\n}: FullScreenLayoutProps): ReactElement => {\n return (\n {\n event.preventDefault();\n primaryButtonProps.onClick();\n }}\n backgroundColor={backgroundColor}\n >\n {customTopContent ? customTopContent : null}\n \n \n {topContent ? (\n \n \n {topContent.title}\n \n {topContent.subtitle ? (\n \n {topContent.subtitle}\n \n ) : null}\n \n ) : null}\n {children &&\n Array.isArray(children) &&\n children.map((child, index) => (\n \n {child}\n \n ))}\n {children && !Array.isArray(children) && (\n {children}\n )}\n \n \n {hideButtons ? null : (\n \n \n \n \n {primaryButtonProps.text}\n \n {secondaryButtonProps ? (\n \n ) : null}\n \n \n \n )}\n \n );\n};\n","import { useState, useEffect } from \"react\";\n\n// Must be used in vite package\nexport function useClientFaq(\n filename: string,\n resolvedLanguage: string = \"en\",\n) {\n const [clientFaq, setClientFaq] = useState(\"\");\n\n useEffect(() => {\n async function getFaq() {\n // TODO these files should probably be kept in the CDN\n const faq = await import(\n `../assets/faq/${resolvedLanguage}/${filename}.md?raw`\n );\n setClientFaq(faq.default);\n }\n getFaq();\n }, [filename, resolvedLanguage]);\n return clientFaq;\n}\n","import { useEffect } from \"react\";\n\nexport const useSetPageTitle = (title: string) => {\n useEffect(() => {\n if (document && title) {\n document.title = title;\n } else {\n throw new Error(\n \"Document must be available and title cannot be undefined\",\n );\n }\n }, [title]);\n};\n"],"file":"assets/m3p-core-package-CkNyMRBH.js"}