be-components 0.5.4 → 0.5.5
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/Checkout/components/PayPalOrderCapture.js +3 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +3 -2
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Wallet/api/index.js +12 -8
- package/lib/commonjs/Wallet/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js +14 -2
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +8 -3
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +82 -25
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +110 -2
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +29 -7
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +3 -2
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +279 -58
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js +3 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/index.js +3 -2
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Wallet/api/index.js +12 -8
- package/lib/module/Wallet/api/index.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js +14 -2
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +8 -3
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +82 -25
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +110 -2
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js +29 -7
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +3 -2
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +279 -58
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts +5 -1
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Checkout/components/PayPalOrderCapture.tsx +3 -1
- package/src/Checkout/index.tsx +4 -2
- package/src/Observer/api/types.d.ts +1 -1
- package/src/Wallet/api/index.ts +7 -7
- package/src/Wallet/components/ACHAddCard.tsx +7 -1
- package/src/Wallet/components/AccountManager.tsx +3 -2
- package/src/Wallet/components/DepositCard.tsx +29 -6
- package/src/Wallet/components/LinkAccountManager.tsx +44 -1
- package/src/Wallet/components/WalletActionSelector.tsx +18 -4
- package/src/Wallet/components/WalletSetup.tsx +1 -1
- package/src/Wallet/components/WithdrawCard.tsx +3 -3
- package/src/Wallet/index.tsx +133 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACtY,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAMxF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAEnE,QAAA,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACtY,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAMxF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAEnE,QAAA,MAAM,SAAS;;wBAMW,QAAQ,aAAa,CAAC;4BAIlB,QA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,eAAe,
|
|
1
|
+
{"version":3,"file":"ACHAddCard.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/ACHAddCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,KAAK,eAAe,GAAG;IACnB,MAAM,EAAC,aAAa,CAAC;IACrB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,OAAO,EAAC,YAAY,KAAK,IAAI,CAAC;CAC1C,CAAA;AAED,QAAA,MAAM,UAAU,0DAA0D,eAAe,sBA8FxF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountManager.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/AccountManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,eAAe,EAAE,CAAC,OAAO,EAAC,YAAY,KAAK,IAAI,CAAA;IAC/C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,2BAA2B,EAAE,MAAM,IAAI,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,cAAc,+GAAgH,mBAAmB,
|
|
1
|
+
{"version":3,"file":"AccountManager.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/AccountManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD,KAAK,mBAAmB,GAAG;IACvB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,eAAe,EAAE,CAAC,OAAO,EAAC,YAAY,KAAK,IAAI,CAAA;IAC/C,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,2BAA2B,EAAE,MAAM,IAAI,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,cAAc,+GAAgH,mBAAmB,sBAqFtJ,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCard.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/DepositCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAsB,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3N,KAAK,gBAAgB,GAAG;IACpB,MAAM,EAAC,aAAa,CAAC;IACrB,eAAe,EAAC,mBAAmB,CAAC;IACpC,OAAO,EAAC,YAAY,CAAC;IACrB,YAAY,CAAC,EAAE;QACX,YAAY,CAAC,EAAC,gBAAgB,CAAC;QAC/B,QAAQ,CAAC,EAAC,iBAAiB,CAAC;QAC5B,KAAK,CAAC,EAAC,UAAU,CAAC;QAClB,eAAe,CAAC,EAAC,mBAAmB,CAAC;QACrC,aAAa,CAAC,EAAC,iBAAiB,CAAA;KACnC,CAAC;IACF,aAAa,EAAC,uBAAuB,CAAC;IACtC,UAAU,EAAC,CAAC,WAAW,EAAC,cAAc,EAAE,UAAU,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IACpE,QAAQ,EAAC,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,WAAW,oFAAoF,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DepositCard.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/DepositCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAsB,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAM3N,KAAK,gBAAgB,GAAG;IACpB,MAAM,EAAC,aAAa,CAAC;IACrB,eAAe,EAAC,mBAAmB,CAAC;IACpC,OAAO,EAAC,YAAY,CAAC;IACrB,YAAY,CAAC,EAAE;QACX,YAAY,CAAC,EAAC,gBAAgB,CAAC;QAC/B,QAAQ,CAAC,EAAC,iBAAiB,CAAC;QAC5B,KAAK,CAAC,EAAC,UAAU,CAAC;QAClB,eAAe,CAAC,EAAC,mBAAmB,CAAC;QACrC,aAAa,CAAC,EAAC,iBAAiB,CAAA;KACnC,CAAC;IACF,aAAa,EAAC,uBAAuB,CAAC;IACtC,UAAU,EAAC,CAAC,WAAW,EAAC,cAAc,EAAE,UAAU,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IACpE,QAAQ,EAAC,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,WAAW,oFAAoF,gBAAgB,sBAiIpH,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkAccountManager.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/LinkAccountManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkAccountManager.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/LinkAccountManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,KAAK,uBAAuB,GAAG;IAC3B,sBAAsB,EAAC,YAAY,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,EAAE,CAAC,OAAO,EAAC,YAAY,KAAK,IAAI,CAAA;CAC7C,CAAA;AAED,QAAA,MAAM,kBAAkB,qDAAsD,uBAAuB,sBAiJpG,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -8,7 +8,7 @@ type WalletActionSelectorProps = {
|
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
walkthrough_steps: any[];
|
|
10
10
|
onActionSelect: (action: any, account?: AccountProps) => void;
|
|
11
|
-
onStartWalkthrough: (walkthrough: any) => void;
|
|
11
|
+
onStartWalkthrough: (walkthrough: any, account?: AccountProps) => void;
|
|
12
12
|
};
|
|
13
13
|
declare const WalletActionSelector: ({ player, walkthrough_steps, player_balance, accounts, onClose, onActionSelect, onStartWalkthrough }: WalletActionSelectorProps) => React.JSX.Element;
|
|
14
14
|
export default WalletActionSelector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletActionSelector.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/WalletActionSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,KAAK,yBAAyB,GAAE;IAC5B,MAAM,EAAC,aAAa,CAAC;IACrB,cAAc,EAAC,kBAAkB,CAAC;IAClC,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAC,GAAG,EAAE,CAAC;IACxB,cAAc,EAAC,CAAC,MAAM,EAAC,GAAG,EAAE,OAAO,CAAC,EAAC,YAAY,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAC,CAAC,WAAW,EAAC,GAAG,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"WalletActionSelector.d.ts","sourceRoot":"","sources":["../../../../../src/Wallet/components/WalletActionSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,KAAK,yBAAyB,GAAE;IAC5B,MAAM,EAAC,aAAa,CAAC;IACrB,cAAc,EAAC,kBAAkB,CAAC;IAClC,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAC,GAAG,EAAE,CAAC;IACxB,cAAc,EAAC,CAAC,MAAM,EAAC,GAAG,EAAE,OAAO,CAAC,EAAC,YAAY,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAC,CAAC,WAAW,EAAC,GAAG,EAAE,OAAO,CAAC,EAAC,YAAY,KAAK,IAAI,CAAA;CACtE,CAAA;AA8BD,QAAA,MAAM,oBAAoB,yGAA0G,yBAAyB,sBAgK5J,CAAA;AAED,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { PlayerBalanceProps } from '../ProfileManager/api/types';
|
|
2
3
|
import type { ItemOrderProps } from '../types';
|
|
4
|
+
import type { BEEventProps } from '../Observer/api/types';
|
|
3
5
|
type MyWalletProps = {
|
|
4
6
|
account_id?: string;
|
|
7
|
+
new_balance?: PlayerBalanceProps;
|
|
5
8
|
height?: number;
|
|
6
9
|
onClose: () => void;
|
|
10
|
+
onEvent: (event: BEEventProps) => void;
|
|
7
11
|
onTransact: (item_order: ItemOrderProps, account_id?: string) => void;
|
|
8
12
|
};
|
|
9
|
-
declare const MyWallet: ({ height, account_id, onTransact, onClose }: MyWalletProps) => React.JSX.Element;
|
|
13
|
+
declare const MyWallet: ({ height, new_balance, account_id, onTransact, onClose, onEvent }: MyWalletProps) => React.JSX.Element;
|
|
10
14
|
export default MyWallet;
|
|
11
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Wallet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Wallet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,KAAK,EAAiB,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAAK,EAAkC,cAAc,EAAgL,MAAM,UAAU,CAAC;AAqB7P,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,KAAK,aAAa,GAAG;IACjB,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,WAAW,CAAC,EAAC,kBAAkB,CAAC;IAChC,MAAM,CAAC,EAAC,MAAM,CAAC;IACf,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,OAAO,EAAC,CAAC,KAAK,EAAC,YAAY,KAAK,IAAI,CAAA;IACpC,UAAU,EAAE,CAAC,UAAU,EAAC,cAAc,EAAE,UAAU,CAAC,EAAC,MAAM,KAAK,IAAI,CAAA;CACtE,CAAA;AAGD,QAAA,MAAM,QAAQ,sEAAsE,aAAa,sBAohBhG,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
package/package.json
CHANGED
|
@@ -20,10 +20,12 @@ const PayPalOrderCapture = ({ draft_item_order, region, coordinates, items, payp
|
|
|
20
20
|
|
|
21
21
|
const createOrder = async() => {
|
|
22
22
|
try {
|
|
23
|
-
const draft_transaction = CheckoutHelpers.genTransactionFromItemOrder(draft_item_order, items, paypal_account?.account_id
|
|
23
|
+
const draft_transaction = CheckoutHelpers.genTransactionFromItemOrder(draft_item_order, items, paypal_account?.account_id)
|
|
24
24
|
const { transaction } = await CheckoutApi.createOrder({ ...draft_item_order, region, location: coordinates }, draft_transaction)
|
|
25
|
+
console.log(transaction)
|
|
25
26
|
return transaction.external_id as string //This should be the paypal order Id
|
|
26
27
|
} catch (e) {
|
|
28
|
+
console.log(e)
|
|
27
29
|
return ''
|
|
28
30
|
}
|
|
29
31
|
}
|
package/src/Checkout/index.tsx
CHANGED
|
@@ -58,6 +58,8 @@ const Checkout = ({ item_order, account_id, onCancel, onCompleteOrder, onRequest
|
|
|
58
58
|
|
|
59
59
|
//const isLocationRequired = CheckoutHelpers.isLocationRequired(items);
|
|
60
60
|
|
|
61
|
+
const will_redirect = selected_account?.account_type == 'ach' && selected_account?.ach_detail?.ach_type == 'ibf' ? true : false
|
|
62
|
+
|
|
61
63
|
useEffect(() => {
|
|
62
64
|
CheckoutApi.setEnvironment();
|
|
63
65
|
WalletApi.setEnvironment();
|
|
@@ -250,9 +252,9 @@ const Checkout = ({ item_order, account_id, onCancel, onCompleteOrder, onRequest
|
|
|
250
252
|
style={{ flex:3, opacity:loading || order_errors.length > 0 ? 0.5 : 1 }}
|
|
251
253
|
loading={loading || location.loading}
|
|
252
254
|
disabled={loading || order_errors.length > 0}
|
|
253
|
-
title={location.loading ?'VERIFYING LOCATION':'CONFIRM & CONTINUE'}
|
|
255
|
+
title={location.loading ?'VERIFYING LOCATION': will_redirect ? 'CONFIRM & CONTINUE' : 'SUBMIT PURCHASE'}
|
|
254
256
|
title_color={Colors.shades.white}
|
|
255
|
-
backgroundColor={Colors.brand.electric}
|
|
257
|
+
backgroundColor={ will_redirect ? Colors.brand.electric : Colors.utility.success }
|
|
256
258
|
padding={15}
|
|
257
259
|
onPress={() => handleConfirm()}
|
|
258
260
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type EventNameTypes = 'generated_link' |'incoming_user' |'identify_user' |'visibility_on' |'visibility_off'|
|
|
2
2
|
'page_hit'|'sign_up'|'game_view'|'game_join'|'game_result'|'order_create'|'order_result'|'vouch_start'|'vouch_attempt'|
|
|
3
3
|
'account_add_start'|'account_add_result'|'transaction_attempt'|'transaction_result'|'message_support'|'room_view'|'view_social'|
|
|
4
|
-
'view_market'|'interact_social'|'wallet_view'|'redeem_code'|'viewed_notification_prompt'|'notification_enabled'|'viewed_pwa_prompt'|'pwa_installed'
|
|
4
|
+
'view_market'|'interact_social'|'wallet_view'|'redeem_code'|'viewed_notification_prompt'|'notification_enabled'|'viewed_pwa_prompt'|'pwa_installed' | string
|
|
5
5
|
|
|
6
6
|
export interface BEEventProps {
|
|
7
7
|
//be_event_id?:string,
|
package/src/Wallet/api/index.ts
CHANGED
|
@@ -14,7 +14,6 @@ const WalletApi = {
|
|
|
14
14
|
const endpoints = APIOverrides.getEndpoints();
|
|
15
15
|
WALLET_SVC_API = endpoints['WALLET_SVC_API'] as string;
|
|
16
16
|
AUTH_SVC_API = endpoints['AUTH_SVC_API'] as string;
|
|
17
|
-
console.log(AUTH_SVC_API)
|
|
18
17
|
},
|
|
19
18
|
getMyDetails: async():Promise<MyPlayerProps> => {
|
|
20
19
|
const resp = await axios.get(`${AUTH_SVC_API}/v1/players/player/me`)
|
|
@@ -229,18 +228,18 @@ const ItemOrderHelpers = {
|
|
|
229
228
|
let available_for_withdraw = player_balance.balance - deposit_limit.instant_deposits;
|
|
230
229
|
switch(account.account_type){
|
|
231
230
|
case 'card':
|
|
232
|
-
let card_available = withdraw_limit.card_daily_limit - withdraw_limit.last_days_card_withdraws
|
|
231
|
+
let card_available = withdraw_limit.card_daily_limit - withdraw_limit.last_days_card_withdraws
|
|
233
232
|
if(amount > card_available){ errors.push(`This amount exceeds your daily limit for card accounts`) }
|
|
234
233
|
if(!wallet_settings.allow_cards){ errors.push(`Your account does not currently allow card withdraws`) }
|
|
235
234
|
break
|
|
236
235
|
case 'ach':
|
|
237
|
-
let ach_available = withdraw_limit.ach_daily_limit - withdraw_limit.last_days_ach_withdraws
|
|
236
|
+
let ach_available = withdraw_limit.ach_daily_limit - withdraw_limit.last_days_ach_withdraws
|
|
238
237
|
|
|
239
238
|
if(amount > ach_available){ errors.push('This amount exceeds your daily limit for ach accounts') }
|
|
240
239
|
if(account?.ach_detail?.ach_type=='manual' && !wallet_settings.allow_manual_ach){ errors.push(`Your account does not currently allow manual ACH withdraws`) }
|
|
241
240
|
break
|
|
242
241
|
case 'paypal':
|
|
243
|
-
let pp_available = withdraw_limit.card_daily_limit - withdraw_limit.last_days_card_withdraws
|
|
242
|
+
let pp_available = withdraw_limit.card_daily_limit - withdraw_limit.last_days_card_withdraws
|
|
244
243
|
|
|
245
244
|
if(amount > pp_available){ errors.push(`This amount exceeds your daily limit for paypal`) }
|
|
246
245
|
if(!wallet_settings.allow_paypal){ errors.push(`Your account does not currently allow paypal withdraws`)}
|
|
@@ -335,15 +334,16 @@ const WalletHelpers = {
|
|
|
335
334
|
let steps = [
|
|
336
335
|
{ priority: 1, step: 'welcome', label: 'Setup Wallet Security', complete: false },
|
|
337
336
|
{ priority: 2, step: 'my_balance', label: 'Understand My Balances', complete:true },
|
|
338
|
-
{ priority: 3, step: '
|
|
339
|
-
{ priority: 4, step: 'deposit', label: 'Make Your First Deposit', complete: false }
|
|
337
|
+
{ priority: 3, step: 'fund_account', label: 'Select a method to fund your account', complete:true },
|
|
338
|
+
{ priority: 4, step: 'deposit', label: 'Make Your First Deposit', complete: false },
|
|
339
|
+
{ priority: 5, step: 'withdraw', label: 'Get Setup For Withdrawals', complete:false }
|
|
340
340
|
]
|
|
341
341
|
steps = steps.map(s => {
|
|
342
342
|
switch(s.step){
|
|
343
343
|
case 'welcome':
|
|
344
344
|
if(wallet_settings.agreed_to_terms && wallet_settings.pin){ return { ...s, complete: true } }
|
|
345
345
|
return s
|
|
346
|
-
case '
|
|
346
|
+
case 'withdraw':
|
|
347
347
|
let added_ach_account = accounts.find(a => a.account_type == 'ach' && !a.ibt_placeholder)
|
|
348
348
|
if(added_ach_account){ return { ...s, complete:true } }
|
|
349
349
|
return s
|
|
@@ -65,6 +65,7 @@ const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:Accoun
|
|
|
65
65
|
<Text size={14} color={Colors.brand.midnight} weight='bold'>Manually add an account</Text>
|
|
66
66
|
<Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular'>Verify the account in 1-3 business days and start transacting.</Text>
|
|
67
67
|
</View>
|
|
68
|
+
|
|
68
69
|
</View>
|
|
69
70
|
{!manual_account ?
|
|
70
71
|
<TouchableOpacity style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30, backgroundColor:Colors.brand.midnight }}
|
|
@@ -77,8 +78,13 @@ const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:Accoun
|
|
|
77
78
|
</View>
|
|
78
79
|
</TouchableOpacity>
|
|
79
80
|
:
|
|
80
|
-
<View style={{ position:'absolute', top:5, right:5, bottom:0}}>
|
|
81
|
+
<View style={{ position:'absolute', top:5, right:5, bottom:0, alignItems:'flex-end'}}>
|
|
81
82
|
<Icons.TransactionSuccessIcon size={45}/>
|
|
83
|
+
{manual_account?.status == 'verify' ?
|
|
84
|
+
<View style={{ marginTop:-10, marginRight:20, padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight200 }}>
|
|
85
|
+
<Text size={14} color={Colors.brand.midnight}>Manual ACH account is pending verification</Text>
|
|
86
|
+
</View>
|
|
87
|
+
:<></>}
|
|
82
88
|
</View>
|
|
83
89
|
}
|
|
84
90
|
</View>
|
|
@@ -60,8 +60,9 @@ const AccountManager = ({ accounts, onSelectAccount, onSelectManualACH, onSelec
|
|
|
60
60
|
resizeMode='cover'
|
|
61
61
|
/>
|
|
62
62
|
</View>
|
|
63
|
-
<View style={{ flex:1 }}>
|
|
64
|
-
<Text size={
|
|
63
|
+
<View style={{ flex:1, marginLeft:5 }}>
|
|
64
|
+
<Text size={10} color={Colors.utility.success} weight='bold'>RECOMMENDED</Text>
|
|
65
|
+
<Text size={14} color={Colors.brand.cobalt} textAlign='left' weight='bold'>INSTANT BANK TRANSFER</Text>
|
|
65
66
|
</View>
|
|
66
67
|
</TouchableOpacity>
|
|
67
68
|
<TouchableOpacity style={{ marginTop:10, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30, backgroundColor:Colors.brand.midnight }}
|
|
@@ -54,6 +54,8 @@ const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, on
|
|
|
54
54
|
)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
let order_amount = parseFloat(draft_order.amount as string);
|
|
58
|
+
|
|
57
59
|
return (
|
|
58
60
|
<View style={{ flex:1 }}>
|
|
59
61
|
<View style={{ padding:20 }}>
|
|
@@ -62,6 +64,7 @@ const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, on
|
|
|
62
64
|
</View>
|
|
63
65
|
<View style={{ flex:1 }}>
|
|
64
66
|
<View nativeID='deposit_amount' style={{ justifyContent:'center', alignItems:'center', padding:20 }}>
|
|
67
|
+
<Text style={{ marginBottom:5 }} size={14} color={Colors.brand.midnight} weight='regular'>Minumum $25 / Maximum ${ItemOrderHelpers.getDepositAvailable(deposit_limit, account).toFixed(2)}</Text>
|
|
65
68
|
<TextInput
|
|
66
69
|
style={{ flex:1 }}
|
|
67
70
|
placeholder='25'
|
|
@@ -69,14 +72,34 @@ const DepositCard = ({ wallet_settings, code_details, account, deposit_limit, on
|
|
|
69
72
|
value={draft_order.amount as string}
|
|
70
73
|
onChangeText={(text) => setDraftOrder({ ...draft_order, amount:text })}
|
|
71
74
|
/>
|
|
72
|
-
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular'
|
|
75
|
+
<Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} weight='regular' textAlign='center'>*All deposits are held for {deposit_limit.hold_days} days before they are eligible for withdraw</Text>
|
|
76
|
+
|
|
73
77
|
</View>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
{errors.length == 0 && order_amount > deposit_limit.instant_available ?
|
|
79
|
+
<View nativeID='instant_available' style={{ backgroundColor:Colors.shades.shade100, padding:5, borderRadius:8, margin:10 }}>
|
|
80
|
+
<View style={{ padding:10, borderBottomWidth:1, borderColor:Colors.highlights.highlight200Faded }}>
|
|
81
|
+
<View style={{flexDirection:'row', marginBottom:5 }}>
|
|
82
|
+
<Icons.AlertIcon color={Colors.utility.warning} size={16}/>
|
|
83
|
+
<Text style={{ marginLeft:10 }} size={14} color={Colors.utility.warning} weight='bold'>INSTANT DEPOSIT NOTICE</Text>
|
|
84
|
+
</View>
|
|
85
|
+
<Text size={14} color={Colors.brand.midnight} weight='regular'>Transactions take time to leave your account and settle in ours. In order to get you started before they arrive, we allow for some to be instantly available. The remainder is available after settlement.</Text>
|
|
86
|
+
</View>
|
|
87
|
+
<View style={{ padding:5 }}>
|
|
88
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
|
|
89
|
+
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight}>Available Instantly</Text>
|
|
90
|
+
<Text size={14} color={Colors.brand.midnight} weight='bold'>${deposit_limit.instant_available.toFixed(2)}</Text>
|
|
91
|
+
</View>
|
|
92
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
|
|
93
|
+
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight}>Available after settlement ({deposit_limit.hold_days} days)</Text>
|
|
94
|
+
<Text size={14} color={Colors.brand.midnight}>${(order_amount - deposit_limit.instant_available).toFixed(2)}</Text>
|
|
95
|
+
</View>
|
|
96
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
|
|
97
|
+
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight}>Total Deposit</Text>
|
|
98
|
+
<Text size={14} color={Colors.brand.midnight} weight='bold'>${order_amount.toFixed(2)}</Text>
|
|
99
|
+
</View>
|
|
100
|
+
</View>
|
|
79
101
|
</View>
|
|
102
|
+
:<></>}
|
|
80
103
|
{errors.length > 0 ?
|
|
81
104
|
<View style={{ position:'absolute', bottom:0, left:0, right:0, margin:20, borderRadius:8, padding:20, backgroundColor:Colors.shades.white, ...view_styles.float }}>
|
|
82
105
|
<Text style={{ marginBottom:10 }} size={14} color={Colors.brand.midnight}>Please fix the following before continuing</Text>
|
|
@@ -4,6 +4,7 @@ import { Button, Icons, Text } from '../../Components';
|
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { WalletApi } from '../api';
|
|
6
6
|
import type { AccountProps } from '../../types';
|
|
7
|
+
import SpringView from '../../Components/Spring';
|
|
7
8
|
|
|
8
9
|
type LinkAccountManagerProps = {
|
|
9
10
|
ibt_placeholer_account:AccountProps,
|
|
@@ -80,7 +81,7 @@ const LinkAccountManager = ({ ibt_placeholer_account, onCancel, onComplete }: Li
|
|
|
80
81
|
{!account || account.status == 'redirect' ?
|
|
81
82
|
<View nativeID='link_actions' style={{ flexDirection:'row', padding:20 }}>
|
|
82
83
|
<Button
|
|
83
|
-
title='
|
|
84
|
+
title='CANCEL'
|
|
84
85
|
style={{ flex:1, marginRight:5 }}
|
|
85
86
|
title_color={Colors.brand.electric}
|
|
86
87
|
borderWidth={1}
|
|
@@ -112,6 +113,48 @@ const LinkAccountManager = ({ ibt_placeholer_account, onCancel, onComplete }: Li
|
|
|
112
113
|
}
|
|
113
114
|
</View>
|
|
114
115
|
:<></>}
|
|
116
|
+
{account && account.status != 'redirect' ?
|
|
117
|
+
<View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, backgroundColor:Colors.shades.black_faded, justifyContent:'flex-end' }}>
|
|
118
|
+
<SpringView
|
|
119
|
+
slide='vertical'
|
|
120
|
+
from={500}
|
|
121
|
+
to={0}
|
|
122
|
+
style={{ borderTopRightRadius:40, borderTopLeftRadius:40, backgroundColor:Colors.shades.white }}>
|
|
123
|
+
{account.status == 'active' ?
|
|
124
|
+
<View style={{ flex:1, padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
125
|
+
<Icons.TransactionSuccessIcon size={150} />
|
|
126
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.utility.success, marginTop:20 }}>
|
|
127
|
+
<Text size={20} color={Colors.utility.success} weight='bold' textAlign='center'>Account Linked Successfully</Text>
|
|
128
|
+
<Text style={{ marginTop:10 }} size={16} color={Colors.brand.cobalt} weight='regular' textAlign='center'>Your account has successfully been added. Please select close below to continue.</Text>
|
|
129
|
+
</View>
|
|
130
|
+
</View>
|
|
131
|
+
:
|
|
132
|
+
<View style={{ flex:1, padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
133
|
+
<Icons.TransactionErrorIcon size={150} />
|
|
134
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.utility.error, marginTop:20 }}>
|
|
135
|
+
<Text size={20} color={Colors.utility.error} weight='bold' textAlign='center'>Failed to Link Account</Text>
|
|
136
|
+
<Text style={{ marginTop:10 }} size={16} color={Colors.brand.cobalt} weight='regular' textAlign='center'>Sorry, we were unable to link your account at this time. Please try again or reach out to support for help.</Text>
|
|
137
|
+
</View>
|
|
138
|
+
</View>
|
|
139
|
+
}
|
|
140
|
+
<View nativeID='action_row' style={{ flexDirection:'row', padding:20 }}>
|
|
141
|
+
<Button
|
|
142
|
+
style={{ flex:1, opacity:1 }}
|
|
143
|
+
title='CLOSE'
|
|
144
|
+
//disabled={loading}
|
|
145
|
+
title_color={Colors.utility.error}
|
|
146
|
+
borderWidth={1}
|
|
147
|
+
borderColor={Colors.utility.error}
|
|
148
|
+
padding={15}
|
|
149
|
+
onPress={() => {
|
|
150
|
+
if(account.status == 'active'){ return onComplete(account) }
|
|
151
|
+
return onCancel()
|
|
152
|
+
}}
|
|
153
|
+
/>
|
|
154
|
+
</View>
|
|
155
|
+
</SpringView>
|
|
156
|
+
</View>
|
|
157
|
+
:<></>}
|
|
115
158
|
</View>
|
|
116
159
|
)
|
|
117
160
|
}
|
|
@@ -14,7 +14,7 @@ type WalletActionSelectorProps ={
|
|
|
14
14
|
onClose: () => void,
|
|
15
15
|
walkthrough_steps:any[],
|
|
16
16
|
onActionSelect:(action:any, account?:AccountProps) => void,
|
|
17
|
-
onStartWalkthrough:(walkthrough:any) => void
|
|
17
|
+
onStartWalkthrough:(walkthrough:any, account?:AccountProps) => void
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const sections = [
|
|
@@ -56,8 +56,8 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
56
56
|
if(!default_account){ default_account = accounts.find(a => a.account_type == 'paypal')}
|
|
57
57
|
return onActionSelect(action, default_account)
|
|
58
58
|
case 'withdraw':
|
|
59
|
-
let withdraw_account = accounts.find(a => !a.ibt_placeholder && a.account_type == 'ach')
|
|
60
|
-
if(!withdraw_account){ return onActionSelect({ action: '
|
|
59
|
+
let withdraw_account = accounts.find(a => !a.ibt_placeholder && a.account_type == 'ach' && a.status == 'active')
|
|
60
|
+
if(!withdraw_account){ return onActionSelect({ action: 'ach_add' }) }
|
|
61
61
|
return onActionSelect(action, withdraw_account)
|
|
62
62
|
default: onActionSelect(action)
|
|
63
63
|
}
|
|
@@ -99,11 +99,25 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
99
99
|
)
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
const handleStepSelect = (step:any, index:number) => {
|
|
103
|
+
console.log(step)
|
|
104
|
+
switch(step.step){
|
|
105
|
+
case 'deposit':
|
|
106
|
+
let default_account = accounts.find(a => a.default_account)
|
|
107
|
+
if(!default_account){ default_account = accounts.find(a => a.account_type == 'paypal') }
|
|
108
|
+
if(!default_account){ return }
|
|
109
|
+
return onStartWalkthrough({ enabled:true, steps: walkthrough_steps, active_step: step.step, next_step: walkthrough_steps[index + 1]?.step}, default_account)
|
|
110
|
+
default:
|
|
111
|
+
return onStartWalkthrough({ enabled:true, steps: walkthrough_steps, active_step: step.step, next_step: walkthrough_steps[index + 1]?.step})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
|
115
|
+
|
|
102
116
|
const renderSteps = (data: { item:any, index:number }) => {
|
|
103
117
|
return (
|
|
104
118
|
<TouchableOpacity
|
|
105
119
|
style={{ margin:5, padding:10, flexDirection:'row', alignItems:'center', borderWidth:1, borderColor:Colors.shades.shade600, borderRadius:8 }}
|
|
106
|
-
onPress={() =>
|
|
120
|
+
onPress={() => handleStepSelect(data.item, data.index)}>
|
|
107
121
|
<Icons.CheckCirlceIcon size={14} color={data.item.complete?Colors.utility.success:Colors.brand.slate}/>
|
|
108
122
|
<Text style={{ flex:1, marginLeft:10 }} size={14} color={Colors.brand.midnight}>{data.item.label}</Text>
|
|
109
123
|
<Icons.ChevronIcon direction='right' size={8} color={Colors.brand.midnight} />
|
|
@@ -170,7 +170,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
170
170
|
</View>
|
|
171
171
|
</View>
|
|
172
172
|
}
|
|
173
|
-
<View style={{ flexDirection:'row', padding:
|
|
173
|
+
<View style={{ flexDirection:'row', padding:20 }}>
|
|
174
174
|
{!wallet_settings.agreed_to_terms && onClose ?
|
|
175
175
|
<View style={{ flex:1, flexDirection:'row' }}>
|
|
176
176
|
<Button
|
|
@@ -50,7 +50,7 @@ const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, wi
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
let balance = Math.floor(player_balance.balance * 100) / 100
|
|
53
|
-
|
|
53
|
+
let limit_available = withdraw_limit.ach_daily_limit - withdraw_limit.last_days_ach_withdraws
|
|
54
54
|
return (
|
|
55
55
|
<View style={{ flex:1 }}>
|
|
56
56
|
<View nativeID='deposit_rules' style={{ padding:10 }}>
|
|
@@ -73,7 +73,7 @@ const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, wi
|
|
|
73
73
|
</View>
|
|
74
74
|
<View style={{ flexDirection:'row', alignItems:'center', padding:10, paddingTop:0 }}>
|
|
75
75
|
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight} weight='semibold'>Available For Withdraw</Text>
|
|
76
|
-
<Text size={14} color={Colors.brand.midnight} weight='bold'>{available_for_withdraw.toFixed(2)}</Text>
|
|
76
|
+
<Text size={14} color={Colors.brand.midnight} weight='bold'>{Math.min(available_for_withdraw, limit_available).toFixed(2)}</Text>
|
|
77
77
|
</View>
|
|
78
78
|
<View style={{ marginTop:5, borderRadius:8, padding:10, backgroundColor:Colors.shades.shade600 }}>
|
|
79
79
|
<Text size={14} color={Colors.brand.midnight} textAlign='left' weight='semibold'>Determined by the LESSER OF</Text>
|
|
@@ -103,7 +103,7 @@ const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, wi
|
|
|
103
103
|
</View>
|
|
104
104
|
<View style={{ padding:5, flexDirection:'row', alignItems:'center' , borderTopWidth:1, borderTopColor:Colors.shades.shade600 }}>
|
|
105
105
|
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight} weight='bold'>Limit Available</Text>
|
|
106
|
-
<Text size={14} color={Colors.brand.midnight} weight='bold'>${(
|
|
106
|
+
<Text size={14} color={Colors.brand.midnight} weight='bold'>${(limit_available).toFixed(2)}</Text>
|
|
107
107
|
</View>
|
|
108
108
|
</View>
|
|
109
109
|
</View>
|