tg-core-components 6.1.16-vega-integration.2 → 6.1.17
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/es/components/Money/index.js +24 -2
- package/es/misc/countryEmojiFlags.js +0 -5
- package/es/widgets/AccountDetail/index.js +8 -0
- package/es/widgets/ActivateWidget/index.js +1 -1
- package/es/widgets/BonusWidget/index.js +8 -7
- package/es/widgets/Cashier/Deposit/PaymentForm/index.js +2 -5
- package/es/widgets/Cashier/Payment/PaymentAccountForms/index.js +10 -41
- package/es/widgets/Cashier/Payment/PaymentAccountParser.js +0 -6
- package/es/widgets/CashierAccordion/Deposit/DepositWidget/index.js +5 -5
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +62 -168
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -12
- package/es/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +3 -2
- package/es/widgets/HistoryWidget/index.js +84 -20
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +3 -5
- package/es/widgets/VerifyAccordionWidget/index.js +1 -1
- package/lib/components/Money/index.js +25 -2
- package/lib/misc/countryEmojiFlags.js +0 -5
- package/lib/widgets/AccountDetail/index.js +8 -0
- package/lib/widgets/ActivateWidget/index.js +1 -1
- package/lib/widgets/BonusWidget/index.js +8 -8
- package/lib/widgets/Cashier/Deposit/PaymentForm/index.js +2 -5
- package/lib/widgets/Cashier/Payment/PaymentAccountForms/index.js +11 -42
- package/lib/widgets/Cashier/Payment/PaymentAccountParser.js +0 -6
- package/lib/widgets/CashierAccordion/Deposit/DepositWidget/index.js +5 -5
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +63 -169
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -12
- package/lib/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +3 -2
- package/lib/widgets/HistoryWidget/index.js +87 -24
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +3 -5
- package/lib/widgets/VerifyAccordionWidget/index.js +3 -3
- package/package.json +2 -2
- package/es/lib/utils/selectUnit.js +0 -64
- package/es/widgets/BonusWidget/types.js +0 -23
- package/lib/lib/utils/selectUnit.js +0 -69
- package/lib/widgets/BonusWidget/types.js +0 -37
|
@@ -4,13 +4,25 @@ import React from 'react';
|
|
|
4
4
|
import { FormattedNumber } from 'react-intl';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* For crypto we want more decimals.
|
|
9
|
+
*/
|
|
10
|
+
var fractionDigits = {
|
|
11
|
+
BTC: { min: 5, max: 5 },
|
|
12
|
+
LTC: { min: 5, max: 5 },
|
|
13
|
+
XBC: { min: 5, max: 5 },
|
|
14
|
+
XRP: { min: 5, max: 5 },
|
|
15
|
+
ETH: { min: 5, max: 5 },
|
|
16
|
+
BCH: { min: 5, max: 5 }
|
|
17
|
+
};
|
|
18
|
+
|
|
7
19
|
/**
|
|
8
20
|
* FormattedNumber component to display currency
|
|
9
21
|
*/
|
|
10
22
|
var Money = function Money(props) {
|
|
11
23
|
return React.createElement(FormattedNumber, _extends({
|
|
12
|
-
minimumFractionDigits: props.decimals ? 2 : 0,
|
|
13
|
-
maximumFractionDigits: props.decimals ? 2 : 0
|
|
24
|
+
minimumFractionDigits: props.decimals && fractionDigits[props.currency] ? fractionDigits[props.currency].min || 2 : 0,
|
|
25
|
+
maximumFractionDigits: props.decimals && fractionDigits[props.currency] ? fractionDigits[props.currency].max || 2 : 0
|
|
14
26
|
}, props, {
|
|
15
27
|
style: 'currency'
|
|
16
28
|
}));
|
|
@@ -34,4 +46,14 @@ Money.defaultProps = {
|
|
|
34
46
|
decimals: true
|
|
35
47
|
};
|
|
36
48
|
|
|
49
|
+
export var format = function format(currency) {
|
|
50
|
+
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';
|
|
51
|
+
return new Intl.NumberFormat(locale, {
|
|
52
|
+
style: 'currency',
|
|
53
|
+
currency: currency,
|
|
54
|
+
minimumFractionDigits: fractionDigits[currency] ? fractionDigits[currency].min : null,
|
|
55
|
+
maximumFractionDigits: fractionDigits[currency] ? fractionDigits[currency].max : null
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
|
|
37
59
|
export default Money;
|
|
@@ -9,7 +9,6 @@ export default {
|
|
|
9
9
|
AG: '🇦🇬',
|
|
10
10
|
AU: '🇦🇺',
|
|
11
11
|
AT: '🇦🇹',
|
|
12
|
-
AW: '🇦🇼',
|
|
13
12
|
AZ: '🇦🇿',
|
|
14
13
|
BI: '🇧🇮',
|
|
15
14
|
BE: '🇧🇪',
|
|
@@ -25,7 +24,6 @@ export default {
|
|
|
25
24
|
BO: '🇧🇴',
|
|
26
25
|
BR: '🇧🇷',
|
|
27
26
|
BB: '🇧🇧',
|
|
28
|
-
BM: '🇧🇲',
|
|
29
27
|
BN: '🇧🇳',
|
|
30
28
|
BT: '🇧🇹',
|
|
31
29
|
BW: '🇧🇼',
|
|
@@ -35,7 +33,6 @@ export default {
|
|
|
35
33
|
CL: '🇨🇱',
|
|
36
34
|
CN: '🇨🇳',
|
|
37
35
|
CI: '🇨🇮',
|
|
38
|
-
CK: '🇨🇰',
|
|
39
36
|
CM: '🇨🇲',
|
|
40
37
|
CD: '🇨🇩',
|
|
41
38
|
CG: '🇨🇬',
|
|
@@ -170,7 +167,6 @@ export default {
|
|
|
170
167
|
SZ: '🇸🇿',
|
|
171
168
|
SC: '🇸🇨',
|
|
172
169
|
SY: '🇸🇾',
|
|
173
|
-
TC: '🇹🇨',
|
|
174
170
|
TD: '🇹🇩',
|
|
175
171
|
TG: '🇹🇬',
|
|
176
172
|
TH: '🇹🇭',
|
|
@@ -182,7 +178,6 @@ export default {
|
|
|
182
178
|
TN: '🇹🇳',
|
|
183
179
|
TR: '🇹🇷',
|
|
184
180
|
TV: '🇹🇻',
|
|
185
|
-
TW: '🇹🇼',
|
|
186
181
|
TZ: '🇹🇿',
|
|
187
182
|
UG: '🇺🇬',
|
|
188
183
|
UA: '🇺🇦',
|
|
@@ -148,6 +148,14 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
148
148
|
id: 'title.mobile_number',
|
|
149
149
|
defaultMessage: 'Mobile number'
|
|
150
150
|
}, intl),
|
|
151
|
+
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
152
|
+
return Number(a.callingCode) - Number(b.callingCode);
|
|
153
|
+
}).map(function (i) {
|
|
154
|
+
return {
|
|
155
|
+
value: '00' + i.callingCode,
|
|
156
|
+
label: '+' + i.callingCode + ' ' + (countryEmojiFlags[i.value] || '')
|
|
157
|
+
};
|
|
158
|
+
}) : [],
|
|
151
159
|
name: 'MobilePhoneNumber',
|
|
152
160
|
autoComplete: 'off',
|
|
153
161
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -54,7 +54,7 @@ var ActivationCode = function ActivationCode(_ref) {
|
|
|
54
54
|
}, [autoFocus, code]);
|
|
55
55
|
|
|
56
56
|
useEffect(function () {
|
|
57
|
-
inputRef.current.value = code;
|
|
57
|
+
return inputRef.current.value = code;
|
|
58
58
|
}, [code]);
|
|
59
59
|
|
|
60
60
|
var setCaretPosition = function setCaretPosition(from, to) {
|
|
@@ -8,7 +8,6 @@ import BonusCode from './BonusCode';
|
|
|
8
8
|
import { List } from 'tg-core-components';
|
|
9
9
|
import Translate from '../../components/Translate';
|
|
10
10
|
import { getBonusState } from './states';
|
|
11
|
-
import { getBonusType } from './types';
|
|
12
11
|
import marked from 'marked';
|
|
13
12
|
|
|
14
13
|
var ALEACC_BONUS_CLAIM_STATE = ['Initiated', 'PreClaimed'];
|
|
@@ -158,11 +157,10 @@ var BonusWidget = function BonusWidget(_ref3) {
|
|
|
158
157
|
var info = [[React.createElement(
|
|
159
158
|
'div',
|
|
160
159
|
null,
|
|
161
|
-
React.createElement(
|
|
162
|
-
'
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
)
|
|
160
|
+
React.createElement(Translate, {
|
|
161
|
+
id: 'label.description.bonus.' + item.Identifier.toLowerCase(),
|
|
162
|
+
defaultMessage: item.Name || item.Description
|
|
163
|
+
})
|
|
166
164
|
), React.createElement(
|
|
167
165
|
'div',
|
|
168
166
|
null,
|
|
@@ -175,7 +173,10 @@ var BonusWidget = function BonusWidget(_ref3) {
|
|
|
175
173
|
style: item.Type.toLowerCase() == 'freespins' ? 'decimal' : 'currency',
|
|
176
174
|
currency: item.Currency
|
|
177
175
|
})
|
|
178
|
-
),
|
|
176
|
+
), React.createElement(Translate, {
|
|
177
|
+
id: 'label.type.bonus.' + item.Type.toLowerCase(),
|
|
178
|
+
defaultMessage: item.Type.toLowerCase()
|
|
179
|
+
})]];
|
|
179
180
|
|
|
180
181
|
// Add bonus actions to not expired Fasttrack bonuses
|
|
181
182
|
if (item.Provider === 'fasttrack' && item.State !== 'Expired') info.push(React.createElement(BonusActionFT, { bonus: item, onClaimBonus: onClaimBonus }));
|
|
@@ -94,6 +94,7 @@ var PaymentForm = function (_Component) {
|
|
|
94
94
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref3 = PaymentForm.__proto__ || Object.getPrototypeOf(PaymentForm)).call.apply(_ref3, [this].concat(args))), _this), _this.onMessage = function (message) {
|
|
95
95
|
var operatingSystem = _this.props.operatingSystem;
|
|
96
96
|
|
|
97
|
+
console.log({ message: message });
|
|
97
98
|
var data = JSON.parse(message.data);
|
|
98
99
|
|
|
99
100
|
if (data.method === 'OPEN_APP') {
|
|
@@ -133,11 +134,7 @@ var PaymentForm = function (_Component) {
|
|
|
133
134
|
|
|
134
135
|
if (data.redirectOutput == null) {
|
|
135
136
|
if (onSuccess) {
|
|
136
|
-
onSuccess(
|
|
137
|
-
amount: data.amount,
|
|
138
|
-
currency: data.currency,
|
|
139
|
-
tx: Number(data.transactionId)
|
|
140
|
-
});
|
|
137
|
+
onSuccess();
|
|
141
138
|
return null;
|
|
142
139
|
}
|
|
143
140
|
|
|
@@ -130,27 +130,6 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
130
130
|
);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
var Vega = function Vega(_ref4) {
|
|
134
|
-
var account = _ref4.account,
|
|
135
|
-
intl = _ref4.intl;
|
|
136
|
-
|
|
137
|
-
return React.createElement(
|
|
138
|
-
'div',
|
|
139
|
-
{ className: 'payment-account-info' },
|
|
140
|
-
React.createElement(Input, {
|
|
141
|
-
disabled: account.accountId,
|
|
142
|
-
name: 'username',
|
|
143
|
-
value: account.maskedAccount,
|
|
144
|
-
label: translate({ id: 'cashier.details.username' }, intl)
|
|
145
|
-
}),
|
|
146
|
-
React.createElement(Input, {
|
|
147
|
-
type: 'password',
|
|
148
|
-
name: 'password',
|
|
149
|
-
label: translate({ id: 'cashier.details.password' }, intl)
|
|
150
|
-
})
|
|
151
|
-
);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
133
|
var PPro = function PPro() {
|
|
155
134
|
return React.createElement(
|
|
156
135
|
'div',
|
|
@@ -159,9 +138,9 @@ var PPro = function PPro() {
|
|
|
159
138
|
);
|
|
160
139
|
};
|
|
161
140
|
|
|
162
|
-
var PhoneNumber = function PhoneNumber(
|
|
163
|
-
var account =
|
|
164
|
-
intl =
|
|
141
|
+
var PhoneNumber = function PhoneNumber(_ref4) {
|
|
142
|
+
var account = _ref4.account,
|
|
143
|
+
intl = _ref4.intl;
|
|
165
144
|
|
|
166
145
|
return React.createElement(
|
|
167
146
|
'div',
|
|
@@ -174,9 +153,9 @@ var PhoneNumber = function PhoneNumber(_ref5) {
|
|
|
174
153
|
);
|
|
175
154
|
};
|
|
176
155
|
|
|
177
|
-
var Email = function Email(
|
|
178
|
-
var account =
|
|
179
|
-
intl =
|
|
156
|
+
var Email = function Email(_ref5) {
|
|
157
|
+
var account = _ref5.account,
|
|
158
|
+
intl = _ref5.intl;
|
|
180
159
|
|
|
181
160
|
return React.createElement(
|
|
182
161
|
'div',
|
|
@@ -190,9 +169,9 @@ var Email = function Email(_ref6) {
|
|
|
190
169
|
);
|
|
191
170
|
};
|
|
192
171
|
|
|
193
|
-
var Banklocal = function Banklocal(
|
|
194
|
-
var account =
|
|
195
|
-
intl =
|
|
172
|
+
var Banklocal = function Banklocal(_ref6) {
|
|
173
|
+
var account = _ref6.account,
|
|
174
|
+
intl = _ref6.intl;
|
|
196
175
|
|
|
197
176
|
return React.createElement(
|
|
198
177
|
'div',
|
|
@@ -206,7 +185,7 @@ var Banklocal = function Banklocal(_ref7) {
|
|
|
206
185
|
React.createElement(Input, {
|
|
207
186
|
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : undefined,
|
|
208
187
|
name: 'accountNumber',
|
|
209
|
-
title: translate({ id: 'cashier.details.
|
|
188
|
+
title: translate({ id: 'cashier.details.accountNumber' }, intl),
|
|
210
189
|
disabled: account.accountId
|
|
211
190
|
})
|
|
212
191
|
);
|
|
@@ -232,11 +211,6 @@ export var VenusPointDeposit = {
|
|
|
232
211
|
parser: Parser.parseVenusPoint
|
|
233
212
|
};
|
|
234
213
|
|
|
235
|
-
export var VegaDeposit = {
|
|
236
|
-
component: injectMethod('deposit', injectIntl(Vega)),
|
|
237
|
-
parser: Parser.parseVega
|
|
238
|
-
};
|
|
239
|
-
|
|
240
214
|
export var SiruDeposit = {
|
|
241
215
|
component: injectIntl(PhoneNumber),
|
|
242
216
|
parser: Parser.parsePhoneNumber
|
|
@@ -288,11 +262,6 @@ export var VenusPointWithdrawal = {
|
|
|
288
262
|
parser: Parser.parseVenusPoint
|
|
289
263
|
};
|
|
290
264
|
|
|
291
|
-
export var VegaWithdrawal = {
|
|
292
|
-
component: injectMethod('withdraw', injectIntl(Vega)),
|
|
293
|
-
parser: Parser.parseVega
|
|
294
|
-
};
|
|
295
|
-
|
|
296
265
|
export var NetellerWithdrawal = {
|
|
297
266
|
component: injectMethod('withdraw', injectIntl(Neteller)),
|
|
298
267
|
parser: Parser.parseNeteller
|
|
@@ -37,12 +37,6 @@ export var parseVenusPoint = function parseVenusPoint(account) {
|
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export var parseVega = function parseVega(account) {
|
|
41
|
-
return {
|
|
42
|
-
account: account.maskedAccount || account.account
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
|
|
46
40
|
export var parsePhoneNumber = function parsePhoneNumber(account) {
|
|
47
41
|
return {
|
|
48
42
|
phoneNumber: account.phoneNumber || account.maskedAccount
|
|
@@ -108,8 +108,8 @@ var DepositWidget = function (_Component) {
|
|
|
108
108
|
providerType: selectedMethod.providerType,
|
|
109
109
|
lastDepositAmount: paymentStats.LastDepositAmount,
|
|
110
110
|
remainingDepositLimit: remainingDepositLimit,
|
|
111
|
-
methodMin:
|
|
112
|
-
methodMax:
|
|
111
|
+
methodMin: selectedMethod.limit.min,
|
|
112
|
+
methodMax: selectedMethod.limit.max,
|
|
113
113
|
customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
|
|
114
114
|
cancelWithdrawalAmount: selectedMethod.amount,
|
|
115
115
|
spainRemainingDepositAmount: _this.getSpainRemainingDepositAmount()
|
|
@@ -262,7 +262,7 @@ var DepositWidget = function (_Component) {
|
|
|
262
262
|
return errors;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
if (amount < parseFloat(
|
|
265
|
+
if (amount < parseFloat(selectedMethod.limit.min) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
|
|
266
266
|
errors.amount.push(React.createElement(Translate, {
|
|
267
267
|
id: 'error.cashier.amount-below-method-limit',
|
|
268
268
|
defaultMessage: 'Amount is too low.'
|
|
@@ -666,8 +666,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
666
666
|
providerType: method.providerType,
|
|
667
667
|
lastDepositAmount: paymentStats.LastDepositAmount,
|
|
668
668
|
remainingDepositLimit: remainingDepositLimit,
|
|
669
|
-
methodMin:
|
|
670
|
-
methodMax:
|
|
669
|
+
methodMin: method.limit.min,
|
|
670
|
+
methodMax: method.limit.max,
|
|
671
671
|
customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
|
|
672
672
|
cancelWithdrawalAmount: method.amount,
|
|
673
673
|
spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
|
|
@@ -186,34 +186,6 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
186
186
|
);
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
var Vega = function Vega(_ref4) {
|
|
190
|
-
var account = _ref4.account,
|
|
191
|
-
intl = _ref4.intl,
|
|
192
|
-
change = _ref4.change;
|
|
193
|
-
|
|
194
|
-
return React.createElement(
|
|
195
|
-
'div',
|
|
196
|
-
null,
|
|
197
|
-
React.createElement(Input, {
|
|
198
|
-
disabled: account.accountId,
|
|
199
|
-
name: 'username',
|
|
200
|
-
onChange: function onChange(e, username) {
|
|
201
|
-
return change('username', username);
|
|
202
|
-
},
|
|
203
|
-
value: account.maskedAccount,
|
|
204
|
-
label: translate({ id: 'cashier.details.username' }, intl)
|
|
205
|
-
}),
|
|
206
|
-
React.createElement(Input, {
|
|
207
|
-
type: 'password',
|
|
208
|
-
name: 'password',
|
|
209
|
-
onChange: function onChange(e, password) {
|
|
210
|
-
return change('password', password);
|
|
211
|
-
},
|
|
212
|
-
label: translate({ id: 'cashier.details.password' }, intl)
|
|
213
|
-
})
|
|
214
|
-
);
|
|
215
|
-
};
|
|
216
|
-
|
|
217
189
|
var PPro = function PPro() {
|
|
218
190
|
return React.createElement(
|
|
219
191
|
'div',
|
|
@@ -222,11 +194,11 @@ var PPro = function PPro() {
|
|
|
222
194
|
);
|
|
223
195
|
};
|
|
224
196
|
|
|
225
|
-
var PhoneNumber = function PhoneNumber(
|
|
226
|
-
var account =
|
|
227
|
-
intl =
|
|
228
|
-
change =
|
|
229
|
-
values =
|
|
197
|
+
var PhoneNumber = function PhoneNumber(_ref4) {
|
|
198
|
+
var account = _ref4.account,
|
|
199
|
+
intl = _ref4.intl,
|
|
200
|
+
change = _ref4.change,
|
|
201
|
+
values = _ref4.values;
|
|
230
202
|
|
|
231
203
|
return React.createElement(
|
|
232
204
|
'div',
|
|
@@ -244,11 +216,11 @@ var PhoneNumber = function PhoneNumber(_ref5) {
|
|
|
244
216
|
);
|
|
245
217
|
};
|
|
246
218
|
|
|
247
|
-
var Email = function Email(
|
|
248
|
-
var account =
|
|
249
|
-
intl =
|
|
250
|
-
change =
|
|
251
|
-
values =
|
|
219
|
+
var Email = function Email(_ref5) {
|
|
220
|
+
var account = _ref5.account,
|
|
221
|
+
intl = _ref5.intl,
|
|
222
|
+
change = _ref5.change,
|
|
223
|
+
values = _ref5.values;
|
|
252
224
|
|
|
253
225
|
return React.createElement(
|
|
254
226
|
'div',
|
|
@@ -266,10 +238,10 @@ var Email = function Email(_ref6) {
|
|
|
266
238
|
);
|
|
267
239
|
};
|
|
268
240
|
|
|
269
|
-
var Banklocal = function Banklocal(
|
|
270
|
-
var account =
|
|
271
|
-
intl =
|
|
272
|
-
change =
|
|
241
|
+
var Banklocal = function Banklocal(_ref6) {
|
|
242
|
+
var account = _ref6.account,
|
|
243
|
+
intl = _ref6.intl,
|
|
244
|
+
change = _ref6.change;
|
|
273
245
|
|
|
274
246
|
return React.createElement(
|
|
275
247
|
'div',
|
|
@@ -289,17 +261,17 @@ var Banklocal = function Banklocal(_ref7) {
|
|
|
289
261
|
return change('accountNumber', accountNumber);
|
|
290
262
|
},
|
|
291
263
|
name: 'accountNumber',
|
|
292
|
-
label: translate({ id: 'cashier.details.
|
|
264
|
+
label: translate({ id: 'cashier.details.accountNumber' }, intl),
|
|
293
265
|
disabled: account.accountId
|
|
294
266
|
})
|
|
295
267
|
);
|
|
296
268
|
};
|
|
297
269
|
|
|
298
|
-
var BankIBAN = function BankIBAN(
|
|
299
|
-
var account =
|
|
300
|
-
intl =
|
|
301
|
-
change =
|
|
302
|
-
values =
|
|
270
|
+
var BankIBAN = function BankIBAN(_ref7) {
|
|
271
|
+
var account = _ref7.account,
|
|
272
|
+
intl = _ref7.intl,
|
|
273
|
+
change = _ref7.change,
|
|
274
|
+
values = _ref7.values;
|
|
303
275
|
|
|
304
276
|
return React.createElement(
|
|
305
277
|
'div',
|
|
@@ -345,15 +317,15 @@ var BankIBAN = function BankIBAN(_ref8) {
|
|
|
345
317
|
);
|
|
346
318
|
};
|
|
347
319
|
|
|
348
|
-
var AstroPayBank = function AstroPayBank(
|
|
349
|
-
var account =
|
|
350
|
-
intl =
|
|
351
|
-
country =
|
|
352
|
-
method =
|
|
353
|
-
detail =
|
|
354
|
-
change =
|
|
355
|
-
values =
|
|
356
|
-
config =
|
|
320
|
+
var AstroPayBank = function AstroPayBank(_ref8) {
|
|
321
|
+
var account = _ref8.account,
|
|
322
|
+
intl = _ref8.intl,
|
|
323
|
+
country = _ref8.country,
|
|
324
|
+
method = _ref8.method,
|
|
325
|
+
detail = _ref8.detail,
|
|
326
|
+
change = _ref8.change,
|
|
327
|
+
values = _ref8.values,
|
|
328
|
+
config = _ref8.config;
|
|
357
329
|
|
|
358
330
|
var _useState = useState([]),
|
|
359
331
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -558,12 +530,12 @@ var AstroPayBank = function AstroPayBank(_ref9) {
|
|
|
558
530
|
);
|
|
559
531
|
};
|
|
560
532
|
|
|
561
|
-
var BankIntl = function BankIntl(
|
|
562
|
-
var account =
|
|
563
|
-
intl =
|
|
564
|
-
values =
|
|
565
|
-
change =
|
|
566
|
-
country =
|
|
533
|
+
var BankIntl = function BankIntl(_ref9) {
|
|
534
|
+
var account = _ref9.account,
|
|
535
|
+
intl = _ref9.intl,
|
|
536
|
+
values = _ref9.values,
|
|
537
|
+
change = _ref9.change,
|
|
538
|
+
country = _ref9.country;
|
|
567
539
|
|
|
568
540
|
return React.createElement(
|
|
569
541
|
'div',
|
|
@@ -575,7 +547,7 @@ var BankIntl = function BankIntl(_ref10) {
|
|
|
575
547
|
onChange: function onChange(e, accountNumber) {
|
|
576
548
|
return change('accountNumber', accountNumber);
|
|
577
549
|
},
|
|
578
|
-
label: translate({ id: 'cashier.details.
|
|
550
|
+
label: translate({ id: 'cashier.details.accountNumber' }, intl),
|
|
579
551
|
disabled: account.accountId
|
|
580
552
|
}),
|
|
581
553
|
React.createElement(Input, {
|
|
@@ -615,12 +587,12 @@ var BankIntl = function BankIntl(_ref10) {
|
|
|
615
587
|
);
|
|
616
588
|
};
|
|
617
589
|
|
|
618
|
-
var CryptoCurrency = function CryptoCurrency(
|
|
619
|
-
var intl =
|
|
620
|
-
detail =
|
|
621
|
-
method =
|
|
622
|
-
values =
|
|
623
|
-
change =
|
|
590
|
+
var CryptoCurrency = function CryptoCurrency(_ref10) {
|
|
591
|
+
var intl = _ref10.intl,
|
|
592
|
+
detail = _ref10.detail,
|
|
593
|
+
method = _ref10.method,
|
|
594
|
+
values = _ref10.values,
|
|
595
|
+
change = _ref10.change;
|
|
624
596
|
|
|
625
597
|
var methodDetails = {
|
|
626
598
|
cryptoCurrencies: getByPath(detail, 'config.cryptoCurrencies', [])
|
|
@@ -673,11 +645,11 @@ var CryptoCurrency = function CryptoCurrency(_ref11) {
|
|
|
673
645
|
);
|
|
674
646
|
};
|
|
675
647
|
|
|
676
|
-
var Jeton = function Jeton(
|
|
677
|
-
var account =
|
|
678
|
-
intl =
|
|
679
|
-
values =
|
|
680
|
-
change =
|
|
648
|
+
var Jeton = function Jeton(_ref11) {
|
|
649
|
+
var account = _ref11.account,
|
|
650
|
+
intl = _ref11.intl,
|
|
651
|
+
values = _ref11.values,
|
|
652
|
+
change = _ref11.change;
|
|
681
653
|
|
|
682
654
|
return React.createElement(
|
|
683
655
|
'div',
|
|
@@ -695,11 +667,11 @@ var Jeton = function Jeton(_ref12) {
|
|
|
695
667
|
);
|
|
696
668
|
};
|
|
697
669
|
|
|
698
|
-
var BestPay = function BestPay(
|
|
699
|
-
var account =
|
|
700
|
-
intl =
|
|
701
|
-
values =
|
|
702
|
-
change =
|
|
670
|
+
var BestPay = function BestPay(_ref12) {
|
|
671
|
+
var account = _ref12.account,
|
|
672
|
+
intl = _ref12.intl,
|
|
673
|
+
values = _ref12.values,
|
|
674
|
+
change = _ref12.change;
|
|
703
675
|
|
|
704
676
|
return React.createElement(
|
|
705
677
|
'div',
|
|
@@ -726,11 +698,11 @@ var BestPay = function BestPay(_ref13) {
|
|
|
726
698
|
);
|
|
727
699
|
};
|
|
728
700
|
|
|
729
|
-
var Mifinity = function Mifinity(
|
|
730
|
-
var account =
|
|
731
|
-
intl =
|
|
732
|
-
change =
|
|
733
|
-
values =
|
|
701
|
+
var Mifinity = function Mifinity(_ref13) {
|
|
702
|
+
var account = _ref13.account,
|
|
703
|
+
intl = _ref13.intl,
|
|
704
|
+
change = _ref13.change,
|
|
705
|
+
values = _ref13.values;
|
|
734
706
|
|
|
735
707
|
return React.createElement(
|
|
736
708
|
'div',
|
|
@@ -748,11 +720,11 @@ var Mifinity = function Mifinity(_ref14) {
|
|
|
748
720
|
);
|
|
749
721
|
};
|
|
750
722
|
|
|
751
|
-
var EzeeWallet = function EzeeWallet(
|
|
752
|
-
var account =
|
|
753
|
-
intl =
|
|
754
|
-
method =
|
|
755
|
-
change =
|
|
723
|
+
var EzeeWallet = function EzeeWallet(_ref14) {
|
|
724
|
+
var account = _ref14.account,
|
|
725
|
+
intl = _ref14.intl,
|
|
726
|
+
method = _ref14.method,
|
|
727
|
+
change = _ref14.change;
|
|
756
728
|
|
|
757
729
|
return React.createElement(
|
|
758
730
|
'div',
|
|
@@ -785,69 +757,6 @@ var EzeeWallet = function EzeeWallet(_ref15) {
|
|
|
785
757
|
);
|
|
786
758
|
};
|
|
787
759
|
|
|
788
|
-
var Paramount = function Paramount(_ref16) {
|
|
789
|
-
var account = _ref16.account,
|
|
790
|
-
intl = _ref16.intl,
|
|
791
|
-
values = _ref16.values,
|
|
792
|
-
change = _ref16.change,
|
|
793
|
-
detail = _ref16.detail;
|
|
794
|
-
|
|
795
|
-
var methodDetails = {
|
|
796
|
-
securityQuestions: getByPath(detail, 'config.securityQuestions', [])
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
return React.createElement(
|
|
800
|
-
'div',
|
|
801
|
-
{ className: 'payment-account-info' },
|
|
802
|
-
methodDetails.securityQuestions.length > 0 && React.createElement(
|
|
803
|
-
Select,
|
|
804
|
-
{
|
|
805
|
-
required: true,
|
|
806
|
-
disabled: account.accountId,
|
|
807
|
-
name: 'securityQuestion',
|
|
808
|
-
value: values['securityQuestion'],
|
|
809
|
-
onChange: function onChange(_, securityQuestion) {
|
|
810
|
-
return change('securityQuestion', securityQuestion);
|
|
811
|
-
},
|
|
812
|
-
label: translate({
|
|
813
|
-
id: 'cashier.details.securityQuestion',
|
|
814
|
-
defaultMessage: 'Security question'
|
|
815
|
-
}, intl) },
|
|
816
|
-
!values['securityQuestion'] && React.createElement(
|
|
817
|
-
Select.Option,
|
|
818
|
-
{ value: '', selected: true, disabled: true },
|
|
819
|
-
translate({
|
|
820
|
-
id: 'cashier.details.select-securityQuestion',
|
|
821
|
-
defaultMessage: 'Select security question'
|
|
822
|
-
}, intl)
|
|
823
|
-
),
|
|
824
|
-
methodDetails.securityQuestions.map(function (securityQuestion) {
|
|
825
|
-
return React.createElement(
|
|
826
|
-
Select.Option,
|
|
827
|
-
{ value: securityQuestion.value },
|
|
828
|
-
translate({
|
|
829
|
-
id: securityQuestion.id,
|
|
830
|
-
defaultMessage: securityQuestion.value
|
|
831
|
-
}, intl)
|
|
832
|
-
);
|
|
833
|
-
})
|
|
834
|
-
),
|
|
835
|
-
React.createElement(Input, {
|
|
836
|
-
required: true,
|
|
837
|
-
type: 'password',
|
|
838
|
-
name: 'securityAnswer',
|
|
839
|
-
value: values['securityAnswer'],
|
|
840
|
-
onChange: function onChange(_, securityAnswer) {
|
|
841
|
-
return change('securityAnswer', securityAnswer);
|
|
842
|
-
},
|
|
843
|
-
label: translate({
|
|
844
|
-
id: 'cashier.details.securityAnswer',
|
|
845
|
-
defaultMessage: 'Security answer'
|
|
846
|
-
}, intl)
|
|
847
|
-
})
|
|
848
|
-
);
|
|
849
|
-
};
|
|
850
|
-
|
|
851
760
|
export var SkrillDeposit = {
|
|
852
761
|
component: injectIntl(Email),
|
|
853
762
|
parser: Parser.parseEmail
|
|
@@ -868,11 +777,6 @@ export var VenusPointDeposit = {
|
|
|
868
777
|
parser: Parser.parseVenusPoint
|
|
869
778
|
};
|
|
870
779
|
|
|
871
|
-
export var VegaDeposit = {
|
|
872
|
-
component: injectMethod('deposit', injectIntl(Vega)),
|
|
873
|
-
parser: Parser.parseVega
|
|
874
|
-
};
|
|
875
|
-
|
|
876
780
|
export var SiruDeposit = {
|
|
877
781
|
component: injectIntl(PhoneNumber),
|
|
878
782
|
parser: Parser.parsePhoneNumber
|
|
@@ -980,11 +884,6 @@ export var VenusPointWithdrawal = {
|
|
|
980
884
|
parser: Parser.parseVenusPoint
|
|
981
885
|
};
|
|
982
886
|
|
|
983
|
-
export var VegaWithdrawal = {
|
|
984
|
-
component: injectMethod('withdraw', injectIntl(Vega)),
|
|
985
|
-
parser: Parser.parseVega
|
|
986
|
-
};
|
|
987
|
-
|
|
988
887
|
export var NetellerWithdrawal = {
|
|
989
888
|
component: injectMethod({ method: 'withdraw' }, injectIntl(Neteller)),
|
|
990
889
|
parser: Parser.parseNeteller
|
|
@@ -1019,11 +918,6 @@ export var EzeeWalletWithdrawal = {
|
|
|
1019
918
|
parser: identity
|
|
1020
919
|
};
|
|
1021
920
|
|
|
1022
|
-
export var ParamountWithdrawal = {
|
|
1023
|
-
component: injectIntl(Paramount),
|
|
1024
|
-
parser: Parser.parseParamount
|
|
1025
|
-
};
|
|
1026
|
-
|
|
1027
921
|
export var MiFinityEWalletWithdrawal = {
|
|
1028
922
|
component: injectIntl(Mifinity),
|
|
1029
923
|
parser: identity
|
|
@@ -39,20 +39,8 @@ export var parseVenusPoint = function parseVenusPoint(account) {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
export var parseVega = function parseVega(account) {
|
|
43
|
-
return {
|
|
44
|
-
account: account.maskedAccount || account.account
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
|
|
48
42
|
export var parseMifinity = function parseMifinity(account) {
|
|
49
43
|
return {
|
|
50
44
|
account: account.maskedAccount || account.account
|
|
51
45
|
};
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export var parseParamount = function parseParamount(account) {
|
|
55
|
-
return {
|
|
56
|
-
securityQuestion: account.maskedAccount || account.account
|
|
57
|
-
};
|
|
58
46
|
};
|