be-components 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/lib/commonjs/Competition/components/CompetitionInfoCard.js +225 -199
  2. package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +80 -32
  4. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/CompetitionPlay.js +126 -837
  6. package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
  7. package/lib/commonjs/Competition/components/LeaderPicks.js +2 -0
  8. package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
  9. package/lib/commonjs/Competition/index.js +536 -16
  10. package/lib/commonjs/Competition/index.js.map +1 -1
  11. package/lib/commonjs/Components/Icons.js +64 -0
  12. package/lib/commonjs/Components/Icons.js.map +1 -1
  13. package/lib/commonjs/PromotedOrder/api/index.js +67 -0
  14. package/lib/commonjs/PromotedOrder/api/index.js.map +1 -0
  15. package/lib/commonjs/PromotedOrder/index.js +61 -0
  16. package/lib/commonjs/PromotedOrder/index.js.map +1 -0
  17. package/lib/commonjs/index.js +7 -0
  18. package/lib/commonjs/index.js.map +1 -1
  19. package/lib/module/Competition/components/CompetitionInfoCard.js +225 -201
  20. package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
  21. package/lib/module/Competition/components/CompetitionLeaderboard.js +81 -33
  22. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
  23. package/lib/module/Competition/components/CompetitionPlay.js +127 -838
  24. package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
  25. package/lib/module/Competition/components/LeaderPicks.js +2 -0
  26. package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
  27. package/lib/module/Competition/index.js +538 -18
  28. package/lib/module/Competition/index.js.map +1 -1
  29. package/lib/module/Components/Icons.js +64 -0
  30. package/lib/module/Components/Icons.js.map +1 -1
  31. package/lib/module/PromotedOrder/api/index.js +61 -0
  32. package/lib/module/PromotedOrder/api/index.js.map +1 -0
  33. package/lib/module/PromotedOrder/index.js +52 -0
  34. package/lib/module/PromotedOrder/index.js.map +1 -0
  35. package/lib/module/index.js +2 -1
  36. package/lib/module/index.js.map +1 -1
  37. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +4 -8
  38. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  39. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +3 -1
  40. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  41. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +18 -4
  42. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
  43. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +2 -1
  44. package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
  45. package/lib/typescript/src/Competition/index.d.ts +4 -2
  46. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  47. package/lib/typescript/src/Components/Icons.d.ts +2 -0
  48. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  49. package/lib/typescript/src/PromotedOrder/api/index.d.ts +13 -0
  50. package/lib/typescript/src/PromotedOrder/api/index.d.ts.map +1 -0
  51. package/lib/typescript/src/PromotedOrder/index.d.ts +17 -0
  52. package/lib/typescript/src/PromotedOrder/index.d.ts.map +1 -0
  53. package/lib/typescript/src/index.d.ts +2 -1
  54. package/lib/typescript/src/index.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/Competition/components/CompetitionInfoCard.tsx +92 -36
  57. package/src/Competition/components/CompetitionLeaderboard.tsx +56 -28
  58. package/src/Competition/components/CompetitionPlay.tsx +71 -677
  59. package/src/Competition/components/LeaderPicks.tsx +3 -2
  60. package/src/Competition/index.tsx +457 -19
  61. package/src/Components/Icons.tsx +35 -0
  62. package/src/PromotedOrder/api/index.ts +43 -0
  63. package/src/PromotedOrder/index.tsx +55 -0
  64. package/src/index.tsx +3 -2
  65. package/src/types.d.ts +34 -1
@@ -5,38 +5,558 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _CompetitionPlay = _interopRequireDefault(require("./components/CompetitionPlay"));
9
8
  var _api = require("./api");
10
9
  var _reactNative = require("react-native");
10
+ var _styles = require("../constants/styles");
11
+ var _Components = require("../Components");
12
+ var _colors = _interopRequireDefault(require("../constants/colors"));
13
+ var _CompetitionInfoCard = _interopRequireDefault(require("./components/CompetitionInfoCard"));
14
+ var _CompetitionLeaderboard = _interopRequireDefault(require("./components/CompetitionLeaderboard"));
15
+ var _WagerPickForm = _interopRequireDefault(require("./components/WagerPickForm"));
16
+ var _CompetitionPlay = _interopRequireDefault(require("./components/CompetitionPlay"));
17
+ var _EnterCompetitionPrompt = _interopRequireDefault(require("./components/EnterCompetitionPrompt"));
18
+ var _momentMini = _interopRequireDefault(require("moment-mini"));
19
+ var _LeaderPicks = _interopRequireDefault(require("./components/LeaderPicks"));
11
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
21
  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); }
