be-components 1.4.9 → 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.
- package/lib/commonjs/Competition/api/index.js +15 -0
- package/lib/commonjs/Competition/api/index.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +1 -1
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/commonjs/Competition/components/SeasonCard.js +61 -0
- package/lib/commonjs/Competition/components/SeasonCard.js.map +1 -0
- package/lib/commonjs/Competition/index.js +23 -3
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/CompetitionManager/api/index.js +3 -5
- package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +1 -61
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +4 -0
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js +37 -3
- package/lib/commonjs/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeason/api/index.js +134 -0
- package/lib/commonjs/CompetitionSeason/api/index.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js +127 -0
- package/lib/commonjs/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js +253 -0
- package/lib/commonjs/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js +126 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonHeader.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js +324 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js +175 -0
- package/lib/commonjs/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
- package/lib/commonjs/CompetitionSeason/index.js +278 -0
- package/lib/commonjs/CompetitionSeason/index.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/api/index.js +182 -0
- package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +153 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js +388 -0
- package/lib/commonjs/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js +108 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js +242 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js +352 -0
- package/lib/commonjs/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
- package/lib/commonjs/CompetitionSeasonManager/index.js +190 -0
- package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -0
- package/lib/commonjs/Components/Switch.js +3 -0
- package/lib/commonjs/Components/Switch.js.map +1 -1
- package/lib/commonjs/Engage/index.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Competition/api/index.js +15 -0
- package/lib/module/Competition/api/index.js.map +1 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js +1 -1
- package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -1
- package/lib/module/Competition/components/SeasonCard.js +54 -0
- package/lib/module/Competition/components/SeasonCard.js.map +1 -0
- package/lib/module/Competition/index.js +23 -3
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/CompetitionManager/api/index.js +3 -5
- package/lib/module/CompetitionManager/api/index.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +1 -63
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +6 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js +4 -0
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CreateCompetitionForm.js +37 -3
- package/lib/module/CompetitionManager/components/CreateCompetitionForm.js.map +1 -1
- package/lib/module/CompetitionSeason/api/index.js +128 -0
- package/lib/module/CompetitionSeason/api/index.js.map +1 -0
- package/lib/module/CompetitionSeason/components/CompetitionsSection.js +118 -0
- package/lib/module/CompetitionSeason/components/CompetitionsSection.js.map +1 -0
- package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js +244 -0
- package/lib/module/CompetitionSeason/components/EnterSeasonPrompt.js.map +1 -0
- package/lib/module/CompetitionSeason/components/SeasonHeader.js +119 -0
- package/lib/module/CompetitionSeason/components/SeasonHeader.js.map +1 -0
- package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js +315 -0
- package/lib/module/CompetitionSeason/components/SeasonLeaderboard.js.map +1 -0
- package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js +166 -0
- package/lib/module/CompetitionSeason/components/SeasonSettingsSection.js.map +1 -0
- package/lib/module/CompetitionSeason/index.js +269 -0
- package/lib/module/CompetitionSeason/index.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/api/index.js +176 -0
- package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js +2 -0
- package/lib/module/CompetitionSeasonManager/components/CompetitionSelector.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +144 -0
- package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js +379 -0
- package/lib/module/CompetitionSeasonManager/components/CreateSeasonForm.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js +101 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonHeader.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js +233 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonInfoForm.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js +343 -0
- package/lib/module/CompetitionSeasonManager/components/SeasonSettingsForm.js.map +1 -0
- package/lib/module/CompetitionSeasonManager/index.js +181 -0
- package/lib/module/CompetitionSeasonManager/index.js.map +1 -0
- package/lib/module/Components/Switch.js +3 -0
- package/lib/module/Components/Switch.js.map +1 -1
- package/lib/module/Engage/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/Competition/api/index.d.ts +1 -0
- package/lib/typescript/src/Competition/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/SeasonCard.d.ts +10 -0
- package/lib/typescript/src/Competition/components/SeasonCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/index.d.ts +3 -2
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/api/index.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts +3 -2
- package/lib/typescript/src/CompetitionManager/components/CreateCompetitionForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeason/api/index.d.ts +41 -0
- package/lib/typescript/src/CompetitionSeason/api/index.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts +14 -0
- package/lib/typescript/src/CompetitionSeason/components/CompetitionsSection.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts +16 -0
- package/lib/typescript/src/CompetitionSeason/components/EnterSeasonPrompt.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts +15 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonHeader.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts +18 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonLeaderboard.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts +12 -0
- package/lib/typescript/src/CompetitionSeason/components/SeasonSettingsSection.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeason/index.d.ts +12 -0
- package/lib/typescript/src/CompetitionSeason/index.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts +31 -0
- package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionSelector.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +12 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts +11 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/CreateSeasonForm.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts +13 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonHeader.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts +11 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonInfoForm.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts +12 -0
- package/lib/typescript/src/CompetitionSeasonManager/components/SeasonSettingsForm.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +8 -0
- package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Switch.d.ts +2 -1
- package/lib/typescript/src/Components/Switch.d.ts.map +1 -1
- package/lib/typescript/src/Engage/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Competition/api/index.ts +15 -0
- package/src/Competition/components/CompetitionSeasonCard.tsx +1 -1
- package/src/Competition/components/SeasonCard.tsx +46 -0
- package/src/Competition/index.tsx +45 -27
- package/src/CompetitionManager/api/index.ts +2 -5
- package/src/CompetitionManager/components/CompetitionInfoForm.tsx +2 -64
- package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +10 -3
- package/src/CompetitionManager/components/ContestSettingsForm.tsx +8 -2
- package/src/CompetitionManager/components/CreateCompetitionForm.tsx +20 -4
- package/src/CompetitionSeason/api/index.ts +111 -0
- package/src/CompetitionSeason/components/CompetitionsSection.tsx +99 -0
- package/src/CompetitionSeason/components/EnterSeasonPrompt.tsx +135 -0
- package/src/CompetitionSeason/components/SeasonHeader.tsx +81 -0
- package/src/CompetitionSeason/components/SeasonLeaderboard.tsx +205 -0
- package/src/CompetitionSeason/components/SeasonSettingsSection.tsx +92 -0
- package/src/CompetitionSeason/index.tsx +244 -0
- package/src/CompetitionSeasonManager/api/index.ts +127 -0
- package/src/CompetitionSeasonManager/components/CompetitionSelector.tsx +2 -0
- package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +113 -0
- package/src/CompetitionSeasonManager/components/CreateSeasonForm.tsx +238 -0
- package/src/CompetitionSeasonManager/components/SeasonHeader.tsx +75 -0
- package/src/CompetitionSeasonManager/components/SeasonInfoForm.tsx +124 -0
- package/src/CompetitionSeasonManager/components/SeasonSettingsForm.tsx +185 -0
- package/src/CompetitionSeasonManager/index.tsx +151 -0
- package/src/Components/Switch.tsx +8 -3
- package/src/Engage/index.tsx +1 -0
- package/src/index.tsx +4 -1
- package/src/types.d.ts +48 -5
- package/lib/commonjs/Competition/components/ManageSeasonForm.js +0 -605
- package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +0 -1
- package/lib/commonjs/Competition/components/SeasonInfoModal.js +0 -400
- package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +0 -1
- package/lib/module/Competition/components/ManageSeasonForm.js +0 -596
- package/lib/module/Competition/components/ManageSeasonForm.js.map +0 -1
- package/lib/module/Competition/components/SeasonInfoModal.js +0 -391
- package/lib/module/Competition/components/SeasonInfoModal.js.map +0 -1
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +0 -10
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +0 -1
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +0 -14
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +0 -1
- package/src/Competition/components/ManageSeasonForm.tsx +0 -271
- package/src/Competition/components/SeasonInfoModal.tsx +0 -212
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { View, ScrollView, TouchableOpacity, Image, FlatList } from "react-native";
|
|
3
|
+
import { view_styles } from '../../constants/styles';
|
|
4
|
+
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
5
|
+
import { ManageSeasonApi, ManageSeasonHelpers } from '../api';
|
|
6
|
+
import Colors from '../../constants/colors';
|
|
7
|
+
const CreateSeasonForm = ({
|
|
8
|
+
width,
|
|
9
|
+
max_height,
|
|
10
|
+
onCreateSeason,
|
|
11
|
+
onClose
|
|
12
|
+
}) => {
|
|
13
|
+
const [action_loading, setActionLoading] = useState(false);
|
|
14
|
+
const [draft_season, setDraftSeason] = useState(ManageSeasonHelpers.getPendingSeason());
|
|
15
|
+
const [show_companies, setShowCompanies] = useState(false);
|
|
16
|
+
const [show_templates, setShowTemplates] = useState(false);
|
|
17
|
+
const [form_data, setFormData] = useState({
|
|
18
|
+
templates: [],
|
|
19
|
+
companies: []
|
|
20
|
+
});
|
|
21
|
+
const {
|
|
22
|
+
templates,
|
|
23
|
+
companies
|
|
24
|
+
} = form_data;
|
|
25
|
+
const selected_company = companies.find(c => c.company_id == draft_season.company_id);
|
|
26
|
+
const selected_template = templates.find(cs => cs.competition_season_id == draft_season.following_season_id);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
ManageSeasonApi.setEnvironment();
|
|
29
|
+
getFormData();
|
|
30
|
+
}, []);
|
|
31
|
+
const getFormData = async () => {
|
|
32
|
+
const temps = await ManageSeasonApi.getSeasonTemplates();
|
|
33
|
+
const company_resp = await ManageSeasonApi.getMyCompanies();
|
|
34
|
+
setFormData({
|
|
35
|
+
...form_data,
|
|
36
|
+
companies: company_resp.companies,
|
|
37
|
+
templates: temps
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
const handleCreate = async season => {
|
|
41
|
+
setActionLoading(true);
|
|
42
|
+
const new_season = await ManageSeasonApi.createSeason(season);
|
|
43
|
+
console.log(new_season);
|
|
44
|
+
onCreateSeason(new_season);
|
|
45
|
+
setActionLoading(false);
|
|
46
|
+
};
|
|
47
|
+
const renderCompanies = data => {
|
|
48
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
49
|
+
style: {
|
|
50
|
+
...view_styles.body_row,
|
|
51
|
+
padding: 10
|
|
52
|
+
},
|
|
53
|
+
onPress: () => {
|
|
54
|
+
setDraftSeason({
|
|
55
|
+
...draft_season,
|
|
56
|
+
company_id: data.item.company_id
|
|
57
|
+
});
|
|
58
|
+
setShowCompanies(false);
|
|
59
|
+
}
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
61
|
+
source: {
|
|
62
|
+
uri: data.item.company_image?.url
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
height: 50,
|
|
66
|
+
width: 50,
|
|
67
|
+
borderRadius: 4
|
|
68
|
+
},
|
|
69
|
+
resizeMode: "cover"
|
|
70
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
71
|
+
style: {
|
|
72
|
+
flex: 1,
|
|
73
|
+
marginLeft: 10
|
|
74
|
+
}
|
|
75
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
76
|
+
theme: "header_2"
|
|
77
|
+
}, data.item.company_name), /*#__PURE__*/React.createElement(Text, {
|
|
78
|
+
style: {
|
|
79
|
+
marginTop: 3
|
|
80
|
+
},
|
|
81
|
+
theme: "body"
|
|
82
|
+
}, data.item.company_description)));
|
|
83
|
+
};
|
|
84
|
+
const renderTemplates = data => {
|
|
85
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
86
|
+
style: {
|
|
87
|
+
...view_styles.body_row,
|
|
88
|
+
padding: 10
|
|
89
|
+
},
|
|
90
|
+
onPress: () => {
|
|
91
|
+
setDraftSeason({
|
|
92
|
+
...draft_season,
|
|
93
|
+
following_season_id: data.item.competition_season_id
|
|
94
|
+
});
|
|
95
|
+
setShowTemplates(false);
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
98
|
+
source: {
|
|
99
|
+
uri: data.item.image?.url
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
height: 50,
|
|
103
|
+
width: 50,
|
|
104
|
+
borderRadius: 4
|
|
105
|
+
},
|
|
106
|
+
resizeMode: "cover"
|
|
107
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
108
|
+
style: {
|
|
109
|
+
flex: 1,
|
|
110
|
+
marginLeft: 10
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
113
|
+
theme: "header_2"
|
|
114
|
+
}, data.item.season_name), /*#__PURE__*/React.createElement(Text, {
|
|
115
|
+
style: {
|
|
116
|
+
marginTop: 3
|
|
117
|
+
},
|
|
118
|
+
theme: "body"
|
|
119
|
+
}, data.item.season_description)));
|
|
120
|
+
};
|
|
121
|
+
if (!draft_season) {
|
|
122
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
123
|
+
}
|
|
124
|
+
const errors = ManageSeasonHelpers.isSeasonValid(draft_season);
|
|
125
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
126
|
+
style: {
|
|
127
|
+
...view_styles.section,
|
|
128
|
+
width,
|
|
129
|
+
maxHeight: max_height ?? 700
|
|
130
|
+
}
|
|
131
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
132
|
+
style: {
|
|
133
|
+
...view_styles.section_header
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
136
|
+
style: {
|
|
137
|
+
flex: 1
|
|
138
|
+
}
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
140
|
+
theme: "header"
|
|
141
|
+
}, "Create New Season"))), /*#__PURE__*/React.createElement(ScrollView, {
|
|
142
|
+
style: {
|
|
143
|
+
...view_styles.section_body,
|
|
144
|
+
flex: 1
|
|
145
|
+
}
|
|
146
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
147
|
+
style: {
|
|
148
|
+
...view_styles.body_row,
|
|
149
|
+
flexWrap: 'wrap',
|
|
150
|
+
maxWidth: width
|
|
151
|
+
}
|
|
152
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
153
|
+
style: {
|
|
154
|
+
margin: 5
|
|
155
|
+
}
|
|
156
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
157
|
+
theme: "header_2"
|
|
158
|
+
}, "Season Name"), /*#__PURE__*/React.createElement(Text, {
|
|
159
|
+
style: {
|
|
160
|
+
marginTop: 3
|
|
161
|
+
},
|
|
162
|
+
theme: "body"
|
|
163
|
+
}, "Give your season a memorable name.")), /*#__PURE__*/React.createElement(TextInput, {
|
|
164
|
+
style: {
|
|
165
|
+
...view_styles.input,
|
|
166
|
+
flex: 1,
|
|
167
|
+
margin: 5
|
|
168
|
+
},
|
|
169
|
+
value: draft_season?.season_name,
|
|
170
|
+
placeholder: "Season Name",
|
|
171
|
+
placeholderTextColor: Colors.brand.slate,
|
|
172
|
+
onChangeText: text => setDraftSeason({
|
|
173
|
+
...draft_season,
|
|
174
|
+
season_name: text
|
|
175
|
+
})
|
|
176
|
+
})), companies.length > 0 ? /*#__PURE__*/React.createElement(View, {
|
|
177
|
+
style: {
|
|
178
|
+
padding: 10
|
|
179
|
+
}
|
|
180
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
181
|
+
style: {
|
|
182
|
+
flex: 1,
|
|
183
|
+
margin: 5,
|
|
184
|
+
minWidth: 200
|
|
185
|
+
}
|
|
186
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
187
|
+
theme: "header"
|
|
188
|
+
}, "Company"), /*#__PURE__*/React.createElement(Text, {
|
|
189
|
+
style: {
|
|
190
|
+
marginTop: 3
|
|
191
|
+
},
|
|
192
|
+
theme: "body"
|
|
193
|
+
}, "Is this competition associated with one of your companies / brands?")), /*#__PURE__*/React.createElement(View, {
|
|
194
|
+
style: {
|
|
195
|
+
padding: 10,
|
|
196
|
+
borderRadius: 4,
|
|
197
|
+
borderWidth: 1,
|
|
198
|
+
borderColor: Colors.shades.shade600,
|
|
199
|
+
backgroundColor: Colors.shades.white
|
|
200
|
+
}
|
|
201
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
202
|
+
style: {
|
|
203
|
+
flexDirection: 'row',
|
|
204
|
+
alignItems: 'center'
|
|
205
|
+
},
|
|
206
|
+
onPress: () => setShowCompanies(!show_companies)
|
|
207
|
+
}, selected_company ? /*#__PURE__*/React.createElement(View, {
|
|
208
|
+
style: {
|
|
209
|
+
flex: 1,
|
|
210
|
+
flexDirection: 'row'
|
|
211
|
+
}
|
|
212
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
213
|
+
source: {
|
|
214
|
+
uri: selected_company.company_image?.url
|
|
215
|
+
},
|
|
216
|
+
style: {
|
|
217
|
+
height: 50,
|
|
218
|
+
width: 50,
|
|
219
|
+
borderRadius: 4
|
|
220
|
+
},
|
|
221
|
+
resizeMode: "cover"
|
|
222
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
223
|
+
style: {
|
|
224
|
+
flex: 1,
|
|
225
|
+
marginLeft: 10
|
|
226
|
+
}
|
|
227
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
228
|
+
theme: "header_2"
|
|
229
|
+
}, selected_company.company_name), /*#__PURE__*/React.createElement(Text, {
|
|
230
|
+
style: {
|
|
231
|
+
marginTop: 3
|
|
232
|
+
},
|
|
233
|
+
theme: "body"
|
|
234
|
+
}, selected_company.company_description))) : /*#__PURE__*/React.createElement(View, {
|
|
235
|
+
style: {
|
|
236
|
+
flex: 1
|
|
237
|
+
}
|
|
238
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
239
|
+
theme: "header_2"
|
|
240
|
+
}, "View Companies")), /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
|
|
241
|
+
direction: show_companies ? 'up' : 'down',
|
|
242
|
+
size: 8,
|
|
243
|
+
color: Colors.brand.midnight
|
|
244
|
+
})), show_companies ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
245
|
+
style: {
|
|
246
|
+
padding: 10,
|
|
247
|
+
borderBottomWidth: 1,
|
|
248
|
+
borderColor: Colors.shades.shade600
|
|
249
|
+
},
|
|
250
|
+
onPress: () => {
|
|
251
|
+
setDraftSeason({
|
|
252
|
+
...draft_season,
|
|
253
|
+
company_id: undefined
|
|
254
|
+
});
|
|
255
|
+
setShowCompanies(false);
|
|
256
|
+
}
|
|
257
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
258
|
+
theme: "header_2"
|
|
259
|
+
}, "NO COMPANY")), /*#__PURE__*/React.createElement(FlatList, {
|
|
260
|
+
data: companies,
|
|
261
|
+
renderItem: renderCompanies,
|
|
262
|
+
keyExtractor: item => item.company_id.toString()
|
|
263
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null))) : /*#__PURE__*/React.createElement(React.Fragment, null), templates.length > 0 ? /*#__PURE__*/React.createElement(View, {
|
|
264
|
+
style: {
|
|
265
|
+
padding: 10
|
|
266
|
+
}
|
|
267
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
268
|
+
style: {
|
|
269
|
+
flex: 1,
|
|
270
|
+
margin: 5,
|
|
271
|
+
minWidth: 200
|
|
272
|
+
}
|
|
273
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
274
|
+
theme: "header"
|
|
275
|
+
}, "Create From Template"), /*#__PURE__*/React.createElement(Text, {
|
|
276
|
+
style: {
|
|
277
|
+
marginTop: 3
|
|
278
|
+
},
|
|
279
|
+
theme: "body"
|
|
280
|
+
}, "Optionally you can select a template to auto create this competition from")), /*#__PURE__*/React.createElement(View, {
|
|
281
|
+
style: {
|
|
282
|
+
padding: 10,
|
|
283
|
+
borderRadius: 4,
|
|
284
|
+
borderWidth: 1,
|
|
285
|
+
borderColor: Colors.shades.shade600,
|
|
286
|
+
backgroundColor: Colors.shades.white
|
|
287
|
+
}
|
|
288
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
289
|
+
style: {
|
|
290
|
+
flexDirection: 'row',
|
|
291
|
+
alignItems: 'center'
|
|
292
|
+
},
|
|
293
|
+
onPress: () => setShowTemplates(!show_templates)
|
|
294
|
+
}, selected_template ? /*#__PURE__*/React.createElement(View, {
|
|
295
|
+
style: {
|
|
296
|
+
flex: 1,
|
|
297
|
+
flexDirection: 'row'
|
|
298
|
+
}
|
|
299
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
300
|
+
source: {
|
|
301
|
+
uri: selected_template.image?.url
|
|
302
|
+
},
|
|
303
|
+
style: {
|
|
304
|
+
height: 50,
|
|
305
|
+
width: 50,
|
|
306
|
+
borderRadius: 4
|
|
307
|
+
},
|
|
308
|
+
resizeMode: "cover"
|
|
309
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
310
|
+
style: {
|
|
311
|
+
flex: 1,
|
|
312
|
+
marginLeft: 10
|
|
313
|
+
}
|
|
314
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
315
|
+
theme: "header_2"
|
|
316
|
+
}, selected_template.season_name), /*#__PURE__*/React.createElement(Text, {
|
|
317
|
+
style: {
|
|
318
|
+
marginTop: 3
|
|
319
|
+
},
|
|
320
|
+
theme: "body"
|
|
321
|
+
}, selected_template.season_description))) : /*#__PURE__*/React.createElement(View, {
|
|
322
|
+
style: {
|
|
323
|
+
flex: 1
|
|
324
|
+
}
|
|
325
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
326
|
+
theme: "header_2"
|
|
327
|
+
}, "View Templates")), /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
|
|
328
|
+
direction: show_templates ? 'up' : 'down',
|
|
329
|
+
size: 8,
|
|
330
|
+
color: Colors.brand.midnight
|
|
331
|
+
})), show_templates ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
332
|
+
style: {
|
|
333
|
+
padding: 10,
|
|
334
|
+
borderBottomWidth: 1,
|
|
335
|
+
borderColor: Colors.shades.shade600
|
|
336
|
+
},
|
|
337
|
+
onPress: () => {
|
|
338
|
+
setDraftSeason({
|
|
339
|
+
...draft_season,
|
|
340
|
+
following_season_id: undefined
|
|
341
|
+
});
|
|
342
|
+
setShowTemplates(false);
|
|
343
|
+
}
|
|
344
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
345
|
+
theme: "header_2"
|
|
346
|
+
}, "NO TEMPLATE")), /*#__PURE__*/React.createElement(FlatList, {
|
|
347
|
+
data: templates,
|
|
348
|
+
renderItem: renderTemplates,
|
|
349
|
+
keyExtractor: item => item.competition_season_id.toString()
|
|
350
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null))) : /*#__PURE__*/React.createElement(React.Fragment, null)), /*#__PURE__*/React.createElement(View, {
|
|
351
|
+
style: {
|
|
352
|
+
...view_styles.section_footer
|
|
353
|
+
}
|
|
354
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
355
|
+
title: "CLOSE",
|
|
356
|
+
title_color: Colors.shades.white,
|
|
357
|
+
style: {
|
|
358
|
+
flex: 1,
|
|
359
|
+
marginRight: 8
|
|
360
|
+
},
|
|
361
|
+
padding: 15,
|
|
362
|
+
backgroundColor: Colors.utility.error,
|
|
363
|
+
onPress: () => onClose()
|
|
364
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
365
|
+
title: "CREATE SEASON",
|
|
366
|
+
title_color: Colors.shades.white,
|
|
367
|
+
loading: action_loading,
|
|
368
|
+
backgroundColor: Colors.utility.success,
|
|
369
|
+
padding: 15,
|
|
370
|
+
style: {
|
|
371
|
+
flex: 2,
|
|
372
|
+
opacity: !action_loading && errors.length == 0 ? 1 : 0.5
|
|
373
|
+
},
|
|
374
|
+
disabled: errors.length > 0 || action_loading ? true : false,
|
|
375
|
+
onPress: () => handleCreate(draft_season)
|
|
376
|
+
})));
|
|
377
|
+
};
|
|
378
|
+
export default CreateSeasonForm;
|
|
379
|
+
//# sourceMappingURL=CreateSeasonForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","View","ScrollView","TouchableOpacity","Image","FlatList","view_styles","Button","Icons","Text","TextInput","ManageSeasonApi","ManageSeasonHelpers","Colors","CreateSeasonForm","width","max_height","onCreateSeason","onClose","action_loading","setActionLoading","draft_season","setDraftSeason","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","setEnvironment","getFormData","temps","getSeasonTemplates","company_resp","getMyCompanies","handleCreate","season","new_season","createSeason","console","log","renderCompanies","data","createElement","style","body_row","padding","onPress","item","source","uri","company_image","url","height","borderRadius","resizeMode","flex","marginLeft","theme","company_name","marginTop","company_description","renderTemplates","image","season_name","season_description","Fragment","errors","isSeasonValid","section","maxHeight","section_header","section_body","flexWrap","maxWidth","margin","input","value","placeholder","placeholderTextColor","brand","slate","onChangeText","text","length","minWidth","borderWidth","borderColor","shades","shade600","backgroundColor","white","flexDirection","alignItems","ChevronIcon","direction","size","color","midnight","borderBottomWidth","undefined","renderItem","keyExtractor","toString","section_footer","title","title_color","marginRight","utility","error","loading","success","opacity","disabled"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/CreateSeasonForm.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;AAClF,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,MAAM,EAAEC,KAAK,EAAEC,IAAI,EAAEC,SAAS,QAAQ,kBAAkB;AAEjE,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,QAAQ;AAC7D,OAAOC,MAAM,MAAM,wBAAwB;AAS3C,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,KAAK;EAAEC,UAAU;EAAEC,cAAc;EAAEC;AAA8B,CAAC,KAAK;EAC/F,MAAM,CAAEC,cAAc,EAAEC,gBAAgB,CAAE,GAAGpB,QAAQ,CAAC,KAAK,CAAC;EAC5D,MAAM,CAAEqB,YAAY,EAAEC,cAAc,CAAE,GA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AAA,CAAAwD,aAAA,CAAAxD,KAAA,CAAA+E,QAAA,MAAI,CACO,CAAC,eACb/E,KAAA,CAAAwD,aAAA,CAACrD,IAAI;IAACsD,KAAK,EAAE;MAAE,GAAGjD,WAAW,CAAC6G;IAAe;EAAE,gBAC3CrH,KAAA,CAAAwD,aAAA,CAAC/C,MAAM;IACH6G,KAAK,EAAC,OAAO;IACbC,WAAW,EAAExG,MAAM,CAACsF,MAAM,CAACG,KAAM;IACjC/C,KAAK,EAAE;MAAEY,IAAI,EAAC,CAAC;MAAEmD,WAAW,EAAC;IAAE,CAAE;IACjC7D,OAAO,EAAE,EAAG;IACZ4C,eAAe,EAAExF,MAAM,CAAC0G,OAAO,CAACC,KAAM;IACtC9D,OAAO,EAAEA,CAAA,KAAMxC,OAAO,CAAC;EAAE,CAC5B,CAAC,eACFpB,KAAA,CAAAwD,aAAA,CAAC/C,MAAM;IACH6G,KAAK,EAAC,eAAe;IACrBC,WAAW,EAAExG,MAAM,CAACsF,MAAM,CAACG,KAAM;IACjCmB,OAAO,EAAEtG,cAAe;IACxBkF,eAAe,EAAExF,MAAM,CAAC0G,OAAO,CAACG,OAAQ;IACxCjE,OAAO,EAAE,EAAG;IACZF,KAAK,EAAE;MAAEY,IAAI,EAAC,CAAC;MAAEwD,OAAO,EAAE,CAACxG,cAAc,IAAI2D,MAAM,CAACiB,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG;IAAI,CAAE;IAC5E6B,QAAQ,EAAE9C,MAAM,CAACiB,MAAM,GAAG,CAAC,IAAI5E,cAAc,GAAG,IAAI,GAAG,KAAM;IAC7DuC,OAAO,EAAEA,CAAA,KAAMZ,YAAY,CAACzB,YAAY;EAAE,CAC7C,CACC,CACJ,CAAC;AAEf,CAAC;AAED,eAAeP,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Image } from 'react-native';
|
|
3
|
+
import { Button, Text } from '../../Components';
|
|
4
|
+
import Colors from '../../constants/colors';
|
|
5
|
+
import { view_styles } from '../../constants/styles';
|
|
6
|
+
const SeasonHeader = ({
|
|
7
|
+
width,
|
|
8
|
+
action_loading,
|
|
9
|
+
competition_season,
|
|
10
|
+
season_valid,
|
|
11
|
+
onDelete,
|
|
12
|
+
onActivate
|
|
13
|
+
}) => {
|
|
14
|
+
const handleActivate = () => {
|
|
15
|
+
if (!season_valid) {
|
|
16
|
+
return alert(`Please complete all the required sections before activating`);
|
|
17
|
+
}
|
|
18
|
+
onActivate();
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
21
|
+
style: {
|
|
22
|
+
backgroundColor: Colors.shades.white,
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
minWidth: 330,
|
|
25
|
+
maxWidth: width
|
|
26
|
+
}
|
|
27
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
28
|
+
nativeID: "competition_header",
|
|
29
|
+
style: {
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
padding: 20,
|
|
33
|
+
borderBottomWidth: 1,
|
|
34
|
+
borderColor: Colors.shades.shade600
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Image, {
|
|
37
|
+
source: {
|
|
38
|
+
uri: competition_season.image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1649737862/be_logo_jte2ux.webp'
|
|
39
|
+
},
|
|
40
|
+
style: {
|
|
41
|
+
height: 50,
|
|
42
|
+
width: 50,
|
|
43
|
+
borderRadius: 4
|
|
44
|
+
},
|
|
45
|
+
resizeMode: "cover"
|
|
46
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
47
|
+
style: {
|
|
48
|
+
flex: 1,
|
|
49
|
+
marginLeft: 10
|
|
50
|
+
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
52
|
+
theme: "header"
|
|
53
|
+
}, competition_season.season_name), /*#__PURE__*/React.createElement(Text, {
|
|
54
|
+
style: {
|
|
55
|
+
marginTop: 4
|
|
56
|
+
},
|
|
57
|
+
theme: "header_2>"
|
|
58
|
+
}, competition_season.season_description)), competition_season.status == 'pending' ? /*#__PURE__*/React.createElement(Button, {
|
|
59
|
+
title: 'ACTIVATE',
|
|
60
|
+
style: {
|
|
61
|
+
opacity: season_valid ? 1 : 0.5
|
|
62
|
+
},
|
|
63
|
+
loading: action_loading,
|
|
64
|
+
title_color: Colors.shades.white,
|
|
65
|
+
backgroundColor: Colors.utility.success,
|
|
66
|
+
onPress: () => handleActivate()
|
|
67
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null)), competition_season.status == 'pending' ? /*#__PURE__*/React.createElement(View, {
|
|
68
|
+
style: {
|
|
69
|
+
...view_styles.section_header,
|
|
70
|
+
backgroundColor: Colors.shades.shade100
|
|
71
|
+
}
|
|
72
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
73
|
+
style: {
|
|
74
|
+
flex: 1
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
77
|
+
theme: "header"
|
|
78
|
+
}, "SEASON IS PENDING"), /*#__PURE__*/React.createElement(Text, {
|
|
79
|
+
style: {
|
|
80
|
+
marginTop: 3
|
|
81
|
+
},
|
|
82
|
+
theme: "body"
|
|
83
|
+
}, "Complete each section and press 'ACTIVATE'.")), /*#__PURE__*/React.createElement(Button, {
|
|
84
|
+
title: "DELETE",
|
|
85
|
+
style: {
|
|
86
|
+
opacity: !action_loading ? 1 : 0.5
|
|
87
|
+
},
|
|
88
|
+
loading: action_loading,
|
|
89
|
+
title_color: Colors.shades.white,
|
|
90
|
+
backgroundColor: Colors.utility.error,
|
|
91
|
+
onPress: async () => {
|
|
92
|
+
const confirmed = await confirm(`Are you sure you would like to delete this competition? This cannot be undone.`);
|
|
93
|
+
if (!confirmed) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
onDelete();
|
|
97
|
+
}
|
|
98
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
99
|
+
};
|
|
100
|
+
export default SeasonHeader;
|
|
101
|
+
//# sourceMappingURL=SeasonHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Image","Button","Text","Colors","view_styles","SeasonHeader","width","action_loading","competition_season","season_valid","onDelete","onActivate","handleActivate","alert","createElement","style","backgroundColor","shades","white","flexGrow","minWidth","maxWidth","nativeID","flexDirection","alignItems","padding","borderBottomWidth","borderColor","shade600","source","uri","image","url","height","borderRadius","resizeMode","flex","marginLeft","theme","season_name","marginTop","season_description","status","title","opacity","loading","title_color","utility","success","onPress","Fragment","section_header","shade100","error","confirmed","confirm"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonHeader.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,KAAK,QAAQ,cAAc;AAE1C,SAASC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AAC/C,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,SAASC,WAAW,QAAQ,wBAAwB;AAWpD,MAAMC,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,oBACIb,KAAA,CAAAgB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE;MAAEC,eAAe,EAACb,MAAM,CAACc,MAAM,CAACC,KAAK;MAAEC,QAAQ,EAAC,CAAC;MAAEC,QAAQ,EAAC,GAAG;MAAEC,QAAQ,EAACf;IAAM;EAAE,gBAC3FR,KAAA,CAAAg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