be-components 1.2.9 → 1.3.1

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 (124) hide show
  1. package/lib/commonjs/Competition/api/index.js +1 -1
  2. package/lib/commonjs/Competition/api/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionPlay.js +1 -1
  4. package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
  5. package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
  6. package/lib/commonjs/Competition/index.js +1 -1
  7. package/lib/commonjs/Competition/index.js.map +1 -1
  8. package/lib/commonjs/CompetitionManager/api/index.js +153 -35
  9. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  10. package/lib/commonjs/CompetitionManager/components/AthleteSelector.js +170 -0
  11. package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -0
  12. package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +495 -423
  13. package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
  14. package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js +134 -0
  15. package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js.map +1 -0
  16. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +96 -73
  17. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  18. package/lib/commonjs/CompetitionManager/components/CompetitionMatchMarketCard.js +147 -127
  19. package/lib/commonjs/CompetitionManager/components/CompetitionMatchMarketCard.js.map +1 -1
  20. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +38 -127
  21. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  22. package/lib/commonjs/CompetitionManager/components/ContestSelector.js +388 -0
  23. package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -0
  24. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +436 -0
  25. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -0
  26. package/lib/commonjs/CompetitionManager/components/MarketSelector.js +36 -26
  27. package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
  28. package/lib/commonjs/CompetitionManager/index.js +477 -18
  29. package/lib/commonjs/CompetitionManager/index.js.map +1 -1
  30. package/lib/commonjs/Components/SearchBox.js +82 -0
  31. package/lib/commonjs/Components/SearchBox.js.map +1 -0
  32. package/lib/commonjs/Squares/components/Countdown.js +74 -0
  33. package/lib/commonjs/Squares/components/Countdown.js.map +1 -0
  34. package/lib/commonjs/Squares/components/SquaresBoard.js +95 -2
  35. package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
  36. package/lib/commonjs/Squares/index.js +1 -0
  37. package/lib/commonjs/Squares/index.js.map +1 -1
  38. package/lib/module/Competition/api/index.js +1 -1
  39. package/lib/module/Competition/api/index.js.map +1 -1
  40. package/lib/module/Competition/components/CompetitionPlay.js +1 -1
  41. package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
  42. package/lib/module/Competition/components/MarketsCard.js.map +1 -1
  43. package/lib/module/Competition/index.js +1 -1
  44. package/lib/module/Competition/index.js.map +1 -1
  45. package/lib/module/CompetitionManager/api/index.js +153 -35
  46. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  47. package/lib/module/CompetitionManager/components/AthleteSelector.js +161 -0
  48. package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -0
  49. package/lib/module/CompetitionManager/components/CompetitionContestsForm.js +493 -425
  50. package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
  51. package/lib/module/CompetitionManager/components/CompetitionHeader.js +127 -0
  52. package/lib/module/CompetitionManager/components/CompetitionHeader.js.map +1 -0
  53. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +99 -76
  54. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  55. package/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.js +145 -127
  56. package/lib/module/CompetitionManager/components/CompetitionMatchMarketCard.js.map +1 -1
  57. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +39 -131
  58. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  59. package/lib/module/CompetitionManager/components/ContestSelector.js +379 -0
  60. package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -0
  61. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +428 -0
  62. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -0
  63. package/lib/module/CompetitionManager/components/MarketSelector.js +34 -26
  64. package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
  65. package/lib/module/CompetitionManager/index.js +478 -19
  66. package/lib/module/CompetitionManager/index.js.map +1 -1
  67. package/lib/module/Components/SearchBox.js +73 -0
  68. package/lib/module/Components/SearchBox.js.map +1 -0
  69. package/lib/module/Squares/components/Countdown.js +65 -0
  70. package/lib/module/Squares/components/Countdown.js.map +1 -0
  71. package/lib/module/Squares/components/SquaresBoard.js +97 -4
  72. package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
  73. package/lib/module/Squares/index.js +1 -0
  74. package/lib/module/Squares/index.js.map +1 -1
  75. package/lib/typescript/src/CompetitionManager/api/index.d.ts +32 -3
  76. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  77. package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts +18 -0
  78. package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts.map +1 -0
  79. package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts +13 -1
  80. package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
  81. package/lib/typescript/src/CompetitionManager/components/CompetitionHeader.d.ts +20 -0
  82. package/lib/typescript/src/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -0
  83. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts +2 -1
  84. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  85. package/lib/typescript/src/CompetitionManager/components/CompetitionMatchMarketCard.d.ts +1 -1
  86. package/lib/typescript/src/CompetitionManager/components/CompetitionMatchMarketCard.d.ts.map +1 -1
  87. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts +3 -3
  88. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  89. package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts +16 -0
  90. package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts.map +1 -0
  91. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts +15 -0
  92. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -0
  93. package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts +3 -2
  94. package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
  95. package/lib/typescript/src/CompetitionManager/index.d.ts +1 -1
  96. package/lib/typescript/src/CompetitionManager/index.d.ts.map +1 -1
  97. package/lib/typescript/src/Components/SearchBox.d.ts +10 -0
  98. package/lib/typescript/src/Components/SearchBox.d.ts.map +1 -0
  99. package/lib/typescript/src/Squares/components/Countdown.d.ts +10 -0
  100. package/lib/typescript/src/Squares/components/Countdown.d.ts.map +1 -0
  101. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts +2 -1
  102. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
  103. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  104. package/package.json +2 -1
  105. package/src/Competition/api/index.ts +3 -3
  106. package/src/Competition/components/CompetitionPlay.tsx +1 -1
  107. package/src/Competition/components/MarketsCard.tsx +2 -2
  108. package/src/Competition/index.tsx +1 -1
  109. package/src/CompetitionManager/api/index.ts +71 -13
  110. package/src/CompetitionManager/components/AthleteSelector.tsx +127 -0
  111. package/src/CompetitionManager/components/CompetitionContestsForm.tsx +156 -261
  112. package/src/CompetitionManager/components/CompetitionHeader.tsx +101 -0
  113. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +57 -45
  114. package/src/CompetitionManager/components/CompetitionMatchMarketCard.tsx +29 -70
  115. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +36 -103
  116. package/src/CompetitionManager/components/ContestSelector.tsx +269 -0
  117. package/src/CompetitionManager/components/ContestSettingsForm.tsx +281 -0
  118. package/src/CompetitionManager/components/MarketSelector.tsx +34 -23
  119. package/src/CompetitionManager/index.tsx +399 -15
  120. package/src/Components/SearchBox.tsx +54 -0
  121. package/src/Squares/components/Countdown.tsx +52 -0
  122. package/src/Squares/components/SquaresBoard.tsx +57 -5
  123. package/src/Squares/index.tsx +1 -0
  124. package/src/types.d.ts +38 -4