13
22
  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; }
14
23
  const CompetitionModule = ({
15
24
  competition_id,
16
25
  player_id,
17
- onEvent,
18
- onRequestAuthentication
26
+ onRequestAuthentication,
27
+ onShareCompetition
19
28
  }) => {
20
- const [ready, setReady] = (0, _react.useState)(false);
29
+ const [viewing_leader, setViewingLeader] = (0, _react.useState)();
30
+ const [show_full_leaderboard, setShowFullLeaderboard] = (0, _react.useState)(false);
31
+ const [module_size, setModuleSize] = (0, _react.useState)({
32
+ width: 0,
33
+ height: 0
34
+ });
35
+ const [show_enter_prompt, setShowEnterPrompt] = (0, _react.useState)(false);
36
+ const [draft_player_pick, setDraftPlayerPick] = (0, _react.useState)({});
37
+ const [my_data, setMyData] = (0, _react.useState)({
38
+ loading: false,
39
+ player_picks: []
40
+ });
41
+ const {
42
+ loading,
43
+ player_picks,
44
+ player,
45
+ player_balance
46
+ } = my_data;
47
+ const [pick_loading, setPickLoading] = (0, _react.useState)(undefined);
48
+ const [competition_data, setCompetitionData] = (0, _react.useState)({
49
+ loaded: false,
50
+ tournaments: [],
51
+ events: [],
52
+ athletes: [],
53
+ teams: [],
54
+ matches: [],
55
+ leagues: [],
56
+ markets: [],
57
+ competition_types: [],
58
+ competition_result_types: [],
59
+ competition_payout_types: [],
60
+ competition_matches: [],
61
+ competition_players: [],
62
+ competition_match_markets: []
63
+ });
64
+ const {
65
+ competition,
66
+ loaded,
67
+ leagues,
68
+ markets,
69
+ events,
70
+ athletes,
71
+ teams,
72
+ tournaments,
73
+ matches,
74
+ competition_players,
75
+ competition_result_type,
76
+ competition_payout_types,
77
+ competition_type,
78
+ competition_matches,
79
+ competition_match_markets
80
+ } = competition_data;
81
+ const authenticated_competition_player = competition_players.find(cp => cp.player_id == player_id && cp.status == 'active');
82
+ const in_progress = (0, _momentMini.default)().isAfter((0, _momentMini.default)(competition?.scheduled_datetime)) ? true : false;
83
+ const can_leave = competition?.entered && (0, _momentMini.default)().isBefore((0, _momentMini.default)(competition.scheduled_datetime)) && player_picks.length == 0 && !loading;
84
+ const can_join = !authenticated_competition_player && (0, _momentMini.default)().isBefore((0, _momentMini.default)(competition?.scheduled_datetime)) && !loading ? true : false;
21
85
  (0, _react.useEffect)(() => {
22
86
  _api.CompetitionApi.setEnvironment();
23
- setReady(true);
24
- }, []);
25
- if (!ready) {
26
- return;
87
+ if (!loaded) {
88
+ getCompetitionFromServer(competition_id);
89
+ }
90
+ if (player_id) {
91
+ getPlayerData(competition_id, player_id, 0);
92
+ }
93
+ }, [competition_id, player_id]);
94
+ const getPlayerData = async (competition_id, player_id, offset) => {
95
+ setMyData({
96
+ ...my_data,
97
+ loading: true
98
+ });
99
+ const pps = await _api.PlayerPicksApi.getPlayerPicksByCompetition(competition_id, player_id, offset);
100
+ const player_balance = await _api.CompetitionApi.getMyBalance();
101
+ const me = await _api.CompetitionApi.getMyDetails();
102
+ setMyData({
103
+ player: me,
104
+ player_balance,
105
+ player_picks: pps,
106
+ loading: false
107
+ });
108
+ };
109
+
110
+ //This will snag all the data we need to launch the competition
111
+ const getCompetitionFromServer = async competition_id => {
112
+ const {
113
+ competition_types,
114
+ competition_result_types,
115
+ competition_payout_types
116
+ } = await _api.CompetitionApi.getCompetitionOptions();
117
+ const ls = await _api.CompetitionApi.getLeagues();
118
+ const cms_response = await _api.CompetitionApi.getCompetitionMatchesByCompetitionId(competition_id);
119
+
120
+ //Lets get the additional data needed!
121
+ let athletes = [];
122
+ let teams = [];
123
+ let events = [];
124
+ let tournaments = [];
125
+ let matches = [];
126
+ const markets = await _api.CompetitionApi.getMarkets();
127
+ let athlete_ids = cms_response.competition_matches.filter(cm => cm.side_type_override == 'athlete' && cm.side_id_override).map(cm => cm.side_id_override ?? '');
128
+ let team_ids = cms_response.competition_matches.filter(cm => cm.side_type_override == 'team' && cm.side_id_override).map(cm => cm.side_id_override ?? '');
129
+ const event_ids = cms_response.competition_matches.filter(cm => cm.event_type == 'team').map(cm => cm.event_id);
130
+ event_ids.map(eid => {
131
+ let side_id_cm = cms_response.competition_matches.find(cm => cm.event_type == 'team' && cm.event_id == eid && cm.side_id_override);
132
+ if (side_id_cm) {
133
+ //expanded_markets.push(eid)
134
+ }
135
+ });
136
+ //setExpandedMarkets(expanded_markets)
137
+ const match_ids = cms_response.competition_matches.filter(cm => cm.event_type == 'match').map(cm => cm.event_id);
138
+ if (event_ids.length > 0) {
139
+ events = await _api.CompetitionMatchApi.getEventsByEventIds(event_ids);
140
+ }
141
+ if (match_ids.length > 0) {
142
+ matches = await _api.CompetitionMatchApi.getMatchesByMatchIds(match_ids);
143
+ }
144
+ if (matches.length > 0) {
145
+ let tournament_ids = matches.map(m => m.tournament_id);
146
+ tournaments = await _api.CompetitionMatchApi.getTournamentsByTournamentIds(tournament_ids);
147
+ let new_athlete_ids = [];
148
+ let new_team_ids = [];
149
+ matches.filter(m => m.participant_type == 'athlete').map(m => m.participants.map(p => new_athlete_ids.push(p)));
150
+ matches.filter(m => m.participant_type == 'team').map(m => m.participants.map(p => new_team_ids.push(p)));
151
+ athlete_ids = athlete_ids.concat(new_athlete_ids);
152
+ team_ids = team_ids.concat(new_team_ids);
153
+ }
154
+ if (athlete_ids.length > 0) {
155
+ athletes = await _api.CompetitionMatchApi.getAthletesByIds(athlete_ids);
156
+ }
157
+ if (team_ids.length > 0) {
158
+ teams = await _api.CompetitionMatchApi.getTeamsByIds(team_ids);
159
+ }
160
+ const cps = await _api.CompetitionPlayerApi.getCompetitionPlayersByCompetition(competition_id, 0, 'active');
161
+ const c = await _api.CompetitionApi.getCompetitionById(competition_id);
162
+ setCompetitionData({
163
+ loaded: true,
164
+ competition: c,
165
+ competition_matches: cms_response.competition_matches,
166
+ competition_match_markets: cms_response.competition_match_markets,
167
+ events,
168
+ athletes,
169
+ teams,
170
+ tournaments,
171
+ leagues: ls,
172
+ competition_types: competition_types,
173
+ competition_result_types: competition_result_types,
174
+ matches,
175
+ competition_payout_types,
176
+ competition_players: cps,
177
+ competition_type: competition_types.find(ct => ct.competition_type_id == c.competition_type_id),
178
+ competition_result_type: competition_result_types.find(crt => crt.competition_result_type_id == c.competition_result_type_id),
179
+ markets
180
+ });
181
+ //setLoading(false);
182
+ };
183
+ const handleEnterCompetition = async promo_balance => {
184
+ if (!player_id) {
185
+ return onRequestAuthentication(competition?.auth_strategy_id);
186
+ }
187
+ if (loading) {
188
+ return;
189
+ }
190
+ setShowEnterPrompt(false);
191
+ setMyData({
192
+ ...my_data,
193
+ loading: true
194
+ });
195
+ const response = await _api.CompetitionPlayerApi.joinCompetition({
196
+ ..._api.CompetitionHelpers.getCompetitionPlayer(competition_id),
197
+ promo_balance
198
+ });
199
+ setCompetitionData({
200
+ ...competition_data,
201
+ competition: response.competition,
202
+ competition_players: competition_players.filter(cp => cp.competition_player_id != response.competition_player.competition_player_id).concat(response.competition_player)
203
+ });
204
+ setMyData({
205
+ ...my_data,
206
+ loading: false
207
+ });
208
+ };
209
+ const handleLeaveCompetition = async () => {
210
+ if (!player_id || !authenticated_competition_player) {
211
+ return;
212
+ }
213
+ setMyData({
214
+ ...my_data,
215
+ loading: true
216
+ });
217
+ const response = await _api.CompetitionPlayerApi.leaveCompetition(authenticated_competition_player);
218
+ setCompetitionData({
219
+ ...competition_data,
220
+ competition: response.competition,
221
+ competition_players: competition_players.filter(cp => cp.competition_player_id != response.competition_player.competition_player_id).concat(response.competition_player)
222
+ });
223
+ setMyData({
224
+ ...my_data,
225
+ loading: false
226
+ });
227
+ };
228
+ const handleWagerSubmit = async pp => {
229
+ setPickLoading(pp.competition_match_id);
230
+ const new_pp = await _api.PlayerPicksApi.createPlayerPick(pp);
231
+ setMyData({
232
+ ...my_data,
233
+ player_picks: player_picks.filter(ps => ps.player_pick_id != new_pp.player_pick.player_pick_id).concat(new_pp.player_pick)
234
+ });
235
+ setDraftPlayerPick({});
236
+ setPickLoading(undefined);
237
+ };
238
+ const handlePick = async (pp, event_title, event_start) => {
239
+ if (!competition) {
240
+ return;
241
+ }
242
+ if (!player_id) {
243
+ return onRequestAuthentication();
244
+ }
245
+ if (!authenticated_competition_player) {
246
+ return setShowEnterPrompt(true);
247
+ }
248
+ if (!competition_type) {
249
+ return alert('Unable to process pick');
250
+ }
251
+ setPickLoading(pp.competition_match_id);
252
+ //If the pick needs to be removed
253
+ if (pp.player_pick_id && pp.player_pick_id != '') {
254
+ const rem_pp = await _api.PlayerPicksApi.removePlayerPick(pp.player_pick_id);
255
+ setMyData({
256
+ ...my_data,
257
+ player_picks: player_picks.filter(ps => ps.player_pick_id != rem_pp.player_pick.player_pick_id)
258
+ });
259
+ setPickLoading(undefined);
260
+ return;
261
+ }
262
+
263
+ //If this is a new pick
264
+ //First check to see if they already have one on the market / event combo
265
+ let existing_pick = player_picks.find(p => p.competition_match_id == pp.competition_match_id && p.market_id == pp.market_id);
266
+ if (existing_pick) {
267
+ setPickLoading(undefined);
268
+ return alert('Can only pick one side of each market. Remove the other side before selecting this one.');
269
+ }
270
+ if (competition_type.type == 'pick') {
271
+ if (player_picks.length >= competition.max_pick_count) {
272
+ setPickLoading(undefined);
273
+ return alert('Already reached maximum picks');
274
+ }
275
+ const new_pp = await _api.PlayerPicksApi.createPlayerPick(pp);
276
+ setMyData({
277
+ ...my_data,
278
+ player_picks: player_picks.filter(ps => ps.player_pick_id != new_pp.player_pick.player_pick_id).concat(new_pp.player_pick)
279
+ });
280
+ setPickLoading(undefined);
281
+ }
282
+ if (competition_type.type == 'wager') {
283
+ setPickLoading(undefined);
284
+ setDraftPlayerPick({
285
+ draft_pick: pp,
286
+ event_start,
287
+ event_title
288
+ });
289
+ }
290
+ };
291
+ if (!competition || !competition_type || !competition_result_type) {
292
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
293
+ style: {
294
+ flex: 1
295
+ }
296
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.ActivityIndicator, {
297
+ style: {
298
+ padding: 20,
299
+ alignSelf: 'center'
300
+ },
301
+ size: "large",
302
+ color: _colors.default.brand.midnight
303
+ }));
27
304
  }
