be-components 3.5.7 → 3.5.9
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/CompetitionManager/components/AthleteSelector.js +52 -75
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +135 -119
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js +69 -62
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +86 -91
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +143 -150
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js +57 -61
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +120 -266
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js +35 -32
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js +42 -39
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/index.js +47 -50
- package/lib/commonjs/CompetitionManager/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/OrderBook.js +1 -0
- package/lib/commonjs/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +56 -3
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js +86 -0
- package/lib/commonjs/ProfileManager/Components/Vouchhtml.js.map +1 -0
- package/lib/module/CompetitionManager/components/AthleteSelector.js +42 -65
- package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js +93 -77
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionHeader.js +47 -40
- package/lib/module/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +59 -64
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +108 -115
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSelector.js +34 -38
- package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js +90 -237
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/MarketSelector.js +26 -23
- package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/PlayerSelector.js +30 -27
- package/lib/module/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/module/CompetitionManager/index.js +32 -35
- package/lib/module/CompetitionManager/index.js.map +1 -1
- package/lib/module/MarketComponents/components/OrderBook.js +1 -0
- package/lib/module/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +56 -3
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/Components/Vouchhtml.js +80 -0
- package/lib/module/ProfileManager/Components/Vouchhtml.js.map +1 -0
- package/lib/typescript/lib/commonjs/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts +9 -0
- package/lib/typescript/lib/commonjs/ProfileManager/Components/Vouchhtml.d.ts.map +1 -0
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts +3 -3
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts +8 -0
- package/lib/typescript/lib/module/ProfileManager/Components/Vouchhtml.d.ts.map +1 -0
- package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts +7 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts +10 -0
- package/lib/typescript/src/ProfileManager/Components/Vouchhtml.d.ts.map +1 -0
- package/package.json +4 -1
- package/src/CompetitionManager/components/AthleteSelector.tsx +32 -52
- package/src/CompetitionManager/components/CompetitionContestsForm.tsx +82 -89
- package/src/CompetitionManager/components/CompetitionHeader.tsx +45 -37
- package/src/CompetitionManager/components/CompetitionInfoForm.tsx +36 -40
- package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +88 -96
- package/src/CompetitionManager/components/ContestSelector.tsx +33 -36
- package/src/CompetitionManager/components/ContestSettingsForm.tsx +58 -179
- package/src/CompetitionManager/components/MarketSelector.tsx +19 -21
- package/src/CompetitionManager/components/PlayerSelector.tsx +23 -26
- package/src/CompetitionManager/index.tsx +22 -25
- package/src/MarketComponents/components/OrderBook.tsx +1 -0
- package/src/ProfileManager/Components/VouchCard.tsx +46 -2
- package/src/ProfileManager/Components/Vouchhtml.ts +87 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { FlatList
|
|
3
|
-
import {
|
|
4
|
-
import Colors from '../../constants/colors';
|
|
5
|
-
import { view_styles } from '../../constants/styles';
|
|
2
|
+
import { FlatList } from "react-native";
|
|
3
|
+
import { Switch } from '../../Components';
|
|
6
4
|
import SearchBox from '../../Components/SearchBox';
|
|
5
|
+
import { useColors } from '../../constants/useColors';
|
|
6
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
7
7
|
const MarketSelector = ({
|
|
8
8
|
width,
|
|
9
9
|
height,
|
|
@@ -14,33 +14,34 @@ const MarketSelector = ({
|
|
|
14
14
|
onClose
|
|
15
15
|
}) => {
|
|
16
16
|
const [search_value, setSearchValue] = useState('');
|
|
17
|
+
const Colors = useColors();
|
|
17
18
|
const filtered_markets = markets.filter(m => `${m.type} ${m.description}`.toLowerCase().includes(search_value.toLowerCase()));
|
|
18
19
|
const renderMarkets = data => {
|
|
19
20
|
const selected = selected_markets.includes(data.item.market_id) ? true : false;
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
21
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
21
22
|
style: {
|
|
22
|
-
|
|
23
|
+
flexDirection: 'row',
|
|
24
|
+
alignItems: 'center',
|
|
23
25
|
padding: 10,
|
|
24
26
|
borderBottomWidth: 1,
|
|
25
|
-
borderColor: Colors.
|
|
27
|
+
borderColor: Colors.borders.light
|
|
26
28
|
},
|
|
27
29
|
onPress: () => selected ? onDeselectMarket(data.item) : onSelectMarket(data.item)
|
|
28
30
|
}, /*#__PURE__*/React.createElement(View, {
|
|
31
|
+
transparent: true,
|
|
29
32
|
style: {
|
|
30
33
|
flex: 1,
|
|
31
34
|
marginRight: 10
|
|
32
35
|
}
|
|
33
36
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
34
37
|
size: 14,
|
|
35
|
-
|
|
36
|
-
weight: "bold"
|
|
38
|
+
theme: "h1"
|
|
37
39
|
}, data.item.type == 'Stat' ? data.item.stat_label : data.item.type), /*#__PURE__*/React.createElement(Text, {
|
|
38
40
|
style: {
|
|
39
41
|
marginTop: 3
|
|
40
42
|
},
|
|
41
43
|
size: 14,
|
|
42
|
-
|
|
43
|
-
weight: "regular"
|
|
44
|
+
theme: "description"
|
|
44
45
|
}, data.item.description)), /*#__PURE__*/React.createElement(Switch, {
|
|
45
46
|
switch_type: "on_off",
|
|
46
47
|
value: selected,
|
|
@@ -55,27 +56,28 @@ const MarketSelector = ({
|
|
|
55
56
|
return /*#__PURE__*/React.createElement(View, {
|
|
56
57
|
style: {
|
|
57
58
|
width,
|
|
58
|
-
height
|
|
59
|
-
backgroundColor: Colors.shades.white
|
|
59
|
+
height
|
|
60
60
|
}
|
|
61
61
|
}, /*#__PURE__*/React.createElement(View, {
|
|
62
|
+
type: "header",
|
|
62
63
|
style: {
|
|
63
|
-
|
|
64
|
+
flexDirection: 'row',
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
padding: 20
|
|
64
67
|
}
|
|
65
68
|
}, /*#__PURE__*/React.createElement(View, {
|
|
69
|
+
transparent: true,
|
|
66
70
|
style: {
|
|
67
71
|
flex: 1
|
|
68
72
|
}
|
|
69
73
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
70
|
-
theme: "
|
|
71
|
-
}, "MANAGE MARKETS"))), /*#__PURE__*/React.createElement(
|
|
74
|
+
theme: "h1"
|
|
75
|
+
}, "MANAGE MARKETS"))), /*#__PURE__*/React.createElement(View, {
|
|
72
76
|
style: {
|
|
73
77
|
flex: 1
|
|
74
78
|
}
|
|
75
79
|
}, /*#__PURE__*/React.createElement(View, {
|
|
76
|
-
|
|
77
|
-
...view_styles.section_body
|
|
78
|
-
}
|
|
80
|
+
type: "body"
|
|
79
81
|
}, /*#__PURE__*/React.createElement(View, {
|
|
80
82
|
style: {
|
|
81
83
|
marginTop: 0
|
|
@@ -88,17 +90,18 @@ const MarketSelector = ({
|
|
|
88
90
|
renderItem: renderMarkets,
|
|
89
91
|
keyExtractor: item => item.market_id.toString()
|
|
90
92
|
}))), /*#__PURE__*/React.createElement(View, {
|
|
93
|
+
type: "footer",
|
|
91
94
|
style: {
|
|
92
|
-
|
|
95
|
+
flexDirection: 'row',
|
|
96
|
+
alignItems: 'center',
|
|
97
|
+
padding: 10
|
|
93
98
|
}
|
|
94
99
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
95
100
|
title: "CLOSE",
|
|
96
101
|
style: {
|
|
97
102
|
flex: 1
|
|
98
103
|
},
|
|
99
|
-
|
|
100
|
-
title_color: Colors.shades.white,
|
|
101
|
-
backgroundColor: Colors.utility.error,
|
|
104
|
+
type: "error",
|
|
102
105
|
onPress: () => onClose()
|
|
103
106
|
})));
|
|
104
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","FlatList","
|
|
1
|
+
{"version":3,"names":["React","useState","FlatList","Switch","SearchBox","useColors","Button","Text","View","MarketSelector","width","height","markets","selected_markets","onSelectMarket","onDeselectMarket","onClose","search_value","setSearchValue","Colors","filtered_markets","filter","m","type","description","toLowerCase","includes","renderMarkets","data","selected","item","market_id","createElement","style","flexDirection","alignItems","padding","borderBottomWidth","borderColor","borders","light","onPress","transparent","flex","marginRight","size","theme","stat_label","marginTop","switch_type","value","onChange","text","hide_search_button","renderItem","keyExtractor","toString","title"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/MarketSelector.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,MAAM,QAAQ,kBAAkB;AACzC,OAAOC,SAAS,MAAM,4BAA4B;AAClD,SAASC,SAAS,QAAQ,2BAA2B;AACrD,SAASC,MAAM,EAAEC,IAAI,EAAEC,IAAI,QAAQ,yBAAyB;AAW5D,MAAMC,cAAc,GAAGA,CAAC;EAAEC,KAAK;EAAEC,MAAM;EAAEC,OAAO;EAAEC,gBAAgB;EAAEC,cAAc;EAAEC,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;IAAE;EAAE,gBACzBhD,KAAA,CAAAgC,aAAA,CAAC5B,SAAS;IACN+C,QAAQ,EAAGC,IAAI,IAAKlC,cAAc,CAACkC,IAAI,CAAE;IACzCC,kBAAkB;EAAA,CACrB,CACC,CAAC,eACPrD,KAAA,CAAAgC,aAAA,CAAC9B,QAAQ;IACL0B,IAAI,EAAER,gBAAiB;IACvBkC,UAAU,EAAE3B,aAAc;IAC1B4B,YAAY,EAAGzB,IAAI,IAAKA,IAAI,CAACC,SAAS,CAACyB,QAAQ,CAAC;EAAE,CACrD,CACC,CACJ,CAAC,eACPxD,KAAA,CAAAgC,aAAA,CAACxB,IAAI;IAACe,IAAI,EAAC,QAAQ;IAACU,KAAK,EAAE;MAAEC,aAAa,EAAC,KAAK;MAAEC,UAAU,EAAC,QAAQ;MAAEC,OAAO,EAAC;IAAG;EAAE,gBACpFpC,KAAA,CAAAgC,aAAA,CAAC1B,MAAM;IACCmD,KAAK,EAAC,OAAO;IACbxB,KAAK,EAAE;MAAEU,IAAI,EAAC;IAAE,CAAE;IAClBpB,IAAI,EAAC,OAAO;IACZkB,OAAO,EAAEA,CAAA,KAAMzB,OAAO,CAAC;EAAE,CAC5B,CACC,CACJ,CAAC;AAEf,CAAC;AAED,eAAeP,cAAc","ignoreList":[]}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import { FlatList,
|
|
2
|
+
import { FlatList, Image, ActivityIndicator } from 'react-native';
|
|
3
3
|
import SearchBox from '../../Components/SearchBox';
|
|
4
|
-
import {
|
|
5
|
-
import { Button, Icons, Text } from '../../Components';
|
|
6
|
-
import Colors from '../../constants/colors';
|
|
4
|
+
import { Icons } from '../../Components';
|
|
7
5
|
import { ManageCompetitionApi } from '../api';
|
|
8
6
|
import moment from 'moment-mini';
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
9
|
const PlayerSelector = ({
|
|
10
10
|
width,
|
|
11
11
|
height,
|
|
12
12
|
onSelectPlayer,
|
|
13
13
|
onClose
|
|
14
14
|
}) => {
|
|
15
|
+
const Colors = useColors();
|
|
15
16
|
const [search_value, setSearchValue] = useState('');
|
|
16
17
|
const [selector_data, setData] = useState({
|
|
17
18
|
loading: false,
|
|
@@ -40,12 +41,13 @@ const PlayerSelector = ({
|
|
|
40
41
|
});
|
|
41
42
|
};
|
|
42
43
|
const renderPlayers = data => {
|
|
43
|
-
return /*#__PURE__*/React.createElement(
|
|
44
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
44
45
|
style: {
|
|
45
|
-
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
alignItems: 'center',
|
|
46
48
|
padding: 10,
|
|
47
49
|
borderBottomWidth: 1,
|
|
48
|
-
borderColor: Colors.
|
|
50
|
+
borderColor: Colors.borders.light
|
|
49
51
|
},
|
|
50
52
|
onPress: () => onSelectPlayer(data.item)
|
|
51
53
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -59,47 +61,49 @@ const PlayerSelector = ({
|
|
|
59
61
|
},
|
|
60
62
|
resizeMode: "cover"
|
|
61
63
|
}), /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
transparent: true,
|
|
62
65
|
style: {
|
|
63
66
|
flex: 1,
|
|
64
67
|
marginLeft: 10
|
|
65
68
|
}
|
|
66
69
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
67
|
-
theme: "
|
|
70
|
+
theme: "h2"
|
|
68
71
|
}, "@", data.item.username), /*#__PURE__*/React.createElement(Text, {
|
|
69
72
|
style: {
|
|
70
73
|
marginTop: 3
|
|
71
74
|
},
|
|
72
|
-
theme: "
|
|
75
|
+
theme: "description"
|
|
73
76
|
}, "Joined ", moment(data.item.create_datetime).format('MMM YYYY'))), /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
|
|
74
77
|
direction: "right",
|
|
75
|
-
color: Colors.
|
|
78
|
+
color: Colors.text.h1,
|
|
76
79
|
size: 8
|
|
77
80
|
}));
|
|
78
81
|
};
|
|
79
82
|
return /*#__PURE__*/React.createElement(View, {
|
|
80
83
|
style: {
|
|
81
84
|
width,
|
|
82
|
-
height
|
|
83
|
-
backgroundColor: Colors.shades.white
|
|
85
|
+
height
|
|
84
86
|
}
|
|
85
87
|
}, /*#__PURE__*/React.createElement(View, {
|
|
88
|
+
type: "header",
|
|
86
89
|
style: {
|
|
87
|
-
|
|
90
|
+
padding: 20,
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
alignItems: 'center'
|
|
88
93
|
}
|
|
89
94
|
}, /*#__PURE__*/React.createElement(View, {
|
|
95
|
+
transparent: true,
|
|
90
96
|
style: {
|
|
91
97
|
flex: 1
|
|
92
98
|
}
|
|
93
99
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
94
|
-
theme: "
|
|
95
|
-
}, "
|
|
100
|
+
theme: "h1"
|
|
101
|
+
}, "Select Player"))), /*#__PURE__*/React.createElement(View, {
|
|
96
102
|
style: {
|
|
97
103
|
flex: 1
|
|
98
104
|
}
|
|
99
105
|
}, /*#__PURE__*/React.createElement(View, {
|
|
100
|
-
|
|
101
|
-
...view_styles.section_body
|
|
102
|
-
}
|
|
106
|
+
type: "body"
|
|
103
107
|
}, /*#__PURE__*/React.createElement(View, {
|
|
104
108
|
style: {
|
|
105
109
|
marginTop: 0
|
|
@@ -113,7 +117,7 @@ const PlayerSelector = ({
|
|
|
113
117
|
alignSelf: 'center'
|
|
114
118
|
},
|
|
115
119
|
size: "large",
|
|
116
|
-
color: Colors.
|
|
120
|
+
color: Colors.text.h1
|
|
117
121
|
}) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(FlatList, {
|
|
118
122
|
data: players,
|
|
119
123
|
renderItem: renderPlayers,
|
|
@@ -127,26 +131,25 @@ const PlayerSelector = ({
|
|
|
127
131
|
}
|
|
128
132
|
}, offset > 0 ? /*#__PURE__*/React.createElement(Button, {
|
|
129
133
|
title: "PREV",
|
|
130
|
-
|
|
131
|
-
backgroundColor: "transparent",
|
|
134
|
+
type: "text",
|
|
132
135
|
onPress: () => searchPlayers(offset - 1)
|
|
133
136
|
}) : /*#__PURE__*/React.createElement(View, null), /*#__PURE__*/React.createElement(Button, {
|
|
134
137
|
title: "NEXT",
|
|
135
|
-
|
|
136
|
-
backgroundColor: "transparent",
|
|
138
|
+
type: "text",
|
|
137
139
|
onPress: () => searchPlayers(offset + 1)
|
|
138
140
|
}))), /*#__PURE__*/React.createElement(View, {
|
|
141
|
+
type: "footer",
|
|
139
142
|
style: {
|
|
140
|
-
|
|
143
|
+
flexDirection: 'row',
|
|
144
|
+
alignItems: 'center',
|
|
145
|
+
padding: 10
|
|
141
146
|
}
|
|
142
147
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
143
148
|
title: "CLOSE",
|
|
144
149
|
style: {
|
|
145
150
|
flex: 1
|
|
146
151
|
},
|
|
147
|
-
|
|
148
|
-
title_color: Colors.shades.white,
|
|
149
|
-
backgroundColor: Colors.utility.error,
|
|
152
|
+
type: "error",
|
|
150
153
|
onPress: () => onClose()
|
|
151
154
|
})));
|
|
152
155
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","FlatList","
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","FlatList","Image","ActivityIndicator","SearchBox","Icons","ManageCompetitionApi","moment","Button","Text","View","useColors","PlayerSelector","width","height","onSelectPlayer","onClose","Colors","search_value","setSearchValue","selector_data","setData","loading","offset","players","searchPlayers","ps","renderPlayers","data","createElement","style","flexDirection","alignItems","padding","borderBottomWidth","borderColor","borders","light","onPress","item","source","uri","profile_pic","borderRadius","resizeMode","transparent","flex","marginLeft","theme","username","marginTop","create_datetime","format","ChevronIcon","direction","color","text","h1","size","type","onSearch","onChange","alignSelf","Fragment","renderItem","keyExtractor","player_id","toString","justifyContent","title"],"sourceRoot":"../../../../src","sources":["CompetitionManager/components/PlayerSelector.tsx"],"mappings":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,IAAI,EAAC,OAAO;IACZrB,OAAO,EAAEA,CAAA,KAAMtB,OAAO,CAAC;EAAE,CAC5B,CACC,CACJ,CAAC;AAEf,CAAC;AAED,eAAeJ,cAAc","ignoreList":[]}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { ScrollView,
|
|
3
|
-
import { view_styles } from '../constants/styles';
|
|
2
|
+
import { ScrollView, ActivityIndicator, Image } from "react-native";
|
|
4
3
|
import CompetitionInfoForm from './components/CompetitionInfoForm';
|
|
5
|
-
import Colors from '../constants/colors';
|
|
6
4
|
import { ManageCompetitionApi, ManageCompetitionHelpers, ManageCompetitionMarketApi, ManageCompetitionMatchApi } from './api';
|
|
7
5
|
import CompetitionSettingsForm from './components/CompetitionSettingsForm';
|
|
8
6
|
import CompetitionContestsForm from './components/CompetitionContestsForm';
|
|
@@ -11,13 +9,16 @@ import MarketSelector from './components/MarketSelector';
|
|
|
11
9
|
import AthleteSelector from './components/AthleteSelector';
|
|
12
10
|
import ContestSettingsForm from './components/ContestSettingsForm';
|
|
13
11
|
import CompetitionHeader from './components/CompetitionHeader';
|
|
14
|
-
import { Button, Text } from '../Components';
|
|
15
12
|
import PlayerSelector from './components/PlayerSelector';
|
|
13
|
+
import { Button, Text, View } from '../Components/Themed';
|
|
14
|
+
import { useColors } from '../constants/useColors';
|
|
16
15
|
const CompetitionManager = ({
|
|
17
16
|
player_id,
|
|
18
17
|
competition_id,
|
|
19
|
-
onClose
|
|
18
|
+
onClose,
|
|
19
|
+
insets
|
|
20
20
|
}) => {
|
|
21
|
+
const Colors = useColors();
|
|
21
22
|
const [module_size, setModuleSize] = useState({
|
|
22
23
|
height: 0,
|
|
23
24
|
width: 0
|
|
@@ -441,7 +442,7 @@ const CompetitionManager = ({
|
|
|
441
442
|
}
|
|
442
443
|
}, /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
443
444
|
size: "large",
|
|
444
|
-
color: Colors.
|
|
445
|
+
color: Colors.text.h1,
|
|
445
446
|
style: {
|
|
446
447
|
padding: 20,
|
|
447
448
|
alignSelf: 'center'
|
|
@@ -466,11 +467,7 @@ const CompetitionManager = ({
|
|
|
466
467
|
width
|
|
467
468
|
});
|
|
468
469
|
}
|
|
469
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
470
|
-
style: {
|
|
471
|
-
...view_styles.wrapper
|
|
472
|
-
}
|
|
473
|
-
}, /*#__PURE__*/React.createElement(CompetitionHeader, {
|
|
470
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(CompetitionHeader, {
|
|
474
471
|
action_loading: action_loading,
|
|
475
472
|
width: module_size.width,
|
|
476
473
|
competition: competition,
|
|
@@ -600,27 +597,29 @@ const CompetitionManager = ({
|
|
|
600
597
|
});
|
|
601
598
|
}
|
|
602
599
|
}))), /*#__PURE__*/React.createElement(View, {
|
|
600
|
+
type: "footer",
|
|
603
601
|
style: {
|
|
604
|
-
|
|
602
|
+
flexDirection: 'row',
|
|
603
|
+
alignItems: 'center',
|
|
604
|
+
padding: 10
|
|
605
605
|
}
|
|
606
606
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
607
607
|
title: "CLOSE",
|
|
608
608
|
style: {
|
|
609
609
|
flex: 1
|
|
610
610
|
},
|
|
611
|
-
|
|
612
|
-
backgroundColor: Colors.utility.error,
|
|
613
|
-
padding: 15,
|
|
611
|
+
type: "close",
|
|
614
612
|
onPress: () => onClose()
|
|
615
613
|
})), show_contests.visible ? /*#__PURE__*/React.createElement(View, {
|
|
614
|
+
type: "blur",
|
|
616
615
|
style: {
|
|
617
616
|
position: 'absolute',
|
|
618
617
|
top: 0,
|
|
619
618
|
left: 0,
|
|
620
619
|
right: 0,
|
|
621
620
|
bottom: 0,
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
justifyContent: 'flex-end',
|
|
622
|
+
paddingBottom: insets?.bottom
|
|
624
623
|
}
|
|
625
624
|
}, /*#__PURE__*/React.createElement(ContestSelector, {
|
|
626
625
|
action_loading: action_loading,
|
|
@@ -641,7 +640,6 @@ const CompetitionManager = ({
|
|
|
641
640
|
left: 0,
|
|
642
641
|
right: 0,
|
|
643
642
|
bottom: 0,
|
|
644
|
-
backgroundColor: Colors.shades.black_faded,
|
|
645
643
|
justifyContent: 'flex-end'
|
|
646
644
|
}
|
|
647
645
|
}, /*#__PURE__*/React.createElement(AthleteSelector, {
|
|
@@ -663,7 +661,6 @@ const CompetitionManager = ({
|
|
|
663
661
|
left: 0,
|
|
664
662
|
right: 0,
|
|
665
663
|
bottom: 0,
|
|
666
|
-
backgroundColor: Colors.shades.black_faded,
|
|
667
664
|
justifyContent: 'flex-end'
|
|
668
665
|
}
|
|
669
666
|
}, /*#__PURE__*/React.createElement(PlayerSelector, {
|
|
@@ -684,14 +681,15 @@ const CompetitionManager = ({
|
|
|
684
681
|
setShowPacers(false);
|
|
685
682
|
}
|
|
686
683
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null), show_markets.contest_id && show_markets.contest_type && showing_market_event ? /*#__PURE__*/React.createElement(View, {
|
|
684
|
+
type: "blur",
|
|
687
685
|
style: {
|
|
688
686
|
position: 'absolute',
|
|
689
687
|
top: 0,
|
|
690
688
|
left: 0,
|
|
691
689
|
right: 0,
|
|
692
690
|
bottom: 0,
|
|
693
|
-
|
|
694
|
-
|
|
691
|
+
justifyContent: 'flex-end',
|
|
692
|
+
paddingBottom: insets?.bottom
|
|
695
693
|
}
|
|
696
694
|
}, /*#__PURE__*/React.createElement(MarketSelector, {
|
|
697
695
|
height: module_size.height,
|
|
@@ -702,34 +700,32 @@ const CompetitionManager = ({
|
|
|
702
700
|
onSelectMarket: market => handleAddMarket(show_markets.contest_id ?? '0', show_markets.contest_type ?? 'team', market),
|
|
703
701
|
selected_markets: [...new Set(show_market_markets.map(cmm => cmm.market_id).concat(show_market_id_overrides))]
|
|
704
702
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null), competition.status == 'inactive' ? /*#__PURE__*/React.createElement(View, {
|
|
703
|
+
type: "blur",
|
|
705
704
|
style: {
|
|
706
705
|
position: 'absolute',
|
|
707
706
|
top: 0,
|
|
708
707
|
left: 0,
|
|
709
708
|
right: 0,
|
|
710
709
|
bottom: 0,
|
|
711
|
-
backgroundColor: Colors.shades.black_faded,
|
|
712
710
|
justifyContent: 'center',
|
|
713
711
|
alignItems: 'center'
|
|
714
712
|
}
|
|
715
713
|
}, /*#__PURE__*/React.createElement(View, {
|
|
714
|
+
float: true,
|
|
716
715
|
style: {
|
|
717
|
-
|
|
718
|
-
width: '70%',
|
|
719
|
-
backgroundColor: Colors.shades.white
|
|
716
|
+
width: '70%'
|
|
720
717
|
}
|
|
721
718
|
}, /*#__PURE__*/React.createElement(View, {
|
|
719
|
+
type: "header",
|
|
722
720
|
style: {
|
|
723
|
-
...view_styles.section_header,
|
|
724
721
|
justifyContent: 'center',
|
|
725
|
-
alignItems: 'center'
|
|
726
|
-
backgroundColor: Colors.shades.shade100
|
|
722
|
+
alignItems: 'center'
|
|
727
723
|
}
|
|
728
724
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
729
|
-
theme: "
|
|
725
|
+
theme: "h1"
|
|
730
726
|
}, "Competition Has Been Deleted")), /*#__PURE__*/React.createElement(View, {
|
|
727
|
+
type: "body",
|
|
731
728
|
style: {
|
|
732
|
-
...view_styles.section_body,
|
|
733
729
|
justifyContent: 'center',
|
|
734
730
|
alignItems: 'center'
|
|
735
731
|
}
|
|
@@ -743,19 +739,20 @@ const CompetitionManager = ({
|
|
|
743
739
|
},
|
|
744
740
|
resizeMode: "cover"
|
|
745
741
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
746
|
-
theme: "
|
|
742
|
+
theme: "h2"
|
|
747
743
|
}, competition.competition_name)), /*#__PURE__*/React.createElement(View, {
|
|
744
|
+
type: "footer",
|
|
748
745
|
style: {
|
|
749
|
-
|
|
746
|
+
flexDirection: 'row',
|
|
747
|
+
alignItems: 'center',
|
|
748
|
+
padding: 10
|
|
750
749
|
}
|
|
751
750
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
752
751
|
title: "CLOSE",
|
|
753
752
|
style: {
|
|
754
753
|
flex: 1
|
|
755
754
|
},
|
|
756
|
-
|
|
757
|
-
backgroundColor: Colors.utility.error,
|
|
758
|
-
padding: 15,
|
|
755
|
+
type: "error",
|
|
759
756
|
onPress: () => onClose()
|
|
760
757
|
})))) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
761
758
|
};
|