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M,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,MAAO,EACzB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACxB,CAAEC,KAAM,GAAID,KAAM,MAAO,EACzB,CAAEC,KAAM,GAAID,KAAM,KAAM,EACzB","sources":["webpack://_N_E/./src/components/essentials/select/variant.ts","webpack://_N_E/./src/components/essentials/select/Select.tsx","webpack://_N_E/./src/components/essentials/select/index.ts","webpack://_N_E/./src/components/fragments/forms/birthday-form/const.ts","webpack://_N_E/./src/components/fragments/forms/birthday-form/BirthdayForm.tsx","webpack://_N_E/./src/components/fragments/forms/birthday-form/index.ts","webpack://_N_E/./src/components/fragments/forms/address-forms/const.ts","webpack://_N_E/./src/components/fragments/forms/address-forms/api.ts","webpack://_N_E/./src/modules/utils/mb_strlength.ts","webpack://_N_E/./src/components/fragments/forms/address-forms/module.ts","webpack://_N_E/./src/components/fragments/forms/address-forms/AddressForms.tsx","webpack://_N_E/./src/components/fragments/forms/address-forms/index.ts","webpack://_N_E/./src/components/fragments/forms/const.ts","webpack://_N_E/./src/components/fragments/forms/name-forms/NameForms.tsx","webpack://_N_E/./src/components/fragments/forms/name-forms/index.ts","webpack://_N_E/./src/components/fragments/forms/phone-form/const.ts","webpack://_N_E/./src/components/fragments/forms/phone-form/PhoneForm.tsx","webpack://_N_E/./src/components/fragments/forms/phone-form/index.ts","webpack://_N_E/./src/components/fragments/forms/delivery-method-time-form/DeliveryMethodTimeForm.tsx","webpack://_N_E/./src/components/fragments/forms/delivery-method-time-form/index.ts","webpack://_N_E/./src/components/fragments/forms/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/modules/utils/age.ts","webpack://_N_E/./src/modules/utils/normalize-strings.ts","webpack://_N_E/./src/modules/utils/prefecture.ts","webpack://_N_E/"],"sourcesContent":["import { safeGet } from \"@/modules/utils/safe-get\";\nimport { type TypographyProps } from \"@chakra-ui/styled-system\";\nimport { type SelectProps as ChakraSelectProps } from \"@chakra-ui/react\";\nimport { injectTypographyVariant } from \"@/components/essentials/typography/variant\";\nimport { type SelectProps } from \"./Select\";\nimport { type SelectSize, type SelectBreakPointSize, type SelectVariant } from \"./type\";\n\ninterface SelectSizeValue {\n readonly h: SelectProps[\"h\"];\n readonly fontSize: TypographyProps[\"fontSize\"];\n readonly fontWeight: TypographyProps[\"fontWeight\"];\n}\n\nconst selectSize = {\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 switchSelectSizeVariant = (size: SelectSize): SelectSizeValue => {\n return safeGet(selectSize, size);\n};\n\nexport const injectSelectSize = (size: SelectSize | SelectBreakPointSize): SelectSizeValue => {\n if (typeof size === \"string\") {\n const { h, fontSize, fontWeight } = switchSelectSizeVariant(size);\n return {\n h,\n fontSize,\n fontWeight,\n };\n } else {\n const { h: baseH, fontSize: baseFontSize, fontWeight: baseFontWeight } = switchSelectSizeVariant(size.base);\n const { h: smH, fontSize: smFontSize, fontWeight: smFontWeight } = switchSelectSizeVariant(size.sm);\n const { h: mdH, fontSize: mdFontSize, fontWeight: mdFontWeight } = switchSelectSizeVariant(size.md);\n const { h: lgH, fontSize: lgFontSize, fontWeight: lgFontWeight } = switchSelectSizeVariant(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\nconst baseSelectStyle: ChakraSelectProps = {\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 errorBorderColor: \"error.main\",\n focusBorderColor: \"secondary.main\",\n bg: \"background.main\",\n borderColor: \"background.main\",\n borderWidth: \"0px\",\n _placeholder: { textColor: \"gray.main\" },\n _hover: {},\n};\n\nconst monoSelectStyle: ChakraSelectProps = {\n bg: \"light.main\",\n borderColor: \"border.main\",\n borderWidth: \"1px\",\n};\n\nexport const injectSelectStyle = (variant: SelectVariant): ChakraSelectProps => {\n if (variant === \"mono\") {\n return { ...baseSelectStyle, ...monoSelectStyle };\n }\n\n return baseSelectStyle;\n};\n","import { type SelectProps as ChakraSelectProps, forwardRef, Select as ChakraSelect } from \"@chakra-ui/react\";\nimport { injectSelectSize, injectSelectStyle } from \"./variant\";\nimport { useMemo, type ForwardedRef } from \"react\";\nimport { type SelectSize, type SelectBreakPointSize, type SelectVariant } from \"./type\";\nimport { selectTestId } from \"./const\";\nimport { scrollOnFocus } from \"@/modules/utils/scroll-on-focus\";\n\nexport interface SelectProps extends Omit {\n readonly size?: SelectSize | SelectBreakPointSize;\n readonly variant?: SelectVariant;\n}\n\nexport const Select = forwardRef(\n ({ size = \"md\", variant = \"default\", ...rest }: SelectProps, ref: ForwardedRef) => {\n const selectSize = useMemo(() => injectSelectSize(size), [size]);\n const selectStyle = useMemo(() => injectSelectStyle(variant), [variant]);\n\n return (\n \n );\n },\n);\n","export * from \"./Select\";\n","export const birthdayRegex = /^\\d{8}$/;\nexport const birthdayFormInputBirthdayTestId = \"components/fragments/forms/birthday-forms/BirthdayForm/Input-birthday\";\nexport const birthdayFormHelperTextPatternTestId =\n \"components/fragments/forms/birthday-forms/BirthdayForm/FormHelperText-Patern\";\nexport const birthdayFormHelperTextValidDateTestId =\n \"components/fragments/forms/birthday-forms/BirthdayForm/FormHelperText-ValidDate\";\n\nexport const defaultBirthdayField = \"birthday\";\n","import { type StackProps } from \"@chakra-ui/react\";\nimport { useMemo, type FC } from \"react\";\nimport { Input } from \"@/components/essentials/input\";\nimport { useFormContext } from \"react-hook-form\";\nimport { FormControl, FormHelperText, FormLabel } from \"@/components/essentials/form-control\";\nimport {\n birthdayFormHelperTextPatternTestId,\n birthdayFormHelperTextValidDateTestId,\n birthdayFormInputBirthdayTestId,\n birthdayRegex,\n defaultBirthdayField,\n} from \"./const\";\nimport { toHalfWidth } from \"@/modules/utils/normalize-strings\";\nimport get from \"just-safe-get\";\nimport { isValidDate } from \"@/modules/utils/date\";\nimport { Typography } from \"@/components/essentials/typography\";\nimport { buildChildAge } from \"@/modules/utils/age\";\nimport { parse } from \"date-fns\";\nimport { Box } from \"@/components/essentials/box\";\n\ninterface BirthdayFormProps extends StackProps {\n birthdayField?: string;\n formLabel?: string;\n formSubLabel?: string;\n isDisplayAge?: boolean;\n}\n\nexport const BirthdayForm: FC = ({\n birthdayField = defaultBirthdayField,\n formLabel = \"生年月日\",\n formSubLabel,\n isDisplayAge = false,\n ...rest\n}) => {\n const {\n register,\n getValues,\n formState: { errors, dirtyFields },\n } = useFormContext();\n\n const {\n onChange: birthdayOnChange,\n onBlur: birthdayOnBlur,\n ...birthdayRestRegister\n } = useMemo(\n () =>\n register(birthdayField, {\n required: true,\n validate: {\n validDate: (data) => isValidDate(data, \"yyyyMMdd\"),\n pattern: (data) => birthdayRegex.test(data),\n },\n }),\n [register, birthdayField],\n );\n\n return (\n \n {formLabel}\n {formSubLabel !== undefined && (\n \n {formSubLabel}\n \n )}\n {\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void birthdayOnChange(e);\n }}\n onBlur={(e) => {\n e.target.value = toHalfWidth(e.target.value);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void birthdayOnBlur(e);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void birthdayOnChange(e);\n }}\n {...birthdayRestRegister}\n {...rest}\n />\n {isDisplayAge && get(dirtyFields, birthdayField) && !get(errors, birthdayField) ? (\n \n \n 現在の年齢:\n \n \n \n {buildChildAge(parse(getValues(birthdayField), \"yyyyMMdd\", new Date()), new Date())}\n \n \n \n ) : (\n <>\n \n 半角数字8桁で入力されている\n \n \n 有効な日付が入力されている\n \n \n )}\n \n );\n};\n","export * from \"./BirthdayForm\";\nexport * from \"./type\";\nexport * from \"./const\";\n","export const zipCodeRegex = /^\\d{7}$|^\\d{3}-\\d{4}$/;\nexport const kenAllApiKey = process.env.KENALL_API_KEY;\n\nexport const prefectures = [\n \"北海道\",\n \"青森県\",\n \"岩手県\",\n \"宮城県\",\n \"秋田県\",\n \"山形県\",\n \"福島県\",\n \"茨城県\",\n \"栃木県\",\n \"群馬県\",\n \"埼玉県\",\n \"千葉県\",\n \"東京都\",\n \"神奈川県\",\n \"新潟県\",\n \"富山県\",\n \"石川県\",\n \"福井県\",\n \"山梨県\",\n \"長野県\",\n \"岐阜県\",\n \"静岡県\",\n \"愛知県\",\n \"三重県\",\n \"滋賀県\",\n \"京都府\",\n \"大阪府\",\n \"兵庫県\",\n \"奈良県\",\n \"和歌山県\",\n \"鳥取県\",\n \"島根県\",\n \"岡山県\",\n \"広島県\",\n \"山口県\",\n \"徳島県\",\n \"香川県\",\n \"愛媛県\",\n \"高知県\",\n \"福岡県\",\n \"佐賀県\",\n \"長崎県\",\n \"熊本県\",\n \"大分県\",\n \"宮崎県\",\n \"鹿児島県\",\n \"沖縄県\",\n] as const;\n\nexport const VALIDATE_STRING_MAX_CITY_AND_ADDRESS = 56;\nexport const VALIDATE_STRING_MAX_BUILDING_NAME_AND_ROOM_NUMBER = 32;\n\nexport const addressFormLabelTestId = (category: string): string =>\n `components/fragments/forms/address-forms/AddressForms/FormLabel-${category}`;\nexport const addressInputTestId = (category: string): string =>\n `components/fragments/forms/address-forms/AddressForms/Input-${category}`;\nexport const addressSelectTestId = (category: string): string =>\n `components/fragments/forms/address-forms/AddressForms/Select-${category}`;\nexport const addressFormHelperTextTestId = (category: string): string =>\n `components/fragments/forms/address-forms/AddressForms/FormHelperText-${category}`;\n","import { KENALL } from \"@ken-all/kenall\";\nimport { kenAllApiKey } from \"./const\";\nimport { type DefaultAddressFormValues } from \"./type\";\nimport { datadogLogs } from \"@datadog/browser-logs\";\nimport { isPrd, isStg } from \"@/modules/utils/env\";\n\nconst sendDataDogEvent = (e: unknown): void => {\n if (isPrd() || isStg()) {\n datadogLogs.logger.warn(\"kenall-api-error\", e as object);\n }\n};\nexport const fetchKenAll = async (zipCode: string): Promise> => {\n if (typeof kenAllApiKey !== \"string\") {\n // biome-ignore lint/style/useConsistentBuiltinInstantiation :[AUTOMATICALLY-INSERTED] Use new Error() instead of Error().\n throw Error(\"KENALL API KEY is undefined\");\n } else {\n const k = new KENALL(kenAllApiKey);\n\n try {\n const result = (await k.getAddress(zipCode)).data[0];\n\n return {\n prefecture: result?.prefecture ?? \"\",\n city: `${result?.city ?? \"\"}${result?.town ?? \"\"}`,\n };\n } catch (e: unknown) {\n const message = (e as { message: string }).message;\n if (/404/g.test(message)) {\n // biome-ignore lint/style/useConsistentBuiltinInstantiation :[AUTOMATICALLY-INSERTED] Use new Error() instead of Error().\n throw Error(\"404\");\n } else {\n sendDataDogEvent(e);\n throw e;\n }\n }\n }\n};\n","// PHP の mb_strwidth と同様の動作をする\n// http://php.net/manual/ja/function.mb-strwidth.php\nexport const mbStrLength = (str: string): number => {\n let i = 0;\n const l = str.length;\n let c;\n let length = 0;\n for (; i < l; i++) {\n c = str.charCodeAt(i);\n if (0x0000 <= c && c <= 0x0019) {\n length += 0;\n } else if (0x0020 <= c && c <= 0x1fff) {\n length += 1;\n } else if (0x2000 <= c && c <= 0xff60) {\n length += 2;\n } else if (0xff61 <= c && c <= 0xff9f) {\n length += 1;\n } else if (c >= 0xffa0) {\n length += 2;\n }\n }\n return length;\n};\n","import { mbStrLength } from \"@/modules/utils/mb_strlength\";\n\nexport const normalizeZipCode = (value: string): string => {\n const zipCode = value.replace(/[^0-9]/g, \"\");\n return zipCode;\n};\n\nexport const validateAddressStrLength = (values: string[], maxLength: number): boolean => {\n return (\n values.reduce((count, value) => (value && value.length !== 0 ? count + mbStrLength(value) : count), 0) <= maxLength\n );\n};\n","import { type ChangeEvent, useMemo, type FC, useEffect, useState } from \"react\";\nimport { useFormContext } from \"react-hook-form\";\nimport { Input } from \"@/components/essentials/input\";\nimport { FormControl, FormLabel, FormHelperText } from \"@/components/essentials/form-control\";\nimport { type StackProps, Flex } from \"@chakra-ui/react\";\nimport { Select } from \"@/components/essentials/select\";\nimport {\n zipCodeRegex,\n addressFormLabelTestId,\n addressSelectTestId,\n addressFormHelperTextTestId,\n addressInputTestId,\n VALIDATE_STRING_MAX_CITY_AND_ADDRESS,\n VALIDATE_STRING_MAX_BUILDING_NAME_AND_ROOM_NUMBER,\n} from \"./const\";\nimport { fetchKenAll } from \"./api\";\nimport { Toast, useToast } from \"@/components/essentials/toast\";\nimport { removeHyphen, toHalfWidth } from \"@/modules/utils/normalize-strings\";\nimport get from \"just-safe-get\";\nimport { validateAddressStrLength } from \"./module\";\nimport { Box } from \"@/components/essentials/box\";\nimport { prefectures } from \"@/modules/utils/prefecture\";\n\ntype PrefectureMode = \"string\" | \"code\";\nexport interface AddressFormProps extends StackProps {\n zipCodeField?: string;\n prefectureField?: string;\n cityField?: string;\n addressField?: string;\n buildingNameAndRoomNumberField?: string;\n required?: boolean;\n prefectureMode?: PrefectureMode;\n}\n\nexport const AddressForms: FC = ({\n zipCodeField = \"zipCode\",\n prefectureField = \"prefecture\",\n cityField = \"city\",\n addressField = \"address\",\n buildingNameAndRoomNumberField = \"buildingNameAndRoomNumber\",\n required = true,\n prefectureMode = \"string\",\n ...rest\n}) => {\n const toast = useToast();\n\n const {\n register,\n watch,\n formState: { errors, dirtyFields },\n setValue,\n getValues,\n } = useFormContext();\n\n const [isValidCityAndAddress, setIsValidCityAndAddress] = useState(true);\n\n const {\n onChange: zipCodeOnChange,\n onBlur: zipCodeOnBlur,\n ...zipCodeRestRegister\n } = useMemo(\n () =>\n register(zipCodeField, {\n pattern: zipCodeRegex,\n required,\n }),\n [register, zipCodeField, required],\n );\n\n const handleAutoChangeFromZipCode = (e: ChangeEvent): void => {\n const zipCode = removeHyphen(toHalfWidth(e.target.value));\n if (zipCode.match(zipCodeRegex)) {\n fetchKenAll(zipCode)\n .then(({ prefecture, city }) => {\n if (prefectureMode === \"code\") {\n const prefectureCode = prefectures.find((e) => e.name === prefecture)?.code;\n setValue(prefectureField, prefectureCode, {\n shouldDirty: true,\n shouldValidate: true,\n });\n } else {\n setValue(prefectureField, prefecture, {\n shouldDirty: true,\n shouldValidate: true,\n });\n }\n\n setValue(cityField, city, {\n shouldDirty: true,\n shouldValidate: true,\n });\n })\n .catch((e) => {\n if (e.message === \"404\") {\n toast({\n position: \"top\",\n render: () => 入力された郵便番号から住所を見つけることができませんでした,\n });\n }\n });\n }\n };\n\n const watchCityAndAddress = watch([cityField, addressField]);\n // biome-ignore lint/correctness/useExhaustiveDependencies :[AUTOMATICALLY-INSERTED] This hook does not specify all of its dependencies: addressField\n useEffect(() => {\n setIsValidCityAndAddress(\n validateAddressStrLength([getValues(cityField), getValues(addressField)], VALIDATE_STRING_MAX_CITY_AND_ADDRESS),\n );\n }, [watchCityAndAddress]);\n\n return (\n \n \n 郵便番号\n {\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void zipCodeOnChange(e);\n }}\n onBlur={(e) => {\n e.target.value = toHalfWidth(e.target.value);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void zipCodeOnChange(e);\n handleAutoChangeFromZipCode(e);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void zipCodeOnBlur(e);\n }}\n {...zipCodeRestRegister}\n />\n \n 有効な郵便番号が入力されている\n \n \n \n 都道府県\n \n {prefectures.map((prefecture, key) => (\n \n ))}\n \n \n \n 市区郡町村\n isValidCityAndAddress,\n })}\n />\n \n \n 丁目・番地\n isValidCityAndAddress,\n })}\n />\n \n \n 「市区郡町村」と「丁目・番地」の合計文字数が、全角28文字・半角56文字以内で入力されている\n \n \n \n \n 建物名・部屋番号\n \n validateAddressStrLength(\n [getValues(buildingNameAndRoomNumberField)],\n VALIDATE_STRING_MAX_BUILDING_NAME_AND_ROOM_NUMBER,\n ),\n })}\n />\n \n 全角16文字・半角32文字以内で入力されている\n \n \n \n );\n};\n","export * from \"./AddressForms\";\nexport * from \"./type\";\nexport * from \"./const\";\n","export const VALIDATE_STRING_MAX_ON_MADRAS = 255;\n","import { type StackProps, HStack } from \"@chakra-ui/react\";\nimport { type FC } from \"react\";\nimport { Input } from \"@/components/essentials/input\";\nimport { useFormContext } from \"react-hook-form\";\nimport { FormLabel, FormControl } from \"@/components/essentials/form-control\";\nimport { VALIDATE_STRING_MAX_ON_MADRAS } from \"@/components/fragments/forms/const\";\nimport { inputFamilyNameTestId, inputFirstNameTestId } from \"./const\";\nimport get from \"just-safe-get\";\n\nexport interface NameFormsProps extends StackProps {\n firstNameField?: string;\n lastNameField?: string;\n required?: boolean;\n}\n\nexport const NameForms: FC = ({\n firstNameField = \"firstName\",\n lastNameField = \"lastName\",\n required = true,\n ...rest\n}) => {\n const {\n register,\n formState: { errors, dirtyFields },\n } = useFormContext();\n\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n","export * from \"./NameForms\";\nexport * from \"./type\";\nexport * from \"./const\";\n","// Telephone number in Japan\n//\n// @see http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/q_and_a.html\n// @see http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html\n\nexport const phoneNumberRegex =\n /^\\d{2}-\\d{4,}-\\d{4,}$|^\\d{3}-\\d{3,}-\\d{4,}$|^\\d{4}-\\d{2,}-\\d{4,}$|^\\d{5}-\\d{1,}-\\d{4,}$|^\\d{10,16}$/;\n\nexport const phoneFormInputPhoneNumberTestId = \"components/fragments/forms/phone-forms/PhoneForm/Input-phoneNumber\";\nexport const phoneFormHelperTextPhoneNumberTestId =\n \"components/fragments/forms/phone-forms/PhoneForm/FormHelperText-phoneNumber\";\n\nexport const defaultPhoneNumberField = \"phoneNumber\";\n","import { type StackProps } from \"@chakra-ui/react\";\nimport { useMemo, type FC } from \"react\";\nimport { Input } from \"@/components/essentials/input\";\nimport { useFormContext } from \"react-hook-form\";\nimport { FormControl, FormHelperText, FormLabel } from \"@/components/essentials/form-control\";\nimport {\n defaultPhoneNumberField,\n phoneFormHelperTextPhoneNumberTestId,\n phoneFormInputPhoneNumberTestId,\n phoneNumberRegex,\n} from \"./const\";\nimport { toHalfWidth } from \"@/modules/utils/normalize-strings\";\nimport get from \"just-safe-get\";\n\nexport interface PhoneFormProps extends StackProps {\n phoneNumberField?: string;\n required?: boolean;\n}\n\nexport const PhoneForm: FC = ({\n phoneNumberField = defaultPhoneNumberField,\n required = true,\n ...rest\n}) => {\n const {\n register,\n formState: { errors, dirtyFields },\n } = useFormContext();\n\n const {\n onChange: phoneNumberOnChange,\n onBlur: phoneNumberOnBlur,\n ...phoneNumberRestRegister\n } = useMemo(\n () => register(phoneNumberField, { required, pattern: phoneNumberRegex }),\n [register, phoneNumberField, required],\n );\n\n return (\n \n 電話番号\n {\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void phoneNumberOnChange(e);\n }}\n onBlur={(e) => {\n e.target.value = toHalfWidth(e.target.value);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void phoneNumberOnBlur(e);\n // biome-ignore lint/complexity/noVoid :[AUTOMATICALLY-INSERTED] The use of void is not allowed.\n void phoneNumberOnChange(e);\n }}\n {...phoneNumberRestRegister}\n {...rest}\n />\n \n 有効な電話番号が入力されている\n \n \n );\n};\n","export * from \"./PhoneForm\";\nexport * from \"./type\";\nexport * from \"./const\";\n","import { useFormContext } from \"react-hook-form\";\nimport { Select } from \"@/components/essentials/select\";\nimport { type DeliveryMethodTime } from \"./type\";\nimport { type FC } from \"react\";\nimport { FormControl, FormLabel } from \"@/components/essentials/form-control\";\nimport { isDefined } from \"@/modules/utils/predicate\";\nimport { deliveryMethodTimeFormSelectDeliveryTime } from \"./\";\nimport get from \"just-safe-get\";\n\ninterface Props {\n readonly deliveryMethodTimes: DeliveryMethodTime[] | undefined;\n readonly field?: string;\n}\n\nexport const DeliveryMethodTimeForm: FC = ({ deliveryMethodTimes, field = \"deliveryTime\" }: Props) => {\n const {\n register,\n formState: { errors, dirtyFields },\n } = useFormContext();\n return (\n \n 配達希望時間\n \n {isDefined(deliveryMethodTimes) &&\n deliveryMethodTimes?.map(({ uuid, name }) => (\n \n ))}\n \n \n );\n};\n","export * from \"./DeliveryMethodTimeForm\";\nexport * from \"./type\";\nexport * from \"./const\";\n","export * from \"./address-forms\";\nexport * from \"./name-forms\";\nexport * from \"./birthday-form\";\nexport * from \"./phone-form\";\nexport * from \"./password-form\";\nexport * from \"./new-password-form\";\nexport * from \"./confirm-password-form\";\nexport * from \"./delivery-method-time-form\";\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 { differenceInMonths, isBefore } from \"date-fns\";\n\nconst aYear: number = 12;\n\nexport const getAgeByBirthday = (\n birthday: Date | undefined,\n baseDate?: Date | undefined,\n): [year: number, month: number] | [year: undefined, month: undefined] => {\n if (baseDate === undefined || birthday === undefined) {\n return [undefined, undefined];\n }\n const diffMonth = differenceInMonths(baseDate, birthday);\n const ageOfYear = Math.trunc(diffMonth / aYear);\n const ageOfMonth = Math.abs(diffMonth % aYear);\n return [ageOfYear, ageOfMonth];\n};\n\nexport const buildChildAge = (birthday?: Date, date?: Date): string => {\n // biome-ignore lint/style/useBlockStatements :[AUTOMATICALLY-INSERTED] Block statements are preferred in this position.\n if (date === undefined || birthday === undefined) return \"不明\";\n const [ageOfYear, ageOfMonth]: number[] | undefined[] = getAgeByBirthday(birthday, date);\n if (ageOfYear === undefined || ageOfMonth === undefined) {\n return \"不明\";\n }\n\n return `${isBefore(birthday, date) ? \"\" : \"-\"}${Math.abs(ageOfYear)}歳${ageOfMonth}か月`;\n};\n","export const regexpFullWidthHyphenAll = /[--﹣−‐⁃‑‒–—﹘―⎯⏤ーー─━]/g;\n\nexport const toHalfWidth = (value: string): string => {\n return value\n .replace(/[A-Za-z0-9]/g, (s) => String.fromCharCode(s.charCodeAt(0) - 0xfee0))\n .replace(regexpFullWidthHyphenAll, \"-\");\n};\n\nexport const removeHyphen = (value: string): string => {\n return value.replace(\"-\", \"\").replace(regexpFullWidthHyphenAll, \"\");\n};\n","export const getPrefectureCode = (name: string): number => {\n const code = prefectures.find((prefecture) => prefecture.name === name)?.code;\n\n if (code === undefined) {\n throw new Error(\"invalid prefecture name\");\n }\n\n return code;\n};\n\nexport const getPrefectureName = (code: number): string => {\n const name = prefectures.find((prefecture) => prefecture.code === code)?.name;\n\n if (name === undefined) {\n throw new Error(\"invalid prefecture code\");\n }\n\n return name;\n};\n\ninterface Prefecture {\n // Prefecture code defined in https://nlftp.mlit.go.jp/ksj/gml/codelist/PrefCd.html\n code: number;\n name: string;\n}\n\nexport const prefectures: Prefecture[] = [\n { code: 1, name: \"北海道\" },\n { code: 2, name: \"青森県\" },\n { code: 3, name: \"岩手県\" },\n { code: 4, name: \"宮城県\" },\n { code: 5, name: \"秋田県\" },\n { code: 6, name: \"山形県\" },\n { code: 7, name: \"福島県\" },\n { code: 8, name: \"茨城県\" },\n { code: 9, name: \"栃木県\" },\n { code: 10, name: \"群馬県\" },\n { code: 11, name: \"埼玉県\" },\n { code: 12, name: \"千葉県\" },\n { code: 13, name: \"東京都\" },\n { code: 14, name: \"神奈川県\" },\n { code: 15, name: \"新潟県\" },\n { code: 16, name: \"富山県\" },\n { code: 17, name: \"石川県\" },\n { code: 18, name: \"福井県\" },\n { code: 19, name: \"山梨県\" },\n { code: 20, name: \"長野県\" },\n { code: 21, name: \"岐阜県\" },\n { code: 22, name: \"静岡県\" },\n { code: 23, name: \"愛知県\" },\n { code: 24, name: \"三重県\" },\n { code: 25, name: \"滋賀県\" },\n { code: 26, name: \"京都府\" },\n { code: 27, name: \"大阪府\" },\n { code: 28, name: \"兵庫県\" },\n { code: 29, name: \"奈良県\" },\n { code: 30, name: \"和歌山県\" },\n { code: 31, name: \"鳥取県\" },\n { code: 32, name: \"島根県\" },\n { code: 33, name: \"岡山県\" },\n { code: 34, name: \"広島県\" },\n { code: 35, name: \"山口県\" },\n { code: 36, name: \"徳島県\" },\n { code: 37, name: \"香川県\" },\n { code: 38, name: \"愛媛県\" },\n { code: 39, name: \"高知県\" },\n { code: 40, name: \"福岡県\" },\n { code: 41, name: \"佐賀県\" },\n { code: 42, name: \"長崎県\" },\n { code: 43, name: \"熊本県\" },\n { code: 44, name: \"大分県\" },\n { code: 45, name: \"宮崎県\" },\n { code: 46, name: \"鹿児島県\" },\n { code: 47, name: \"沖縄県\" },\n];\n"],"names":["selectSize","base","h","injectTypographyVariant","sm","md","lg","switchSelectSizeVariant","safeGet","size","injectSelectSize","fontSize","fontWeight","baseH","baseFontSize","baseFontWeight","smH","smFontSize","smFontWeight","mdH","mdFontSize","mdFontWeight","lgH","lgFontSize","lgFontWeight","baseSelectStyle","_invalid","boxShadow","bg","_focus","borderColor","errorBorderColor","focusBorderColor","borderWidth","_placeholder","textColor","_hover","monoSelectStyle","injectSelectStyle","variant","Select","forwardRef","param","ref","rest","useMemo","selectStyle","emotion_react_jsx_runtime_browser_esm","tZ","ChakraSelect","onFocus","scrollOnFocus","birthdayRegex","BirthdayForm","get","birthdayField","defaultBirthdayField","formLabel","formSubLabel","isDisplayAge","register","getValues","formState","errors","dirtyFields","useFormContext","onChange","birthdayOnChange","onBlur","birthdayOnBlur","birthdayRestRegister","required","validate","validDate","isValidDate","data","pattern","BX","FormControl","isRequired","isDirty","isInvalid","undefined","id","FormLabel","Typography","mb","Input","autoComplete","placeholder","inputMode","e","target","value","toHalfWidth","Box","ml","mt","as","color","minW","display","textAlign","buildChildAge","parse","Date","HY","FormHelperText","testIdSuffix","concat","types","zipCodeRegex","kenAllApiKey","process","sendDataDogEvent","isPrd","isStg","datadogLogs","fetchKenAll","zipCode","Error","k","KENALL","result","getAddress","prefecture","city","town","message","test","mbStrLength","c","i","l","str","length","charCodeAt","validateAddressStrLength","values","maxLength","reduce","count","AddressForms","zipCodeField","prefectureField","cityField","addressField","buildingNameAndRoomNumberField","prefectureMode","toast","useToast","watch","setValue","isValidCityAndAddress","setIsValidCityAndAddress","useState","zipCodeOnChange","zipCodeOnBlur","zipCodeRestRegister","handleAutoChangeFromZipCode","removeHyphen","match","then","prefectures","prefectureCode","name","code","shouldDirty","shouldValidate","catch","position","render","Toast","watchCityAndAddress","useEffect","Flex","flexDir","gridGap","key","option","NameForms","firstNameField","lastNameField","HStack","phoneNumberRegex","PhoneForm","phoneNumberField","defaultPhoneNumberField","phoneNumberOnChange","phoneNumberOnBlur","phoneNumberRestRegister","type","PasswordForm","helperText","password","invisible","getAgeByBirthday","birthday","baseDate","diffMonth","differenceInMonths","Math","trunc","abs","date","ageOfYear","ageOfMonth","isBefore","regexpFullWidthHyphenAll","replace","String","fromCharCode","s","getPrefectureName","find"],"sourceRoot":""}