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.
- 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/api/index.js +25 -0
- package/lib/commonjs/Engage/api/index.js.map +1 -1
- package/lib/commonjs/Engage/components/SeasonCard.js +78 -0
- package/lib/commonjs/Engage/components/SeasonCard.js.map +1 -0
- package/lib/commonjs/Engage/index.js +52 -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/api/index.js +25 -0
- package/lib/module/Engage/api/index.js.map +1 -1
- package/lib/module/Engage/components/SeasonCard.js +71 -0
- package/lib/module/Engage/components/SeasonCard.js.map +1 -0
- package/lib/module/Engage/index.js +52 -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/api/index.d.ts +6 -1
- package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Engage/components/SeasonCard.d.ts +10 -0
- package/lib/typescript/src/Engage/components/SeasonCard.d.ts.map +1 -0
- package/lib/typescript/src/Engage/index.d.ts +3 -2
- 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/api/index.ts +21 -2
- package/src/Engage/components/SeasonCard.tsx +42 -0
- package/src/Engage/index.tsx +44 -7
- 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,242 @@
|
|
|
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 _colors = _interopRequireDefault(require("../../constants/colors"));
|
|
12
|
+
var _ImageUploader = _interopRequireDefault(require("../../Components/ImageUploader"));
|
|
13
|
+
var _api = require("../api");
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
const SeasonInfoForm = ({
|
|
18
|
+
competition_season,
|
|
19
|
+
player,
|
|
20
|
+
width,
|
|
21
|
+
onSeasonUpdate
|
|
22
|
+
}) => {
|
|
23
|
+
const [expanded, setExpanded] = (0, _react.useState)(false);
|
|
24
|
+
const [draft_season, setDraftSeason] = (0, _react.useState)();
|
|
25
|
+
(0, _react.useEffect)(() => {
|
|
26
|
+
setDraftSeason(competition_season);
|
|
27
|
+
}, [competition_season]);
|
|
28
|
+
if (!draft_season) {
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
30
|
+
}
|
|
31
|
+
const is_changed = _api.ManageSeasonHelpers.isInfoChanged(competition_season, draft_season);
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
33
|
+
style: {
|
|
34
|
+
..._styles.view_styles.section
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
37
|
+
style: {
|
|
38
|
+
..._styles.view_styles.section_header
|
|
39
|
+
},
|
|
40
|
+
onPress: () => setExpanded(!expanded)
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
42
|
+
style: {
|
|
43
|
+
flex: 1
|
|
44
|
+
}
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
46
|
+
theme: "header"
|
|
47
|
+
}, "Season Info"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
48
|
+
style: {
|
|
49
|
+
marginTop: 3
|
|
50
|
+
}
|
|
51
|
+
}, "Update high level information for this competition season")), is_changed ? /*#__PURE__*/_react.default.createElement(_Components.Button, {
|
|
52
|
+
title: "SAVE",
|
|
53
|
+
padding: 10,
|
|
54
|
+
title_color: _colors.default.shades.white,
|
|
55
|
+
backgroundColor: _colors.default.utility.success,
|
|
56
|
+
onPress: () => onSeasonUpdate(draft_season)
|
|
57
|
+
}) : /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
|
|
58
|
+
direction: expanded ? 'up' : 'down',
|
|
59
|
+
color: _colors.default.brand.midnight,
|
|
60
|
+
size: 8
|
|
61
|
+
})), expanded ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
62
|
+
style: {
|
|
63
|
+
..._styles.view_styles.section_body
|
|
64
|
+
}
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
66
|
+
nativeID: "competition_image",
|
|
67
|
+
style: {
|
|
68
|
+
..._styles.view_styles.body_row,
|
|
69
|
+
flexWrap: 'wrap',
|
|
70
|
+
maxWidth: width,
|
|
71
|
+
borderBottomWidth: 1,
|
|
72
|
+
borderColor: _colors.default.shades.shade600
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
75
|
+
style: {
|
|
76
|
+
flex: 1,
|
|
77
|
+
margin: 5,
|
|
78
|
+
minWidth: 200
|
|
79
|
+
}
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
81
|
+
theme: "header_2"
|
|
82
|
+
}, "Competition Image"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
83
|
+
style: {
|
|
84
|
+
marginTop: 3
|
|
85
|
+
},
|
|
86
|
+
theme: "body"
|
|
87
|
+
}, "Give this competition an image so it is recognizable to those trying to join.")), /*#__PURE__*/_react.default.createElement(_ImageUploader.default, {
|
|
88
|
+
public_id: `season_image_${draft_season.competition_season_id}_${Math.random()}`,
|
|
89
|
+
onFinishUpload: obj => onSeasonUpdate({
|
|
90
|
+
...draft_season,
|
|
91
|
+
image: {
|
|
92
|
+
...obj,
|
|
93
|
+
url: obj.secure_url
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
97
|
+
source: {
|
|
98
|
+
uri: draft_season.image?.url
|
|
99
|
+
},
|
|
100
|
+
style: {
|
|
101
|
+
height: 50,
|
|
102
|
+
width: 50,
|
|
103
|
+
borderRadius: 4
|
|
104
|
+
},
|
|
105
|
+
resizeMode: "cover"
|
|
106
|
+
}), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
107
|
+
size: 12,
|
|
108
|
+
color: _colors.default.brand.electric,
|
|
109
|
+
textAlign: "center"
|
|
110
|
+
}, "CHANGE"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
111
|
+
nativeID: "competition_name",
|
|
112
|
+
style: {
|
|
113
|
+
..._styles.view_styles.body_row,
|
|
114
|
+
flexWrap: 'wrap',
|
|
115
|
+
maxWidth: width,
|
|
116
|
+
borderBottomWidth: 1,
|
|
117
|
+
borderColor: _colors.default.shades.shade600
|
|
118
|
+
}
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
120
|
+
style: {
|
|
121
|
+
flex: 1,
|
|
122
|
+
margin: 5,
|
|
123
|
+
minWidth: 200
|
|
124
|
+
}
|
|
125
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
126
|
+
theme: "header_2"
|
|
127
|
+
}, "Competition Name"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
128
|
+
style: {
|
|
129
|
+
marginTop: 3
|
|
130
|
+
},
|
|
131
|
+
theme: "body"
|
|
132
|
+
}, "Give the competition a memorable name that aligns with the type and payout.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
133
|
+
style: {
|
|
134
|
+
..._styles.view_styles.input,
|
|
135
|
+
flexGrow: 1,
|
|
136
|
+
margin: 5
|
|
137
|
+
},
|
|
138
|
+
onChangeText: text => setDraftSeason({
|
|
139
|
+
...draft_season,
|
|
140
|
+
season_name: text
|
|
141
|
+
}),
|
|
142
|
+
value: draft_season.season_name,
|
|
143
|
+
placeholder: "Competition Name",
|
|
144
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
145
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
146
|
+
nativeID: "competition_description",
|
|
147
|
+
style: {
|
|
148
|
+
..._styles.view_styles.body_row,
|
|
149
|
+
flexWrap: 'wrap',
|
|
150
|
+
maxWidth: width,
|
|
151
|
+
marginTop: 10,
|
|
152
|
+
borderBottomWidth: 1,
|
|
153
|
+
borderColor: _colors.default.shades.shade600
|
|
154
|
+
}
|
|
155
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
156
|
+
style: {
|
|
157
|
+
flex: 1,
|
|
158
|
+
margin: 5,
|
|
159
|
+
minWidth: 200
|
|
160
|
+
}
|
|
161
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
162
|
+
theme: "header_2"
|
|
163
|
+
}, "Competition Description"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
164
|
+
style: {
|
|
165
|
+
marginTop: 3
|
|
166
|
+
},
|
|
167
|
+
theme: "body"
|
|
168
|
+
}, "Give the competition a memorable description that would entice users to participate.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
169
|
+
style: {
|
|
170
|
+
..._styles.view_styles.input,
|
|
171
|
+
flexGrow: 1,
|
|
172
|
+
margin: 5
|
|
173
|
+
},
|
|
174
|
+
onChangeText: text => setDraftSeason({
|
|
175
|
+
...draft_season,
|
|
176
|
+
season_description: text
|
|
177
|
+
}),
|
|
178
|
+
value: draft_season.season_description,
|
|
179
|
+
placeholder: "Pick 5 games ATS from NFL Week 6 matchups",
|
|
180
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
181
|
+
})), player?.role == 'admin' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
182
|
+
nativeID: "invite_only",
|
|
183
|
+
style: {
|
|
184
|
+
..._styles.view_styles.body_row,
|
|
185
|
+
flexWrap: 'wrap',
|
|
186
|
+
marginTop: 10,
|
|
187
|
+
borderBottomWidth: 1,
|
|
188
|
+
borderColor: _colors.default.shades.shade600
|
|
189
|
+
}
|
|
190
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
191
|
+
style: {
|
|
192
|
+
flex: 1,
|
|
193
|
+
margin: 5,
|
|
194
|
+
marginRight: 15
|
|
195
|
+
}
|
|
196
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
197
|
+
theme: "header_2"
|
|
198
|
+
}, "Make Template"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
199
|
+
style: {
|
|
200
|
+
marginTop: 3
|
|
201
|
+
},
|
|
202
|
+
theme: "body"
|
|
203
|
+
}, "Can this season be selected by others to replicate? Any competition created in this competition will be extrapolated to others.")), /*#__PURE__*/_react.default.createElement(_Components.Switch, {
|
|
204
|
+
value: draft_season.template ?? false,
|
|
205
|
+
switch_type: "on_off",
|
|
206
|
+
onChange: value => onSeasonUpdate({
|
|
207
|
+
...draft_season,
|
|
208
|
+
template: value
|
|
209
|
+
})
|
|
210
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
211
|
+
nativeID: "invite_only",
|
|
212
|
+
style: {
|
|
213
|
+
..._styles.view_styles.body_row,
|
|
214
|
+
flexWrap: 'wrap',
|
|
215
|
+
marginTop: 10,
|
|
216
|
+
borderBottomWidth: 1,
|
|
217
|
+
borderColor: _colors.default.shades.shade600
|
|
218
|
+
}
|
|
219
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
220
|
+
style: {
|
|
221
|
+
flex: 1,
|
|
222
|
+
margin: 5,
|
|
223
|
+
marginRight: 15
|
|
224
|
+
}
|
|
225
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
226
|
+
theme: "header_2"
|
|
227
|
+
}, "Make Private"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
228
|
+
style: {
|
|
229
|
+
marginTop: 3
|
|
230
|
+
},
|
|
231
|
+
theme: "body"
|
|
232
|
+
}, "Only access this competition using an invite code.")), /*#__PURE__*/_react.default.createElement(_Components.Switch, {
|
|
233
|
+
value: draft_season.invite_only,
|
|
234
|
+
switch_type: "on_off",
|
|
235
|
+
onChange: value => onSeasonUpdate({
|
|
236
|
+
...draft_season,
|
|
237
|
+
invite_only: value
|
|
238
|
+
})
|
|
239
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
240
|
+
};
|
|
241
|
+
var _default = exports.default = SeasonInfoForm;
|
|
242
|
+
//# sourceMappingURL=SeasonInfoForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_Components","_colors","_interopRequireDefault","_ImageUploader","_api","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SeasonInfoForm","competition_season","player","width","onSeasonUpdate","expanded","setExpanded","useState","draft_season","setDraftSeason","useEffect","createElement","Fragment","is_changed","ManageSeasonHelpers","isInfoChanged","View","style","view_styles","section","TouchableOpacity","section_header","onPress","flex","Text","theme","marginTop","Button","title","padding","title_color","Colors","shades","white","backgroundColor","utility","success","Icons","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","image","url","secure_url","Image","source","uri","height","borderRadius","resizeMode","electric","textAlign","TextInput","input","flexGrow","onChangeText","text","season_name","value","placeholder","placeholderTextColor","slate","season_description","role","marginRight","Switch","template","switch_type","onChange","invite_only","_default","exports"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonInfoForm.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,O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_interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _styles = require("../../constants/styles");
|
|
10
|
+
var _Components = require("../../Components");
|
|
11
|
+
var _colors = _interopRequireDefault(require("../../constants/colors"));
|
|
12
|
+
var _api = require("../api");
|
|
13
|
+
var _Dropdown = _interopRequireDefault(require("../../Components/Dropdown"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
const SeasonSettingsForm = ({
|
|
18
|
+
competition_season,
|
|
19
|
+
width,
|
|
20
|
+
competition_types,
|
|
21
|
+
competition_result_types,
|
|
22
|
+
onSeasonUpdate
|
|
23
|
+
}) => {
|
|
24
|
+
const [expanded, setExpanded] = (0, _react.useState)(false);
|
|
25
|
+
const [draft_season, setDraftSeason] = (0, _react.useState)();
|
|
26
|
+
const competition_type = competition_types.find(ct => ct.competition_type_id == draft_season?.competition_type_id);
|
|
27
|
+
const competition_result_type = competition_result_types.find(crt => crt.competition_result_type_id == draft_season?.competition_result_type_id);
|
|
28
|
+
(0, _react.useEffect)(() => {
|
|
29
|
+
setDraftSeason(competition_season);
|
|
30
|
+
}, [competition_season]);
|
|
31
|
+
if (!draft_season) {
|
|
32
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
33
|
+
}
|
|
34
|
+
const renderCompetitionTypes = data => {
|
|
35
|
+
if (!draft_season) {
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
37
|
+
}
|
|
38
|
+
const selected = data.item.competition_type_id == draft_season.competition_type_id ? true : false;
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
40
|
+
style: {
|
|
41
|
+
minWidth: 75,
|
|
42
|
+
margin: 1,
|
|
43
|
+
borderRadius: 8,
|
|
44
|
+
padding: 10,
|
|
45
|
+
backgroundColor: selected ? _colors.default.brand.midnight : undefined
|
|
46
|
+
},
|
|
47
|
+
onPress: () => onSeasonUpdate({
|
|
48
|
+
...draft_season,
|
|
49
|
+
competition_type_id: data.item.competition_type_id
|
|
50
|
+
})
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
52
|
+
textAlign: "center",
|
|
53
|
+
color: selected ? _colors.default.shades.white : _colors.default.brand.midnight,
|
|
54
|
+
weight: selected ? 'bold' : 'regular',
|
|
55
|
+
size: 14
|
|
56
|
+
}, data.item.type_label));
|
|
57
|
+
};
|
|
58
|
+
const is_changed = _api.ManageSeasonHelpers.isSettingsChanged(competition_season, draft_season);
|
|
59
|
+
const is_valid = _api.ManageSeasonHelpers.isSettingsValid(draft_season);
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
61
|
+
style: {
|
|
62
|
+
..._styles.view_styles.section
|
|
63
|
+
}
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
65
|
+
style: {
|
|
66
|
+
..._styles.view_styles.section_header
|
|
67
|
+
},
|
|
68
|
+
onPress: () => setExpanded(!expanded)
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
70
|
+
style: {
|
|
71
|
+
flex: 1
|
|
72
|
+
}
|
|
73
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
74
|
+
theme: "header"
|
|
75
|
+
}, "Season Settings"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
76
|
+
style: {
|
|
77
|
+
marginTop: 3
|
|
78
|
+
}
|
|
79
|
+
}, "Update season settings")), is_changed ? /*#__PURE__*/_react.default.createElement(_Components.Button, {
|
|
80
|
+
title: "SAVE",
|
|
81
|
+
padding: 10,
|
|
82
|
+
style: {
|
|
83
|
+
opacity: is_valid ? 1 : 0.5
|
|
84
|
+
},
|
|
85
|
+
disabled: !is_valid,
|
|
86
|
+
title_color: _colors.default.shades.white,
|
|
87
|
+
backgroundColor: _colors.default.utility.success,
|
|
88
|
+
onPress: () => onSeasonUpdate(draft_season)
|
|
89
|
+
}) : /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
|
|
90
|
+
direction: expanded ? 'up' : 'down',
|
|
91
|
+
color: _colors.default.brand.midnight,
|
|
92
|
+
size: 8
|
|
93
|
+
})), expanded ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
94
|
+
style: {
|
|
95
|
+
..._styles.view_styles.section_body
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
98
|
+
style: {
|
|
99
|
+
..._styles.view_styles.body_row,
|
|
100
|
+
maxWidth: width,
|
|
101
|
+
borderBottomWidth: 1,
|
|
102
|
+
marginTop: 10,
|
|
103
|
+
borderColor: _colors.default.shades.shade600
|
|
104
|
+
}
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
106
|
+
style: {
|
|
107
|
+
flex: 1
|
|
108
|
+
}
|
|
109
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
110
|
+
theme: "header_2"
|
|
111
|
+
}, "Ticket Price"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
112
|
+
style: {
|
|
113
|
+
marginTop: 3
|
|
114
|
+
}
|
|
115
|
+
}, "How much does it cost to enter this season?")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
116
|
+
style: {
|
|
117
|
+
..._styles.view_styles.input,
|
|
118
|
+
width: 75,
|
|
119
|
+
textAlign: 'center'
|
|
120
|
+
},
|
|
121
|
+
onChangeText: text => setDraftSeason({
|
|
122
|
+
...draft_season,
|
|
123
|
+
ticket_price: text
|
|
124
|
+
}),
|
|
125
|
+
placeholder: "0",
|
|
126
|
+
value: draft_season.ticket_price,
|
|
127
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
128
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
129
|
+
style: {
|
|
130
|
+
..._styles.view_styles.body_row,
|
|
131
|
+
maxWidth: width,
|
|
132
|
+
borderBottomWidth: 1,
|
|
133
|
+
marginTop: 10,
|
|
134
|
+
borderColor: _colors.default.shades.shade600
|
|
135
|
+
}
|
|
136
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
137
|
+
style: {
|
|
138
|
+
flex: 1
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
141
|
+
theme: "header_2"
|
|
142
|
+
}, "Season Payout Allocation"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
143
|
+
style: {
|
|
144
|
+
marginTop: 3
|
|
145
|
+
}
|
|
146
|
+
}, "How much of the total pot should be allocated to the season winners? Remaining is paid out each competition.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
147
|
+
style: {
|
|
148
|
+
..._styles.view_styles.input,
|
|
149
|
+
width: 75,
|
|
150
|
+
textAlign: 'center'
|
|
151
|
+
},
|
|
152
|
+
onChangeText: text => setDraftSeason({
|
|
153
|
+
...draft_season,
|
|
154
|
+
payout_allocation: text
|
|
155
|
+
}),
|
|
156
|
+
placeholder: "0",
|
|
157
|
+
value: draft_season.payout_allocation,
|
|
158
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
159
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
160
|
+
nativeID: "competition_type",
|
|
161
|
+
style: {
|
|
162
|
+
..._styles.view_styles.body_row,
|
|
163
|
+
flexWrap: 'wrap',
|
|
164
|
+
maxWidth: width,
|
|
165
|
+
borderBottomWidth: 1,
|
|
166
|
+
borderColor: _colors.default.shades.shade600
|
|
167
|
+
}
|
|
168
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
169
|
+
style: {
|
|
170
|
+
flex: 1
|
|
171
|
+
}
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
173
|
+
theme: "header_2"
|
|
174
|
+
}, "Competition Type"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
175
|
+
style: {
|
|
176
|
+
marginTop: 3
|
|
177
|
+
},
|
|
178
|
+
theme: "body"
|
|
179
|
+
}, competition_type ? competition_type.description : 'Choose the type of competition this is.')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
180
|
+
style: {
|
|
181
|
+
margin: 5,
|
|
182
|
+
borderRadius: 8,
|
|
183
|
+
backgroundColor: _colors.default.shades.white
|
|
184
|
+
}
|
|
185
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
186
|
+
data: competition_types,
|
|
187
|
+
renderItem: renderCompetitionTypes,
|
|
188
|
+
keyExtractor: item => item.competition_type_id.toString(),
|
|
189
|
+
horizontal: true
|
|
190
|
+
}))), competition_type?.type == 'pick' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
191
|
+
style: {
|
|
192
|
+
..._styles.view_styles.body_row,
|
|
193
|
+
maxWidth: width,
|
|
194
|
+
marginTop: 10,
|
|
195
|
+
borderBottomWidth: 1,
|
|
196
|
+
borderColor: _colors.default.shades.shade600
|
|
197
|
+
}
|
|
198
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
199
|
+
style: {
|
|
200
|
+
flex: 1
|
|
201
|
+
}
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
203
|
+
theme: "header_2"
|
|
204
|
+
}, "Max Picks"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
205
|
+
style: {
|
|
206
|
+
marginTop: 3
|
|
207
|
+
}
|
|
208
|
+
}, "The total number of picks allowed by each participant.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
209
|
+
style: {
|
|
210
|
+
..._styles.view_styles.input,
|
|
211
|
+
width: 75,
|
|
212
|
+
textAlign: 'center'
|
|
213
|
+
},
|
|
214
|
+
onChangeText: text => setDraftSeason({
|
|
215
|
+
...draft_season,
|
|
216
|
+
max_picks: text
|
|
217
|
+
}),
|
|
218
|
+
placeholder: "0",
|
|
219
|
+
value: draft_season.max_picks,
|
|
220
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
221
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), competition_type?.type == 'wager' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
222
|
+
style: {
|
|
223
|
+
..._styles.view_styles.body_row,
|
|
224
|
+
maxWidth: width,
|
|
225
|
+
borderBottomWidth: 1,
|
|
226
|
+
marginTop: 10,
|
|
227
|
+
borderColor: _colors.default.shades.shade600
|
|
228
|
+
}
|
|
229
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
230
|
+
style: {
|
|
231
|
+
flex: 1
|
|
232
|
+
}
|
|
233
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
234
|
+
theme: "header_2"
|
|
235
|
+
}, "Initial Balance"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
236
|
+
style: {
|
|
237
|
+
marginTop: 3
|
|
238
|
+
}
|
|
239
|
+
}, "Initial balance that each player will start with at the beginning of the competition.")), /*#__PURE__*/_react.default.createElement(_Components.TextInput, {
|
|
240
|
+
style: {
|
|
241
|
+
..._styles.view_styles.input,
|
|
242
|
+
width: 75,
|
|
243
|
+
textAlign: 'center'
|
|
244
|
+
},
|
|
245
|
+
onChangeText: text => setDraftSeason({
|
|
246
|
+
...draft_season,
|
|
247
|
+
initial_balance: text
|
|
248
|
+
}),
|
|
249
|
+
placeholder: "0",
|
|
250
|
+
value: draft_season.initial_balance,
|
|
251
|
+
placeholderTextColor: _colors.default.brand.slate
|
|
252
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), competition_type?.type == 'wager' ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
253
|
+
style: {
|
|
254
|
+
..._styles.view_styles.body_row,
|
|
255
|
+
maxWidth: width,
|
|
256
|
+
borderBottomWidth: 1,
|
|
257
|
+
marginTop: 10,
|
|
258
|
+
borderColor: _colors.default.shades.shade600
|
|
259
|
+
}
|
|
260
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
261
|
+
style: {
|
|
262
|
+
flex: 1
|
|
263
|
+
}
|
|
264
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
265
|
+
theme: "header_2"
|
|
266
|
+
}, "Rollover Balance"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
267
|
+
style: {
|
|
268
|
+
marginTop: 3
|
|
269
|
+
}
|
|
270
|
+
}, "Should the wager balance for each player rollover from prior competitions?")), /*#__PURE__*/_react.default.createElement(_Components.Switch, {
|
|
271
|
+
value: draft_season.balance_rollover,
|
|
272
|
+
switch_type: "on_off",
|
|
273
|
+
onChange: value => onSeasonUpdate({
|
|
274
|
+
...draft_season,
|
|
275
|
+
balance_rollover: value
|
|
276
|
+
})
|
|
277
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
278
|
+
nativeID: "competition_payout",
|
|
279
|
+
style: {
|
|
280
|
+
..._styles.view_styles.body_row,
|
|
281
|
+
flexWrap: 'wrap',
|
|
282
|
+
maxWidth: width
|
|
283
|
+
}
|
|
284
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
285
|
+
style: {
|
|
286
|
+
flex: 1,
|
|
287
|
+
margin: 5,
|
|
288
|
+
minWidth: 200
|
|
289
|
+
}
|
|
290
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
291
|
+
theme: "header_2"
|
|
292
|
+
}, "Competition Payout Type"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
293
|
+
style: {
|
|
294
|
+
marginTop: 3
|
|
295
|
+
},
|
|
296
|
+
theme: "body"
|
|
297
|
+
}, competition_result_type ? competition_result_type.description : 'Choose the type of payout for this competition')), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
298
|
+
style: {
|
|
299
|
+
justifyContent: 'flex-end',
|
|
300
|
+
margin: 5,
|
|
301
|
+
borderRadius: 8,
|
|
302
|
+
backgroundColor: _colors.default.shades.white
|
|
303
|
+
}
|
|
304
|
+
}, /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
|
|
305
|
+
dropdown_options: [{
|
|
306
|
+
value: 'competition_result_type_id',
|
|
307
|
+
eligible_options: competition_result_types.filter(crt => crt.type != 'outpace').map(t => t.label)
|
|
308
|
+
}],
|
|
309
|
+
selected_value: competition_result_type?.label ?? '',
|
|
310
|
+
onOptionSelect: type => {
|
|
311
|
+
const new_result_type = competition_result_types.find(crt => crt.label == type);
|
|
312
|
+
if (!new_result_type) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
onSeasonUpdate({
|
|
316
|
+
...draft_season,
|
|
317
|
+
competition_result_type_id: new_result_type.competition_result_type_id
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
321
|
+
nativeID: "invite_only",
|
|
322
|
+
style: {
|
|
323
|
+
..._styles.view_styles.body_row,
|
|
324
|
+
flexWrap: 'wrap',
|
|
325
|
+
marginTop: 10,
|
|
326
|
+
borderBottomWidth: 1,
|
|
327
|
+
borderColor: _colors.default.shades.shade600
|
|
328
|
+
}
|
|
329
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
330
|
+
style: {
|
|
331
|
+
flex: 1,
|
|
332
|
+
margin: 5,
|
|
333
|
+
marginRight: 15
|
|
334
|
+
}
|
|
335
|
+
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
336
|
+
theme: "header_2"
|
|
337
|
+
}, "Allow Late Buy In"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
338
|
+
style: {
|
|
339
|
+
marginTop: 3
|
|
340
|
+
},
|
|
341
|
+
theme: "body"
|
|
342
|
+
}, "Determines if a player can join the season after it has started.")), /*#__PURE__*/_react.default.createElement(_Components.Switch, {
|
|
343
|
+
value: draft_season.allow_late_buy_in,
|
|
344
|
+
switch_type: "on_off",
|
|
345
|
+
onChange: value => onSeasonUpdate({
|
|
346
|
+
...draft_season,
|
|
347
|
+
allow_late_buy_in: value
|
|
348
|
+
})
|
|
349
|
+
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
350
|
+
};
|
|
351
|
+
var _default = exports.default = SeasonSettingsForm;
|
|
352
|
+
//# sourceMappingURL=SeasonSettingsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_Components","_colors","_interopRequireDefault","_api","_Dropdown","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SeasonSettingsForm","competition_season","width","competition_types","competition_result_types","onSeasonUpdate","expanded","setExpanded","useState","draft_season","setDraftSeason","competition_type","find","ct","competition_type_id","competition_result_type","crt","competition_result_type_id","useEffect","createElement","Fragment","renderCompetitionTypes","data","selected","item","TouchableOpacity","style","minWidth","margin","borderRadius","padding","backgroundColor","Colors","brand","midnight","undefined","onPress","Text","textAlign","color","shades","white","weight","size","type_label","is_changed","ManageSeasonHelpers","isSettingsChanged","is_valid","isSettingsValid","View","view_styles","section","section_header","flex","theme","marginTop","Button","title","opacity","disabled","title_color","utility","success","Icons","ChevronIcon","direction","section_body","body_row","maxWidth","borderBottomWidth","borderColor","shade600","TextInput","input","onChangeText","text","ticket_price","placeholder","value","placeholderTextColor","slate","payout_allocation","nativeID","flexWrap","description","FlatList","renderItem","keyExtractor","toString","horizontal","type","max_picks","initial_balance","Switch","balance_rollover","switch_type","onChange","justifyContent","dropdown_options","eligible_options","filter","map","label","selected_value","onOptionSelect","new_result_type","marginRight","allow_late_buy_in","_default","exports"],"sourceRoot":"../../../../src","sources":["CompetitionSeasonManager/components/SeasonSettingsForm.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,IAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAF,sBAAA,CAAAL,OAAA;AAAiD,SAAAK,uBAAAG,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,SAAAb,wBAAAa,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,GAA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