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AAO,EAAI,CAACrG,EAAIqG,OAAO,CAACC,QAAQ,CAAC/M,EAAMgK,MAAM,GACnD4C,GAEJ,EAEA1Q,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACRsM,SAASwE,gBAAgB,CAAC,QAASH,GAC5B,KACLrE,SAASyE,mBAAmB,CAAC,QAASJ,EACxC,GACC,CAACpG,EAAI,CACV,qICVA,IAAMqE,EAAsC,CAC1CzF,GAAIA,EAAAA,EAAEA,CACN6H,GAAIC,EAAAA,CAAIA,CACRC,GAAIA,EAAAA,EAAEA,CACNC,GAAIA,EAAAA,EAAEA,CACNC,GAAIA,EAAAA,EAAEA,CACNC,GAAIA,EAAAA,EAAEA,EAGD,SAAS3J,EAAU4J,CAAmB,EAE3C,OAAO1C,CAAO,CAAC0C,EAAyB,EAAIL,EAAAA,CAAIA,kDCmBlDlR,CAAAA,EAAA0Q,CAAA,CA/BA,WAEE,GAAM,CAACc,EAAYC,EAAc,CAAGlP,CAAAA,EAAAA,EAAAA,QAAAA,EAAS,CAC3Cd,MAAO,KACPL,OAAQ,CACV,GAuBA,MArBAnB,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KAER,SAASyR,IACPD,EAAc,CACZhQ,MAAOvB,OAAOyR,UAAU,CACxBvQ,OAAQlB,OAAO0R,WAAW,EAE9B,CAUE,OANA1R,OAAO6Q,gBAAgB,CAAC,SAAUW,GAGlCA,IAGO,IAAMxR,OAAO8Q,mBAAmB,CAAC,SAAUU,EAEtD,EAAG,EAAE,EAEEF,CACT,oKShCAK,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?4571","webpack://_N_E/./src/components/atoms/AdsBanners/AdLeftBanner.tsx","webpack://_N_E/./src/components/atoms/AdsBanners/AdTopBanner.tsx","webpack://_N_E/./src/components/atoms/GamblingAffiliation/Multibanner300x250.tsx","webpack://_N_E/./src/components/atoms/ThemeProvider/ThemeProvider.tsx","webpack://_N_E/./src/components/molecules/Fixtures/LiveFixtures/LiveFixtures.tsx","webpack://_N_E/./src/components/molecules/Fixtures/NextFixtures/NextFixtures.tsx","webpack://_N_E/./src/components/molecules/GATrackers/ThemeAnalyticsTracker.tsx","webpack://_N_E/./src/components/atoms/LinksDropdown/LinksDropdown.tsx","webpack://_N_E/./src/components/molecules/LeaguesOfTheMoment/LeaguesOfTheMoment.tsx","webpack://_N_E/./src/components/molecules/NewsletterForm/NewsletterForm.tsx","webpack://_N_E/./src/components/molecules/LanguageSwitch/LanguageSwitch.tsx","webpack://_N_E/./src/components/atoms/ThemeSwitch/ThemeSwitch.tsx","webpack://_N_E/./src/components/organisms/NavBar/NavBar.tsx","webpack://_N_E/./src/components/organisms/Header/Header.tsx","webpack://_N_E/./src/hooks/useClickOutside.ts","webpack://_N_E/./src/hooks/useLocale.ts","webpack://_N_E/./src/hooks/useWindowSize.ts","webpack://_N_E/./src/components/atoms/CTABanner/_ctaBanner.scss","webpack://_N_E/./src/components/molecules/Fixtures/_fixtures.scss","webpack://_N_E/./src/components/molecules/LeaguesOfTheMoment/_leaguesOfTheMoment.scss","webpack://_N_E/./src/components/molecules/SocialNetworks/_socialNetworks.scss","webpack://_N_E/./src/components/organisms/Footer/_footer.scss","webpack://_N_E/./src/components/organisms/Header/_header.scss","webpack://_N_E/./src/components/organisms/NavBar/_navbar.scss","webpack://_N_E/./src/styles/main.scss","webpack://_N_E/./src/app/[locale]/test.module.scss"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/@next/third-parties/dist/google/ga.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/@next/third-parties/dist/google/gtm.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/@next/third-parties/dist/ThirdPartyScriptEmbed.js\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/next/dist/client/image-component.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/next/dist/client/link.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/next/dist/client/script.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/node_modules/next/font/google/target.css?{\\\"path\\\":\\\"src/app/[locale]/layout.tsx\\\",\\\"import\\\":\\\"DM_Sans\\\",\\\"arguments\\\":[{\\\"subsets\\\":[\\\"latin\\\"],\\\"display\\\":\\\"swap\\\"}],\\\"variableName\\\":\\\"dmSans\\\"}\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/src/app/[locale]/test.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/atoms/AdsBanners/AdLeftBanner.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/atoms/AdsBanners/AdTopBanner.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/atoms/CTABanner/_ctaBanner.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/atoms/GamblingAffiliation/Multibanner300x250.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"ThemeProvider\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/atoms/ThemeProvider/ThemeProvider.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/Fixtures/LiveFixtures/LiveFixtures.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/Fixtures/NextFixtures/NextFixtures.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/GATrackers/ThemeAnalyticsTracker.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/LeaguesOfTheMoment/LeaguesOfTheMoment.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/NewsletterForm/NewsletterForm.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/organisms/Footer/_footer.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/molecules/SocialNetworks/_socialNetworks.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src2851773393/src/football-trends-face/src/components/organisms/Header/Header.tsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src2851773393/src/football-trends-face/src/styles/main.scss\");\n","\"use client\";\n\nimport { useEffect } from \"react\";\n\nconst AdLeftBanner = () => {\n useEffect(() => {\n try {\n (window.adsbygoogle = window.adsbygoogle || []).push({});\n } catch (e) {\n console.error(\"AdSense error:\", e);\n }\n }, []);\n\n return (\n
\n \n \n
\n );\n};\n\nexport default AdLeftBanner;\n","\"use client\";\n\nimport { useEffect } from \"react\";\n\nconst AdTopBanner = () => {\n useEffect(() => {\n try {\n (window.adsbygoogle = window.adsbygoogle || []).push({});\n } catch (e) {\n console.error(\"AdSense error:\", e);\n }\n }, []);\n\n return (\n
\n \n \n
\n );\n};\n\nexport default AdTopBanner;\n","\"use client\";\n\nimport React from \"react\";\n\nconst MultiBanner300x250: React.FC = () => {\n const script = `\n \n \n \n `;\n\n return (\n \n );\n};\n\nexport default MultiBanner300x250;\n","\"use client\";\nimport React from \"react\";\nimport { ThemeProvider as NextThemesProvider } from \"next-themes\";\nimport { type ThemeProviderProps } from \"next-themes/dist/types\";\n\nexport function ThemeProvider({ children, ...props }: ThemeProviderProps) {\n return {children};\n}\n\n","\"use client\";\n\nimport React, { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport { useTranslations } from \"next-intl\";\nimport { format } from \"date-fns\";\nimport { EventSourcePolyfill } from \"event-source-polyfill\";\n\nimport \"../_fixtures.scss\";\n\nimport { FavoriteLeague } from \"../../LeaguesOfTheMoment/LeaguesOfTheMoment\";\n\n\nconst LiveFixtures = ({\n favoriteLeagues,\n}: {\n favoriteLeagues: FavoriteLeague[];\n}) => {\n const [fixturesByLeague, setFixturesByLeague] = useState([]);\n const [error, setError] = useState(null);\n const [isLoading, setIsLoading] = useState(true);\n const [expandedLeagues, setExpandedLeagues] = useState>(\n new Set(favoriteLeagues.map(({ league }) => league))\n );\n\n const tFixtures = useTranslations('fixtures');\n const tLayout = useTranslations('layout');\n\n useEffect(() => {\n let retryTimeout: NodeJS.Timeout;\n \n const connect = () => {\n const eventSource = new EventSourcePolyfill(\n `${process.env.NEXT_PUBLIC_FOOTBALLTRENDS_API_URL}/fixtures/live`,\n {\n headers: { \"x-custom-header\": \"footballtrends-front\" },\n heartbeatTimeout: 120000,\n }\n );\n\n eventSource.onmessage = (event) => {\n try {\n const data = JSON.parse(event.data);\n setFixturesByLeague(data);\n setIsLoading(false);\n } catch (err) {\n console.error(\"Error parsing event data:\", err);\n }\n };\n\n eventSource.onerror = (err) => {\n console.error(\"SSE connection error:\", err);\n setError(\"Failed to connect to the live fixtures stream.\");\n eventSource.close();\n\n // Intentar reconectar en 5 segundos\n retryTimeout = setTimeout(connect, 5000);\n };\n\n return eventSource;\n };\n\n const eventSource = connect();\n\n return () => {\n eventSource.close();\n clearTimeout(retryTimeout);\n };\n }, []);\n\n const toggleLeague = (leagueId: number) => {\n const newExpandedLeagues = new Set(expandedLeagues);\n if (newExpandedLeagues.has(leagueId)) {\n newExpandedLeagues.delete(leagueId);\n } else {\n newExpandedLeagues.add(leagueId);\n }\n setExpandedLeagues(newExpandedLeagues);\n };\n\n const getFixtureStatus = (fixture: any) => {\n const { short, elapsed, extra } = fixture.fixture.status;\n\n if (short === \"HT\") return HT;\n if (short === \"BT\") return BT;\n if (short === \"P\") return P;\n\n return (\n

