@maestro_io/maestro-web-sdk 2.1.1 → 2.1.3

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 (200) hide show
  1. package/dist/MaestroEventDelegate.js +60 -0
  2. package/dist/components/atoms/BaseButton/BaseButton.js +11 -0
  3. package/dist/components/atoms/BaseButton/index.js +2 -0
  4. package/dist/components/atoms/Image/index.js +30 -0
  5. package/dist/components/atoms/Rive/index.d.ts +1 -0
  6. package/dist/components/atoms/Rive/index.js +53 -0
  7. package/dist/components/atoms/SvgIcon/BetGeneralIcon.js +9 -0
  8. package/dist/components/atoms/SvgIcon/BetsIcon.js +11 -0
  9. package/dist/components/atoms/SvgIcon/BetsWarningIcon.js +11 -0
  10. package/dist/components/atoms/SvgIcon/CheckmarkIcon.js +6 -0
  11. package/dist/components/atoms/SvgIcon/CollapseIcon.js +6 -0
  12. package/dist/components/atoms/SvgIcon/ExpandIcon.js +6 -0
  13. package/dist/components/atoms/SvgIcon/FantasyIcon.js +8 -0
  14. package/dist/components/atoms/SvgIcon/FlameIcon.js +11 -0
  15. package/dist/components/atoms/SvgIcon/Icon.js +42 -0
  16. package/dist/components/atoms/SvgIcon/KeyPlaysIcon.js +10 -0
  17. package/dist/components/atoms/SvgIcon/MobilePhoneIcon.js +11 -0
  18. package/dist/components/atoms/SvgIcon/PlayIcon.js +8 -0
  19. package/dist/components/atoms/SvgIcon/StatsIcon.js +12 -0
  20. package/dist/components/atoms/SvgIcon/TimesIcon.js +6 -0
  21. package/dist/components/atoms/SvgIcon/WarningIcon.js +8 -0
  22. package/dist/components/atoms/SvgIcon/index.js +2 -0
  23. package/dist/components/core/App/App.js +41 -0
  24. package/dist/components/core/App/index.js +2 -0
  25. package/dist/components/core/OverlayContainer.js +58 -0
  26. package/dist/components/core/PanelManager/PanelManager.js +80 -0
  27. package/dist/components/core/PanelManager/index.js +2 -0
  28. package/dist/components/core/ScrollableContainer/FocusableItem.js +38 -0
  29. package/dist/components/core/ScrollableContainer/ScrollableContainer.js +166 -0
  30. package/dist/components/core/ScrollableContainer/index.js +2 -0
  31. package/dist/components/molecules/ActionButton/ActionButton.d.ts +1 -0
  32. package/dist/components/molecules/ActionButton/ActionButton.js +10 -0
  33. package/dist/components/molecules/ActionButton/index.js +2 -0
  34. package/dist/components/molecules/Overlay/Overlay.js +139 -0
  35. package/dist/components/molecules/Overlay/index.js +2 -0
  36. package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +1 -0
  37. package/dist/components/molecules/PanelNavButton/PanelNavButton.js +40 -0
  38. package/dist/components/molecules/PanelNavButton/index.js +2 -0
  39. package/dist/components/molecules/SegmentButton/SegmentButton.js +10 -0
  40. package/dist/components/molecules/SegmentButton/index.js +2 -0
  41. package/dist/components/molecules/WatchButton/WatchButton.js +15 -0
  42. package/dist/components/molecules/WatchButton/index.js +2 -0
  43. package/dist/components/organisms/PanelNavigation/PanelNavigation.js +71 -0
  44. package/dist/components/organisms/PanelNavigation/index.js +2 -0
  45. package/dist/components/organisms/SegmentController/SegmentController.d.ts +2 -2
  46. package/dist/components/organisms/SegmentController/SegmentController.js +68 -0
  47. package/dist/components/organisms/SegmentController/index.d.ts +1 -1
  48. package/dist/components/organisms/SegmentController/index.js +2 -0
  49. package/dist/external/AxiosNetworkClient.js +83 -0
  50. package/dist/external/LocalStorageCacheManager.js +213 -0
  51. package/dist/external/ReactRenderer.d.ts +2 -2
  52. package/dist/external/ReactRenderer.js +86 -0
  53. package/dist/external/mocks/MockExternalNetworkClient.js +161 -0
  54. package/dist/external/ports/cacheManager.js +1 -0
  55. package/dist/external/ports/networkClient.js +1 -0
  56. package/dist/external/ports/renderer.js +1 -0
  57. package/dist/external/spatial-navigation/index.d.ts +3 -4
  58. package/dist/external/spatial-navigation/index.js +3 -0
  59. package/dist/external/spatial-navigation/measureLayout.js +30 -0
  60. package/dist/external/spatial-navigation/spatialNavigation.d.ts +2 -4
  61. package/dist/external/spatial-navigation/spatialNavigation.js +864 -0
  62. package/dist/external/spatial-navigation/utils.js +6 -0
  63. package/dist/external/spatial-navigation/visualDebugger.js +76 -0
  64. package/dist/external/spatial-navigation/withFocusable.d.ts +1 -0
  65. package/dist/external/spatial-navigation/withFocusable.js +245 -0
  66. package/dist/helpers/Observable.js +37 -0
  67. package/dist/helpers/deliver-focus.js +12 -0
  68. package/dist/index.d.ts +4 -4
  69. package/dist/index.js +192 -0
  70. package/dist/interfaces/IMaestroEvent.js +6 -0
  71. package/dist/interfaces/IMaestroEventDelegate.js +1 -0
  72. package/dist/interfaces/IMaestroManager.js +1 -0
  73. package/dist/maestro-web-sdk.umd.js +3 -3
  74. package/dist/maestro-web-sdk.umd.js.map +1 -1
  75. package/dist/models/IModel.js +1 -0
  76. package/dist/models/IPanel.js +53 -0
  77. package/dist/models/ITheme.js +20 -0
  78. package/dist/models/IWinningBet.js +1 -0
  79. package/dist/modules/bets/interfaces/IBets.js +1 -0
  80. package/dist/modules/bets/mocks.js +572 -0
  81. package/dist/modules/bets/view/BetsView.js +116 -0
  82. package/dist/modules/bets/view/HotProps/HotPropsView.d.ts +7 -6
  83. package/dist/modules/bets/view/HotProps/HotPropsView.js +139 -0
  84. package/dist/modules/bets/view/SixPack/SixPackView.d.ts +2 -2
  85. package/dist/modules/bets/view/SixPack/SixPackView.js +103 -0
  86. package/dist/modules/bets/view/TabLoadFailureView.d.ts +1 -0
  87. package/dist/modules/bets/view/TabLoadFailureView.js +12 -0
  88. package/dist/modules/bets/view/UserBets/BetResult/BetResult.js +6 -0
  89. package/dist/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +7 -6
  90. package/dist/modules/bets/view/UserBets/BetsCard/BetsCard.js +122 -0
  91. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardEvent.js +34 -0
  92. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardFooter.js +22 -0
  93. package/dist/modules/bets/view/UserBets/Boost/Boost.js +6 -0
  94. package/dist/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.js +9 -0
  95. package/dist/modules/bets/view/UserBets/Parlay/Parlay.js +13 -0
  96. package/dist/modules/bets/view/UserBets/Straight/Straight.js +6 -0
  97. package/dist/modules/bets/view/UserBets/Teaser/Teaser.js +13 -0
  98. package/dist/modules/bets/view/UserBets/UserBetsView.js +114 -0
  99. package/dist/modules/bets/view/components/Bet/Bet.d.ts +1 -0
  100. package/dist/modules/bets/view/components/Bet/Bet.js +32 -0
  101. package/dist/modules/bets/view/components/BetPill/BetPill.js +6 -0
  102. package/dist/modules/bets/view/components/BetsCard/BetsCard.js +15 -0
  103. package/dist/modules/bets/view/components/BetsCard/BetsCardHeader.js +20 -0
  104. package/dist/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.js +14 -0
  105. package/dist/modules/bets/view/components/LocationWarning/LocationWarning.js +16 -0
  106. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +2 -2
  107. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.js +63 -0
  108. package/dist/modules/bets/view/components/PromoCodeBanner/index.d.ts +1 -1
  109. package/dist/modules/bets/view/components/PromoCodeBanner/index.js +1 -0
  110. package/dist/modules/bets/view-model/BetsViewModel.js +767 -0
  111. package/dist/modules/key-plays/constants.js +292 -0
  112. package/dist/modules/key-plays/interfaces/IKeyPlays.d.ts +4 -4
  113. package/dist/modules/key-plays/interfaces/IKeyPlays.js +14 -0
  114. package/dist/modules/key-plays/interfaces/IKeyPlaysResponse.js +1 -0
  115. package/dist/modules/key-plays/view/KeyPlayCardScoreTagView.js +13 -0
  116. package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +0 -4
  117. package/dist/modules/key-plays/view/KeyPlayCardView.js +120 -0
  118. package/dist/modules/key-plays/view/KeyPlayErrorStateView.js +58 -0
  119. package/dist/modules/key-plays/view/KeyPlaysView.js +166 -0
  120. package/dist/modules/key-plays/view-model/KeyPlaysViewModel.js +182 -0
  121. package/dist/modules/stats/interfaces/IStats.d.ts +166 -0
  122. package/dist/modules/stats/interfaces/IStats.js +1 -0
  123. package/dist/modules/stats/mocks.d.ts +82 -0
  124. package/dist/modules/stats/mocks.js +686 -0
  125. package/dist/modules/stats/utils/renderTeamStatistic.d.ts +21 -0
  126. package/dist/modules/stats/utils/renderTeamStatistic.js +16 -0
  127. package/dist/modules/stats/utils.d.ts +39 -0
  128. package/dist/modules/stats/utils.js +62 -0
  129. package/dist/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +34 -0
  130. package/dist/modules/stats/view/ActiveAthletes/ActiveAthletes.js +78 -0
  131. package/dist/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +5 -0
  132. package/dist/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.js +27 -0
  133. package/dist/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +10 -0
  134. package/dist/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.js +15 -0
  135. package/dist/modules/stats/view/ActiveAthletes/index.d.ts +2 -0
  136. package/dist/modules/stats/view/ActiveAthletes/index.js +2 -0
  137. package/dist/modules/stats/view/GameLeaders/GameLeaders.d.ts +8 -0
  138. package/dist/modules/stats/view/GameLeaders/GameLeaders.js +9 -0
  139. package/dist/modules/stats/view/GameLeaders/index.d.ts +2 -0
  140. package/dist/modules/stats/view/GameLeaders/index.js +2 -0
  141. package/dist/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +17 -0
  142. package/dist/modules/stats/view/MatchPredictor/DonutChart/DonutChart.js +55 -0
  143. package/dist/modules/stats/view/MatchPredictor/DonutChart/index.d.ts +2 -0
  144. package/dist/modules/stats/view/MatchPredictor/DonutChart/index.js +1 -0
  145. package/dist/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -0
  146. package/dist/modules/stats/view/MatchPredictor/MatchPredictorView.js +66 -0
  147. package/dist/modules/stats/view/MatchPredictor/index.d.ts +3 -0
  148. package/dist/modules/stats/view/MatchPredictor/index.js +2 -0
  149. package/dist/modules/stats/view/RecentGames/RecentGames.d.ts +63 -0
  150. package/dist/modules/stats/view/RecentGames/RecentGames.js +22 -0
  151. package/dist/modules/stats/view/RecentGames/index.d.ts +2 -0
  152. package/dist/modules/stats/view/RecentGames/index.js +2 -0
  153. package/dist/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +52 -0
  154. package/dist/modules/stats/view/StatsQRCode/StatsQRCodeView.js +38 -0
  155. package/dist/modules/stats/view/StatsQRCode/index.d.ts +2 -0
  156. package/dist/modules/stats/view/StatsQRCode/index.js +1 -0
  157. package/dist/modules/stats/view/StatsView.d.ts +20 -0
  158. package/dist/modules/stats/view/StatsView.js +107 -0
  159. package/dist/modules/stats/view/TeamStats/TeamStatsView.d.ts +54 -0
  160. package/dist/modules/stats/view/TeamStats/TeamStatsView.js +69 -0
  161. package/dist/modules/stats/view/TeamStats/index.d.ts +2 -0
  162. package/dist/modules/stats/view/TeamStats/index.js +1 -0
  163. package/dist/modules/stats/view/Teams/StatsCarousel.d.ts +8 -0
  164. package/dist/modules/stats/view/Teams/StatsCarousel.js +14 -0
  165. package/dist/modules/stats/view/Teams/StatsProgressBar.d.ts +7 -0
  166. package/dist/modules/stats/view/Teams/StatsProgressBar.js +18 -0
  167. package/dist/modules/stats/view/Teams/Teams.d.ts +68 -0
  168. package/dist/modules/stats/view/Teams/Teams.js +42 -0
  169. package/dist/modules/stats/view/Teams/index.d.ts +2 -0
  170. package/dist/modules/stats/view/Teams/index.js +2 -0
  171. package/dist/modules/stats/view/WinProbability/WinProbability.d.ts +63 -0
  172. package/dist/modules/stats/view/WinProbability/WinProbability.js +27 -0
  173. package/dist/modules/stats/view/WinProbability/index.d.ts +2 -0
  174. package/dist/modules/stats/view/WinProbability/index.js +2 -0
  175. package/dist/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +67 -0
  176. package/dist/modules/stats/view/components/AthletesStatistics/AthletesStatistics.js +29 -0
  177. package/dist/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +4 -0
  178. package/dist/modules/stats/view/components/AthletesStatistics/StatisticTable.js +12 -0
  179. package/dist/modules/stats/view/components/AthletesStatistics/index.d.ts +2 -0
  180. package/dist/modules/stats/view/components/AthletesStatistics/index.js +2 -0
  181. package/dist/modules/stats/view/index.d.ts +2 -0
  182. package/dist/modules/stats/view/index.js +2 -0
  183. package/dist/modules/stats/view-model/StatsViewModel.d.ts +31 -0
  184. package/dist/modules/stats/view-model/StatsViewModel.js +90 -0
  185. package/dist/services/BetsService.js +102 -0
  186. package/dist/services/NetworkManager/NetworkManager.js +410 -0
  187. package/dist/services/NetworkManager/errors.js +45 -0
  188. package/dist/services/StatsService.d.ts +36 -0
  189. package/dist/services/StatsService.js +68 -0
  190. package/dist/services/ThemeManager/constants.js +47 -0
  191. package/dist/test-polyfills.d.ts +1 -0
  192. package/dist/test-polyfills.js +15 -0
  193. package/dist/types/OverlayTypes.js +4 -0
  194. package/dist/view-models/MaestroEventViewModel.d.ts +9 -0
  195. package/dist/view-models/MaestroEventViewModel.js +168 -0
  196. package/dist/view-models/OverlayViewModel.js +222 -0
  197. package/dist/view-models/PanelManagerViewModel.js +80 -0
  198. package/dist/view-models/ViewModel.js +32 -0
  199. package/dist/view-models/index.js +59 -0
  200. package/package.json +1 -1
