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IAAAA,WACd,GAAAJ,EAAAK,GAAA,EAACI,QAAAA,CAAMN,UAAWC,IAAAA,KAAAA,CAAcM,QAAQ,mBAAU,WAGlD,GAAAV,EAAAK,GAAA,EAACW,WAAAA,CAASb,UAAWC,IAAAA,QAAAA,CAAiBQ,GAAG,UAAUC,IAAKvC,OAE1D,GAAA0B,EAAAC,IAAA,EAACO,MAAAA,CAAIL,UAAWC,IAAAA,OAAAA,WACd,GAAAJ,EAAAK,GAAA,EAACH,IAAAA,CAAEC,UAAWC,IAAAA,KAAAA,UAAe1B,IAC7B,GAAAsB,EAAAK,GAAA,EAACU,QAAAA,CAAMnB,KAAK,SAASJ,MAAM,OAAOW,UAAWC,IAAAA,MAAAA,QAIrD,oBChGAa,EAAAC,OAAA,EAAkB,uECAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?8ee0","webpack://_N_E/./app/_components/Pages/Contact/ContactForm/index.tsx","webpack://_N_E/./app/(commonLayout)/contact/page.module.css","webpack://_N_E/./app/_components/Pages/Contact/ContactForm/index.module.css"],"sourcesContent":["import(/* webpackMode: \"eager\", webpackExports: [\"ContactForm\"] */ \"/codebuild/output/src844427751/src/FullStackHP-v2/app/_components/Pages/Contact/ContactForm/index.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src844427751/src/FullStackHP-v2/app/(commonLayout)/contact/page.module.css\");\n","'use client';\nimport React, { useRef, useState } from 'react';\nimport styles from './index.module.css';\n\nexport function ContactForm() {\n const lastnameRef = useRef(null);\n const firstnameRef = useRef(null);\n const companyRef = useRef(null);\n const emailRef = useRef(null);\n const typeRef = useRef(null);\n const messageRef = useRef(null);\n const [success, setSuccess] = useState(false);\n const [error, setError] = useState();\n const onSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n const res = await fetch('/api/submit-contact', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n lastname: lastnameRef.current?.value,\n firstname: firstnameRef.current?.value,\n company: companyRef.current?.value,\n email: emailRef.current?.value,\n type: typeRef.current?.value,\n message: messageRef.current?.value,\n }),\n }).then((res) => res.json());\n if (res.status === 'error') {\n setError(res.message);\n } else {\n setSuccess(true);\n }\n };\n if (success) {\n return (\n

\n お問い合わせいただき、ありがとうございます。\n
\n お返事まで今しばらくお待ちください。\n

\n );\n }\n return (\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