@maestro_io/maestro-web-sdk 3.3.0 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. package/dist/f8820fca3a2a7957f753167da0884f9d.png +0 -0
  2. package/dist/maestro-web-sdk.esm.js +12 -12
  3. package/dist/maestro-web-sdk.esm.js.map +1 -1
  4. package/dist/maestro-web-sdk.umd.js +12 -12
  5. package/dist/maestro-web-sdk.umd.js.map +1 -1
  6. package/dist/package.json +91 -0
  7. package/dist/src/__mocks__/sentry.d.ts +4 -0
  8. package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +1 -1
  9. package/dist/src/components/atoms/BaseButton/BaseButton.js +11 -0
  10. package/dist/src/components/atoms/BaseButton/index.js +2 -0
  11. package/dist/src/components/atoms/Image/index.d.ts +1 -1
  12. package/dist/src/components/atoms/Image/index.js +34 -0
  13. package/dist/src/components/atoms/Rive/index.d.ts +141 -11
  14. package/dist/src/components/atoms/Rive/index.js +53 -0
  15. package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +1 -2
  16. package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.js +9 -0
  17. package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +1 -1
  18. package/dist/src/components/atoms/SvgIcon/BetsIcon.js +11 -0
  19. package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +1 -1
  20. package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.js +11 -0
  21. package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +1 -2
  22. package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.js +6 -0
  23. package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +1 -2
  24. package/dist/src/components/atoms/SvgIcon/CollapseIcon.js +6 -0
  25. package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +1 -2
  26. package/dist/src/components/atoms/SvgIcon/ExpandIcon.js +6 -0
  27. package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
  28. package/dist/src/components/atoms/SvgIcon/FantasyIcon.js +15 -0
  29. package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
  30. package/dist/src/components/atoms/SvgIcon/FlameIcon.js +11 -0
  31. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
  32. package/dist/src/components/atoms/SvgIcon/Icon.js +44 -0
  33. package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
  34. package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.js +10 -0
  35. package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
  36. package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.js +11 -0
  37. package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
  38. package/dist/src/components/atoms/SvgIcon/PlayIcon.js +8 -0
  39. package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
  40. package/dist/src/components/atoms/SvgIcon/ShopIcon.js +7 -0
  41. package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
  42. package/dist/src/components/atoms/SvgIcon/StatsIcon.js +12 -0
  43. package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +1 -2
  44. package/dist/src/components/atoms/SvgIcon/TimesIcon.js +6 -0
  45. package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
  46. package/dist/src/components/atoms/SvgIcon/WarningIcon.js +8 -0
  47. package/dist/src/components/atoms/SvgIcon/index.js +2 -0
  48. package/dist/src/components/core/App/App.d.ts +1 -1
  49. package/dist/src/components/core/App/App.js +35 -0
  50. package/dist/src/components/core/App/index.js +2 -0
  51. package/dist/src/components/core/OverlayContainer.js +58 -0
  52. package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
  53. package/dist/src/components/core/PanelManager/PanelManager.js +86 -0
  54. package/dist/src/components/core/PanelManager/index.js +2 -0
  55. package/dist/src/components/core/ScrollableContainer/FocusableItem.js +38 -0
  56. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +8 -7
  57. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +169 -0
  58. package/dist/src/components/core/ScrollableContainer/index.js +2 -0
  59. package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +53 -7
  60. package/dist/src/components/molecules/ActionButton/ActionButton.js +10 -0
  61. package/dist/src/components/molecules/ActionButton/index.js +2 -0
  62. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
  63. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.js +50 -0
  64. package/dist/src/components/molecules/HeadshotImage/index.js +2 -0
  65. package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
  66. package/dist/src/components/molecules/Overlay/Overlay.js +139 -0
  67. package/dist/src/components/molecules/Overlay/index.js +2 -0
  68. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +57 -10
  69. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.js +27 -0
  70. package/dist/src/components/molecules/PanelNavButton/index.js +2 -0
  71. package/dist/src/components/molecules/SegmentButton/SegmentButton.js +10 -0
  72. package/dist/src/components/molecules/SegmentButton/index.js +2 -0
  73. package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +53 -7
  74. package/dist/src/components/molecules/TabLoadError/TabLoadError.js +14 -0
  75. package/dist/src/components/molecules/TabLoadError/index.js +2 -0
  76. package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
  77. package/dist/src/components/molecules/WatchButton/WatchButton.js +15 -0
  78. package/dist/src/components/molecules/WatchButton/index.js +2 -0
  79. package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
  80. package/dist/src/components/organisms/PanelNavigation/PanelNavigation.js +60 -0
  81. package/dist/src/components/organisms/PanelNavigation/index.js +2 -0
  82. package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +5 -4
  83. package/dist/src/components/organisms/SegmentController/SegmentController.js +76 -0
  84. package/dist/src/components/organisms/SegmentController/index.js +2 -0
  85. package/dist/src/development/MaestroEventDelegate.js +109 -0
  86. package/dist/src/development/TimeSeek.d.ts +1 -1
  87. package/dist/src/development/TimeSeek.js +218 -0
  88. package/dist/src/development/development.js +36 -0
  89. package/dist/src/external/AxiosNetworkClient.js +110 -0
  90. package/dist/src/external/LocalStorageCacheManager.js +213 -0
  91. package/dist/src/external/ReactRenderer.js +65 -0
  92. package/dist/src/external/mocks/MockExternalNetworkClient.js +187 -0
  93. package/dist/src/external/ports/cacheManager.js +1 -0
  94. package/dist/src/external/ports/networkClient.js +1 -0
  95. package/dist/src/external/ports/renderer.d.ts +1 -2
  96. package/dist/src/external/ports/renderer.js +1 -0
  97. package/dist/src/external/spatial-navigation/__mocks__/withFocusable.d.ts +8 -0
  98. package/dist/src/external/spatial-navigation/__mocks__/withFocusable.js +7 -0
  99. package/dist/src/external/spatial-navigation/index.js +3 -0
  100. package/dist/src/external/spatial-navigation/measureLayout.js +30 -0
  101. package/dist/src/external/spatial-navigation/spatialNavigation.js +876 -0
  102. package/dist/src/external/spatial-navigation/utils.js +6 -0
  103. package/dist/src/external/spatial-navigation/visualDebugger.js +76 -0
  104. package/dist/src/external/spatial-navigation/withFocusable.d.ts +53 -7
  105. package/dist/src/external/spatial-navigation/withFocusable.js +245 -0
  106. package/dist/src/helpers/Observable.js +37 -0
  107. package/dist/src/helpers/strings.js +14 -0
  108. package/dist/src/helpers/url.js +12 -0
  109. package/dist/src/index.d.ts +5 -5
  110. package/dist/src/index.js +165 -0
  111. package/dist/src/interfaces/IMaestroEvent.js +18 -0
  112. package/dist/src/interfaces/IMaestroEventDelegate.js +1 -0
  113. package/dist/src/interfaces/IMaestroManager.js +1 -0
  114. package/dist/src/interfaces/IUserSettings.js +20 -0
  115. package/dist/src/models/IModel.js +1 -0
  116. package/dist/src/models/IPanel.js +40 -0
  117. package/dist/src/models/ITheme.js +20 -0
  118. package/dist/src/models/IWinningBet.js +1 -0
  119. package/dist/src/modules/bets/interfaces/IBets.js +1 -0
  120. package/dist/src/modules/bets/mocks.js +573 -0
  121. package/dist/src/modules/bets/types/BetsAnalyticsTypes.js +1 -0
  122. package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
  123. package/dist/src/modules/bets/view/BetsView.js +143 -0
  124. package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +53 -7
  125. package/dist/src/modules/bets/view/HotProps/HotPropsView.js +150 -0
  126. package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +5 -4
  127. package/dist/src/modules/bets/view/SixPack/SixPackView.js +110 -0
  128. package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
  129. package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.js +6 -0
  130. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -7
  131. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.js +149 -0
  132. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +5 -4
  133. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +34 -0
  134. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -2
  135. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +18 -0
  136. package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +1 -2
  137. package/dist/src/modules/bets/view/UserBets/Boost/Boost.js +6 -0
  138. package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +1 -2
  139. package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +9 -0
  140. package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +1 -2
  141. package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.js +13 -0
  142. package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +1 -2
  143. package/dist/src/modules/bets/view/UserBets/Straight/Straight.js +6 -0
  144. package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +1 -2
  145. package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.js +13 -0
  146. package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
  147. package/dist/src/modules/bets/view/UserBets/UserBetsView.js +107 -0
  148. package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +99 -11
  149. package/dist/src/modules/bets/view/components/Bet/Bet.js +32 -0
  150. package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
  151. package/dist/src/modules/bets/view/components/BetPill/BetPill.js +6 -0
  152. package/dist/src/modules/bets/view/components/BetsCard/BetsCard.js +15 -0
  153. package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
  154. package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.js +20 -0
  155. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
  156. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +14 -0
  157. package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
  158. package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.js +16 -0
  159. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -4
  160. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +78 -0
  161. package/dist/src/modules/bets/view/components/PromoCodeBanner/index.js +1 -0
  162. package/dist/src/modules/bets/view-model/BetsViewModel.js +974 -0
  163. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
  164. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.js +107 -0
  165. package/dist/src/modules/fantasy/components/ExpandedAthleteList/index.js +1 -0
  166. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +53 -7
  167. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.js +20 -0
  168. package/dist/src/modules/fantasy/components/LeagueCard/index.js +2 -0
  169. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -7
  170. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.js +29 -0
  171. package/dist/src/modules/fantasy/components/TopPlayerCard/index.js +2 -0
  172. package/dist/src/modules/fantasy/mocks.js +3682 -0
  173. package/dist/src/modules/fantasy/types.js +6 -0
  174. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
  175. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.js +74 -0
  176. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/index.js +2 -0
  177. package/dist/src/modules/fantasy/view/ErrorBoundary.d.ts +13 -0
  178. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +6 -5
  179. package/dist/src/modules/fantasy/view/FantasyItemView.js +74 -0
  180. package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
  181. package/dist/src/modules/fantasy/view/FantasyView.js +133 -0
  182. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
  183. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.js +95 -0
  184. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +53 -7
  185. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.js +13 -0
  186. package/dist/src/modules/fantasy/view/InactiveLeague/index.js +2 -0
  187. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +53 -7
  188. package/dist/src/modules/fantasy/view/LoginView/LoginView.js +27 -0
  189. package/dist/src/modules/fantasy/view/LoginView/index.js +2 -0
  190. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +53 -7
  191. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.js +25 -0
  192. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/index.js +2 -0
  193. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
  194. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.js +9 -0
  195. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +53 -7
  196. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.js +118 -0
  197. package/dist/src/modules/fantasy/view/MatchupPair/index.js +2 -0
  198. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
  199. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.js +9 -0
  200. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +53 -7
  201. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.js +108 -0
  202. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +53 -7
  203. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.js +18 -0
  204. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/index.js +2 -0
  205. package/dist/src/modules/fantasy/view/MatchupSingle/index.js +2 -0
  206. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +53 -7
  207. package/dist/src/modules/fantasy/view/PromoView/PromoView.js +12 -0
  208. package/dist/src/modules/fantasy/view/PromoView/index.js +2 -0
  209. package/dist/src/modules/fantasy/view/index.js +2 -0
  210. package/dist/src/modules/fantasy/view-model/FantasyViewModel.FantasyPolling.js +132 -0
  211. package/dist/src/modules/fantasy/view-model/FantasyViewModel.LeagueManagerPolling.js +141 -0
  212. package/dist/src/modules/fantasy/view-model/FantasyViewModel.js +534 -0
  213. package/dist/src/modules/key-plays/constants.js +292 -0
  214. package/dist/src/modules/key-plays/interfaces/IKeyPlays.js +14 -0
  215. package/dist/src/modules/key-plays/interfaces/IKeyPlaysResponse.js +1 -0
  216. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
  217. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.js +16 -0
  218. package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +7 -6
  219. package/dist/src/modules/key-plays/view/KeyPlayCardView.js +139 -0
  220. package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
  221. package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.js +65 -0
  222. package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
  223. package/dist/src/modules/key-plays/view/KeyPlaysView.js +151 -0
  224. package/dist/src/modules/key-plays/view-model/KeyPlaysViewModel.js +247 -0
  225. package/dist/src/modules/shop/mocks.js +390 -0
  226. package/dist/src/modules/shop/types.js +7 -0
  227. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +1 -2
  228. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +56 -0
  229. package/dist/src/modules/shop/view/ProductDetailView/index.js +2 -0
  230. package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
  231. package/dist/src/modules/shop/view/ShopView.js +182 -0
  232. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +54 -8
  233. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +23 -0
  234. package/dist/src/modules/shop/view/components/BrowseCard/index.js +2 -0
  235. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +53 -7
  236. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +26 -0
  237. package/dist/src/modules/shop/view/components/ProductSummaryCard/index.js +1 -0
  238. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +1 -2
  239. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.js +19 -0
  240. package/dist/src/modules/shop/view/components/ShopPromoView/index.js +1 -0
  241. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +6 -4
  242. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.js +61 -0
  243. package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.d.ts +18 -0
  244. package/dist/src/modules/shop/view/components/ShopSection/ShopSectionItem.js +22 -0
  245. package/dist/src/modules/shop/view/components/ShopSection/index.js +1 -0
  246. package/dist/src/modules/shop/view/index.js +2 -0
  247. package/dist/src/modules/shop/view-model/ShopViewModel.ShopPolling.js +111 -0
  248. package/dist/src/modules/shop/view-model/ShopViewModel.js +353 -0
  249. package/dist/src/modules/stats/interfaces/IStats.js +1 -0
  250. package/dist/src/modules/stats/mocks.js +746 -0
  251. package/dist/src/modules/stats/utils/driveSummaryUtils.js +48 -0
  252. package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +1 -2
  253. package/dist/src/modules/stats/utils/renderTeamStatistic.js +16 -0
  254. package/dist/src/modules/stats/utils.js +62 -0
  255. package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
  256. package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.js +98 -0
  257. package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -2
  258. package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +27 -0
  259. package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
  260. package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +89 -0
  261. package/dist/src/modules/stats/view/ActiveAthletes/index.js +2 -0
  262. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +53 -7
  263. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.js +70 -0
  264. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
  265. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.js +87 -0
  266. package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
  267. package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.js +129 -0
  268. package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +1 -2
  269. package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.js +26 -0
  270. package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +1 -2
  271. package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.js +24 -0
  272. package/dist/src/modules/stats/view/DriveSummary/index.js +2 -0
  273. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +5 -4
  274. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.js +48 -0
  275. package/dist/src/modules/stats/view/GameLeaders/index.js +2 -0
  276. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
  277. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +55 -0
  278. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/index.js +1 -0
  279. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -7
  280. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.js +60 -0
  281. package/dist/src/modules/stats/view/MatchPredictor/index.js +2 -0
  282. package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +1 -2
  283. package/dist/src/modules/stats/view/Penalties/Penalties.js +6 -0
  284. package/dist/src/modules/stats/view/Penalties/index.js +2 -0
  285. package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +53 -7
  286. package/dist/src/modules/stats/view/RecentGames/RecentGames.js +23 -0
  287. package/dist/src/modules/stats/view/RecentGames/index.js +2 -0
  288. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
  289. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +121 -0
  290. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/index.js +2 -0
  291. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +53 -7
  292. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.js +62 -0
  293. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/index.js +2 -0
  294. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -2
  295. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.js +23 -0
  296. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/index.js +2 -0
  297. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +2 -2
  298. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +106 -0
  299. package/dist/src/modules/stats/view/ScoringSummary/index.js +2 -0
  300. package/dist/src/modules/stats/view/StatsItemView.d.ts +6 -5
  301. package/dist/src/modules/stats/view/StatsItemView.js +92 -0
  302. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +53 -7
  303. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.js +36 -0
  304. package/dist/src/modules/stats/view/StatsQRCode/index.js +1 -0
  305. package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
  306. package/dist/src/modules/stats/view/StatsView.js +137 -0
  307. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +53 -7
  308. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.js +43 -0
  309. package/dist/src/modules/stats/view/TeamStats/index.js +1 -0
  310. package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
  311. package/dist/src/modules/stats/view/Teams/StatsCarousel.js +83 -0
  312. package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +1 -2
  313. package/dist/src/modules/stats/view/Teams/StatsProgressBar.js +19 -0
  314. package/dist/src/modules/stats/view/Teams/Teams.d.ts +53 -7
  315. package/dist/src/modules/stats/view/Teams/Teams.js +43 -0
  316. package/dist/src/modules/stats/view/Teams/index.js +2 -0
  317. package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +53 -7
  318. package/dist/src/modules/stats/view/WinProbability/WinProbability.js +28 -0
  319. package/dist/src/modules/stats/view/WinProbability/index.js +2 -0
  320. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +53 -7
  321. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +89 -0
  322. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +1 -2
  323. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.js +12 -0
  324. package/dist/src/modules/stats/view/components/AthletesStatistics/index.js +2 -0
  325. package/dist/src/modules/stats/view/index.js +2 -0
  326. package/dist/src/modules/stats/view-model/StatsViewModel.js +966 -0
  327. package/dist/src/sentry.js +31 -0
  328. package/dist/src/services/AnalyticsService/AnalyticsService.d.ts +12 -7
  329. package/dist/src/services/AnalyticsService/AnalyticsService.js +402 -0
  330. package/dist/src/services/AnalyticsService/types.js +1 -0
  331. package/dist/src/services/BetsService.js +122 -0
  332. package/dist/src/services/FantasyService.js +92 -0
  333. package/dist/src/services/GlobalService/GlobalService.d.ts +9 -0
  334. package/dist/src/services/GlobalService/PageService.d.ts +9 -0
  335. package/dist/src/services/GlobalService/index.d.ts +2 -0
  336. package/dist/src/services/GlobalService/mocks.d.ts +2 -0
  337. package/dist/src/services/GlobalService/types.d.ts +11 -0
  338. package/dist/src/services/InsightsService/InsightsPayloadBuilder.d.ts +1 -2
  339. package/dist/src/services/InsightsService/InsightsPayloadBuilder.js +386 -0
  340. package/dist/src/services/InsightsService/InsightsService.js +74 -0
  341. package/dist/src/services/NetworkManager/NetworkManager.js +457 -0
  342. package/dist/src/services/NetworkManager/NetworkManagerFactory.js +101 -0
  343. package/dist/src/services/NetworkManager/errors.js +45 -0
  344. package/dist/src/services/NetworkManager/types.js +10 -0
  345. package/dist/src/services/PageService/PageService.d.ts +9 -0
  346. package/dist/src/services/PageService/PageService.js +39 -0
  347. package/dist/src/services/PageService/index.d.ts +2 -0
  348. package/dist/src/services/PageService/index.js +2 -0
  349. package/dist/src/services/PageService/mocks.d.ts +2 -0
  350. package/dist/src/services/PageService/mocks.js +104 -0
  351. package/dist/src/services/PageService/types.d.ts +76 -0
  352. package/dist/src/services/PageService/types.js +1 -0
  353. package/dist/src/services/ShopService.js +46 -0
  354. package/dist/src/services/StaticService/PageService.d.ts +9 -0
  355. package/dist/src/services/StaticService/StaticService.d.ts +3 -1
  356. package/dist/src/services/StaticService/StaticService.js +59 -0
  357. package/dist/src/services/StaticService/index.js +2 -0
  358. package/dist/src/services/StaticService/mocks.js +104 -0
  359. package/dist/src/services/StaticService/types.js +1 -0
  360. package/dist/src/services/StatsService.js +136 -0
  361. package/dist/src/services/ThemeManager/constants.js +47 -0
  362. package/dist/src/services/UserSettingsManager.js +155 -0
  363. package/dist/src/test-polyfills.js +15 -0
  364. package/dist/src/types/OverlayTypes.js +4 -0
  365. package/dist/src/view-models/MaestroEventViewModel.d.ts +0 -2
  366. package/dist/src/view-models/MaestroEventViewModel.js +280 -0
  367. package/dist/src/view-models/OverlayViewModel.js +222 -0
  368. package/dist/src/view-models/PanelManagerViewModel.js +212 -0
  369. package/dist/src/view-models/ViewModel.js +32 -0
  370. package/package.json +13 -9
