be-components 1.4.8 → 1.5.0

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 (199) hide show
  1. package/lib/commonjs/Competition/api/index.js +15 -0
  2. package/lib/commonjs/Competition/api/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
  4. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/SeasonCard.js +61 -0
  6. package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -0
  7. package/lib/commonjs/Competition/index.js +23 -3
  8. package/lib/commonjs/Competition/index.js.map +1 -1
  9. package/lib/commonjs/CompetitionManager/api/index.js +3 -5
  10. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  11. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +1 -61
  12. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  13. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  14. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  15. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +4 -0
  16. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  17. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  18. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  19. package/lib/commonjs/CompetitionSeason/api/index.js +134 -0
  20. package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -0
  21. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +127 -0
  22. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  23. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +253 -0
  24. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  25. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +126 -0
  26. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  27. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +324 -0
  28. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  29. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +175 -0
  30. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  31. package/lib/commonjs/CompetitionSeason/index.js +278 -0
  32. package/lib/commonjs/CompetitionSeason/index.js.map +1 -0
  33. package/lib/commonjs/CompetitionSeasonManager/api/index.js +182 -0
  34. package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -0
  35. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  36. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  37. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +153 -0
  38. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  39. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +388 -0
  40. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  41. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +108 -0
  42. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  43. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +242 -0
  44. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  45. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +352 -0
  46. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  47. package/lib/commonjs/CompetitionSeasonManager/index.js +190 -0
  48. package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -0
  49. package/lib/commonjs/Components/Switch.js +3 -0
  50. package/lib/commonjs/Components/Switch.js.map +1 -1
  51. package/lib/commonjs/Engage/index.js +28 -1
  52. package/lib/commonjs/Engage/index.js.map +1 -1
  53. package/lib/commonjs/index.js +14 -0
  54. package/lib/commonjs/index.js.map +1 -1
  55. package/lib/module/Competition/api/index.js +15 -0
  56. package/lib/module/Competition/api/index.js.map +1 -1
  57. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  58. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  59. package/lib/module/Competition/components/SeasonCard.js +54 -0
  60. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  61. package/lib/module/Competition/index.js +23 -3
  62. package/lib/module/Competition/index.js.map +1 -1
  63. package/lib/module/CompetitionManager/api/index.js +3 -5
  64. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  65. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  66. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  67. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  68. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  69. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  70. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  71. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  72. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  73. package/lib/module/CompetitionSeason/api/index.js +128 -0
  74. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  75. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  76. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  77. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  78. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  79. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  80. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  81. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  82. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  83. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  84. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  85. package/lib/module/CompetitionSeason/index.js +269 -0
  86. package/lib/module/CompetitionSeason/index.js.map +1 -0
  87. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  88. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  89. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  90. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  91. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  92. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  93. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  94. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  95. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  96. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  97. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  98. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  100. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  101. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  102. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  103. package/lib/module/Components/Switch.js +3 -0
  104. package/lib/module/Components/Switch.js.map +1 -1
  105. package/lib/module/Engage/index.js +28 -1
  106. package/lib/module/Engage/index.js.map +1 -1
  107. package/lib/module/index.js +3 -1
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  110. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  111. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  112. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  113. package/lib/typescript/src/Competition/index.d.ts +3 -2
  114. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  115. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  116. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  117. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  118. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  119. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  120. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  121. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  122. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  123. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  124. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  125. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  126. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  127. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  128. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  129. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  130. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  131. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  133. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  135. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  137. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  139. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  141. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  143. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  150. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  151. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  152. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  153. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  154. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  155. package/lib/typescript/src/index.d.ts +3 -1
  156. package/lib/typescript/src/index.d.ts.map +1 -1
  157. package/package.json +1 -1
  158. package/src/Competition/api/index.ts +15 -0
  159. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  160. package/src/Competition/components/SeasonCard.tsx +46 -0
  161. package/src/Competition/index.tsx +45 -27
  162. package/src/CompetitionManager/api/index.ts +2 -5
  163. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  164. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  165. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  166. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  167. package/src/CompetitionSeason/api/index.ts +111 -0
  168. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  169. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  170. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  171. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  172. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  173. package/src/CompetitionSeason/index.tsx +244 -0
  174. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  175. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  176. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  177. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  178. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  179. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  180. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  181. package/src/CompetitionSeasonManager/index.tsx +151 -0
  182. package/src/Components/Switch.tsx +8 -3
  183. package/src/Engage/index.tsx +20 -0
  184. package/src/index.tsx +4 -1
  185. package/src/types.d.ts +48 -5
  186. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  187. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  188. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  189. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  190. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  191. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  192. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  193. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  194. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  195. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  196. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  197. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  198. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  199. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -0,0 +1,315 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { FlatList, Image, ScrollView, TouchableOpacity, View, ActivityIndicator } from "react-native";
