be-components 0.2.7 → 0.2.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/ApiOverrides/index.js +41 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +1 -1
- package/lib/commonjs/BettorSearch/api/index.js +42 -0
- package/lib/commonjs/BettorSearch/api/index.js.map +1 -0
- package/lib/commonjs/BettorSearch/index.js +129 -0
- package/lib/commonjs/BettorSearch/index.js.map +1 -0
- package/lib/commonjs/Components/Icons.js +69 -3
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +56 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +219 -0
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -0
- package/lib/commonjs/ProfileManager/api/index.js +13 -0
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +8 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js +119 -0
- package/lib/commonjs/SocialComponents/PlayerCard.js.map +1 -0
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js +89 -0
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js.map +1 -0
- package/lib/commonjs/SocialComponents/PlayerList.js +105 -0
- package/lib/commonjs/SocialComponents/PlayerList.js.map +1 -0
- package/lib/commonjs/SocialComponents/api/index.js +29 -0
- package/lib/commonjs/SocialComponents/api/index.js.map +1 -0
- package/lib/commonjs/SocialComponents/index.js +21 -0
- package/lib/commonjs/SocialComponents/index.js.map +1 -0
- package/lib/commonjs/constants/styles.js +4 -5
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +10 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +2 -0
- package/lib/commonjs/types.d.js.map +1 -0
- package/lib/module/ApiOverrides/index.js +41 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +1 -1
- package/lib/module/BettorSearch/api/index.js +36 -0
- package/lib/module/BettorSearch/api/index.js.map +1 -0
- package/lib/module/BettorSearch/index.js +120 -0
- package/lib/module/BettorSearch/index.js.map +1 -0
- package/lib/module/Components/Icons.js +69 -3
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +56 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +210 -0
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -0
- package/lib/module/ProfileManager/api/index.js +13 -0
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/ProfileManager/index.js +8 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/SocialComponents/PlayerCard.js +112 -0
- package/lib/module/SocialComponents/PlayerCard.js.map +1 -0
- package/lib/module/SocialComponents/PlayerFollowButton.js +82 -0
- package/lib/module/SocialComponents/PlayerFollowButton.js.map +1 -0
- package/lib/module/SocialComponents/PlayerList.js +96 -0
- package/lib/module/SocialComponents/PlayerList.js.map +1 -0
- package/lib/module/SocialComponents/api/index.js +23 -0
- package/lib/module/SocialComponents/api/index.js.map +1 -0
- package/lib/module/SocialComponents/index.js +4 -0
- package/lib/module/SocialComponents/index.js.map +1 -0
- package/lib/module/constants/styles.js +4 -5
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +2 -0
- package/lib/module/types.d.js.map +1 -0
- package/lib/typescript/src/ApiOverrides/index.d.ts +8 -0
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/api/index.d.ts +9 -0
- package/lib/typescript/src/BettorSearch/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BettorSearch/index.d.ts +20 -0
- package/lib/typescript/src/BettorSearch/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts +3 -1
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +7 -3
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +14 -0
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/api/index.d.ts +7 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts +18 -0
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts +13 -0
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts +14 -0
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/api/index.d.ts +8 -0
- package/lib/typescript/src/SocialComponents/api/index.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/index.d.ts +4 -0
- package/lib/typescript/src/SocialComponents/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/styles.d.ts +1 -2
- package/lib/typescript/src/constants/styles.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/ApiOverrides/index.ts +28 -3
- package/src/Authenticator/Components/LoginForm.tsx +1 -1
- package/src/BettorSearch/api/index.ts +30 -0
- package/src/BettorSearch/index.tsx +106 -0
- package/src/Components/Icons.tsx +35 -2
- package/src/ProfileManager/Components/CodeRedeem.tsx +2 -1
- package/src/ProfileManager/Components/ProfileWizard.tsx +63 -5
- package/src/ProfileManager/Components/SettingsManager.tsx +152 -0
- package/src/ProfileManager/api/index.ts +13 -1
- package/src/ProfileManager/api/types.d.ts +15 -25
- package/src/ProfileManager/index.tsx +13 -3
- package/src/SocialComponents/PlayerCard.tsx +86 -0
- package/src/SocialComponents/PlayerFollowButton.tsx +80 -0
- package/src/SocialComponents/PlayerList.tsx +81 -0
- package/src/SocialComponents/api/index.ts +23 -0
- package/src/SocialComponents/index.tsx +8 -0
- package/src/constants/styles.ts +1 -8
- package/src/index.tsx +4 -0
- package/src/types.d.ts +354 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","View","Image","ActivityIndicator","Colors","Text","ProfileWizard","ProfileApi","ProfileManager","profile_attribute","onPlayerUpdate","show_welcome","hidden_groups","hidden_steps","hidden_levels","walkthrough","width","onClose","onLogout","loading","setLoading","draft_player","setDraftPlayer","player_balance","setPlayerBalance","getPlayerFromServer","setEnvironment","player","getMyDetails","pb","getMyBalance","e","console","log","handleLogout","undefined","createElement","style","flex","size","color","brand","midnight","flexDirection","alignItems","nativeID","padding","source","uri","profile_pic","height","borderRadius","resizeMode","weight","first_name","last_name","marginTop","slate","username","paddingRight","textAlign","balance","toFixed","promo_balance","Fragment","init_walkthrough","onSelectLevel","level","attribute"],"sourceRoot":"../../../src","sources":["ProfileManager/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,KAAK,EAAEC,iBAAiB,QAAQ,cAAc;AAC7D,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,SAASC,UAAU,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","View","Image","ActivityIndicator","Colors","Text","ProfileWizard","ProfileApi","ProfileManager","profile_attribute","onPlayerUpdate","show_welcome","hidden_groups","hidden_steps","hidden_levels","walkthrough","width","onClose","onLogout","loading","setLoading","draft_player","setDraftPlayer","player_balance","setPlayerBalance","settings","setSettings","player_settings","setPlayerSettings","getPlayerFromServer","setEnvironment","player","getMyDetails","pb","getMyBalance","settings_response","getMySettings","e","console","log","handleLogout","undefined","createElement","style","flex","size","color","brand","midnight","flexDirection","alignItems","nativeID","padding","source","uri","profile_pic","height","borderRadius","resizeMode","weight","first_name","last_name","marginTop","slate","username","paddingRight","textAlign","balance","toFixed","promo_balance","Fragment","init_walkthrough","onSelectLevel","level","onUpdatePlayerSetting","new_ps","filter","ps","player_setting_id","concat","attribute"],"sourceRoot":"../../../src","sources":["ProfileManager/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,KAAK,EAAEC,iBAAiB,QAAQ,cAAc;AAC7D,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAOC,aAAa,MAAM,4BAA4B;AACtD,SAASC,UAAU,QAAQ,OAAO;AAkBlC,MAAMC,cAAc,GAAGA,CAAC;EAAEC,iBAAiB;EAAEC,cAAc;EAAEC,YAAY;EAAEC,aAAa;EAAEC,YAAY;EAAEC,aAAa;EAAEC,WAAW;EAAEC,KAAK;EAAEC,OAAO;EAAEC;AAA+B,CAAC,KAAM;EACtL,MAAM,CAAEC,OAAO,EAAEC,UAAU,CAAE,GAAGpB,QAAQ,CAAC,KAAK,CAAC;EAC/C,MAAM,CAAEqB,YAAY,EAAEC,cAAc,CAAE,GAAGtB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AAQ,EAAEA,QAAS;IACnBd,YAAY,EAAEA,YAAa;IAC3BK,KAAK,EAAEA,KAAM;IACbJ,aAAa,EAAEA,aAAc;IAC7BC,YAAY,EAAEA,YAAa;IAC3BC,aAAa,EAAEA,aAAc;IAC7ByD,gBAAgB,EAAExD,WAAY;IAC9BE,OAAO,EAAEA,CAAA,KAAMA,OAAO,CAAC,CAAE;IACzBC,QAAQ,EAAEA,CAAA,KAAMsB,YAAY,CAAC,CAAE;IAC/B/B,iBAAiB,EAAEA,iBAAkB;IACrC+D,aAAa,EAAGC,KAAK,IAAKnC,OAAO,CAACC,GAAG,CAACkC,KAAK,CAAE;IAC7CC,qBAAqB,EAAGC,MAAM,IAAK/C,iBAAiB,CAACD,eAAe,CAACiD,MAAM,CAACC,EAAE,IAAIA,EAAE,CAACC,iBAAiB,IAAIH,MAAM,CAACG,iBAAiB,CAAC,CAACC,MAAM,CAACJ,MAAM,CAAC,CAAE;IACpJjE,cAAc,EAAEA,CAACqB,MAAM,EAAEiD,SAAS,KAAK;MACnC1D,cAAc,CAACS,MAAM,CAAC;MACtB,IAAGrB,cAAc,EAAC;QAAEA,cAAc,CAACqB,MAAM,EAAEiD,SAAS,CAAC;MAAC;IAC1D;EAAE,CACL,CACH,CACJ,CACJ,CAAC;AAEf,CAAC;AAED,eAAexE,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image, View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
import Colors from '../constants/colors';
|
|
4
|
+
import { Text } from '../Components';
|
|
5
|
+
import { view_styles } from '../constants/styles';
|
|
6
|
+
import PlayerFollowButton from './PlayerFollowButton';
|
|
7
|
+
const PlayerCard = ({
|
|
8
|
+
player,
|
|
9
|
+
width,
|
|
10
|
+
follow_loading,
|
|
11
|
+
alignment,
|
|
12
|
+
style,
|
|
13
|
+
float,
|
|
14
|
+
show_follow,
|
|
15
|
+
player_follower,
|
|
16
|
+
player_following,
|
|
17
|
+
onSelectPlayer,
|
|
18
|
+
onFollowingUpdate
|
|
19
|
+
}) => {
|
|
20
|
+
let player_style = alignment == 'vertical' ? local_styles.player_vertical : local_styles.player_horizontal;
|
|
21
|
+
let container_style = {
|
|
22
|
+
...local_styles.container
|
|
23
|
+
};
|
|
24
|
+
if (float) {
|
|
25
|
+
container_style = {
|
|
26
|
+
...container_style,
|
|
27
|
+
...view_styles.float
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
31
|
+
style: {
|
|
32
|
+
...container_style,
|
|
33
|
+
...style,
|
|
34
|
+
width
|
|
35
|
+
}
|
|
36
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
37
|
+
style: player_style,
|
|
38
|
+
onPress: () => onSelectPlayer(player)
|
|
39
|
+
}, alignment == 'vertical' ? /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Image, {
|
|
40
|
+
source: {
|
|
41
|
+
uri: player.profile_pic
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
height: width * 0.5,
|
|
45
|
+
width: width,
|
|
46
|
+
borderTopRightRadius: 8,
|
|
47
|
+
borderTopLeftRadius: 8
|
|
48
|
+
},
|
|
49
|
+
resizeMode: "cover"
|
|
50
|
+
})) : /*#__PURE__*/React.createElement(View, {
|
|
51
|
+
style: {}
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
53
|
+
source: {
|
|
54
|
+
uri: player.profile_pic
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
height: 55,
|
|
58
|
+
width: 55,
|
|
59
|
+
borderTopLeftRadius: 8,
|
|
60
|
+
borderBottomLeftRadius: 8
|
|
61
|
+
},
|
|
62
|
+
resizeMode: "cover"
|
|
63
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
style: {
|
|
65
|
+
flex: 1,
|
|
66
|
+
padding: 10
|
|
67
|
+
}
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
69
|
+
size: 14,
|
|
70
|
+
color: Colors.brand.midnight,
|
|
71
|
+
weight: "bold",
|
|
72
|
+
textAlign: alignment == 'vertical' ? 'center' : 'left'
|
|
73
|
+
}, player.first_name, " ", player.last_name), /*#__PURE__*/React.createElement(Text, {
|
|
74
|
+
style: {
|
|
75
|
+
marginTop: 4
|
|
76
|
+
},
|
|
77
|
+
size: 14,
|
|
78
|
+
color: Colors.brand.midnight,
|
|
79
|
+
weight: "regular",
|
|
80
|
+
textAlign: alignment == 'vertical' ? 'center' : 'left'
|
|
81
|
+
}, "@", player.username)), show_follow ? /*#__PURE__*/React.createElement(View, {
|
|
82
|
+
style: {
|
|
83
|
+
padding: 10,
|
|
84
|
+
paddingTop: alignment == 'vertical' ? 0 : 10
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/React.createElement(PlayerFollowButton, {
|
|
87
|
+
loading: follow_loading,
|
|
88
|
+
player_id: player.player_id,
|
|
89
|
+
follower: player_follower,
|
|
90
|
+
following: player_following,
|
|
91
|
+
onFollowingUpdate: onFollowingUpdate
|
|
92
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null)));
|
|
93
|
+
};
|
|
94
|
+
const local_styles = StyleSheet.create({
|
|
95
|
+
container: {
|
|
96
|
+
flex: 1,
|
|
97
|
+
backgroundColor: Colors.shades.white,
|
|
98
|
+
borderRadius: 8
|
|
99
|
+
},
|
|
100
|
+
player_vertical: {
|
|
101
|
+
flex: 1,
|
|
102
|
+
flexDirection: 'column'
|
|
103
|
+
//alignItems:'center'
|
|
104
|
+
},
|
|
105
|
+
player_horizontal: {
|
|
106
|
+
flex: 1,
|
|
107
|
+
flexDirection: 'row',
|
|
108
|
+
alignItems: 'center'
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export default PlayerCard;
|
|
112
|
+
//# sourceMappingURL=PlayerCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","View","TouchableOpacity","StyleSheet","Colors","Text","view_styles","PlayerFollowButton","PlayerCard","player","width","follow_loading","alignment","style","float","show_follow","player_follower","player_following","onSelectPlayer","onFollowingUpdate","player_style","local_styles","player_vertical","player_horizontal","container_style","container","createElement","onPress","source","uri","profile_pic","height","borderTopRightRadius","borderTopLeftRadius","resizeMode","borderBottomLeftRadius","flex","padding","size","color","brand","midnight","weight","textAlign","first_name","last_name","marginTop","username","paddingTop","loading","player_id","follower","following","Fragment","create","backgroundColor","shades","white","borderRadius","flexDirection","alignItems"],"sourceRoot":"../../../src","sources":["SocialComponents/PlayerCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AACxE,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,WAAW,QAAQ,qBAAqB;AACjD,OAAOC,kBAAkB,MAAM,sBAAsB;AAgBrD,MAAMC,UAAU,GAAGA,CAAC;EAAEC,MAAM;EAAEC,KAAK;EAAEC,cAAc;EAAEC,SAAS;EAAEC,KAAK;EAAEC,KAAK;EAAEC,WAAW;EAAEC,eAAe;EAAEC,gBAAgB;EAAEC,cAAc;EAAEC;AAAkC,CAAC,KAAK;EAElL,IAAIC,YAAY,GAAGR,SAAS,IAAI,UAAU,GAAGS,YAAY,CAACC,eAAe,GAAGD,YAAY,CAACE,iBAAiB;EAC1G,IAAIC,eAAe,GAAG;IAAE,GAAGH,YAAY,CAACI;EAAU,CAAC;EACnD,IAAGX,KAAK,EAAC;IAAEU,eAAe,GAAG;MAAE,GAAGA,eAAe;MAAE,GAAGlB,WAAW,CAACQ;IAAM,CAAC;EAAC;EAC1E,oBACIf,KAAA,CAAA2B,aAAA,CAACzB,IAAI;IAACY,KAAK,EAAE;MAAE,GAAGW,eAAe;MAAE,GAAGX,KAAK;MAAEH;IAAM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@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from "../Components";
|
|
3
|
+
import Colors from "../constants/colors";
|
|
4
|
+
import { SocialComponentApi } from './api';
|
|
5
|
+
const PlayerFollowButton = ({
|
|
6
|
+
player_id,
|
|
7
|
+
loading,
|
|
8
|
+
style,
|
|
9
|
+
follower,
|
|
10
|
+
following,
|
|
11
|
+
onFollowingUpdate
|
|
12
|
+
}) => {
|
|
13
|
+
const handleAction = async (status, player_follower) => {
|
|
14
|
+
if (!player_follower) {
|
|
15
|
+
player_follower = {
|
|
16
|
+
player_follower_id: '',
|
|
17
|
+
player_id: '',
|
|
18
|
+
following_id: player_id,
|
|
19
|
+
status,
|
|
20
|
+
create_datetime: '',
|
|
21
|
+
last_update_datetime: ''
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
player_follower.status = status;
|
|
25
|
+
const new_following = await SocialComponentApi.savePlayerFollower(player_follower);
|
|
26
|
+
onFollowingUpdate(new_following);
|
|
27
|
+
};
|
|
28
|
+
const getButtonType = () => {
|
|
29
|
+
let button_type = {
|
|
30
|
+
type: 'follow',
|
|
31
|
+
label: 'FOLLOW'
|
|
32
|
+
};
|
|
33
|
+
if (follower?.status == 'following') {
|
|
34
|
+
button_type = {
|
|
35
|
+
type: 'follow',
|
|
36
|
+
label: 'FOLLOW BACK'
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (following?.status == 'following') {
|
|
40
|
+
button_type = {
|
|
41
|
+
type: 'unfollow',
|
|
42
|
+
label: 'UNFOLLOW'
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
switch (button_type.type) {
|
|
46
|
+
case 'follow':
|
|
47
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
48
|
+
style: {
|
|
49
|
+
...style
|
|
50
|
+
},
|
|
51
|
+
loading: loading,
|
|
52
|
+
padding: 10,
|
|
53
|
+
title_size: 12,
|
|
54
|
+
disabled: loading,
|
|
55
|
+
title: button_type.label,
|
|
56
|
+
title_color: Colors.shades.white,
|
|
57
|
+
backgroundColor: Colors.brand.electric,
|
|
58
|
+
onPress: () => handleAction('following', following)
|
|
59
|
+
});
|
|
60
|
+
case 'unfollow':
|
|
61
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
62
|
+
style: {
|
|
63
|
+
...style
|
|
64
|
+
},
|
|
65
|
+
title: button_type.label,
|
|
66
|
+
title_size: 12,
|
|
67
|
+
padding: 10,
|
|
68
|
+
loading: loading,
|
|
69
|
+
disabled: loading,
|
|
70
|
+
title_color: Colors.brand.electric,
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
borderColor: Colors.brand.electric,
|
|
73
|
+
onPress: () => handleAction('not_following', following)
|
|
74
|
+
});
|
|
75
|
+
default:
|
|
76
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return getButtonType();
|
|
80
|
+
};
|
|
81
|
+
export default PlayerFollowButton;
|
|
82
|
+
//# sourceMappingURL=PlayerFollowButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Button","Colors","SocialComponentApi","PlayerFollowButton","player_id","loading","style","follower","following","onFollowingUpdate","handleAction","status","player_follower","player_follower_id","following_id","create_datetime","last_update_datetime","new_following","savePlayerFollower","getButtonType","button_type","type","label","createElement","padding","title_size","disabled","title","title_color","shades","white","backgroundColor","brand","electric","onPress","borderWidth","borderColor","Fragment"],"sourceRoot":"../../../src","sources":["SocialComponents/PlayerFollowButton.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,eAAe;AACtC,OAAOC,MAAM,MAAM,qBAAqB;AAExC,SAASC,kBAAkB,QAAQ,OAAO;AAW1C,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,SAAS;EAAEC,OAAO;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,SAAS;EAAEC;AAA0C,CAAC,K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EAAEA,CAAA,KAAMxB,YAAY,CAAC,WAAW,EAAEF,SAAS;QAAE,CACvD,CAAC;MAEV,KAAK,UAAU;QACX,oBACIT,KAAA,CAAAwB,aAAA,CAACvB,MAAM;UACHM,KAAK,EAAE;YAAE,GAAGA;UAAM,CAAE;UACpBqB,KAAK,EAAEP,WAAW,CAACE,KAAM;UACzBG,UAAU,EAAE,EAAG;UACfD,OAAO,EAAE,EAAG;UACZnB,OAAO,EAAEA,OAAQ;UACjBqB,QAAQ,EAAErB,OAAQ;UAClBuB,WAAW,EAAE3B,MAAM,CAAC+B,KAAK,CAACC,QAAS;UACnCE,WAAW,EAAE,CAAE;UACfC,WAAW,EAAEnC,MAAM,CAAC+B,KAAK,CAACC,QAAS;UACnCC,OAAO,EAAEA,CAAA,KAAMxB,YAAY,CAAC,eAAe,EAAEF,SAAS;QAAE,CAC3D,CAAC;MAEV;QAAS,oBAAOT,KAAA,CAAAwB,aAAA,CAAAxB,KAAA,CAAAsC,QAAA,MAAI,CAAC;IACzB;EAEJ,CAAC;EAED,OAAOlB,aAAa,CAAC,CAAC;AAG1B,CAAC;AAED,eAAehB,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { View, StyleSheet } from "react-native";
|
|
3
|
+
import { SocialComponentApi } from './api';
|
|
4
|
+
import PlayerCard from './PlayerCard';
|
|
5
|
+
const PlayerList = ({
|
|
6
|
+
players,
|
|
7
|
+
style,
|
|
8
|
+
options,
|
|
9
|
+
onPlayerSelect
|
|
10
|
+
}) => {
|
|
11
|
+
const [size, setSize] = useState({
|
|
12
|
+
width: 0,
|
|
13
|
+
height: 0
|
|
14
|
+
});
|
|
15
|
+
const [follow_status_loading, setFollowStatusLoading] = useState(false);
|
|
16
|
+
const [player_followers, setPlayerFollowers] = useState([]);
|
|
17
|
+
const {
|
|
18
|
+
follow_status,
|
|
19
|
+
direction
|
|
20
|
+
} = options;
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
SocialComponentApi.setEnvironment();
|
|
23
|
+
}, []);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (players.length == 0) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
getListData();
|
|
29
|
+
}, [players.length]);
|
|
30
|
+
const getListData = async () => {
|
|
31
|
+
if (follow_status) {
|
|
32
|
+
setFollowStatusLoading(true);
|
|
33
|
+
const player_followers = await SocialComponentApi.getBulkPlayerfollowers(players.map(p => p.player_id));
|
|
34
|
+
setPlayerFollowers(player_followers);
|
|
35
|
+
setFollowStatusLoading(false);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const new_style = direction == 'vertical' ? local_styles.container_vertical : local_styles.containter_horizontal;
|
|
39
|
+
const alignment = direction == 'vertical' ? 'horizontal' : 'vertical';
|
|
40
|
+
const player_width = direction == 'vertical' ? size.width - 20 : (size.width - 40) / 2;
|
|
41
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
42
|
+
style: {
|
|
43
|
+
...new_style,
|
|
44
|
+
...style
|
|
45
|
+
},
|
|
46
|
+
onLayout: ev => {
|
|
47
|
+
const {
|
|
48
|
+
width,
|
|
49
|
+
height
|
|
50
|
+
} = ev.nativeEvent.layout;
|
|
51
|
+
setSize({
|
|
52
|
+
width,
|
|
53
|
+
height
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}, players.map(p => {
|
|
57
|
+
let following = player_followers.find(pf => pf.following_id == p.player_id);
|
|
58
|
+
let follower = player_followers.find(pf => pf.player_id == p.player_id);
|
|
59
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
60
|
+
key: p.player_id.toString(),
|
|
61
|
+
style: {
|
|
62
|
+
width: player_width,
|
|
63
|
+
margin: 8
|
|
64
|
+
}
|
|
65
|
+
}, /*#__PURE__*/React.createElement(PlayerCard, {
|
|
66
|
+
width: player_width,
|
|
67
|
+
style: {
|
|
68
|
+
borderRadius: 8
|
|
69
|
+
},
|
|
70
|
+
player: p,
|
|
71
|
+
float: true,
|
|
72
|
+
alignment: alignment,
|
|
73
|
+
player_following: following,
|
|
74
|
+
player_follower: follower,
|
|
75
|
+
show_follow: options.follow_status,
|
|
76
|
+
follow_loading: follow_status_loading,
|
|
77
|
+
onSelectPlayer: onPlayerSelect,
|
|
78
|
+
onFollowingUpdate: new_pf => {
|
|
79
|
+
setPlayerFollowers(player_followers.filter(pf => pf.player_follower_id != new_pf.player_follower_id).concat(new_pf));
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
}));
|
|
83
|
+
};
|
|
84
|
+
const local_styles = StyleSheet.create({
|
|
85
|
+
container_vertical: {
|
|
86
|
+
flexDirection: 'column',
|
|
87
|
+
alignItems: 'center'
|
|
88
|
+
},
|
|
89
|
+
containter_horizontal: {
|
|
90
|
+
flexDirection: 'row',
|
|
91
|
+
flexWrap: 'wrap',
|
|
92
|
+
justifyContent: 'center'
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export default PlayerList;
|
|
96
|
+
//# sourceMappingURL=PlayerList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","View","StyleSheet","SocialComponentApi","PlayerCard","PlayerList","players","style","options","onPlayerSelect","size","setSize","width","height","follow_status_loading","setFollowStatusLoading","player_followers","setPlayerFollowers","follow_status","direction","setEnvironment","length","getListData","getBulkPlayerfollowers","map","p","player_id","new_style","local_styles","container_vertical","containter_horizontal","alignment","player_width","createElement","onLayout","ev","nativeEvent","layout","following","find","pf","following_id","follower","key","toString","margin","borderRadius","player","float","player_following","player_follower","show_follow","follow_loading","onSelectPlayer","onFollowingUpdate","new_pf","filter","player_follower_id","concat","create","flexDirection","alignItems","flexWrap","justifyContent"],"sourceRoot":"../../../src","sources":["SocialComponents/PlayerList.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,IAAI,EAAEC,UAAU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,EAAER,QAAS;MAC1BS,WAAW,EAAE3C,OAAO,CAACU,aAAc;MACnCkC,cAAc,EAAEtC,qBAAsB;MACtCuC,cAAc,EAAE5C,cAAe;MAC/B6C,iBAAiB,EAAGC,MAAM,IAAK;QAC3BtC,kBAAkB,CAACD,gBAAgB,CAACwC,MAAM,CAAChB,EAAE,IAAIA,EAAE,CAACiB,kBAAkB,IAAIF,MAAM,CAACE,kBAAkB,CAAC,CAACC,MAAM,CAACH,MAAM,CAAC,CAAC;MACxH;IAAE,CACL,CACC,CAAC;EAGf,CAAC,CACC,CAAC;AAEf,CAAC;AAED,MAAM3B,YAAY,GAAG1B,UAAU,CAACyD,MAAM,CAAC;EACnC9B,kBAAkB,EAAE;IAAE+B,aAAa,EAAC,QAAQ;IAAEC,UAAU,EAAC;EAAS,CAAC;EACnE/B,qBAAqB,EAAE;IAAE8B,aAAa,EAAC,KAAK;IAAEE,QAAQ,EAAE,MAAM;IAAEC,cAAc,EAAC;EAAS;AAC5F,CAAC,CAAC;AAGF,eAAe1D,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import { APIOverrides } from "../../ApiOverrides";
|
|
3
|
+
let SOCIAL_SVC_API = '';
|
|
4
|
+
export { SocialComponentApi };
|
|
5
|
+
const SocialComponentApi = {
|
|
6
|
+
setEnvironment: () => {
|
|
7
|
+
const endpoints = APIOverrides.getEndpoints();
|
|
8
|
+
SOCIAL_SVC_API = endpoints['SOCIAL_SVC_API'];
|
|
9
|
+
},
|
|
10
|
+
getBulkPlayerfollowers: async player_ids => {
|
|
11
|
+
const resp = await axios.post(`${SOCIAL_SVC_API}/v1/followers/bulk/get`, {
|
|
12
|
+
player_ids
|
|
13
|
+
});
|
|
14
|
+
return resp.data.player_followers;
|
|
15
|
+
},
|
|
16
|
+
savePlayerFollower: async player_follower => {
|
|
17
|
+
const resp = await axios.post(`${SOCIAL_SVC_API}/v1/followers/player/create`, {
|
|
18
|
+
player_follower
|
|
19
|
+
});
|
|
20
|
+
return resp.data.player_follower;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["axios","APIOverrides","SOCIAL_SVC_API","SocialComponentApi","setEnvironment","endpoints","getEndpoints","getBulkPlayerfollowers","player_ids","resp","post","data","player_followers","savePlayerFollower","player_follower"],"sourceRoot":"../../../../src","sources":["SocialComponents/api/index.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,oBAAoB;AAGjD,IAAIC,cAAc,GAAG,EAAE;AAEvB,SAASC,kBAAkB;AAE3B,MAAMA,kBAAkB,GAAG;EACvBC,cAAc,EAAEA,CAAA,KAAM;IAClB,MAAMC,SAAS,GAAGJ,YAAY,CAACK,YAAY,CAAC,CAAC;IAC7CJ,cAAc,GAAGG,SAAS,CAAC,gBAAgB,CAAW;EAE1D,CAAC;EACDE,sBAAsB,EAAE,MAAMC,UAAmB,IAAK;IAClD,MAAMC,IAAI,GAAG,MAAMT,KAAK,CAACU,IAAI,CAAE,GAAER,cAAe,wBAAuB,EAAE;MAAEM;IAAW,CAAC,CAAC;IACxF,OAAOC,IAAI,CAACE,IAAI,CAACC,gBAAgB;EACrC,CAAC;EACDC,kBAAkB,EAAE,MAAMC,eAAmC,IAAkC;IAC3F,MAAML,IAAI,GAAG,MAAMT,KAAK,CAACU,IAAI,CAAE,GAAER,cAAe,6BAA4B,EAAE;MAAEY;IAAgB,CAAC,CAAC;IAClG,OAAOL,IAAI,CAACE,IAAI,CAACG,eAAe;EACpC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PlayerCard","PlayerList"],"sourceRoot":"../../../src","sources":["SocialComponents/index.tsx"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AACrC,OAAOC,UAAU,MAAM,cAAc;AAGrC,SACID,UAAU,EACVC,UAAU","ignoreList":[]}
|
|
@@ -7,14 +7,13 @@ export const view_styles = StyleSheet.create({
|
|
|
7
7
|
borderTopLeftRadius: 22
|
|
8
8
|
},
|
|
9
9
|
float: {
|
|
10
|
-
shadowColor: "
|
|
10
|
+
shadowColor: "rgba(0, 0, 0, 0.06)",
|
|
11
11
|
shadowOffset: {
|
|
12
12
|
width: 0,
|
|
13
|
-
height:
|
|
13
|
+
height: 10
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
elevation: 5
|
|
15
|
+
shadowRadius: 10,
|
|
16
|
+
shadowOpacity: 1
|
|
18
17
|
}
|
|
19
18
|
});
|
|
20
19
|
export const text_styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Colors","view_styles","create","container","backgroundColor","shades","white","borderTopRightRadius","borderTopLeftRadius","float","shadowColor","shadowOffset","width","height","
|
|
1
|
+
{"version":3,"names":["StyleSheet","Colors","view_styles","create","container","backgroundColor","shades","white","borderTopRightRadius","borderTopLeftRadius","float","shadowColor","shadowOffset","width","height","shadowRadius","shadowOpacity","text_styles","dark_heading_1","fontSize","color","brand","midnight","dark_heading_2","dark_heading_3","light_heading_1","light_heading_2","light_heading_3"],"sourceRoot":"../../../src","sources":["constants/styles.ts"],"mappings":"AACA,SAASA,UAAU,QAAQ,cAAc;AACzC,OAAOC,MAAM,MAAM,UAAU;AAG7B,OAAO,MAAMC,WAAW,GAAGF,UAAU,CAACG,MAAM,CAAC;EACzCC,SAAS,EAAE;IACPC,eAAe,EAACJ,MAAM,CAACK,MAAM,CAACC,KAAK;IACnCC,oBAAoB,EAAC,EAAE;IACvBC,mBAAmB,EAAC;EACxB,CAAC;EACDC,KAAK,EAAE;IACHC,WAAW,EAAE,qBAAqB;IAAEC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAG,CAAC;IAAEC,YAAY,EAAE,EAAE;IAAEC,aAAa,EAAE;EACjH;AACJ,CAAC,CAAC;AAGF,OAAO,MAAMC,WAAW,GAAGjB,UAAU,CAACG,MAAM,CAAC;EACzCe,cAAc,EAAE;IACZC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACoB,KAAK,CAACC;EACvB,CAAC;EACDC,cAAc,EAAE;IACZJ,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACoB,KAAK,CAACC;EACvB,CAAC;EACDE,cAAc,EAAE;IACZL,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACoB,KAAK,CAACC;EACvB,CAAC;EACDG,eAAe,EAAE;IACbN,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACK,MAAM,CAACC;EACxB,CAAC;EACDmB,eAAe,EAAE;IACbP,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACK,MAAM,CAACC;EACxB,CAAC;EACDoB,eAAe,EAAE;IACbR,QAAQ,EAAE,EAAE;IACZC,KAAK,EAACnB,MAAM,CAACK,MAAM,CAACC;EACxB;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Authenticator from "./Authenticator";
|
|
2
2
|
import ProfileManager from "./ProfileManager";
|
|
3
3
|
import * as Components from './Components';
|
|
4
|
+
import * as SocialComponents from './SocialComponents';
|
|
4
5
|
import { APIOverrides } from "./ApiOverrides";
|
|
5
6
|
import LinearGradient from "react-native-linear-gradient";
|
|
6
7
|
import Colors from "./constants/colors";
|
|
7
8
|
import Observer, { BEEventApi, BELinkApi } from './Observer';
|
|
8
|
-
|
|
9
|
+
import BettorSearch from "./BettorSearch";
|
|
10
|
+
export { Authenticator, Observer, BEEventApi, BELinkApi, ProfileManager, Components, SocialComponents, APIOverrides, LinearGradient, BettorSearch, Colors };
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Authenticator","ProfileManager","Components","APIOverrides","LinearGradient","Colors","Observer","BEEventApi","BELinkApi"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAO,KAAKC,UAAU,MAAM,cAAc;AAC1C,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,QAAQ,IAAIC,UAAU,EAAEC,SAAS,QAAQ,YAAY;
|
|
1
|
+
{"version":3,"names":["Authenticator","ProfileManager","Components","SocialComponents","APIOverrides","LinearGradient","Colors","Observer","BEEventApi","BELinkApi","BettorSearch"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAO,KAAKC,UAAU,MAAM,cAAc;AAC1C,OAAO,KAAKC,gBAAgB,MAAM,oBAAoB;AACtD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,QAAQ,IAAIC,UAAU,EAAEC,SAAS,QAAQ,YAAY;AAC5D,OAAOC,YAAY,MAAM,gBAAgB;AAGzC,SACEV,aAAa,EACbO,QAAQ,EACRC,UAAU,EACVC,SAAS,EACTR,cAAc,EACdC,UAAU,EACVC,gBAAgB,EAChBC,YAAY,EACZC,cAAc,EACdK,YAAY,EACZJ,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -5,6 +5,14 @@ declare const APIOverrides: {
|
|
|
5
5
|
env: 'PRODUCTION' | 'STAGING' | 'DEVELOPMENT';
|
|
6
6
|
no_cache: boolean;
|
|
7
7
|
}) => Promise<AuthStateProps>;
|
|
8
|
+
authenticateApp: (auth_response: AuthStateProps, options: {
|
|
9
|
+
cache?: boolean;
|
|
10
|
+
}) => Promise<{
|
|
11
|
+
result: 'success' | 'fail';
|
|
12
|
+
}>;
|
|
13
|
+
logoutApp: () => Promise<{
|
|
14
|
+
result: 'success' | 'fail';
|
|
15
|
+
}>;
|
|
8
16
|
setEnvironment: (env: 'PRODUCTION' | 'STAGING' | 'DEVELOPMENT') => void;
|
|
9
17
|
getEndpoints: () => {
|
|
10
18
|
[key: string]: string | boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ApiOverrides/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ApiOverrides/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAsC9C,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,QAAA,MAAM,YAAY;+BACkB;QAAE,GAAG,EAAC,YAAY,GAAC,SAAS,GAAC,aAAa,CAAC;QAAC,QAAQ,EAAC,OAAO,CAAA;KAAE,KAAE,QAAQ,cAAc,CAAC;qCA4ClF,cAAc,WAAW;QAAE,KAAK,CAAC,EAAC,OAAO,CAAA;KAAE,KAAE,QAAQ;QAAE,MAAM,EAAE,SAAS,GAAC,MAAM,CAAA;KAAE,CAAC;qBAWpG,QAAQ;QAAC,MAAM,EAAE,SAAS,GAAC,MAAM,CAAA;KAAC,CAAC;0BAOjC,YAAY,GAAC,SAAS,GAAC,aAAa;;;;gCAMzB,MAAM,aAAY,MAAM,kBAAiB,MAAM,oBAAmB,GAAG;;;6BAoB7E,MAAM;0BAOJ,MAAM,eAAc,MAAM,KAAE,QAAQ;QAAC,aAAa,EAAC,MAAM,CAAC;QAAC,YAAY,EAAC,MAAM,CAAC;QAAC,eAAe,EAAC,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;wCAUvG,MAAM,eAAc,MAAM,UAAS,OAAO;CA4BrF,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EventProps, PublicPlayerProps, TournamentProps } from '../../types';
|
|
2
|
+
export { BettorSearchApi };
|
|
3
|
+
declare const BettorSearchApi: {
|
|
4
|
+
setEnvironment: () => void;
|
|
5
|
+
searchPlayers: (search_value: string, offset: number) => Promise<PublicPlayerProps[]>;
|
|
6
|
+
searchEvents: (search_value: string, offset: number) => Promise<EventProps[]>;
|
|
7
|
+
searchTournaments: (search_value: string, offset: number) => Promise<TournamentProps[]>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/BettorSearch/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKlF,OAAO,EAAE,eAAe,EAAE,CAAA;AAE1B,QAAA,MAAM,eAAe;;kCAMiB,MAAM,UAAS,MAAM,KAAE,QAAQ,iBAAiB,EAAE,CAAC;iCAIpD,MAAM,UAAS,MAAM,KAAE,QAAQ,UAAU,EAAE,CAAC;sCAKvC,MAAM,UAAS,MAAM,KAAE,QAAQ,eAAe,EAAE,CAAC;CAK1F,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EventProps, PublicPlayerProps, TournamentProps } from '../types';
|
|
3
|
+
type BettorSearchProps = {
|
|
4
|
+
search_types: string[];
|
|
5
|
+
init_search_value?: string;
|
|
6
|
+
container_style?: any;
|
|
7
|
+
search_style?: any;
|
|
8
|
+
button_style?: any;
|
|
9
|
+
onSearchResults: (results: {
|
|
10
|
+
offset: number;
|
|
11
|
+
players: PublicPlayerProps[];
|
|
12
|
+
events: EventProps[];
|
|
13
|
+
tournaments: TournamentProps[];
|
|
14
|
+
competitions: any[];
|
|
15
|
+
polls: any[];
|
|
16
|
+
}) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const BettorSearch: ({ init_search_value, search_types, container_style, search_style, button_style, onSearchResults }: BettorSearchProps) => React.JSX.Element;
|
|
19
|
+
export default BettorSearch;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/BettorSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE/E,KAAK,iBAAiB,GAAG;IACrB,YAAY,EAAC,MAAM,EAAE,CAAC;IACtB,iBAAiB,CAAC,EAAC,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAC,GAAG,CAAC;IACrB,YAAY,CAAC,EAAC,GAAG,CAAC;IAClB,YAAY,CAAC,EAAC,GAAG,CAAC;IAClB,eAAe,EAAC,CAAC,OAAO,EAAE;QACtB,MAAM,EAAC,MAAM,CAAC;QACd,OAAO,EAAC,iBAAiB,EAAE,CAAC;QAC5B,MAAM,EAAC,UAAU,EAAE,CAAC;QACpB,WAAW,EAAC,eAAe,EAAE,CAAA;QAC7B,YAAY,EAAC,GAAG,EAAE,CAAC;QACnB,KAAK,EAAE,GAAG,EAAE,CAAA;KACf,KAAK,IAAI,CAAC;CACd,CAAA;AAED,QAAA,MAAM,YAAY,sGAAsG,iBAAiB,sBAgFxI,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -5,11 +5,12 @@ type IconProps = {
|
|
|
5
5
|
direction?: 'up' | 'down' | 'left' | 'right';
|
|
6
6
|
};
|
|
7
7
|
declare const _default: {
|
|
8
|
-
SearchIcon: ({ color }: IconProps) => React.JSX.Element;
|
|
8
|
+
SearchIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
9
9
|
EyeOnIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
10
10
|
AlertIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
11
11
|
BankIcon: ({ size, color }: IconProps) => React.JSX.Element;
|
|
12
12
|
EditIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
13
|
+
PreferencesIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
13
14
|
CheckCirlceIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
14
15
|
ShareIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
15
16
|
TrophyIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
@@ -17,6 +18,7 @@ declare const _default: {
|
|
|
17
18
|
UserIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
18
19
|
PhoneIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
19
20
|
EmailIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
21
|
+
NotificationIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
20
22
|
InProgressIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
21
23
|
LockClosedIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
22
24
|
CloseIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../src/Components/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,SAAS,GAAG;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,SAAS,CAAC,EAAC,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;CACxC,CAAA
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../src/Components/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,SAAS,GAAG;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAC,MAAM,CAAC;IACb,SAAS,CAAC,EAAC,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;CACxC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAovBD,wBAyCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeRedeem.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/CodeRedeem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAoB,aAAa,
|
|
1
|
+
{"version":3,"file":"CodeRedeem.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/CodeRedeem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAoB,aAAa,EAAsD,MAAM,cAAc,CAAC;AAIxH,KAAK,eAAe,GAAG;IACnB,MAAM,EAAC,aAAa,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,UAAU,+CAA+C,eAAe,sBAyN7E,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MyPlayerProps, ProfileLevelProps } from "../api/types";
|
|
2
|
+
import type { MyPlayerProps, ProfileLevelProps, SettingProps } from "../api/types";
|
|
3
|
+
import type { PlayerSettingProps } from '../../types';
|
|
3
4
|
type ProfileWizardProps = {
|
|
4
5
|
player: MyPlayerProps;
|
|
6
|
+
player_settings: PlayerSettingProps[];
|
|
7
|
+
settings: SettingProps[];
|
|
5
8
|
show_welcome?: boolean;
|
|
6
9
|
width: number;
|
|
7
10
|
hidden_groups?: string[];
|
|
8
11
|
hidden_levels?: string[];
|
|
9
12
|
hidden_steps?: string[];
|
|
10
13
|
init_walkthrough?: boolean;
|
|
11
|
-
profile_attribute?: 'basic' | 'phone' | 'email' | 'dob' | 'password' | 'vouch';
|
|
14
|
+
profile_attribute?: 'basic' | 'phone' | 'email' | 'dob' | 'password' | 'vouch' | 'notification' | 'preferences';
|
|
12
15
|
onClose: () => void;
|
|
13
16
|
onLogout: () => void;
|
|
14
17
|
onSelectLevel: (level: ProfileLevelProps) => void;
|
|
15
18
|
onPlayerUpdate: (player: MyPlayerProps, attribute?: string) => void;
|
|
19
|
+
onUpdatePlayerSetting: (player_setting: PlayerSettingProps) => void;
|
|
16
20
|
};
|
|
17
|
-
declare const ProfileWizard: ({ player, init_walkthrough, show_welcome, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onPlayerUpdate, onSelectLevel, onClose, onLogout }: ProfileWizardProps) => React.JSX.Element;
|
|
21
|
+
declare const ProfileWizard: ({ player, settings, player_settings, init_walkthrough, show_welcome, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }: ProfileWizardProps) => React.JSX.Element;
|
|
18
22
|
export default ProfileWizard;
|
|
19
23
|
//# sourceMappingURL=ProfileWizard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWizard.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/ProfileWizard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,aA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
+
import React from 'react';
|
|
2
|
+
import type { SettingProps } from '../api/types';
|
|
3
|
+
import type { PlayerSettingProps } from '../../types';
|
|
4
|
+
type SettingsManagerProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
settings: SettingProps[];
|
|
8
|
+
icon: any;
|
|
9
|
+
player_settings: PlayerSettingProps[];
|
|
10
|
+
onUpdatePlayerSetting: (ps: PlayerSettingProps) => void;
|
|
11
|
+
};
|
|
12
|
+
declare const SettingsManager: ({ title, description, icon, settings, player_settings, onUpdatePlayerSetting }: SettingsManagerProps) => React.JSX.Element;
|
|
13
|
+
export default SettingsManager;
|
|
14
|
+
//# sourceMappingURL=SettingsManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsManager.d.ts","sourceRoot":"","sources":["../../../../../src/ProfileManager/Components/SettingsManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,KAAK,oBAAoB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,IAAI,EAAC,GAAG,CAAC;IACT,eAAe,EAAE,kBAAkB,EAAE,CAAC;IACtC,qBAAqB,EAAC,CAAC,EAAE,EAAC,kBAAkB,KAAK,IAAI,CAAA;CACxD,CAAA;AAED,QAAA,MAAM,eAAe,mFAAmF,oBAAoB,sBA4H3H,CAAA;AAUD,eAAe,eAAe,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CodeRequestProps, MyPlayerProps, PasswordStateProps, PlayerBalanceProps, PlayerReferralProps, PromoProps,
|
|
1
|
+
import type { CodeRequestProps, MyPlayerProps, PasswordStateProps, PlayerBalanceProps, PlayerReferralProps, PromoProps, RewardOptionProps, SettingProps } from './types';
|
|
2
|
+
import type { PlayerSettingProps, PublicPlayerProps } from '../../types';
|
|
2
3
|
declare const ProfileApi: {
|
|
3
4
|
setEnvironment: () => void;
|
|
4
5
|
getVouchKeys: () => {
|
|
@@ -24,6 +25,11 @@ declare const ProfileApi: {
|
|
|
24
25
|
referrer?: PublicPlayerProps;
|
|
25
26
|
reward_option?: RewardOptionProps;
|
|
26
27
|
}>;
|
|
28
|
+
getMySettings: () => Promise<{
|
|
29
|
+
settings: SettingProps[];
|
|
30
|
+
player_settings: PlayerSettingProps[];
|
|
31
|
+
}>;
|
|
32
|
+
updatePlayerSetting: (player_setting: PlayerSettingProps) => Promise<PlayerSettingProps>;
|
|
27
33
|
redeemCode: (code_request_id: string) => Promise<{
|
|
28
34
|
code_request?: CodeRequestProps;
|
|
29
35
|
promo?: PromoProps;
|