tg-core-components 6.1.16-vega-integration.1 → 6.1.16
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 +21 -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 +2 -2
- 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 +2 -1
- 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 +22 -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 +2 -2
- 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 +2 -1
- 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
|
@@ -17,7 +17,71 @@ import { SkeletonLine } from '../../components/Skeleton';
|
|
|
17
17
|
import getByPath from 'lodash/get';
|
|
18
18
|
import Translate from '../../components/Translate';
|
|
19
19
|
import { getMessage } from './message';
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var MILISECONDS = {
|
|
22
|
+
IN_A_SECOND: 1000,
|
|
23
|
+
IN_A_MINUTE: 60000,
|
|
24
|
+
IN_AN_HOUR: 3600000,
|
|
25
|
+
IN_A_DAY: 86400000,
|
|
26
|
+
IN_A_WEEK: 604800000,
|
|
27
|
+
IN_A_MONTH: 2628000000,
|
|
28
|
+
IN_A_YEAR: 31536000000
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var selectUnit = function selectUnit(from) {
|
|
32
|
+
var now = Date.now();
|
|
33
|
+
var ms = now - from;
|
|
34
|
+
|
|
35
|
+
switch (true) {
|
|
36
|
+
case MILISECONDS.IN_A_SECOND < ms && ms < MILISECONDS.IN_A_MINUTE:
|
|
37
|
+
return {
|
|
38
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_SECOND),
|
|
39
|
+
unit: 'second',
|
|
40
|
+
updateIntervalInSeconds: 1
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
case MILISECONDS.IN_A_MINUTE < ms && ms < MILISECONDS.IN_AN_HOUR:
|
|
44
|
+
return {
|
|
45
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_MINUTE),
|
|
46
|
+
unit: 'minute'
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
case MILISECONDS.IN_AN_HOUR < ms && ms < MILISECONDS.IN_A_DAY:
|
|
50
|
+
return {
|
|
51
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_AN_HOUR),
|
|
52
|
+
unit: 'hour'
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
case MILISECONDS.IN_A_DAY < ms && ms < MILISECONDS.IN_A_WEEK:
|
|
56
|
+
return {
|
|
57
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_DAY),
|
|
58
|
+
unit: 'day'
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
case MILISECONDS.IN_A_WEEK < ms && ms < MILISECONDS.IN_A_MONTH:
|
|
62
|
+
return {
|
|
63
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_WEEK),
|
|
64
|
+
unit: 'week'
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
case MILISECONDS.IN_A_MONTH < ms && ms < MILISECONDS.IN_A_YEAR:
|
|
68
|
+
return {
|
|
69
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_MONTH),
|
|
70
|
+
unit: 'month'
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
case MILISECONDS.IN_A_YEAR < ms:
|
|
74
|
+
return {
|
|
75
|
+
value: -1 * Math.floor(ms / MILISECONDS.IN_A_YEAR),
|
|
76
|
+
unit: 'year'
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
default:
|
|
80
|
+
return {
|
|
81
|
+
value: 0
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
21
85
|
|
|
22
86
|
var HistoryWidgetList = function (_React$Component) {
|
|
23
87
|
_inherits(HistoryWidgetList, _React$Component);
|
|
@@ -45,7 +109,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
45
109
|
minute: '2-digit',
|
|
46
110
|
second: '2-digit'
|
|
47
111
|
});
|
|
48
|
-
}, _this.createListInfo = function (item, product,
|
|
112
|
+
}, _this.createListInfo = function (item, product, isLoading) {
|
|
49
113
|
if (isLoading) return [[React.createElement(SkeletonLine, { bold: true }), React.createElement(SkeletonLine, null)], [React.createElement(SkeletonLine, { bold: true }), React.createElement(SkeletonLine, null)]];
|
|
50
114
|
|
|
51
115
|
if (product === 'casino') {
|
|
@@ -57,7 +121,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
57
121
|
'div',
|
|
58
122
|
null,
|
|
59
123
|
getMessage(getByPath(item, 'Transactions[0].Status'))
|
|
60
|
-
)], [React.createElement(Money, { value: item.Win - item.Bet, currency:
|
|
124
|
+
)], [React.createElement(Money, { value: item.Win - item.Bet, currency: item.Currency }), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.StartTime + '+00:00')))]];
|
|
61
125
|
} else if (product === 'sportsbook') {
|
|
62
126
|
var selection = item.Transactions[0].Description;
|
|
63
127
|
var odds = item.Transactions[0].Odds;
|
|
@@ -73,7 +137,10 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
73
137
|
'div',
|
|
74
138
|
null,
|
|
75
139
|
getMessage(item.Settled ? 'settled' : 'pendling')
|
|
76
|
-
)], [React.createElement(Money, {
|
|
140
|
+
)], [React.createElement(Money, {
|
|
141
|
+
value: item.TotalWin - item.TotalWager,
|
|
142
|
+
currency: item.Currency
|
|
143
|
+
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Created + '+00:00')))]];
|
|
77
144
|
} else if (product === 'bingo') {
|
|
78
145
|
return [[React.createElement(Translate, {
|
|
79
146
|
tag: 'div'
|
|
@@ -85,7 +152,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
85
152
|
getMessage(getByPath(item, 'Transactions[0].TransactionType'))
|
|
86
153
|
)], [React.createElement(Money, {
|
|
87
154
|
value: getByPath(item, 'Transactions[0].Amount'),
|
|
88
|
-
currency:
|
|
155
|
+
currency: item.Currency
|
|
89
156
|
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Created + '+00:00')))]];
|
|
90
157
|
} else if (product === 'fantasy') {
|
|
91
158
|
return [[React.createElement(
|
|
@@ -100,7 +167,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
100
167
|
getMessage(item.Status === 'Default' ? 'initiated' : item.Status === 'Canceled' ? 'canceled' : 'completed')
|
|
101
168
|
)], [React.createElement(Money, {
|
|
102
169
|
value: item.Win - (item.Bet + item.Rake),
|
|
103
|
-
currency:
|
|
170
|
+
currency: item.Currency
|
|
104
171
|
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Created + '+00:00')))]];
|
|
105
172
|
}
|
|
106
173
|
|
|
@@ -114,9 +181,9 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
114
181
|
getMessage(item.Status)
|
|
115
182
|
)], [React.createElement(Money, {
|
|
116
183
|
value: item.TransactionType === 'Withdraw' ? -item.Amount : item.Amount,
|
|
117
|
-
currency:
|
|
184
|
+
currency: item.Currency
|
|
118
185
|
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Started + '+00:00')))]];
|
|
119
|
-
}, _this.createListDetail = function (item, product
|
|
186
|
+
}, _this.createListDetail = function (item, product) {
|
|
120
187
|
if (product === 'casino') {
|
|
121
188
|
return [[React.createElement(
|
|
122
189
|
'div',
|
|
@@ -128,14 +195,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
128
195
|
id: 'label.history.bet',
|
|
129
196
|
defaultMessage: 'Bet: {value}',
|
|
130
197
|
values: {
|
|
131
|
-
value: React.createElement(Money, { value: item.Bet, currency:
|
|
198
|
+
value: React.createElement(Money, { value: item.Bet, currency: item.Currency })
|
|
132
199
|
}
|
|
133
200
|
}), React.createElement(Translate, {
|
|
134
201
|
tag: 'div',
|
|
135
202
|
id: 'label.history.win',
|
|
136
203
|
defaultMessage: 'Win: {value}',
|
|
137
204
|
values: {
|
|
138
|
-
value: React.createElement(Money, { value: item.Win, currency:
|
|
205
|
+
value: React.createElement(Money, { value: item.Win, currency: item.Currency })
|
|
139
206
|
}
|
|
140
207
|
})]];
|
|
141
208
|
} else if (product === 'sportsbook') {
|
|
@@ -164,14 +231,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
164
231
|
id: 'label.history.bet',
|
|
165
232
|
defaultMessage: 'Bet: {value}',
|
|
166
233
|
values: {
|
|
167
|
-
value: React.createElement(Money, { value: item.TotalWager, currency:
|
|
234
|
+
value: React.createElement(Money, { value: item.TotalWager, currency: item.Currency })
|
|
168
235
|
}
|
|
169
236
|
}), React.createElement(Translate, {
|
|
170
237
|
tag: 'div',
|
|
171
238
|
id: 'label.history.win',
|
|
172
239
|
defaultMessage: 'Win: {value}',
|
|
173
240
|
values: {
|
|
174
|
-
value: React.createElement(Money, { value: item.TotalWin, currency:
|
|
241
|
+
value: React.createElement(Money, { value: item.TotalWin, currency: item.Currency })
|
|
175
242
|
}
|
|
176
243
|
})]];
|
|
177
244
|
} else if (product === 'bingo') {
|
|
@@ -204,14 +271,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
204
271
|
id: 'label.history.bet',
|
|
205
272
|
defaultMessage: 'Bet: {value}',
|
|
206
273
|
values: {
|
|
207
|
-
value: React.createElement(Money, { value: item.Bet + item.Rake, currency:
|
|
274
|
+
value: React.createElement(Money, { value: item.Bet + item.Rake, currency: item.Currency })
|
|
208
275
|
}
|
|
209
276
|
}), React.createElement(Translate, {
|
|
210
277
|
tag: 'div',
|
|
211
278
|
id: 'label.history.win',
|
|
212
279
|
defaultMessage: 'Win: {value}',
|
|
213
280
|
values: {
|
|
214
|
-
value: React.createElement(Money, { value: item.Win, currency:
|
|
281
|
+
value: React.createElement(Money, { value: item.Win, currency: item.Currency })
|
|
215
282
|
}
|
|
216
283
|
})]];
|
|
217
284
|
}
|
|
@@ -273,8 +340,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
273
340
|
var _props = this.props,
|
|
274
341
|
items = _props.items,
|
|
275
342
|
product = _props.product,
|
|
276
|
-
limit = _props.limit
|
|
277
|
-
currency = _props.currency;
|
|
343
|
+
limit = _props.limit;
|
|
278
344
|
var page = this.state.page;
|
|
279
345
|
|
|
280
346
|
|
|
@@ -283,8 +349,8 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
283
349
|
var listItems = pageItems.map(function (item) {
|
|
284
350
|
return {
|
|
285
351
|
id: item,
|
|
286
|
-
info: _this2.createListInfo(item, product,
|
|
287
|
-
detail: _this2.createListDetail(item, product,
|
|
352
|
+
info: _this2.createListInfo(item, product, items.isLoading),
|
|
353
|
+
detail: _this2.createListDetail(item, product, items.isLoading)
|
|
288
354
|
};
|
|
289
355
|
});
|
|
290
356
|
|
|
@@ -331,7 +397,6 @@ var HistoryWidget = function HistoryWidget(_ref2) {
|
|
|
331
397
|
var getTransactions = _ref2.getTransactions,
|
|
332
398
|
items = _ref2.items,
|
|
333
399
|
products = _ref2.products,
|
|
334
|
-
currency = _ref2.currency,
|
|
335
400
|
limit = _ref2.limit;
|
|
336
401
|
|
|
337
402
|
var accordionItems = products.map(function (product) {
|
|
@@ -339,7 +404,6 @@ var HistoryWidget = function HistoryWidget(_ref2) {
|
|
|
339
404
|
header: getMessage(product),
|
|
340
405
|
content: React.createElement(HistoryWidgetList, {
|
|
341
406
|
product: product,
|
|
342
|
-
currency: currency,
|
|
343
407
|
limit: limit,
|
|
344
408
|
getTransactions: getTransactions[product],
|
|
345
409
|
items: items[product]
|
|
@@ -251,7 +251,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
251
251
|
setValue = _useState2[1];
|
|
252
252
|
|
|
253
253
|
useEffect(function () {
|
|
254
|
-
if (newLimit) {
|
|
254
|
+
if (newLimit && newLimit.Amount) {
|
|
255
255
|
setValue(newLimit.Amount);
|
|
256
256
|
}
|
|
257
257
|
}, [newLimit]);
|
|
@@ -282,7 +282,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
// If not blocked from removing limit or 'No limit' option is selected -> add 'No limit' option
|
|
285
|
-
if (!validationState['limit-remove-blocked'] || value === 0
|
|
285
|
+
if (!validationState['limit-remove-blocked'] || value === 0) {
|
|
286
286
|
options.unshift({
|
|
287
287
|
value: 0,
|
|
288
288
|
label: messages.get('label.responsible-gaming.option.no-limit')
|
|
@@ -319,8 +319,6 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
323
|
-
|
|
324
322
|
return React.createElement(
|
|
325
323
|
Fragment,
|
|
326
324
|
null,
|
|
@@ -354,7 +352,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
354
352
|
setValue(parseInt(value));
|
|
355
353
|
if (value > 0) _onChange(value);
|
|
356
354
|
},
|
|
357
|
-
autoFocus:
|
|
355
|
+
autoFocus: true,
|
|
358
356
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
359
357
|
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') : Infinity
|
|
360
358
|
}),
|
|
@@ -19,10 +19,10 @@ import { FormattedRelativeTime } from 'react-intl';
|
|
|
19
19
|
import getByPath from 'lodash/get';
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
import Translate from '../../components/Translate';
|
|
22
|
+
import { selectUnit } from '@formatjs/intl-utils';
|
|
22
23
|
import { getKycType } from '../Verify/types';
|
|
23
24
|
import { getKycReason } from '../Verify/reasons';
|
|
24
25
|
import { getKycStatus } from '../Verify/status';
|
|
25
|
-
import { selectUnit } from '../../lib/utils/selectUnit';
|
|
26
26
|
|
|
27
27
|
var UploadForm = function UploadForm(_ref) {
|
|
28
28
|
var type = _ref.type,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.format = undefined;
|
|
6
7
|
|
|
7
8
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
8
9
|
|
|
@@ -18,13 +19,25 @@ var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
|
18
19
|
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* For crypto we want more decimals.
|
|
24
|
+
*/
|
|
25
|
+
var fractionDigits = {
|
|
26
|
+
BTC: { min: 5, max: 5 },
|
|
27
|
+
LTC: { min: 5, max: 5 },
|
|
28
|
+
XBC: { min: 5, max: 5 },
|
|
29
|
+
XRP: { min: 5, max: 5 },
|
|
30
|
+
ETC: { min: 5, max: 5 },
|
|
31
|
+
BCH: { min: 5, max: 5 }
|
|
32
|
+
};
|
|
33
|
+
|
|
21
34
|
/**
|
|
22
35
|
* FormattedNumber component to display currency
|
|
23
36
|
*/
|
|
24
37
|
var Money = function Money(props) {
|
|
25
38
|
return _react2.default.createElement(_reactIntl.FormattedNumber, _extends({
|
|
26
|
-
minimumFractionDigits: props.decimals ? 2 : 0,
|
|
27
|
-
maximumFractionDigits: props.decimals ? 2 : 0
|
|
39
|
+
minimumFractionDigits: props.decimals ? fractionDigits[props.currency] || 2 : 0,
|
|
40
|
+
maximumFractionDigits: props.decimals ? fractionDigits[props.currency] || 2 : 0
|
|
28
41
|
}, props, {
|
|
29
42
|
style: 'currency'
|
|
30
43
|
}));
|
|
@@ -48,4 +61,11 @@ Money.defaultProps = {
|
|
|
48
61
|
decimals: true
|
|
49
62
|
};
|
|
50
63
|
|
|
64
|
+
var format = exports.format = function format(currency) {
|
|
65
|
+
return new Intl.NumberFormat('en-US', {
|
|
66
|
+
minimumFractionDigits: fractionDigits[currency] ? fractionDigits[currency].min : null,
|
|
67
|
+
maximumFractionDigits: fractionDigits[currency] ? fractionDigits[currency].max : null
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
51
71
|
exports.default = Money;
|
|
@@ -14,7 +14,6 @@ exports.default = {
|
|
|
14
14
|
AG: '🇦🇬',
|
|
15
15
|
AU: '🇦🇺',
|
|
16
16
|
AT: '🇦🇹',
|
|
17
|
-
AW: '🇦🇼',
|
|
18
17
|
AZ: '🇦🇿',
|
|
19
18
|
BI: '🇧🇮',
|
|
20
19
|
BE: '🇧🇪',
|
|
@@ -30,7 +29,6 @@ exports.default = {
|
|
|
30
29
|
BO: '🇧🇴',
|
|
31
30
|
BR: '🇧🇷',
|
|
32
31
|
BB: '🇧🇧',
|
|
33
|
-
BM: '🇧🇲',
|
|
34
32
|
BN: '🇧🇳',
|
|
35
33
|
BT: '🇧🇹',
|
|
36
34
|
BW: '🇧🇼',
|
|
@@ -40,7 +38,6 @@ exports.default = {
|
|
|
40
38
|
CL: '🇨🇱',
|
|
41
39
|
CN: '🇨🇳',
|
|
42
40
|
CI: '🇨🇮',
|
|
43
|
-
CK: '🇨🇰',
|
|
44
41
|
CM: '🇨🇲',
|
|
45
42
|
CD: '🇨🇩',
|
|
46
43
|
CG: '🇨🇬',
|
|
@@ -175,7 +172,6 @@ exports.default = {
|
|
|
175
172
|
SZ: '🇸🇿',
|
|
176
173
|
SC: '🇸🇨',
|
|
177
174
|
SY: '🇸🇾',
|
|
178
|
-
TC: '🇹🇨',
|
|
179
175
|
TD: '🇹🇩',
|
|
180
176
|
TG: '🇹🇬',
|
|
181
177
|
TH: '🇹🇭',
|
|
@@ -187,7 +183,6 @@ exports.default = {
|
|
|
187
183
|
TN: '🇹🇳',
|
|
188
184
|
TR: '🇹🇷',
|
|
189
185
|
TV: '🇹🇻',
|
|
190
|
-
TW: '🇹🇼',
|
|
191
186
|
TZ: '🇹🇿',
|
|
192
187
|
UG: '🇺🇬',
|
|
193
188
|
UA: '🇺🇦',
|
|
@@ -189,6 +189,14 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
189
189
|
id: 'title.mobile_number',
|
|
190
190
|
defaultMessage: 'Mobile number'
|
|
191
191
|
}, intl),
|
|
192
|
+
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
193
|
+
return Number(a.callingCode) - Number(b.callingCode);
|
|
194
|
+
}).map(function (i) {
|
|
195
|
+
return {
|
|
196
|
+
value: '00' + i.callingCode,
|
|
197
|
+
label: '+' + i.callingCode + ' ' + (_countryEmojiFlags2.default[i.value] || '')
|
|
198
|
+
};
|
|
199
|
+
}) : [],
|
|
192
200
|
name: 'MobilePhoneNumber',
|
|
193
201
|
autoComplete: 'off',
|
|
194
202
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -93,7 +93,7 @@ var ActivationCode = function ActivationCode(_ref) {
|
|
|
93
93
|
}, [autoFocus, code]);
|
|
94
94
|
|
|
95
95
|
(0, _react.useEffect)(function () {
|
|
96
|
-
inputRef.current.value = code;
|
|
96
|
+
return inputRef.current.value = code;
|
|
97
97
|
}, [code]);
|
|
98
98
|
|
|
99
99
|
var setCaretPosition = function setCaretPosition(from, to) {
|
|
@@ -32,8 +32,6 @@ var _Translate2 = _interopRequireDefault(_Translate);
|
|
|
32
32
|
|
|
33
33
|
var _states = require('./states');
|
|
34
34
|
|
|
35
|
-
var _types = require('./types');
|
|
36
|
-
|
|
37
35
|
var _marked = require('marked');
|
|
38
36
|
|
|
39
37
|
var _marked2 = _interopRequireDefault(_marked);
|
|
@@ -187,11 +185,10 @@ var BonusWidget = function BonusWidget(_ref3) {
|
|
|
187
185
|
var info = [[_react2.default.createElement(
|
|
188
186
|
'div',
|
|
189
187
|
null,
|
|
190
|
-
_react2.default.createElement(
|
|
191
|
-
'
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
)
|
|
188
|
+
_react2.default.createElement(_Translate2.default, {
|
|
189
|
+
id: 'label.description.bonus.' + item.Identifier.toLowerCase(),
|
|
190
|
+
defaultMessage: item.Name || item.Description
|
|
191
|
+
})
|
|
195
192
|
), _react2.default.createElement(
|
|
196
193
|
'div',
|
|
197
194
|
null,
|
|
@@ -204,7 +201,10 @@ var BonusWidget = function BonusWidget(_ref3) {
|
|
|
204
201
|
style: item.Type.toLowerCase() == 'freespins' ? 'decimal' : 'currency',
|
|
205
202
|
currency: item.Currency
|
|
206
203
|
})
|
|
207
|
-
), (
|
|
204
|
+
), _react2.default.createElement(_Translate2.default, {
|
|
205
|
+
id: 'label.type.bonus.' + item.Type.toLowerCase(),
|
|
206
|
+
defaultMessage: item.Type.toLowerCase()
|
|
207
|
+
})]];
|
|
208
208
|
|
|
209
209
|
// Add bonus actions to not expired Fasttrack bonuses
|
|
210
210
|
if (item.Provider === 'fasttrack' && item.State !== 'Expired') info.push(_react2.default.createElement(BonusActionFT, { bonus: item, onClaimBonus: onClaimBonus }));
|
|
@@ -126,6 +126,7 @@ var PaymentForm = function (_Component) {
|
|
|
126
126
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref3 = PaymentForm.__proto__ || Object.getPrototypeOf(PaymentForm)).call.apply(_ref3, [this].concat(args))), _this), _this.onMessage = function (message) {
|
|
127
127
|
var operatingSystem = _this.props.operatingSystem;
|
|
128
128
|
|
|
129
|
+
console.log({ message: message });
|
|
129
130
|
var data = JSON.parse(message.data);
|
|
130
131
|
|
|
131
132
|
if (data.method === 'OPEN_APP') {
|
|
@@ -165,11 +166,7 @@ var PaymentForm = function (_Component) {
|
|
|
165
166
|
|
|
166
167
|
if (data.redirectOutput == null) {
|
|
167
168
|
if (onSuccess) {
|
|
168
|
-
onSuccess(
|
|
169
|
-
amount: data.amount,
|
|
170
|
-
currency: data.currency,
|
|
171
|
-
tx: Number(data.transactionId)
|
|
172
|
-
});
|
|
169
|
+
onSuccess();
|
|
173
170
|
return null;
|
|
174
171
|
}
|
|
175
172
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.
|
|
6
|
+
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankLocalWithdrawal = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.SwishDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
7
7
|
|
|
8
8
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
9
9
|
|
|
@@ -165,27 +165,6 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
165
165
|
);
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
var Vega = function Vega(_ref4) {
|
|
169
|
-
var account = _ref4.account,
|
|
170
|
-
intl = _ref4.intl;
|
|
171
|
-
|
|
172
|
-
return _react2.default.createElement(
|
|
173
|
-
'div',
|
|
174
|
-
{ className: 'payment-account-info' },
|
|
175
|
-
_react2.default.createElement(_TextInput2.default, {
|
|
176
|
-
disabled: account.accountId,
|
|
177
|
-
name: 'username',
|
|
178
|
-
value: account.maskedAccount,
|
|
179
|
-
label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
|
|
180
|
-
}),
|
|
181
|
-
_react2.default.createElement(_TextInput2.default, {
|
|
182
|
-
type: 'password',
|
|
183
|
-
name: 'password',
|
|
184
|
-
label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
|
|
185
|
-
})
|
|
186
|
-
);
|
|
187
|
-
};
|
|
188
|
-
|
|
189
168
|
var PPro = function PPro() {
|
|
190
169
|
return _react2.default.createElement(
|
|
191
170
|
'div',
|
|
@@ -194,9 +173,9 @@ var PPro = function PPro() {
|
|
|
194
173
|
);
|
|
195
174
|
};
|
|
196
175
|
|
|
197
|
-
var PhoneNumber = function PhoneNumber(
|
|
198
|
-
var account =
|
|
199
|
-
intl =
|
|
176
|
+
var PhoneNumber = function PhoneNumber(_ref4) {
|
|
177
|
+
var account = _ref4.account,
|
|
178
|
+
intl = _ref4.intl;
|
|
200
179
|
|
|
201
180
|
return _react2.default.createElement(
|
|
202
181
|
'div',
|
|
@@ -209,9 +188,9 @@ var PhoneNumber = function PhoneNumber(_ref5) {
|
|
|
209
188
|
);
|
|
210
189
|
};
|
|
211
190
|
|
|
212
|
-
var Email = function Email(
|
|
213
|
-
var account =
|
|
214
|
-
intl =
|
|
191
|
+
var Email = function Email(_ref5) {
|
|
192
|
+
var account = _ref5.account,
|
|
193
|
+
intl = _ref5.intl;
|
|
215
194
|
|
|
216
195
|
return _react2.default.createElement(
|
|
217
196
|
'div',
|
|
@@ -225,9 +204,9 @@ var Email = function Email(_ref6) {
|
|
|
225
204
|
);
|
|
226
205
|
};
|
|
227
206
|
|
|
228
|
-
var Banklocal = function Banklocal(
|
|
229
|
-
var account =
|
|
230
|
-
intl =
|
|
207
|
+
var Banklocal = function Banklocal(_ref6) {
|
|
208
|
+
var account = _ref6.account,
|
|
209
|
+
intl = _ref6.intl;
|
|
231
210
|
|
|
232
211
|
return _react2.default.createElement(
|
|
233
212
|
'div',
|
|
@@ -241,7 +220,7 @@ var Banklocal = function Banklocal(_ref7) {
|
|
|
241
220
|
_react2.default.createElement(_TextInput2.default, {
|
|
242
221
|
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : undefined,
|
|
243
222
|
name: 'accountNumber',
|
|
244
|
-
title: (0, _translate2.default)({ id: 'cashier.details.
|
|
223
|
+
title: (0, _translate2.default)({ id: 'cashier.details.accountNumber' }, intl),
|
|
245
224
|
disabled: account.accountId
|
|
246
225
|
})
|
|
247
226
|
);
|
|
@@ -267,11 +246,6 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
|
|
|
267
246
|
parser: Parser.parseVenusPoint
|
|
268
247
|
};
|
|
269
248
|
|
|
270
|
-
var VegaDeposit = exports.VegaDeposit = {
|
|
271
|
-
component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
|
|
272
|
-
parser: Parser.parseVega
|
|
273
|
-
};
|
|
274
|
-
|
|
275
249
|
var SiruDeposit = exports.SiruDeposit = {
|
|
276
250
|
component: (0, _reactIntl.injectIntl)(PhoneNumber),
|
|
277
251
|
parser: Parser.parsePhoneNumber
|
|
@@ -323,11 +297,6 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
|
|
|
323
297
|
parser: Parser.parseVenusPoint
|
|
324
298
|
};
|
|
325
299
|
|
|
326
|
-
var VegaWithdrawal = exports.VegaWithdrawal = {
|
|
327
|
-
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
|
|
328
|
-
parser: Parser.parseVega
|
|
329
|
-
};
|
|
330
|
-
|
|
331
300
|
var NetellerWithdrawal = exports.NetellerWithdrawal = {
|
|
332
301
|
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Neteller)),
|
|
333
302
|
parser: Parser.parseNeteller
|
|
@@ -42,12 +42,6 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var parseVega = exports.parseVega = function parseVega(account) {
|
|
46
|
-
return {
|
|
47
|
-
account: account.maskedAccount || account.account
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
|
|
51
45
|
var parsePhoneNumber = exports.parsePhoneNumber = function parsePhoneNumber(account) {
|
|
52
46
|
return {
|
|
53
47
|
phoneNumber: account.phoneNumber || account.maskedAccount
|
|
@@ -731,8 +731,8 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
731
731
|
providerType: method.providerType,
|
|
732
732
|
lastDepositAmount: paymentStats.LastDepositAmount,
|
|
733
733
|
remainingDepositLimit: remainingDepositLimit,
|
|
734
|
-
methodMin:
|
|
735
|
-
methodMax:
|
|
734
|
+
methodMin: method.limit.min,
|
|
735
|
+
methodMax: method.limit.max,
|
|
736
736
|
customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
|
|
737
737
|
cancelWithdrawalAmount: method.amount,
|
|
738
738
|
spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
|