28
305
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
29
306
  style: {
30
- height: 800
307
+ flex: 1
308
+ }
309
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
310
+ style: {
311
+ flex: 1
312
+ },
313
+ onLayout: ev => {
314
+ const {
315
+ width,
316
+ height
317
+ } = ev.nativeEvent.layout;
318
+ setModuleSize({
319
+ width,
320
+ height
321
+ });
322
+ }
323
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
324
+ style: {
325
+ backgroundColor: _colors.default.shades.white
31
326
  }
32
- }, /*#__PURE__*/_react.default.createElement(_CompetitionPlay.default, {
327
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
328
+ nativeID: "competition_header",
329
+ style: {
330
+ flexDirection: 'row',
331
+ alignItems: 'center',
332
+ padding: 20,
333
+ borderBottomWidth: 1,
334
+ borderColor: _colors.default.shades.shade600
335
+ }
336
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
337
+ source: {
338
+ uri: competition.image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1649737862/be_logo_jte2ux.webp'
339
+ },
340
+ style: {
341
+ height: 50,
342
+ width: 50,
343
+ borderRadius: 4
344
+ },
345
+ resizeMode: "cover"
346
+ })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
347
+ style: {
348
+ flex: 1,
349
+ marginLeft: 10
350
+ }
351
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
352
+ theme: "header"
353
+ }, competition.competition_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
354
+ style: {
355
+ marginTop: 4
356
+ },
357
+ theme: "header_2>"
358
+ }, competition.competition_description)), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
359
+ style: {
360
+ paddingLeft: 10
361
+ },
362
+ onPress: () => onShareCompetition(competition)
363
+ }, /*#__PURE__*/_react.default.createElement(_Components.Icons.ShareIcon, {
364
+ color: _colors.default.brand.midnight,
365
+ size: 14
366
+ }))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
367
+ style: {
368
+ flexDirection: 'row',
369
+ padding: 10,
370
+ backgroundColor: _colors.default.shades.shade100
371
+ }
372
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
373
+ style: {
374
+ flex: 1
375
+ }
376
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
377
+ size: 12,
378
+ color: _colors.default.brand.midnight,
379
+ weight: "regular"
380
+ }, competition.status == 'closed' ? 'COMPLETED' : in_progress ? 'IN PROGRESS' : 'JOIN UNTIL'), in_progress ? /*#__PURE__*/_react.default.createElement(_Components.Text, {
381
+ style: {
382
+ marginTop: 5
383
+ },
384
+ size: 12,
385
+ color: _colors.default.brand.midnight,
386
+ weight: "bold"
387
+ }, (0, _momentMini.default)(competition.scheduled_datetime).format('MMM DD hh:mm a')) : /*#__PURE__*/_react.default.createElement(_Components.Text, {
388
+ style: {
389
+ marginTop: 5
390
+ },
391
+ size: 12,
392
+ color: _colors.default.brand.midnight,
393
+ weight: "bold"
394
+ }, (0, _momentMini.default)(competition.scheduled_datetime).format('MMM DD hh:mm a'))), !authenticated_competition_player ? /*#__PURE__*/_react.default.createElement(_Components.Button, {
395
+ style: {
396
+ flex: 1,
397
+ opacity: can_join ? 1 : 0.5
398
+ },
399
+ disabled: !can_join,
400
+ loading: loading,
401
+ title: `JOIN`,
402
+ title_color: _colors.default.shades.white,
403
+ backgroundColor: _colors.default.utility.success,
404
+ onPress: () => setShowEnterPrompt(true)
405
+ }) : competition.status != 'closed' ? /*#__PURE__*/_react.default.createElement(_Components.Button, {
406
+ style: {
407
+ flex: 1,
408
+ opacity: can_leave ? 1 : 0.5
409
+ },
410
+ title: "LEAVE",
411
+ loading: loading,
412
+ title_color: _colors.default.shades.white,
413
+ backgroundColor: _colors.default.utility.error,
414
+ onPress: () => {
415
+ if (!can_leave) {
416
+ return alert('Please remove all picks and try again');
417
+ }
418
+ handleLeaveCompetition();
419
+ }
420
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null))), /*#__PURE__*/_react.default.createElement(_CompetitionInfoCard.default, {
421
+ competition: competition,
422
+ competition_type: competition_type,
423
+ competition_result_type: competition_result_type,
424
+ competition_payouts: competition_payout_types.filter(cpt => cpt.competition_result_type_id == competition_result_type?.competition_result_type_id)
425
+ }), /*#__PURE__*/_react.default.createElement(_CompetitionLeaderboard.default, {
426
+ competition: competition,
427
+ width: module_size.width,
428
+ competition_type: competition_type,
429
+ height: module_size.height,
430
+ onLeaderSelect: player => setViewingLeader(player),
431
+ view_mode: "short",
432
+ onSeeFull: () => setShowFullLeaderboard(true),
433
+ viewer_id: player_id
434
+ }), /*#__PURE__*/_react.default.createElement(_CompetitionPlay.default, {
435
+ competition: competition,
436
+ competition_type: competition_type,
437
+ competition_matches: competition_matches,
438
+ competition_match_markets: competition_match_markets,
439
+ leagues: leagues,
440
+ events: events,
441
+ athletes: athletes,
442
+ markets: markets,
443
+ tournaments: tournaments,
444
+ matches: matches,
445
+ player_picks: player_picks,
33
446
  player_id: player_id,
34
- onRequestAuthentication: onRequestAuthentication,
35
- onEvent: onEvent,
36
- competition_id: competition_id,
37
- width: 400,
38
- height: 800
39
- }));
447
+ competition_players: competition_players,
448
+ authenticated_competition_player: authenticated_competition_player,
449
+ height: module_size.height,
450
+ width: module_size.width,
451
+ onPick: handlePick,
452
+ onRequestAuthentication: () => onRequestAuthentication(competition.auth_strategy_id)
453
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
454
+ style: {
455
+ ..._styles.view_styles.section
456
+ }
457
+ })), show_full_leaderboard ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
458
+ style: {
459
+ position: 'absolute',
460
+ bottom: 0,
461
+ left: 0,
462
+ right: 0,
463
+ top: 0,
464
+ backgroundColor: _colors.default.brand.midnight
465
+ }
466
+ }, /*#__PURE__*/_react.default.createElement(_Components.Spring, {
467
+ slide: "vertical",
468
+ to: 0,
469
+ from: 500
470
+ }, /*#__PURE__*/_react.default.createElement(_CompetitionLeaderboard.default, {
471
+ competition: competition,
472
+ competition_type: competition_type,
473
+ height: module_size.height,
474
+ width: module_size.width,
475
+ onLeaderSelect: player => setViewingLeader(player),
476
+ view_mode: "full",
477
+ onClose: () => setShowFullLeaderboard(false),
478
+ onSeeFull: () => setShowFullLeaderboard(!show_full_leaderboard),
479
+ viewer_id: player_id
480
+ }))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), draft_player_pick?.draft_pick ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
481
+ style: {
482
+ position: 'absolute',
483
+ top: 0,
484
+ right: 0,
485
+ left: 0,
486
+ bottom: 0,
487
+ backgroundColor: _colors.default.shades.black_faded,
488
+ justifyContent: 'flex-end',
489
+ alignItems: 'center'
490
+ }
491
+ }, /*#__PURE__*/_react.default.createElement(_Components.Spring, {
492
+ slide: "vertical",
493
+ to: 0,
494
+ from: 200
495
+ }, /*#__PURE__*/_react.default.createElement(_WagerPickForm.default, {
496
+ event_start: draft_player_pick.event_start ?? '',
497
+ event_title: draft_player_pick.event_title ?? '',
498
+ width: module_size.width,
499
+ balance: authenticated_competition_player?.wager_based_balance ?? 0,
500
+ loading: pick_loading,
501
+ player_pick: draft_player_pick.draft_pick,
502
+ onCancel: () => setDraftPlayerPick({}),
503
+ onSubmit: pp => handleWagerSubmit(pp)
504
+ }))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), show_enter_prompt ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
505
+ style: {
506
+ position: 'absolute',
507
+ top: 0,
508
+ right: 0,
509
+ left: 0,
510
+ bottom: 0,
511
+ backgroundColor: _colors.default.shades.black_faded,
512
+ justifyContent: 'flex-end',
513
+ alignItems: 'center'
514
+ }
515
+ }, /*#__PURE__*/_react.default.createElement(_Components.Spring, {
516
+ slide: "vertical",
517
+ to: 0,
518
+ from: 200
519
+ }, /*#__PURE__*/_react.default.createElement(_EnterCompetitionPrompt.default, {
520
+ competition: competition,
521
+ competition_result_type: competition_result_type,
522
+ competition_type: competition_type,
523
+ player_balance: player_balance,
524
+ player: player,
525
+ width: module_size.width,
526
+ onCancel: () => setShowEnterPrompt(false),
527
+ onEnter: promo_balance => handleEnterCompetition(promo_balance),
528
+ onVerify: () => console.log('Handle verify')
529
+ }))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), viewing_leader ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
530
+ style: {
531
+ position: 'absolute',
532
+ top: 0,
533
+ right: 0,
534
+ left: 0,
535
+ bottom: 0,
536
+ backgroundColor: _colors.default.shades.black_faded,
537
+ justifyContent: 'flex-end',
538
+ alignItems: 'center'
539
+ }
540
+ }, /*#__PURE__*/_react.default.createElement(_Components.Spring, {
541
+ slide: "vertical",
542
+ to: 0,
543
+ from: 200
544
+ }, /*#__PURE__*/_react.default.createElement(_LeaderPicks.default, {
545
+ competition: competition,
546
+ leader: viewing_leader,
547
+ competition_matches: competition_matches,
548
+ competition_match_markets: competition_match_markets,
549
+ markets: markets,
550
+ events: events,
551
+ tournaments: tournaments,
552
+ matches: matches,
553
+ athletes: athletes,
554
+ teams: teams,
555
+ competition_type: competition_type,
556
+ height: module_size.height,
557
+ width: module_size.width,
558
+ onClose: () => setViewingLeader(undefined)
559
+ }))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
40
560
  };
