be-components 1.4.9 → 1.5.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 (214) 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/api/index.js +25 -0
  52. package/lib/commonjs/Engage/api/index.js.map +1 -1
  53. package/lib/commonjs/Engage/components/SeasonCard.js +78 -0
  54. package/lib/commonjs/Engage/components/SeasonCard.js.map +1 -0
  55. package/lib/commonjs/Engage/index.js +52 -1
  56. package/lib/commonjs/Engage/index.js.map +1 -1
  57. package/lib/commonjs/index.js +14 -0
  58. package/lib/commonjs/index.js.map +1 -1
  59. package/lib/module/Competition/api/index.js +15 -0
  60. package/lib/module/Competition/api/index.js.map +1 -1
  61. package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
  62. package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
  63. package/lib/module/Competition/components/SeasonCard.js +54 -0
  64. package/lib/module/Competition/components/SeasonCard.js.map +1 -0
  65. package/lib/module/Competition/index.js +23 -3
  66. package/lib/module/Competition/index.js.map +1 -1
  67. package/lib/module/CompetitionManager/api/index.js +3 -5
  68. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  69. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
  70. package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
  71. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
  72. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  73. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
  74. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  75. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
  76. package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
  77. package/lib/module/CompetitionSeason/api/index.js +128 -0
  78. package/lib/module/CompetitionSeason/api/index.js.map +1 -0
  79. package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
  80. package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
  81. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
  82. package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
  83. package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
  84. package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
  85. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
  86. package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
  87. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
  88. package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
  89. package/lib/module/CompetitionSeason/index.js +269 -0
  90. package/lib/module/CompetitionSeason/index.js.map +1 -0
  91. package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
  92. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
  93. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
  94. package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
  95. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
  96. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
  97. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
  98. package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
  99. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
  100. package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
  101. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
  102. package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
  103. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
  104. package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
  105. package/lib/module/CompetitionSeasonManager/index.js +181 -0
  106. package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
  107. package/lib/module/Components/Switch.js +3 -0
  108. package/lib/module/Components/Switch.js.map +1 -1
  109. package/lib/module/Engage/api/index.js +25 -0
  110. package/lib/module/Engage/api/index.js.map +1 -1
  111. package/lib/module/Engage/components/SeasonCard.js +71 -0
  112. package/lib/module/Engage/components/SeasonCard.js.map +1 -0
  113. package/lib/module/Engage/index.js +52 -1
  114. package/lib/module/Engage/index.js.map +1 -1
  115. package/lib/module/index.js +3 -1
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/typescript/src/Competition/api/index.d.ts +1 -0
  118. package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
  119. package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
  120. package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
  121. package/lib/typescript/src/Competition/index.d.ts +3 -2
  122. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  123. package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
  124. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  125. package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
  126. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  127. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  128. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
  129. package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
  130. package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
  131. package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
  132. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
  133. package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
  134. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
  135. package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
  136. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
  137. package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
  138. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
  139. package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
  140. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
  141. package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
  142. package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
  143. package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
  144. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
  145. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
  146. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
  147. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
  148. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
  149. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
  150. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
  151. package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
  152. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
  153. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
  154. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
  155. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
  156. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
  157. package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
  158. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
  159. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
  160. package/lib/typescript/src/Components/Switch.d.ts +2 -1
  161. package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
  162. package/lib/typescript/src/Engage/api/index.d.ts +6 -1
  163. package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
  164. package/lib/typescript/src/Engage/components/SeasonCard.d.ts +10 -0
  165. package/lib/typescript/src/Engage/components/SeasonCard.d.ts.map +1 -0
  166. package/lib/typescript/src/Engage/index.d.ts +3 -2
  167. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  168. package/lib/typescript/src/index.d.ts +3 -1
  169. package/lib/typescript/src/index.d.ts.map +1 -1
  170. package/package.json +1 -1
  171. package/src/Competition/api/index.ts +15 -0
  172. package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
  173. package/src/Competition/components/SeasonCard.tsx +46 -0
  174. package/src/Competition/index.tsx +45 -27
  175. package/src/CompetitionManager/api/index.ts +2 -5
  176. package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
  177. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
  178. package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
  179. package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
  180. package/src/CompetitionSeason/api/index.ts +111 -0
  181. package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
  182. package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
  183. package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
  184. package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
  185. package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
  186. package/src/CompetitionSeason/index.tsx +244 -0
  187. package/src/CompetitionSeasonManager/api/index.ts +127 -0
  188. package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
  189. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
  190. package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
  191. package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
  192. package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
  193. package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
  194. package/src/CompetitionSeasonManager/index.tsx +151 -0
  195. package/src/Components/Switch.tsx +8 -3
  196. package/src/Engage/api/index.ts +21 -2
  197. package/src/Engage/components/SeasonCard.tsx +42 -0
  198. package/src/Engage/index.tsx +44 -7
  199. package/src/index.tsx +4 -1
  200. package/src/types.d.ts +48 -5
  201. package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
  202. package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
  203. package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
  204. package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
  205. package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
  206. package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
  207. package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
  208. package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
  209. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
  210. package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
  211. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
  212. package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
  213. package/src/Competition/components/ManageSeasonForm.tsx +0 -271
  214. package/src/Competition/components/SeasonInfoModal.tsx +0 -212
