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C9C+E,EAAS,IAAgBD,MAAAA,CAAZ/E,EAAG,WAAkBrF,MAAA,CAAToK,EAE/BtK,CAAAA,OAAOC,QAAQ,CAACuG,IAAI,CAAG+D,CACzB,EACA,CAAC7L,EAAS,CAGQ,CACtB","sources":["webpack://_N_E/./node_modules/next/dist/api/link.js","webpack://_N_E/./src/app/components/forms/DocumentForm.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/link-button/index.tsx","webpack://_N_E/./src/components/parts/contact/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/use-tracker.ts","webpack://_N_E/./src/hooks/useThanksForAppRouter.ts","webpack://_N_E/"],"sourcesContent":["export { default } from \"../client/link\";\nexport * from \"../client/link\";\n\n//# sourceMappingURL=link.js.map","'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, useEffect, useState, useCallback } from 'react'\nimport { useForm, SubmitHandler } from 'react-hook-form'\nimport { valibotResolver } from '@hookform/resolvers/valibot'\nimport { useSendApi } from '@/components/forms/hook'\nimport { Section } from '@/components/parts/section'\nimport { useRouter, usePathname } from 'next/navigation'\nimport { Button } from '@/components/parts/button'\nimport { ValidationError } from '@/components/forms/ui/validation-error'\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 { Checkbox } from '@/components/parts/checkbox'\nimport { Heading } from '@/components/parts/heading'\nimport { Lead } from '@/components/parts/lead'\nimport { Department } from '@/types/newt/department'\nimport { useThanksForAppRouter } from '@/hooks/useThanksForAppRouter'\nimport { Opportunity } from '@/types/newt/opportunity'\n\nconst lawgueSolutionSchema = 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 textarea: optional(string()),\n checkbox: literal(true, 'チェックを入れてください'),\n first_view_route: optional(string()),\n last_view_route: optional(string())\n})\n\nexport type LawgueSolutionSchema = Output\n\ntype DocumentFormType = {\n bg: string\n formlead?: string\n formtitle?: string\n endpoint?: string\n content?: any\n isPreview?: boolean\n departments: Department[]\n opportunities: Opportunity[]\n}\n\nexport const DocumentForm: React.FC = memo(\n ({ formtitle = '資料請求', bg, formlead, departments, opportunities }) => {\n const router = useRouter()\n const pathname = usePathname()\n const [ImgDocState, setImgDocState] = useState('')\n const { sendApi, isSendError } = useSendApi(\n '/lawgue-solution',\n '/thanks_download/'\n )\n const [isButtonClicked, setIsButtonClicked] = useState(false)\n\n const [firstViewRoute, setFirstViewRoute] = useState('')\n const [lastViewRoute, setLastViewRoute] = useState('')\n const [salesforceIdValue, setSalesforceIdValue] = useState('')\n const { pushThanks } = useThanksForAppRouter()\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 salesforceId: salesforceIdValue,\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_download')\n })\n .catch((error) => {\n console.error('Sending API request failed:', error)\n setLocalError(true)\n })\n },\n [sendApi, firstViewRoute, lastViewRoute, salesforceIdValue, pushThanks]\n )\n\n const {\n register,\n handleSubmit,\n formState: { errors: formatError, isLoading }\n } = useForm>({\n resolver: valibotResolver(lawgueSolutionSchema)\n })\n\n useEffect(() => {\n if (pathname) {\n if (pathname.includes('flow')) {\n setSalesforceIdValue('/l/939003/2022-02-27/btm1')\n setImgDocState('img_doc')\n } else if (pathname.includes('functions')) {\n setSalesforceIdValue('/l/939003/2022-02-27/bthy')\n setImgDocState('img_doc')\n } else if (pathname.includes('contract')) {\n setSalesforceIdValue('/l/939003/2022-02-27/btjf')\n setImgDocState('img_doc_contract')\n } else if (pathname.includes('law')) {\n setSalesforceIdValue('/l/939003/2022-05-22/27qwv')\n setImgDocState('img_doc_law')\n } else if (pathname.includes('regulation')) {\n setSalesforceIdValue('/l/939003/2022-02-27/btkf')\n setImgDocState('img_doc_regulation')\n } else if (pathname.includes('translation')) {\n setSalesforceIdValue('/l/939003/2022-02-27/btl3')\n setImgDocState('img_doc_translation')\n } else if (pathname.includes('voice')) {\n setSalesforceIdValue('/l/939003/2022-02-27/btmh')\n setImgDocState('img_doc_voice')\n } else {\n setSalesforceIdValue('')\n setImgDocState('img_doc')\n }\n }\n }, [pathname])\n\n return (\n
\n \n \n {`${formtitle}`}\n \n\n ご登録いただいたメールアドレスへ${\n formlead ? formlead : 'LAWGUEの資料'\n }のダウンロードURLをお送りいたします。`}\n Tag=\"p\"\n margin=\"mt-6\"\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 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 {(isSendError || localError) && (\n
\n

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

\n

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

\n
\n )}\n \n
\n )\n }\n)\n\nDocumentForm.displayName = 'DocumentForm'\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'\nimport Link from 'next/link'\n\ntype LinkButtonProps = {\n href?: string\n size?: 'small' | 'medium' | 'large' | 'xlarge'\n bg?: 'visible' | 'hidden'\n full?: 'full' | 'nonefull'\n border?: 'none' | ''\n more?: boolean\n label: string\n blank?: boolean\n onClick?: () => void\n}\n\nconst sizeswitch = (size: 'small' | 'medium' | 'large' | 'xlarge', more) => {\n let button = ''\n\n switch (size) {\n case 'medium':\n button = `linkbutton__medium ${more === true ? 'button__more' : ''}`\n break\n case 'small':\n button = 'linkbutton__small'\n break\n case 'large':\n button = 'linkbutton__large'\n break\n case 'xlarge':\n button = 'linkbutton__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 fullswitch = (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 LinkButton: React.FC = memo(\n ({\n href = '/',\n size = 'medium',\n bg = 'visible',\n full = 'nonefull',\n border = '',\n more = false,\n blank = false,\n label,\n onClick,\n }: {\n href?: string\n size?: 'small' | 'medium' | 'large' | 'xlarge'\n bg?: 'visible' | 'hidden'\n full?: 'full' | 'nonefull'\n border?: string\n more?: boolean\n blank?: boolean\n label?: string\n onClick?: () => void\n }) => {\n return (\n <>\n {blank === true ? (\n \n {label}\n \n ) : (\n <>\n {href.indexOf('#') === 0 ? (\n \n {label}\n \n ) : (\n \n {\n onClick?.()\n }}\n >\n {label}\n \n \n )}\n \n )}\n \n )\n },\n)\n\nLinkButton.displayName = 'LinkButton'\n","'use client'\n\nimport React, { memo } from 'react'\nimport { LinkButton } from '../link-button'\nimport clsx from 'clsx'\nimport { useCLickEvent } from '@/hooks/use-tracker'\n\ntype ContactType = {\n bg: string\n}\n\nexport const Contact: React.FC = memo(({ bg }) => {\n const { pushGa4ClickEvent } = useCLickEvent()\n return (\n \n
\n
\n

\n お気軽にお問い合わせ・ご相談ください\n

\n \n
\n
\n {\n pushGa4ClickEvent({\n eventCategory: 'contact',\n eventUi: 'footer-button'\n })\n }}\n />\n
\n
\n \n )\n})\n\nContact.displayName = 'Contact'\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","interface GtmDataLayer {\n push: (obj: any) => void\n}\n\nexport const getDataLayer = (): GtmDataLayer => {\n return (\n (window as Window & { dataLayer?: GtmDataLayer }).dataLayer ?? {\n push: () => {},\n }\n )\n}\n\nexport const useCLickEvent = () => {\n return {\n pushGa4ClickEvent: (eventObj: {\n eventCategory: string // 何をクリックしたかなど\n eventUi: string // UI\n }) => {\n try {\n getDataLayer().push({\n event: 'internal_action',\n eventAction: 'click',\n ...eventObj,\n })\n } catch (e: any) {\n // NOP\n }\n },\n }\n}\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":["lawgueSolutionSchema","object","salesforceId","string","company","minLength","lastname","firstname","email","phone_number","regex","select_form1","department","optional","select_form2","select_form3","textarea","checkbox","literal","first_view_route","last_view_route","DocumentForm","memo","formtitle","bg","formlead","departments","opportunities","param","useRouter","pathname","usePathname","ImgDocState","setImgDocState","useState","sendApi","isSendError","useSendApi","isButtonClicked","setIsButtonClicked","firstViewRoute","setFirstViewRoute","lastViewRoute","setLastViewRoute","salesforceIdValue","setSalesforceIdValue","pushThanks","useThanksForAppRouter","localError","setLocalError","useEffect","fullPath","window","location","concat","search","sessionStorage","getItem","setItem","handleOnSubmit","useCallback","data","params","URLSearchParams","formData","utm_params","Object","fromEntries","JSON","stringify","then","catch","console","error","register","handleSubmit","formState","errors","formatError","isLoading","useForm","resolver","valibotResolver","includes","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Section","jsxs","div","className","id","tabIndex","Heading","Tag","size","textColor","textalign","Lead","lead","margin","form","onSubmit","fieldset","img","src","alt","input","type","name","defaultValue","value","FieldBlock","labelText","htmlFor","required","Input","placeholder","autoComplete","Select","options","label","map","dept","title","opt","Textarea","Checkbox","htmlfor","require","ValidationError","Button","p","br","displayName","createThanksPath","path","split","splice","length","to","join","apiPath","thanksPagePath","isSuccessCondition","setIsSendError","React","body","res","fetch","process","method","mode","json","isSuccess","success","status","href","e","Label","rest","jsx_runtime","span","children","inputClass","Fragment","clsx","select","option","message","sizesWidth","button","bgswitch","fullsWidth","full","border","disabled","a","target","sizeswitch","more","fullswitch","LinkButton","blank","onClick","Link","rel","indexOf","legacyBehavior","Contact","pushGa4ClickEvent","useCLickEvent","section","data-observe-item","h2","eventCategory","eventUi","spsize","props","Component","dangerouslySetInnerHTML","__html","sptextalign","fontweight","leading","spmargin","textcolor","padding","illust","getDataLayer","_window_dataLayer","dataLayer","push","event","eventAction","eventObj","currentPath","filter","Boolean","fromPath","newUrl"],"sourceRoot":""}