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KAAK,mBAEJ3E,EAAe,cACfkG,GAAa,GAAAlJ,EAAAK,GAAA,EAACyK,EAAAA,CAAaA,CAAAA,CAAChL,UAAU,eAAeqB,MAAO,aAKvE,0DC3OO,IAAMC,EAAO2F,CAAAA,EAAAA,QAAAA,UAAAA,EAAW,SAC7BhH,CAAgB,CAChBiH,CAA0C,EAE1C,MACE,GAAAM,EAAAjH,GAAA,EAAC0K,EAAAA,CAAuBA,CAAAA,UACtB,GAAAzD,EAAAjH,GAAA,EAAC2K,EAAAA,OAAQA,CAAAA,CACPlL,UAAU,yCACT,GAAGC,CAAK,CACTiH,IAAKA,KAIb,EAEAV,CAAAA,EAAA2E,CAAA,CAAe7J,+CCRfkF,CAAAA,EAAA2E,CAAA,CAZA,SAAcpL,CAA4D,KAA5D,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAA4C,CAA5DF,EACZ,MACE,GAAAyH,EAAAjH,GAAA,EAAC6K,IAAAA,CACE,GAAGnL,CAAK,CACTD,UAAWK,CAAAA,EAAAA,EAAAA,CAAAA,EAAKL,EAAW,8CAC3B2H,YAAU,QAGhB","sources":["webpack://_N_E/../../packages/ui/src/LeftNav/LeftNav.tsx","webpack://_N_E/./src/components/HeaderLink/index.tsx","webpack://_N_E/./src/components/BuyflowNav/BuyflowNav.tsx","webpack://_N_E/./src/components/BuyflowNav/hooks.tsx","webpack://_N_E/./src/components/BuyflowNav/index.ts","webpack://_N_E/./src/redux/features/eligibility.ts","webpack://_N_E/../../packages/ui/src/Link/index.ts","webpack://_N_E/../../packages/ui/src/Button/Button.tsx","webpack://_N_E/../../packages/ui/src/Fieldset/Fieldset.tsx","webpack://_N_E/../../packages/ui/src/Fieldset/index.ts","webpack://_N_E/../../packages/ui/src/InputField/InputField.tsx","webpack://_N_E/../../packages/ui/src/Form/Form.tsx","webpack://_N_E/../../packages/ui/src/Link/Link.tsx","webpack://_N_E/../../packages/ui/src/Text/Text/Text.tsx"],"sourcesContent":["\"use client\";\n\nimport clsx from \"clsx\";\nimport { default as React } from \"react\";\n\nexport type LeftNavProps = {\n header?: React.ReactElement | string;\n title?: string;\n} & React.ComponentPropsWithoutRef<\"nav\">;\n\nexport default function LeftNav({ className, ...props }: LeftNavProps) {\n return (\n \n {props.header ? {props.header} : null}\n {props.title ? (\n {props.title}\n ) : null}\n {props.children}\n \n );\n}\n\nexport function LeftNavHeader({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return
;\n}\n\nexport function LeftNavBody({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n [data-slot=section]+[data-slot=section]]:mt-8\",\n )}\n />\n );\n}\n\nexport function LeftNavFooter({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n [data-slot=section]+[data-slot=section]]:mt-2.5\",\n )}\n />\n );\n}\n\nexport function LeftNavSectionTitle({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n \n {props.children}\n
\n );\n}\n\nexport function LeftNavDivider({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"hr\">) {\n return (\n \n );\n}\n\nexport function LeftNavSpacer({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"div\">) {\n return (\n \n );\n}\n\nexport function LeftNavItem({\n className,\n complete,\n current,\n icon,\n subtitle,\n title,\n ...props\n}: {\n className?: string;\n complete?: boolean;\n current?: boolean;\n icon: React.ReactElement;\n subtitle?: string;\n title: string;\n}) {\n return (\n \n \n {icon}\n \n
\n
{title}
\n
{subtitle}
\n
\n \n );\n}\n\nexport function LeftNavLabel({\n className,\n ...props\n}: React.ComponentPropsWithoutRef<\"span\">) {\n return ;\n}\n","import { Route } from \"next\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\n\nconst HeaderLink: React.FC<{ height?: number; width: number }> = ({\n height = 1,\n width,\n}) => {\n return (\n \n \n \n );\n};\n\nexport default HeaderLink;\n","\"use client\";\n\nimport {\n ClipboardDocumentListIcon,\n Cog6ToothIcon,\n CreditCardIcon,\n UserCircleIcon,\n} from \"@heroicons/react/24/outline\";\nimport LeftNav, { LeftNavItem } from \"@repo/ui/LeftNav\";\nimport { usePathname } from \"next/navigation\";\nimport { useTranslations } from \"next-intl\";\nimport React from \"react\";\n\nimport { NO_INSURANCE_SELECTED, User } from \"../../redux/features/user\";\nimport HeaderLink from \"../HeaderLink\";\nimport { getPathIndex } from \"./hooks\";\n\nconst ICON_SIZE = 32;\n\nexport type BuyflowPath =\n | \"/checkout\"\n | \"/checkout/success\"\n | \"/get-started\"\n | \"/service-selection\"\n | \"/sign-up\"\n | \"/sign-up/insurance\";\n\nexport type BuyflowStep =\n | \"checkout\"\n | \"get-started\"\n | \"service-selection\"\n | \"sign-up\";\n\nexport const INELIGIBLE_PATHNAME = \"/ineligible\";\n\nexport type AltPath = \"/new-buyflow\" | typeof INELIGIBLE_PATHNAME;\n\nexport type NavStep = {\n altPathnames: AltPath[];\n icon: typeof ClipboardDocumentListIcon;\n name: BuyflowStep;\n substeps: {\n condition?: (user: Partial) => boolean;\n pathname: BuyflowPath;\n }[];\n};\n\nexport type Substep = NavStep[\"substeps\"][number];\n\nexport const NAV_STEP_ORDER: NavStep[] = [\n {\n altPathnames: [INELIGIBLE_PATHNAME, \"/new-buyflow\"],\n icon: UserCircleIcon,\n name: \"get-started\",\n substeps: [\n {\n pathname: \"/get-started\",\n },\n ],\n },\n {\n altPathnames: [],\n icon: Cog6ToothIcon,\n name: \"service-selection\",\n substeps: [\n {\n pathname: \"/service-selection\",\n },\n ],\n },\n {\n altPathnames: [],\n icon: ClipboardDocumentListIcon,\n name: \"sign-up\",\n substeps: [\n {\n pathname: \"/sign-up\",\n },\n {\n condition: (user: Partial) => {\n return (\n user.insuranceName !== NO_INSURANCE_SELECTED &&\n user.selectedPurchaseOption?.purchaseOptionType !== \"letter\"\n );\n },\n pathname: \"/sign-up/insurance\",\n },\n ],\n },\n {\n altPathnames: [],\n icon: CreditCardIcon,\n name: \"checkout\",\n substeps: [\n {\n pathname: \"/checkout\",\n },\n {\n pathname: \"/checkout/success\",\n },\n ],\n },\n] as const;\n\nexport const SUBSTEP_ORDER = NAV_STEP_ORDER.flatMap(\n (navStep) => navStep.substeps,\n);\n\nconst BuyflowNav: React.FC = () => {\n const pathname = usePathname();\n const getTranslation = useTranslations(\"nav\");\n const currentIndex = getPathIndex(pathname);\n\n return (\n }\n title={getTranslation(\"title\")}\n >\n {NAV_STEP_ORDER.map((navStep, stepIndex) => {\n return (\n }\n key={navStep.name}\n subtitle={getTranslation(`${navStep.name}.subtitle`)}\n title={getTranslation(`${navStep.name}.title`)}\n />\n );\n })}\n \n );\n};\n\nexport default BuyflowNav;\n","\"use client\";\n\nimport { Route } from \"next\";\nimport { usePathname } from \"next/navigation\";\n\nimport { User } from \"../../redux/features/user\";\nimport { useAppSelector } from \"../../redux/hooks\";\nimport {\n AltPath,\n BuyflowPath,\n INELIGIBLE_PATHNAME,\n NAV_STEP_ORDER,\n SUBSTEP_ORDER,\n} from \"./BuyflowNav\";\n\nexport type BuyflowRoute = Route;\n\nexport const getPathIndex = (route: string) => {\n const maybeRouteIndex = NAV_STEP_ORDER.findIndex((navStep) =>\n navStep.substeps.find((substep) => substep.pathname === route),\n );\n const isPrimaryRoute = maybeRouteIndex >= 0;\n const routeIndex = isPrimaryRoute\n ? maybeRouteIndex\n : NAV_STEP_ORDER.findIndex(\n (navStep) =>\n navStep.altPathnames.length &&\n navStep.altPathnames.includes(route as AltPath),\n );\n return routeIndex;\n};\n\ntype PrevNextRoutes = {\n nextPathName: BuyflowRoute;\n prevPathName: BuyflowRoute;\n};\n\nconst getPrevNextRoutes = (currentPath: string, user: Partial) => {\n const pathIndex = SUBSTEP_ORDER.findIndex(\n (step) => step.pathname === currentPath,\n );\n if (pathIndex === -1) {\n return {\n nextPathName: currentPath,\n prevPathName: currentPath,\n } as PrevNextRoutes;\n }\n\n let prevRouteIndex = pathIndex - 1;\n let prevRoute = SUBSTEP_ORDER[pathIndex - 1];\n // finds the previous route that has its condition met or doesn't have a condition\n while (prevRoute && prevRoute.condition && !prevRoute.condition(user)) {\n prevRouteIndex--;\n prevRoute = SUBSTEP_ORDER[prevRouteIndex];\n }\n\n let nextRouteIndex = pathIndex + 1;\n let nextRoute = SUBSTEP_ORDER[nextRouteIndex];\n // finds the next route that has its condition met or doesn't have a condition\n while (nextRoute && nextRoute.condition && !nextRoute.condition(user)) {\n nextRouteIndex++;\n nextRoute = SUBSTEP_ORDER[nextRouteIndex];\n }\n\n if (pathIndex === 0) {\n return {\n nextPathName: nextRoute.pathname,\n prevPathName: currentPath,\n } as PrevNextRoutes;\n }\n\n if (pathIndex === SUBSTEP_ORDER.length - 1) {\n return {\n nextPathName: currentPath,\n prevPathName: prevRoute.pathname,\n } as PrevNextRoutes;\n }\n\n return {\n nextPathName: nextRoute.pathname,\n prevPathName: prevRoute.pathname,\n } as PrevNextRoutes;\n};\n\nexport const useGetPrevNextBuyflowPaths = () => {\n const path = usePathname();\n const user = useAppSelector((state) => state.user);\n\n const defaultPaths = {\n ineligiblePathName: INELIGIBLE_PATHNAME as BuyflowRoute,\n startPathName: NAV_STEP_ORDER[0].substeps[0].pathname as BuyflowRoute,\n };\n\n const nextPevRoutes = getPrevNextRoutes(path, user);\n\n return { ...defaultPaths, ...nextPevRoutes };\n};\n","export { default } from \"./BuyflowNav\";\nexport * from \"./BuyflowNav\";\nexport * from \"./hooks\";\n","import { createApi, fetchBaseQuery } from \"@reduxjs/toolkit/query/react\";\nimport dobToAge from \"dob-to-age\";\nimport queryString from \"query-string\";\nimport Stripe from \"stripe\";\nimport { Simplify } from \"type-fest\";\n\nimport { PurchaseOptionType } from \"../../../../../packages/service-eligibility/src/insurance/purchases\";\nimport {\n EligibilityInput,\n EligibilityOutput,\n} from \"../../../../../packages/service-eligibility/src/user\";\nimport { EligibilityDetails, NO_INSURANCE_SELECTED } from \"../features/user\";\n\ntype OurProductMetadata = {\n buyflow: \"false\" | \"true\";\n};\n\nexport type OurStripeProduct = {\n metadata: OurProductMetadata;\n price: Stripe.Price;\n} & Omit;\n\nexport type OptionsWithStripeProducts = Record<\n PurchaseOptionType,\n OurStripeProduct\n>;\n\nexport type ProductsResponse = {\n products: OurStripeProduct[];\n};\n\nexport type EligibilityBody = Simplify<\n {\n optionsWithStripeProducts: OptionsWithStripeProducts;\n stateAcceptsInsurance: boolean;\n } & EligibilityOutput\n>;\n\n/* Need to use location.origin to be test-compatible:\n * https://mswjs.io/docs/runbook/#rtk-query-requests-are-not-intercepted */\nconst baseUrl =\n process.env.NODE_ENV == \"test\"\n ? new URL(\"/api\", location.origin).href\n : \"/api\";\n\nexport const eligibilityApi = createApi({\n baseQuery: fetchBaseQuery({ baseUrl }),\n endpoints: (builder) => ({\n getUserEligibility: builder.query<\n EligibilityBody,\n Partial\n >({\n query: ({ dob, insuranceName, medicaid, stateOfResidence }) => {\n const age = dob ? dobToAge(dob) : undefined;\n const query: Partial = {\n age,\n insuranceName:\n insuranceName === NO_INSURANCE_SELECTED ? undefined : insuranceName,\n medicaid,\n stateOfResidence,\n };\n\n return queryString.stringifyUrl({ query, url: \"/eligibility\" });\n },\n }),\n }),\n reducerPath: \"eligibility\",\n});\n\nexport const { useGetUserEligibilityQuery } = eligibilityApi;\nexport default eligibilityApi;\n","export { default, type LinkProps } from \"./Link\";\n","import {\n Button as HeadlessButton,\n type ButtonProps as HeadlessButtonProps,\n} from \"@headlessui/react\";\nimport { clsx } from \"clsx\";\nimport { forwardRef } from \"react\";\n\nimport Link from \"../Link\";\nconst styles = {\n base: [\n \"relative isolate inline-flex items-center justify-center gap-x-2 rounded-lg border text-base/6 font-semibold\",\n \"px-[calc(theme(spacing[3.5])-1px)] py-[calc(theme(spacing[2.5])-1px)] sm:px-[calc(theme(spacing.3)-1px)] sm:py-[calc(theme(spacing[1.5])-1px)] sm:text-sm/6\",\n \"focus:outline-none data-[focus]:outline data-[focus]:outline-2 data-[focus]:outline-offset-2 data-[focus]:outline-blue-500\",\n \"data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed\",\n ],\n\n modes: {\n primary: [\n \"border-transparent bg-plume-plum\",\n \"before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.lg)-1px)] before:bg-plume-plum before:shadow\",\n \"after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.lg)-1px)]\",\n \"after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]\",\n \"after:data-[active]:bg-plume-violet after:data-[hover]:bg-plume-violet\",\n \"before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none data-[disabled]:bg-plume-violet\",\n \"text-plume-paper\",\n ],\n secondary: [\n \"border-plume-plum bg-white text-plume-plum data-[active]:bg-plume-plum/[10%] data-[hover]:bg-plume-plum/[10%]\",\n ],\n },\n};\n\nexport type ButtonProps = {\n children: React.ReactNode;\n} & { mode?: keyof typeof styles.modes } & (\n | HeadlessButtonProps\n | React.ComponentPropsWithoutRef\n );\n\nconst Button = forwardRef(function Button(\n { children, className, mode, ...props }: ButtonProps,\n ref: React.ForwardedRef,\n) {\n const classes = clsx(\n className,\n styles.base,\n clsx(styles.modes[mode ?? \"primary\"]),\n );\n\n return \"href\" in props ? (\n }\n >\n {children}\n \n ) : (\n \n {children}\n \n );\n});\n\nexport function TouchTarget({ children }: { children: React.ReactNode }) {\n return (\n <>\n {children}\n \n \n );\n}\n\nexport default Button;\n","import type React from \"react\";\n\nimport * as Headless from \"@headlessui/react\";\nimport clsx from \"clsx\";\n\nexport type FieldsetProps = {\n className?: string;\n disabled?: boolean;\n} & Headless.FieldsetProps;\n\nexport function Fieldset({ className, ...props }: FieldsetProps) {\n return (\n *+[data-slot=control]]:mt-6 [&>[data-slot=text]]:mt-1\",\n )}\n />\n );\n}\n\nexport type FieldType = \"checkbox\" | \"default\";\n\nexport type LegendProps = {\n className?: string;\n} & Omit;\n\nexport function Legend({ ...props }: LegendProps) {\n return (\n \n );\n}\n\nexport function FieldGroup({\n className,\n type,\n ...props\n}: {\n type?: FieldType;\n} & React.ComponentPropsWithoutRef<\"div\">) {\n return (\n \n );\n}\n\nexport type FieldProps = {\n className?: string;\n type?: FieldType;\n} & Headless.FieldProps;\n\nexport function Field({ className, type, ...props }: FieldProps) {\n return (\n [data-slot=control]]:mt-1\",\n \"[&>[data-slot=label]]:font-medium\",\n ]\n : [\n //TODO: style error messaging to be right aligned for check boxes\n \"grid grid-cols-[1.125rem_1fr] items-center gap-x-4 gap-y-1 sm:grid-cols-[1rem_1fr]\",\n \"[&>[data-slot=control]]:col-start-1 [&>[data-slot=control]]:row-start-1 [&>[data-slot=control]]:justify-self-center\",\n \"[&>[data-slot=label]]:col-start-2 [&>[data-slot=label]]:row-start-1 [&>[data-slot=label]]:justify-self-start\",\n \"[&>[data-slot=description]]:col-start-2 [&>[data-slot=description]]:row-start-2\",\n \"[&_[data-slot=label]]:has-[[data-slot=description]]:font-medium\",\n ],\n )}\n {...props}\n />\n );\n}\n\nexport type LabelProps = { className?: string } & Headless.LabelProps;\n\nexport function Label({ className, ...props }: LabelProps) {\n return (\n \n );\n}\n\nexport type DescriptionProps = {\n className?: string;\n disabled?: boolean;\n} & Headless.DescriptionProps;\n\nexport function Description({ className, ...props }: DescriptionProps) {\n return (\n \n );\n}\n\nexport type ErrorMessageProps = DescriptionProps;\n\nexport function ErrorMessage({ className, ...props }: ErrorMessageProps) {\n return (\n \n );\n}\n","export * from \"./Fieldset\";\n","import {\n Description,\n ErrorMessage,\n Field,\n FieldType,\n Label,\n} from \"../Fieldset\";\n\nexport type InputFieldProps = {\n children: React.ReactNode;\n className?: string;\n description?: string;\n disabled?: boolean;\n error?: string;\n label?: React.ReactNode | string;\n required?: boolean;\n type?: FieldType;\n};\n\nconst InputField: React.FC = ({\n children,\n className,\n description,\n disabled,\n error,\n label,\n required,\n type,\n}) => {\n const hasError = Boolean(error);\n return (\n \n {Boolean(label) && typeof label === \"string\" ? (\n \n ) : (\n label\n )}\n {children}\n {hasError && {error}}\n {Boolean(!hasError && description) && (\n {description}\n )}\n \n );\n};\n\nexport default InputField;\n","\"use client\";\n\nimport { ArrowPathIcon } from \"@heroicons/react/20/solid\";\nimport Button from \"@repo/ui/Button\";\nimport { FieldGroup, Fieldset, FieldType, Legend } from \"@repo/ui/Fieldset\";\nimport InputField from \"@repo/ui/InputField\";\nimport Text from \"@repo/ui/Text\";\nimport clsx from \"clsx\";\nimport { MessageKeys } from \"next-intl\";\nimport React from \"react\";\nimport {\n Control,\n Controller,\n ControllerRenderProps,\n FieldValues,\n FormState,\n Path,\n RefCallBack,\n} from \"react-hook-form\";\n\ntype BaseFormTranslations = {\n error?: string;\n legendSubtext: string;\n legendText: string;\n loading: string;\n placeholder?: string;\n primaryCta: string;\n required: string;\n secondaryCta?: string;\n};\n\n// Helper types to add type safety when looking up translations\n// this will prevent you from trying to lookup a field key that doesn't exist\n// on the Form.\ntype BaseFormTranslationsKeys = keyof BaseFormTranslations;\ntype TranslationsKeys =\n | BaseFormTranslationsKeys\n | MessageKeys, Path>>;\n\n// This type couples the form fields with their respective translations\n// so when you implement the translations for a form you can't forget to add copy for a form field\nexport type FormTranslations = {\n fields: {\n [K in keyof FormData]: {\n errorMessage?: string;\n label: string;\n placeholder?: string;\n };\n };\n} & BaseFormTranslations;\n\nexport type FormInputProps<\n FormData extends FieldValues,\n K extends Path,\n> = {\n // We intentionally omit the ref prop from ControllerRenderProps that react hook forms is sending, as it would make every input\n // that we pass to the form component need to be wrapped in a forwardRef due to react explicitly forcing any prop named [ref](https://react.dev/reference/react/forwardRef#returns) to be\n fieldType?: FieldType;\n // forwarded in this way. Instead we have an explicit name for our input refs (inner ref), and do to the name mapping in this component only.\n innerRef: RefCallBack;\n invalid?: boolean;\n} & Omit, \"ref\">;\n\n// Component interface you can type input components as, if you need to declare them outside of the inputs object\nexport type FormInputComponent

= <\n FormData extends FieldValues,\n K extends Path,\n>(\n props: FormInputProps & P,\n) => JSX.Element;\n\nexport type FormProps = {\n className?: string;\n /* The form control object from react-hook-forms */\n control: Control;\n errorText?: string;\n /* The form state object from react-hook-forms */\n formState: FormState;\n /* A function to fetch translations for the form copy, typically the output of useTranslations from next-intl */\n getTranslation: (key: TranslationsKeys) => string;\n /* An array of groups of fields, to decide how to group inputs into sections of the grid */\n groups: {\n disabled?: boolean;\n fields: Path[];\n header?: string;\n type?: FieldType;\n }[];\n /* An object of inputs to render, with each key being a field name and each value being an object with a Component and optional rules of the same interface\n * as the Controller component from react-hook-forms expects. Set rules.required to `true`, when you'd prefer\n * the translation key to come from the validation result of a custom resolver, like Zod.\n */\n inputs: {\n [K in Path]: {\n Component: FormInputComponent;\n error?: string;\n label?: React.ReactNode | string;\n rules?: React.ComponentProps>[`rules`];\n };\n };\n /* The function to call when the form is submitted, typically wrapped in handleSubmit form react-hook-forms */\n onSubmit: (e: React.FormEvent) => Promise;\n // A function to call when the secondary button is clicked, this button will not render unless provided\n secondaryOnClick?: () => void;\n} & React.FormHTMLAttributes;\n\n/*\n * @name Form\n * @description A form component that accepts a list of input components and renders them as inputs in our responsive grid, as well as fetches\n * translations for the form copy. These components must map its props to the actual input components, for the input to be controlled\n * by RHF correctly.\n */\nfunction Form({\n className,\n control,\n errorText,\n formState,\n getTranslation,\n groups,\n inputs,\n onSubmit,\n secondaryOnClick,\n ...props\n}: FormProps) {\n const legendText = getTranslation(\"legendText\");\n const legendSubtext = getTranslation(\"legendSubtext\");\n const [isLoading, setIsLoading] = React.useState(false);\n const [isError, setIsError] = React.useState(false);\n return (\n {\n try {\n setIsLoading(true);\n await onSubmit(...args);\n } catch (e) {\n setIsError(true);\n } finally {\n setIsLoading(false);\n }\n }}\n {...props}\n >\n {Boolean(groups.length) && (\n

\n {Boolean(legendText) && (\n
\n {legendText}\n {Boolean(legendSubtext) && {legendSubtext}}\n
\n )}\n
\n {groups.map(({ disabled, fields, type }) => {\n return (\n 1 || groups.length > 1,\n },\n )}\n key={fields.join()}\n type={type}\n >\n {fields.map((field) => {\n const { Component, error, label, rules } = inputs[field];\n const inputError = formState.errors[field];\n const errorPath =\n inputError?.message?.toString() as TranslationsKeys;\n\n const invalid = Boolean(inputError);\n const labelPath =\n `fields.${field}.label` as TranslationsKeys;\n\n return (\n \n {\n const { ref, ...props } = field;\n return (\n \n );\n }}\n rules={rules}\n />\n \n );\n })}\n \n );\n })}\n
\n\n {isError && !isLoading && Boolean(errorText) && (\n
\n {errorText}\n
\n )}\n
\n )}\n
\n {secondaryOnClick && (\n \n {getTranslation(\"secondaryCta\")}\n \n )}\n \n {getTranslation(\"primaryCta\")}\n {isLoading && }\n \n
\n \n );\n}\n\nexport default Form;\n","import { DataInteractive as HeadlessDataInteractive } from \"@headlessui/react\";\nimport NextLink, { type LinkProps as NextLinkProps } from \"next/link\";\nimport { forwardRef } from \"react\";\n\nexport type LinkProps = NextLinkProps &\n React.ComponentPropsWithoutRef<\"a\">;\n\nexport const Link = forwardRef(function Link(\n props: LinkProps,\n ref: React.ForwardedRef,\n) {\n return (\n \n \n \n );\n});\n\nexport default Link;\n","import { clsx } from \"clsx\";\n\nfunction Text({ className, ...props }: React.ComponentPropsWithoutRef<\"p\">) {\n return (\n \n );\n}\n\nexport type TextProps = React.ComponentProps;\n\nexport default Text;\n"],"names":["LeftNav","param","className","props","jsx_runtime","jsxs","nav","clsx","header","jsx","LeftNavHeader","title","LeftNavSectionTitle","LeftNavBody","children","div","LeftNavItem","complete","current","icon","subtitle","components_HeaderLink","height","width","Link","aria-label","href","process","Image","alt","src","INELIGIBLE_PATHNAME","NAV_STEP_ORDER","altPathnames","UserCircleIcon","name","substeps","pathname","Cog6ToothIcon","ClipboardDocumentListIcon","condition","user","insuranceName","NO_INSURANCE_SELECTED","selectedPurchaseOption","purchaseOptionType","CreditCardIcon","SUBSTEP_ORDER","flatMap","navStep","BuyflowNav_BuyflowNav","usePathname","getTranslation","useTranslations","currentIndex","getPathIndex","HeaderLink","map","stepIndex","concat","maybeRouteIndex","findIndex","find","substep","route","isPrimaryRoute","length","includes","getPrevNextRoutes","currentPath","pathIndex","step","nextPathName","prevPathName","prevRouteIndex","prevRoute","nextRouteIndex","nextRoute","useGetPrevNextBuyflowPaths","path","useAppSelector","state","defaultPaths","ineligiblePathName","startPathName","nextPevRoutes","eligibilityApi","createApi","baseQuery","fetchBaseQuery","baseUrl","endpoints","getUserEligibility","builder","query","dob","medicaid","stateOfResidence","age","dobToAge","undefined","queryString","stringifyUrl","url","reducerPath","useGetUserEligibilityQuery","__webpack_exports__","ZP","primary","secondary","TouchTarget","Fragment","span","aria-hidden","Button_Button","forwardRef","ref","mode","classes","styles","HeadlessButton","Fieldset","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","Headless","Legend","data-slot","FieldGroup","type","Field","Label","Description","ErrorMessage","InputField_InputField","description","disabled","error","label","required","hasError","Boolean","Form_Form","control","errorText","formState","groups","inputs","onSubmit","secondaryOnClick","legendText","legendSubtext","isLoading","setIsLoading","React","isError","setIsError","form","args","e","Text","fields","inputError","Component","rules","field","errors","errorPath","message","toString","invalid","labelPath","InputField","Controller","render","innerRef","join","Button","data-component","onClick","ArrowPathIcon","HeadlessDataInteractive","NextLink","Z","p"],"sourceRoot":""}