@@ -0,0 +1,428 @@
1
+ import { TextInput, View, FlatList, TouchableOpacity } from "react-native";
2
+ import React, { useEffect, useState } from "react";
3
+ import { ManageCompetitionHelpers } from "../api";
4
+ import Colors from "../../constants/colors";
5
+ import { Button, Icons, Text } from "../../Components";
6
+ import moment from "moment-mini";
7
+ import { view_styles } from "../../constants/styles";
8
+ const length_types = ['event'];
9
+ const ContestSettingsForm = ({
10
+ is_valid,
11
+ width,
12
+ competition,
13
+ competition_matches,
14
+ competition_match_markets,
15
+ competition_types,
16
+ events,
17
+ onCompetitionUpdate
18
+ }) => {
19
+ const [expanded, setExpanded] = useState(false);
20
+ const [draft_competition, setDraftCompetition] = useState(undefined);
21
+ const competition_type = competition_types.find(ct => ct.competition_type_id == competition?.competition_type_id);
22
+ const start_time_options = ManageCompetitionHelpers.getStartTimeOptions(competition, competition_matches, competition_match_markets, events);
23
+ useEffect(() => {
24
+ setDraftCompetition(competition);
25
+ }, [competition]);
26
+ const renderCompetitionTypes = data => {
27
+ if (!draft_competition) {
28
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
29
+ }
30
+ const selected = data.item.competition_type_id == competition.competition_type_id ? true : false;
31
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
32
+ style: {
33
+ minWidth: 75,
34
+ margin: 1,
35
+ borderRadius: 8,
36
+ padding: 10,
37
+ backgroundColor: selected ? Colors.brand.midnight : undefined
38
+ },
39
+ onPress: () => onCompetitionUpdate({
40
+ ...draft_competition,
41
+ competition_type_id: data.item.competition_type_id
42
+ })
43
+ }, /*#__PURE__*/React.createElement(Text, {
44
+ textAlign: "center",
45
+ color: selected ? Colors.shades.white : Colors.brand.midnight,
46
+ weight: selected ? 'bold' : 'regular',
47
+ size: 14
48
+ }, data.item.type_label));
49
+ };
50
+ const renderLengthTypes = data => {
51
+ if (!draft_competition) {
52
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
53
+ }
54
+ const selected = data.item == competition?.length_type ? true : false;
55
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
56
+ style: {
57
+ minWidth: 75,
58
+ margin: 1,
59
+ borderRadius: 8,
60
+ padding: 10,
61
+ backgroundColor: selected ? Colors.brand.midnight : undefined
62
+ },
63
+ onPress: () => onCompetitionUpdate({
64
+ ...draft_competition,
65
+ length_type: data.item
66
+ })
67
+ }, /*#__PURE__*/React.createElement(Text, {
68
+ textAlign: "center",
69
+ color: selected ? Colors.shades.white : Colors.brand.midnight,
70
+ weight: selected ? 'bold' : 'regular',
71
+ size: 14
72
+ }, data.item.toUpperCase()));
73
+ };
74
+ const renderStartTimeOptions = data => {
75
+ if (!draft_competition) {
76
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
77
+ }
78
+ const selected = competition?.scheduled_datetime == data.item.start_time ? true : false;
79
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
80
+ style: {
81
+ flexDirection: 'row',
82
+ alignItems: 'center',
83
+ padding: 10
84
+ },
85
+ onPress: () => onCompetitionUpdate({
86
+ ...draft_competition,
87
+ scheduled_datetime: data.item.start_time
88
+ })
89
+ }, /*#__PURE__*/React.createElement(View, {
90
+ style: {
91
+ height: 25,
92
+ width: 25,
93
+ borderRadius: 100,
94
+ borderWidth: 1,
95
+ borderColor: Colors.brand.midnight,
96
+ justifyContent: 'center',
97
+ alignItems: 'center'
98
+ }
99
+ }, selected ? /*#__PURE__*/React.createElement(View, {
100
+ style: {
101
+ height: 15,
102
+ width: 15,
103
+ borderRadius: 100,
104
+ backgroundColor: Colors.brand.midnight
105
+ }
106
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
107
+ style: {
108
+ flex: 1,
109
+ marginLeft: 10
110
+ }
111
+ }, /*#__PURE__*/React.createElement(Text, {
112
+ weight: "bold",
113
+ size: 14,
114
+ color: Colors.brand.midnight
115
+ }, data.item.label), /*#__PURE__*/React.createElement(Text, {
116
+ weight: "semibold",
117
+ style: {
118
+ marginTop: 4
119
+ },
120
+ size: 14,
121
+ color: Colors.brand.slate
122
+ }, moment(data.item.start_time).format('MMM DD YYYY hh:mm a'))));
123
+ };
124
+ if (!competition || !draft_competition) {
125
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
126
+ }
127
+ const is_changed = JSON.stringify({
128
+ max_pick_count: competition.max_pick_count,
129
+ initial_balance: competition.initial_balance
130
+ }) != JSON.stringify({
131
+ max_pick_count: draft_competition.max_pick_count,
132
+ initial_balance: draft_competition.initial_balance
133
+ }) ? true : false;
134
+ return /*#__PURE__*/React.createElement(View, {
135
+ style: {
136
+ ...view_styles.section,
137
+ minWidth: 350,
138
+ maxWidth: width,
139
+ flexGrow: 1
140
+ }
141
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
142
+ style: {
143
+ ...view_styles.section_header,
144
+ maxWidth: width
145
+ },
146
+ onPress: () => setExpanded(!expanded)
147
+ }, is_valid ? /*#__PURE__*/React.createElement(Icons.CheckCirlceIcon, {
148
+ size: 16,
149
+ color: Colors.utility.success
150
+ }) : /*#__PURE__*/React.createElement(Icons.AlertIcon, {
151
+ size: 16,
152
+ color: Colors.utility.warning
153
+ }), /*#__PURE__*/React.createElement(View, {
154
+ style: {
155
+ flex: 1,
156
+ marginLeft: 10,
157
+ marginRight: 10
158
+ }
159
+ }, /*#__PURE__*/React.createElement(Text, {
160
+ theme: "header"
161
+ }, "Contest Settings"), /*#__PURE__*/React.createElement(Text, {
162
+ style: {
163
+ marginTop: 3
164
+ },
165
+ theme: "body"
166
+ }, "Manage the settings of how user will interact with the added contests")), is_changed ? /*#__PURE__*/React.createElement(Button, {
167
+ title: "SAVE",
168
+ padding: 10,
169
+ title_color: Colors.shades.white,
170
+ backgroundColor: Colors.utility.success,
171
+ onPress: () => onCompetitionUpdate(draft_competition)
172
+ }) : /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
173
+ direction: expanded ? 'up' : 'down',
174
+ color: Colors.brand.midnight,
175
+ size: 8
176
+ })), expanded ? /*#__PURE__*/React.createElement(View, {
177
+ style: {
178
+ ...view_styles.section_body,
179
+ padding: 10,
180
+ backgroundColor: Colors.shades.shade100
181
+ }
182
+ }, /*#__PURE__*/React.createElement(View, {
183
+ nativeID: "competition_type",
184
+ style: {
185
+ ...view_styles.body_row,
186
+ flexWrap: 'wrap',
187
+ maxWidth: width,
188
+ borderBottomWidth: 1,
189
+ borderColor: Colors.shades.shade600
190
+ }
191
+ }, /*#__PURE__*/React.createElement(View, {
192
+ style: {
193
+ flex: 1
194
+ }
195
+ }, /*#__PURE__*/React.createElement(Text, {
196
+ theme: "header_2"
197
+ }, "Competition Type"), /*#__PURE__*/React.createElement(Text, {
198
+ style: {
199
+ marginTop: 3
200
+ },
201
+ theme: "body"
202
+ }, competition_type ? competition_type.description : 'Choose the type of competition this is.')), /*#__PURE__*/React.createElement(View, {
203
+ style: {
204
+ margin: 5,
205
+ borderRadius: 8,
206
+ backgroundColor: Colors.shades.white
207
+ }
208
+ }, /*#__PURE__*/React.createElement(FlatList, {
209
+ data: competition_types,
210
+ renderItem: renderCompetitionTypes,
211
+ keyExtractor: item => item.competition_type_id.toString(),
212
+ horizontal: true
213
+ }))), /*#__PURE__*/React.createElement(View, {
214
+ style: {
215
+ ...view_styles.body_row,
216
+ flexWrap: 'wrap',
217
+ maxWidth: width,
218
+ marginTop: 10,
219
+ borderBottomWidth: 1,
220
+ borderColor: Colors.shades.shade600
221
+ }
222
+ }, /*#__PURE__*/React.createElement(View, {
223
+ style: {
224
+ flex: 1
225
+ }
226
+ }, /*#__PURE__*/React.createElement(Text, {
227
+ theme: "header_2"
228
+ }, "Length Type"), /*#__PURE__*/React.createElement(Text, {
229
+ style: {
230
+ marginTop: 3
231
+ }
232
+ }, "Choose how long this competition will remain open.")), /*#__PURE__*/React.createElement(View, {
233
+ style: {
234
+ borderRadius: 8,
235
+ backgroundColor: Colors.shades.white
236
+ }
237
+ }, /*#__PURE__*/React.createElement(FlatList, {
238
+ data: length_types,
239
+ renderItem: renderLengthTypes,
240
+ keyExtractor: item => item,
241
+ horizontal: true
242
+ }))), competition_type?.type == 'pick' ? /*#__PURE__*/React.createElement(View, {
243
+ style: {
244
+ ...view_styles.body_row,
245
+ maxWidth: width,
246
+ marginTop: 10,
247
+ borderBottomWidth: 1,
248
+ borderColor: Colors.shades.shade600
249
+ }
250
+ }, /*#__PURE__*/React.createElement(View, {
251
+ style: {
252
+ flex: 1
253
+ }
254
+ }, /*#__PURE__*/React.createElement(Text, {
255
+ theme: "header_2"
256
+ }, "Max Picks"), /*#__PURE__*/React.createElement(Text, {
257
+ style: {
258
+ marginTop: 3
259
+ }
260
+ }, "The total number of picks allowed by each participant.")), /*#__PURE__*/React.createElement(TextInput, {
261
+ style: {
262
+ ...view_styles.input,
263
+ width: 75,
264
+ textAlign: 'center'
265
+ },
266
+ onChangeText: text => setDraftCompetition({
267
+ ...draft_competition,
268
+ max_pick_count: text
269
+ }),
270
+ placeholder: "0",
271
+ value: draft_competition.max_pick_count,
272
+ placeholderTextColor: Colors.brand.slate
273
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(View, {
274
+ style: {
275
+ ...view_styles.body_row,
276
+ maxWidth: width,
277
+ borderBottomWidth: 1,
278
+ marginTop: 10,
279
+ borderColor: Colors.shades.shade600
280
+ }
281
+ }, /*#__PURE__*/React.createElement(View, {
282
+ style: {
283
+ flex: 1
284
+ }
285
+ }, /*#__PURE__*/React.createElement(Text, {
286
+ theme: "header_2"
287
+ }, "Initial Balance"), /*#__PURE__*/React.createElement(Text, {
288
+ style: {
289
+ marginTop: 3
290
+ }
291
+ }, "Initial balance that each player will start with at the beginning of the competition.")), /*#__PURE__*/React.createElement(TextInput, {
292
+ style: {
293
+ ...view_styles.input,
294
+ width: 75,
295
+ textAlign: 'center'
296
+ },
297
+ onChangeText: text => setDraftCompetition({
298
+ ...draft_competition,
299
+ initial_balance: text
300
+ }),
301
+ placeholder: "0",
302
+ value: draft_competition.initial_balance,
303
+ placeholderTextColor: Colors.brand.slate
304
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
305
+ style: {
306
+ ...view_styles.body_row,
307
+ marginTop: 10
308
+ }
309
+ }, /*#__PURE__*/React.createElement(View, {
310
+ style: {
311
+ flex: 1
312
+ }
313
+ }, /*#__PURE__*/React.createElement(Text, {
314
+ theme: "header_2"
315
+ }, "Start Time Options"), /*#__PURE__*/React.createElement(Text, {
316
+ style: {
317
+ marginTop: 3
318
+ }
319
+ }, "When should this competition stop allowing entrants."))), /*#__PURE__*/React.createElement(View, {
320
+ style: {
321
+ padding: 10,
322
+ backgroundColor: Colors.shades.shade100,
323
+ borderRadius: 4
324
+ }
325
+ }, /*#__PURE__*/React.createElement(FlatList, {
326
+ data: start_time_options,
327
+ renderItem: renderStartTimeOptions,
328
+ keyExtractor: item => item.start_time
329
+ })))) : /*#__PURE__*/React.createElement(React.Fragment, null));
330
+ };
331
+ export default ContestSettingsForm;
332
+
333
+ /*
334
+
335
+
336
+ <View style={{ flexDirection:'row', flexWrap:'wrap', padding:10 }}>
337
+ <View nativeID="contest_settings" style={{ flex:1, minWidth:300, padding:10, borderRadius:8, margin:5, backgroundColor:Colors.shades.white }}>
338
+ <View nativeID="header_row" style={{ flexDirection:'row', alignItems:'center', padding:5, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
339
+ <Text style={{ flex:1, marginRight:10 }} size={22} color={Colors.brand.slate} weight='bold'>Competition Info</Text>
340
+ </View>
341
+ <View nativeID="competition_type" style={{ flexDirection:'row', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
342
+ <View style={{ flex:1, marginRight:5 }}>
343
+ <Text size={16} color={Colors.brand.midnight} weight='bold'>Length Type</Text>
344
+ <Text size={14} color={Colors.brand.midnight} weight='regular'>Choose how long this competition will remain open.</Text>
345
+ </View>
346
+
347
+ </View>
348
+ {competition_type?.type == 'pick' ?
349
+ <View nativeID="max_picks" style={{ flexDirection:'row', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
350
+ <View style={{ flex:1, marginRight:5 }}>
351
+ <Text size={16} color={Colors.brand.midnight} weight='bold'>Max Picks</Text>
352
+ <Text size={14} color={Colors.brand.midnight} weight='regular'>Maximum number of picks that will be allowed for each player in the competition</Text>
353
+ </View>
354
+ <TextInput
355
+ style={{ padding:10, borderRadius:8, backgroundColor:Colors.shades.white }}
356
+ onChangeText={(text) => onCompetitionUpdate({ ...competition, max_pick_count: text })}
357
+ placeholder="0"
358
+ value={competition.max_pick_count}
359
+ placeholderTextColor={Colors.brand.slate}
360
+ />
361
+ </View>
362
+ :<></>}
363
+ {competition_type?.type == 'wager' ?
364
+ <View nativeID="wager_balance" style={{ flexDirection:'row', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
365
+ <View style={{ flex:1, marginRight:5 }}>
366
+ <Text size={16} color={Colors.brand.midnight} weight='bold'>Initial Balance</Text>
367
+ <Text size={14} color={Colors.brand.midnight} weight='regular'>Initial balance that each player will start with at the beginning of the competition.</Text>
368
+ </View>
369
+ <TextInput
370
+ style={{ padding:10, borderRadius:8, backgroundColor:Colors.shades.white }}
371
+ onChangeText={(text) => onCompetitionUpdate({ ...competition, initial_balance: text })}
372
+ placeholder="1000"
373
+ value={competition.initial_balance}
374
+ placeholderTextColor={Colors.brand.slate}
375
+ />
376
+ </View>
377
+ :<></>}
378
+
379
+ </View>
380
+ </View>
381
+ <View style={{ flexDirection:'row', flexWrap:'wrap', padding:10, paddingTop:0 }}>
382
+ <View nativeID="contest_settings" style={{ flex:1, minWidth:300, padding:10, borderRadius:8, margin:5, backgroundColor:Colors.shades.white }}>
383
+ <View nativeID="header_row" style={{ flexDirection:'row', alignItems:'center', padding:5, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
384
+ <Text style={{ flex:1, marginRight:10 }} size={22} color={Colors.brand.slate} weight='bold'>Competition Start</Text>
385
+ </View>
386
+ <View nativeID="max_picks" style={{ padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
387
+ <View nativeID="descriptor">
388
+ <Text size={16} color={Colors.brand.midnight} weight='bold'>Start Time</Text>
389
+ <Text size={14} color={Colors.brand.midnight} weight='regular'>The time when tickets can no longer be purchased</Text>
390
+ </View>
391
+ <View style={{ padding:10 }}>
392
+ <FlatList
393
+ data={start_time_options}
394
+ renderItem={renderStartTimeOptions}
395
+ keyExtractor={(item) => item.start_time}
396
+ />
397
+ </View>
398
+ </View>
399
+ </View>
400
+ </View>
401
+ {competition.length_type == 'time' ?
402
+ <View style={{ flexDirection:'row', flexWrap:'wrap', padding:10 }}>
403
+ <View nativeID="contest_settings" style={{ flex:1, minWidth:300, padding:10, borderRadius:4, marginRight:5, ...styles.float }}>
404
+ <View nativeID="header_row" style={{ flexDirection:'row', alignItems:'center', padding:5, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
405
+ <Text style={{ flex:1, marginRight:10 }} size={22} color={Colors.brand.slate} weight='bold'>Competition End Time</Text>
406
+ </View>
407
+ <View nativeID="max_picks" style={{ padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.white }}>
408
+ <View nativeID="descriptor">
409
+ <Text size={16} color={Colors.brand.midnight} weight='bold'>End Time</Text>
410
+ <Text size={14} color={Colors.brand.midnight} weight='regular'>When will this competition end?</Text>
411
+ </View>
412
+ <View style={{ padding:10 }}>
413
+ <DateTimePicker
414
+ value={competition?.end_datetime}
415
+ onChange={(value:any) => {
416
+ onCompetitionUpdate({ ...competition, end_datetime: value })
417
+ }}
418
+
419
+ />
420
+ </View>
421
+ </View>
422
+ </View>
423
+ </View>
424
+ :<></>}
425
+
426
+
427
+ */
428
+ //# sourceMappingURL=ContestSettingsForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TextInput","View","FlatList","TouchableOpacity","React","useEffect","useState","ManageCompetitionHelpers","Colors","Button","Icons","Text","moment","view_styles","length_types","ContestSettingsForm","is_valid","width","competition","competition_matches","competition_match_markets","competition_types","events","onCompetitionUpdate","expanded","setExpanded","draft_competition","setDraftCompetition","undefined","competition_type","find","ct","competition_type_id","start_time_options","getStartTimeOptions","renderCompetitionTypes","data","createElement","Fragment","selected","item","style","minWidth","margin","borderRadius","padding","backgroundColor","brand","midnight","onPress","textAlign","color","shades","white","weight","size","type_label","renderLengthTypes","length_type","toUpperCase","renderStartTimeOptions","scheduled_datetime","start_time","flexDirection","alignItems","height","borderWidth","borderColor","justifyContent","flex","marginLeft","label","marginTop","slate","format","is_changed","JSON","stringify","max_pick_count","initial_balance","section","maxWidth","flexGrow","section_header","CheckCirlceIcon","utility","success","AlertIcon","warning","marginRight","theme","title","title_color","ChevronIcon","direction","section_body","shade100","nativeID","body_row","flexWrap","borderBottomWidth","shade600","description","renderItem","keyExtractor","toString","horizontal","type","input","onChangeText","text","placeholder","value","placeholderTextColor"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/ContestSettingsForm.tsx"],"mappings":"AACA,SAASA,SAAS,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,gBAAgB,QAAQ,cAAc;AAC1E,OAAOC,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,22 +1,25 @@
1
- import React from 'react';
1
+ import React, { useState } from 'react';
2
2
  import { FlatList, ScrollView, TouchableOpacity, View } from "react-native";
3
3
  import { Button, Switch, Text } from '../../Components';
4
4
  import Colors from '../../constants/colors';
5
5
  import { view_styles } from '../../constants/styles';
6
+ import SearchBox from '../../Components/SearchBox';
6
7
  const MarketSelector = ({
7
- visible,
8
+ width,
9
+ height,
8
10
  markets,
9
11
  selected_markets,
10
12
  onSelectMarket,
11
13
  onDeselectMarket,
12
14
  onClose
13
15
  }) => {
16
+ const [search_value, setSearchValue] = useState('');
17
+ const filtered_markets = markets.filter(m => `${m.type} ${m.description}`.toLowerCase().includes(search_value.toLowerCase()));
14
18
  const renderMarkets = data => {
15
19
  const selected = selected_markets.includes(data.item.market_id) ? true : false;
16
20
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
17
21
  style: {
18
- flexDirection: 'row',
19
- alignItems: 'center',
22
+ ...view_styles.body_row,
20
23
  padding: 10,
21
24
  borderBottomWidth: 1,
22
25
  borderColor: Colors.shades.shade600
@@ -49,43 +52,48 @@ const MarketSelector = ({
49
52
  }
50
53
  }));
51
54
  };
52
- if (!visible) {
53
- return /*#__PURE__*/React.createElement(React.Fragment, null);
54
- }
55
55
  return /*#__PURE__*/React.createElement(View, {
56
56
  style: {
57
- borderRadius: 8,
58
- minWidth: 250,
59
- maxHeight: 450,
60
- backgroundColor: Colors.shades.white,
61
- ...view_styles.float
57
+ width,
58
+ height,
59
+ backgroundColor: Colors.shades.white
62
60
  }
63
61
  }, /*#__PURE__*/React.createElement(View, {
64
62
  style: {
65
- flexDirection: 'row'
63
+ ...view_styles.section_header
66
64
  }
67
65
  }, /*#__PURE__*/React.createElement(View, {
68
66
  style: {
69
67
  flex: 1
70
68
  }
71
- }), /*#__PURE__*/React.createElement(Button, {
72
- title: "CLOSE",
73
- style: {
74
- alignSelf: 'flex-end'
75
- },
76
- backgroundColor: Colors.brand.electric,
77
- padding: 10,
78
- title_color: Colors.shades.white,
79
- borderRadius: 8,
80
- onPress: () => onClose()
81
- })), /*#__PURE__*/React.createElement(ScrollView, {
69
+ }, /*#__PURE__*/React.createElement(Text, {
70
+ theme: "header"
71
+ }, "MANAGE MARKETS"))), /*#__PURE__*/React.createElement(ScrollView, {
82
72
  style: {
83
73
  flex: 1
84
74
  }
85
- }, /*#__PURE__*/React.createElement(FlatList, {
86
- data: markets,
75
+ }, /*#__PURE__*/React.createElement(View, {
76
+ style: {
77
+ ...view_styles.section_body
78
+ }
79
+ }, /*#__PURE__*/React.createElement(View, {
80
+ style: {
81
+ marginTop: 0
82
+ }
83
+ }, /*#__PURE__*/React.createElement(SearchBox, {
84
+ onChange: text => setSearchValue(text),
85
+ hide_search_button: true
86
+ })), /*#__PURE__*/React.createElement(FlatList, {
87
+ data: filtered_markets,
87
88
  renderItem: renderMarkets,
88
89
  keyExtractor: item => item.market_id.toString()
90
+ }))), /*#__PURE__*/React.createElement(View, {
91
+ style: {
92
+ ...view_styles.section_footer
93
+ }
94
+ }, /*#__PURE__*/React.createElement(Button, {
95
+ title: "CLOSE",
96
+ onPress: () => onClose()
89
97
  })));
90
98
  };
