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,MAAOP,EAAK+B,MACZC,eAAgBhC,EAAK+B,MAErB/D,SACEgC,EAAKiC,SAAW,EACZpI,EAAAA,GAA2BE,WAC3BiG,EAAKiC,SACX5G,KAAM2E,EAAKkC,KACXC,QAASnC,EAAKoC,QACdC,MAAOrC,EAAKsC,QACZrM,KAAM+J,EAAKkC,KACZ,IAGId,CAAY,EAGRmB,EACXC,IAEA,MAAM7O,EAAoD,GAmB1D,OAjBI6O,IACEA,EAAwB/M,OAAS,GACnC9B,EAAK2C,KAAK,CAAEgC,MAAOJ,EAAAA,GAAAA,EAAO,kBAAmBS,MAAO8J,EAAAA,KAGtDD,EAAwBnE,SAAQ5J,IAC1BA,EAAKE,UACPhB,EAAK2C,KAAK,CACRgC,MAAO7D,EAAKE,SACRwK,IAAAA,KAAW1K,EAAKE,UAAUyK,OAAO7M,EAAAA,GAAc+M,GAAGE,MAClD,GACJ7G,MAAOlE,EAAKC,IAEhB,KAIGf,CAAI,EAGA+O,EAA8BA,CACzCrO,EACAsO,KAEA,MAAMhP,EAA2C,GAEjD,GAAIU,EACF,IAAK,MAAMC,KAAeD,EAAOC,YAAa,CAC5C,MAAMiH,EAAgBlH,EAAOC,YAAYA,GAAaI,GAEhC,OAAlBiO,QAAkB,IAAlBA,GAAAA,EAAoBjO,IAAM6G,MAAqC,OAAlBoH,QAAkB,IAAlBA,OAAkB,EAAlBA,EAAoBjO,KACnEf,EAAK2C,KAAK,CACRqC,MAAO4C,EACPjD,MAAOjE,EAAOC,YAAYA,GAAa+G,MAG7C,CAGF,OAAO1H,CAAI,C","sources":["newelements/RacingSport/index.tsx","newelements/RacingSport/hooks/useGetUpcomingRaces.ts","utils/constants/sportsbook/racing-sport-with-translation.ts","utils/sportsbook/racing.ts"],"sourcesContent":["import { ReactElement, Suspense, useEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { Route, useHistory } from 'react-router-dom';\nimport cc from 'classcat';\nimport {\n FUTURE_RACES,\n GREYHOUNDS_RACING,\n HORSE_RACING,\n RACING_SPORT_ALIAS,\n SPECIAL_RACES\n} from 'utils/constants/sportsbook/racing-sport';\nimport SpringConfigs from 'utils/constants/swarm/spring-configs';\nimport { lazy } from 'utils/generic/lazy';\nimport { mountPoint } from 'utils/generic/route-manipulation';\nimport { routePathWithMockedDataCheck } from 'utils/helpers';\nimport { isMobile } from 'utils/is-mobile';\nimport RidGenerator from 'utils/swarm/rid-generator';\nimport { ERacingPageTypes, ERacingSportSideBarTabs } from 'interfaces/racing';\nimport { unsubscribeCommand } from 'services/get-data-level';\nimport { useGetUpcomingRaces } from './hooks/useGetUpcomingRaces';\nimport { StreamCourtSkeleton } from 'newcomponents/Shared/sportsbook/MatchStreaming/Skeleton/Details/StreamCourtSkeleton';\nimport { useContentHeight } from 'hooks/useContentHeight';\nimport { useSbRouteMatch } from 'newhooks/generic/useSbRouteMatch';\nimport { batchActions } from 'store/actions';\nimport {\n removeUpcomingAllData,\n setIsUpcomingRacesLoading\n} from 'store/actions/racing-data';\nimport './index.less';\n\nif (SpringConfigs.IS_RTL) {\n import('./rtl.less');\n}\n\nconst { RacingDesktopView } = lazy(\n () =>\n import(/* webpackChunkName: \"racing-desktop-view\" */ './layouts/Desktop')\n);\n\nconst { RacingMobileView } = lazy(\n () => import(/* webpackChunkName: \"racing-mobile-view\" */ './layouts/Mobile')\n);\n\nconst { MatchStreamingWidget } = lazy(\n () =>\n import(\n /* webpackChunkName: \"match-streaming-widget\" */ 'newelements/Sportsbook/Widgets/MatchStreamingWidget'\n )\n);\n\ntype TProps = {\n configs: {\n fit: 'cover' | 'contain';\n racingSportsList: ERacingSportSideBarTabs[];\n };\n};\n\nexport const RacingSport = ({ configs }: TProps): ReactElement => {\n const contentHeight = useContentHeight(true);\n const history = useHistory();\n const dispatch = useDispatch();\n const getUpcomingRacesData = useGetUpcomingRaces();\n\n const { params } = useSbRouteMatch(\n `${mountPoint(history.location.pathname)}/:type/:sport/:competition?/:game?`\n );\n\n const isFutureOrSpecial = [FUTURE_RACES.alias, SPECIAL_RACES.alias].includes(\n params.sport\n );\n\n const racingSportsList = configs.racingSportsList?.length\n ? configs.racingSportsList\n : [ERacingSportSideBarTabs.All];\n\n useEffect(() => {\n if (SpringConfigs?.MOCKED_DATA) {\n return;\n }\n\n let updatedSport = params.sport || HORSE_RACING.alias;\n const updatedType = params.type || ERacingPageTypes.UPCOMING;\n\n if (\n !racingSportsList.includes(ERacingSportSideBarTabs.All) &&\n !(isFutureOrSpecial && params.game)\n ) {\n const allowedSportAlias = racingSportsList.includes(\n ERacingSportSideBarTabs.GREYHOUNDS_RACING\n )\n ? GREYHOUNDS_RACING.alias\n : HORSE_RACING.alias;\n\n if (allowedSportAlias !== params.sport) {\n updatedSport = allowedSportAlias;\n }\n }\n\n if (!params.sport || updatedSport !== params.sport) {\n history.push(\n `${mountPoint(location.pathname)}/${updatedType}/${updatedSport}?${\n location.search\n }`\n );\n }\n }, []);\n\n const sportId = SpringConfigs.MOCKED_DATA\n ? HORSE_RACING.id\n : RACING_SPORT_ALIAS[params.sport];\n\n useEffect(() => {\n if (sportId) {\n const rId = RidGenerator.gForSubscribe('RacingUpcomingRaces');\n getUpcomingRacesData(+sportId, rId);\n\n return () => {\n unsubscribeCommand(rId);\n dispatch(\n batchActions(removeUpcomingAllData(), setIsUpcomingRacesLoading(true))\n );\n };\n }\n }, [sportId]);\n\n return (\n