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,400 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _CompetitionCard = _interopRequireDefault(require("./CompetitionCard"));
10
- var _api = require("../api");
11
- var _Components = require("../../Components");
12
- var _colors = _interopRequireDefault(require("../../constants/colors"));
13
- var _momentMini = _interopRequireDefault(require("moment-mini"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- const SeasonInfoModal = ({
18
- competition_season,
19
- competition_types,
20
- competition_result_types,
21
- width,
22
- height,
23
- onClose,
24
- onSelectCompetition
25
- }) => {
26
- const [loading, setLoading] = (0, _react.useState)(false);
27
- const [active_view, setActiveView] = (0, _react.useState)('info');
28
- const [leaderboard, setLeaderboard] = (0, _react.useState)({
29
- players: [],
30
- leaders: []
31
- });
32
- const [competitions, setCompetitions] = (0, _react.useState)([]);
33
- const {
34
- leaders,
35
- players
36
- } = leaderboard;
37
- (0, _react.useEffect)(() => {
38
- if (!competition_season) {
39
- return;
40
- }
41
- getSeasonCompetitions(competition_season.competition_season_id);
42
- }, [competition_season]);
43
- (0, _react.useEffect)(() => {
44
- switch (active_view) {
45
- case 'competitions':
46
- getSeasonCompetitions(competition_season.competition_season_id);
47
- return;
48
- case 'leaderboard':
49
- getSeasonLeaderboard(competition_season.competition_season_id);
50
- return;
51
- default:
52
- return;
53
- }
54
- }, [active_view]);
55
- const getSeasonCompetitions = async competition_season_id => {
56
- setLoading(true);
57
- try {
58
- let season_competitions = await _api.CompetitionApi.getCompetitionsBySeasonId(competition_season_id);
59
- setCompetitions(season_competitions);
60
- } catch (e) {
61
- console.log(e);
62
- }
63
- setLoading(false);
64
- };
65
- const getSeasonLeaderboard = async competition_season_id => {
66
- setLoading(true);
67
- try {
68
- let season_leaderboard = await _api.CompetitionSeasonApi.getLeaderboardBySeasonId(competition_season_id);
69
- const player_ids = season_leaderboard.map(sl => sl.player_id);
70
- const leader_players = await _api.CompetitionApi.getPlayersByPlayerIds(player_ids);
71
- setLeaderboard({
72
- leaders: season_leaderboard,
73
- players: leader_players
74
- });
75
- } catch (e) {
76
- console.log(e);
77
- }
78
- setLoading(false);
79
- };
80
- const renderCompetitions = data => {
81
- const competition_type = competition_types.find(ct => ct.competition_type_id == data.item.competition_type_id);
82
- const competition_result_type = competition_result_types.find(ct => ct.competition_result_type_id == data.item.competition_result_type_id);
83
- if (!competition_type || !competition_result_type) {
84
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
85
- }
86
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
87
- style: {
88
- margin: 5
89
- }
90
- }, /*#__PURE__*/_react.default.createElement(_CompetitionCard.default, {
91
- competition: data.item,
92
- competition_result_type: competition_result_type,
93
- competition_type: competition_type,
94
- onSelect: () => onSelectCompetition(data.item)
95
- }));
96
- };
97
- const renderLeaders = data => {
98
- const player = players.find(p => p.player_id == data.item.player_id);
99
- if (!player) {
100
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
101
- }
102
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
103
- style: {
104
- flexDirection: 'row',
105
- margin: 5,
106
- alignItems: 'center',
107
- borderRadius: 22,
108
- backgroundColor: _colors.default.shades.white,
109
- padding: 8,
110
- paddingLeft: 15,
111
- paddingRight: 15
112
- }
113
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
114
- nativeID: "place",
115
- style: {
116
- padding: 5
117
- }
118
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
119
- size: 12,
120
- color: _colors.default.brand.midnight,
121
- weight: "bold"
122
- }, data.item.place)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
123
- nativeID: "image",
124
- style: {
125
- paddingLeft: 10,
126
- paddingRight: 10
127
- }
128
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
129
- source: {
130
- uri: player.profile_pic
131
- },
132
- style: {
133
- height: 30,
134
- width: 30,
135
- borderRadius: 100
136
- },
137
- resizeMode: "cover"
138
- })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
139
- nativeID: "details",
140
- style: {
141
- flex: 1
142
- }
143
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
144
- size: 12,
145
- color: _colors.default.brand.midnight,
146
- weight: "semibold"
147
- }, player.username), /*#__PURE__*/_react.default.createElement(_Components.Text, {
148
- style: {
149
- marginTop: 3
150
- },
151
- size: 12,
152
- color: _colors.default.brand.midnight,
153
- weight: "regular"
154
- }, data.item.wins, " - ", data.item.losses, " - ", data.item.draws, " (", data.item.earnings.toFixed(2), " Earnings)")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
155
- nativeID: "winnings"
156
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
157
- size: 12,
158
- color: _colors.default.brand.slate,
159
- weight: "regular"
160
- }, "Hey")));
161
- };
162
- if (!competition_season) {
163
- return;
164
- }
165
- const cl = competition_season.market_type == 'FOR_MONEY' ? '$' : 'E';
166
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
167
- style: {
168
- height,
169
- width,
170
- backgroundColor: _colors.default.shades.white
171
- }
172
- }, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
173
- style: {
174
- flex: 1
175
- }
176
- }, loading ? /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
177
- style: {
178
- padding: 20,
179
- alignSelf: 'center'
180
- },
181
- color: _colors.default.brand.midnight,
182
- size: "large"
183
- }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
184
- nativeID: "season_header",
185
- style: {
186
- justifyContent: 'center',
187
- alignItems: 'center'
188
- }
189
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
190
- source: {
191
- uri: competition_season.image?.url
192
- },
193
- style: {
194
- width: width * 0.75,
195
- height: width * 0.75 / 2
196
- },
197
- resizeMode: "cover"
198
- }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
199
- style: {
200
- margin: 10
201
- }
202
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
203
- size: 14,
204
- color: _colors.default.brand.midnight,
205
- weight: "bold",
206
- textAlign: "center"
207
- }, competition_season.season_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
208
- style: {
209
- marginTop: 5
210
- },
211
- size: 14,
212
- color: _colors.default.brand.midnight,
213
- weight: "regular",
214
- textAlign: "center"
215
- }, competition_season.season_description))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
216
- style: {
217
- margin: 10,
218
- flexDirection: 'row',
219
- padding: 2,
220
- backgroundColor: _colors.default.shades.shade100,
221
- borderRadius: 22
222
- }
223
- }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
224
- onPress: () => setActiveView('leaderboard'),
225
- style: {
226
- flex: 1,
227
- padding: 10,
228
- borderRadius: 22,
229
- backgroundColor: active_view == 'leaderboard' ? _colors.default.shades.white : undefined
230
- }
231
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
232
- size: 14,
233
- color: _colors.default.brand.midnight,
234
- weight: active_view == 'leaderboard' ? 'bold' : 'regular',
235
- textAlign: "center"
236
- }, "Leaderboard")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
237
- onPress: () => setActiveView('info'),
238
- style: {
239
- flex: 1,
240
- padding: 10,
241
- borderRadius: 22,
242
- backgroundColor: active_view == 'info' ? _colors.default.shades.white : undefined
243
- }
244
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
245
- size: 14,
246
- color: _colors.default.brand.midnight,
247
- weight: active_view == 'info' ? 'bold' : 'regular',
248
- textAlign: "center"
249
- }, "Info")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
250
- onPress: () => setActiveView('competitions'),
251
- style: {
252
- flex: 1,
253
- padding: 10,
254
- borderRadius: 22,
255
- backgroundColor: active_view == 'competitions' ? _colors.default.shades.white : undefined
256
- }
257
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
258
- size: 14,
259
- color: _colors.default.brand.midnight,
260
- weight: active_view == 'competitions' ? 'bold' : 'regular',
261
- textAlign: "center"
262
- }, "Competitions"))), active_view == 'info' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
263
- nativeID: "season_info",
264
- style: {
265
- padding: 20
266
- }
267
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
268
- style: {
269
- flexDirection: 'row'
270
- }
271
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
272
- style: {
273
- flex: 1
274
- },
275
- size: 12,
276
- color: _colors.default.brand.midnight,
277
- weight: "regular"
278
- }, "Season Type"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
279
- style: {
280
- flex: 1
281
- },
282
- size: 12,
283
- color: _colors.default.brand.midnight,
284
- weight: "bold",
285
- textAlign: "right"
286
- }, competition_season.single_buy_in ? 'One Time Entry' : 'Each Competition Entry')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
287
- style: {
288
- flexDirection: 'row',
289
- marginTop: 10
290
- }
291
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
292
- style: {
293
- flex: 1
294
- },
295
- size: 12,
296
- color: _colors.default.brand.midnight,
297
- weight: "regular"
298
- }, "Late Entry"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
299
- style: {
300
- flex: 1
301
- },
302
- size: 12,
303
- color: _colors.default.brand.midnight,
304
- weight: "bold",
305
- textAlign: "right"
306
- }, competition_season.allow_late_buy_in ? 'Allowed' : 'Not Allowed')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
307
- style: {
308
- flexDirection: 'row',
309
- marginTop: 10
310
- }
311
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
312
- style: {
313
- flex: 1
314
- },
315
- size: 12,
316
- color: _colors.default.brand.midnight,
317
- weight: "regular"
318
- }, "Season Allocation"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
319
- style: {
320
- flex: 1
321
- },
322
- size: 12,
323
- color: _colors.default.brand.midnight,
324
- weight: "bold",
325
- textAlign: "right"
326
- }, (competition_season.payout_allocation * 100).toFixed(2), "%")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
327
- style: {
328
- flexDirection: 'row',
329
- marginTop: 10
330
- }
331
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
332
- style: {
333
- flex: 1
334
- },
335
- size: 12,
336
- color: _colors.default.brand.midnight,
337
- weight: "regular"
338
- }, "Each Competition Allocation"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
339
- style: {
340
- flex: 1
341
- },
342
- size: 12,
343
- color: _colors.default.brand.midnight,
344
- weight: "bold",
345
- textAlign: "right"
346
- }, ((1 - competition_season.payout_allocation) * 100).toFixed(2), "%")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
347
- style: {
348
- flexDirection: 'row',
349
- marginTop: 10
350
- }
351
- }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
352
- style: {
353
- flex: 1
354
- },
355
- size: 12,
356
- color: _colors.default.brand.midnight,
357
- weight: "regular"
358
- }, "Current Season Pot"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
359
- style: {
360
- flex: 1
361
- },
362
- size: 12,
363
- color: _colors.default.brand.midnight,
364
- weight: "bold",
365
- textAlign: "right"
366
- }, cl, competition_season.payout_amt.toFixed(2)))) : active_view == 'competitions' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
367
- nativeID: "season_competitions",
368
- style: {
369
- padding: 10
370
- }
371
- }, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
372
- data: competitions.sort((a, b) => (0, _momentMini.default)(a.scheduled_datetime).unix() - (0, _momentMini.default)(b.scheduled_datetime).unix()),
373
- renderItem: renderCompetitions,
374
- keyExtractor: item => item.competition_id.toString()
375
- })) : active_view == 'leaderboard' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
376
- nativeID: "season_leaderboard",
377
- style: {
378
- padding: 10,
379
- backgroundColor: _colors.default.shades.shade100
380
- }
381
- }, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
382
- data: leaders.sort((a, b) => b.wins - a.wins),
383
- renderItem: renderLeaders,
384
- keyExtractor: item => item.player_id.toString()
385
- })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
386
- nativeID: "action_row",
387
- style: {
388
- padding: 10
389
- }
390
- }, /*#__PURE__*/_react.default.createElement(_Components.Button, {
391
- borderColor: _colors.default.brand.electric,
392
- title: "Close",
393
- title_color: _colors.default.brand.electric,
394
- borderWidth: 1,
395
- borderRadius: 22,
396
- onPress: () => onClose()
397
- })));
398
- };
399
- var _default = exports.default = SeasonInfoModal;
400
- //# sourceMappingURL=SeasonInfoModal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_CompetitionCard","_interopRequireDefault","_api","_Components","_colors","_momentMini","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SeasonInfoModal","competition_season","competition_types","competition_result_types","width","height","onClose","onSelectCompetition","loading","setLoading","useState","active_view","setActiveView","leaderboard","setLeaderboard","players","leaders","competitions","setCompetitions","useEffect","getSeasonCompetitions","competition_season_id","getSeasonLeaderboard","season_competitions","CompetitionApi","getCompetitionsBySeasonId","console","log","season_leaderboard","CompetitionSeasonApi","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","View","style","margin","competition","onSelect","renderLeaders","player","p","flexDirection","alignItems","borderRadius","backgroundColor","Colors","shades","white","padding","paddingLeft","paddingRight","nativeID","Text","size","color","brand","midnight","weight","place","Image","source","uri","profile_pic","resizeMode","flex","username","marginTop","wins","losses","draws","earnings","toFixed","slate","cl","market_type","ScrollView","ActivityIndicator","alignSelf","justifyContent","image","url","textAlign","season_name","season_description","shade100","TouchableOpacity","onPress","undefined","single_buy_in","allow_late_buy_in","payout_allocation","payout_amt","FlatList","sort","b","moment","scheduled_datetime","unix","renderItem","keyExtractor","competition_id","toString","Button","borderColor","electric","title","title_color","borderWidth","_default","exports"],"sourceRoot":"../../../../src","sources":["Competition/components/SeasonInfoModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAA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