91
99
  export default MarketSelector;
@@ -1 +1 @@
1
- {"version":3,"names":["React","FlatList","ScrollView","TouchableOpacity","View","Button","Switch","Text","Colors","view_styles","MarketSelector","visible","markets","selected_markets","onSelectMarket","onDeselectMarket","onClose","renderMarkets","data","selected","includes","item","market_id","createElement","style","flexDirection","alignItems","padding","borderBottomWidth","borderColor","shades","shade600","onPress","flex","marginRight","size","color","brand","midnight","weight","type","stat_label","marginTop","description","switch_type","value","onChange","Fragment","borderRadius","minWidth","maxHeight","backgroundColor","white","float","title","alignSelf","electric","title_color","renderItem","keyExtractor","toString"],"sourceRoot":"../../../../src","sources":["Competit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AM;IACCiD,KAAK,EAAC,OAAO;IACb9B,KAAK,EAAE;MAAE+B,SAAS,EAAC;IAAW,CAAE;IAChCJ,eAAe,EAAE3C,MAAM,CAAC6B,KAAK,CAACmB,QAAS;IACvC7B,OAAO,EAAE,EAAG;IACZ8B,WAAW,EAAEjD,MAAM,CAACsB,MAAM,CAACsB,KAAM;IACjCJ,YAAY,EAAE,CAAE;IAChBhB,OAAO,EAAEA,CAAA,KAAMhB,OAAO,CAAC;EAAE,CAC5B,CACH,CAAC,eACPhB,KAAA,CAAAuB,aAAA,CAACrB,UAAU;IAACsB,KAAK,EAAE;MAAES,IAAI,EAAC;IAAE;EAAE,gBAC1BjC,KAAA,CAAAuB,aAAA,CAACtB,QAAQ;IACLiB,IAAI,EAAEN,OAAQ;IACd8C,UAAU,EAAEzC,aAAc;IAC1B0C,YAAY,EAAGtC,IAAI,IAAKA,IAAI,CAACC,SAAS,CAACsC,QAAQ,CAAC;EAAE,CACrD,CACO,CACV,CAAC;AAEf,CAAC;AAED,eAAelD,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","FlatList","ScrollView","TouchableOpacity","View","Button","Switch","Text","Colors","view_styles","SearchBox","MarketSelector","width","height","markets","selected_markets","onSelectMarket","onDeselectMarket","onClose","search_value","setSearchValue","filtered_markets","filter","m","type","description","toLowerCase","includes","renderMarkets","data","selected","item","market_id","createElement","style","body_row","padding","borderBottomWidth","borderColor","shades","shade600","onPress","flex","marginRight","size","color","brand","midnight","weight","stat_label","marginTop","switch_type","value","onChange","backgroundColor","white","section_header","theme","section_body","text","hide_search_button","renderItem","keyExtractor","toString","section_footer","title"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/MarketSelector.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AAE3E,SAASC,MAAM,EAAEC,MAAM,EAAEC,IAAI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