@@ -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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bY055eQqg7sM0fIL/ANf1/X6euaD8Iruby5/EF4trEQGaxsystyf9iW5Ia3hPXPki54OA6nkOwrnsWj+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==';
@@ -16,16 +16,16 @@ export declare const KEY_PLAYS_LOAD_FAILURE_STATUS: {
16
16
  readonly recentFailure: "recentFailure";
17
17
  readonly nonRecentFailure: "nonRecentFailure";
18
18
  };
19
- type KeyPlayLoadFailureStatus = (typeof KEY_PLAYS_LOAD_FAILURE_STATUS)[keyof typeof KEY_PLAYS_LOAD_FAILURE_STATUS];
19
+ type KeyPlayLoadFailureStatus = typeof KEY_PLAYS_LOAD_FAILURE_STATUS[keyof typeof KEY_PLAYS_LOAD_FAILURE_STATUS];
20
20
  export declare const KEY_PLAYS_ERROR_STATE: {
21
21
  readonly unsupportedEvent: "unsupportedEvent";
22
22
  readonly unpopulatedEvent: "unpopulatedEvent";
23
23
  readonly tabLoadFailure: "tabLoadFailure";
24
24
  };
25
- type KeyPlaysErrorState = (typeof KEY_PLAYS_ERROR_STATE)[keyof typeof KEY_PLAYS_ERROR_STATE];
25
+ type KeyPlaysErrorState = typeof KEY_PLAYS_ERROR_STATE[keyof typeof KEY_PLAYS_ERROR_STATE];
26
26
  export declare const KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE: {
27
27
  readonly keyPlay: "keyPlay";
28
28
  readonly sectionHeader: "sectionHeader";
29
29
  };