41
561
  var _default = exports.default = CompetitionModule;
42
562
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_CompetitionPlay","_interopRequireDefault","_api","_reactNative","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CompetitionModule","competition_id","player_id","onEvent","onRequestAuthentication","ready","setReady","useState","useEffect","CompetitionApi","setEnvironment","createElement","View","style","height","width","_default","exports"],"sourceRoot":"../../../src","sources":["Competition/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC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IAAAA,CAAA,CAAAa,GAAA,CAAAhB,CAAA,EAAAM,CAAA,GAAAA,CAAA;AAUpC,MAAMW,iBAAiB,GAAGA,CAAC;EAAEC,cAAc;EAAEC,SAAS;EAAEC,OAAO;EAAEC;AAA+C,CAAC,KAAK;EAClH,MAAM,CAAEC,KAAK,EAAEC,QAAQ,CAAE,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC3C,IAAAC,gBAAS,EAAC,MAAM;IACZC,mBAAc,CAACC,cAAc,CAAC,CAAC;IAC/BJ,QAAQ,CAAC,IAAI,CAAC;EAClB,CAAC,EAAC,EAAE,CAAC;EACL,IAAG,CAACD,KAAK,EAAC;IAAE;EAAO;EAEnB,oBACIjC,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACjC,YAAA,CAAAkC,IAAI;IAACC,KAAK,EAAE;MAAEC,MAAM,EAAC;IAAI;EAAE,gBACxB1C,MAAA,CAAAS,OAAA,CAAA8B,aAAA,CAACpC,gBAAA,CAAAM,OAAe;IACZqB,SAAS,EAAEA,SAAU;IACrBE,uBAAuB,EAAEA,uBAAwB;IACjDD,OAAO,EAAEA,OAAQ;IACjBF,cAAc,EAAEA,cAAe;IAC/Bc,KAAK,EAAE,GAAI;IACXD,MAAM,EAAE;EAAI,CACf,CACC,CAAC;AAEf,CAAC;AAAA,IAAAE,QAAA,GAAAC,OAAA,CAAApC,OAAA,GAEcmB,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_api","_reactNative","_styles","_Components","_colors","_interopRequireDefault","_CompetitionInfoCard","_CompetitionLeaderboard","_WagerPickForm","_CompetitionPlay","_EnterCompetitionPrompt","_momentMini","_LeaderPicks","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CompetitionModule","competition_id","player_id","onRequestAuthentication","onShareCompetition","viewing_leader","setViewingLeader","useState","show_full_leaderboard","setShowFullLeaderboard","module_size","setModuleSize","width","height","show_enter_prompt","setShowEnterPrompt","draft_player_pick","setDraftPlayerPick","my_data","setMyData","loading","player_picks","player","player_balance","pick_loading","setPickLoading","undefined","competition_data","setCompetitionData","loaded","tournaments","events","athletes","teams","matches","leagues","markets","competition_types","competition_result_types","competition_payout_types","competition_matches","competition_players","competition_match_markets","competition","competition_result_type","competition_type","authenticated_competition_player","find","cp","status","in_progress","moment","isAfter","scheduled_datetime","can_leave","entered","isBefore","length","can_join","useEffect","CompetitionApi","setEnvironment","getCompetitionFromServer","getPlayerData","offset","pps","PlayerPicksApi","getPlayerPicksByCompetition","getMyBalance","me","getMyDetails","getCompetitionOptions","ls","getLeagues","cms_response","getCompetitionMatchesByCompetitionId","getMarkets","athlete_ids","filter","cm","side_type_override","side_id_override","map","team_ids","event_ids","event_type","event_id","eid","side_id_cm","match_ids","CompetitionMatchApi","getEventsByEventIds","getMatchesByMatchIds","tournament_ids","m","tournament_id","getTournamentsByTournamentIds","new_athlete_ids","new_team_ids","participant_type","participants","p","push","concat","getAthletesByIds","getTeamsByIds","cps","CompetitionPlayerApi","getCompetitionPlayersByCompetition","c","getCompetitionById","ct","competition_type_id","crt","competition_result_type_id","handleEnterCompetition","promo_balance","auth_strategy_id","response","joinCompetition","CompetitionHelpers","getCompetitionPlayer","competition_player_id","competition_player","handleLeaveCompetition","leaveCompetition","handleWagerSubmit","pp","competition_match_id","new_pp","createPlayerPick","ps","player_pick_id","player_pick","handlePick","event_title","event_start","alert","rem_pp","removePlayerPick","existing_pick","market_id","type","max_pick_count","draft_pick","createElement","View","style","flex","ActivityIndicator","padding","alignSelf","size","color","Colors","brand","midnight","ScrollView","onLayout","ev","nativeEvent","layout","backgroundColor","shades","white","nativeID","flexDirection","alignItems","borderBottomWidth","borderColor","shade600","Image","source","uri","image","url","borderRadius","resizeMode","marginLeft","Text","theme","competition_name","marginTop","competition_description","TouchableOpacity","paddingLeft","onPress","Icons","ShareIcon","shade100","weight","format","Button","opacity","disabled","title","title_color","utility","success","error","Fragment","competition_payouts","cpt","onLeaderSelect","view_mode","onSeeFull","viewer_id","onPick","view_styles","section","position","bottom","left","right","top","Spring","slide","to","from","onClose","black_faded","justifyContent","balance","wager_based_balance","onCancel","onSubmit","onEnter","onVerify","console","log","leader","_default","exports"],"sourceRoot":"../../../src","sources":["Competition/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAEA,IAAAO,oBAAA,GAAAD,sBAAA,CAAAN,OAAA;AACA,IAAAQ,uBAAA,GAAAF,sBAAA,CAAAN,OAAA;AACA,IAAAS,cAAA,GAAAH,sBAAA,CAAAN,OAAA;AACA,IAAAU,gBAAA,GAAAJ,sBAAA,CAAAN,OAAA;AACA,IAAAW,uBAAA,GAAAL,sBAAA,CAAAN,OAAA;AACA,IAAAY,WAAA,GAAAN,sBAAA,CAAAN,OAAA;AACA,IAAAa,YAAA,GAAAP,sBAAA,CAAAN,OAAA;AAAmD,SAAAM,uBAAAQ,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAnB,wBAAAmB,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CA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