be-components 1.4.9 → 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 (197) 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.map +1 -1
  52. package/lib/commonjs/index.js +14 -0
  53. package/lib/commonjs/index.js.map +1 -1
  54. package/lib/module/Competition/api/index.js +15 -0
  55. package/lib/module/Competition/api/index.js.map +1 -1
  56. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  57. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  58. package/lib/module/Competition/components/SeasonCard.js +54 -0
  59. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  60. package/lib/module/Competition/index.js +23 -3
  61. package/lib/module/Competition/index.js.map +1 -1
  62. package/lib/module/CompetitionManager/api/index.js +3 -5
  63. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  64. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  65. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  66. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  67. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  68. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  69. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  70. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  71. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  72. package/lib/module/CompetitionSeason/api/index.js +128 -0
  73. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  74. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  75. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  76. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  77. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  78. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  79. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  80. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  81. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  82. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  83. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  84. package/lib/module/CompetitionSeason/index.js +269 -0
  85. package/lib/module/CompetitionSeason/index.js.map +1 -0
  86. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  87. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  88. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  89. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  90. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  91. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  92. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  93. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  94. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  95. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  96. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  97. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  98. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  100. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  101. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  102. package/lib/module/Components/Switch.js +3 -0
  103. package/lib/module/Components/Switch.js.map +1 -1
  104. package/lib/module/Engage/index.js.map +1 -1
  105. package/lib/module/index.js +3 -1
  106. package/lib/module/index.js.map +1 -1
  107. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  108. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  109. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  110. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  111. package/lib/typescript/src/Competition/index.d.ts +3 -2
  112. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  113. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  114. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  115. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  116. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  117. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  118. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  119. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  120. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  121. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  122. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  123. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  124. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  125. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  126. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  127. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  128. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  129. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  130. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  131. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  133. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  135. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  137. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  139. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  141. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  143. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  150. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  151. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  152. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  153. package/lib/typescript/src/index.d.ts +3 -1
  154. package/lib/typescript/src/index.d.ts.map +1 -1
  155. package/package.json +1 -1
  156. package/src/Competition/api/index.ts +15 -0
  157. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  158. package/src/Competition/components/SeasonCard.tsx +46 -0
  159. package/src/Competition/index.tsx +45 -27
  160. package/src/CompetitionManager/api/index.ts +2 -5
  161. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  162. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  163. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  164. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  165. package/src/CompetitionSeason/api/index.ts +111 -0
  166. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  167. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  168. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  169. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  170. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  171. package/src/CompetitionSeason/index.tsx +244 -0
  172. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  173. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  174. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  175. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  176. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  177. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  178. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  179. package/src/CompetitionSeasonManager/index.tsx +151 -0
  180. package/src/Components/Switch.tsx +8 -3
  181. package/src/Engage/index.tsx +1 -0
  182. package/src/index.tsx +4 -1
  183. package/src/types.d.ts +48 -5
  184. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  185. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  186. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  187. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  188. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  189. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  190. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  191. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  192. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  193. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  194. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  195. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  196. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  197. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -1,391 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import { FlatList, Image, ScrollView, TouchableOpacity, View, ActivityIndicator } from "react-native";