3
+ import { Button, Icons, Text } from "../../Components";
4
+ import Colors from "../../constants/colors";
5
+ import { view_styles } from "../../constants/styles";
6
+ import { SeasonApi, SeasonHelpers } from "../api";
7
+ const SeasonLeaderboard = ({
8
+ competition_season,
9
+ authenticated_player,
10
+ authenticated_season_player,
11
+ authenticated_season_result,
12
+ competition_type,
13
+ width,
14
+ height,
15
+ view_mode,
16
+ onSeeFull,
17
+ onClose,
18
+ onLeaderSelect
19
+ }) => {
20
+ const [expanded, setExpanded] = useState(false);
21
+ const [data, setData] = useState({
22
+ loading: false,
23
+ competition_season_results: [],
24
+ competition_season_players: [],
25
+ players: [],
26
+ offset: 0
27
+ });
28
+ const {
29
+ loading,
30
+ competition_season_results,
31
+ competition_season_players,
32
+ players,
33
+ offset
34
+ } = data;
35
+ let results = [...competition_season_results];
36
+ if (view_mode == 'short') {
37
+ results = results.filter((r, i) => r ? i < 3 : i < 3);
38
+ }
39
+ const cl = competition_season?.market_type == 'FOR_MONEY' ? '$' : 'E';
40
+ useEffect(() => {
41
+ if (!competition_season) {
42
+ return;
43
+ }
44
+ getLeaderboardFromServer(competition_season.competition_season_id, 0);
45
+ }, [competition_season]);
46
+ const getLeaderboardFromServer = async (season_id, offset) => {
47
+ setData({
48
+ ...data,
49
+ loading: true
50
+ });
51
+ const result_response = await SeasonApi.getSeasonPlayersBySeasonId(season_id, offset);
52
+ let player_ids = result_response.competition_season_players.map(cr => cr.player_id);
53
+ let players = [];
54
+ if (player_ids.length > 0) {
55
+ players = await SeasonApi.getPlayersByPlayerIds(player_ids);
56
+ }
57
+ setData({
58
+ ...data,
59
+ players,
60
+ competition_season_players: result_response.competition_season_players,
61
+ competition_season_results: result_response.competition_season_results,
62
+ offset
63
+ });
64
+ };
65
+ const renderResults = data => {
66
+ let player = players.find(p => p.player_id == data.item.player_id);
67
+ let record = competition_season_players.find(r => r.player_id == data.item.player_id);
68
+ if (!player || !record) {
69
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
70
+ }
71
+ const is_pacer = competition_season.pacer_id == data.item.player_id ? true : false;
72
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
73
+ onPress: () => onLeaderSelect(player),
74
+ style: {
75
+ flexDirection: 'row',
76
+ margin: 5,
77
+ alignItems: 'center',
78
+ borderRadius: 22,
79
+ backgroundColor: is_pacer ? Colors.highlights.highlight400Faded : Colors.shades.white,
80
+ padding: 8,
81
+ paddingLeft: 15,
82
+ paddingRight: 15
83
+ }
84
+ }, is_pacer ? /*#__PURE__*/React.createElement(View, {
85
+ nativeID: "pacer",
86
+ style: {}
87
+ }, /*#__PURE__*/React.createElement(Icons.PacerCarIcon, {
88
+ size: 28
89
+ })) : /*#__PURE__*/React.createElement(View, {
90
+ nativeID: "place",
91
+ style: {
92
+ padding: 5
93
+ }
94
+ }, /*#__PURE__*/React.createElement(Text, {
95
+ size: 12,
96
+ color: Colors.brand.midnight,
97
+ weight: "bold"
98
+ }, SeasonHelpers.formatPlace(data.item.place))), /*#__PURE__*/React.createElement(View, {
99
+ nativeID: "image",
100
+ style: {
101
+ paddingLeft: 10,
102
+ paddingRight: 10
103
+ }
104
+ }, /*#__PURE__*/React.createElement(Image, {
105
+ source: {
106
+ uri: player.profile_pic
107
+ },
108
+ style: {
109
+ height: 30,
110
+ width: 30,
111
+ borderRadius: 100
112
+ },
113
+ resizeMode: "cover"
114
+ })), /*#__PURE__*/React.createElement(View, {
115
+ nativeID: "details",
116
+ style: {
117
+ flex: 1
118
+ }
119
+ }, /*#__PURE__*/React.createElement(Text, {
120
+ size: 12,
121
+ color: Colors.brand.midnight,
122
+ weight: "semibold"
123
+ }, player.username), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(Text, {
124
+ style: {
125
+ marginTop: 3
126
+ },
127
+ size: 12,
128
+ color: Colors.brand.midnight,
129
+ weight: "regular"
130
+ }, record.earnings.toFixed(2), " Earned") : /*#__PURE__*/React.createElement(Text, {
131
+ style: {
132
+ marginTop: 3
133
+ },
134
+ size: 12,
135
+ color: Colors.brand.midnight,
136
+ weight: "regular"
137
+ }, record.wins, " - ", record.losses, " - ", record.draws)), /*#__PURE__*/React.createElement(View, {
138
+ nativeID: "winnings"
139
+ }, /*#__PURE__*/React.createElement(Text, {
140
+ size: 12,
141
+ color: Colors.brand.slate,
142
+ weight: "regular"
143
+ }, cl, data.item.winnings.toFixed(2))));
144
+ };
145
+ return /*#__PURE__*/React.createElement(View, {
146
+ style: {
147
+ ...view_styles.section,
148
+ margin: view_mode == 'full' ? 0 : 10,
149
+ minWidth: 350,
150
+ height: view_mode == 'full' ? height : undefined,
151
+ width: view_mode == 'full' ? width : undefined
152
+ }
153
+ }, view_mode == 'short' ? /*#__PURE__*/React.createElement(TouchableOpacity, {
154
+ style: view_styles.section_header,
155
+ onPress: () => setExpanded(!expanded)
156
+ }, /*#__PURE__*/React.createElement(Icons.PodiumIcon, {
157
+ size: 18,
158
+ color: Colors.brand.midnight
159
+ }), /*#__PURE__*/React.createElement(View, {
160
+ style: {
161
+ flex: 1,
162
+ marginLeft: 10
163
+ }
164
+ }, /*#__PURE__*/React.createElement(Text, {
165
+ theme: "header"
166
+ }, "Season Leaderboard"), /*#__PURE__*/React.createElement(Text, {
167
+ style: {
168
+ marginTop: 4
169
+ },
170
+ theme: "body_2"
171
+ }, "Leaderboard showing current standings of this season.")), /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
172
+ direction: expanded ? 'up' : 'down',
173
+ color: Colors.brand.midnight,
174
+ size: 8
175
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), expanded || view_mode == 'full' ? /*#__PURE__*/React.createElement(View, {
176
+ style: {
177
+ ...view_styles.section_body
178
+ }
179
+ }, authenticated_player && authenticated_season_player && authenticated_season_result ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
180
+ style: {
181
+ backgroundColor: Colors.brand.midnight,
182
+ padding: 10,
183
+ marginBottom: 10,
184
+ borderTopRightRadius: 8,
185
+ borderTopLeftRadius: 8
186
+ }
187
+ }, /*#__PURE__*/React.createElement(Text, {
188
+ size: 14,
189
+ color: Colors.shades.white,
190
+ weight: "regular"
191
+ }, "MY RESULTS"), /*#__PURE__*/React.createElement(TouchableOpacity, {
192
+ style: {
193
+ flexDirection: 'row',
194
+ marginTop: 10,
195
+ marginBottom: 10,
196
+ alignItems: 'center',
197
+ borderRadius: 22,
198
+ backgroundColor: Colors.shades.white,
199
+ padding: 8,
200
+ paddingLeft: 15,
201
+ paddingRight: 15
202
+ }
203
+ }, /*#__PURE__*/React.createElement(View, {
204
+ nativeID: "place",
205
+ style: {
206
+ padding: 5
207
+ }
208
+ }, /*#__PURE__*/React.createElement(Text, {
209
+ size: 12,
210
+ color: Colors.brand.midnight,
211
+ weight: "bold"
212
+ }, SeasonHelpers.formatPlace(authenticated_season_result.place))), /*#__PURE__*/React.createElement(View, {
213
+ nativeID: "image",
214
+ style: {
215
+ paddingLeft: 10,
216
+ paddingRight: 10
217
+ }
218
+ }, /*#__PURE__*/React.createElement(Image, {
219
+ source: {
220
+ uri: authenticated_player.profile_pic
221
+ },
222
+ style: {
223
+ height: 30,
224
+ width: 30,
225
+ borderRadius: 100
226
+ },
227
+ resizeMode: "cover"
228
+ })), /*#__PURE__*/React.createElement(View, {
229
+ nativeID: "details",
230
+ style: {
231
+ flex: 1
232
+ }
233
+ }, /*#__PURE__*/React.createElement(Text, {
234
+ size: 12,
235
+ color: Colors.brand.midnight,
236
+ weight: "semibold"
237
+ }, authenticated_player.username), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(Text, {
238
+ style: {
239
+ marginTop: 3
240
+ },
241
+ size: 12,
242
+ color: Colors.brand.midnight,
243
+ weight: "regular"
244
+ }, authenticated_season_player.earnings.toFixed(2)) : /*#__PURE__*/React.createElement(Text, {
245
+ style: {
246
+ marginTop: 3
247
+ },
248
+ size: 12,
249
+ color: Colors.brand.midnight,
250
+ weight: "regular"
251
+ }, authenticated_season_player.wins, " - ", authenticated_season_player.losses, " - ", authenticated_season_player.draws)), /*#__PURE__*/React.createElement(View, {
252
+ nativeID: "winnings"
253
+ }, /*#__PURE__*/React.createElement(Text, {
254
+ size: 12,
255
+ color: Colors.brand.slate,
256
+ weight: "regular"
257
+ }, cl, authenticated_season_result.winnings.toFixed(2)))))) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(ScrollView, {
258
+ style: {
259
+ backgroundColor: Colors.shades.shade100,
260
+ borderBottomRightRadius: 8,
261
+ borderBottomLeftRadius: 8
262
+ }
263
+ }, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
264
+ style: {
265
+ alignSelf: 'center',
266
+ padding: 10
267
+ },
268
+ size: "large",
269
+ color: Colors.brand.midnight
270
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(FlatList, {
271
+ data: results,
272
+ renderItem: renderResults,
273
+ keyExtractor: item => item.competition_season_result_id.toString()
274
+ })), view_mode == 'short' ? /*#__PURE__*/React.createElement(Button, {
275
+ style: {
276
+ backgroundColor: undefined
277
+ },
278
+ title: "View Full Leaderboard",
279
+ title_color: Colors.brand.electric,
280
+ title_size: 14,
281
+ onPress: () => onSeeFull()
282
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null), onClose ? /*#__PURE__*/React.createElement(View, {
283
+ style: {
284
+ padding: 10,
285
+ ...view_styles.float
286
+ }
287
+ }, /*#__PURE__*/React.createElement(View, {
288
+ style: {
289
+ padding: 10,
290
+ flexDirection: 'row',
291
+ alignItems: 'center',
292
+ justifyContent: 'space-between'
293
+ }
294
+ }, offset > 0 ? /*#__PURE__*/React.createElement(Button, {
295
+ title: "PREV",
296
+ title_color: Colors.brand.electric,
297
+ backgroundColor: "transparent",
298
+ onPress: () => getLeaderboardFromServer(competition_season.competition_season_id, offset - 1)
299
+ }) : /*#__PURE__*/React.createElement(View, null), /*#__PURE__*/React.createElement(Button, {
300
+ title: "NEXT",
301
+ title_color: Colors.brand.electric,
302
+ backgroundColor: "transparent",
303
+ onPress: () => getLeaderboardFromServer(competition_season.competition_season_id, offset + 1)
304
+ })), /*#__PURE__*/React.createElement(Button, {
305
+ title: "Close",
306
+ style: {
307
+ padding: 15
308
+ },
309
+ title_color: Colors.shades.white,
310
+ backgroundColor: Colors.utility.error,
311
+ onPress: () => onClose()
312
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null)) : /*#__PURE__*/React.createElement(React.Fragment, null));
313
+ };
314
+ export default SeasonLeaderboard;
315
+ //# sourceMappingURL=SeasonLeaderboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","FlatList","Image","ScrollView","TouchableOpacity","View","ActivityIndicator","Button","Icons","Text","Colors","view_styles","SeasonApi","SeasonHelpers","SeasonLeaderboard","competition_season","authenticated_player","authenticated_season_player","authenticated_season_result","competition_type","width","height","view_mode","onSeeFull","onClose","onLeaderSelect","expanded","setExpanded","data","setData","loading","competition_season_results","competition_season_players","players","offset","results","filter","r","i","cl","market_type","getLeaderboardFromServer","competition_season_id","season_id","result_response","getSeasonPlayersBySeasonId","player_ids","map","cr","player_id","length","getPlayersByPlayerIds","renderResults","player","find","p","item","record","createElement","Fragment","is_pacer","pacer_id","onPress","style","flexDirection","margin","alignItems","borderRadius","backgroundColor","highlights","highlight400Faded","shades","white","padding","paddingLeft","paddingRight","nativeID","PacerCarIcon","size","color","brand","midnight","weight","formatPlace","place","source","uri","profile_pic","resizeMode","flex","username","type","marginTop","earnings","toFixed","wins","losses","draws","slate","winnings","section","minWidth","undefined","section_header","PodiumIcon","marginLeft","theme","ChevronIcon","direction","section_body","marginBottom","borderTopRightRadius","borderTopLeftRadius","shade100","borderBottomRightRadius","borderBottomLeftRadius","alignSelf","renderItem","keyExtractor","competition_season_result_id","toString","title","title_color","electric","title_size","float","justifyContent","utility","error"],"sourceRoot":"../../../../src","sources":["CompetitionSeason/components/SeasonLeaderboard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,QAAQ,EAAEC,KAAK,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,iBAAiB,QAAQ,cAAc;AAErG,SAASC,MAAM,EAAEC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AACtD,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,SAAS,EAAEC,aAAa,QAAQ,QAAQ;AAgBjD,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,kBAAkB;EAAEC,oBAAoB;EAAEC,2BAA2B;EAAEC,2BAA2B;EAAEC,gBAAgB;EAAEC,KAAK;EAAEC,MAAM;EAAEC,SAAS;EAAEC,SAAS;EAAEC,OAAO;EAAEC;AAAsC,CAAC,KAAK;EACzO,MAAM,CAAEC,QAAQ,EAAEC,WAAW,CAAE,GAAG3B,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAM,CAAE4B,IAAI,EAAEC,OAAO,CAAE,GAAG7B,QAAQ,CAM/B;IACC8B,OAAO,EAAC,KAAK;IACbC,0BAA0B,EAAC,EAAE;IAC7BC,0BAA0B,EAAC,EAAE;IAC7BC,OAAO,EAAC,EAAE;IACVC,MAAM,EAAC;EACX,CAAC,C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,KAAA,CAAA4D,aAAA,CAAA5D,KAAA,CAAA6D,QAAA,MAAI,CACC,CAAC,gBACN7D,KAAA,CAAA4D,aAAA,CAAA5D,KAAA,CAAA6D,QAAA,MAAI,CAEH,CAAC;AAEf,CAAC;AAED,eAAe7C,iBAAiB","ignoreList":[]}
@@ -0,0 +1,166 @@
1
+ import React, { useState } from 'react';
2
+ import { View, TouchableOpacity, FlatList } from 'react-native';
3
+ import { view_styles } from '../../constants/styles';
4
+ import { Icons, Text } from '../../Components';
5
+ import { SeasonHelpers } from '../api';
6
+ import Colors from '../../constants/colors';
7
+ const SeasonSettingsSection = ({
8
+ width,
9
+ competition_season,
10
+ competition_type,
11
+ competition_result_type,
12
+ competition_payouts
13
+ }) => {
14
+ const [expanded, setExpanded] = useState(true);
15
+ const {
16
+ season_payout,
17
+ competition_payout
18
+ } = SeasonHelpers.getPayoutAmounts(competition_season);
19
+ const cl = competition_season.market_type == 'FOR_MONEY' ? '$' : 'E';
20
+ const renderPayouts = data => {
21
+ return /*#__PURE__*/React.createElement(View, {
22
+ style: {
23
+ ...view_styles.body_row,
24
+ padding: 8,
25
+ borderBottomWidth: 1,
26
+ borderColor: Colors.shades.shade600
27
+ }
28
+ }, /*#__PURE__*/React.createElement(Text, {
29
+ style: {
30
+ flex: 1
31
+ },
32
+ theme: "header_2"
33
+ }, SeasonHelpers.formatPlace(data.item.tier), data.item.tier != 1 ? ' Or Better' : ''), /*#__PURE__*/React.createElement(Text, {
34
+ theme: "header_2"
35
+ }, "Split ", data.item.payout, "%"));
36
+ };
37
+ return /*#__PURE__*/React.createElement(View, {
38
+ style: {
39
+ ...view_styles.section,
40
+ maxWidth: width
41
+ }
42
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
43
+ style: {
44
+ ...view_styles.section_header
45
+ },
46
+ onPress: () => setExpanded(!expanded)
47
+ }, /*#__PURE__*/React.createElement(Icons.SettingsIcon, {
48
+ size: 18,
49
+ color: Colors.brand.midnight
50
+ }), /*#__PURE__*/React.createElement(View, {
51
+ style: {
52
+ flex: 1,
53
+ marginLeft: 10
54
+ }
55
+ }, /*#__PURE__*/React.createElement(Text, {
56
+ theme: "header"
57
+ }, "Season Details"), /*#__PURE__*/React.createElement(Text, {
58
+ style: {
59
+ marginTop: 3
60
+ },
61
+ theme: "body"
62
+ }, "View important details about this season.")), /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
63
+ direction: expanded ? 'up' : 'down',
64
+ size: 8,
65
+ color: Colors.brand.midnight
66
+ })), expanded ? /*#__PURE__*/React.createElement(View, {
67
+ style: {
68
+ ...view_styles.section_body
69
+ }
70
+ }, /*#__PURE__*/React.createElement(View, {
71
+ style: view_styles.body_row
72
+ }, /*#__PURE__*/React.createElement(View, {
73
+ style: {
74
+ flex: 1
75
+ }
76
+ }, /*#__PURE__*/React.createElement(Text, {
77
+ theme: "header_2"
78
+ }, "Competition Type"), /*#__PURE__*/React.createElement(Text, {
79
+ style: {
80
+ marginTop: 3
81
+ },
82
+ theme: "body_2"
83
+ }, "Each competition within this season will use this type")), /*#__PURE__*/React.createElement(Text, {
84
+ theme: "header"
85
+ }, competition_type.type_label.toUpperCase())), /*#__PURE__*/React.createElement(View, {
86
+ style: view_styles.body_row
87
+ }, /*#__PURE__*/React.createElement(View, {
88
+ style: {
89
+ flex: 1
90
+ }
91
+ }, /*#__PURE__*/React.createElement(Text, {
92
+ theme: "header_2"
93
+ }, "Season Winner Allocation"), /*#__PURE__*/React.createElement(Text, {
94
+ style: {
95
+ marginTop: 3
96
+ },
97
+ theme: "body_2"
98
+ }, "How much of the total pot is dedicated to the season winner?")), /*#__PURE__*/React.createElement(View, {
99
+ style: {
100
+ justifyContent: 'center',
101
+ alignItems: 'center'
102
+ }
103
+ }, /*#__PURE__*/React.createElement(Text, {
104
+ theme: "header_2"
105
+ }, cl, season_payout.toFixed(2)), /*#__PURE__*/React.createElement(Text, {
106
+ style: {
107
+ marginTop: 3
108
+ },
109
+ theme: "body"
110
+ }, (parseFloat(competition_season.payout_allocation) * 100).toFixed(2), "%"))), /*#__PURE__*/React.createElement(View, {
111
+ style: view_styles.body_row
112
+ }, /*#__PURE__*/React.createElement(View, {
113
+ style: {
114
+ flex: 1
115
+ }
116
+ }, /*#__PURE__*/React.createElement(Text, {
117
+ theme: "header_2"
118
+ }, "Each Competition Allocation"), /*#__PURE__*/React.createElement(Text, {
119
+ style: {
120
+ marginTop: 3
121
+ },
122
+ theme: "body_2"
123
+ }, "How much of the total pot is dedicated to each competition winner?")), /*#__PURE__*/React.createElement(View, {
124
+ style: {
125
+ justifyContent: 'center',
126
+ alignItems: 'center'
127
+ }
128
+ }, /*#__PURE__*/React.createElement(Text, {
129
+ theme: "header_2"
130
+ }, cl, competition_payout.toFixed(2)), /*#__PURE__*/React.createElement(Text, {
131
+ style: {
132
+ marginTop: 3
133
+ },
134
+ theme: "body"
135
+ }, ((1 - parseFloat(competition_season.payout_allocation)) * 100).toFixed(2), "%"))), /*#__PURE__*/React.createElement(View, {
136
+ style: view_styles.body_row
137
+ }, /*#__PURE__*/React.createElement(Text, {
138
+ style: {
139
+ flex: 1
140
+ },
141
+ theme: "header_2"
142
+ }, "Payout Type"), /*#__PURE__*/React.createElement(Text, {
143
+ theme: "header_2"
144
+ }, competition_result_type.label.toUpperCase())), /*#__PURE__*/React.createElement(View, {
145
+ style: {
146
+ padding: 10,
147
+ borderRadius: 8,
148
+ backgroundColor: Colors.shades.shade100
149
+ }
150
+ }, /*#__PURE__*/React.createElement(Text, {
151
+ style: {
152
+ padding: 5
153
+ },
154
+ theme: "header_2"
155
+ }, competition_result_type.description), /*#__PURE__*/React.createElement(View, {
156
+ style: {
157
+ padding: 10
158
+ }
159
+ }, /*#__PURE__*/React.createElement(FlatList, {
160
+ data: competition_payouts.filter(cp => cp.competition_result_type_id == competition_season.competition_result_type_id).sort((a, b) => b.tier - a.tier),
161
+ renderItem: renderPayouts,
162
+ keyExtractor: item => item.competition_payout_type_id.toString()
163
+ })))) : /*#__PURE__*/React.createElement(React.Fragment, null));
164
+ };
165
+ export default SeasonSettingsSection;
166
+ //# sourceMappingURL=SeasonSettingsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useState","View","TouchableOpacity","FlatList","view_styles","Icons","Text","SeasonHelpers","Colors","SeasonSettingsSection","width","competition_season","competition_type","competition_result_type","competition_payouts","expanded","setExpanded","season_payout","competition_payout","getPayoutAmounts","cl","market_type","renderPayouts","data","createElement","style","body_row","padding","borderBottomWidth","borderColor","shades","shade600","flex","theme","formatPlace","item","tier","payout","section","maxWidth","section_header","onPress","SettingsIcon","size","color","brand","midnight","marginLeft","marginTop","ChevronIcon","direction","section_body","type_label","toUpperCase","justifyContent","alignItems","toFixed","parseFloat","payout_allocation","label","borderRadius","backgroundColor","shade100","description","filter","cp","competition_result_type_id","sort","a","b","renderItem","keyExtractor","competition_payout_type_id","toString","Fragment"],"sourceRoot":"../../../../src","sources":["CompetitionSeason/components/SeasonSettingsSection.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;AAG/D,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AAC9C,SAASC,aAAa,QAAQ,QAAQ;AACtC,OAAOC,MAAM,MAAM,wBAAwB;AAU3C,MAAMC,qBAAqB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,kBAAkB;EAAEC,gBAAgB;EAAEC,uBAAuB;EAAEC;AAA+C,CAAC,KAAK;EACxJ,MAAM,CAAEC,QAAQ,EAAEC,WAAW,CAAE,GAAGhB,QAAQ,CAAC,IAAI,CAAC;EAEhD,MAAM;IAAEiB,aAAa;IAAEC;EAAmB,CAAC,GAAGX,aAAa,CAACY,gBAAgB,CAACR,kBAAkB,CAAC;EAChG,MAAMS,EAAE,GAAGT,kBAAkB,CAACU,WAAW,IAAI,WAAW,GAAG,GAAG,G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