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A7J,EAAAC,EAAA,EAACiK,EAAAA,CAAKA,CAAAA,CAAC9H,QAAQ,iBA3DQ,qBA+D1B,CAED,IAAM+H,EAA4BP,EAAcQ,GAAG,CAAChB,GAAiBiB,MAAM,CAACC,EAAAA,CAAaA,SAGzF,IAAIH,EAA0B1D,MAAM,CAAe,IAAI,CAGrD,GAAAzG,EAAAC,EAAA,EAACsK,MAAAA,UACEJ,EAA0BC,GAAG,CAAC,CAACL,EAASS,IACvC,GAAAxK,EAAAC,EAAA,EAACiK,EAAAA,CAAKA,CAAAA,CAAC9H,QAAQ,iBACZ2H,GADyBS,KALqB,iBExHlD,IAAMC,EAAiB,CAACC,EAAsCC,IAA0B,CAC7F,IAAMC,EAAQC,CAAAA,EAAAA,EAAAA,CAAAA,IAERC,EAASH,MAAAA,EAAAA,KAAAA,EAAAA,EAAQG,MAAM,CAC7BC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,IAAM,CACMrL,KAAAA,IAAhBgL,GAA8BE,EAAMI,QAAQ,CAACN,EAAYX,OAAO,GAClEa,EAAM,CACJnD,GAAIiD,EAAYX,OAAO,CACvBkB,OAAQ,IAAM,GAAAjL,EAAAC,EAAA,EAAC0J,EAAgBA,CAACpD,OAAQmE,EAAaI,OAAQA,GAC/D,EAEJ,EAAG,CAACJ,EAAaI,EAAQF,EAAM,CACjC,yDErBO,IAAMM,EAAc,GAAkF,CAC3G,IAAMC,EAAOC,EAAQC,qBAAqB,GAG1C,OAAOF,EAAKG,GAAG,CAAG,GAAKH,EAAKI,MAAM,CAAGC,OAAOC,WAAW,ECE5CtG,EAA+F,GAAW,CACrH,GAAI,CACF,IAAMiG,EAAUM,EAAMC,aAAa,CAGnC,GAAIT,EAAYE,GAAU,OAE1BA,EAAQQ,cAAc,CAAC,CACrBC,MAAO,SACPC,SAAU,MACZ,EAEF,CAAE,MAAAC,EAAM,CAAC,CACX","sources":["webpack://_N_E/./src/components/essentials/form-control/context.ts","webpack://_N_E/./src/components/essentials/form-control/FormControl.tsx","webpack://_N_E/./src/components/essentials/form-control/FormHelperText.tsx","webpack://_N_E/./src/components/essentials/form-control/FormLabel.tsx","webpack://_N_E/./src/components/essentials/form-control/index.ts","webpack://_N_E/./src/components/essentials/input/variant.ts","webpack://_N_E/./src/components/essentials/input/Input.tsx","webpack://_N_E/./src/components/essentials/input/index.ts","webpack://_N_E/./src/components/essentials/tag/variant.ts","webpack://_N_E/./src/components/essentials/tag/Tag.tsx","webpack://_N_E/./src/components/essentials/tag/index.ts","webpack://_N_E/./src/components/fragments/forms/mfacode-form/MfaCodeForm.tsx","webpack://_N_E/./src/components/fragments/forms/mfacode-form/index.ts","webpack://_N_E/./src/components/fragments/forms/password-form/PasswordForm.tsx","webpack://_N_E/./src/components/fragments/forms/password-form/index.ts","webpack://_N_E/./src/components/fragments/apollo/error/ApolloError.tsx","webpack://_N_E/./src/components/fragments/apollo/error/index.ts","webpack://_N_E/./src/hooks/useApolloError/useApolloError.tsx","webpack://_N_E/./src/hooks/useApolloError/index.ts","webpack://_N_E/./src/modules/utils/is-inview-all.ts","webpack://_N_E/./src/modules/utils/scroll-on-focus.ts","webpack://_N_E/"],"sourcesContent":["import { createContext } from \"react\";\n\ninterface FormControlContextValue {\n readonly isRequired: boolean | undefined;\n readonly isDirty: boolean | undefined;\n\n readonly isInvalid: boolean | undefined;\n}\nexport const FormControlContext = createContext({\n isRequired: undefined,\n isDirty: undefined,\n isInvalid: undefined,\n});\n","import { FormControl as ChakraFormControl, type FormControlProps as ChakraFormControlProps } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { formControlTestId } from \"./const\";\nimport { FormControlContext } from \"./context\";\n\nexport interface FormControlProps extends ChakraFormControlProps {\n isDirty?: boolean;\n}\n\nexport const FormControl: FC = ({ isInvalid, isRequired, isDirty, ...props }: FormControlProps) => {\n return (\n \n \n \n );\n};\n","import { FormHelperText as ChakraFormHelperText, forwardRef, Flex } from \"@chakra-ui/react\";\nimport { Box } from \"@/components/essentials/box\";\nimport { type TypographyProps } from \"@/components/essentials/typography\";\nimport { useMemo, useContext } from \"react\";\nimport { injectTypographyVariant } from \"@/components/essentials/typography/variant\";\nimport { FormControlContext } from \"@/components/essentials/form-control/context\";\nimport { Icon } from \"@/components/essentials/icon\";\nimport {\n chakraFormHelperTextTestId,\n checkCircleTestId,\n exclamationCircleTestId,\n formHelperTextBoxTestId,\n formHelperTextTestId,\n} from \"./const\";\n\nexport interface FormHelperTextProps {\n readonly typography?: TypographyProps[\"variant\"];\n readonly isInvalid?: boolean;\n readonly testIdSuffix?: string;\n}\n\nexport const FormHelperText = forwardRef(\n ({ typography = \"text4\", isInvalid, testIdSuffix = \"\", ...rest }, ref) => {\n const typographyProps = useMemo(() => injectTypographyVariant(typography), [typography]);\n\n const { isDirty, isInvalid: isInvalidContext } = useContext(FormControlContext);\n\n const invalid = isInvalid !== undefined ? isInvalid : isInvalidContext;\n return (\n \n {isDirty === true ? (\n invalid === true ? (\n \n ) : (\n \n )\n ) : (\n \n )}\n \n \n );\n },\n);\n","import {\n type FormLabelProps as ChakraFormLabelProps,\n FormLabel as ChakraFormLabel,\n forwardRef,\n Flex,\n} from \"@chakra-ui/react\";\nimport { useMemo, useContext } from \"react\";\nimport { injectTypographyVariant } from \"@/components/essentials/typography/variant\";\nimport { type TypographyProps } from \"@/components/essentials/typography\";\nimport { FormControlContext } from \"./context\";\nimport { Tag } from \"@/components/essentials/tag\";\nimport { css } from \"@emotion/react\";\nimport { chakraFormLabelTestId, formLabelTestId, tagTestId } from \"./const\";\n\nexport interface FormLabelProps extends Omit {\n readonly typography?: TypographyProps[\"variant\"];\n}\n\nexport const FormLabel = forwardRef(\n ({ typography = \"display6\", children, ...rest }: FormLabelProps, ref) => {\n const variantProps = useMemo(() => injectTypographyVariant(typography), [typography]);\n const { isRequired } = useContext(FormControlContext);\n return (\n \n span {\n display: none;\n }\n `}\n >\n {children}\n \n {isRequired && (\n \n 必須\n \n )}\n \n );\n },\n);\n","export * from \"./FormControl\";\nexport * from \"./FormHelperText\";\nexport * from \"./FormLabel\";\nexport * from \"./const\";\n","import { type TypographyProps } from \"@chakra-ui/styled-system\";\nimport { injectTypographyVariant } from \"@/components/essentials/typography/variant\";\nimport { safeGet } from \"@/modules/utils/safe-get\";\nimport { type InputProps } from \"./Input\";\nimport { type InputSize, type InputBreakPointSize } from \"./type\";\n\ninterface InputSizeValue {\n readonly h: InputProps[\"h\"];\n readonly fontSize: TypographyProps[\"fontSize\"];\n readonly fontWeight: TypographyProps[\"fontWeight\"];\n}\n\nconst inputSize = {\n base: {\n h: \"2rem\",\n ...injectTypographyVariant(\"text4\"),\n },\n sm: {\n h: \"2.5rem\",\n ...injectTypographyVariant(\"text3\"),\n },\n md: {\n h: \"2.75rem\",\n ...injectTypographyVariant(\"text2\"),\n },\n lg: {\n h: \"3rem\",\n ...injectTypographyVariant(\"text1\"),\n },\n};\n\nconst switchInputSizeVariant = (size: InputSize): InputSizeValue => {\n return safeGet(inputSize, size);\n};\n\nexport const injectInputSize = (size: InputSize | InputBreakPointSize): InputSizeValue => {\n if (typeof size === \"string\") {\n const { h, fontSize, fontWeight } = switchInputSizeVariant(size);\n return {\n h,\n fontSize,\n fontWeight,\n };\n } else {\n const { h: baseH, fontSize: baseFontSize, fontWeight: baseFontWeight } = switchInputSizeVariant(size.base);\n const { h: smH, fontSize: smFontSize, fontWeight: smFontWeight } = switchInputSizeVariant(size.sm);\n const { h: mdH, fontSize: mdFontSize, fontWeight: mdFontWeight } = switchInputSizeVariant(size.md);\n const { h: lgH, fontSize: lgFontSize, fontWeight: lgFontWeight } = switchInputSizeVariant(size.lg);\n return {\n h: {\n base: baseH as string,\n sm: smH as string,\n md: mdH as string,\n lg: lgH as string,\n },\n fontSize: {\n base: baseFontSize as string,\n sm: smFontSize as string,\n md: mdFontSize as string,\n lg: lgFontSize as string,\n },\n fontWeight: {\n base: baseFontWeight as string,\n sm: smFontWeight as string,\n md: mdFontWeight as string,\n lg: lgFontWeight as string,\n },\n };\n }\n};\n","import { useMemo, type ForwardedRef, type ReactElement, useState } from \"react\";\nimport {\n type InputProps as ChakraInputProps,\n Input as ChakraInput,\n InputGroup,\n forwardRef,\n InputRightElement,\n} from \"@chakra-ui/react\";\nimport { injectInputSize } from \"./variant\";\nimport type { InputSize, InputBreakPointSize } from \"./type\";\nimport { Icon } from \"@/components/essentials/icon\";\nimport { type FieldValues, type UseFormReset } from \"react-hook-form\";\nimport {\n inputTestId,\n chakraInputTestId,\n inputRightElementTestId,\n invisibleEyeSlashInputTestId,\n invisibleEyeInputTestId,\n timesCircleInputTestId,\n} from \"./const\";\nimport { scrollOnFocus } from \"@/modules/utils/scroll-on-focus\";\n\nexport interface InputProps extends Omit {\n readonly size?: InputSize | InputBreakPointSize;\n readonly clear?: UseFormReset;\n readonly invisible?: boolean;\n}\n\nexport const Input = forwardRef(\n (\n {\n _invalid = {\n boxShadow: \"0 0 0 1px var(--chakra-colors-error-main)\",\n bg: \"error.light\",\n _focus: {\n boxShadow: \"0 0 0 1px var(--chakra-colors-error-main)\",\n borderColor: \"error.main\",\n bg: \"error.light\",\n },\n },\n _focus = {\n boxShadow: \"0 0 0 1px var(--chakra-colors-secondary-main)\",\n borderColor: \"secondary.main\",\n bg: \"light.main\",\n },\n size = \"md\",\n type,\n clear,\n invisible,\n ...rest\n }: InputProps,\n ref: ForwardedRef,\n ): ReactElement => {\n const inputSize = useMemo(() => injectInputSize(size), [size]);\n const [invisibleState, setInvisibleState] = useState(invisible);\n\n return (\n \n \n {(clear !== undefined || invisible !== undefined) && (\n \n {invisible && (\n {\n setInvisibleState((state) => !state);\n }}\n data-testid={invisibleState ? invisibleEyeSlashInputTestId : invisibleEyeInputTestId}\n />\n )}\n {clear && (\n {\n clear();\n }}\n data-testid={timesCircleInputTestId}\n />\n )}\n \n )}\n \n );\n },\n);\n","export * from \"./Input\";\n","import { safeGet } from \"@/modules/utils/safe-get\";\nimport { type TagProps } from \"@/components/essentials/tag\";\nimport { type TagBreakpointsSize, type TagSize } from \"./type\";\n\ninterface TagReturnProps {\n readonly py: TagProps[\"py\"];\n readonly px: TagProps[\"px\"];\n}\n\ntype TagSizeValue = Record;\n\nconst tagSize: TagSizeValue = {\n sm: {\n py: \"0.125rem\",\n px: \"0.3125rem\",\n },\n md: {\n py: \"0.3125rem\",\n px: \"0.3125rem\",\n },\n lg: {\n py: \"0.3125rem\",\n px: \"0.3125rem\",\n },\n};\n\nconst switchTagSize = (size: TagSize): TagReturnProps => {\n return safeGet(tagSize, size);\n};\n\nexport const injectTagSize = (size: TagSize | TagBreakpointsSize): TagReturnProps => {\n if (typeof size === \"string\") {\n return switchTagSize(size);\n } else {\n return {\n py: {\n sm: switchTagSize(size.sm).py as string,\n md: switchTagSize(size.md).py as string,\n lg: switchTagSize(size.lg).py as string,\n },\n px: {\n sm: switchTagSize(size.sm).px as string,\n md: switchTagSize(size.md).px as string,\n lg: switchTagSize(size.lg).px as string,\n },\n };\n }\n};\n","import { type ReactNode, type FC, useMemo } from \"react\";\nimport { Tag as ChakraTag, type TagProps as ChakraTagProps } from \"@chakra-ui/react\";\nimport { type AliasColorScheme } from \"@/styles/themes/colors/alias\";\nimport { type TagSize, type TagVariant, type TagBreakpointsSize } from \"./type\";\nimport { injectTypographyVariant } from \"@/components/essentials/typography/variant\";\nimport { type DisplayVariant } from \"@/components/essentials/typography/type\";\nimport { type Breakpoints } from \"@/styles/themes/breakpoints\";\nimport { injectTagSize } from \"./variant\";\nimport { tagTestId } from \"./const\";\n\nexport interface TagProps extends Omit {\n readonly colorScheme: AliasColorScheme;\n readonly variant: TagVariant;\n readonly children: ReactNode;\n readonly typography?: DisplayVariant | Record;\n readonly size?: TagSize | TagBreakpointsSize;\n}\n\nexport const Tag: FC = ({\n children,\n variant,\n colorScheme,\n typography = \"display7\",\n size = \"md\",\n ...rest\n}) => {\n const typographyProps = useMemo(() => injectTypographyVariant(typography), [typography]);\n const tagSizeProps = useMemo(() => injectTagSize(size), [size]);\n return (\n \n {children}\n \n );\n};\n","export * from \"./Tag\";\n","import { type StackProps, PinInput, PinInputField, HStack } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { useFormContext } from \"react-hook-form\";\nimport { FormControl, FormLabel } from \"@/components/essentials/form-control\";\nimport {\n mfaCodeFormLabelTestId,\n mfaCodeFormInputTestId,\n mfaCodeFormInput1TestId,\n mfaCodeFormInput2TestId,\n mfaCodeFormInput3TestId,\n mfaCodeFormInput4TestId,\n mfaCodeFormInput5TestId,\n mfaCodeFormInput6TestId,\n} from \"./const\";\nimport { type MfaCodeFormValue } from \"./type\";\n\nexport interface MfaCodeFormProps extends StackProps {\n readonly label?: string;\n readonly required?: boolean;\n}\n\nexport const MfaCodeForm: FC = ({ label = \"二段階認証コード\", required = true }) => {\n const {\n register,\n setValue,\n getValues,\n formState: { errors },\n } = useFormContext();\n\n return (\n 0}\n isInvalid={errors.mfaCode !== undefined || getValues(\"mfaCode\").length !== 6}\n >\n {label}\n \n {\n setValue(\"mfaCode\", value, { shouldValidate: true, shouldDirty: true });\n }}\n data-testid={mfaCodeFormInputTestId}\n >\n \n \n \n \n \n \n \n \n \n );\n};\n","export * from \"./MfaCodeForm\";\nexport * from \"./type\";\nexport * from \"./const\";\n","import { FormControl, FormHelperText, FormLabel } from \"@/components/essentials/form-control\";\nimport { Input } from \"@/components/essentials/input\";\nimport { type StackProps } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { useFormContext } from \"react-hook-form\";\nimport { passwordFormHelperTextSigninTestId, passwordFormInputTestId, passwordFormLabelTestId } from \"./const\";\nimport { type PasswordFormValue } from \"./type\";\n\nexport interface PasswordFormProps extends StackProps {\n formLabel?: string;\n helperText?: string;\n}\n\nexport const PasswordForm: FC = ({ formLabel, helperText, placeholder, ...rest }) => {\n const {\n register,\n formState: { dirtyFields, errors },\n } = useFormContext();\n\n return (\n \n {formLabel ?? \"パスワード\"}\n \n \n {helperText ?? \"パスワードを入力してください\"}\n \n \n );\n};\n","export * from \"./PasswordForm\";\nexport * from \"./type\";\nexport * from \"./const\";\n","import { Toast } from \"@/components/essentials/toast\";\nimport { type ApolloError } from \"@apollo/client\";\nimport { type GraphQLError } from \"graphql/error\";\nimport { type GraphQLErrorCode } from \"@/apollo/error-code\";\nimport { type GraphQLSubErrorCode, NO_DETAILED_INFORMATION } from \"@/apollo/sub-error-code\";\nimport { isNonNullable } from \"@/modules/utils/predicate\";\nimport { type FC } from \"react\";\nimport { datadogLogs } from \"@datadog/browser-logs\";\nimport { graphQLErrorsTestId, networkErrorTestId } from \"./const\";\n\nexport interface ApolloErrorProps {\n readonly errors: ApolloError | undefined;\n readonly testid?: string;\n}\n\nconst defaultMessageKey = \"_\";\ntype DefaultMessage = typeof defaultMessageKey;\nconst convertDefaultSubCode = (subCode: string): string =>\n subCode === NO_DETAILED_INFORMATION ? defaultMessageKey : subCode;\n\nexport const constGraphQLErrorMessage = {\n GRAPHQL_PARSE_FAILED: \"エラーが発生しました。\",\n GRAPHQL_VALIDATION_FAILED: \"入力内容に不備があります。\",\n BAD_USER_INPUT: {\n INVALID_TOKEN: null,\n INVALID_PASSWORD_INPUT:\n \"パスワードの強度に問題があります。メールアドレスに類似する文字列がパスワードに含まれている可能性があります。\",\n _: \"入力内容に不備があります。\",\n MFA_INCORRECT_CODE: \"二段階認証コードが無効であるか、期限が切れています。\",\n MFA_VERIFY_PASSWORD_EXPIRED: \"パスワード認証の期限が切れています。\",\n INVALID_RECOVERY_CODE: \"リカバリコードが無効であるか、利用済みです。\",\n },\n UNAUTHENTICATED: {\n FAILED_TO_SIGN_IN: \"サインインに失敗しました。\",\n LOCKED:\n \"試行回数が上限を超えました。ユーザー保護のため、現在サインイン又は新規登録をすることはできません。しばらくしてからもう一度お試しください。\",\n },\n FORBIDDEN: {\n MFA_ALREADY_REGISTERED: \"既に二段階認証はオンです。\",\n MFA_LOCKED:\n \"試行回数が上限を超えました。ユーザー保護のため、現在サインイン又は新規登録をすることはできません。しばらくしてからもう一度お試しください。\",\n _: \"ご利用にはサインインが必要です。\",\n },\n PERSISTED_QUERY_NOT_FOUND: \"エラーが発生しました。\",\n PERSISTED_QUERY_NOT_SUPPORTED: \"エラーが発生しました。\",\n INTERNAL_SERVER_ERROR: \"エラーが発生しました。\",\n NOT_FOUND: \"エラーが発生しました。\",\n} as const;\n\n// to type check\nexport const GraphQLErrorMessage: Record<\n GraphQLErrorCode,\n string | Partial>\n> = constGraphQLErrorMessage;\n\n// to accept other string\ntype AcceptAnyCode = Record>;\nexport const ErrorMessage: AcceptAnyCode = GraphQLErrorMessage;\n\nexport const OTHER_ERROR = \"予期せぬエラーが発生しました。\";\n\nexport const NETWORK_ERROR = \"ネットワークエラーが発生しました。\";\n\nexport const getErrorMessage = ({ extensions: { code, subCode } }: GraphQLError): string | null => {\n if (typeof code !== \"string\") {\n datadogLogs.logger.warn(\"unreachable code: the code is unexpected type at getErrorMessage\", {\n typeofCode: typeof code,\n });\n return OTHER_ERROR;\n }\n\n const messageOrRecord = ErrorMessage[code];\n\n if (messageOrRecord === undefined) {\n datadogLogs.logger.warn(\"unreachable code: the code is not defined at getErrorMessage\", {\n code,\n });\n return OTHER_ERROR;\n }\n\n // return message for code\n // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n if (typeof messageOrRecord === \"string\") return messageOrRecord;\n\n if (typeof subCode !== \"string\") {\n datadogLogs.logger.warn(\"unreachable code: the sub code is unexpected type at getErrorMessage\", {\n subCode,\n });\n return OTHER_ERROR;\n }\n\n const messageOrNull = messageOrRecord[convertDefaultSubCode(subCode)];\n\n if (messageOrNull === undefined) {\n datadogLogs.logger.warn(\"unreachable code: the sub code not defined at getErrorMessage\", {\n subCode,\n });\n return OTHER_ERROR;\n }\n\n // message or null for the sub code\n return messageOrNull;\n\n /* eslint-enable security/detect-object-injection */\n};\n\nexport const ApolloErrorToast: FC = (props) => {\n const { errors } = props;\n if (errors === undefined) {\n return null;\n }\n\n const { graphQLErrors, networkError } = errors;\n\n if (networkError !== null) {\n datadogLogs.logger.error(\n `Network Error: errorMessage=${networkError.message} errorDetail=${JSON.stringify(networkError)}`,\n );\n\n return (\n \n {NETWORK_ERROR}\n \n );\n }\n\n const shouldRenderErrorMessages = graphQLErrors.map(getErrorMessage).filter(isNonNullable);\n\n // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n if (shouldRenderErrorMessages.length === 0) return null;\n\n return (\n
\n {shouldRenderErrorMessages.map((message, index) => (\n \n {message}\n \n ))}\n
\n );\n};\n","export * from \"./ApolloError\";\n","import { useToast } from \"@/components/essentials/toast\";\nimport { ApolloErrorToast } from \"@/components/fragments/apollo/error\";\nimport { type ApolloError } from \"@apollo/client\";\nimport { useEffect } from \"react\";\n\ninterface Option {\n testid?: string;\n}\n\nexport const useApolloError = (apolloError: ApolloError | undefined, option?: Option): void => {\n const toast = useToast();\n\n const testid = option?.testid;\n useEffect(() => {\n if (apolloError !== undefined && !toast.isActive(apolloError.message)) {\n toast({\n id: apolloError.message,\n render: () => ,\n });\n }\n }, [apolloError, testid, toast]);\n};\n","export * from \"./useApolloError\";\n","export const isInviewAll = (element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement): boolean => {\n const rect = element.getBoundingClientRect();\n\n // rect.top > 1 は firefox対応\n return rect.top > 1 && rect.bottom < window.innerHeight;\n};\n","import { type FocusEventHandler } from \"react\";\nimport { isInviewAll } from \"./is-inview-all\";\n\n// React Hook Form でバリデーションエラー発生時に、エラー発生した Element にスクロールするためのメソッド\n// Ref. https://zenn.dev/daisuke7924/articles/5839e0094c5fdf\n\nexport const scrollOnFocus: FocusEventHandler = (event) => {\n try {\n const element = event.currentTarget;\n // elementをタップしてフォーカスしたときはスクロールしない\n // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n if (isInviewAll(element)) return;\n\n element.scrollIntoView({\n block: \"center\",\n behavior: \"auto\",\n });\n // biome-ignore lint/suspicious/noEmptyBlockStatements :[AUTOMATICALLY-INSERTED] Unexpected empty block.\n } catch {}\n};\n"],"names":["FormControlContext","createContext","isRequired","undefined","isDirty","isInvalid","FormControl","props","param","emotion_react_jsx_runtime_browser_esm","tZ","value","ChakraFormControl","FormHelperText","forwardRef","ref","typography","testIdSuffix","rest","typographyProps","useMemo","injectTypographyVariant","isInvalidContext","useContext","invalid","BX","Flex","alignItems","gridGap","Icon","mt","as","color","Box","w","ChakraFormHelperText","FormLabel","children","variantProps","ChakraFormLabel","css","Tag","size","mb","colorScheme","variant","inputSize","base","h","sm","md","lg","switchInputSizeVariant","safeGet","injectInputSize","fontSize","fontWeight","baseH","baseFontSize","baseFontWeight","smH","smFontSize","smFontWeight","mdH","mdFontSize","mdFontWeight","lgH","lgFontSize","lgFontWeight","Input","_invalid","boxShadow","bg","_focus","borderColor","type","clear","invisible","invisibleState","setInvisibleState","useState","InputGroup","display","justifyContent","ChakraInput","errorBorderColor","focusBorderColor","borderWidth","_placeholder","textColor","_hover","onFocus","scrollOnFocus","InputRightElement","right","onClick","state","tagSize","py","px","switchTagSize","injectTagSize","tagSizeProps","ChakraTag","borderRadius","MfaCodeForm","label","required","register","setValue","getValues","formState","errors","useFormContext","length","mfaCode","HStack","justify","PinInput","minLength","otp","placeholder","onChange","shouldValidate","shouldDirty","PinInputField","PasswordForm","formLabel","helperText","dirtyFields","id","password","autoComplete","convertDefaultSubCode","subCode","NO_DETAILED_INFORMATION","ErrorMessage","GRAPHQL_PARSE_FAILED","GRAPHQL_VALIDATION_FAILED","BAD_USER_INPUT","INVALID_TOKEN","INVALID_PASSWORD_INPUT","_","MFA_INCORRECT_CODE","MFA_VERIFY_PASSWORD_EXPIRED","INVALID_RECOVERY_CODE","UNAUTHENTICATED","FAILED_TO_SIGN_IN","LOCKED","FORBIDDEN","MFA_ALREADY_REGISTERED","MFA_LOCKED","PERSISTED_QUERY_NOT_FOUND","PERSISTED_QUERY_NOT_SUPPORTED","INTERNAL_SERVER_ERROR","NOT_FOUND","OTHER_ERROR","getErrorMessage","extensions","code","datadogLogs","typeofCode","messageOrRecord","messageOrNull","ApolloErrorToast","graphQLErrors","networkError","JSON","message","concat","stringify","Toast","shouldRenderErrorMessages","map","filter","isNonNullable","div","index","useApolloError","apolloError","option","toast","useToast","testid","useEffect","isActive","render","isInviewAll","rect","element","getBoundingClientRect","top","bottom","window","innerHeight","event","currentTarget","scrollIntoView","block","behavior","e"],"sourceRoot":""}