{"version":3,"file":"js/react/mls-brackets-app.js?_t=be22557ec5c27c443bde","mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAGA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAKA;AAEA;;;;;;;;;;;;;;;;AC7CA;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AAGA;AA6BA;AAEA;;;;;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AAEA;AACA;AACA;AAAA;AAGA;AAAA;AAGA;AACA;AACA;AAEA;AAEA;AAUA;AAEA;;;;;;;;;;;;;;;;;AC5CA;AACA;AAEA;AACA;AAUA;AAEA;;;;;;;;;;;;;;;;;AChBA;AACA;AAEA;AACA;AAUA;AAEA;;;;;;;;;;;;;;;;AChBA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AAIA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AAQA;AAIA;AAIA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAAA;AAIA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAkHA;AAGA;AAEA;;;;;;;;;;;;;;;;ACtOA;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AAGA;AACA;AACA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAKA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAOA;AAGA;AAEA;;;;;;;;;;;;;;;;AC9FA;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AAGA;AAIA;AAGA;AAEA;;;;;;;;;;;;;;;;AC1CA;;;;;;;;;;;;;;;;;ACAA;AACA;AAEA;AACA;AAEA;AAKA;AACA;AACA;AACA;AAEA;AAQA;AAKA;AAGA;AAEA;;;;;;;;;;;;;;;;AClCA;;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AAGA;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAGA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAGA;AAEA;AAMA;AACA;AAAA;AAEA;AACA;AAAA;AAGA;AAEA;AA6BA;AASA;AAGA;AAEA;;;;;;;;;;;;;;;;AC9GA;AAGA;AACA;AAEA;AACA;AAAA;AAGA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAGA;AAAA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AACA;AAAA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAGA;AAEA;;;;;;;;;;;;;;;;AC9FA;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AAEA;AACA;AACA;AACA;AAiBA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAUA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAkCA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAUA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAaA;AAEA;;;;;;;;;;;;;;;;ACjHA;AAEA;AACA;AAAA;AAEA;AAOA;AAEA;;;;;;;;;;;;;;;;ACdA;;;;;;;;;;;;;;;;ACAA;AAEA;AACA;AAGA;AACA;AAAA;AAIA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AACA;AAEA","sources":["webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/app.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsAggregate/BracketsAggregate.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsAggregate/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/BO3Card.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/Bo3/Bo3CardScore/Bo3CardScore.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/Bo3/Bo3CardScore/Bo3Score.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/Bo3/Bo3Club/Bo3Club.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/Bo3/useSeriesWinner.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/BracketsCard.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsCard/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsData/BracketsData.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsData/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsMatchData/BracketsMatchData.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsMatchData/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsRound/BracketsRound.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/components/BracketsRound/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/main.js","webpack://@mlssoccer/netcore/./scripts/react/mls-brackets/utils.js","webpack://@mlssoccer/netcore/./scripts/react/mls-match-list/components/MatchStrip/MatchStrip.js","webpack://@mlssoccer/netcore/./scripts/react/mls-match-list/components/MatchStrip/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-match-list/components/MatchStrip/loader.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/ErrorDisplay/ErrorDisplay.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/ErrorDisplay/index.js","webpack://@mlssoccer/netcore/./scripts/react/shared/hooks/useInterval.js"],"sourcesContent":["export { default } from './main';\n","import { formatScores, composeAggregate } from \"../../../mls-match-list/utils\";\nimport React from \"react\";\nimport { d3AggregateAPI } from \"../../../shared/api/variables\";\nimport { useQuery } from \"react-query\";\nimport { fetchClient } from \"../../../shared/api/fetching\";\nimport { useReactAppState } from \"../../../shared/containers/utils\";\n\nfunction BracketsAggregate({ currentLeg }) {\n if (!currentLeg) {\n return null;\n }\n\n const { apiList } = useReactAppState();\n const { d3SportsAPI } = apiList || {};\n const { homeClubData, awayClubData, period, resultType, queryConfig, matchOptaId } = currentLeg;\n\n const d3AggregateEndpoint = d3AggregateAPI({ matchOptaId });\n const { data: aggregateData, isLoading } = useQuery({\n queryKey: [`d3-aggregate`, { matchOptaId }],\n queryFn: () => fetchClient({ endpoint: d3AggregateEndpoint, apiURL: d3SportsAPI }),\n ...queryConfig\n });\n\n const { aggregateAbbr: aggregate, date } = aggregateData || {};\n\n const composedAggregate = composeAggregate(aggregate, date);\n\n const { shootoutResult } = formatScores({\n homeClubData,\n awayClubData,\n period,\n resultType\n });\n\n if (isLoading) {\n return null;\n }\n\n return (\n composedAggregate || shootoutResult\n ?
\n {error.message}\n
\n