\n {short === \"ET\" ? \"ET \" : null}\n {{elapsed || 0}}\n {extra && +{extra}}\n '\n

\n );\n };\n\n // MANEJAR MEJOR EL ERROR IMPLEMENTAR UN ERROR DIVERTIDO\n if (error) return
Something happened. Try Refresing.
;\n\n return (\n <>\n

{tFixtures(\"liveFixtures\")}

\n {isLoading ? (\n

{tLayout(\"loading\")}...

\n ) : fixturesByLeague?.length === 0 ? (\n

No matches at the moment...

\n ) : (\n \n {fixturesByLeague?.length > 0 &&\n fixturesByLeague.map((league: any) => (\n \n toggleLeague(league.league.id)}\n >\n
\n \n \n {league.league.country}\n \n
\n
\n \n \n {league.league.name}\n \n
\n
\n toggleLeague(league.league.id)}\n style={{ cursor: \"pointer\" }}\n />\n toggleLeague(league.league.id)}\n style={{ cursor: \"pointer\" }}\n />\n
\n \n\n {expandedLeagues.has(league.league.id) && (\n
\n {league.fixtures.map((fixture: any) => (\n \n
\n \n \n
\n
\n

{fixture.teams.home.name}

\n

{fixture.teams.away.name}

\n
\n
\n \n {fixture.score.halftime.home ?? 0}\n \n \n {fixture.score.halftime.away ?? 0}\n \n
\n
\n \n {fixture.goals.home ?? 0}\n

\n

\n {fixture.goals.away ?? 0}\n

\n
\n {fixture.fixture.status.short === \"P\" ?\n
\n \n {fixture.score.penalty.home ?? 0}\n

\n

\n {fixture.score.penalty.away ?? 0}\n

\n
: null\n }\n
\n \n {format(new Date(fixture.fixture.date), \"HH:mm\")}\n \n {getFixtureStatus(fixture)}\n
\n
\n ))}\n \n )}\n
\n ))}\n )}\n \n );\n};\n\nexport default LiveFixtures;\n","\"use client\";\n\nimport React, { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport { useRouter, useParams } from \"next/navigation\";\nimport { useTranslations } from \"next-intl\";\nimport { format, startOfDay, endOfDay, addDays } from \"date-fns\";\nimport { es } from \"date-fns/locale\";\n\nimport { FavoriteLeague } from \"../../LeaguesOfTheMoment/LeaguesOfTheMoment\";\n\nimport { useLocale } from \"@/hooks/useLocale\";\n\nimport \"../_fixtures.scss\";\n\nconst NextFixtures = ({\n favoriteLeagues,\n}: {\n favoriteLeagues: FavoriteLeague[];\n}) => {\n const router = useRouter();\n const params = useParams();\n\n const { locale } = params;\n\n const [fixturesByLeague, setFixturesByLeague] = useState([]);\n const [filteredFixtures, setFilteredFixtures] = useState([]);\n const [error, setError] = useState(null);\n const [expandedLeagues, setExpandedLeagues] = useState>(\n new Set(favoriteLeagues.map(({ league }) => league))\n );\n const [selectedDay, setSelectedDay] = useState(0); // 0: Today, 1: Tomorrow, ...\n\n const tFixtures = useTranslations('fixtures');\n const tDates = useTranslations('dates');\n const tLayout = useTranslations('layout');\n\n const dateFnsLocale = useLocale(locale as string);\n\n const DAYS = [\n tDates(\"today\"),\n tDates(\"tomorrow\"),\n format(addDays(new Date(), 2), \"MMM dd\", { locale: dateFnsLocale }).toUpperCase(),\n format(addDays(new Date(), 3), \"MMM dd\", { locale: dateFnsLocale }).toUpperCase()\n ];\n\n const dateRanges = [\n { start: startOfDay(new Date()), end: endOfDay(new Date()) },\n { start: startOfDay(addDays(new Date(), 1)), end: endOfDay(addDays(new Date(), 1)) },\n { start: startOfDay(addDays(new Date(), 2)), end: endOfDay(addDays(new Date(), 2)) },\n { start: startOfDay(addDays(new Date(), 3)), end: endOfDay(addDays(new Date(), 3)) },\n ];\n\n useEffect(() => {\n async function fetchFixtures() {\n try {\n const res = await fetch(\"/api/fixtures/next\", { next: { revalidate: 300 }});\n if (!res.ok) throw new Error(\"Failed to fetch next fixtures\");\n const data = await res.json();\n setFixturesByLeague(data);\n } catch (err) {\n console.error(\"Error fetching fixtures:\", err);\n setError(\"Failed to fetch next fixtures\");\n }\n }\n fetchFixtures();\n }, []);\n\n useEffect(() => {\n const { start, end } = dateRanges[selectedDay];\n\n const filtered = fixturesByLeague.map((league: any) => ({\n ...league,\n fixtures: league.fixtures.filter((fixture: any) => {\n const fixtureDate = new Date(fixture.fixture.date);\n return fixtureDate >= start && fixtureDate <= end;\n }),\n })).filter((league: any) => league.fixtures.length > 0);\n setFilteredFixtures(filtered);\n }, [selectedDay, fixturesByLeague]);\n\n const toggleLeague = (leagueId: number) => {\n const newExpandedLeagues = new Set(expandedLeagues);\n if (newExpandedLeagues.has(leagueId)) {\n newExpandedLeagues.delete(leagueId);\n } else {\n newExpandedLeagues.add(leagueId);\n }\n setExpandedLeagues(newExpandedLeagues);\n };\n\n const handleFixtureClick = (teamId: number) => {\n router.push(`/trends?searchType=team&searchId=${teamId}`);\n };\n\n if (error) return
Something happened. Try refreshing.
;\n if (fixturesByLeague?.length < 1) return
{tLayout('loading')}.....
;\n\n return (\n <>\n

{tFixtures(\"nextFixtures\")}

\n
\n {DAYS.map((day, index) => (\n setSelectedDay(index)}\n >\n {day}\n \n ))}\n
\n

*Presiona cualquier partido para ir a sus tendencias

\n \n {filteredFixtures.map((league: any) => (\n \n toggleLeague(league.league.id)}\n >\n
\n \n \n {league.league.country}\n \n
\n
\n \n \n {league.league.name}\n \n
\n
\n toggleLeague(league.league.id)}\n style={{ cursor: \"pointer\" }}\n />\n toggleLeague(league.league.id)}\n style={{ cursor: \"pointer\" }}\n />\n
\n \n\n {expandedLeagues.has(league.league.id) && (\n <>\n {league.fixtures.map((fixture: any) => (\n handleFixtureClick(fixture.homeTeam.id)}\n >\n
\n \n \n
\n
\n

{fixture.homeTeam.name}

\n

{fixture.awayTeam.name}

\n
\n
\n \n {fixture.fixture.round}\n

\n

\n {format(new Date(fixture.fixture.date), \"HH:mm\", { locale: es })}\n

\n
\n \n ))}\n \n )}\n
\n ))}\n \n \n );\n};\n\nexport default NextFixtures;\n","\"use client\";\n\nimport { useEffect } from \"react\";\nimport { useTheme } from \"next-themes\";\nimport { sendGTMEvent } from \"@next/third-parties/google\";\n\nexport default function ThemeAnalyticsTracker() {\n const { theme, systemTheme } = useTheme();\n\n useEffect(() => {\n const activeTheme = theme === \"system\" ? systemTheme : theme;\n\n if (activeTheme) {\n sendGTMEvent({\n event: \"theme_usage\",\n event_category: \"User Preferences\",\n event_action: \"Theme Used\",\n theme: activeTheme\n });\n }\n }, [theme, systemTheme]);\n\n return null;\n}\n","'use client'\nimport React, { useRef, useState } from 'react';\nimport Link from 'next/link';\nimport { useTranslations } from 'next-intl';\n\nimport useClickOutside from '@/hooks/useClickOutside';\n\n\ninterface LinksDropdownProps {\n leagueId: number;\n label: string | React.ReactNode;\n}\n\nconst LinksDropdown: React.FC = ({ leagueId, label }) => {\n const [isOpen, setIsOpen] = useState(false);\n const dropdownRef = useRef(null);\n\n const tFilter = useTranslations('filter');\n\n useClickOutside(dropdownRef, () => setIsOpen(false));\n\n const items: Array<{ label: string, href: string }> = [\n { label: tFilter('results'), href: `/league/${leagueId}/results` },\n { label: tFilter('goals'), href: `/league/${leagueId}/goals` },\n { label: tFilter('corners'), href: `/league/${leagueId}/corners` },\n { label: tFilter('cards'), href: `/league/${leagueId}/cards` },\n { label: tFilter('onShots'), href: `/league/${leagueId}/onShots` },\n { label: tFilter('totalShots'), href: `/league/${leagueId}/totalShots` },\n ];\n\n const toggleDropdown = () => {\n setIsOpen(!isOpen);\n };\n\n return (\n
\n

\n {label}\n

\n {isOpen && (\n
    \n {items.map((item, index) => (\n
  • setIsOpen(false)}>\n \n {item.label}\n \n
  • \n ))}\n
\n )}\n
\n );\n};\n\nexport default LinksDropdown;","\"use client\";\nimport React, { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\n\nimport LinksDropdown from \"@/components/atoms/LinksDropdown/LinksDropdown\";\n\nimport { League } from \"@/types/league\";\n\nimport \"./_leaguesOfTheMoment.scss\";\n\nexport interface FavoriteLeague {\n league: number;\n votes: number;\n}\n\nexport default function LeaguesOfTheMoment({\n messages,\n favoriteLeagues,\n leaguesPlaying,\n}: {\n messages: any;\n leaguesPlaying: League[];\n favoriteLeagues: FavoriteLeague[];\n}) {\n const [favoriteLeaguesSorted, setFavoriteLeaguesSorted] = useState([]);\n const l = messages.leagues;\n\n useEffect(() => {\n try {\n if (leaguesPlaying.length > 0 && favoriteLeagues.length > 0) {\n const sorted = favoriteLeagues\n .map((fav) => {\n const league = leaguesPlaying.find((l) => l.id === fav.league);\n return league ? { ...league, votes: fav.votes } : null;\n })\n .filter((league) => league !== null)\n .slice(0, 20);\n setFavoriteLeaguesSorted(sorted);\n }\n } catch (error) {\n console.error(\"Error fetching leagues:\", error);\n }\n }, []);\n\n return (\n
\n
\n

{l.leaguesOfTheMoment}

\n
    \n {favoriteLeaguesSorted.length > 0 &&\n favoriteLeaguesSorted.map(\n (league) =>\n league && (\n
  • \n \n \n {league.name}\n \n }\n />\n
  • \n )\n )}\n
\n
\n
\n );\n}\n","\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { useParams } from \"next/navigation\";\nimport { useTheme } from \"next-themes\";\nimport { useTranslations } from \"next-intl\";\nimport { sendGTMEvent } from \"@next/third-parties/google\";\n\nexport default function NewsletterForm() {\n const { locale } = useParams();\n const { theme, systemTheme } = useTheme();\n const t = useTranslations();\n\n const [name, setName] = useState(\"\");\n const [email, setEmail] = useState(\"\");\n const [successMessage, setSuccessMessage] = useState(\"\");\n const [errorMessage, setErrorMessage] = useState(\"\");\n const [isSubscribed, setIsSubscribed] = useState(false);\n\n useEffect(() => {\n const isSubscribed = document.cookie\n .split(\"; \")\n .find((row) => row.startsWith(\"newsletterSubscribed=\"));\n if (isSubscribed) {\n setIsSubscribed(true);\n }\n }, []);\n\n const handleAnalyticsEvent = () => {\n sendGTMEvent({\n event: 'newsletter_subscription',\n event_category: 'newsletter',\n event_action: 'subscribe',\n value: 1,\n });\n };\n\n const handleSubmit = async (e: any) => {\n e.preventDefault();\n\n if (!isValidEmail(email)) {\n setErrorMessage(t(\"newsletter.invalidEmail\"));\n return;\n }\n\n try {\n const userTheme = theme === \"system\" ? systemTheme : theme;\n\n const response = await fetch(\"/api/newsletter/subscribe\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({\n name,\n email,\n theme: userTheme,\n locale: locale || \"en\",\n }),\n });\n\n if (response.ok) {\n setSuccessMessage(t(\"newsletter.success\"));\n setName(\"\");\n setEmail(\"\");\n setIsSubscribed(true);\n handleAnalyticsEvent()\n document.cookie = \"newsletterSubscribed=true; path=/; max-age=31536000\"; // Expira en 1 año\n } else {\n const { error } = await response.json();\n if (response.status === 409) {\n setErrorMessage(t(\"newsletter.alreadySubscribed\"));\n } else {\n setErrorMessage(error || t(\"newsletter.error\"));\n }\n }\n } catch (err) {\n setErrorMessage(t(\"newsletter.error\"));\n }\n };\n\n const isValidEmail = (email: string) => {\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n return emailRegex.test(email);\n };\n\n if (isSubscribed) {\n return (\n
\n
{t(\"newsletter.thankYouMessage\")}
\n

{t(\"newsletter.alreadySubscribed\")}

\n
\n );\n }\n\n return (\n <>\n
{t(\"newsletter.description\")}
\n
\n {successMessage &&
{successMessage}
}\n
\n setName(e.target.value)}\n />\n setEmail(e.target.value)}\n required\n />\n
\n \n {errorMessage && {errorMessage}}\n
\n \n );\n}\n","\"use client\";\nimport { useParams, useRouter, useSearchParams } from \"next/navigation\";\n\nexport default function LanguageSwitch() {\n // const t = useTranslations(\"LocaleSwitcher\");\n const locales = [\n { code: 'en', label: 'English' },\n { code: 'es', label: 'Español' },\n { code: 'it', label: 'Italiano' },\n { code: 'pt', label: 'Portuguese' },\n { code: 'fr', label: 'Français' },\n { code: 'de', label: 'Deutsch' },\n ];\n\n const router = useRouter();\n const searchParams = useSearchParams(); // Obtener los parámetros de búsqueda actuales\n const { locale } = useParams(); \n\n const changeLocale = (newLocale: string) => {\n const paramsString = searchParams.toString();\n const newPathname = `/${newLocale}` + window.location.pathname.slice(locale.length + 1); // Cambiar el locale sin romper la ruta\n\n router.push(`${newPathname}?${paramsString}`);\n };\n return (\n
\n changeLocale(e.target.value)}\n defaultValue={locale}\n >\n {locales.map(({ code, label }) => (\n \n ))}\n \n
\n );\n}\n","\"use client\";\nimport React, { useEffect, useState } from \"react\";\nimport { useTheme } from \"next-themes\";\nimport Image from \"next/image\";\n\nconst ToggleMode = () => {\n const { theme, setTheme, systemTheme } = useTheme();\n const [isDarkMode, setIsDarkMode] = useState(false);\n\n useEffect(() => {\n if (theme === \"system\") {\n setIsDarkMode(systemTheme === \"dark\");\n } else {\n setIsDarkMode(theme === \"dark\");\n }\n }, [theme, systemTheme]);\n\n const handleThemeToggle = () => {\n const newTheme = isDarkMode ? \"light\" : \"dark\";\n setTheme(newTheme);\n setIsDarkMode(!isDarkMode); // Actualiza el estado local\n };\n\n return (\n
\n {isDarkMode ? (\n \"light-mode\"\n ) : (\n \"dark-mode\"\n )}\n
\n );\n};\n\nexport default ToggleMode;\n","'use client'\nimport Link from 'next/link';\nimport { useRef } from 'react';\n\nimport LanguageSwitch from '@/components/molecules/LanguageSwitch/LanguageSwitch';\n\nimport ToggleMode from '@/components/atoms/ThemeSwitch/ThemeSwitch';\nimport useClickOutside from '@/hooks/useClickOutside';\nimport { useTranslations } from 'next-intl';\nimport useWindowSize from '@/hooks/useWindowSize';\nimport Image from 'next/image';\n\nimport './_navbar.scss';\n\nconst NavBar = ({ toggleMenu }: { toggleMenu: () => void }) => {\n const mobileNavBarRef = useRef(null);\n\n useClickOutside(mobileNavBarRef, () => toggleMenu())\n const { width } = useWindowSize();\n const l = useTranslations('leagues');\n const t = useTranslations('trends');\n\n return (\n \n );\n}\n\nexport default NavBar;\n\n","'use client'\nimport { useEffect, useState } from 'react';\nimport Link from 'next/link';\nimport Image from 'next/image';\nimport \"./_header.scss\"\nimport NavBar from '../NavBar/NavBar';\nimport useWindowSize from '@/hooks/useWindowSize';\nimport ToggleMode from '@/components/atoms/ThemeSwitch/ThemeSwitch';\n\nconst Header = () => {\n const [isMenuOpen, setIsMenuOpen] = useState(false);\n const [shouldRenderMenu, setShouldRenderMenu] = useState(false);\n const [menuClass, setMenuClass] = useState('close'); // Clase de animación del menú\n\n const size = useWindowSize();\n\n const toggleMenu = () => {\n if (!isMenuOpen) {\n setShouldRenderMenu(true); // Mostrar el menú antes de abrir\n setTimeout(() => {\n setMenuClass('open'); // Añadir clase `open` para la animación de entrada\n }, 10); // Pequeño retraso para disparar la animación\n } else {\n setMenuClass('close'); // Cambiar a clase `close` para la animación de salida\n }\n setIsMenuOpen(!isMenuOpen);\n };\n\n useEffect(() => {\n if (!isMenuOpen) {\n const timer = setTimeout(() => {\n setShouldRenderMenu(false); // Retira el menú del DOM solo después de la animación de salida\n }, 400); // Debe coincidir con la duración de la transición CSS\n return () => clearTimeout(timer); // Limpiar el temporizador si se desmonta antes\n }\n }, [isMenuOpen]);\n return (\n <>\n
\n
\n \n \n \n \n \n \n {size.width < 768 ? (\n
\n
\n \n
\n
\n {isMenuOpen ? : }\n {!isMenuOpen && (\n \n )}\n
\n
\n ) : (\n \n )}\n
\n\n {shouldRenderMenu && size.width < 768 && (\n \n
\n \n
\n \n )}\n
\n \n );\n};\n\nexport default Header;\n","import { useEffect } from 'react';\n\nconst useClickOutside = (ref: React.RefObject, callback: () => void) => {\n const handleClickOutside = (event: MouseEvent) => {\n if (ref.current && !ref.current.contains(event.target as Node)) {\n callback();\n }\n };\n\n useEffect(() => {\n document.addEventListener('click', handleClickOutside);\n return () => {\n document.removeEventListener('click', handleClickOutside);\n };\n }, [ref]);\n};\n\nexport default useClickOutside;\n","import { es, enUS, it, fr, de, pt } from 'date-fns/locale';\nimport { Locale } from 'date-fns';\n\ntype LocaleKey = 'es' | 'en' | 'it' | 'fr' | 'de' | 'pt';\n\nconst locales: Record = {\n es: es,\n en: enUS,\n it: it,\n fr: fr,\n de: de,\n pt: pt,\n};\n\nexport function useLocale(localeParam: string): Locale {\n // Asegurarse de que el localeParam sea un LocaleKey o retornar un valor por defecto\n return locales[localeParam as LocaleKey] || enUS;\n}","'use client';\n\nimport { useState, useEffect } from 'react';\n\nfunction useWindowSize() {\n // Estado para almacenar el tamaño de la ventana\n const [windowSize, setWindowSize] = useState({\n width: 1200,\n height: 0,\n });\n\n useEffect(() => {\n // Función para actualizar el estado con el tamaño actual de la ventana\n function handleResize() {\n setWindowSize({\n width: window.innerWidth,\n height: window.innerHeight,\n });\n }\n\n if (typeof window !== 'undefined') {\n // Añade el event listener\n window.addEventListener('resize', handleResize);\n\n // Llama a la función inmediatamente para establecer el tamaño inicial\n handleResize();\n\n // Limpia el event listener cuando el componente se desmonta\n return () => window.removeEventListener('resize', handleResize);\n }\n }, []); // El array vacío asegura que el efecto solo se ejecute una vez\n\n return windowSize;\n}\n\nexport default useWindowSize;\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin\nmodule.exports = {\"custom-layout\":\"test_custom-layout__fVd5g\"};"],"names":["Promise","resolve","then","__webpack_require__","bind","t","__webpack_exports__","useEffect","window","adsbygoogle","push","e","console","error","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","jsx","script","async","src","crossOrigin","ins","className","style","display","height","data-ad-client","data-ad-slot","data-ad-format","data-full-width-responsive","width","iframe","title","srcDoc","frameBorder","ThemeProvider","param","children","props","NextThemesProvider","defaultTheme","favoriteLeagues","fixturesByLeague","setFixturesByLeague","useState","setError","isLoading","setIsLoading","expandedLeagues","setExpandedLeagues","Set","map","league","tFixtures","useTranslations","tLayout","retryTimeout","connect","eventSource","EventSourcePolyfill","concat","process","headers","heartbeatTimeout","onmessage","data","JSON","parse","event","err","onerror","close","setTimeout","clearTimeout","toggleLeague","newExpandedLeagues","has","leagueId","delete","add","getFixtureStatus","short","elapsed","extra","fixture","status","strong","p","color","fontWeight","span","fontSize","Fragment","length","React","backgroundColor","cursor","onClick","id","Image","flag","logo","alt","country","small","name","fixtures","teams","home","away","filter","score","halftime","goals","penalty","format","Date","date","router","useRouter","locale","useParams","filteredFixtures","setFilteredFixtures","selectedDay","setSelectedDay","tDates","dateFnsLocale","useLocale","DAYS","addDays","toUpperCase","dateRanges","start","startOfDay","end","endOfDay","fetchFixtures","res","fetch","next","revalidate","ok","json","fixtureDate","handleFixtureClick","teamId","day","index","button","homeTeam","awayTeam","round","es","ThemeAnalyticsTracker","theme","systemTheme","useTheme","activeTheme","sendGTMEvent","event_category","event_action","LinksDropdown_LinksDropdown","label","isOpen","setIsOpen","dropdownRef","useRef","tFilter","useClickOutside","items","href","jsx_runtime","ref","ul","item","li","Link","LeaguesOfTheMoment","messages","leaguesPlaying","favoriteLeaguesSorted","setFavoriteLeaguesSorted","l","leagues","sorted","find","fav","votes","slice","leaguesOfTheMoment","LinksDropdown","countryFlag","marginRight","NewsletterForm","setName","email","setEmail","successMessage","setSuccessMessage","errorMessage","setErrorMessage","isSubscribed","setIsSubscribed","document","cookie","split","row","startsWith","handleAnalyticsEvent","value","handleSubmit","preventDefault","isValidEmail","userTheme","response","method","body","stringify","emailRegex","test","h5","form","onSubmit","input","type","placeholder","onChange","target","required","LanguageSwitch","searchParams","useSearchParams","changeLocale","paramsString","toString","newPathname","newLocale","location","pathname","select","defaultValue","locales","code","option","ThemeSwitch","setTheme","isDarkMode","setIsDarkMode","NavBar_NavBar","toggleMenu","mobileNavBarRef","useWindowSize","nav","position","ToggleMode","Header_Header","isMenuOpen","setIsMenuOpen","shouldRenderMenu","setShouldRenderMenu","menuClass","setMenuClass","size","timer","header","priority","top","right","borderRadius","NavBar","Z","callback","handleClickOutside","current","contains","addEventListener","removeEventListener","en","enUS","it","fr","de","pt","localeParam","windowSize","setWindowSize","handleResize","innerWidth","innerHeight","module","exports"],"sourceRoot":""}