{"version":3,"file":"js/scripts_react_mls-leader-card_main_js.js?_t=a3c489224f47d9fba371","mappings":";;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AAGA;AAkBA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAWA;AACA;AACA;AAYA;AAAA;AAGA;AAEA;;;;;;;;;;;;;;;;AC/FA;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAIA;AACA;AAAA;AAAA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAGA;AAAA;AAAA;AACA;AACA;AAAA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAUA;AAAA;AAAA;AACA;AACA;AAAA;AAMA;AACA;AAGA;AAGA;AAEA;;;;;;;;;;;;;;;;AC5EA;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAEA;AACA;AAEA;AAMA;AAGA;AAEA;;;;;;;;;;;;;;;;AC9BA;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAOA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAkBA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAeA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AACA;AACA;AAcA;AAGA;AAEA;;;;;;;;;;;;;;;;;;;;;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AAEA;AA2BA;AACA;AAIA;AAYA;AAGA;AAEA;;;;;;;;;;;;;;;;AClFA;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAGA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AAwBA;AAGA;AAGA;AAEA;;;;;;;;;;;;;;;;AC3EA;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AAEA;AAEA;AAAA;AACA;AACA;AAGA;AAEA;AAgBA;AAGA;AAEA;;;;;;;;;;;;;;;;AC/EA;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAQA;AAEA;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAiBA;AACA;AAGA;AAGA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;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AA;AAAA;AACA;AACA;AAAA;AAOA","sources":["webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderCardBody/ClubLeaderCardBody.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderCardBody/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderCardFigure/ClubLeaderCardFigure.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderCardFigure/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderData/ClubLeaderData.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/ClubLeaderData/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/LeaderCardLoading/LeaderCardLoading.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderCardBody/PlayerLeaderCardBody.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderCardBody/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderCardFigure/PlayerLeaderCardFigure.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderCardFigure/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderData/PlayerLeaderData.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerLeaderData/index.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/components/PlayerRankedItem/PlayerRankedItem.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/main.js","webpack://@mlssoccer/netcore/./scripts/react/mls-leader-card/utils.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/BlockFooter/BlockFooter.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/ConditionalWrapper/ConditionalWrapper.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/ConditionalWrapper/index.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/components/LoadingDisplay/LoadingDisplay.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/LoadingDisplay/index.js","webpack://@mlssoccer/netcore/./scripts/react/shared/components/LoadingDisplay/utils.js","webpack://@mlssoccer/netcore/./scripts/react/shared/svg/Svg.js"],"sourcesContent":["import React from \"react\";\nimport BlockFooter from \"../../../shared/components/BlockFooter/BlockFooter\";\nimport { round } from \"../../../../libraries/_helpers\";\nimport { useLeaderCard } from \"../../utils\";\nimport { formatClubStats } from \"../../../shared/utils\";\nimport { useReactAppState } from \"../../../shared/containers/utils\";\n\nfunction ClubLeaderCardBody({ first }) {\n const {\n footer,\n clubsData,\n currentStatType,\n statTableUrl,\n rest,\n mlsPhaseType\n } = useLeaderCard();\n\n const { isLeague, urlList, t } = useReactAppState();\n const { baseUrl } = urlList || {};\n const { club } = first || {};\n const name = club?.shortName || club?.name || club?.abbreviation || \"\";\n\n const backgroundColor = club?.backgroundColor || \"\";\n const roundedFirstStat = first && first[currentStatType] === 0 || first[currentStatType] ? round(first[currentStatType], 2) : \"\";\n const urlWithQueryParams = statTableUrl ? `${statTableUrl}?stat-type=${currentStatType}` : null;\n\n const restClubData = rest ? rest.map(item => {\n const { club } = item || {};\n const { opta_id: clubOptaId } = club || {};\n const restFoundClub = clubsData.find(c => c?.optaId === clubOptaId);\n\n return formatClubStats(item, restFoundClub, mlsPhaseType);\n }) : null;\n\n return (\n
\n {error.message}\n
\n