be-components 1.4.8 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/lib/commonjs/Competition/api/index.js +15 -0
  2. package/lib/commonjs/Competition/api/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
  4. package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/SeasonCard.js +61 -0
  6. package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -0
  7. package/lib/commonjs/Competition/index.js +23 -3
  8. package/lib/commonjs/Competition/index.js.map +1 -1
  9. package/lib/commonjs/CompetitionManager/api/index.js +3 -5
  10. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  11. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +1 -61
  12. package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  13. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  14. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  15. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +4 -0
  16. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  17. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  18. package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  19. package/lib/commonjs/CompetitionSeason/api/index.js +134 -0
  20. package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -0
  21. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +127 -0
  22. package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  23. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +253 -0
  24. package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  25. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +126 -0
  26. package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  27. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +324 -0
  28. package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  29. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +175 -0
  30. package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  31. package/lib/commonjs/CompetitionSeason/index.js +278 -0
  32. package/lib/commonjs/CompetitionSeason/index.js.map +1 -0
  33. package/lib/commonjs/CompetitionSeasonManager/api/index.js +182 -0
  34. package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -0
  35. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  36. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  37. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +153 -0
  38. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  39. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +388 -0
  40. package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  41. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +108 -0
  42. package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  43. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +242 -0
  44. package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  45. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +352 -0
  46. package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  47. package/lib/commonjs/CompetitionSeasonManager/index.js +190 -0
  48. package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -0
  49. package/lib/commonjs/Components/Switch.js +3 -0
  50. package/lib/commonjs/Components/Switch.js.map +1 -1
  51. package/lib/commonjs/Engage/index.js +28 -1
  52. package/lib/commonjs/Engage/index.js.map +1 -1
  53. package/lib/commonjs/index.js +14 -0
  54. package/lib/commonjs/index.js.map +1 -1
  55. package/lib/module/Competition/api/index.js +15 -0
  56. package/lib/module/Competition/api/index.js.map +1 -1
  57. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  58. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  59. package/lib/module/Competition/components/SeasonCard.js +54 -0
  60. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  61. package/lib/module/Competition/index.js +23 -3
  62. package/lib/module/Competition/index.js.map +1 -1
  63. package/lib/module/CompetitionManager/api/index.js +3 -5
  64. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  65. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  66. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  67. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  68. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  69. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  70. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  71. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  72. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  73. package/lib/module/CompetitionSeason/api/index.js +128 -0
  74. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  75. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  76. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  77. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  78. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  79. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  80. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  81. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  82. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  83. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  84. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  85. package/lib/module/CompetitionSeason/index.js +269 -0
  86. package/lib/module/CompetitionSeason/index.js.map +1 -0
  87. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  88. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  89. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  90. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  91. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  92. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  93. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  94. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  95. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  96. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  97. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  98. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  100. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  101. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  102. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  103. package/lib/module/Components/Switch.js +3 -0
  104. package/lib/module/Components/Switch.js.map +1 -1
  105. package/lib/module/Engage/index.js +28 -1
  106. package/lib/module/Engage/index.js.map +1 -1
  107. package/lib/module/index.js +3 -1
  108. package/lib/module/index.js.map +1 -1
  109. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  110. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  111. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  112. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  113. package/lib/typescript/src/Competition/index.d.ts +3 -2
  114. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  115. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  116. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  117. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  118. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  119. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  120. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  121. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  122. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  123. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  124. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  125. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  126. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  127. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  128. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  129. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  130. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  131. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  133. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  135. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  137. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  139. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  141. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  143. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  150. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  151. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  152. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  153. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  154. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  155. package/lib/typescript/src/index.d.ts +3 -1
  156. package/lib/typescript/src/index.d.ts.map +1 -1
  157. package/package.json +1 -1
  158. package/src/Competition/api/index.ts +15 -0
  159. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  160. package/src/Competition/components/SeasonCard.tsx +46 -0
  161. package/src/Competition/index.tsx +45 -27
  162. package/src/CompetitionManager/api/index.ts +2 -5
  163. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  164. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  165. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  166. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  167. package/src/CompetitionSeason/api/index.ts +111 -0
  168. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  169. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  170. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  171. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  172. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  173. package/src/CompetitionSeason/index.tsx +244 -0
  174. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  175. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  176. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  177. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  178. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  179. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  180. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  181. package/src/CompetitionSeasonManager/index.tsx +151 -0
  182. package/src/Components/Switch.tsx +8 -3
  183. package/src/Engage/index.tsx +20 -0
  184. package/src/index.tsx +4 -1
  185. package/src/types.d.ts +48 -5
  186. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  187. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  188. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  189. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  190. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  191. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  192. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  193. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  194. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  195. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  196. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  197. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  198. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  199. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -0,0 +1,233 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { TouchableOpacity, View, Image } from 'react-native';
