be-components 0.5.1 → 0.5.3
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/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/api/index.js.map +1 -1
- package/lib/commonjs/Checkout/api/index.js +1 -1
- package/lib/commonjs/Checkout/api/index.js.map +1 -1
- package/lib/commonjs/{Wallet → Checkout}/components/PayPalOrderCapture.js +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -0
- package/lib/commonjs/Checkout/index.js +1 -1
- package/lib/commonjs/Components/Icons.js +121 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/api/index.js +0 -1
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/api/index.js +123 -0
- package/lib/commonjs/Wallet/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js +231 -0
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -0
- package/lib/commonjs/Wallet/components/AccountCard.js +6 -0
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +4 -4
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +66 -14
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +325 -0
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -0
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +96 -0
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -0
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +161 -0
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -0
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +3 -3
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +2 -2
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +5 -5
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +141 -13
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +118 -0
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -0
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js +2 -2
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +358 -0
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -0
- package/lib/commonjs/Wallet/components/WalletSettings.js +595 -0
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -0
- package/lib/commonjs/Wallet/components/WalletSetup.js +96 -10
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +349 -17
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +2 -1
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/api/index.js.map +1 -1
- package/lib/module/Checkout/api/index.js +1 -1
- package/lib/module/Checkout/api/index.js.map +1 -1
- package/lib/module/{Wallet → Checkout}/components/PayPalOrderCapture.js +1 -1
- package/lib/module/{Wallet → Checkout}/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/index.js +1 -1
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Components/Icons.js +121 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/api/index.js +0 -1
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/Wallet/api/index.js +123 -0
- package/lib/module/Wallet/api/index.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js +224 -0
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -0
- package/lib/module/Wallet/components/AccountCard.js +6 -0
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +4 -4
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +68 -16
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +318 -0
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -0
- package/lib/module/Wallet/components/ItemOrderCard.js +87 -0
- package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -0
- package/lib/module/Wallet/components/ItemOrderDetailCard.js +153 -0
- package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -0
- package/lib/module/Wallet/components/LinkAccountManager.js +3 -3
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +2 -2
- package/lib/module/Wallet/components/ManualCardAdd.js +5 -5
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +141 -13
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/OrderManager.js +109 -0
- package/lib/module/Wallet/components/OrderManager.js.map +1 -0
- package/lib/module/Wallet/components/VerifyACHAccount.js +2 -2
- package/lib/module/Wallet/components/WalletActionSelector.js +349 -0
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -0
- package/lib/module/Wallet/components/WalletSettings.js +587 -0
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -0
- package/lib/module/Wallet/components/WalletSetup.js +97 -11
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/index.js +351 -19
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/colors.js +2 -1
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/api/index.d.ts +1 -2
- package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts +4 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts +35 -1
- package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts +15 -0
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts +9 -2
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts +23 -0
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts +8 -0
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts +8 -0
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts +7 -0
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +15 -0
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +17 -0
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +3 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +1 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Authenticator/Components/StrategyForm.tsx +1 -2
- package/src/Authenticator/api/index.ts +1 -2
- package/src/Checkout/api/index.tsx +1 -1
- package/src/{Wallet → Checkout}/components/PayPalOrderCapture.tsx +1 -1
- package/src/Checkout/index.tsx +1 -1
- package/src/Components/Icons.tsx +66 -0
- package/src/ProfileManager/Components/BasicStatus.tsx +2 -2
- package/src/ProfileManager/Components/CodeRedeem.tsx +2 -2
- package/src/ProfileManager/Components/ProfileWelcome.tsx +2 -2
- package/src/ProfileManager/Components/ProfileWizard.tsx +2 -2
- package/src/ProfileManager/Components/VouchCard.tsx +2 -2
- package/src/ProfileManager/api/index.ts +2 -3
- package/src/ProfileManager/api/types.d.ts +0 -54
- package/src/Wallet/api/index.ts +85 -1
- package/src/Wallet/components/ACHAddCard.tsx +109 -0
- package/src/Wallet/components/AccountCard.tsx +4 -0
- package/src/Wallet/components/AccountManager.tsx +4 -4
- package/src/Wallet/components/DepositCard.tsx +34 -7
- package/src/Wallet/components/FundAccountCard.tsx +158 -0
- package/src/Wallet/components/ItemOrderCard.tsx +46 -0
- package/src/Wallet/components/ItemOrderDetailCard.tsx +101 -0
- package/src/Wallet/components/LinkAccountManager.tsx +4 -4
- package/src/Wallet/components/ManualACHAdd.tsx +2 -2
- package/src/Wallet/components/ManualCardAdd.tsx +4 -4
- package/src/Wallet/components/MyBalance.tsx +38 -17
- package/src/Wallet/components/OrderManager.tsx +99 -0
- package/src/Wallet/components/VerifyACHAccount.tsx +2 -2
- package/src/Wallet/components/WalletActionSelector.tsx +196 -0
- package/src/Wallet/components/WalletSettings.tsx +224 -0
- package/src/Wallet/components/WalletSetup.tsx +66 -17
- package/src/Wallet/index.tsx +283 -22
- package/src/constants/colors.ts +2 -1
- package/src/types.d.ts +61 -1
- package/lib/commonjs/Wallet/components/ACHAdd.js +0 -63
- package/lib/commonjs/Wallet/components/ACHAdd.js.map +0 -1
- package/lib/commonjs/Wallet/components/PayPalOrderCapture.js.map +0 -1
- package/lib/module/Wallet/components/ACHAdd.js +0 -56
- package/lib/module/Wallet/components/ACHAdd.js.map +0 -1
- package/lib/typescript/src/Wallet/components/ACHAdd.d.ts +0 -13
- package/lib/typescript/src/Wallet/components/ACHAdd.d.ts.map +0 -1
- package/lib/typescript/src/Wallet/components/PayPalOrderCapture.d.ts.map +0 -1
- package/src/Wallet/components/ACHAdd.tsx +0 -49
- /package/lib/typescript/src/{Wallet → Checkout}/components/PayPalOrderCapture.d.ts +0 -0
package/src/Wallet/index.tsx
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, ActivityIndicator } from 'react-native';
|
|
3
|
-
import { WalletApi, WalletHelpers } from './api';
|
|
2
|
+
import { View, ActivityIndicator, FlatList, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { ItemOrderApi, WalletApi, WalletHelpers } from './api';
|
|
4
4
|
import Colors from '../constants/colors';
|
|
5
5
|
import WalletSetup from './components/WalletSetup';
|
|
6
6
|
import type { MyPlayerProps, PlayerBalanceProps } from '../ProfileManager/api/types';
|
|
7
|
-
import
|
|
8
|
-
import type { AccountProps, ItemOrderProps, PlayerAddressProps, PlayerDepositLimitProps, PlayerWithdrawLimitProps, WalletSettingsProps } from '../types';
|
|
7
|
+
import type { AccountProps, CodeRequestProps, ItemOrderProps, ItemProps, PlayerAddressProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../types';
|
|
9
8
|
import MyBalance from './components/MyBalance';
|
|
10
9
|
import ManualCardAdd from './components/ManualCardAdd';
|
|
11
10
|
import DepositCard from './components/DepositCard';
|
|
@@ -19,6 +18,13 @@ import AddressManager from './components/AddressManager';
|
|
|
19
18
|
import VerifyACHAccount from './components/VerifyACHAccount';
|
|
20
19
|
import LinkAccountManager from './components/LinkAccountManager';
|
|
21
20
|
import ManualACHAdd from './components/ManualACHAdd';
|
|
21
|
+
import FundAccountCard from './components/FundAccountCard';
|
|
22
|
+
import { Icons } from '../Components';
|
|
23
|
+
import { view_styles } from '../constants/styles';
|
|
24
|
+
import WalletActionSelector from './components/WalletActionSelector';
|
|
25
|
+
import ACHAddCard from './components/ACHAddCard';
|
|
26
|
+
import OrderManager from './components/OrderManager';
|
|
27
|
+
import WalletSettings from './components/WalletSettings';
|
|
22
28
|
|
|
23
29
|
type MyWalletProps = {
|
|
24
30
|
account_id?:string,
|
|
@@ -26,24 +32,54 @@ type MyWalletProps = {
|
|
|
26
32
|
onTransact: (item_order:ItemOrderProps, account_id?:string) => void
|
|
27
33
|
}
|
|
28
34
|
|
|
35
|
+
|
|
29
36
|
const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
30
|
-
const [
|
|
37
|
+
const [ wallet_size, setWalletSize ] = useState({ height:0, width:0 });
|
|
38
|
+
const [ active_view, setActiveView ] = useState('wallet');
|
|
39
|
+
const [ walkthrough, setWalkthrough ] = useState<{
|
|
40
|
+
enabled:boolean,
|
|
41
|
+
active_step:string,
|
|
42
|
+
steps:any[],
|
|
43
|
+
step_action?:string,
|
|
44
|
+
}>({
|
|
45
|
+
enabled:false,
|
|
46
|
+
active_step: 'welcome',
|
|
47
|
+
steps:[]
|
|
48
|
+
});
|
|
31
49
|
const [ selected_account, setSelectedAccount ] = useState<AccountProps>();
|
|
32
50
|
const [ wallet, setWallet ] = useState<{
|
|
33
51
|
loaded:boolean,
|
|
34
52
|
player_addresses:PlayerAddressProps[],
|
|
35
53
|
wallet_settings?:WalletSettingsProps,
|
|
36
54
|
player?:MyPlayerProps,
|
|
55
|
+
my_orders: {
|
|
56
|
+
item_orders:ItemOrderProps[],
|
|
57
|
+
items: ItemProps[]
|
|
58
|
+
},
|
|
59
|
+
my_referral: {
|
|
60
|
+
player_referral?:PlayerReferralProps,
|
|
61
|
+
promo?:PromoProps
|
|
62
|
+
},
|
|
63
|
+
code_details: {
|
|
64
|
+
code_request?:CodeRequestProps,
|
|
65
|
+
referrer?:PublicPlayerProps,
|
|
66
|
+
promo?:PromoProps,
|
|
67
|
+
player_referral?:PlayerReferralProps,
|
|
68
|
+
reward_option?:RewardOptionProps
|
|
69
|
+
},
|
|
37
70
|
player_balance?:PlayerBalanceProps,
|
|
38
71
|
deposit_limit?:PlayerDepositLimitProps,
|
|
39
72
|
withdraw_limit?:PlayerWithdrawLimitProps,
|
|
40
|
-
accounts:AccountProps[]
|
|
73
|
+
accounts:AccountProps[],
|
|
41
74
|
}>({
|
|
42
75
|
loaded: false,
|
|
43
76
|
accounts: [],
|
|
44
|
-
|
|
77
|
+
my_referral: {},
|
|
78
|
+
my_orders: { item_orders: [], items:[] },
|
|
79
|
+
player_addresses:[],
|
|
80
|
+
code_details: {}
|
|
45
81
|
})
|
|
46
|
-
const { loaded, player, wallet_settings, player_balance, deposit_limit, withdraw_limit, accounts, player_addresses } = wallet
|
|
82
|
+
const { my_referral, loaded, player, wallet_settings, player_balance, deposit_limit, code_details, withdraw_limit, accounts, player_addresses, my_orders } = wallet
|
|
47
83
|
const ibt_placeholder_account = accounts.find(a => a.ibt_placeholder);
|
|
48
84
|
|
|
49
85
|
useEffect(() => {
|
|
@@ -59,8 +95,15 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
59
95
|
const wl = await WalletApi.getMyWithdrawLimit();
|
|
60
96
|
const pa = await WalletApi.getMyAddresses();
|
|
61
97
|
const accts = await WalletApi.getMyAccounts();
|
|
98
|
+
const cd = await WalletApi.getMyCodeDetails();
|
|
99
|
+
const mr = await WalletApi.getMyReferralDetails();
|
|
62
100
|
if(account_id){ setSelectedAccount(accts.find(a => a.account_id == account_id)) }
|
|
63
101
|
|
|
102
|
+
const { item_orders, items } = await ItemOrderApi.getMyItemOrders(0);
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
const steps = WalletHelpers.genWalkthroughSteps(ws, accts, { item_orders, items })
|
|
106
|
+
setWalkthrough({ enabled:!ws.pin?true:false, active_step: 'add_ach_account', steps })
|
|
64
107
|
|
|
65
108
|
setWallet({
|
|
66
109
|
...wallet,
|
|
@@ -69,18 +112,59 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
69
112
|
wallet_settings:ws,
|
|
70
113
|
player_balance: pb,
|
|
71
114
|
deposit_limit: dl,
|
|
115
|
+
code_details: { ...cd },
|
|
116
|
+
my_referral: mr,
|
|
117
|
+
my_orders:{
|
|
118
|
+
item_orders,
|
|
119
|
+
items
|
|
120
|
+
},
|
|
72
121
|
player_addresses: pa,
|
|
73
122
|
withdraw_limit:wl,
|
|
74
123
|
accounts:accts
|
|
75
124
|
})
|
|
76
125
|
|
|
77
126
|
}
|
|
127
|
+
|
|
128
|
+
const getStepColor = (step:any, active?:boolean) => {
|
|
129
|
+
if(step.complete){
|
|
130
|
+
if(active){ return Colors.highlights.highlight400 }
|
|
131
|
+
return Colors.highlights.highlight400Faded
|
|
132
|
+
} else {
|
|
133
|
+
if(active){ return Colors.brand.electric }
|
|
134
|
+
return Colors.shades.shade600
|
|
135
|
+
}
|
|
136
|
+
}
|
|
78
137
|
const handleSelectAccount = async(account:AccountProps) => {
|
|
79
138
|
setSelectedAccount(account)
|
|
80
139
|
if(account.status == 'verify'){ return setActiveView('verify') }
|
|
81
140
|
setActiveView('manage_account')
|
|
82
141
|
}
|
|
83
142
|
|
|
143
|
+
const renderWalkthroughProgress = (data:{ item:any, index:number }) => {
|
|
144
|
+
const active = data.item.step == walkthrough.active_step ? true : false
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<TouchableOpacity
|
|
148
|
+
style={{
|
|
149
|
+
padding:10,
|
|
150
|
+
width: (wallet_size.width - 20) / walkthrough.steps.length,
|
|
151
|
+
backgroundColor:getStepColor(data.item, active),
|
|
152
|
+
borderRightWidth:data.index != walkthrough.steps.length -1 ? 1: 0,
|
|
153
|
+
borderRightColor:Colors.shades.shade100,
|
|
154
|
+
borderTopRightRadius: data.index == walkthrough.steps.length - 1 ? 22 : 0,
|
|
155
|
+
borderBottomRightRadius: data.index == walkthrough.steps.length - 1 ? 22 : 0,
|
|
156
|
+
borderBottomLeftRadius: data.index == 0 ? 22: 0,
|
|
157
|
+
borderTopLeftRadius: data.index == 0 ? 22: 0
|
|
158
|
+
|
|
159
|
+
}}
|
|
160
|
+
onPress={() => {
|
|
161
|
+
if(walkthrough.active_step == 'welcome'){ return }
|
|
162
|
+
setWalkthrough({ ...walkthrough, active_step: data.item.step })
|
|
163
|
+
}}>
|
|
164
|
+
</TouchableOpacity>
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
|
|
84
168
|
if(!loaded || !player || !wallet_settings || !player_balance || !deposit_limit || !withdraw_limit){
|
|
85
169
|
return (
|
|
86
170
|
<View>
|
|
@@ -89,24 +173,161 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
89
173
|
)
|
|
90
174
|
}
|
|
91
175
|
|
|
176
|
+
if(walkthrough.enabled){
|
|
177
|
+
return (
|
|
178
|
+
<View style={{ flex:1 }}>
|
|
179
|
+
<View style={{ padding:10, marginRight:10, marginLeft:10, justifyContent:'center', alignItems:'center' }} onLayout={(ev) => {
|
|
180
|
+
const { height, width } = ev.nativeEvent.layout;
|
|
181
|
+
setWalletSize({ height, width })
|
|
182
|
+
}}>
|
|
183
|
+
<FlatList
|
|
184
|
+
data={walkthrough.steps.sort((a,b) => a.priority - b.priority)}
|
|
185
|
+
renderItem={renderWalkthroughProgress}
|
|
186
|
+
keyExtractor={(item) => item.step}
|
|
187
|
+
horizontal
|
|
188
|
+
/>
|
|
189
|
+
<View style={{ position:'absolute', right:-4, top:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
|
|
190
|
+
<View style={{ height:30, width:30, backgroundColor:Colors.shades.white, borderRadius:100, justifyContent:'center', alignItems:'center', ...view_styles.float }}>
|
|
191
|
+
<Icons.GiftIcon size={18} color={Colors.incentive.gold}/>
|
|
192
|
+
</View>
|
|
193
|
+
</View>
|
|
194
|
+
</View>
|
|
195
|
+
{walkthrough.active_step == 'welcome' ?
|
|
196
|
+
<WalletSetup
|
|
197
|
+
player={player}
|
|
198
|
+
wallet_settings={wallet_settings}
|
|
199
|
+
onClose={() => setWalkthrough({ ...walkthrough, enabled:false })}
|
|
200
|
+
onNext={() => {
|
|
201
|
+
if(WalletHelpers.isWalletAuthenticated(wallet_settings)){
|
|
202
|
+
const steps = WalletHelpers.genWalkthroughSteps(wallet_settings, accounts, my_orders)
|
|
203
|
+
setWalkthrough({ ...walkthrough, steps, active_step:'my_balance' })
|
|
204
|
+
}
|
|
205
|
+
}}
|
|
206
|
+
onSettingsUpdate={(ws) => {
|
|
207
|
+
setWallet({ ...wallet, wallet_settings: ws })
|
|
208
|
+
}}
|
|
209
|
+
/>
|
|
210
|
+
:walkthrough.active_step == 'my_balance' ?
|
|
211
|
+
<MyBalance
|
|
212
|
+
player={player}
|
|
213
|
+
player_balance={player_balance}
|
|
214
|
+
onClose={() => setWalkthrough({ ...walkthrough, enabled:false })}
|
|
215
|
+
onNext={() => {
|
|
216
|
+
setWalkthrough({ ...walkthrough, active_step: 'add_ach_account' })
|
|
217
|
+
}}
|
|
218
|
+
/>
|
|
219
|
+
:walkthrough.active_step == 'add_ach_account' ?
|
|
220
|
+
<View style={{ flex:1 }}>
|
|
221
|
+
{!walkthrough.step_action ?
|
|
222
|
+
<FundAccountCard
|
|
223
|
+
player={player}
|
|
224
|
+
accounts={accounts}
|
|
225
|
+
walkthrough
|
|
226
|
+
code_details={code_details}
|
|
227
|
+
onManualACH={() => setWalkthrough({ ...walkthrough, step_action:'manual_ach' })}
|
|
228
|
+
onClose={() => setWalkthrough({ ...walkthrough, enabled:false })}
|
|
229
|
+
onCard={(account) => {
|
|
230
|
+
console.log(account)
|
|
231
|
+
if(account){
|
|
232
|
+
setSelectedAccount(account)
|
|
233
|
+
return setWalkthrough({ ...walkthrough, active_step:'deposit' })
|
|
234
|
+
}
|
|
235
|
+
setWalkthrough({ ...walkthrough, step_action:'manual_card' })
|
|
236
|
+
}}
|
|
237
|
+
onSelectAccount={(acct) => {
|
|
238
|
+
setSelectedAccount(acct);
|
|
239
|
+
}}
|
|
240
|
+
onNext={() => {
|
|
241
|
+
setWalkthrough({ ...walkthrough, active_step: 'deposit' })
|
|
242
|
+
let default_account = accounts.find(a => a.default_account)
|
|
243
|
+
if(!default_account){
|
|
244
|
+
default_account = accounts.find(a => a.account_type == 'paypal');
|
|
245
|
+
}
|
|
246
|
+
setSelectedAccount(default_account)
|
|
247
|
+
setActiveView('deposit')
|
|
248
|
+
}}
|
|
249
|
+
/>
|
|
250
|
+
:walkthrough.step_action == 'manual_ach' ?
|
|
251
|
+
<ManualACHAdd
|
|
252
|
+
player={player}
|
|
253
|
+
onAddAccount={(acct) => {
|
|
254
|
+
setWallet({ ...wallet, accounts: accounts.concat(acct) })
|
|
255
|
+
setWalkthrough({ ...walkthrough, step_action: undefined })
|
|
256
|
+
}}
|
|
257
|
+
onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
|
|
258
|
+
/>
|
|
259
|
+
:walkthrough.step_action == 'link_ach' && ibt_placeholder_account ?
|
|
260
|
+
<LinkAccountManager
|
|
261
|
+
ibt_placeholer_account={ibt_placeholder_account}
|
|
262
|
+
onComplete={(account) => {
|
|
263
|
+
setWallet({ ...wallet, accounts: accounts.filter(a => a.account_id != account.account_id).concat(account) })
|
|
264
|
+
setWalkthrough({ ...walkthrough, step_action: undefined })
|
|
265
|
+
}}
|
|
266
|
+
onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
|
|
267
|
+
/>
|
|
268
|
+
:walkthrough.step_action == 'manual_card' ?
|
|
269
|
+
<ManualCardAdd
|
|
270
|
+
player={player}
|
|
271
|
+
onAddAccount={(acct) => {
|
|
272
|
+
setWallet({ ...wallet, accounts: accounts.concat(acct) })
|
|
273
|
+
setWalkthrough({ ...walkthrough, step_action: undefined })
|
|
274
|
+
}}
|
|
275
|
+
onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
|
|
276
|
+
/>
|
|
277
|
+
:<></>}
|
|
278
|
+
</View>
|
|
279
|
+
: walkthrough.active_step == 'deposit' && selected_account ?
|
|
280
|
+
<DepositCard
|
|
281
|
+
player={player}
|
|
282
|
+
wallet_settings={wallet_settings}
|
|
283
|
+
deposit_limit={deposit_limit}
|
|
284
|
+
code_details={code_details}
|
|
285
|
+
account={selected_account}
|
|
286
|
+
onCancel={() => {
|
|
287
|
+
setWalkthrough({ ...walkthrough, active_step:'add_ach_account' })
|
|
288
|
+
}}
|
|
289
|
+
onTransact={(item_order) => onTransact(item_order, selected_account.account_id)}
|
|
290
|
+
/>
|
|
291
|
+
:<></>}
|
|
292
|
+
</View>
|
|
293
|
+
)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
|
|
92
297
|
return (
|
|
93
|
-
<View style={{ flex:1 }}>
|
|
298
|
+
<View style={{ flex:1, backgroundColor:Colors.brand.midnight }}>
|
|
94
299
|
{!WalletHelpers.isWalletAuthenticated(wallet_settings) ?
|
|
95
300
|
<WalletSetup
|
|
96
301
|
player={player}
|
|
97
302
|
wallet_settings={wallet_settings}
|
|
98
303
|
onSettingsUpdate={(ws) => {
|
|
99
304
|
setWallet({ ...wallet, wallet_settings: ws })
|
|
100
|
-
if(WalletHelpers.isWalletAuthenticated(ws)){
|
|
305
|
+
if(WalletHelpers.isWalletAuthenticated(ws)){
|
|
306
|
+
setActiveView('wallet')
|
|
307
|
+
}
|
|
101
308
|
}}
|
|
102
309
|
/>
|
|
103
|
-
:active_view == '
|
|
310
|
+
:active_view == 'wallet' ?
|
|
311
|
+
<WalletActionSelector
|
|
312
|
+
walkthrough_steps={walkthrough.steps}
|
|
313
|
+
player={player}
|
|
314
|
+
player_balance={player_balance}
|
|
315
|
+
accounts={accounts}
|
|
316
|
+
onStartWalkthrough={(walkthrough) => setWalkthrough(walkthrough)}
|
|
317
|
+
onActionSelect={(action, account) => {
|
|
318
|
+
setActiveView(action.action);
|
|
319
|
+
console.log(action.action)
|
|
320
|
+
if(account){ setSelectedAccount(account) }
|
|
321
|
+
}}
|
|
322
|
+
onClose={onClose}
|
|
323
|
+
/>
|
|
324
|
+
:active_view == 'my_accounts' ?
|
|
104
325
|
<AccountManager
|
|
105
326
|
accounts={accounts}
|
|
106
327
|
onSelectInstantBankTransfer={() => {
|
|
107
328
|
setActiveView('add_ibt');
|
|
108
329
|
}}
|
|
109
|
-
onClose={
|
|
330
|
+
onClose={() => setActiveView('wallet')}
|
|
110
331
|
onSelectManualACH={() => setActiveView('add_ach')}
|
|
111
332
|
onSelectManualCard={() => setActiveView('add_card')}
|
|
112
333
|
onSelectAccount={(acct) => handleSelectAccount(acct)}
|
|
@@ -120,6 +341,29 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
120
341
|
onSelect={() => console.log('hey')}
|
|
121
342
|
onCancel={() => console.log('cancel')}
|
|
122
343
|
/>
|
|
344
|
+
:active_view == 'order_history' ?
|
|
345
|
+
<OrderManager
|
|
346
|
+
onClose={() => setActiveView('wallet')}
|
|
347
|
+
|
|
348
|
+
/>
|
|
349
|
+
:active_view == 'wallet_settings' ?
|
|
350
|
+
<WalletSettings
|
|
351
|
+
player={player}
|
|
352
|
+
withdraw_limit={withdraw_limit}
|
|
353
|
+
deposit_limit={deposit_limit}
|
|
354
|
+
my_referral={my_referral}
|
|
355
|
+
onPremium={() => console.log('go premium')}
|
|
356
|
+
onClose={() => setActiveView('wallet')}
|
|
357
|
+
/>
|
|
358
|
+
: active_view == 'add_ach_account' ?
|
|
359
|
+
<ACHAddCard
|
|
360
|
+
player={player}
|
|
361
|
+
accounts={accounts}
|
|
362
|
+
onManualACH={() => setActiveView('add_ach')}
|
|
363
|
+
onClose={() => setActiveView('wallet')}
|
|
364
|
+
onNext={() => console.log('NEXT!')}
|
|
365
|
+
onLinkACH={() => setActiveView('link_ach')}
|
|
366
|
+
/>
|
|
123
367
|
:active_view == 'account_limit' && selected_account ?
|
|
124
368
|
<AccountLimitManager
|
|
125
369
|
account={selected_account}
|
|
@@ -147,7 +391,7 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
147
391
|
deposit_limit={deposit_limit}
|
|
148
392
|
withdraw_limit={withdraw_limit}
|
|
149
393
|
onAccountUpdate={(acct) => setWallet({ ...wallet, accounts: accounts.filter(a => a.account_id != acct.account_id) })}
|
|
150
|
-
onClose={() => setActiveView('
|
|
394
|
+
onClose={() => setActiveView('my_accounts')}
|
|
151
395
|
onTransact={onTransact}
|
|
152
396
|
/>
|
|
153
397
|
:active_view == 'deposit' && selected_account ?
|
|
@@ -156,7 +400,11 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
156
400
|
wallet_settings={wallet_settings}
|
|
157
401
|
deposit_limit={deposit_limit}
|
|
158
402
|
account={selected_account}
|
|
159
|
-
|
|
403
|
+
code_details={code_details}
|
|
404
|
+
onCancel={() => {
|
|
405
|
+
return setActiveView('wallet')
|
|
406
|
+
//return setActiveView('manage_account')
|
|
407
|
+
}}
|
|
160
408
|
onTransact={(item_order) => onTransact(item_order, selected_account.account_id)}
|
|
161
409
|
/>
|
|
162
410
|
:active_view == 'withdraw' && selected_account ?
|
|
@@ -168,13 +416,13 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
168
416
|
deposit_limit={deposit_limit}
|
|
169
417
|
account={selected_account}
|
|
170
418
|
onTransact={(item_order) => onTransact(item_order, selected_account.account_id)}
|
|
171
|
-
onCancel={() => setActiveView('
|
|
419
|
+
onCancel={() => setActiveView('my_accounts')}
|
|
172
420
|
/>
|
|
173
421
|
:active_view == 'verify' && selected_account ?
|
|
174
422
|
<VerifyACHAccount
|
|
175
423
|
account={selected_account}
|
|
176
424
|
onClose={() => {
|
|
177
|
-
setActiveView('
|
|
425
|
+
setActiveView('my_accounts')
|
|
178
426
|
setSelectedAccount(undefined);
|
|
179
427
|
}}
|
|
180
428
|
onUpdateAccount={(acct) => {
|
|
@@ -186,28 +434,41 @@ const MyWallet = ({ account_id, onTransact, onClose }:MyWalletProps) => {
|
|
|
186
434
|
<LinkAccountManager
|
|
187
435
|
ibt_placeholer_account={ibt_placeholder_account}
|
|
188
436
|
onComplete={(account_id) => console.log(account_id)}
|
|
189
|
-
onCancel={() => setActiveView('
|
|
437
|
+
onCancel={() => setActiveView('my_accounts')}
|
|
190
438
|
/>
|
|
191
439
|
:active_view == 'add_ach'?
|
|
192
440
|
<ManualACHAdd
|
|
193
441
|
player={player}
|
|
194
442
|
onAddAccount={(acct) => setWallet({ ...wallet, accounts: accounts.concat(acct) })}
|
|
195
|
-
onCancel={() => setActiveView('
|
|
196
|
-
|
|
443
|
+
onCancel={() => setActiveView('my_accounts')}
|
|
197
444
|
/>
|
|
198
445
|
:active_view == 'add_card'?
|
|
199
446
|
<ManualCardAdd
|
|
200
447
|
player={player}
|
|
201
448
|
onAddAccount={(acct) => {
|
|
202
449
|
setWallet({ ...wallet, accounts: accounts.concat(acct) })
|
|
203
|
-
setActiveView('
|
|
450
|
+
setActiveView('my_accounts')
|
|
204
451
|
}}
|
|
205
|
-
onCancel={() => setActiveView('
|
|
452
|
+
onCancel={() => setActiveView('my_accounts')}
|
|
206
453
|
/>
|
|
207
454
|
:active_view == 'add' ?
|
|
208
|
-
<
|
|
455
|
+
<FundAccountCard
|
|
209
456
|
player={player}
|
|
210
457
|
accounts={accounts}
|
|
458
|
+
code_details={code_details}
|
|
459
|
+
onCard={(account) => {
|
|
460
|
+
console.log(account)
|
|
461
|
+
if(account){
|
|
462
|
+
setSelectedAccount(account)
|
|
463
|
+
return setWalkthrough({ ...walkthrough, step_action: 'deposit' })
|
|
464
|
+
}
|
|
465
|
+
setActiveView('add_card')
|
|
466
|
+
}}
|
|
467
|
+
onManualACH={() => setActiveView('add_ach')}
|
|
468
|
+
onSelectAccount={(acct) => {
|
|
469
|
+
setSelectedAccount(acct);
|
|
470
|
+
setActiveView('deposit')
|
|
471
|
+
}}
|
|
211
472
|
onNext={() => console.log('next')}
|
|
212
473
|
onClose={() => console.log('')}
|
|
213
474
|
walkthrough
|
package/src/constants/colors.ts
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -646,4 +646,64 @@ export interface ItemProps {
|
|
|
646
646
|
|
|
647
647
|
export interface ItemImageProps {
|
|
648
648
|
url:string, default:boolean, color?:string, width?:number, height?:number
|
|
649
|
-
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
//CODE REQUESTS
|
|
654
|
+
|
|
655
|
+
export interface CodeRequestProps {
|
|
656
|
+
code_request_id:string,
|
|
657
|
+
player_id:string,
|
|
658
|
+
referral_code:string,
|
|
659
|
+
create_datetime:any,
|
|
660
|
+
reward_option_id?:string,
|
|
661
|
+
status:'requested' | 'fulfilled' | 'invalid' | 'verified' | 'closed',
|
|
662
|
+
last_update_datetime: any,
|
|
663
|
+
referrer_id?:string,
|
|
664
|
+
pending_deposit?:boolean
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
export interface RewardOptionProps {
|
|
669
|
+
reward_option_id: string,
|
|
670
|
+
reward_type: string,
|
|
671
|
+
reward_value: number,
|
|
672
|
+
reward_name:string,
|
|
673
|
+
status: 'active' | 'inactive',
|
|
674
|
+
market_type: 'FOR_MONEY' | 'FREE' | 'PROMO',
|
|
675
|
+
award_quotient: number,
|
|
676
|
+
create_datetime: any,
|
|
677
|
+
last_update_datetime: any
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
export interface PlayerReferralProps {
|
|
682
|
+
player_referral_id:string,
|
|
683
|
+
referrer_id:string,
|
|
684
|
+
referred_phone?:number,
|
|
685
|
+
referral_code:string,
|
|
686
|
+
referral_quality_quotient?:number,
|
|
687
|
+
status:'pending' | 'closed' | 'inactive',
|
|
688
|
+
promo_id: string,
|
|
689
|
+
company_id?:string,
|
|
690
|
+
create_datetime?: any,
|
|
691
|
+
description?:string,
|
|
692
|
+
code_image?:string,
|
|
693
|
+
last_update_datetime?:any
|
|
694
|
+
promo?:PromoProps
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
export interface PromoProps {
|
|
699
|
+
promo_id:string,
|
|
700
|
+
description:string,
|
|
701
|
+
type: 'referral_code' | 'promo_code' | 'promo_sweepstakes' | 'referral_sweepstakes',
|
|
702
|
+
amount:number,
|
|
703
|
+
amount_type:'FOR_MONEY'|'FREE',
|
|
704
|
+
status: 'active' | 'inactive',
|
|
705
|
+
expire_type: 'quantity' | 'time',
|
|
706
|
+
available_codes: number,
|
|
707
|
+
expire_datetime:any,
|
|
708
|
+
create_datetime:any
|
|
709
|
+
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _Components = require("../../Components");
|
|
10
|
-
var _colors = _interopRequireDefault(require("../../constants/colors"));
|
|
11
|
-
var _styles = require("../../constants/styles");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
const ACHAdd = ({
|
|
14
|
-
onClose,
|
|
15
|
-
onNext,
|
|
16
|
-
walkthrough
|
|
17
|
-
}) => {
|
|
18
|
-
//const [ loading, setLoading ] = useState(false);
|
|
19
|
-
//const [ add_type, setAddType ] = useState('manual');
|
|
20
|
-
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
22
|
-
style: {
|
|
23
|
-
flex: 1
|
|
24
|
-
}
|
|
25
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
26
|
-
style: {
|
|
27
|
-
padding: 20
|
|
28
|
-
}
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
30
|
-
size: 30,
|
|
31
|
-
color: _colors.default.brand.midnight,
|
|
32
|
-
weight: "bold"
|
|
33
|
-
}, "GET ACCESS TO YOUR WINNINGS"), /*#__PURE__*/_react.default.createElement(_Components.Text, {
|
|
34
|
-
style: {
|
|
35
|
-
marginTop: 15
|
|
36
|
-
},
|
|
37
|
-
size: 16,
|
|
38
|
-
color: _colors.default.brand.midnight,
|
|
39
|
-
weight: "regular"
|
|
40
|
-
}, "At BettorEdge - we celebrate withdraws! In order to move funds out of your BettorEdge account, we need to link an eligible bank account.")), walkthrough ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
41
|
-
nativeID: "action_row",
|
|
42
|
-
style: {
|
|
43
|
-
flexDirection: 'row',
|
|
44
|
-
justifyContent: 'space-between',
|
|
45
|
-
padding: 10
|
|
46
|
-
}
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_Components.Button, {
|
|
48
|
-
title: "EXIT SETUP",
|
|
49
|
-
title_color: _colors.default.utility.error,
|
|
50
|
-
backgroundColor: "transparent",
|
|
51
|
-
onPress: () => onClose()
|
|
52
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
53
|
-
style: _styles.button_styles.wizard_valid,
|
|
54
|
-
onPress: () => onNext()
|
|
55
|
-
//disabled={loading}
|
|
56
|
-
}, /*#__PURE__*/_react.default.createElement(_Components.Icons.ChevronIcon, {
|
|
57
|
-
size: 20,
|
|
58
|
-
direction: "right",
|
|
59
|
-
color: _colors.default.brand.midnight
|
|
60
|
-
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null));
|
|
61
|
-
};
|
|
62
|
-
var _default = exports.default = ACHAdd;
|
|
63
|
-
//# sourceMappingURL=ACHAdd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_Components","_colors","_styles","obj","__esModule","default","ACHAdd","onClose","onNext","walkthrough","createElement","View","style","flex","padding","Text","size","color","Colors","brand","midnight","weight","marginTop","nativeID","flexDirection","justifyContent","Button","title","title_color","utility","error","backgroundColor","onPress","TouchableOpacity","button_styles","wizard_valid","Icons","ChevronIcon","direction","Fragment","_default","exports"],"sourceRoot":"../../../../src","sources":["Wallet/components/ACHAdd.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAuD,SAAAD,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAUvD,MAAMG,MAAM,GAAGA,CAAC;EAAEC,OAAO;EAAEC,MAAM;EAAEC;AAA4B,CAAC,KAAK;EACjE;EACA;;EAEA,oBACIb,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACX,YAAA,CAAAY,IAAI;IAACC,KAAK,EAAE;MAAEC,IAAI,EAAC;IAAE;EAAE,gBACpBjB,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACX,YAAA,CAAAY,IAAI;IAACC,KAAK,EAAE;MAAEE,OAAO,EAAC;IAAG;EAAE,gBACxBlB,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAe,IAAI;IAACC,IAAI,EAAE,EAAG;IAACC,KAAK,EAAEC,eAAM,CAACC,KAAK,CAACC,QAAS;IAACC,MAAM,EAAC;EAAM,GAAC,6BAAiC,CAAC,eAC9FzB,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAe,IAAI;IAACH,KAAK,EAAE;MAAEU,SAAS,EAAC;IAAG,CAAE;IAACN,IAAI,EAAE,EAAG;IAACC,KAAK,EAAEC,eAAM,CAACC,KAAK,CAACC,QAAS;IAACC,MAAM,EAAC;EAAS,GAAC,2IAA+I,CACrO,CAAC,EAENZ,WAAW,gBACZb,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACX,YAAA,CAAAY,IAAI;IAACY,QAAQ,EAAC,YAAY;IAACX,KAAK,EAAE;MAAEY,aAAa,EAAC,KAAK;MAAEC,cAAc,EAAC,eAAe;MAAEX,OAAO,EAAC;IAAG;EAAE,gBACnGlB,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAA0B,MAAM;IACHC,KAAK,EAAC,YAAY;IAClBC,WAAW,EAAEV,eAAM,CAACW,OAAO,CAACC,KAAM;IAClCC,eAAe,EAAC,aAAa;IAC7BC,OAAO,EAAEA,CAAA,KAAMzB,OAAO,CAAC;EAAE,CAC5B,CAAC,eACFX,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACX,YAAA,CAAAkC,gBAAgB;IACbrB,KAAK,EAAEsB,qBAAa,CAACC,YAAa;IAClCH,OAAO,EAAEA,CAAA,KAAMxB,MAAM,CAAC;IACtB;EAAA,gBAEAZ,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAACV,WAAA,CAAAoC,KAAK,CAACC,WAAW;IAACrB,IAAI,EAAE,EAAG;IAACsB,SAAS,EAAC,OAAO;IAACrB,KAAK,EAAEC,eAAM,CAACC,KAAK,CAACC;EAAS,CAAC,CAC/D,CAChB,CAAC,gBACNxB,MAAA,CAAAS,OAAA,CAAAK,aAAA,CAAAd,MAAA,CAAAS,OAAA,CAAAkC,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAApC,OAAA,GAEcC,MAAM","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactPaypalJs","_reactNative","_api","obj","__esModule","default","PayPalOrderCapture","draft_item_order","region","coordinates","items","paypal_account","button_height","order_valid","onOrderUpdate","onCancel","createOrder","draft_transaction","CheckoutHelpers","genTransactionFromItemOrder","account_id","transaction","CheckoutApi","location","external_id","e","onApprove","data","resp","capturePayPalTransaction","orderID","item_order","handleCancel","cancelTransaction","undefined","height","createElement","View","style","flex","PayPalButtons","disabled","layout","shape","onError","console","log","_default","exports"],"sourceRoot":"../../../../src","sources":["Wallet/components/PayPalOrderCapture.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,IAAA,GAAAH,OAAA;AAAkE,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAclE,MAAMG,kBAAkB,GAAGA,CAAC;EAAEC,gBAAgB;EAAEC,MAAM;EAAEC,WAAW;EAAEC,KAAK;EAAEC,cAAc;EAAEC,aAAa;EAAEC,WAAW;EAAEC,aAAa;EAAEC;AAAiC,CAAC,KAAK;EAE1K,MAAMC,WAAW,GAAG,MAAAA,CAAA,KAAW;IAC3B,IAAI;MACA,MAAMC,iBAAiB,GAAGC,oBAAe,CAACC,2BAA2B,CAACZ,gBAAgB,EAAEG,KAAK,EAAEC,cAAc,EAAES,UAAU,EAAEX,WAAW,CAAC;MACvI,MAAM;QAAEY;MAAY,CAAC,GAAG,MAAMC,gBAAW,CAACN,WAAW,CAAC;QAAE,GAAGT,gBAAgB;QAAEC,MAAM;QAAEe,QAAQ,EAAEd;MAAY,CAAC,EAAEQ,iBAAiB,CAAC;MAChI,OAAOI,WAAW,CAACG,WAAW,CAAU,CAAC;IAC7C,CAAC,CAAC,OAAOC,CAAC,EAAE;MACR,OAAO,EAAE;IACb;EACJ,CAAC;EAED,MAAMC,SAAS,GAAG,MAAMC,IAAQ,IAAK;IACjC,MAAMC,IAAI,GAAG,MAAMN,gBAAW,CAACO,wBAAwB,CAACF,IAAI,CAACG,OAAO,CAAC;IACrEhB,aAAa,CAACc,IAAI,CAACG,UAAU,EAAEH,IAAI,CAACP,WAAW,CAAC;EACpD,CAAC;EAED,MAAMW,YAAY,GAAG,MAAML,IAAQ,IAAK;IACpC,MAAML,gBAAW,CAACW,iBAAiB,CAACC,SAAS,EAAEP,IAAI,CAACG,OAAO,CAAC;IAC5Df,QAAQ,CAAC,CAAC;EAEd,CAAC;EAED,IAAIoB,MAAM,GAAG,EAAE;EACf,IAAGvB,aAAa,IAAIA,aAAa,GAAG,EAAE,IAAIA,aAAa,GAAG,EAAE,EAAC;IAAEuB,MAAM,GAAGvB,aAAa;EAAC;EAEtF,oBACIf,MAAA,CAAAQ,OAAA,CAAA+B,aAAA,CAACnC,YAAA,CAAAoC,IAAI;IAACC,KAAK,EAAE;MAAEC,IAAI,EAAC;IAAE;EAAE,gBACpB1C,MAAA,CAAAQ,OAAA,CAAA+B,aAAA,CAACpC,cAAA,CAAAwC,aAAa;IACVC,QAAQ,EAAE,CAAC5B,WAAW,GAAG,IAAI,GAAG,KAAM;IACtCyB,KAAK,EAAE;MAAEI,MAAM,EAAE,YAAY;MAAEC,KAAK,EAAC,MAAM;MAAER;IAAO,CAAE;IACtDnB,WAAW,EAAEA,WAAY;IACzB4B,OAAO,EAAGnB,CAAC,IAAKoB,OAAO,CAACC,GAAG,CAACrB,CAAC,CAAE;IAC/BC,SAAS,EAAEA,SAAU;IACrBX,QAAQ,EAAEiB;EAAa,CAC1B,CACC,CAAC;AAEf,CAAC;AAAA,IAAAe,QAAA,GAAAC,OAAA,CAAA3C,OAAA,GAEcC,kBAAkB","ignoreList":[]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { Button, Icons, Text } from '../../Components';
|
|
4
|
-
import Colors from '../../constants/colors';
|
|
5
|
-
import { button_styles } from '../../constants/styles';
|
|
6
|
-
const ACHAdd = ({
|
|
7
|
-
onClose,
|
|
8
|
-
onNext,
|
|
9
|
-
walkthrough
|
|
10
|
-
}) => {
|
|
11
|
-
//const [ loading, setLoading ] = useState(false);
|
|
12
|
-
//const [ add_type, setAddType ] = useState('manual');
|
|
13
|
-
|
|
14
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
15
|
-
style: {
|
|
16
|
-
flex: 1
|
|
17
|
-
}
|
|
18
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
19
|
-
style: {
|
|
20
|
-
padding: 20
|
|
21
|
-
}
|
|
22
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
23
|
-
size: 30,
|
|
24
|
-
color: Colors.brand.midnight,
|
|
25
|
-
weight: "bold"
|
|
26
|
-
}, "GET ACCESS TO YOUR WINNINGS"), /*#__PURE__*/React.createElement(Text, {
|
|
27
|
-
style: {
|
|
28
|
-
marginTop: 15
|
|
29
|
-
},
|
|
30
|
-
size: 16,
|
|
31
|
-
color: Colors.brand.midnight,
|
|
32
|
-
weight: "regular"
|
|
33
|
-
}, "At BettorEdge - we celebrate withdraws! In order to move funds out of your BettorEdge account, we need to link an eligible bank account.")), walkthrough ? /*#__PURE__*/React.createElement(View, {
|
|
34
|
-
nativeID: "action_row",
|
|
35
|
-
style: {
|
|
36
|
-
flexDirection: 'row',
|
|
37
|
-
justifyContent: 'space-between',
|
|
38
|
-
padding: 10
|
|
39
|
-
}
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
41
|
-
title: "EXIT SETUP",
|
|
42
|
-
title_color: Colors.utility.error,
|
|
43
|
-
backgroundColor: "transparent",
|
|
44
|
-
onPress: () => onClose()
|
|
45
|
-
}), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
46
|
-
style: button_styles.wizard_valid,
|
|
47
|
-
onPress: () => onNext()
|
|
48
|
-
//disabled={loading}
|
|
49
|
-
}, /*#__PURE__*/React.createElement(Icons.ChevronIcon, {
|
|
50
|
-
size: 20,
|
|
51
|
-
direction: "right",
|
|
52
|
-
color: Colors.brand.midnight
|
|
53
|
-
}))) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
54
|
-
};
|
|
55
|
-
export default ACHAdd;
|
|
56
|
-
//# sourceMappingURL=ACHAdd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","TouchableOpacity","Button","Icons","Text","Colors","button_styles","ACHAdd","onClose","onNext","walkthrough","createElement","style","flex","padding","size","color","brand","midnight","weight","marginTop","nativeID","flexDirection","justifyContent","title","title_color","utility","error","backgroundColor","onPress","wizard_valid","ChevronIcon","direction","Fragment"],"sourceRoot":"../../../../src","sources":["Wallet/components/ACHAdd.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAGrD,SAASC,MAAM,EAAEC,KAAK,EAAEC,IAAI,QAAQ,kBAAkB;AACtD,OAAOC,MAAM,MAAM,wBAAwB;AAC3C,SAASC,aAAa,QAAQ,wBAAwB;AAUtD,MAAMC,MAAM,GAAGA,CAAC;EAAEC,OAAO;EAAEC,MAAM;EAAEC;AAA4B,CAAC,KAAK;EACjE;EACA;;EAEA,oBACIX,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACY,KAAK,EAAE;MAAEC,IAAI,EAAC;IAAE;EAAE,gBACpBd,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACY,KAAK,EAAE;MAAEE,OAAO,EAAC;IAAG;EAAE,gBACxBf,KAAA,CAAAY,aAAA,CAACP,IAAI;IAACW,IAAI,EAAE,EAAG;IAACC,KAAK,EAAEX,MAAM,CAACY,KAAK,CAACC,QAAS;IAACC,MAAM,EAAC;EAAM,GAAC,6BAAiC,CAAC,eAC9FpB,KAAA,CAAAY,aAAA,CAACP,IAAI;IAACQ,KAAK,EAAE;MAAEQ,SAAS,EAAC;IAAG,CAAE;IAACL,IAAI,EAAE,EAAG;IAACC,KAAK,EAAEX,MAAM,CAACY,KAAK,CAACC,QAAS;IAACC,MAAM,EAAC;EAAS,GAAC,2IAA+I,CACrO,CAAC,EAENT,WAAW,gBACZX,KAAA,CAAAY,aAAA,CAACX,IAAI;IAACqB,QAAQ,EAAC,YAAY;IAACT,KAAK,EAAE;MAAEU,aAAa,EAAC,KAAK;MAAEC,cAAc,EAAC,eAAe;MAAET,OAAO,EAAC;IAAG;EAAE,gBACnGf,KAAA,CAAAY,aAAA,CAACT,MAAM;IACHsB,KAAK,EAAC,YAAY;IAClBC,WAAW,EAAEpB,MAAM,CAACqB,OAAO,CAACC,KAAM;IAClCC,eAAe,EAAC,aAAa;IAC7BC,OAAO,EAAEA,CAAA,KAAMrB,OAAO,CAAC;EAAE,CAC5B,CAAC,eACFT,KAAA,CAAAY,aAAA,CAACV,gBAAgB;IACbW,KAAK,EAAEN,aAAa,CAACwB,YAAa;IAClCD,OAAO,EAAEA,CAAA,KAAMpB,MAAM,CAAC;IACtB;EAAA,gBAEAV,KAAA,CAAAY,aAAA,CAACR,KAAK,CAAC4B,WAAW;IAAChB,IAAI,EAAE,EAAG;IAACiB,SAAS,EAAC,OAAO;IAAChB,KAAK,EAAEX,MAAM,CAACY,KAAK,CAACC;EAAS,CAAC,CAC/D,CAChB,CAAC,gBACNnB,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAkC,QAAA,MAAI,CACH,CAAC;AAEf,CAAC;AAED,eAAe1B,MAAM","ignoreList":[]}
|