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KAAK2D,MAAM,CAACC,SACrCC,EAAW9D,EAAKG,MAAM,CAAG,EAAIH,EAAKK,IAAI,CAAC,KAAO,OAC9C0D,EAAS,IAAgBD,MAAAA,CAAZ1D,EAAG,WAAkBrF,MAAA,CAAT+I,EAE/BlJ,CAAAA,OAAOC,QAAQ,CAACyG,IAAI,CAAGyC,CACzB,EACA,CAACjJ,EAAS,CAGQ,CACtB","sources":["webpack://_N_E/?5973","webpack://_N_E/./src/app/components/forms/ContactForm.tsx","webpack://_N_E/./src/app/components/templates/Contact.tsx","webpack://_N_E/./src/components/forms/hook.tsx","webpack://_N_E/./src/components/forms/ui/label.tsx","webpack://_N_E/./src/components/forms/ui/field-block.tsx","webpack://_N_E/./src/components/forms/ui/input.tsx","webpack://_N_E/./src/components/forms/ui/select.tsx","webpack://_N_E/./src/components/forms/ui/textarea.tsx","webpack://_N_E/./src/components/forms/ui/validation-error.tsx","webpack://_N_E/./src/components/parts/button/index.tsx","webpack://_N_E/./src/components/parts/checkbox/index.tsx","webpack://_N_E/./src/components/parts/heading/index.tsx","webpack://_N_E/./src/components/parts/lead/index.tsx","webpack://_N_E/./src/components/parts/section/index.tsx","webpack://_N_E/./src/hooks/useThanksForAppRouter.ts","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/src/app/components/templates/Contact.tsx\")","'use client'\nimport {\n email,\n literal,\n minLength,\n object,\n optional,\n Output,\n regex,\n string\n} from 'valibot'\nimport React, { memo, useCallback, useState, useEffect } from 'react'\nimport { Section } from '@/components/parts/section'\nimport { useForm, SubmitHandler } from 'react-hook-form'\nimport { valibotResolver } from '@hookform/resolvers/valibot'\nimport { useSendApi } from '@/components/forms/hook'\nimport { ValidationError } from '@/components/forms/ui/validation-error'\nimport { Heading } from '@/components/parts/heading'\nimport { FieldBlock } from '@/components/forms/ui/field-block'\nimport { Input } from '@/components/forms/ui/input'\nimport { Select } from '@/components/forms/ui/select'\nimport { Textarea } from '@/components/forms/ui/textarea'\nimport { Button } from '@/components/parts/button'\nimport { Checkbox } from '@/components/parts/checkbox'\nimport { Lead } from '@/components/parts/lead'\nimport { Department } from '@/types/newt/department'\nimport { useThanksForAppRouter } from '@/hooks/useThanksForAppRouter'\nimport { Opportunity } from '@/types/newt/opportunity'\n\ntype Input = {\n salesforceId?: string\n company: string\n lastname: string\n firstname: string\n email: string\n phone_number: string\n department?: string\n select: string\n textarea?: string\n checkbox: boolean\n first_view_route?: string\n last_view_route?: string\n}\n\nconst LawgueContactSchema = object({\n salesforceId: string(),\n company: string([minLength(1, '必須項目です')]),\n lastname: string([minLength(1, '必須項目です')]),\n firstname: string([minLength(1, '必須項目です')]),\n email: string([\n minLength(1, '必須項目です'),\n email('入力されたメールアドレスに間違いがあります')\n ]),\n phone_number: string([\n minLength(1, '必須項目です'),\n regex(/^\\d{2,4}-\\d{1,4}-\\d{4}$/, '電話番号の形式を確認してください')\n ]),\n select_form1: string([minLength(1, '必須項目です')]),\n department: optional(string()),\n select_form2: string([minLength(1, '必須項目です')]),\n select_form3: string([minLength(1, '必須項目です')]),\n select_form4: string([minLength(1, '必須項目です')]),\n textarea: optional(string()),\n checkbox: literal(true, 'チェックを入れてください'),\n first_view_route: optional(string()),\n last_view_route: optional(string())\n})\n\ntype ContactTemplateProps = {\n content: any\n departments: Department[]\n opportunities: Opportunity[]\n}\n\ntype LawgueContactSchema = Output\n\nexport const ContactTemplate: React.FC = memo(\n ({ departments, opportunities }) => {\n const { pushThanks } = useThanksForAppRouter()\n const { sendApi, isSendError } = useSendApi(\n '/lawgue-contact',\n '/thanks_contact/'\n )\n\n const [isButtonClicked, setIsButtonClicked] = useState(false)\n const [firstViewRoute, setFirstViewRoute] = useState('')\n const [lastViewRoute, setLastViewRoute] = useState('')\n const [localError, setLocalError] = useState(false)\n\n useEffect(() => {\n const fullPath = `${window.location.pathname}${window.location.search}`\n\n if (!sessionStorage.getItem('firstViewURL')) {\n sessionStorage.setItem('firstViewURL', fullPath)\n }\n\n setFirstViewRoute(sessionStorage.getItem('firstViewURL') || '/')\n setLastViewRoute(fullPath)\n }, [])\n\n const handleOnSubmit: SubmitHandler = useCallback(\n async (data) => {\n const params = new URLSearchParams(window.location.search)\n const formData = {\n ...data,\n first_view_route: firstViewRoute,\n last_view_route: lastViewRoute,\n utm_params: Object.fromEntries(params)\n }\n // console.log('Submitting form data:', formData)\n setIsButtonClicked(true)\n setLocalError(false)\n await sendApi(JSON.stringify(formData))\n .then(() => {\n pushThanks('thanks_contact')\n })\n .catch((error) => {\n console.error('Sending API request failed:', error)\n setLocalError(true)\n })\n },\n [sendApi, firstViewRoute, lastViewRoute, pushThanks]\n )\n\n const {\n register,\n handleSubmit,\n formState: { errors: formatError, isLoading }\n } = useForm({\n resolver: valibotResolver(LawgueContactSchema)\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 \n
\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n ({\n label: dept.title,\n value: dept.title\n }))\n ]}\n />\n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n ({\n label: opt.label,\n value: opt.value\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 {(isSendError || localError) && (\n
\n

\n エラーが起こったため送信することができませんでした\n

\n

\n お手数ですがもう一度ご送信ください。\n
\n それでも送信できない場合は、すこし時間を置いてお試しくださいませ。\n

\n
\n )}\n
\n
\n )\n }\n)\n\nContactTemplate.displayName = 'ContactTemplate'\n","'use client'\nimport { Opportunity } from '@/types/newt/opportunity'\nimport { ContactTemplate } from '../forms/ContactForm'\nimport { Department } from '@/types/newt/department'\n\ntype ContactPageProps = {\n departments: Department[]\n currentUrl: string\n opportunities: Opportunity[]\n}\n\nconst ContactPage: React.FC = ({\n departments,\n opportunities,\n currentUrl,\n}) => {\n return (\n <>\n \n \n )\n}\n\nexport default ContactPage\n","import React, { useCallback } from 'react'\nimport { FormResponse } from '../utils/form'\nimport { useRouter } from 'next/navigation'\n\nconst createThanksPath = (to: string) => {\n const path = location.pathname.split('/')\n if (path[0] === '') {\n path.splice(0, 1)\n }\n if (path[path.length - 1] === '') {\n path.splice(path.length - 1, 1)\n }\n const p = `${to}?from=${path.join('-')}`\n return p\n}\n\n// isSuccessCondition関数の型定義を追加\ntype SuccessConditionFunc = (json: any, res: Response) => boolean\n\nexport const useSendApi = (\n apiPath: string,\n thanksPagePath: string,\n isSuccessCondition?: SuccessConditionFunc\n) => {\n const router = useRouter()\n const [isSendError, setIsSendError] = React.useState(false)\n const sendApi = useCallback(\n async (body: string) => {\n setIsSendError(false)\n\n try {\n const res = await fetch(\n `${process.env.NEXT_PUBLIC_FORM_ENDPOINT}${apiPath}`,\n {\n method: 'POST',\n mode: 'cors',\n body,\n }\n )\n const json = (await res.json()) as FormResponse\n\n // Default success condition\n let isSuccess = json.success && res.status === 200\n\n // Custom success condition if provided\n if (isSuccessCondition) {\n isSuccess = isSuccessCondition(json, res)\n }\n\n if (!isSuccess) {\n console.error('API Error:', json)\n throw new Error(\n 'API response indicates failure: ' + JSON.stringify(json)\n )\n }\n\n location.href = createThanksPath(thanksPagePath)\n } catch (e) {\n setIsSendError(true)\n }\n },\n [apiPath, thanksPagePath]\n )\n\n return {\n isSendError,\n sendApi,\n }\n}\n","import React, { ComponentPropsWithoutRef } from 'react'\n\nexport const Label = ({\n labelText,\n htmlFor,\n required,\n ...rest\n}: ComponentPropsWithoutRef<'label'> & {\n labelText: string\n htmlFor: string\n required?: boolean\n}) => {\n return (\n \n {labelText}\n {required && *}\n \n )\n}\n","import { Label } from './label'\nimport { ValidationError } from './validation-error'\nimport { FieldError } from 'react-hook-form'\nimport { memo } from 'react'\n\nexport const FieldBlock = memo(\n ({\n children,\n htmlFor,\n labelText,\n required,\n error,\n }: {\n children: React.ReactNode\n labelText: string\n htmlFor: string\n required?: boolean\n error?: FieldError\n }) => {\n const inputClass = error ? 'error_input' : 'done_input'\n return (\n
\n
\n )\n }\n)\n\nFieldBlock.displayName = 'FieldBlock'\n","import React, { ComponentPropsWithRef } from 'react'\nimport { UseFormRegisterReturn } from 'react-hook-form'\n\nexport const Input = ({\n register,\n ...rest\n}: ComponentPropsWithRef<'input'> & { register: UseFormRegisterReturn }) => {\n return (\n <>\n \n \n )\n}\n","import React, { ComponentPropsWithRef } from 'react'\nimport { UseFormRegisterReturn } from 'react-hook-form'\nimport clsx from 'clsx'\n\nexport const Select = ({\n register,\n options,\n ...rest\n}: ComponentPropsWithRef<'select'> & {\n register: UseFormRegisterReturn\n options: { label: string; value: string }[]\n}) => {\n return (\n
\n \n \n {options.map((option) => {\n return (\n \n )\n })}\n \n
\n )\n}\n","import React, { ComponentPropsWithRef } from 'react'\nimport { UseFormRegisterReturn } from 'react-hook-form'\n\nexport const Textarea = ({\n register,\n ...rest\n}: ComponentPropsWithRef<'textarea'> & { register: UseFormRegisterReturn }) => {\n return (\n \n )\n}\n","import React from 'react'\nimport { FieldError } from 'react-hook-form'\n\nexport const ValidationError = ({ error }: { error?: FieldError }) => {\n if (!error) return null\n return (\n

\n {error.message}\n

\n )\n}\n","import React, { memo } from 'react'\n\ntype ButtonProps = {\n type: 'button' | 'submit'\n size?: 'small' | 'medium' | 'large' | 'xlarge'\n bg?: 'visible' | 'hidden'\n border?: 'none' | ''\n full?: 'full' | 'nonefull'\n label: string\n isLoading?: boolean\n onClick?: () => void\n}\n\nconst sizesWidth = (size: 'small' | 'medium' | 'large' | 'xlarge') => {\n let button = ''\n switch (size) {\n case 'medium':\n button = 'button__medium'\n break\n case 'small':\n button = 'button__small'\n break\n case 'large':\n button = 'button__large'\n break\n case 'xlarge':\n button = 'button__xlarge'\n break\n default:\n break\n }\n\n return button\n}\n\nconst bgswitch = (bg: 'visible' | 'hidden') => {\n let button = ''\n switch (bg) {\n case 'visible':\n button = 'button__visible'\n break\n case 'hidden':\n button = 'button__hidden'\n break\n default:\n break\n }\n\n return button\n}\n\nconst fullsWidth = (full: 'full' | 'nonefull') => {\n let button = ''\n switch (full) {\n case 'full':\n button = 'button__full'\n break\n case 'nonefull':\n button = 'button__nonefull'\n break\n default:\n break\n }\n\n return button\n}\n\nexport const Button = memo(\n ({\n type = 'button',\n size = 'medium',\n bg = 'visible',\n border = '',\n full = 'nonefull',\n label,\n isLoading,\n }: ButtonProps) => {\n return (\n \n {label}\n \n )\n }\n)\n\nButton.displayName = 'Button'\n","import React, { memo } from 'react'\n\ntype CheckboxProps = {\n htmlfor: string\n register: any\n require?: any\n required?: any\n}\n\nexport const Checkbox = memo(\n ({ htmlfor, register, required }: CheckboxProps) => {\n return (\n <>\n \n \n )\n }\n)\nCheckbox.displayName = 'Checkbox'\n","import React, { memo } from 'react'\n\ntype HeadingType = {\n Tag?: 'h1' | 'h2' | 'h3'\n title?: string\n size?:\n | 'text-xxs'\n | 'text-xs'\n | 'text-sm'\n | 'text-base'\n | 'text-lg'\n | 'text-xl'\n | 'text-2xl'\n | 'text-3xl'\n | 'text-4xl'\n | 'text-4xlh'\n | 'text-5xl'\n | 'text-6xl'\n | 'text-sm lg:text-base'\n | 'text-lg lg:text-2xl'\n | 'text-lg lg:text-3xl'\n | 'text-lg lg:text-4xl'\n | 'text-base lg:text-2xl'\n spsize?:\n | 'text-xxs lg:text-base'\n | 'text-xs lg:text-base'\n | 'text-sm lg:text-base'\n | 'text-base lg:text-lg'\n | 'text-base lg:text-xl'\n | 'text-base lg:text-2xl'\n | 'text-lg lg:text-2xl'\n | 'text-lg lg:text-3xl'\n | 'text-lg lg:text-4xl'\n | 'text-xl lg:text-3xl'\n | 'text-xl lg:text-4xl'\n textColor?:\n | 'primary'\n | 'darken'\n | 'textblack'\n | 'white'\n | 'secondary'\n | 'darkgray'\n textalign?: 'text-left' | 'text-center' | 'text-right'\n margin?: string\n id?: string\n children?: React.ReactNode | string\n}\n\nexport const Heading: React.FC = memo(\n ({\n children,\n Tag,\n size,\n spsize,\n textColor,\n textalign,\n margin,\n id,\n ...props\n }) => {\n const Component = Tag as keyof JSX.IntrinsicElements\n return (\n \n )\n }\n)\n\nHeading.displayName = 'Heading'\n","import React, { memo } from 'react'\n\ntype LeadType = {\n Tag?: 'p' | 'span'\n size?:\n | 'text-xxs'\n | 'text-xs'\n | 'text-sm'\n | 'text-lg'\n | 'text-xl'\n | 'text-base'\n | 'text-4xl'\n | 'text-5xl'\n spsize?:\n | 'text-xs'\n | 'text-xxs lg:text-base'\n | 'text-xs lg:text-base'\n | 'text-sm lg:text-base'\n | 'text-base lg:text-lg'\n | 'text-base lg:text-xl'\n | 'text-base lg:text-2xl'\n | 'text-lg lg:text-2xl'\n | 'text-xl lg:text-3xl'\n textalign?: 'text-left' | 'text-center' | 'text-right'\n sptextalign?:\n | 'text-left lg:text-center'\n | 'text-center lg:text-center'\n | 'text-right lg:text-center'\n | 'text-left lg:text-left'\n | 'text-center lg:text-left'\n | 'text-right lg:text-left'\n | 'text-left lg:text-right'\n | 'text-center lg:text-right'\n | 'text-right lg:text-right'\n fontweight?: 'font-bold' | 'font-normal' | ''\n margin?: string\n leading?: string\n textcolor?:\n | 'primary'\n | 'darken'\n | 'textblack'\n | 'white'\n | 'secondary'\n | 'darkgray'\n spmargin?: '' | ''\n lead: string\n}\n\nexport const Lead: React.FC = memo(\n ({\n Tag = 'p',\n size,\n spsize,\n textalign,\n sptextalign,\n lead,\n fontweight,\n margin,\n leading,\n spmargin,\n textcolor,\n ...props\n }) => {\n const Component = Tag as keyof JSX.IntrinsicElements\n\n return (\n \n )\n }\n)\n\nLead.displayName = 'Lead'\n","import React, { memo } from 'react'\n\ntype SectionProps = {\n illust?: string\n bg?: string\n padding?: string\n children: React.ReactNode\n}\n\nexport const Section: React.FC = memo(\n ({ padding = 'lg:py-40 pb-10 pt-10 lg:px-0 px-6', bg, illust, children }) => {\n return (\n
\n \n {illust ? (\n
\n {children}\n {illust && (\n \"\"\n )}\n
\n ) : (\n <>{children}\n )}\n \n
\n )\n }\n)\n\nSection.displayName = 'Section'\n","'use client'\n\nimport { useCallback } from 'react'\nimport { usePathname } from 'next/navigation'\n\nexport const useThanksForAppRouter = () => {\n const pathname = usePathname()\n\n const pushThanks = useCallback(\n (to: string) => {\n const currentPath = pathname || '/'\n const path = currentPath.split('/').filter(Boolean)\n const fromPath = path.length > 0 ? path.join('-') : 'home'\n const newUrl = `/${to}/?from=${fromPath}`\n\n window.location.href = newUrl\n },\n [pathname]\n )\n\n return { pushThanks }\n}\n"],"names":["Promise","resolve","then","__webpack_require__","bind","LawgueContactSchema","object","salesforceId","string","company","minLength","lastname","firstname","email","phone_number","regex","select_form1","department","optional","select_form2","select_form3","select_form4","textarea","checkbox","literal","first_view_route","last_view_route","ContactTemplate","memo","departments","opportunities","param","pushThanks","useThanksForAppRouter","sendApi","isSendError","useSendApi","isButtonClicked","setIsButtonClicked","useState","firstViewRoute","setFirstViewRoute","lastViewRoute","setLastViewRoute","localError","setLocalError","useEffect","fullPath","window","location","pathname","concat","search","sessionStorage","getItem","setItem","handleOnSubmit","useCallback","data","params","URLSearchParams","formData","utm_params","Object","fromEntries","JSON","stringify","catch","console","error","register","handleSubmit","formState","errors","formatError","isLoading","useForm","resolver","valibotResolver","jsx_runtime","jsx","Section","padding","jsxs","div","className","Heading","Tag","size","textColor","textalign","form","onSubmit","fieldset","input","type","name","defaultValue","value","FieldBlock","labelText","htmlFor","required","Input","id","placeholder","autoComplete","Select","options","label","map","dept","title","opt","Textarea","Checkbox","htmlfor","require","ValidationError","Lead","lead","margin","Button","bg","p","br","displayName","Contact","currentUrl","Fragment","content","createThanksPath","path","split","splice","length","to","join","apiPath","thanksPagePath","isSuccessCondition","useRouter","setIsSendError","React","body","res","fetch","process","method","mode","json","isSuccess","success","status","href","e","Label","rest","span","children","inputClass","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","clsx","select","option","message","sizesWidth","button","bgswitch","fullsWidth","full","border","disabled","a","target","spsize","props","Component","dangerouslySetInnerHTML","__html","sptextalign","fontweight","leading","spmargin","textcolor","illust","section","img","src","alt","usePathname","currentPath","filter","Boolean","fromPath","newUrl"],"sourceRoot":""}