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