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GAGrB,CAAClD,EAAS,CAGf,6FCTO,IAAMmD,EAAe,SAExBC,EADF,OACE,OAAAA,CAAAA,EAAAC,OAAkDC,SAAS,GAA3DF,KAAA,IAAAA,EAAAA,EAA+D,CAC7DG,KAAM,KAAO,CACf,CAEJ,EAEa1D,EAAgB,IACpB,EACLD,kBAAmB,IAIjB,GAAI,CACFuD,IAAeI,IAAI,CAAC,CAClBC,MAAO,kBACPC,YAAa,QACb,GAAGC,CAAQ,EAEf,CAAE,MAAO1E,EAAQ,CAEjB,CACF,CACF","sources":["webpack://_N_E/?4321","webpack://_N_E/./node_modules/clsx/dist/clsx.m.js","webpack://_N_E/./node_modules/next/dist/api/link.js","webpack://_N_E/./node_modules/next/dist/api/navigation.js","webpack://_N_E/./src/app/components/parts/Contact.tsx","webpack://_N_E/./src/app/components/parts/LinkButton.tsx","webpack://_N_E/./src/app/hooks/use-from-params.ts","webpack://_N_E/./src/hooks/use-tracker.ts","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/node_modules/next/dist/client/link.js\");\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src646638164/src/lawgue-website-v2/src/app/components/parts/Contact.tsx\")","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t = memo(({ bg }) => {\n const { pushGa4ClickEvent } = useCLickEvent()\n const params = useFromParams()\n const pathname = usePathname()\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","'use client'\n\nimport React, { memo } from 'react'\nimport Link from 'next/link'\n\ntype Size = 'small' | 'medium' | 'large' | 'xlarge'\ntype Background = 'visible' | 'hidden'\ntype FullWidth = 'full' | 'nonefull'\n\ntype LinkButtonProps = {\n href?: string\n size?: Size\n bg?: Background\n full?: FullWidth\n border?: 'none' | ''\n more?: boolean\n label: string\n blank?: boolean\n onClick?: () => void\n}\n\nconst getButtonSize = (size: Size, more: boolean = false): string => {\n const sizeClasses = {\n small: 'linkbutton__small',\n medium: `linkbutton__medium ${more ? 'button__more' : ''}`,\n large: 'linkbutton__large',\n xlarge: 'linkbutton__xlarge'\n }\n return sizeClasses[size] || ''\n}\n\nconst getBackgroundClass = (bg: Background): string => {\n const bgClasses = {\n visible: 'button__visible',\n hidden: 'button__hidden'\n }\n return bgClasses[bg] || ''\n}\n\nconst getFullWidthClass = (full: FullWidth): string => {\n const fullClasses = {\n full: 'button__full',\n nonefull: 'button__nonefull'\n }\n return fullClasses[full] || ''\n}\n\nconst getButtonClasses = (\n size: Size,\n bg: Background,\n full: FullWidth,\n border: string,\n more: boolean\n): string => {\n return `\n base_button\n ${getButtonSize(size, more)}\n ${getBackgroundClass(bg)}\n ${border ? 'button__none' : ''}\n ${getFullWidthClass(full)}\n transition\n ${\n bg === 'hidden'\n ? 'hover:text-secondary hover:border-secondary'\n : 'hover:bg-secondary hover:border-secondary'\n }\n `\n .trim()\n .replace(/\\s+/g, ' ')\n}\n\nexport const LinkButton = 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 }: LinkButtonProps) => {\n const buttonClasses = getButtonClasses(size, bg, full, border, more)\n\n if (blank) {\n return (\n \n {label}\n \n )\n }\n\n if (href.startsWith('#')) {\n return (\n \n {label}\n \n )\n }\n\n return (\n \n {label}\n \n )\n }\n)\n\nLinkButton.displayName = 'LinkButton'\n\nexport default LinkButton\n","import { usePathname } from 'next/navigation'\nimport { useMemo } from 'react'\n\nexport const useFromParams = () => {\n const pathname = usePathname()\n\n const params = useMemo(() => {\n if (!pathname) return ''\n if (pathname === '/') return '?from=home'\n return `?from=${pathname.replaceAll('/', '')}`\n }, [pathname])\n\n return params\n}\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"],"names":["Promise","resolve","then","__webpack_require__","t","bind","__webpack_exports__","Z","e","f","n","arguments","length","r","Array","isArray","Contact","memo","bg","param","pushGa4ClickEvent","useCLickEvent","params","useFromParams","pathname","usePathname","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","section","className","clsx","id","data-observe-item","jsxs","div","h2","img","src","alt","LinkButton","href","concat","size","label","onClick","eventCategory","eventUi","displayName","getButtonSize","more","sizeClasses","small","medium","large","xlarge","getBackgroundClass","bgClasses","visible","hidden","getFullWidthClass","fullClasses","full","nonefull","getButtonClasses","border","trim","replace","blank","buttonClasses","Link","target","rel","startsWith","useMemo","replaceAll","getDataLayer","_window_dataLayer","window","dataLayer","push","event","eventAction","eventObj"],"sourceRoot":""}