@@ -0,0 +1,388 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _styles = require("../../constants/styles");
10
+ var _Components = require("../../Components");
11
+ var _api = require("../api");
12
+ var _colors = _interopRequireDefault(require("../../constants/colors"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ const CreateSeasonForm = ({
17
+ width,
18
+ max_height,
19
+ onCreateSeason,
20
+ onClose
21
+ }) => {
22
+ const [action_loading, setActionLoading] = (0, _react.useState)(false);
23
+ const [draft_season, setDraftSeason] = (0, _react.useState)(_api.ManageSeasonHelpers.getPendingSeason());
24
+ const [show_companies, setShowCompanies] = (0, _react.useState)(false);
25
+ const [show_templates, setShowTemplates] = (0, _react.useState)(false);
26
+ const [form_data, setFormData] = (0, _react.useState)({
27
+ templates: [],
28
+ companies: []
29
+ });
30
+ const {
31
+ templates,
32
+ companies
33
+ } = form_data;
34
+ const selected_company = companies.find(c => c.company_id == draft_season.company_id);
35
+ const selected_template = templates.find(cs => cs.competition_season_id == draft_season.following_season_id);
36
+ (0, _react.useEffect)(() => {
37
+ _api.ManageSeasonApi.setEnvironment();
38
+ getFormData();
39
+ }, []);
40
+ const getFormData = async () => {
41
+ const temps = await _api.ManageSeasonApi.getSeasonTemplates();
42
+ const company_resp = await _api.ManageSeasonApi.getMyCompanies();
43
+ setFormData({
44
+ ...form_data,
45
+ companies: company_resp.companies,
46
+ templates: temps
47
+ });
48
+ };
49
+ const handleCreate = async season => {
50
+ setActionLoading(true);
51
+ const new_season = await _api.ManageSeasonApi.createSeason(season);
52
+ console.log(new_season);
53
+ onCreateSeason(new_season);
54
+ setActionLoading(false);
55
+ };
56
+ const renderCompanies = data => {
57
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
58
+ style: {
59
+ ..._styles.view_styles.body_row,
60
+ padding: 10
61
+ },
62
+ onPress: () => {
63
+ setDraftSeason({
64
+ ...draft_season,
65
+ company_id: data.item.company_id
66
+ });
67
+ setShowCompanies(false);
68
+ }
69
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
70
+ source: {
71
+ uri: data.item.company_image?.url
72
+ },
73
+ style: {
74
+ height: 50,
75
+ width: 50,
76
+ borderRadius: 4
77
+ },
78
+ resizeMode: "cover"
79
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
80
+ style: {
81
+ flex: 1,
82
+ marginLeft: 10
83
+ }
84
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
85
+ theme: "header_2"
86
+ }, data.item.company_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
87
+ style: {
88
+ marginTop: 3
89
+ },
90
+ theme: "body"
91
+ }, data.item.company_description)));
92
+ };
93
+ const renderTemplates = data => {
94
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
95
+ style: {
96
+ ..._styles.view_styles.body_row,
97
+ padding: 10
98
+ },
99
+ onPress: () => {
100
+ setDraftSeason({
101
+ ...draft_season,
102
+ following_season_id: data.item.competition_season_id
103
+ });
104
+ setShowTemplates(false);
105
+ }
106
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
107
+ source: {
108
+ uri: data.item.image?.url
109
+ },
110
+ style: {
111
+ height: 50,
112
+ width: 50,
113
+ borderRadius: 4
114
+ },
115
+ resizeMode: "cover"
116
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
117
+ style: {
118
+ flex: 1,
119
+ marginLeft: 10
120
+ }
121
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
122
+ theme: "header_2"
123
+ }, data.item.season_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
124
+ style: {
125
+ marginTop: 3
126
+ },
127
+ theme: "body"
128
+ }, data.item.season_description)));
129
+ };
130
+ if (!draft_season) {
131
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
132
+ }
133
+ const errors = _api.ManageSeasonHelpers.isSeasonValid(draft_season);
134
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
135
+ style: {
136
+ ..._styles.view_styles.section,
137
+ width,
138
+ maxHeight: max_height ?? 700
139
+ }
140
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
141
+ style: {
142
+ ..._styles.view_styles.section_header
143
+ }
144
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
145
+ style: {
146
+ flex: 1
147
+ }
148
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
149
+ theme: "header"
150
+ }, "Create New Season"))), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
151
+ style: {
152
+ ..._styles.view_styles.section_body,
153
+ flex: 1
154
+ }
155
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
156
+ style: {
157
+ ..._styles.view_styles.body_row,
158
+ flexWrap: 'wrap',
159
+ maxWidth: width
160
+ }
161
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
162
+ style: {
163
+ margin: 5
164
+ }
165
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
166
+ theme: "header_2"
167
+ }, "Season Name"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
168
+ style: {
169
+ marginTop: 3
170
+ },
171
+ theme: "body"
172
+ }, "Give your season a memorable name.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
173
+ style: {
174
+ ..._styles.view_styles.input,
175
+ flex: 1,
176
+ margin: 5
177
+ },
178
+ value: draft_season?.season_name,
179
+ placeholder: "Season Name",
180
+ placeholderTextColor: _colors.default.brand.slate,
181
+ onChangeText: text => setDraftSeason({
182
+ ...draft_season,
183
+ season_name: text
184
+ })
185
+ })), companies.length > 0 ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
186
+ style: {
187
+ padding: 10
188
+ }
189
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
190
+ style: {
191
+ flex: 1,
192
+ margin: 5,
193
+ minWidth: 200
194
+ }
195
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
196
+ theme: "header"
197
+ }, "Company"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
198
+ style: {
199
+ marginTop: 3
200
+ },
201
+ theme: "body"
202
+ }, "Is this competition associated with one of your companies / brands?")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
203
+ style: {
204
+ padding: 10,
205
+ borderRadius: 4,
206
+ borderWidth: 1,
207
+ borderColor: _colors.default.shades.shade600,
208
+ backgroundColor: _colors.default.shades.white
209
+ }
210
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
211
+ style: {
212
+ flexDirection: 'row',
213
+ alignItems: 'center'
214
+ },
215
+ onPress: () => setShowCompanies(!show_companies)
216
+ }, selected_company ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
217
+ style: {
218
+ flex: 1,
219
+ flexDirection: 'row'
220
+ }
221
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
222
+ source: {
223
+ uri: selected_company.company_image?.url
224
+ },
225
+ style: {
226
+ height: 50,
227
+ width: 50,
228
+ borderRadius: 4
229
+ },
230
+ resizeMode: "cover"
231
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
232
+ style: {
233
+ flex: 1,
234
+ marginLeft: 10
235
+ }
236
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
237
+ theme: "header_2"
238
+ }, selected_company.company_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
239
+ style: {
240
+ marginTop: 3
241
+ },
242
+ theme: "body"
243
+ }, selected_company.company_description))) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
244
+ style: {
245
+ flex: 1
246
+ }
247
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
248
+ theme: "header_2"
249
+ }, "View Companies")), /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
250
+ direction: show_companies ? 'up' : 'down',
251
+ size: 8,
252
+ color: _colors.default.brand.midnight
253
+ })), show_companies ? /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
254
+ style: {
255
+ padding: 10,
256
+ borderBottomWidth: 1,
257
+ borderColor: _colors.default.shades.shade600
258
+ },
259
+ onPress: () => {
260
+ setDraftSeason({
261
+ ...draft_season,
262
+ company_id: undefined
263
+ });
264
+ setShowCompanies(false);
265
+ }
266
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
267
+ theme: "header_2"
268
+ }, "NO COMPANY")), /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
269
+ data: companies,
270
+ renderItem: renderCompanies,
271
+ keyExtractor: item => item.company_id.toString()
272
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), templates.length > 0 ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
273
+ style: {
274
+ padding: 10
275
+ }
276
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
277
+ style: {
278
+ flex: 1,
279
+ margin: 5,
280
+ minWidth: 200
281
+ }
282
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
283
+ theme: "header"
284
+ }, "Create From Template"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
285
+ style: {
286
+ marginTop: 3
287
+ },
288
+ theme: "body"
289
+ }, "Optionally you can select a template to auto create this competition from")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
290
+ style: {
291
+ padding: 10,
292
+ borderRadius: 4,
293
+ borderWidth: 1,
294
+ borderColor: _colors.default.shades.shade600,
295
+ backgroundColor: _colors.default.shades.white
296
+ }
297
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
298
+ style: {
299
+ flexDirection: 'row',
300
+ alignItems: 'center'
301
+ },
302
+ onPress: () => setShowTemplates(!show_templates)
303
+ }, selected_template ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
304
+ style: {
305
+ flex: 1,
306
+ flexDirection: 'row'
307
+ }
308
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
309
+ source: {
310
+ uri: selected_template.image?.url
311
+ },
312
+ style: {
313
+ height: 50,
314
+ width: 50,
315
+ borderRadius: 4
316
+ },
317
+ resizeMode: "cover"
318
+ }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
319
+ style: {
320
+ flex: 1,
321
+ marginLeft: 10
322
+ }
323
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
324
+ theme: "header_2"
325
+ }, selected_template.season_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
326
+ style: {
327
+ marginTop: 3
328
+ },
329
+ theme: "body"
330
+ }, selected_template.season_description))) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
331
+ style: {
332
+ flex: 1
333
+ }
334
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
335
+ theme: "header_2"
336
+ }, "View Templates")), /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
337
+ direction: show_templates ? 'up' : 'down',
338
+ size: 8,
339
+ color: _colors.default.brand.midnight
340
+ })), show_templates ? /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
341
+ style: {
342
+ padding: 10,
343
+ borderBottomWidth: 1,
344
+ borderColor: _colors.default.shades.shade600
345
+ },
346
+ onPress: () => {
347
+ setDraftSeason({
348
+ ...draft_season,
349
+ following_season_id: undefined
350
+ });
351
+ setShowTemplates(false);
352
+ }
353
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
354
+ theme: "header_2"
355
+ }, "NO TEMPLATE")), /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
356
+ data: templates,
357
+ renderItem: renderTemplates,
358
+ keyExtractor: item => item.competition_season_id.toString()
359
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
360
+ style: {
361
+ ..._styles.view_styles.section_footer
362
+ }
363
+ }, /*#__PURE__*/_react.default.createElement(_Components.Button, {
364
+ title: "CLOSE",
365
+ title_color: _colors.default.shades.white,
366
+ style: {
367
+ flex: 1,
368
+ marginRight: 8
369
+ },
370
+ padding: 15,
371
+ backgroundColor: _colors.default.utility.error,
372
+ onPress: () => onClose()
373
+ }), /*#__PURE__*/_react.default.createElement(_Components.Button, {
374
+ title: "CREATE SEASON",
375
+ title_color: _colors.default.shades.white,
376
+ loading: action_loading,
377
+ backgroundColor: _colors.default.utility.success,
378
+ padding: 15,
379
+ style: {
380
+ flex: 2,
381
+ opacity: !action_loading && errors.length == 0 ? 1 : 0.5
382
+ },
383
+ disabled: errors.length > 0 || action_loading ? true : false,
384
+ onPress: () => handleCreate(draft_season)
385
+ })));
386
+ };
387
+ var _default = exports.default = CreateSeasonForm;
388
+ //# sourceMappingURL=CreateSeasonForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_Components","_api","_colors","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CreateSeasonForm","width","max_height","onCreateSeason","onClose","action_loading","setActionLoading","useState","draft_season","setDraftSeason","ManageSeasonHelpers","getPendingSeason","show_companies","setShowCompanies","show_templates","setShowTemplates","form_data","setFormData","templates","companies","selected_company","find","c","company_id","selected_template","cs","competition_season_id","following_season_id","useEffect","ManageSeasonApi","setEnvironment","getFormData","temps","getSeasonTemplates","company_resp","getMyCompanies","handleCreate","season","new_season","createSeason","console","log","renderCompanies","data","createElement","TouchableOpacity","style","view_styles","body_row","padding","onPress","item","Image","source","uri","company_image","url","height","borderRadius","resizeMode","View","flex","marginLeft","Text","theme","company_name","marginTop","company_description","renderTemplates","image","season_name","season_description","Fragment","errors","isSeasonValid","section","maxHeight","section_header","ScrollView","section_body","flexWrap","maxWidth","margin","TextInput","input","value","placeholder","placeholderTextColor","Colors","brand","slate","onChangeText","text","length","minWidth","borderWidth","borderColor","shades","shade600","backgroundColor","white","flexDirection","alignItems","Icons","ChevronIcon","direction","size","color","midnight","borderBottomWidth","undefined","FlatList","renderItem","keyExtractor","toString","section_footer","Button","title","title_color","marginRight","utility","error","loading","success","opacity","disabled","_default","exports"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/CreateSeasonForm.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAC,sBAAA,CAAAN,OAAA;AAA4C,SAAAM,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,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","ignoreList":[]}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _Components = require("../../Components");
10
+ var _colors = _interopRequireDefault(require("../../constants/colors"));
11
+ var _styles = require("../../constants/styles");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ const SeasonHeader = ({
14
+ width,
15
+ action_loading,
16
+ competition_season,
17
+ season_valid,
18
+ onDelete,
19
+ onActivate
20
+ }) => {
21
+ const handleActivate = () => {
22
+ if (!season_valid) {
23
+ return alert(`Please complete all the required sections before activating`);
24
+ }
25
+ onActivate();
26
+ };
27
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
28
+ style: {
29
+ backgroundColor: _colors.default.shades.white,
30
+ flexGrow: 1,
31
+ minWidth: 330,
32
+ maxWidth: width
33
+ }
34
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
35
+ nativeID: "competition_header",
36
+ style: {
37
+ flexDirection: 'row',
38
+ alignItems: 'center',
39
+ padding: 20,
40
+ borderBottomWidth: 1,
41
+ borderColor: _colors.default.shades.shade600
42
+ }
43
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
44
+ source: {
45
+ uri: competition_season.image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1649737862/be_logo_jte2ux.webp'
46
+ },
47
+ style: {
48
+ height: 50,
49
+ width: 50,
50
+ borderRadius: 4
51
+ },
52
+ resizeMode: "cover"
53
+ })), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
54
+ style: {
55
+ flex: 1,
56
+ marginLeft: 10
57
+ }
58
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
59
+ theme: "header"
60
+ }, competition_season.season_name), /*#__PURE__*/_react.default.createElement(_Components.Text, {
61
+ style: {
62
+ marginTop: 4
63
+ },
64
+ theme: "header_2>"
65
+ }, competition_season.season_description)), competition_season.status == 'pending' ? /*#__PURE__*/_react.default.createElement(_Components.Button, {
66
+ title: 'ACTIVATE',
67
+ style: {
68
+ opacity: season_valid ? 1 : 0.5
69
+ },
70
+ loading: action_loading,
71
+ title_color: _colors.default.shades.white,
72
+ backgroundColor: _colors.default.utility.success,
73
+ onPress: () => handleActivate()
74
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null)), competition_season.status == 'pending' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
75
+ style: {
76
+ ..._styles.view_styles.section_header,
77
+ backgroundColor: _colors.default.shades.shade100
78
+ }
79
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
80
+ style: {
81
+ flex: 1
82
+ }
83
+ }, /*#__PURE__*/_react.default.createElement(_Components.Text, {
84
+ theme: "header"
85
+ }, "SEASON IS PENDING"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
86
+ style: {
87
+ marginTop: 3
88
+ },
89
+ theme: "body"
90
+ }, "Complete each section and press 'ACTIVATE'.")), /*#__PURE__*/_react.default.createElement(_Components.Button, {
91
+ title: "DELETE",
92
+ style: {
93
+ opacity: !action_loading ? 1 : 0.5
94
+ },
95
+ loading: action_loading,
96
+ title_color: _colors.default.shades.white,
97
+ backgroundColor: _colors.default.utility.error,
98
+ onPress: async () => {
99
+ const confirmed = await confirm(`Are you sure you would like to delete this competition? This cannot be undone.`);
100
+ if (!confirmed) {
101
+ return;
102
+ }
103
+ onDelete();
104
+ }
105
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
106
+ };
107
+ var _default = exports.default = SeasonHeader;
108
+ //# sourceMappingURL=SeasonHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Components","_colors","_styles","obj","__esModule","default","SeasonHeader","width","action_loading","competition_season","season_valid","onDelete","onActivate","handleActivate","alert","createElement","View","style","backgroundColor","Colors","shades","white","flexGrow","minWidth","maxWidth","nativeID","flexDirection","alignItems","padding","borderBottomWidth","borderColor","shade600","Image","source","uri","image","url","height","borderRadius","resizeMode","flex","marginLeft","Text","theme","season_name","marginTop","season_description","status","Button","title","opacity","loading","title_color","utility","success","onPress","Fragment","view_styles","section_header","shade100","error","confirmed","confirm","_default","exports"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAqD,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAWrD,MAAMG,YAAY,GAAGA,CAAC;EAAEC,KAAK;EAAEC,cAAc;EAAEC,kBAAkB;EAAEC,YAAY;EAAEC,QAAQ;EAAEC;AAAkC,CAAC,KAAK;EAE/H,MAAMC,cAAc,GAAGA,CAAA,KAAM;IACzB,IAAG,CAACH,YAAY,EAAC;MACb,OAAOI,KAAK,CAAE,6DAA4D,CAAC;IAC/E;IACAF,UAAU,CAAC,CAAC;EAChB,CAAC;EAED,oBACIhB,MAAA,CAAAS,OAAA,CAAAU,aAAA,CAAChB,YAAA,CAAAiB,IAAI;IAACC,KAAK,EAAE;MAAEC,eAAe,EAACC,eAAM,CAACC,MAAM,CAACC,KAAK;MAAEC,QAAQ,EAAC,CAAC;MAAEC,QAAQ,EAAC,GAAG;MAAEC,QAAQ,EAACjB;IAAM;EAAE,gBAC3FX,MAAA,CAAAS,OAAA,CAAAU,aAAA,CAAChB,YAAA,CAAAiB,IAAI;IAACS,QAAQ,EAAC,oBAAoB;IAACR,KAAK,EAAE;MAAES,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