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ElBA,EAAU,GACjB+G,QAAQ,CAACD,EAAmB,QAAW,EACvCS,MAD2B,CACpB,CACN,8BACAT,EAAmB,gBAAD,EAAsB,EAEzCU,GAAG,CAAC,EAAGV,EAAmB,IAAO,EAEpCzG,UAF4B,OAEVL,EAAAA,EAAU,GACzB+G,QAAQ,CAACD,EAAmB,QAAW,EACvCS,MAD2B,CACpB,CACN,wDACAT,EAAmB,gBAAD,UAA8B,EAEjDU,GAAG,CAAC,EAAGV,EAAmB,IAAO,EAEpCxG,MAAON,EAAAA,EAAU,GACd+G,QAAQ,CAACD,EAAmB,QAAW,EACvCxG,KAAK,CADsB,EACF,KAAQ,EAEpCmH,SAF2B,EAEjBzH,EAAU,GAAGM,KAAK,CAACwG,EAAmB,KAAQ,EAExDD,QAAS7G,CAFsC,CAEtCA,EAAU,GAChB+G,QAAQ,CAACD,EAAmB,QAAW,EACvCS,MAD2B,CACpB,CAAC,iBAAkBT,EAAmB,cAAiB,EAAlB,MACtC,CAAC,GAAIA,EAAmB,QAAW,EAE5CC,MAFgC,GAEtB/G,EAAAA,EAAU,GAAG+G,QAAQ,CAACD,EAAmB,QAAW,CAChE,EAAW,KADyC","sources":["webpack://_N_E/?8be8","webpack://_N_E/../shared/constants/terms.ts","webpack://_N_E/./src/app/(withLayout)/signup/(index)/_SignUpStart/InputForm/index.tsx","webpack://_N_E/./src/app/(withLayout)/signup/(index)/_SignUpStart/index.hook.ts","webpack://_N_E/./src/app/(withLayout)/signup/(index)/_SignUpStart/index.tsx","webpack://_N_E/./src/app/(withLayout)/signup/_hooks/useSignUpSession.ts","webpack://_N_E/../shared/components/features/form/FormErrorMessage/index.tsx","webpack://_N_E/../shared/components/features/form/FormValidationMessage/index.tsx","webpack://_N_E/../shared/components/features/form/FormText/visibility_black_24dp.svg","webpack://_N_E/../shared/components/features/form/FormText/visibility_off_black_24dp.svg","webpack://_N_E/../shared/components/features/form/FormText/index.tsx","webpack://_N_E/../shared/components/parts/Loading/index.tsx","webpack://_N_E/../shared/helpers/form/generateFieldOptions.ts","webpack://_N_E/../shared/helpers/form/getFormikErrorMessage.ts","webpack://_N_E/../shared/helpers/form/placeholderTexts.ts","webpack://_N_E/../shared/helpers/form/yupValidations.ts"],"sourcesContent":["import(/* webpackMode: \"eager\", webpackExports: [\"SignUpStart\"] */ \"/codebuild/output/src4019214850/src/helloero-new/packages/account/src/app/(withLayout)/signup/(index)/_SignUpStart/index.tsx\");\n","export const PRIVACY_URL = 'https://ec.sod.co.jp/prime/help/rules.php';\nexport const TERMS_SERVICE_URL = 'https://help.h2u.jp/terms/service';\nexport const TERMS_ACCOUNT_URL = 'https://help.h2u.jp/terms/account';\nexport const COMPANY_URL = 'https://corporate.sod.co.jp/';\n","import { useFormik } from 'formik';\nimport * as Yup from 'yup';\nimport { FormErrorMessage } from '@/shared/components/features/form/FormErrorMessage';\nimport { FormSubmitButtons } from '@/shared/components/features/form/FormSubmitButtons';\nimport { FormText } from '@/shared/components/features/form/FormText';\nimport { MainContainer } from '@/shared/components/parts/MainContainer';\nimport { Spacer } from '@/shared/components/parts/Spacer';\nimport {\n PRIVACY_URL,\n TERMS_ACCOUNT_URL,\n TERMS_SERVICE_URL,\n} from '@/shared/constants/terms';\nimport { generateFormikInputFieldOptions } from '@/shared/helpers/form/generateFieldOptions';\nimport { getFormikErrorMessage } from '@/shared/helpers/form/getFormikErrorMessage';\nimport { placeholderTexts } from '@/shared/helpers/form/placeholderTexts';\nimport { yupValidations } from '@/shared/helpers/form/yupValidations';\nimport type { UseSignUpStart } from '../index.hook';\n\nexport const InputForm: React.FC<{\n state: UseSignUpStart['state'];\n startSignUpProcess: UseSignUpStart['startSignUpProcess'];\n isLoading: boolean;\n}> = ({ state, startSignUpProcess, isLoading }) => {\n const formik = useFormik({\n initialValues: state.formValues,\n validationSchema: Yup.object().shape({\n loginId: yupValidations.loginId,\n password: yupValidations.passwordRegister,\n email: yupValidations.email,\n }),\n onSubmit: startSignUpProcess,\n });\n\n return (\n \n \n \n アカウント登録\n \n {\n e.preventDefault();\n formik.handleSubmit();\n }}\n >\n \n STEP 1/2\n \n お客様情報を入力してください\n \n \n \n \n \n \n \n \n \n \n 登録ボタンを押すことにより、下記の規約に同意するものとします。\n \n \n \n {[\n {\n url: PRIVACY_URL,\n text: '個人情報の取扱いについて',\n },\n {\n url: TERMS_SERVICE_URL,\n text: 'サービス利用規約',\n },\n {\n url: TERMS_ACCOUNT_URL,\n text: 'アカウント利用規約',\n },\n ].map(({ url, text }) => (\n \n \n {text}\n \n \n ))}\n \n \n \n \n \n \n \n );\n};\n","import { useRouter } from 'next/navigation';\nimport React from 'react';\nimport type { SignUpStartApiResponse } from '@/shared/hooks/useAmplifyAuth';\nimport { useAmplifyAuth } from '@/shared/hooks/useAmplifyAuth';\nimport { useUserInfo } from '@/shared/hooks/useUserInfo';\nimport { useSetSignUpSession } from '../../_hooks/useSignUpSession';\n\ntype State = {\n pageStatus: 'INIT' | 'INPUT' | 'COMPLETE';\n errorMessage: string;\n formValues: {\n loginId: string;\n password: string;\n email: string;\n };\n};\n\ntype Action =\n | {\n type: 'INITIALIZED';\n }\n | {\n type: 'API_CALLED';\n payload: {\n apiResponse: SignUpStartApiResponse;\n formValues: State['formValues'];\n };\n };\n\nconst reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case 'INITIALIZED': {\n return {\n ...state,\n pageStatus: 'INPUT',\n };\n }\n\n case 'API_CALLED': {\n const {\n apiResponse: { errorCode, errorMessage },\n formValues,\n } = action.payload;\n\n if (errorCode) {\n return {\n ...state,\n pageStatus: 'INPUT',\n errorMessage,\n };\n }\n\n return {\n ...state,\n pageStatus: 'COMPLETE',\n errorMessage: '',\n formValues,\n };\n }\n }\n};\n\nexport type UseSignUpStart = {\n state: State;\n isLoading: boolean;\n startSignUpProcess: (formValues: State['formValues']) => Promise;\n};\n\nexport function useSignUpStart() {\n const router = useRouter();\n const [state, dispatch] = React.useReducer(reducer, {\n pageStatus: 'INIT',\n errorMessage: '',\n formValues: {\n loginId: '',\n password: '',\n email: '',\n },\n });\n const { isLoadedUserInfo, userInfo } = useUserInfo();\n const [isLoading, setIsLoading] = React.useState(false);\n const { signUp } = useAmplifyAuth();\n const { setSession } = useSetSignUpSession();\n\n const startSignUpProcess: UseSignUpStart['startSignUpProcess'] =\n React.useCallback(\n async (formValues) => {\n if (isLoading) {\n return;\n }\n\n setIsLoading(true);\n\n const apiResponse = await signUp(formValues);\n\n dispatch({\n type: 'API_CALLED',\n payload: {\n apiResponse,\n formValues,\n },\n });\n\n setIsLoading(false);\n },\n [isLoading, signUp]\n );\n\n React.useEffect(() => {\n switch (state.pageStatus) {\n case 'INIT': {\n if (!isLoadedUserInfo) {\n return;\n }\n\n if (userInfo.isLoggedIn) {\n router.replace('/');\n return;\n }\n\n dispatch({\n type: 'INITIALIZED',\n });\n return;\n }\n\n case 'COMPLETE': {\n setSession({\n loginId: state.formValues.loginId,\n password: state.formValues.password,\n email: state.formValues.email,\n });\n\n // history.back されても困るので replace する\n router.replace('/signup/verify');\n return;\n }\n }\n }, [\n isLoadedUserInfo,\n router,\n setSession,\n state.formValues.email,\n state.formValues.loginId,\n state.formValues.password,\n state.pageStatus,\n userInfo.isLoggedIn,\n ]);\n\n return {\n state,\n isLoading,\n startSignUpProcess,\n };\n}\n","'use client';\nimport { Loading } from '@/shared/components/parts/Loading';\nimport { InputForm } from './InputForm';\nimport { useSignUpStart } from './index.hook';\n\nexport const SignUpStart: React.FC = () => {\n const { state, startSignUpProcess, isLoading } = useSignUpStart();\n\n return (\n <>\n {(state.pageStatus === 'INIT' || state.pageStatus === 'COMPLETE') && (\n \n )}\n {state.pageStatus === 'INPUT' && (\n \n )}\n >\n );\n};\n","import { useAtomValue, useSetAtom } from 'jotai';\nimport { atomWithStorage, createJSONStorage } from 'jotai/utils';\n\ntype SignUpSessionAtom = {\n loginId: string;\n password: string;\n email: string;\n};\n\nfunction sessionStorage() {\n return typeof window !== 'undefined'\n ? createJSONStorage(() => window.sessionStorage)\n : undefined;\n}\n\nconst signUpSessionAtom = atomWithStorage(\n '_signUpSession',\n {\n loginId: '',\n password: '',\n email: '',\n },\n sessionStorage(),\n {\n getOnInit: false,\n }\n);\n\nexport function useSignUpSessionValue() {\n const session = useAtomValue(signUpSessionAtom);\n return {\n session,\n };\n}\n\nexport function useSetSignUpSession() {\n const setSession = useSetAtom(signUpSessionAtom);\n return {\n setSession,\n };\n}\n","'use client';\nimport React from 'react';\n\nexport const FormErrorMessage: React.FC<{\n message: string;\n}> = ({ message }) => {\n React.useEffect(() => {\n if (!message) {\n return;\n }\n\n window.scrollTo(0, 0);\n }, [message]);\n\n return message ? (\n \n \n \n {message}\n \n \n ) : null;\n};\n","export const FormValidationMessage: React.FC<{\n message: string;\n}> = ({ message }) => (\n \n {message}\n \n);\n","var _g;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgVisibilityBlack24Dp = function SvgVisibilityBlack24Dp(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Page-1\",\n stroke: \"none\",\n strokeWidth: 1,\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"visibility_black_24dp\"\n }, /*#__PURE__*/React.createElement(\"polygon\", {\n id: \"Path\",\n points: \"0 0 24 0 24 24 0 24\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,6 C15.79,6 19.17,8.13 20.82,11.5 C19.17,14.87 15.79,17 12,17 C8.21,17 4.83,14.87 3.18,11.5 C4.83,8.13 8.21,6 12,6 M12,4 C7,4 2.73,7.11 1,11.5 C2.73,15.89 7,19 12,19 C17,19 21.27,15.89 23,11.5 C21.27,7.11 17,4 12,4 Z M12,9 C13.38,9 14.5,10.12 14.5,11.5 C14.5,12.88 13.38,14 12,14 C10.62,14 9.5,12.88 9.5,11.5 C9.5,10.12 10.62,9 12,9 M12,7 C9.52,7 7.5,9.02 7.5,11.5 C7.5,13.98 9.52,16 12,16 C14.48,16 16.5,13.98 16.5,11.5 C16.5,9.02 14.48,7 12,7 Z\",\n id: \"Shape\",\n fill: \"#000000\",\n fillRule: \"nonzero\"\n })))));\n};\nexport default SvgVisibilityBlack24Dp;","var _g;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgVisibilityOffBlack24Dp = function SvgVisibilityOffBlack24Dp(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\"\n }, props), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"Page-1\",\n stroke: \"none\",\n strokeWidth: 1,\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n id: \"visibility_off_black_24dp\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0,0 L24,0 L24,24 L0,24 L0,0 Z M0,0 L24,0 L24,24 L0,24 L0,0 Z M0,0 L24,0 L24,24 L0,24 L0,0 Z M0,0 L24,0 L24,24 L0,24 L0,0 Z\",\n id: \"Shape\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12,6 C15.79,6 19.17,8.13 20.82,11.5 C20.23,12.72 19.4,13.77 18.41,14.62 L19.82,16.03 C21.21,14.8 22.31,13.26 23,11.5 C21.27,7.11 17,4 12,4 C10.73,4 9.51,4.2 8.36,4.57 L10.01,6.22 C10.66,6.09 11.32,6 12,6 Z M10.93,7.14 L13,9.21 C13.57,9.46 14.03,9.92 14.28,10.49 L16.35,12.56 C16.43,12.22 16.490037,11.86 16.490037,11.49 C16.5,9.01 14.48,7 12,7 C11.63,7 11.28,7.05 10.93,7.14 Z M2.01,3.87 L4.69,6.55 C3.06,7.83 1.77,9.53 1,11.5 C2.73,15.89 7,19 12,19 C13.52,19 14.98,18.71 16.32,18.18 L19.74,21.6 L21.15,20.19 L3.42,2.45 L2.01,3.87 Z M9.51,11.37 L12.12,13.98 C12.08,13.99 12.04,14 12,14 C10.62,14 9.5,12.88 9.5,11.5 C9.5,11.45 9.51,11.42 9.51,11.37 L9.51,11.37 Z M6.11,7.97 L7.86,9.72 C7.63,10.27 7.5,10.87 7.5,11.5 C7.5,13.98 9.52,16 12,16 C12.63,16 13.23,15.87 13.77,15.64 L14.75,16.62 C13.87,16.86 12.95,17 12,17 C8.21,17 4.83,14.87 3.18,11.5 C3.88,10.07 4.9,8.89 6.11,7.97 Z\",\n id: \"Shape\",\n fill: \"#000000\",\n fillRule: \"nonzero\"\n })))));\n};\nexport default SvgVisibilityOffBlack24Dp;","import React from 'react';\nimport { Spacer } from '../../../parts/Spacer';\nimport { FormValidationMessage } from '../FormValidationMessage';\nimport VisibilityIcon from './visibility_black_24dp.svg';\nimport VisibilityOffIcon from './visibility_off_black_24dp.svg';\n\nexport const FormText: React.FC<\n {\n label: string;\n validationMessage?: string | undefined;\n } & React.InputHTMLAttributes\n> = ({ label, validationMessage, ...attr }) => {\n const isPassword = attr.type === 'password';\n const [isRevealPassword, setIsRevealPassword] =\n React.useState(false);\n\n return (\n \n \n \n\n \n \n {label}\n \n {isPassword && (\n {\n setIsRevealPassword(!isRevealPassword);\n }}\n type=\"button\"\n >\n {isRevealPassword ? (\n \n ) : (\n \n )}\n \n )}\n \n {validationMessage && (\n <>\n \n \n >\n )}\n \n );\n};\n","export const Loading: React.FC = () => (\n \n \n \n \n \n \n);\n","import type { FormikProps } from 'formik';\n\nexport function generateFormikInputFieldOptions(\n formik: FormikProps,\n name: K,\n type: 'text' | 'password' | 'tel' | 'email' | 'checkbox' | 'radio'\n): React.InputHTMLAttributes {\n return {\n type,\n name: name as string,\n onChange: formik.handleChange,\n onBlur: formik.handleBlur,\n value: formik.values[name] as unknown as string,\n };\n}\n\nexport function generateFormikSelectFieldOptions(\n formik: FormikProps,\n name: K\n): React.SelectHTMLAttributes {\n return {\n name: name as string,\n onChange: formik.handleChange,\n onBlur: formik.handleBlur,\n value: formik.values[name] as unknown as string,\n };\n}\n","import type { FormikProps } from 'formik';\n\nexport function getFormikErrorMessage(\n formik: FormikProps,\n name: U\n): string {\n return formik.touched[name] && formik.errors[name]\n ? (formik.errors[name] as string)\n : '';\n}\n","export const placeholderTexts = {\n verificationCode: {\n label: '本人確認コード',\n placeholder: '例)123456',\n },\n email: {\n label: 'メールアドレス',\n placeholder: '',\n },\n loginId: {\n label: 'ログインID',\n placeholder: '6桁以上の半角英数字',\n },\n password: {\n label: 'パスワード',\n placeholder: '8桁以上の半角英数字',\n },\n newPassword: {\n label: '新しいパスワード',\n placeholder: '8桁以上の半角英数字',\n },\n wabiken: {\n label: 'シリアルコード',\n placeholder: '16桁の英数字(ハイフン無し)',\n },\n} as const;\n","import * as Yup from 'yup';\n\nconst validationMessages = {\n required: '入力必須です',\n email: 'メールアドレスを入力してください',\n min6: '6文字以上で入力してください',\n min8: '8文字以上で入力してください',\n length16: '16文字で入力してください',\n alphanumerical: '半角英数字で入力してください',\n alphanumericalKigo: '半角英数字記号で入力してください',\n alphanumericalKigoRequired: '英数字両方を含む必要があります',\n numerical: '半角数字で入力してください',\n} as const;\n\nexport const yupValidations = {\n verificationCode: Yup.string()\n .required(validationMessages['required'])\n .matches(/^[0-9]*$/, validationMessages['numerical']),\n\n loginId: Yup.string()\n .required(validationMessages['required'])\n .matches(\n /^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/,\n validationMessages['alphanumericalKigo']\n )\n .min(6, validationMessages['min6']),\n\n password: Yup.string()\n .required(validationMessages['required'])\n .matches(\n /^[a-zA-Z0-9!-/:-@¥[-`{-~]*$/,\n validationMessages['alphanumericalKigo']\n )\n .min(8, validationMessages['min8']),\n\n passwordRegister: Yup.string()\n .required(validationMessages['required'])\n .matches(\n /^(?=.*[A-Z|a-z])(?=.*[0-9])[a-zA-Z0-9!-/:-@¥[-`{-~]*$/,\n validationMessages['alphanumericalKigoRequired']\n )\n .min(8, validationMessages['min8']),\n\n email: Yup.string()\n .required(validationMessages['required'])\n .email(validationMessages['email']),\n\n optEmail: Yup.string().email(validationMessages['email']),\n\n wabiken: Yup.string()\n .required(validationMessages['required'])\n .matches(/^[0-9a-zA-Z]*$/, validationMessages['alphanumerical'])\n .length(16, validationMessages['length16']),\n\n required: Yup.string().required(validationMessages['required']),\n} as const;\n"],"names":["InputForm","state","startSignUpProcess","isLoading","formik","useFormik","initialValues","formValues","validationSchema","Yup","shape","loginId","yupValidations","password","passwordRegister","email","onSubmit","MainContainer","Spacer","level","FormErrorMessage","message","errorMessage","div","className","form","e","preventDefault","handleSubmit","FormText","generateFormikInputFieldOptions","label","placeholderTexts","placeholder","autoComplete","validationMessage","getFormikErrorMessage","ul","url","PRIVACY_URL","text","TERMS_SERVICE_URL","TERMS_ACCOUNT_URL","map","li","a","href","target","rel","FormSubmitButtons","buttons","buttonType","type","disabled","reducer","action","pageStatus","apiResponse","errorCode","payload","SignUpStart","useSignUpStart","router","useRouter","dispatch","React","isLoadedUserInfo","userInfo","useUserInfo","setIsLoading","signUp","useAmplifyAuth","setSession","useSetSignUpSession","isLoggedIn","replace","Loading","signUpSessionAtom","atomWithStorage","createJSONStorage","sessionStorage","window","getOnInit","undefined","useSignUpSessionValue","session","useAtomValue","useSetAtom","scrollTo","FormValidationMessage","attr","isPassword","isRevealPassword","setIsRevealPassword","input","button","onClick","VisibilityIcon","VisibilityOffIcon","role","svg","aria-hidden","viewBox","fill","xmlns","path","d","name","onChange","handleChange","onBlur","handleBlur","value","values","touched","errors","verificationCode","newPassword","wabiken","validationMessages","required","min6","min8","length16","alphanumerical","alphanumericalKigo","alphanumericalKigoRequired","numerical","matches","min","optEmail"],"sourceRoot":"","ignoreList":[]}