3
- import CompetitionCard from "./CompetitionCard";
4
- import { CompetitionApi, CompetitionSeasonApi } from "../api";
5
- import { Button, Text } from "../../Components";
6
- import Colors from "../../constants/colors";
7
- import moment from "moment-mini";
8
- const SeasonInfoModal = ({
9
- competition_season,
10
- competition_types,
11
- competition_result_types,
12
- width,
13
- height,
14
- onClose,
15
- onSelectCompetition
16
- }) => {
17
- const [loading, setLoading] = useState(false);
18
- const [active_view, setActiveView] = useState('info');
19
- const [leaderboard, setLeaderboard] = useState({
20
- players: [],
21
- leaders: []
22
- });
23
- const [competitions, setCompetitions] = useState([]);
24
- const {
25
- leaders,
26
- players
27
- } = leaderboard;
28
- useEffect(() => {
29
- if (!competition_season) {
30
- return;
31
- }
32
- getSeasonCompetitions(competition_season.competition_season_id);
33
- }, [competition_season]);
34
- useEffect(() => {
35
- switch (active_view) {
36
- case 'competitions':
37
- getSeasonCompetitions(competition_season.competition_season_id);
38
- return;
39
- case 'leaderboard':
40
- getSeasonLeaderboard(competition_season.competition_season_id);
41
- return;
42
- default:
43
- return;
44
- }
45
- }, [active_view]);
46
- const getSeasonCompetitions = async competition_season_id => {
47
- setLoading(true);
48
- try {
49
- let season_competitions = await CompetitionApi.getCompetitionsBySeasonId(competition_season_id);
50
- setCompetitions(season_competitions);
51
- } catch (e) {
52
- console.log(e);
53
- }
54
- setLoading(false);
55
- };
56
- const getSeasonLeaderboard = async competition_season_id => {
57
- setLoading(true);
58
- try {
59
- let season_leaderboard = await CompetitionSeasonApi.getLeaderboardBySeasonId(competition_season_id);
60
- const player_ids = season_leaderboard.map(sl => sl.player_id);
61
- const leader_players = await CompetitionApi.getPlayersByPlayerIds(player_ids);
62
- setLeaderboard({
63
- leaders: season_leaderboard,
64
- players: leader_players
65
- });
66
- } catch (e) {
67
- console.log(e);
68
- }
69
- setLoading(false);
70
- };
71
- const renderCompetitions = data => {
72
- const competition_type = competition_types.find(ct => ct.competition_type_id == data.item.competition_type_id);
73
- const competition_result_type = competition_result_types.find(ct => ct.competition_result_type_id == data.item.competition_result_type_id);
74
- if (!competition_type || !competition_result_type) {
75
- return /*#__PURE__*/React.createElement(React.Fragment, null);
76
- }
77
- return /*#__PURE__*/React.createElement(View, {
78
- style: {
79
- margin: 5
80
- }
81
- }, /*#__PURE__*/React.createElement(CompetitionCard, {
82
- competition: data.item,
83
- competition_result_type: competition_result_type,
84
- competition_type: competition_type,
85
- onSelect: () => onSelectCompetition(data.item)
86
- }));
87
- };
88
- const renderLeaders = data => {
89
- const player = players.find(p => p.player_id == data.item.player_id);
90
- if (!player) {
91
- return /*#__PURE__*/React.createElement(React.Fragment, null);
92
- }
93
- return /*#__PURE__*/React.createElement(View, {
94
- style: {
95
- flexDirection: 'row',
96
- margin: 5,
97
- alignItems: 'center',
98
- borderRadius: 22,
99
- backgroundColor: Colors.shades.white,
100
- padding: 8,
101
- paddingLeft: 15,
102
- paddingRight: 15
103
- }
104
- }, /*#__PURE__*/React.createElement(View, {
105
- nativeID: "place",
106
- style: {
107
- padding: 5
108
- }
109
- }, /*#__PURE__*/React.createElement(Text, {
110
- size: 12,
111
- color: Colors.brand.midnight,
112
- weight: "bold"
113
- }, data.item.place)), /*#__PURE__*/React.createElement(View, {
114
- nativeID: "image",
115
- style: {
116
- paddingLeft: 10,
117
- paddingRight: 10
118
- }
119
- }, /*#__PURE__*/React.createElement(Image, {
120
- source: {
121
- uri: player.profile_pic
122
- },
123
- style: {
124
- height: 30,
125
- width: 30,
126
- borderRadius: 100
127
- },
128
- resizeMode: "cover"
129
- })), /*#__PURE__*/React.createElement(View, {
130
- nativeID: "details",
131
- style: {
132
- flex: 1
133
- }
134
- }, /*#__PURE__*/React.createElement(Text, {
135
- size: 12,
136
- color: Colors.brand.midnight,
137
- weight: "semibold"
138
- }, player.username), /*#__PURE__*/React.createElement(Text, {
139
- style: {
140
- marginTop: 3
141
- },
142
- size: 12,
143
- color: Colors.brand.midnight,
144
- weight: "regular"
145
- }, data.item.wins, " - ", data.item.losses, " - ", data.item.draws, " (", data.item.earnings.toFixed(2), " Earnings)")), /*#__PURE__*/React.createElement(View, {
146
- nativeID: "winnings"
147
- }, /*#__PURE__*/React.createElement(Text, {
148
- size: 12,
149
- color: Colors.brand.slate,
150
- weight: "regular"
151
- }, "Hey")));
152
- };
153
- if (!competition_season) {
154
- return;
155
- }
156
- const cl = competition_season.market_type == 'FOR_MONEY' ? '$' : 'E';
157
- return /*#__PURE__*/React.createElement(View, {
158
- style: {
159
- height,
160
- width,
161
- backgroundColor: Colors.shades.white
162
- }
163
- }, /*#__PURE__*/React.createElement(ScrollView, {
164
- style: {
165
- flex: 1
166
- }
167
- }, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
168
- style: {
169
- padding: 20,
170
- alignSelf: 'center'
171
- },
172
- color: Colors.brand.midnight,
173
- size: "large"
174
- }) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
175
- nativeID: "season_header",
176
- style: {
177
- justifyContent: 'center',
178
- alignItems: 'center'
179
- }
180
- }, /*#__PURE__*/React.createElement(Image, {
181
- source: {
182
- uri: competition_season.image?.url
183
- },
184
- style: {
185
- width: width * 0.75,
186
- height: width * 0.75 / 2
187
- },
188
- resizeMode: "cover"
189
- }), /*#__PURE__*/React.createElement(View, {
190
- style: {
191
- margin: 10
192
- }
193
- }, /*#__PURE__*/React.createElement(Text, {
194
- size: 14,
195
- color: Colors.brand.midnight,
196
- weight: "bold",
197
- textAlign: "center"
198
- }, competition_season.season_name), /*#__PURE__*/React.createElement(Text, {
199
- style: {
200
- marginTop: 5
201
- },
202
- size: 14,
203
- color: Colors.brand.midnight,
204
- weight: "regular",
205
- textAlign: "center"
206
- }, competition_season.season_description))), /*#__PURE__*/React.createElement(View, {
207
- style: {
208
- margin: 10,
209
- flexDirection: 'row',
210
- padding: 2,
211
- backgroundColor: Colors.shades.shade100,
212
- borderRadius: 22
213
- }
214
- }, /*#__PURE__*/React.createElement(TouchableOpacity, {
215
- onPress: () => setActiveView('leaderboard'),
216
- style: {
217
- flex: 1,
218
- padding: 10,
219
- borderRadius: 22,
220
- backgroundColor: active_view == 'leaderboard' ? Colors.shades.white : undefined
221
- }
222
- }, /*#__PURE__*/React.createElement(Text, {
223
- size: 14,
224
- color: Colors.brand.midnight,
225
- weight: active_view == 'leaderboard' ? 'bold' : 'regular',
226
- textAlign: "center"
227
- }, "Leaderboard")), /*#__PURE__*/React.createElement(TouchableOpacity, {
228
- onPress: () => setActiveView('info'),
229
- style: {
230
- flex: 1,
231
- padding: 10,
232
- borderRadius: 22,
233
- backgroundColor: active_view == 'info' ? Colors.shades.white : undefined
234
- }
235
- }, /*#__PURE__*/React.createElement(Text, {
236
- size: 14,
237
- color: Colors.brand.midnight,
238
- weight: active_view == 'info' ? 'bold' : 'regular',
239
- textAlign: "center"
240
- }, "Info")), /*#__PURE__*/React.createElement(TouchableOpacity, {
241
- onPress: () => setActiveView('competitions'),
242
- style: {
243
- flex: 1,
244
- padding: 10,
245
- borderRadius: 22,
246
- backgroundColor: active_view == 'competitions' ? Colors.shades.white : undefined
247
- }
248
- }, /*#__PURE__*/React.createElement(Text, {
249
- size: 14,
250
- color: Colors.brand.midnight,
251
- weight: active_view == 'competitions' ? 'bold' : 'regular',
252
- textAlign: "center"
253
- }, "Competitions"))), active_view == 'info' ? /*#__PURE__*/React.createElement(View, {
254
- nativeID: "season_info",
255
- style: {
256
- padding: 20
257
- }
258
- }, /*#__PURE__*/React.createElement(View, {
259
- style: {
260
- flexDirection: 'row'
261
- }
262
- }, /*#__PURE__*/React.createElement(Text, {
263
- style: {
264
- flex: 1
265
- },
266
- size: 12,
267
- color: Colors.brand.midnight,
268
- weight: "regular"
269
- }, "Season Type"), /*#__PURE__*/React.createElement(Text, {
270
- style: {
271
- flex: 1
272
- },
273
- size: 12,
274
- color: Colors.brand.midnight,
275
- weight: "bold",
276
- textAlign: "right"
277
- }, competition_season.single_buy_in ? 'One Time Entry' : 'Each Competition Entry')), /*#__PURE__*/React.createElement(View, {
278
- style: {
279
- flexDirection: 'row',
280
- marginTop: 10
281
- }
282
- }, /*#__PURE__*/React.createElement(Text, {
283
- style: {
284
- flex: 1
285
- },
286
- size: 12,
287
- color: Colors.brand.midnight,
288
- weight: "regular"
289
- }, "Late Entry"), /*#__PURE__*/React.createElement(Text, {
290
- style: {
291
- flex: 1
292
- },
293
- size: 12,
294
- color: Colors.brand.midnight,
295
- weight: "bold",
296
- textAlign: "right"
297
- }, competition_season.allow_late_buy_in ? 'Allowed' : 'Not Allowed')), /*#__PURE__*/React.createElement(View, {
298
- style: {
299
- flexDirection: 'row',
300
- marginTop: 10
301
- }
302
- }, /*#__PURE__*/React.createElement(Text, {
303
- style: {
304
- flex: 1
305
- },
306
- size: 12,
307
- color: Colors.brand.midnight,
308
- weight: "regular"
309
- }, "Season Allocation"), /*#__PURE__*/React.createElement(Text, {
310
- style: {
311
- flex: 1
312
- },
313
- size: 12,
314
- color: Colors.brand.midnight,
315
- weight: "bold",
316
- textAlign: "right"
317
- }, (competition_season.payout_allocation * 100).toFixed(2), "%")), /*#__PURE__*/React.createElement(View, {
318
- style: {
319
- flexDirection: 'row',
320
- marginTop: 10
321
- }
322
- }, /*#__PURE__*/React.createElement(Text, {
323
- style: {
324
- flex: 1
325
- },
326
- size: 12,
327
- color: Colors.brand.midnight,
328
- weight: "regular"
329
- }, "Each Competition Allocation"), /*#__PURE__*/React.createElement(Text, {
330
- style: {
331
- flex: 1
332
- },
333
- size: 12,
334
- color: Colors.brand.midnight,
335
- weight: "bold",
336
- textAlign: "right"
337
- }, ((1 - competition_season.payout_allocation) * 100).toFixed(2), "%")), /*#__PURE__*/React.createElement(View, {
338
- style: {
339
- flexDirection: 'row',
340
- marginTop: 10
341
- }
342
- }, /*#__PURE__*/React.createElement(Text, {
343
- style: {
344
- flex: 1
345
- },
346
- size: 12,
347
- color: Colors.brand.midnight,
348
- weight: "regular"
349
- }, "Current Season Pot"), /*#__PURE__*/React.createElement(Text, {
350
- style: {
351
- flex: 1
352
- },
353
- size: 12,
354
- color: Colors.brand.midnight,
355
- weight: "bold",
356
- textAlign: "right"
357
- }, cl, competition_season.payout_amt.toFixed(2)))) : active_view == 'competitions' ? /*#__PURE__*/React.createElement(View, {
358
- nativeID: "season_competitions",
359
- style: {
360
- padding: 10
361
- }
362
- }, /*#__PURE__*/React.createElement(FlatList, {
363
- data: competitions.sort((a, b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix()),
364
- renderItem: renderCompetitions,
365
- keyExtractor: item => item.competition_id.toString()
366
- })) : active_view == 'leaderboard' ? /*#__PURE__*/React.createElement(View, {
367
- nativeID: "season_leaderboard",
368
- style: {
369
- padding: 10,
370
- backgroundColor: Colors.shades.shade100
371
- }
372
- }, /*#__PURE__*/React.createElement(FlatList, {
373
- data: leaders.sort((a, b) => b.wins - a.wins),
374
- renderItem: renderLeaders,
375
- keyExtractor: item => item.player_id.toString()
376
- })) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
377
- nativeID: "action_row",
378
- style: {
379
- padding: 10
380
- }
381
- }, /*#__PURE__*/React.createElement(Button, {
382
- borderColor: Colors.brand.electric,
383
- title: "Close",
384
- title_color: Colors.brand.electric,
385
- borderWidth: 1,
386
- borderRadius: 22,
387
- onPress: () => onClose()
388
- })));
389
- };
390
- export default SeasonInfoModal;
391
- //# sourceMappingURL=SeasonInfoModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useEffect","useState","FlatList","Image","ScrollView","TouchableOpacity","View","ActivityIndicator","CompetitionCard","CompetitionApi","CompetitionSeasonApi","Button","Text","Colors","moment","SeasonInfoModal","competition_season","competition_types","competition_result_types","width","height","onClose","onSelectCompetition","loading","setLoading","active_view","setActiveView","leaderboard","setLeaderboard","players","leaders","competitions","setCompetitions","getSeasonCompetitions","competition_season_id","getSeasonLeaderboard","season_competitions","getCompetitionsBySeasonId","e","console","log","season_leaderboard","getLeaderboardBySeasonId","player_ids","map","sl","player_id","leader_players","getPlayersByPlayerIds","renderCompetitions","data","competition_type","find","ct","competition_type_id","item","competition_result_type","competition_result_type_id","createElement","Fragment","style","margin","competition","onSelect","renderLeaders","player","p","flexDirection","alignItems","borderRadius","backgroundColor","shades","white","padding","paddingLeft","paddingRight","nativeID","size","color","brand","midnight","weight","place","source","uri","profile_pic","resizeMode","flex","username","marginTop","wins","losses","draws","earnings","toFixed","slate","cl","market_type","alignSelf","justifyContent","image","url","textAlign","season_name","season_description","shade100","onPress","undefined","single_buy_in","allow_late_buy_in","payout_allocation","payout_amt","sort","a","b","scheduled_datetime","unix","renderItem","keyExtractor","competition_id","toString","borderColor","electric","title","title_color","borderWidth"],"sourceRoot":"../../../../src","sources":["Competition/components/SeasonInfoModal.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;AACrG,OAAOC,eAAe,MAAM,mBAAmB;AAE/C,SAASC,cAAc,EAAEC,oBAAoB,QAAQ,QAAQ;AAC7D,SAASC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AAC/C,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,OAAOC,MAAM,MAAM,aAAa;AAYhC,MA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"../../types";
3
- type ManageSeasonFormProps = {
4
- competition_season?: CompetitionSeasonProps;
5
- width: number;
6
- onComplete: (status: 'done' | 'cancel') => void;
7
- };
8
- declare const ManageSeasonForm: ({ competition_season, width, onComplete }: ManageSeasonFormProps) => React.JSX.Element;
9
- export default ManageSeasonForm;
10
- //# sourceMappingURL=ManageSeasonForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ManageSeasonForm.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/ManageSeasonForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAOzD,KAAK,qBAAqB,GAAG;IACzB,kBAAkB,CAAC,EAAC,sBAAsB,CAAA;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,CAAC,MAAM,EAAC,MAAM,GAAC,QAAQ,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,QAAA,MAAM,gBAAgB,8CAA8C,qBAAqB,sBA6PxF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import type { CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps } from "../../types";
3
- type SeasonInfoModalProps = {
4
- competition_season: CompetitionSeasonProps;
5
- competition_types: CompetitionTypeProps[];
6
- competition_result_types: CompetitionResultTypeProps[];
7
- width: number;
8
- height: number;
9
- onSelectCompetition: (competition: CompetitionProps) => void;
10
- onClose: () => void;
11
- };
12
- declare const SeasonInfoModal: ({ competition_season, competition_types, competition_result_types, width, height, onClose, onSelectCompetition }: SeasonInfoModalProps) => React.JSX.Element | undefined;
13
- export default SeasonInfoModal;
14
- //# sourceMappingURL=SeasonInfoModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SeasonInfoModal.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/SeasonInfoModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,oBAAoB,EAAqB,MAAM,aAAa,CAAA;AAMhJ,KAAK,oBAAoB,GAAG;IACxB,kBAAkB,EAAC,sBAAsB,CAAC;IAC1C,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,EAAC,MAAM,CAAC;IACd,mBAAmB,EAAE,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IAC5D,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,eAAe,qHAAqH,oBAAoB,kCA+L7J,CAAA;AACD,eAAe,eAAe,CAAA"}