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,GAAA,EAACO,KAAAA,CAAGL,UAAU,oBAAW,qBAInC","sources":["webpack://_N_E/?d1af","webpack://_N_E/./src/app/matomo.ts","webpack://_N_E/./src/app/page.tsx","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/Users/cryptix/Documents/MassLbs/Tennessine/packages/frontend/src/app/page.tsx\")","// deno-lint-ignore-file\nimport { useEffect } from \"react\";\n// setup matomo\nexport default function Matomo() {\n const matomoUrl = process.env.NEXT_PUBLIC_MATOMO_URL || null;\n useEffect(() => {\n if (matomoUrl) {\n const _mtm = (globalThis._mtm = globalThis._mtm || []);\n _mtm.push({ \"mtm.startTime\": new Date().getTime(), event: \"mtm.Start\" });\n var d = document,\n g = d.createElement(\"script\"),\n s = d.getElementsByTagName(\"script\")[0];\n g.async = true;\n g.src = matomoUrl;\n s.parentNode.insertBefore(g, s);\n }\n }, [matomoUrl]);\n}\n","// SPDX-FileCopyrightText: 2024 Mass Labs\n//\n// SPDX-License-Identifier: GPL-3.0-or-later\n\n\"use client\";\n\nimport React, { useEffect } from \"react\";\nimport { useRouter, useSearchParams } from \"next/navigation\";\nimport { useUserContext } from \"@/context/UserContext\";\nimport { useClient } from \"@/context/AuthContext\";\nimport Matomo from \"./matomo.ts\";\nimport { Status } from \"../types\";\n\n// add _mtm to global for matomo\n\nfunction Homepage() {\n Matomo();\n const {\n setInviteSecret\n } = useUserContext();\n const {\n clientConnected\n } = useClient();\n const searchParams = useSearchParams();\n const inviteSecret = searchParams!.get(\"inviteSecret\") as `0x${string}`;\n const router = useRouter();\n useEffect(() => {\n if (clientConnected === Status.Complete) {\n router.push(\"/products\");\n }\n }, [clientConnected]);\n if (inviteSecret) {\n setInviteSecret(inviteSecret);\n }\n return
\n
\n
\n

Mass Market

\n
\n
\n
;\n}\nexport default Homepage;"],"names":["Promise","resolve","then","__webpack_require__","bind","page","Matomo","matomoUrl","process","useEffect","_mtm","globalThis","push","Date","getTime","event","d","document","g","createElement","s","getElementsByTagName","async","src","parentNode","insertBefore","setInviteSecret","useUserContext","clientConnected","useClient","inviteSecret","searchParams","useSearchParams","get","router","useRouter","Status","Complete","jsx_runtime","jsx","main","className","data-sentry-component","data-sentry-source-file","section","div","h1"],"sourceRoot":""}