@@ -0,0 +1,292 @@
1
+ export const KEY_PLAYS_RESPONSE_MOCK_DATA = {
2
+ entities: {
3
+ team: {
4
+ '251': {
5
+ id: '251',
6
+ displayName: 'Texas Longhorns',
7
+ color: 'c15d26',
8
+ alternateColor: 'ffffff',
9
+ shortName: 'Texas',
10
+ homeAway: 'away',
11
+ displayOrder: '1',
12
+ logoRef: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/251.jpg?w=184&h=144',
13
+ logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/251.png',
14
+ },
15
+ '264': {
16
+ id: '264',
17
+ displayName: 'Washington Huskies',
18
+ color: '33006f',
19
+ alternateColor: 'e8d3a2',
20
+ shortName: 'Washington',
21
+ homeAway: 'home',
22
+ displayOrder: '0',
23
+ logoRef: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/teams/264.jpg?w=184&h=144',
24
+ logoDarkRef: 'https://a.espncdn.com/i/teamlogos/ncaa/500-dark/264.png',
25
+ },
26
+ },
27
+ athlete: {
28
+ '4360423': {
29
+ id: '4360423',
30
+ shortName: 'M. Penix Jr.',
31
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
32
+ },
33
+ '4430637': {
34
+ id: '4430637',
35
+ shortName: 'J. Polk',
36
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',
37
+ },
38
+ '4430834': {
39
+ id: '4430834',
40
+ shortName: 'J. McMillan',
41
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',
42
+ },
43
+ '4569337': {
44
+ id: '4569337',
45
+ shortName: 'R. Sanborn',
46
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',
47
+ },
48
+ '4570040': {
49
+ id: '4570040',
50
+ shortName: 'B. Murphy II',
51
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',
52
+ },
53
+ '4597500': {
54
+ id: '4597500',
55
+ shortName: 'A. Mitchell',
56
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',
57
+ },
58
+ '4689338': {
59
+ id: '4689338',
60
+ shortName: 'D. Johnson',
61
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
62
+ },
63
+ '4870609': {
64
+ id: '4870609',
65
+ shortName: 'C. Baxter',
66
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
67
+ },
68
+ '4889929': {
69
+ id: '4889929',
70
+ shortName: 'Q. Ewers',
71
+ headshot: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
72
+ },
73
+ },
74
+ },
75
+ sections: [
76
+ {
77
+ title: '1st Quarter',
78
+ items: [
79
+ {
80
+ description: "Ja'Lynn Polk's 77-yard catch sets up Washington TD",
81
+ team: '264',
82
+ awayScore: '0',
83
+ homeScore: '7',
84
+ wallClock: '2024-01-02T02:11:05Z',
85
+ displayClock: '11:04',
86
+ shortPeriod: 'Q1',
87
+ scoringPlay: true,
88
+ athlete: '4689338',
89
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
90
+ thumbnailType: 'headshot',
91
+ clipID: '39225214',
92
+ },
93
+ {
94
+ description: 'Germie Bernard makes leaping grab for Washington',
95
+ team: '264',
96
+ wallClock: '2024-01-02T02:38:54Z',
97
+ displayClock: '1:30',
98
+ shortPeriod: 'Q1',
99
+ scoringPlay: false,
100
+ athlete: '4360423',
101
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
102
+ thumbnailType: 'headshot',
103
+ clipID: '39225401',
104
+ },
105
+ ],
106
+ },
107
+ {
108
+ title: '2nd Quarter',
109
+ items: [
110
+ {
111
+ description: 'Dillon Johnson scores 2nd TD of game for the Huskies',
112
+ team: '264',
113
+ awayScore: '7',
114
+ homeScore: '14',
115
+ wallClock: '2024-01-02T02:47:33Z',
116
+ displayClock: '13:08',
117
+ shortPeriod: 'Q2',
118
+ scoringPlay: true,
119
+ athlete: '4689338',
120
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
121
+ thumbnailType: 'headshot',
122
+ clipID: '39225442',
123
+ },
124
+ {
125
+ description: 'Texas takes over after Washington muffs punt',
126
+ team: '251',
127
+ wallClock: '2024-01-02T02:54:50Z',
128
+ displayClock: '11:45',
129
+ shortPeriod: 'Q2',
130
+ scoringPlay: false,
131
+ athlete: '4569337',
132
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4569337.jpg?w=184&h=144',
133
+ thumbnailType: 'headshot',
134
+ clipID: '39225487',
135
+ },
136
+ {
137
+ description: 'Big man TD! Byron Murphy II punches it in for Texas',
138
+ team: '251',
139
+ awayScore: '14',
140
+ homeScore: '14',
141
+ wallClock: '2024-01-02T02:57:22Z',
142
+ displayClock: '10:08',
143
+ shortPeriod: 'Q2',
144
+ scoringPlay: true,
145
+ athlete: '4570040',
146
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4570040.jpg?w=184&h=144',
147
+ thumbnailType: 'headshot',
148
+ clipID: '39225513',
149
+ },
150
+ {
151
+ description: 'Rome Odunze makes over-the-shoulder grab for Washington',
152
+ team: '264',
153
+ wallClock: '2024-01-02T03:02:27Z',
154
+ displayClock: '9:31',
155
+ shortPeriod: 'Q2',
156
+ scoringPlay: false,
157
+ athlete: '4360423',
158
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
159
+ thumbnailType: 'headshot',
160
+ clipID: '39225518',
161
+ },
162
+ {
163
+ description: "Texas stops Washington's attempt on 4th down",
164
+ team: '251',
165
+ wallClock: '2024-01-02T03:06:28Z',
166
+ displayClock: '6:59',
167
+ shortPeriod: 'Q2',
168
+ scoringPlay: false,
169
+ athlete: '4689338',
170
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4689338.jpg?w=184&h=144',
171
+ thumbnailType: 'headshot',
172
+ clipID: '39225559',
173
+ },
174
+ {
175
+ description: "Ja'Lynn Polk makes bobbling TD catch and Washington goes ahead",
176
+ team: '264',
177
+ awayScore: '14',
178
+ homeScore: '21',
179
+ wallClock: '2024-01-02T03:27:56Z',
180
+ displayClock: '1:27',
181
+ shortPeriod: 'Q2',
182
+ scoringPlay: true,
183
+ athlete: '4430637',
184
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430637.jpg?w=184&h=144',
185
+ thumbnailType: 'headshot',
186
+ clipID: '39225686',
187
+ },
188
+ {
189
+ description: "Texas ties the score after CJ Baxter's TD run",
190
+ team: '251',
191
+ awayScore: '21',
192
+ homeScore: '21',
193
+ wallClock: '2024-01-02T03:38:42Z',
194
+ displayClock: '0:17',
195
+ shortPeriod: 'Q2',
196
+ scoringPlay: true,
197
+ athlete: '4870609',
198
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
199
+ thumbnailType: 'headshot',
200
+ clipID: '39225762',
201
+ },
202
+ ],
203
+ },
204
+ {
205
+ title: '3rd Quarter',
206
+ items: [
207
+ {
208
+ description: 'Penix threads the needle to McMillan for Washington score',
209
+ team: '264',
210
+ awayScore: '21',
211
+ homeScore: '28',
212
+ wallClock: '2024-01-02T04:11:00Z',
213
+ displayClock: '10:30',
214
+ shortPeriod: 'Q3',
215
+ scoringPlay: true,
216
+ athlete: '4430834',
217
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4430834.jpg?w=184&h=144',
218
+ thumbnailType: 'headshot',
219
+ clipID: '39226021',
220
+ },
221
+ {
222
+ description: 'Texas commits their first turnover of the game',
223
+ team: '264',
224
+ wallClock: '2024-01-02T04:16:16Z',
225
+ displayClock: '10:14',
226
+ shortPeriod: 'Q3',
227
+ scoringPlay: false,
228
+ athlete: '4870609',
229
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4870609.jpg?w=184&h=144',
230
+ thumbnailType: 'headshot',
231
+ clipID: '39226030',
232
+ },
233
+ ],
234
+ },
235
+ {
236
+ title: '4th Quarter',
237
+ items: [
238
+ {
239
+ description: 'Hang time! Adonai Mitchell makes incredible TD grab for Texas',
240
+ team: '251',
241
+ awayScore: '28',
242
+ homeScore: '34',
243
+ wallClock: '2024-01-01T05:08:14Z',
244
+ displayClock: '7:23',
245
+ shortPeriod: 'Q4',
246
+ scoringPlay: true,
247
+ athlete: '4597500',
248
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4597500.jpg?w=184&h=144',
249
+ thumbnailType: 'headshot',
250
+ clipID: '39226360',
251
+ },
252
+ {
253
+ description: 'How did Penix drop this pass in to Odunze?',
254
+ team: '264',
255
+ wallClock: '2024-01-01T05:17:15Z',
256
+ displayClock: '3:48',
257
+ shortPeriod: 'Q4',
258
+ scoringPlay: false,
259
+ athlete: '4360423',
260
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4360423.jpg?w=184&h=144',
261
+ thumbnailType: 'headshot',
262
+ clipID: '39226394',
263
+ },
264
+ {
265
+ description: "Jordan Whittington's big catch gives Texas good field position",
266
+ team: '251',
267
+ wallClock: '2024-01-01T05:41:48Z',
268
+ displayClock: '0:28',
269
+ shortPeriod: 'Q4',
270
+ scoringPlay: false,
271
+ athlete: '4889929',
272
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
273
+ thumbnailType: 'headshot',
274
+ clipID: '39226506',
275
+ },
276
+ {
277
+ description: "Washington survives Texas' final drive to win Sugar Bowl",
278
+ team: '264',
279
+ wallClock: '2024-01-02T04:43:41Z',
280
+ displayClock: '0:00',
281
+ shortPeriod: 'Q4',
282
+ scoringPlay: false,
283
+ athlete: '4889929',
284
+ thumbnail: 'https://stitcher.espn.com/ctv/sports/football/leagues/college-football/athletes/4889929.jpg?w=184&h=144',
285
+ thumbnailType: 'headshot',
286
+ clipID: '39226585',
287
+ },
288
+ ],
289
+ },
290
+ ],
291
+ };
292
+ export const BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA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rnsWj+G9F0GIR6ZYQwNjDXBXzLuTPXzLmTdMQeuwMI1yQiKOKYjcoEFABQAUAFABQAUAFABQAUAFAGBrXhnRPEEZTU7GKWTbtS6QeVeRY+75dymJNqnny3Lwk/fjYcUDvY8c174R39v5k+gXa30Iyy2V2VhvFA6JHPhbadveQWnHHzHqrdh3PJr6wvtLuGtdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==';
@@ -0,0 +1,14 @@
1
+ export const KEY_PLAYS_LOAD_FAILURE_STATUS = {
2
+ noFailure: 'noFailure',
3
+ recentFailure: 'recentFailure',
4
+ nonRecentFailure: 'nonRecentFailure',
5
+ };
6
+ export const KEY_PLAYS_ERROR_STATE = {
7
+ unsupportedEvent: 'unsupportedEvent',
8
+ unpopulatedEvent: 'unpopulatedEvent',
9
+ tabLoadFailure: 'tabLoadFailure',
10
+ };
11
+ export const KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE = {
12
+ keyPlay: 'keyPlay',
13
+ sectionHeader: 'sectionHeader',
14
+ };
@@ -5,5 +5,5 @@ export default class ScoreCard extends React.Component<{
5
5
  homeTeamName: string;
6
6
  awayTeamName: string;
7
7
  }, {}> {
8
- render(): React.JSX.Element | null;
8
+ render(): JSX.Element | null;
9
9
  }
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export default class ScoreCard extends React.Component {
3
+ render() {
4
+ const { awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
5
+ if (!awayTeamScore || !homeTeamScore || !homeTeamName || !awayTeamName) {
6
+ return null;
7
+ }
8
+ return (React.createElement("div", { className: "score" },
9
+ React.createElement("div", { className: "score-team T05_ALT" },
10
+ React.createElement("span", null, homeTeamName),
11
+ React.createElement("span", { className: "T30 score-value FONT_BOLD" }, homeTeamScore)),
12
+ React.createElement("div", { className: "score-team T05_ALT" },
13
+ React.createElement("span", { className: "T30 score-value FONT_BOLD" }, awayTeamScore),
14
+ React.createElement("span", null, awayTeamName))));
15
+ }
16
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="prop-types" />
1
2
  import IKeyPlay, { KeyPlayLoadFailureStatus } from '../interfaces/IKeyPlays';
2
3
  import './KeyPlayCardView.styles.css';
3
4
  import React from 'react';
@@ -21,18 +22,18 @@ export declare class KeyPlayCardView extends React.Component<KeyPlayCardViewProp
21
22
  componentDidMount(): void;
22
23
  componentWillUnmount(): void;
23
24
  onLoad: () => void;
24
- renderImage: () => React.JSX.Element | null;
25
- render(): React.JSX.Element;
25
+ renderImage: () => JSX.Element | null;
26
+ render(): JSX.Element;
26
27
  }
27
28
  export default class KeyPlayCard extends React.Component<Omit<KeyPlayCardViewProps, 'setRef'> & WithFocusableProps> {
28
29
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
29
30
  static contextTypes: {
30
- refsMap: React.Requireable<any>;
31
- setRef: React.Requireable<any>;
32
- scrollToFocusedElement: React.Requireable<any>;
31
+ refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
32
+ setRef: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
33
34
  };
34
35
  handleLeftPressed: (d: Direction) => void;
35
36
  onBecameFocused: (layout: Layout) => void;
36
- render(): React.JSX.Element;
37
+ render(): JSX.Element;
37
38
  }
38
39
  export {};
@@ -0,0 +1,139 @@
1
+ import Image from '@/components/atoms/Image';
2
+ import { BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK } from '../constants';
3
+ import './KeyPlayCardView.styles.css';
4
+ import SDK from '@/index';
5
+ import Icon from '@/components/atoms/SvgIcon';
6
+ import React from 'react';
7
+ import { withFocusable, } from '@/external/spatial-navigation';
8
+ import ScoreCard from './KeyPlayCardScoreTagView';
9
+ import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
10
+ import { DEFAULT_SCROLLABLE_CONTAINER_CONTEXT, SCROLLABLE_CONTEXT_TYPE, } from '@/components/core/ScrollableContainer/ScrollableContainer';
11
+ export class KeyPlayCardView extends React.Component {
12
+ constructor(props) {
13
+ super(props);
14
+ Object.defineProperty(this, "failedClipListener", {
15
+ enumerable: true,
16
+ configurable: true,
17
+ writable: true,
18
+ value: () => { }
19
+ });
20
+ Object.defineProperty(this, "vm", {
21
+ enumerable: true,
22
+ configurable: true,
23
+ writable: true,
24
+ value: void 0
25
+ });
26
+ Object.defineProperty(this, "onLoad", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true,
30
+ value: () => {
31
+ this.setState({ imageLoaded: true });
32
+ }
33
+ });
34
+ Object.defineProperty(this, "renderImage", {
35
+ enumerable: true,
36
+ configurable: true,
37
+ writable: true,
38
+ value: () => {
39
+ const { playerImageUrl, teamImageUrl, thumbnailImageUrl } = this.props;
40
+ if (playerImageUrl) {
41
+ return (React.createElement(Image, { src: playerImageUrl, crossOrigin: "anonymous", alt: "Key Play Player Image", className: "cardImage", onLoad: this.onLoad, style: {
42
+ display: this.state.imageLoaded ? 'block' : 'none',
43
+ } }));
44
+ }
45
+ if (teamImageUrl) {
46
+ return (React.createElement(Image, { src: teamImageUrl, crossOrigin: "anonymous", alt: "Key Play Team Image", className: "cardImage", onLoad: this.onLoad, style: {
47
+ display: this.state.imageLoaded ? 'block' : 'none',
48
+ } }));
49
+ }
50
+ if (thumbnailImageUrl) {
51
+ return (React.createElement(Image, { src: thumbnailImageUrl, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage", onLoad: this.onLoad, style: {
52
+ display: this.state.imageLoaded ? 'block' : 'none',
53
+ } }));
54
+ }
55
+ return null;
56
+ }
57
+ });
58
+ this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;
59
+ this.state = {
60
+ failedClip: this.viewModel.failedClips.value[props.clipID] || null,
61
+ imageLoaded: false,
62
+ };
63
+ }
64
+ get viewModel() {
65
+ if (!this.vm) {
66
+ throw new Error('KeyPlaysViewModel is not initialized');
67
+ }
68
+ return this.vm;
69
+ }
70
+ componentDidMount() {
71
+ this.failedClipListener = this.viewModel.failedClips.subscribe((failedClips) => {
72
+ this.setState({ failedClip: failedClips[this.props.clipID] });
73
+ });
74
+ }
75
+ componentWillUnmount() {
76
+ if (this.failedClipListener) {
77
+ this.failedClipListener();
78
+ }
79
+ }
80
+ render() {
81
+ const { clipID, description, isPlaying, playbackProgress, isScoring, focused, awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
82
+ const { failedClip } = this.state;
83
+ return (React.createElement("div", { className: "key-play-card focus-ring", id: clipID, "data-focused": focused },
84
+ React.createElement("div", { className: "key-play-card-content" },
85
+ !this.state.imageLoaded && (React.createElement(Image, { src: BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage" })),
86
+ this.renderImage(),
87
+ React.createElement("div", { className: "text-content T05_ALT" },
88
+ React.createElement("div", { className: "multi-line" }, description))),
89
+ isPlaying && playbackProgress !== null && (React.createElement("progress", { value: playbackProgress, max: "1" })),
90
+ isScoring && (React.createElement(ScoreCard, { awayTeamScore: awayTeamScore, homeTeamScore: homeTeamScore, homeTeamName: homeTeamName, awayTeamName: awayTeamName })),
91
+ failedClip === 'recentFailure' && (React.createElement("div", { className: "error-state" },
92
+ React.createElement("div", { className: "error-state-inner" },
93
+ React.createElement("div", { className: "error-state-text" },
94
+ React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 }),
95
+ React.createElement("span", { className: "T05_ALT" }, "Could not play this clip. "))))),
96
+ failedClip === 'nonRecentFailure' && (React.createElement("div", { className: "non-recent-error-state" },
97
+ React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 })))));
98
+ }
99
+ }
100
+ const FocusableKeyPlayCard = withFocusable()(KeyPlayCardView);
101
+ export default class KeyPlayCard extends React.Component {
102
+ constructor() {
103
+ super(...arguments);
104
+ Object.defineProperty(this, "context", {
105
+ enumerable: true,
106
+ configurable: true,
107
+ writable: true,
108
+ value: DEFAULT_SCROLLABLE_CONTAINER_CONTEXT
109
+ });
110
+ Object.defineProperty(this, "handleLeftPressed", {
111
+ enumerable: true,
112
+ configurable: true,
113
+ writable: true,
114
+ value: (d) => {
115
+ if (d === 'left') {
116
+ SDK.getMaestroEventViewModel().deliverFocus();
117
+ }
118
+ }
119
+ });
120
+ Object.defineProperty(this, "onBecameFocused", {
121
+ enumerable: true,
122
+ configurable: true,
123
+ writable: true,
124
+ value: (layout) => {
125
+ this.context.scrollToFocusedElement(layout);
126
+ }
127
+ });
128
+ }
129
+ render() {
130
+ return (React.createElement(FocusableItem, null,
131
+ React.createElement(FocusableKeyPlayCard, { ...this.props, onArrowPress: this.handleLeftPressed, onBecameFocused: this.onBecameFocused })));
132
+ }
133
+ }
134
+ Object.defineProperty(KeyPlayCard, "contextTypes", {
135
+ enumerable: true,
136
+ configurable: true,
137
+ writable: true,
138
+ value: SCROLLABLE_CONTEXT_TYPE
139
+ });
@@ -8,6 +8,6 @@ type Props = {
8
8
  };