30
- type KeyPlaysPanelScrollViewItemType = (typeof KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE)[keyof typeof KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE];
31
- export { type KeyPlaysPanelScrollViewItemType, type KeyPlayLoadFailureStatus, type KeyPlaysErrorState, };
30
+ type KeyPlaysPanelScrollViewItemType = typeof KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE[keyof typeof KEY_PLAYS_PANEL_SCROLL_VIEW_ITEM_TYPE];
31
+ export { KeyPlaysPanelScrollViewItemType, KeyPlayLoadFailureStatus, KeyPlaysErrorState, };
@@ -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
+ };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export default class ScoreCard extends React.Component {
3
+ render() {
4
+ const { awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
5
+ return (React.createElement("div", { className: "score" },
6
+ React.createElement("div", { className: "score-team T05_ALT" },
7
+ React.createElement("span", null, homeTeamName),
8
+ React.createElement("span", { className: "T30 score-value" }, homeTeamScore)),
9
+ React.createElement("div", { className: "score-team T05_ALT" },
10
+ React.createElement("span", { className: "T30 score-value" }, awayTeamScore),
11
+ React.createElement("span", null, awayTeamName))));
12
+ }
13
+ }
@@ -7,14 +7,12 @@ type KeyPlayCardViewProps = IKeyPlay & {
7
7
  isPlaying: boolean;
8
8
  playbackProgress: number | null;
9
9
  isScoring: boolean;
10
- setRef: (ref: HTMLDivElement | null) => void;
11
10
  };
12
11
  type KeyPlaysCardViewState = {
13
12
  failedClip: KeyPlayLoadFailureStatus | null;
14
13
  };
15
14
  export declare class KeyPlayCardView extends React.Component<KeyPlayCardViewProps & WithFocusableProps, KeyPlaysCardViewState> {
16
15
  private failedClipListener;
17
- private ref;
18
16
  private vm;
19
17
  state: {
20
18
  failedClip: null;
@@ -26,14 +24,12 @@ export declare class KeyPlayCardView extends React.Component<KeyPlayCardViewProp
26
24
  render(): React.JSX.Element;
27
25
  }
28
26
  export default class KeyPlayCard extends React.Component<Omit<KeyPlayCardViewProps, 'setRef'> & WithFocusableProps> {
29
- private ref;
30
27
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
31
28
  static contextTypes: {
32
29
  refsMap: React.Requireable<any>;
33
30
  setRef: React.Requireable<any>;
34
31
  scrollToFocusedElement: React.Requireable<any>;
35
32
  };
36
- setRef: (ref: HTMLDivElement | null) => void;
37
33
  handleLeftPressed: (d: Direction) => void;
38
34
  onBecameFocused: (layout: Layout) => void;
39
35
  render(): React.JSX.Element;
@@ -0,0 +1,120 @@
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, "state", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true,
30
+ value: {
31
+ failedClip: null,
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" }));
42
+ }
43
+ if (teamImageUrl) {
44
+ return (React.createElement(Image, { src: teamImageUrl, crossOrigin: "anonymous", alt: "Key Play Team Image", className: "cardImage" }));
45
+ }
46
+ if (thumbnailImageUrl) {
47
+ return (React.createElement(Image, { src: thumbnailImageUrl, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage" }));
48
+ }
49
+ return (React.createElement(Image, { src: BASE_64_KEY_PLAY_THUMBNAIL_FALLBACK, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage" }));
50
+ }
51
+ });
52
+ this.vm = SDK.getMaestroEventViewModel().keyPlaysViewModel;
53
+ }
54
+ componentDidMount() {
55
+ this.failedClipListener = this.vm.failedClips.subscribe((failedClips) => {
56
+ this.setState({ failedClip: failedClips[this.props.clipID] });
57
+ });
58
+ }
59
+ componentWillUnmount() {
60
+ if (this.failedClipListener) {
61
+ this.failedClipListener();
62
+ }
63
+ }
64
+ render() {
65
+ const { clipID, description, isPlaying, playbackProgress, isScoring, focused, awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
66
+ const { failedClip } = this.state;
67
+ return (React.createElement("div", { className: "key-play-card focus-ring", id: clipID, "data-focused": focused },
68
+ React.createElement("div", { className: "key-play-card-content" },
69
+ this.renderImage(),
70
+ React.createElement("div", { className: "text-content T05_ALT" },
71
+ React.createElement("div", { className: "multi-line" }, description))),
72
+ isPlaying && playbackProgress !== null && (React.createElement("progress", { value: playbackProgress, max: "1" })),
73
+ isScoring && (React.createElement(ScoreCard, { awayTeamScore: awayTeamScore, homeTeamScore: homeTeamScore, homeTeamName: homeTeamName, awayTeamName: awayTeamName })),
74
+ failedClip === 'recentFailure' && (React.createElement("div", { className: "error-state" },
75
+ React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 }),
76
+ React.createElement("span", { className: "T05_ALT" }, "Could not play this clip. "))),
77
+ failedClip === 'nonRecentFailure' && (React.createElement("div", { className: "non-recent-error-state" },
78
+ React.createElement(Icon, { iconName: "warning", width: 21.6, height: 18.7 })))));
79
+ }
80
+ }
81
+ const FocusableKeyPlayCard = withFocusable()(KeyPlayCardView);
82
+ export default class KeyPlayCard extends React.Component {
83
+ constructor() {
84
+ super(...arguments);
85
+ Object.defineProperty(this, "context", {
86
+ enumerable: true,
87
+ configurable: true,
88
+ writable: true,
89
+ value: DEFAULT_SCROLLABLE_CONTAINER_CONTEXT
90
+ });
91
+ Object.defineProperty(this, "handleLeftPressed", {
92
+ enumerable: true,
93
+ configurable: true,
94
+ writable: true,
95
+ value: (d) => {
96
+ if (d === 'left') {
97
+ SDK.getMaestroEventViewModel().deliverFocus();
98
+ }
99
+ }
100
+ });
101
+ Object.defineProperty(this, "onBecameFocused", {
102
+ enumerable: true,
103
+ configurable: true,
104
+ writable: true,
105
+ value: (layout) => {
106
+ this.context.scrollToFocusedElement(layout);
107
+ }
108
+ });
109
+ }
110
+ render() {
111
+ return (React.createElement(FocusableItem, null,
112
+ React.createElement(FocusableKeyPlayCard, { ...this.props, onArrowPress: this.handleLeftPressed, onBecameFocused: this.onBecameFocused })));
113
+ }
114
+ }
115
+ Object.defineProperty(KeyPlayCard, "contextTypes", {
116
+ enumerable: true,
117
+ configurable: true,
118
+ writable: true,
119
+ value: SCROLLABLE_CONTEXT_TYPE
120
+ });
@@ -0,0 +1,58 @@
1
+ import ActionButton from '@/components/molecules/ActionButton';
2
+ import './KeyPlayErrorStateView.styles.css';
3
+ import React from 'react';
4
+ import { withFocusable, } from '@/external/spatial-navigation';
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" }, "Greatness takes time."),
10
+ React.createElement("p", { className: "T20" }, "Key plays are still in the making! Come back soon to check 'em out.")),
11
+ React.createElement("div", { className: "unpopulatedEvent-examples" }, Array.from({ length: 4 }).map((_, i) => (React.createElement("div", { key: i, className: "example" }))))));
12
+ }
13
+ }
14
+ class UnsupportedEvent extends React.Component {
15
+ render() {
16
+ return (React.createElement("div", { className: "sdk--key-play-error-state-unsupportedEvent" },
17
+ React.createElement("h3", { className: "T70" }, "No Key Plays Available"),
18
+ React.createElement("svg", { viewBox: "0 0 520 359", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
19
+ React.createElement("g", { opacity: "0.16" },
20
+ React.createElement("path", { d: "M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z", fill: "#6D6D6D" }),
21
+ React.createElement("rect", { x: "94.6687", y: "219.427", width: "51.6662", height: "25.259", fill: "#777777" }),
22
+ React.createElement("rect", { x: "145.187", y: "39.1694", width: "20.6665", height: "149.258", fill: "#666666" }),
23
+ React.createElement("path", { d: "M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z", fill: "#666666" }),
24
+ React.createElement("path", { d: "M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z", fill: "#6D6D6D" }),
25
+ React.createElement("rect", { width: "51.6662", height: "25.259", transform: "matrix(-1 0 0 1 427.055 219.427)", fill: "#777777" }),
26
+ React.createElement("rect", { width: "20.6665", height: "149.258", transform: "matrix(-1 0 0 1 376.537 39.1694)", fill: "#666666" }),
27
+ React.createElement("path", { d: "M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z", fill: "#666666" }),
28
+ React.createElement("path", { d: "M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z", fill: "#B1B1B1" }),
29
+ React.createElement("rect", { x: "23.4844", y: "141.354", width: "473.033", height: "19.5183", fill: "#777777" }),
30
+ React.createElement("rect", { x: "72.8545", y: "51.7993", width: "374.293", height: "45.9255", fill: "#CDCDCD" })))));
31
+ }
32
+ }
33
+ class SimpleTabLoadFailure extends React.Component {
34
+ render() {
35
+ const { focused } = this.props;
36
+ return (React.createElement("div", { "data-focused": focused, className: "sdk--key-play-error-state-tabLoadFailure focus-ring" },
37
+ React.createElement("h3", { className: "T70" }, "Let's try that again..."),
38
+ React.createElement("p", { className: "T20" }, "We're having trouble loading this."),
39
+ React.createElement(ActionButton, { "data-focused": focused, onEnterPress: this.props.onEnterPress }, "Refresh")));
40
+ }
41
+ }
42
+ const TabLoadFailure = withFocusable()(SimpleTabLoadFailure);
43
+ class KeyPlayErrorStateView extends React.Component {
44
+ render() {
45
+ const { errorState, onRetry } = this.props;
46
+ if (errorState === 'unsupportedEvent') {
47
+ return React.createElement(UnsupportedEvent, null);
48
+ }
49
+ if (errorState === 'unpopulatedEvent') {
50
+ return React.createElement(UnpopulatedEvent, null);
51
+ }
52
+ if (errorState === 'tabLoadFailure') {
53
+ return React.createElement(TabLoadFailure, { onEnterPress: onRetry });
54
+ }
55
+ return null;
56
+ }
57
+ }
58
+ export default KeyPlayErrorStateView;