3
+ import { view_styles } from '../../constants/styles';
4
+ import { Button, Icons, Switch, Text, TextInput } from '../../Components';
5
+ import Colors from '../../constants/colors';
6
+ import ImageUploader from '../../Components/ImageUploader';
7
+ import { ManageSeasonHelpers } from '../api';
8
+ const SeasonInfoForm = ({
9
+ competition_season,
10
+ player,
11
+ width,
12
+ onSeasonUpdate
13
+ }) => {
14
+ const [expanded, setExpanded] = useState(false);
15
+ const [draft_season, setDraftSeason] = useState();
16
+ useEffect(() => {
17
+ setDraftSeason(competition_season);
18
+ }, [competition_season]);
19
+ if (!draft_season) {
20
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
21
+ }
22
+ const is_changed = ManageSeasonHelpers.isInfoChanged(competition_season, draft_season);
23
+ return /*#__PURE__*/React.createElement(View, {
24
+ style: {
25
+ ...view_styles.section
26
+ }
27
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
28
+ style: {
29
+ ...view_styles.section_header
30
+ },
31
+ onPress: () => setExpanded(!expanded)
32
+ }, /*#__PURE__*/React.createElement(View, {
33
+ style: {
34
+ flex: 1
35
+ }
36
+ }, /*#__PURE__*/React.createElement(Text, {
37
+ theme: "header"
38
+ }, "Season Info"), /*#__PURE__*/React.createElement(Text, {
39
+ style: {
40
+ marginTop: 3
41
+ }
42
+ }, "Update high level information for this competition season")), is_changed ? /*#__PURE__*/React.createElement(Button, {
43
+ title: "SAVE",
44
+ padding: 10,
45
+ title_color: Colors.shades.white,
46
+ backgroundColor: Colors.utility.success,
47
+ onPress: () => onSeasonUpdate(draft_season)
48
+ }) : /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
49
+ direction: expanded ? 'up' : 'down',
50
+ color: Colors.brand.midnight,
51
+ size: 8
52
+ })), expanded ? /*#__PURE__*/React.createElement(View, {
53
+ style: {
54
+ ...view_styles.section_body
55
+ }
56
+ }, /*#__PURE__*/React.createElement(View, {
57
+ nativeID: "competition_image",
58
+ style: {
59
+ ...view_styles.body_row,
60
+ flexWrap: 'wrap',
61
+ maxWidth: width,
62
+ borderBottomWidth: 1,
63
+ borderColor: Colors.shades.shade600
64
+ }
65
+ }, /*#__PURE__*/React.createElement(View, {
66
+ style: {
67
+ flex: 1,
68
+ margin: 5,
69
+ minWidth: 200
70
+ }
71
+ }, /*#__PURE__*/React.createElement(Text, {
72
+ theme: "header_2"
73
+ }, "Competition Image"), /*#__PURE__*/React.createElement(Text, {
74
+ style: {
75
+ marginTop: 3
76
+ },
77
+ theme: "body"
78
+ }, "Give this competition an image so it is recognizable to those trying to join.")), /*#__PURE__*/React.createElement(ImageUploader, {
79
+ public_id: `season_image_${draft_season.competition_season_id}_${Math.random()}`,
80
+ onFinishUpload: obj => onSeasonUpdate({
81
+ ...draft_season,
82
+ image: {
83
+ ...obj,
84
+ url: obj.secure_url
85
+ }
86
+ })
87
+ }, /*#__PURE__*/React.createElement(Image, {
88
+ source: {
89
+ uri: draft_season.image?.url
90
+ },
91
+ style: {
92
+ height: 50,
93
+ width: 50,
94
+ borderRadius: 4
95
+ },
96
+ resizeMode: "cover"
97
+ }), /*#__PURE__*/React.createElement(Text, {
98
+ size: 12,
99
+ color: Colors.brand.electric,
100
+ textAlign: "center"
101
+ }, "CHANGE"))), /*#__PURE__*/React.createElement(View, {
102
+ nativeID: "competition_name",
103
+ style: {
104
+ ...view_styles.body_row,
105
+ flexWrap: 'wrap',
106
+ maxWidth: width,
107
+ borderBottomWidth: 1,
108
+ borderColor: Colors.shades.shade600
109
+ }
110
+ }, /*#__PURE__*/React.createElement(View, {
111
+ style: {
112
+ flex: 1,
113
+ margin: 5,
114
+ minWidth: 200
115
+ }
116
+ }, /*#__PURE__*/React.createElement(Text, {
117
+ theme: "header_2"
118
+ }, "Competition Name"), /*#__PURE__*/React.createElement(Text, {
119
+ style: {
120
+ marginTop: 3
121
+ },
122
+ theme: "body"
123
+ }, "Give the competition a memorable name that aligns with the type and payout.")), /*#__PURE__*/React.createElement(TextInput, {
124
+ style: {
125
+ ...view_styles.input,
126
+ flexGrow: 1,
127
+ margin: 5
128
+ },
129
+ onChangeText: text => setDraftSeason({
130
+ ...draft_season,
131
+ season_name: text
132
+ }),
133
+ value: draft_season.season_name,
134
+ placeholder: "Competition Name",
135
+ placeholderTextColor: Colors.brand.slate
136
+ })), /*#__PURE__*/React.createElement(View, {
137
+ nativeID: "competition_description",
138
+ style: {
139
+ ...view_styles.body_row,
140
+ flexWrap: 'wrap',
141
+ maxWidth: width,
142
+ marginTop: 10,
143
+ borderBottomWidth: 1,
144
+ borderColor: Colors.shades.shade600
145
+ }
146
+ }, /*#__PURE__*/React.createElement(View, {
147
+ style: {
148
+ flex: 1,
149
+ margin: 5,
150
+ minWidth: 200
151
+ }
152
+ }, /*#__PURE__*/React.createElement(Text, {
153
+ theme: "header_2"
154
+ }, "Competition Description"), /*#__PURE__*/React.createElement(Text, {
155
+ style: {
156
+ marginTop: 3
157
+ },
158
+ theme: "body"
159
+ }, "Give the competition a memorable description that would entice users to participate.")), /*#__PURE__*/React.createElement(TextInput, {
160
+ style: {
161
+ ...view_styles.input,
162
+ flexGrow: 1,
163
+ margin: 5
164
+ },
165
+ onChangeText: text => setDraftSeason({
166
+ ...draft_season,
167
+ season_description: text
168
+ }),
169
+ value: draft_season.season_description,
170
+ placeholder: "Pick 5 games ATS from NFL Week 6 matchups",
171
+ placeholderTextColor: Colors.brand.slate
172
+ })), player?.role == 'admin' ? /*#__PURE__*/React.createElement(View, {
173
+ nativeID: "invite_only",
174
+ style: {
175
+ ...view_styles.body_row,
176
+ flexWrap: 'wrap',
177
+ marginTop: 10,
178
+ borderBottomWidth: 1,
179
+ borderColor: Colors.shades.shade600
180
+ }
181
+ }, /*#__PURE__*/React.createElement(View, {
182
+ style: {
183
+ flex: 1,
184
+ margin: 5,
185
+ marginRight: 15
186
+ }
187
+ }, /*#__PURE__*/React.createElement(Text, {
188
+ theme: "header_2"
189
+ }, "Make Template"), /*#__PURE__*/React.createElement(Text, {
190
+ style: {
191
+ marginTop: 3
192
+ },
193
+ theme: "body"
194
+ }, "Can this season be selected by others to replicate? Any competition created in this competition will be extrapolated to others.")), /*#__PURE__*/React.createElement(Switch, {
195
+ value: draft_season.template ?? false,
196
+ switch_type: "on_off",
197
+ onChange: value => onSeasonUpdate({
198
+ ...draft_season,
199
+ template: value
200
+ })
201
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
202
+ nativeID: "invite_only",
203
+ style: {
204
+ ...view_styles.body_row,
205
+ flexWrap: 'wrap',
206
+ marginTop: 10,
207
+ borderBottomWidth: 1,
208
+ borderColor: Colors.shades.shade600
209
+ }
210
+ }, /*#__PURE__*/React.createElement(View, {
211
+ style: {
212
+ flex: 1,
213
+ margin: 5,
214
+ marginRight: 15
215
+ }
216
+ }, /*#__PURE__*/React.createElement(Text, {
217
+ theme: "header_2"
218
+ }, "Make Private"), /*#__PURE__*/React.createElement(Text, {
219
+ style: {
220
+ marginTop: 3
221
+ },
222
+ theme: "body"
223
+ }, "Only access this competition using an invite code.")), /*#__PURE__*/React.createElement(Switch, {
224
+ value: draft_season.invite_only,
225
+ switch_type: "on_off",
226
+ onChange: value => onSeasonUpdate({
227
+ ...draft_season,
228
+ invite_only: value
229
+ })
230
+ }))) : /*#__PURE__*/React.createElement(React.Fragment, null));
231
+ };
232
+ export default SeasonInfoForm;
233
+ //# sourceMappingURL=SeasonInfoForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","TouchableOpacity","View","Image","view_styles","Button","Icons","Switch","Text","TextInput","Colors","ImageUploader","ManageSeasonHelpers","SeasonInfoForm","competition_season","player","width","onSeasonUpdate","expanded","setExpanded","draft_season","setDraftSeason","createElement","Fragment","is_changed","isInfoChanged","style","section","section_header","onPress","flex","theme","marginTop","title","padding","title_color","shades","white","backgroundColor","utility","success","ChevronIcon","direction","color","brand","midnight","size","section_body","nativeID","body_row","flexWrap","maxWidth","borderBottomWidth","borderColor","shade600","margin","minWidth","public_id","competition_season_id","Math","random","onFinishUpload","obj","image","url","secure_url","source","uri","height","borderRadius","resizeMode","electric","textAlign","input","flexGrow","onChangeText","text","season_name","value","placeholder","placeholderTextColor","slate","season_description","role","marginRight","template","switch_type","onChange","invite_only"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonInfoForm.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,gBAAgB,EAAEC,IAAI,EAAEC,KAAK,QAAQ,cAAc;AAC5D,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,MAAM,EAAEC,KAAK,EAAEC,MAAM,EAAEC,IAAI,EAAEC,SAAS,QAAQ,kBAAkB;AACzE,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,OAAOC,aAAa,MAAM,gCAAgC;AAE1D,SAASC,mBAAmB,QAAQ,QAAQ;AAS5C,MAAMC,cAAc,GAAGA,CAAC;EAAEC,kBAAkB;EAAEC,MAAM;EAAEC,KAAK;EAAEC;AAAmC,CAAC,KAAK;EAClG,MAAM,CAAEC,QAAQ,EAAEC,WAAW,CAAE,GAAGnB,QAAQ,CAAC,KAAK,CAAC;EACjD,MAAM,CAAEoB,YAAY,EAAEC,cAAc,CAAE,GAAGrB,QAAQ,CAAy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,EAAC,MAAM;MAAElB,SAAS,EAAC,EAAE;MAAEoB,iBAAiB,EAAC,CAAC;MAAEC,WAAW,EAAC3C,MAAM,CAAC0B,MAAM,CAACkB;IAAU;EAAE,gBACrJxD,KAAA,CAAAwB,aAAA,CAACpB,IAAI;IAACwB,KAAK,EAAE;MAAEI,IAAI,EAAC,CAAC;MAAEyB,MAAM,EAAC,CAAC;MAAE6B,WAAW,EAAC;IAAG;EAAE,gBAC9CtF,KAAA,CAAAwB,aAAA,CAACd,IAAI;IAACuB,KAAK,EAAC;EAAU,GAAC,cAAkB,CAAC,eAC1CjC,KAAA,CAAAwB,aAAA,CAACd,IAAI;IAACkB,KAAK,EAAE;MAAEM,SAAS,EAAC;IAAE,CAAE;IAACD,KAAK,EAAC;EAAM,GAAC,oDAAwD,CACjG,CAAC,eACPjC,KAAA,CAAAwB,aAAA,CAACf,MAAM;IACHuE,KAAK,EAAE1D,YAAY,CAACoE,WAAY;IAChCF,WAAW,EAAC,QAAQ;IACpBC,QAAQ,EAAGT,KAAK,IAAK7D,cAAc,CAAC;MAAE,GAAGG,YAAY;MAAEoE,WAAW,EAAEV;IAAM,CAAC;EAAE,CAChF,CACC,CACJ,CAAC,gBACNhF,KAAA,CAAAwB,aAAA,CAAAxB,KAAA,CAAAyB,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAED,eAAeV,cAAc","ignoreList":[]}
@@ -0,0 +1,343 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { TouchableOpacity, View, FlatList } from 'react-native';
3
+ import { view_styles } from '../../constants/styles';
4
+ import { Button, Icons, Switch, Text, TextInput } from '../../Components';
5
+ import Colors from '../../constants/colors';
6
+ import { ManageSeasonHelpers } from '../api';
7
+ import DropDown from '../../Components/Dropdown';
8
+ const SeasonSettingsForm = ({
9
+ competition_season,
10
+ width,
11
+ competition_types,
12
+ competition_result_types,
13
+ onSeasonUpdate
14
+ }) => {
15
+ const [expanded, setExpanded] = useState(false);
16
+ const [draft_season, setDraftSeason] = useState();
17
+ const competition_type = competition_types.find(ct => ct.competition_type_id == draft_season?.competition_type_id);
18
+ const competition_result_type = competition_result_types.find(crt => crt.competition_result_type_id == draft_season?.competition_result_type_id);
19
+ useEffect(() => {
20
+ setDraftSeason(competition_season);
21
+ }, [competition_season]);
22
+ if (!draft_season) {
23
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
24
+ }
25
+ const renderCompetitionTypes = data => {
26
+ if (!draft_season) {
27
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
28
+ }
29
+ const selected = data.item.competition_type_id == draft_season.competition_type_id ? true : false;
30
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
31
+ style: {
32
+ minWidth: 75,
33
+ margin: 1,
34
+ borderRadius: 8,
35
+ padding: 10,
36
+ backgroundColor: selected ? Colors.brand.midnight : undefined
37
+ },
38
+ onPress: () => onSeasonUpdate({
39
+ ...draft_season,
40
+ competition_type_id: data.item.competition_type_id
41
+ })
42
+ }, /*#__PURE__*/React.createElement(Text, {
43
+ textAlign: "center",
44
+ color: selected ? Colors.shades.white : Colors.brand.midnight,
45
+ weight: selected ? 'bold' : 'regular',
46
+ size: 14
47
+ }, data.item.type_label));
48
+ };
49
+ const is_changed = ManageSeasonHelpers.isSettingsChanged(competition_season, draft_season);
50
+ const is_valid = ManageSeasonHelpers.isSettingsValid(draft_season);
51
+ return /*#__PURE__*/React.createElement(View, {
52
+ style: {
53
+ ...view_styles.section
54
+ }
55
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
56
+ style: {
57
+ ...view_styles.section_header
58
+ },
59
+ onPress: () => setExpanded(!expanded)
60
+ }, /*#__PURE__*/React.createElement(View, {
61
+ style: {
62
+ flex: 1
63
+ }
64
+ }, /*#__PURE__*/React.createElement(Text, {
65
+ theme: "header"
66
+ }, "Season Settings"), /*#__PURE__*/React.createElement(Text, {
67
+ style: {
68
+ marginTop: 3
69
+ }
70
+ }, "Update season settings")), is_changed ? /*#__PURE__*/React.createElement(Button, {
71
+ title: "SAVE",
72
+ padding: 10,
73
+ style: {
74
+ opacity: is_valid ? 1 : 0.5
75
+ },
76
+ disabled: !is_valid,
77
+ title_color: Colors.shades.white,
78
+ backgroundColor: Colors.utility.success,
79
+ onPress: () => onSeasonUpdate(draft_season)
80
+ }) : /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
81
+ direction: expanded ? 'up' : 'down',
82
+ color: Colors.brand.midnight,
83
+ size: 8
84
+ })), expanded ? /*#__PURE__*/React.createElement(View, {
85
+ style: {
86
+ ...view_styles.section_body
87
+ }
88
+ }, /*#__PURE__*/React.createElement(View, {
89
+ style: {
90
+ ...view_styles.body_row,
91
+ maxWidth: width,
92
+ borderBottomWidth: 1,
93
+ marginTop: 10,
94
+ borderColor: Colors.shades.shade600
95
+ }
96
+ }, /*#__PURE__*/React.createElement(View, {
97
+ style: {
98
+ flex: 1
99
+ }
100
+ }, /*#__PURE__*/React.createElement(Text, {
101
+ theme: "header_2"
102
+ }, "Ticket Price"), /*#__PURE__*/React.createElement(Text, {
103
+ style: {
104
+ marginTop: 3
105
+ }
106
+ }, "How much does it cost to enter this season?")), /*#__PURE__*/React.createElement(TextInput, {
107
+ style: {
108
+ ...view_styles.input,
109
+ width: 75,
110
+ textAlign: 'center'
111
+ },
112
+ onChangeText: text => setDraftSeason({
113
+ ...draft_season,
114
+ ticket_price: text
115
+ }),
116
+ placeholder: "0",
117
+ value: draft_season.ticket_price,
118
+ placeholderTextColor: Colors.brand.slate
119
+ })), /*#__PURE__*/React.createElement(View, {
120
+ style: {
121
+ ...view_styles.body_row,
122
+ maxWidth: width,
123
+ borderBottomWidth: 1,
124
+ marginTop: 10,
125
+ borderColor: Colors.shades.shade600
126
+ }
127
+ }, /*#__PURE__*/React.createElement(View, {
128
+ style: {
129
+ flex: 1
130
+ }
131
+ }, /*#__PURE__*/React.createElement(Text, {
132
+ theme: "header_2"
133
+ }, "Season Payout Allocation"), /*#__PURE__*/React.createElement(Text, {
134
+ style: {
135
+ marginTop: 3
136
+ }
137
+ }, "How much of the total pot should be allocated to the season winners? Remaining is paid out each competition.")), /*#__PURE__*/React.createElement(TextInput, {
138
+ style: {
139
+ ...view_styles.input,
140
+ width: 75,
141
+ textAlign: 'center'
142
+ },
143
+ onChangeText: text => setDraftSeason({
144
+ ...draft_season,
145
+ payout_allocation: text
146
+ }),
147
+ placeholder: "0",
148
+ value: draft_season.payout_allocation,
149
+ placeholderTextColor: Colors.brand.slate
150
+ })), /*#__PURE__*/React.createElement(View, {
151
+ nativeID: "competition_type",
152
+ style: {
153
+ ...view_styles.body_row,
154
+ flexWrap: 'wrap',
155
+ maxWidth: width,
156
+ borderBottomWidth: 1,
157
+ borderColor: Colors.shades.shade600
158
+ }
159
+ }, /*#__PURE__*/React.createElement(View, {
160
+ style: {
161
+ flex: 1
162
+ }
163
+ }, /*#__PURE__*/React.createElement(Text, {
164
+ theme: "header_2"
165
+ }, "Competition Type"), /*#__PURE__*/React.createElement(Text, {
166
+ style: {
167
+ marginTop: 3
168
+ },
169
+ theme: "body"
170
+ }, competition_type ? competition_type.description : 'Choose the type of competition this is.')), /*#__PURE__*/React.createElement(View, {
171
+ style: {
172
+ margin: 5,
173
+ borderRadius: 8,
174
+ backgroundColor: Colors.shades.white
175
+ }
176
+ }, /*#__PURE__*/React.createElement(FlatList, {
177
+ data: competition_types,
178
+ renderItem: renderCompetitionTypes,
179
+ keyExtractor: item => item.competition_type_id.toString(),
180
+ horizontal: true
181
+ }))), competition_type?.type == 'pick' ? /*#__PURE__*/React.createElement(View, {
182
+ style: {
183
+ ...view_styles.body_row,
184
+ maxWidth: width,
185
+ marginTop: 10,
186
+ borderBottomWidth: 1,
187
+ borderColor: Colors.shades.shade600
188
+ }
189
+ }, /*#__PURE__*/React.createElement(View, {
190
+ style: {
191
+ flex: 1
192
+ }
193
+ }, /*#__PURE__*/React.createElement(Text, {
194
+ theme: "header_2"
195
+ }, "Max Picks"), /*#__PURE__*/React.createElement(Text, {
196
+ style: {
197
+ marginTop: 3
198
+ }
199
+ }, "The total number of picks allowed by each participant.")), /*#__PURE__*/React.createElement(TextInput, {
200
+ style: {
201
+ ...view_styles.input,
202
+ width: 75,
203
+ textAlign: 'center'
204
+ },
205
+ onChangeText: text => setDraftSeason({
206
+ ...draft_season,
207
+ max_picks: text
208
+ }),
209
+ placeholder: "0",
210
+ value: draft_season.max_picks,
211
+ placeholderTextColor: Colors.brand.slate
212
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(View, {
213
+ style: {
214
+ ...view_styles.body_row,
215
+ maxWidth: width,
216
+ borderBottomWidth: 1,
217
+ marginTop: 10,
218
+ borderColor: Colors.shades.shade600
219
+ }
220
+ }, /*#__PURE__*/React.createElement(View, {
221
+ style: {
222
+ flex: 1
223
+ }
224
+ }, /*#__PURE__*/React.createElement(Text, {
225
+ theme: "header_2"
226
+ }, "Initial Balance"), /*#__PURE__*/React.createElement(Text, {
227
+ style: {
228
+ marginTop: 3
229
+ }
230
+ }, "Initial balance that each player will start with at the beginning of the competition.")), /*#__PURE__*/React.createElement(TextInput, {
231
+ style: {
232
+ ...view_styles.input,
233
+ width: 75,
234
+ textAlign: 'center'
235
+ },
236
+ onChangeText: text => setDraftSeason({
237
+ ...draft_season,
238
+ initial_balance: text
239
+ }),
240
+ placeholder: "0",
241
+ value: draft_season.initial_balance,
242
+ placeholderTextColor: Colors.brand.slate
243
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), competition_type?.type == 'wager' ? /*#__PURE__*/React.createElement(View, {
244
+ style: {
245
+ ...view_styles.body_row,
246
+ maxWidth: width,
247
+ borderBottomWidth: 1,
248
+ marginTop: 10,
249
+ borderColor: Colors.shades.shade600
250
+ }
251
+ }, /*#__PURE__*/React.createElement(View, {
252
+ style: {
253
+ flex: 1
254
+ }
255
+ }, /*#__PURE__*/React.createElement(Text, {
256
+ theme: "header_2"
257
+ }, "Rollover Balance"), /*#__PURE__*/React.createElement(Text, {
258
+ style: {
259
+ marginTop: 3
260
+ }
261
+ }, "Should the wager balance for each player rollover from prior competitions?")), /*#__PURE__*/React.createElement(Switch, {
262
+ value: draft_season.balance_rollover,
263
+ switch_type: "on_off",
264
+ onChange: value => onSeasonUpdate({
265
+ ...draft_season,
266
+ balance_rollover: value
267
+ })
268
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(View, {
269
+ nativeID: "competition_payout",
270
+ style: {
271
+ ...view_styles.body_row,
272
+ flexWrap: 'wrap',
273
+ maxWidth: width
274
+ }
275
+ }, /*#__PURE__*/React.createElement(View, {
276
+ style: {
277
+ flex: 1,
278
+ margin: 5,
279
+ minWidth: 200
280
+ }
281
+ }, /*#__PURE__*/React.createElement(Text, {
282
+ theme: "header_2"
283
+ }, "Competition Payout Type"), /*#__PURE__*/React.createElement(Text, {
284
+ style: {
285
+ marginTop: 3
286
+ },
287
+ theme: "body"
288
+ }, competition_result_type ? competition_result_type.description : 'Choose the type of payout for this competition')), /*#__PURE__*/React.createElement(View, {
289
+ style: {
290
+ justifyContent: 'flex-end',
291
+ margin: 5,
292
+ borderRadius: 8,
293
+ backgroundColor: Colors.shades.white
294
+ }
295
+ }, /*#__PURE__*/React.createElement(DropDown, {
296
+ dropdown_options: [{
297
+ value: 'competition_result_type_id',
298
+ eligible_options: competition_result_types.filter(crt => crt.type != 'outpace').map(t => t.label)
299
+ }],
300
+ selected_value: competition_result_type?.label ?? '',
301
+ onOptionSelect: type => {
302
+ const new_result_type = competition_result_types.find(crt => crt.label == type);
303
+ if (!new_result_type) {
304
+ return;
305
+ }
306
+ onSeasonUpdate({
307
+ ...draft_season,
308
+ competition_result_type_id: new_result_type.competition_result_type_id
309
+ });
310
+ }
311
+ }))), /*#__PURE__*/React.createElement(View, {
312
+ nativeID: "invite_only",
313
+ style: {
314
+ ...view_styles.body_row,
315
+ flexWrap: 'wrap',
316
+ marginTop: 10,
317
+ borderBottomWidth: 1,
318
+ borderColor: Colors.shades.shade600
319
+ }
320
+ }, /*#__PURE__*/React.createElement(View, {
321
+ style: {
322
+ flex: 1,
323
+ margin: 5,
324
+ marginRight: 15
325
+ }
326
+ }, /*#__PURE__*/React.createElement(Text, {
327
+ theme: "header_2"
328
+ }, "Allow Late Buy In"), /*#__PURE__*/React.createElement(Text, {
329
+ style: {
330
+ marginTop: 3
331
+ },
332
+ theme: "body"
333
+ }, "Determines if a player can join the season after it has started.")), /*#__PURE__*/React.createElement(Switch, {
334
+ value: draft_season.allow_late_buy_in,
335
+ switch_type: "on_off",
336
+ onChange: value => onSeasonUpdate({
337
+ ...draft_season,
338
+ allow_late_buy_in: value
339
+ })
340
+ }))) : /*#__PURE__*/React.createElement(React.Fragment, null));
341
+ };
342
+ export default SeasonSettingsForm;
343
+ //# sourceMappingURL=SeasonSettingsForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useState","TouchableOpacity","View","FlatList","view_styles","Button","Icons","Switch","Text","TextInput","Colors","ManageSeasonHelpers","DropDown","SeasonSettingsForm","competition_season","width","competition_types","competition_result_types","onSeasonUpdate","expanded","setExpanded","draft_season","setDraftSeason","competition_type","find","ct","competition_type_id","competition_result_type","crt","competition_result_type_id","createElement","Fragment","renderCompetitionTypes","data","selected","item","style","minWidth","margin","borderRadius","padding","backgroundColor","brand","midnight","undefined","onPress","textAlign","color","shades","white","weight","size","type_label","is_changed","isSettingsChanged","is_valid","isSettingsValid","section","section_header","flex","theme","marginTop","title","opacity","disabled","title_color","utility","success","ChevronIcon","direction","section_body","body_row","maxWidth","borderBottomWidth","borderColor","shade600","input","onChangeText","text","ticket_price","placeholder","value","placeholderTextColor","slate","payout_allocation","nativeID","flexWrap","description","renderItem","keyExtractor","toString","horizontal","type","max_picks","initial_balance","balance_rollover","switch_type","onChange","justifyContent","dropdown_options","eligible_options","filter","map","t","label","selected_value","onOptionSelect","new_result_type","marginRight","allow_late_buy_in"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonSettingsForm.t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