9
9
  declare class KeyPlayErrorStateView extends React.Component<Props, {}> {
10
10
  onArrowPress: (d: Direction) => void;
11
- render(): React.JSX.Element | null;
11
+ render(): JSX.Element | null;
12
12
  }
13
13
  export default KeyPlayErrorStateView;
@@ -0,0 +1,65 @@
1
+ import './KeyPlayErrorStateView.styles.css';
2
+ import React from 'react';
3
+ import SDK from '@/index';
4
+ import TabLoadErrorView from '@/components/molecules/TabLoadError';
5
+ class UnpopulatedEvent extends React.Component {
6
+ render() {
7
+ return (React.createElement("div", { className: "sdk--key-play-error-state-unpopulatedEvent" },
8
+ React.createElement("div", { className: "main-content" },
9
+ React.createElement("h3", { className: "T70" }, "Good things come to those who wait!"),
10
+ React.createElement("p", { className: "T20" }, "When a key play occurs we will serve them up for you here.")),
11
+ React.createElement("div", { className: "unpopulatedEvent-examples" }, Array.from({ length: 4 }).map((_, i) => (React.createElement("div", { key: i, className: "example" },
12
+ React.createElement("div", { className: "image" }),
13
+ React.createElement("div", { className: "content" },
14
+ React.createElement("div", { className: "headline" }),
15
+ React.createElement("div", { className: "body" }))))))));
16
+ }
17
+ }
18
+ class UnsupportedEvent extends React.Component {
19
+ render() {
20
+ return (React.createElement("div", { className: "sdk--key-play-error-state-unsupportedEvent" },
21
+ React.createElement("h3", { className: "T70" }, "No Key Plays Available"),
22
+ React.createElement("svg", { viewBox: "0 0 520 359", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
23
+ React.createElement("g", { opacity: "0.16" },
24
+ React.createElement("path", { d: "M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z", fill: "#6D6D6D" }),
25
+ React.createElement("rect", { x: "94.6687", y: "219.427", width: "51.6662", height: "25.259", fill: "#777777" }),
26
+ React.createElement("rect", { x: "145.187", y: "39.1694", width: "20.6665", height: "149.258", fill: "#666666" }),
27
+ React.createElement("path", { d: "M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z", fill: "#666666" }),
28
+ React.createElement("path", { d: "M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z", fill: "#6D6D6D" }),
29
+ React.createElement("rect", { width: "51.6662", height: "25.259", transform: "matrix(-1 0 0 1 427.055 219.427)", fill: "#777777" }),
30
+ React.createElement("rect", { width: "20.6665", height: "149.258", transform: "matrix(-1 0 0 1 376.537 39.1694)", fill: "#666666" }),
31
+ React.createElement("path", { d: "M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z", fill: "#666666" }),
32
+ React.createElement("path", { d: "M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z", fill: "#B1B1B1" }),
33
+ React.createElement("rect", { x: "23.4844", y: "141.354", width: "473.033", height: "19.5183", fill: "#777777" }),
34
+ React.createElement("rect", { x: "72.8545", y: "51.7993", width: "374.293", height: "45.9255", fill: "#CDCDCD" })))));
35
+ }
36
+ }
37
+ class KeyPlayErrorStateView extends React.Component {
38
+ constructor() {
39
+ super(...arguments);
40
+ Object.defineProperty(this, "onArrowPress", {
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true,
44
+ value: (d) => {
45
+ if (d === 'left') {
46
+ SDK.getMaestroEventViewModel().deliverFocus();
47
+ }
48
+ }
49
+ });
50
+ }
51
+ render() {
52
+ const { errorState, onRetry } = this.props;
53
+ if (errorState === 'unsupportedEvent') {
54
+ return React.createElement(UnsupportedEvent, null);
55
+ }
56
+ if (errorState === 'unpopulatedEvent') {
57
+ return React.createElement(UnpopulatedEvent, null);
58
+ }
59
+ if (errorState === 'tabLoadFailure') {
60
+ return (React.createElement(TabLoadErrorView, { onEnterPress: onRetry, onArrowPress: this.onArrowPress }));
61
+ }
62
+ return null;
63
+ }
64
+ }
65
+ export default KeyPlayErrorStateView;
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import './KeyPlaysView.styles.css';
3
3
  import { KeyPlaysErrorState } from '../interfaces/IKeyPlays';
4
4
  import KeyPlaysViewModel, { KeyPlayItem } from '../view-model/KeyPlaysViewModel';
@@ -19,7 +19,7 @@ export declare class KeyPlays extends Component<{}, IKeyPlaysState> {
19
19
  componentDidMount(): void;
20
20
  componentWillUnmount(): void;
21
21
  private handlePlayClip;
22
- render(): React.JSX.Element;
22
+ render(): JSX.Element;
23
23
  }
24
24
  interface KeyPlaysWithErrorStateState {
25
25
  errorState: KeyPlaysErrorState;
@@ -32,6 +32,6 @@ export default class KeyPlaysWithErrorState extends Component<{}, KeyPlaysWithEr
32
32
  componentDidMount(): void;
33
33
  componentWillUnmount(): void;
34
34
  private handleRetry;
35
- render(): React.JSX.Element;
35
+ render(): JSX.Element;
36
36
  }
37
37
  export {};