tg-core-components 6.2.1-alpha.0 → 6.2.1-crypto.0
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/components/Picture/index.js +1 -1
- package/es/index.js +1 -2
- package/es/lib/WithValidation/rules/blacklistedCharacters.js +3 -0
- package/es/lib/WithValidation/rules/noSpecialCharacters.js +3 -0
- package/es/lib/WithValidation/rules/phone.js +2 -2
- package/es/lib/utils/selectUnit.js +9 -13
- package/es/lib/utils/translate.js +1 -1
- package/es/misc/countryEmojiFlags.js +5 -0
- package/es/widgets/AccordionWidget/index.js +3 -11
- package/es/widgets/AccountDetail/index.js +100 -39
- package/es/widgets/ActivateWidget/index.js +1 -1
- package/es/widgets/BonusWidget/index.js +17 -32
- package/es/widgets/BonusWidget/types.js +23 -0
- package/es/widgets/Cashier/Deposit/PaymentForm/InjectedIframeHTML.js +7 -3
- package/es/widgets/Cashier/Deposit/PaymentForm/index.js +7 -5
- package/es/widgets/Cashier/Payment/PaymentAccountForms/index.js +41 -10
- package/es/widgets/Cashier/Payment/PaymentAccountParser.js +6 -0
- package/es/widgets/CashierAccordion/Deposit/DepositWidget/index.js +4 -1
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +109 -71
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/es/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +5 -3
- package/es/widgets/HistoryWidget/index.js +19 -19
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +5 -3
- package/lib/components/Money/index.js +25 -2
- package/lib/components/Picture/index.js +1 -1
- package/lib/index.js +6 -9
- package/lib/lib/WithValidation/rules/blacklistedCharacters.js +9 -0
- package/lib/lib/WithValidation/rules/noSpecialCharacters.js +9 -0
- package/lib/lib/WithValidation/rules/phone.js +2 -2
- package/lib/lib/utils/selectUnit.js +9 -13
- package/lib/lib/utils/translate.js +1 -1
- package/lib/misc/countryEmojiFlags.js +5 -0
- package/lib/widgets/AccordionWidget/index.js +3 -14
- package/lib/widgets/AccountDetail/index.js +112 -39
- package/lib/widgets/ActivateWidget/index.js +1 -1
- package/lib/widgets/BonusWidget/index.js +21 -32
- package/lib/widgets/BonusWidget/types.js +37 -0
- package/lib/widgets/Cashier/Deposit/PaymentForm/InjectedIframeHTML.js +7 -3
- package/lib/widgets/Cashier/Deposit/PaymentForm/index.js +7 -5
- package/lib/widgets/Cashier/Payment/PaymentAccountForms/index.js +42 -11
- package/lib/widgets/Cashier/Payment/PaymentAccountParser.js +6 -0
- package/lib/widgets/CashierAccordion/Deposit/DepositWidget/index.js +4 -1
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +110 -72
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/lib/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +5 -3
- package/lib/widgets/HistoryWidget/index.js +19 -19
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +5 -3
- package/package.json +2 -2
- package/es/components/Message/index.js +0 -41
- package/es/lib/utils/bonus.js +0 -47
- package/es/widgets/BonusOffers/Actions.js +0 -167
- package/es/widgets/BonusOffers/BonusCode.js +0 -62
- package/es/widgets/BonusOffers/Details.js +0 -114
- package/es/widgets/BonusOffers/Finished.js +0 -18
- package/es/widgets/BonusOffers/List.js +0 -83
- package/es/widgets/BonusOffers/Overview.js +0 -51
- package/es/widgets/BonusOffers/index.js +0 -78
- package/lib/components/Message/index.js +0 -57
- package/lib/lib/utils/bonus.js +0 -52
- package/lib/widgets/BonusOffers/Actions.js +0 -182
- package/lib/widgets/BonusOffers/BonusCode.js +0 -85
- package/lib/widgets/BonusOffers/Details.js +0 -144
- package/lib/widgets/BonusOffers/Finished.js +0 -31
- package/lib/widgets/BonusOffers/List.js +0 -104
- package/lib/widgets/BonusOffers/Overview.js +0 -77
- package/lib/widgets/BonusOffers/index.js +0 -95
|
@@ -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') {
|
|
@@ -156,7 +157,8 @@ var PaymentForm = function (_Component) {
|
|
|
156
157
|
onClose = _props.onClose,
|
|
157
158
|
onSuccess = _props.onSuccess,
|
|
158
159
|
redirect = _props.redirect,
|
|
159
|
-
details = _props.details
|
|
160
|
+
details = _props.details,
|
|
161
|
+
iframeProps = _props.iframeProps;
|
|
160
162
|
|
|
161
163
|
|
|
162
164
|
if (!data.success) {
|
|
@@ -193,19 +195,19 @@ var PaymentForm = function (_Component) {
|
|
|
193
195
|
target: redirect ? '_top' : frameId
|
|
194
196
|
}, data.redirectOutput));
|
|
195
197
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'POST' && data.redirectOutput.html != null) {
|
|
196
|
-
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data });
|
|
198
|
+
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data, iframeProps: iframeProps });
|
|
197
199
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && data.redirectOutput.html != null) {
|
|
198
|
-
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data });
|
|
200
|
+
return _react2.default.createElement(_InjectedIframeHTML2.default, { data: data, iframeProps: iframeProps });
|
|
199
201
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET' && redirect) {
|
|
200
202
|
window.location.href = data.redirectOutput.url;
|
|
201
203
|
return null;
|
|
202
204
|
} else if (data.redirectOutput.container == 'iframe' && data.redirectOutput.method == 'GET') {
|
|
203
|
-
return _react2.default.createElement('iframe', {
|
|
205
|
+
return _react2.default.createElement('iframe', _extends({
|
|
204
206
|
src: data.redirectOutput.url,
|
|
205
207
|
width: data.redirectOutput.width,
|
|
206
208
|
height: data.redirectOutput.height,
|
|
207
209
|
frameBorder: '0'
|
|
208
|
-
});
|
|
210
|
+
}, iframeProps));
|
|
209
211
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'POST') {
|
|
210
212
|
return _react2.default.createElement(_DynamicForm2.default, data.redirectOutput);
|
|
211
213
|
} else if (data.redirectOutput.container == 'window' && data.redirectOutput.method == 'GET') {
|
|
@@ -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.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;
|
|
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.VegaWithdrawal = 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.VegaDeposit = 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,6 +165,27 @@ 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
|
+
|
|
168
189
|
var PPro = function PPro() {
|
|
169
190
|
return _react2.default.createElement(
|
|
170
191
|
'div',
|
|
@@ -173,9 +194,9 @@ var PPro = function PPro() {
|
|
|
173
194
|
);
|
|
174
195
|
};
|
|
175
196
|
|
|
176
|
-
var PhoneNumber = function PhoneNumber(
|
|
177
|
-
var account =
|
|
178
|
-
intl =
|
|
197
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
198
|
+
var account = _ref5.account,
|
|
199
|
+
intl = _ref5.intl;
|
|
179
200
|
|
|
180
201
|
return _react2.default.createElement(
|
|
181
202
|
'div',
|
|
@@ -188,9 +209,9 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
188
209
|
);
|
|
189
210
|
};
|
|
190
211
|
|
|
191
|
-
var Email = function Email(
|
|
192
|
-
var account =
|
|
193
|
-
intl =
|
|
212
|
+
var Email = function Email(_ref6) {
|
|
213
|
+
var account = _ref6.account,
|
|
214
|
+
intl = _ref6.intl;
|
|
194
215
|
|
|
195
216
|
return _react2.default.createElement(
|
|
196
217
|
'div',
|
|
@@ -204,9 +225,9 @@ var Email = function Email(_ref5) {
|
|
|
204
225
|
);
|
|
205
226
|
};
|
|
206
227
|
|
|
207
|
-
var Banklocal = function Banklocal(
|
|
208
|
-
var account =
|
|
209
|
-
intl =
|
|
228
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
229
|
+
var account = _ref7.account,
|
|
230
|
+
intl = _ref7.intl;
|
|
210
231
|
|
|
211
232
|
return _react2.default.createElement(
|
|
212
233
|
'div',
|
|
@@ -220,7 +241,7 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
220
241
|
_react2.default.createElement(_TextInput2.default, {
|
|
221
242
|
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : undefined,
|
|
222
243
|
name: 'accountNumber',
|
|
223
|
-
title: (0, _translate2.default)({ id: 'cashier.details.
|
|
244
|
+
title: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
|
|
224
245
|
disabled: account.accountId
|
|
225
246
|
})
|
|
226
247
|
);
|
|
@@ -246,6 +267,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
|
|
|
246
267
|
parser: Parser.parseVenusPoint
|
|
247
268
|
};
|
|
248
269
|
|
|
270
|
+
var VegaDeposit = exports.VegaDeposit = {
|
|
271
|
+
component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
|
|
272
|
+
parser: Parser.parseVega
|
|
273
|
+
};
|
|
274
|
+
|
|
249
275
|
var SiruDeposit = exports.SiruDeposit = {
|
|
250
276
|
component: (0, _reactIntl.injectIntl)(PhoneNumber),
|
|
251
277
|
parser: Parser.parsePhoneNumber
|
|
@@ -297,6 +323,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
|
|
|
297
323
|
parser: Parser.parseVenusPoint
|
|
298
324
|
};
|
|
299
325
|
|
|
326
|
+
var VegaWithdrawal = exports.VegaWithdrawal = {
|
|
327
|
+
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
|
|
328
|
+
parser: Parser.parseVega
|
|
329
|
+
};
|
|
330
|
+
|
|
300
331
|
var NetellerWithdrawal = exports.NetellerWithdrawal = {
|
|
301
332
|
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Neteller)),
|
|
302
333
|
parser: Parser.parseNeteller
|
|
@@ -42,6 +42,12 @@ 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
|
+
|
|
45
51
|
var parsePhoneNumber = exports.parsePhoneNumber = function parsePhoneNumber(account) {
|
|
46
52
|
return {
|
|
47
53
|
phoneNumber: account.phoneNumber || account.maskedAccount
|
|
@@ -330,7 +330,10 @@ var DepositWidget = function (_Component) {
|
|
|
330
330
|
if (amount < parseFloat(selectedMethod.limit.min) || amount < parseFloat(_this2.getMinDepositBonusAmount())) {
|
|
331
331
|
errors.amount.push(_react2.default.createElement(_Translate2.default, {
|
|
332
332
|
id: 'error.cashier.amount-below-method-limit',
|
|
333
|
-
defaultMessage: 'Amount is too low.'
|
|
333
|
+
defaultMessage: 'Amount is too low. Min amount: {min}',
|
|
334
|
+
values: {
|
|
335
|
+
min: Math.min(parseFloat(selectedMethod.limit.min), parseFloat(_this2.getMinDepositBonusAmount()))
|
|
336
|
+
}
|
|
334
337
|
}));
|
|
335
338
|
return errors;
|
|
336
339
|
}
|
|
@@ -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.MiFinityEWalletWithdrawal = exports.ParamountWithdrawal = exports.EzeeWalletWithdrawal = exports.AstroPayBankWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankIBANWithdrawal = exports.BankLocalWithdrawal = exports.JetonWithdrawal = exports.CryptoCurrencyWithdrawal = exports.BestPayWithdrawal = exports.BankIntlWithdrawal = exports.MiFinityEWalletDeposit = exports.BankIntlDeposit = exports.BestPayDeposit = exports.FunangaDeposit = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.EzeeWalletDeposit = exports.CryptoCurrencyDeposit = exports.AstroPayBankDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
6
|
+
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MiFinityEWalletWithdrawal = exports.ParamountWithdrawal = exports.EzeeWalletWithdrawal = exports.AstroPayBankWithdrawal = exports.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VegaWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankIBANWithdrawal = exports.BankLocalWithdrawal = exports.JetonWithdrawal = exports.CryptoCurrencyWithdrawal = exports.BestPayWithdrawal = exports.BankIntlWithdrawal = exports.MiFinityEWalletDeposit = exports.BankIntlDeposit = exports.BestPayDeposit = exports.FunangaDeposit = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.EzeeWalletDeposit = exports.CryptoCurrencyDeposit = exports.AstroPayBankDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VegaDeposit = exports.VenusPointDeposit = exports.NetellerDeposit = exports.CreditcardDeposit = exports.SkrillDeposit = undefined;
|
|
7
7
|
|
|
8
8
|
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
|
9
9
|
|
|
@@ -229,6 +229,34 @@ var VenusPoint = function VenusPoint(_ref3) {
|
|
|
229
229
|
);
|
|
230
230
|
};
|
|
231
231
|
|
|
232
|
+
var Vega = function Vega(_ref4) {
|
|
233
|
+
var account = _ref4.account,
|
|
234
|
+
intl = _ref4.intl,
|
|
235
|
+
change = _ref4.change;
|
|
236
|
+
|
|
237
|
+
return _react2.default.createElement(
|
|
238
|
+
'div',
|
|
239
|
+
null,
|
|
240
|
+
_react2.default.createElement(_Input2.default, {
|
|
241
|
+
disabled: account.accountId,
|
|
242
|
+
name: 'username',
|
|
243
|
+
onChange: function onChange(e, username) {
|
|
244
|
+
return change('username', username);
|
|
245
|
+
},
|
|
246
|
+
value: account.maskedAccount,
|
|
247
|
+
label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
|
|
248
|
+
}),
|
|
249
|
+
_react2.default.createElement(_Input2.default, {
|
|
250
|
+
type: 'password',
|
|
251
|
+
name: 'password',
|
|
252
|
+
onChange: function onChange(e, password) {
|
|
253
|
+
return change('password', password);
|
|
254
|
+
},
|
|
255
|
+
label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
|
|
256
|
+
})
|
|
257
|
+
);
|
|
258
|
+
};
|
|
259
|
+
|
|
232
260
|
var PPro = function PPro() {
|
|
233
261
|
return _react2.default.createElement(
|
|
234
262
|
'div',
|
|
@@ -237,11 +265,11 @@ var PPro = function PPro() {
|
|
|
237
265
|
);
|
|
238
266
|
};
|
|
239
267
|
|
|
240
|
-
var PhoneNumber = function PhoneNumber(
|
|
241
|
-
var account =
|
|
242
|
-
intl =
|
|
243
|
-
change =
|
|
244
|
-
values =
|
|
268
|
+
var PhoneNumber = function PhoneNumber(_ref5) {
|
|
269
|
+
var account = _ref5.account,
|
|
270
|
+
intl = _ref5.intl,
|
|
271
|
+
change = _ref5.change,
|
|
272
|
+
values = _ref5.values;
|
|
245
273
|
|
|
246
274
|
return _react2.default.createElement(
|
|
247
275
|
'div',
|
|
@@ -259,11 +287,11 @@ var PhoneNumber = function PhoneNumber(_ref4) {
|
|
|
259
287
|
);
|
|
260
288
|
};
|
|
261
289
|
|
|
262
|
-
var Email = function Email(
|
|
263
|
-
var account =
|
|
264
|
-
intl =
|
|
265
|
-
change =
|
|
266
|
-
values =
|
|
290
|
+
var Email = function Email(_ref6) {
|
|
291
|
+
var account = _ref6.account,
|
|
292
|
+
intl = _ref6.intl,
|
|
293
|
+
change = _ref6.change,
|
|
294
|
+
values = _ref6.values;
|
|
267
295
|
|
|
268
296
|
return _react2.default.createElement(
|
|
269
297
|
'div',
|
|
@@ -281,10 +309,10 @@ var Email = function Email(_ref5) {
|
|
|
281
309
|
);
|
|
282
310
|
};
|
|
283
311
|
|
|
284
|
-
var Banklocal = function Banklocal(
|
|
285
|
-
var account =
|
|
286
|
-
intl =
|
|
287
|
-
change =
|
|
312
|
+
var Banklocal = function Banklocal(_ref7) {
|
|
313
|
+
var account = _ref7.account,
|
|
314
|
+
intl = _ref7.intl,
|
|
315
|
+
change = _ref7.change;
|
|
288
316
|
|
|
289
317
|
return _react2.default.createElement(
|
|
290
318
|
'div',
|
|
@@ -304,17 +332,17 @@ var Banklocal = function Banklocal(_ref6) {
|
|
|
304
332
|
return change('accountNumber', accountNumber);
|
|
305
333
|
},
|
|
306
334
|
name: 'accountNumber',
|
|
307
|
-
label: (0, _translate2.default)({ id: 'cashier.details.
|
|
335
|
+
label: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
|
|
308
336
|
disabled: account.accountId
|
|
309
337
|
})
|
|
310
338
|
);
|
|
311
339
|
};
|
|
312
340
|
|
|
313
|
-
var BankIBAN = function BankIBAN(
|
|
314
|
-
var account =
|
|
315
|
-
intl =
|
|
316
|
-
change =
|
|
317
|
-
values =
|
|
341
|
+
var BankIBAN = function BankIBAN(_ref8) {
|
|
342
|
+
var account = _ref8.account,
|
|
343
|
+
intl = _ref8.intl,
|
|
344
|
+
change = _ref8.change,
|
|
345
|
+
values = _ref8.values;
|
|
318
346
|
|
|
319
347
|
return _react2.default.createElement(
|
|
320
348
|
'div',
|
|
@@ -360,15 +388,15 @@ var BankIBAN = function BankIBAN(_ref7) {
|
|
|
360
388
|
);
|
|
361
389
|
};
|
|
362
390
|
|
|
363
|
-
var AstroPayBank = function AstroPayBank(
|
|
364
|
-
var account =
|
|
365
|
-
intl =
|
|
366
|
-
country =
|
|
367
|
-
method =
|
|
368
|
-
detail =
|
|
369
|
-
change =
|
|
370
|
-
values =
|
|
371
|
-
config =
|
|
391
|
+
var AstroPayBank = function AstroPayBank(_ref9) {
|
|
392
|
+
var account = _ref9.account,
|
|
393
|
+
intl = _ref9.intl,
|
|
394
|
+
country = _ref9.country,
|
|
395
|
+
method = _ref9.method,
|
|
396
|
+
detail = _ref9.detail,
|
|
397
|
+
change = _ref9.change,
|
|
398
|
+
values = _ref9.values,
|
|
399
|
+
config = _ref9.config;
|
|
372
400
|
|
|
373
401
|
var _useState = (0, _react.useState)([]),
|
|
374
402
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -573,22 +601,22 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
573
601
|
);
|
|
574
602
|
};
|
|
575
603
|
|
|
576
|
-
var BankIntl = function BankIntl(
|
|
577
|
-
var account =
|
|
578
|
-
intl =
|
|
579
|
-
values =
|
|
580
|
-
change =
|
|
581
|
-
country =
|
|
604
|
+
var BankIntl = function BankIntl(_ref10) {
|
|
605
|
+
var account = _ref10.account,
|
|
606
|
+
intl = _ref10.intl,
|
|
607
|
+
values = _ref10.values,
|
|
608
|
+
change = _ref10.change,
|
|
609
|
+
country = _ref10.country;
|
|
582
610
|
|
|
583
611
|
return _react2.default.createElement(
|
|
584
612
|
'div',
|
|
585
613
|
{ className: 'payment-account-info' },
|
|
586
614
|
_react2.default.createElement(_Input2.default, {
|
|
587
615
|
required: true,
|
|
588
|
-
name: '
|
|
589
|
-
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['
|
|
590
|
-
onChange: function onChange(e,
|
|
591
|
-
return change('
|
|
616
|
+
name: 'accountNumber',
|
|
617
|
+
value: account.accountId ? account.maskedAccount.replace(/\d*-/g, '') : values['accountNumber'],
|
|
618
|
+
onChange: function onChange(e, accountNumber) {
|
|
619
|
+
return change('accountNumber', accountNumber);
|
|
592
620
|
},
|
|
593
621
|
label: (0, _translate2.default)({ id: 'cashier.details.iban' }, intl),
|
|
594
622
|
disabled: account.accountId
|
|
@@ -630,12 +658,12 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
630
658
|
);
|
|
631
659
|
};
|
|
632
660
|
|
|
633
|
-
var CryptoCurrency = function CryptoCurrency(
|
|
634
|
-
var intl =
|
|
635
|
-
detail =
|
|
636
|
-
method =
|
|
637
|
-
values =
|
|
638
|
-
change =
|
|
661
|
+
var CryptoCurrency = function CryptoCurrency(_ref11) {
|
|
662
|
+
var intl = _ref11.intl,
|
|
663
|
+
detail = _ref11.detail,
|
|
664
|
+
method = _ref11.method,
|
|
665
|
+
values = _ref11.values,
|
|
666
|
+
change = _ref11.change;
|
|
639
667
|
|
|
640
668
|
var methodDetails = {
|
|
641
669
|
cryptoCurrencies: (0, _get2.default)(detail, 'config.cryptoCurrencies', [])
|
|
@@ -688,11 +716,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
|
|
|
688
716
|
);
|
|
689
717
|
};
|
|
690
718
|
|
|
691
|
-
var Jeton = function Jeton(
|
|
692
|
-
var account =
|
|
693
|
-
intl =
|
|
694
|
-
values =
|
|
695
|
-
change =
|
|
719
|
+
var Jeton = function Jeton(_ref12) {
|
|
720
|
+
var account = _ref12.account,
|
|
721
|
+
intl = _ref12.intl,
|
|
722
|
+
values = _ref12.values,
|
|
723
|
+
change = _ref12.change;
|
|
696
724
|
|
|
697
725
|
return _react2.default.createElement(
|
|
698
726
|
'div',
|
|
@@ -710,11 +738,11 @@ var Jeton = function Jeton(_ref11) {
|
|
|
710
738
|
);
|
|
711
739
|
};
|
|
712
740
|
|
|
713
|
-
var BestPay = function BestPay(
|
|
714
|
-
var account =
|
|
715
|
-
intl =
|
|
716
|
-
values =
|
|
717
|
-
change =
|
|
741
|
+
var BestPay = function BestPay(_ref13) {
|
|
742
|
+
var account = _ref13.account,
|
|
743
|
+
intl = _ref13.intl,
|
|
744
|
+
values = _ref13.values,
|
|
745
|
+
change = _ref13.change;
|
|
718
746
|
|
|
719
747
|
return _react2.default.createElement(
|
|
720
748
|
'div',
|
|
@@ -741,11 +769,11 @@ var BestPay = function BestPay(_ref12) {
|
|
|
741
769
|
);
|
|
742
770
|
};
|
|
743
771
|
|
|
744
|
-
var Mifinity = function Mifinity(
|
|
745
|
-
var account =
|
|
746
|
-
intl =
|
|
747
|
-
change =
|
|
748
|
-
values =
|
|
772
|
+
var Mifinity = function Mifinity(_ref14) {
|
|
773
|
+
var account = _ref14.account,
|
|
774
|
+
intl = _ref14.intl,
|
|
775
|
+
change = _ref14.change,
|
|
776
|
+
values = _ref14.values;
|
|
749
777
|
|
|
750
778
|
return _react2.default.createElement(
|
|
751
779
|
'div',
|
|
@@ -763,11 +791,11 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
763
791
|
);
|
|
764
792
|
};
|
|
765
793
|
|
|
766
|
-
var EzeeWallet = function EzeeWallet(
|
|
767
|
-
var account =
|
|
768
|
-
intl =
|
|
769
|
-
method =
|
|
770
|
-
change =
|
|
794
|
+
var EzeeWallet = function EzeeWallet(_ref15) {
|
|
795
|
+
var account = _ref15.account,
|
|
796
|
+
intl = _ref15.intl,
|
|
797
|
+
method = _ref15.method,
|
|
798
|
+
change = _ref15.change;
|
|
771
799
|
|
|
772
800
|
return _react2.default.createElement(
|
|
773
801
|
'div',
|
|
@@ -800,12 +828,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
800
828
|
);
|
|
801
829
|
};
|
|
802
830
|
|
|
803
|
-
var Paramount = function Paramount(
|
|
804
|
-
var account =
|
|
805
|
-
intl =
|
|
806
|
-
values =
|
|
807
|
-
change =
|
|
808
|
-
detail =
|
|
831
|
+
var Paramount = function Paramount(_ref16) {
|
|
832
|
+
var account = _ref16.account,
|
|
833
|
+
intl = _ref16.intl,
|
|
834
|
+
values = _ref16.values,
|
|
835
|
+
change = _ref16.change,
|
|
836
|
+
detail = _ref16.detail;
|
|
809
837
|
|
|
810
838
|
var methodDetails = {
|
|
811
839
|
securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
|
|
@@ -883,6 +911,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
|
|
|
883
911
|
parser: Parser.parseVenusPoint
|
|
884
912
|
};
|
|
885
913
|
|
|
914
|
+
var VegaDeposit = exports.VegaDeposit = {
|
|
915
|
+
component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
|
|
916
|
+
parser: Parser.parseVega
|
|
917
|
+
};
|
|
918
|
+
|
|
886
919
|
var SiruDeposit = exports.SiruDeposit = {
|
|
887
920
|
component: (0, _reactIntl.injectIntl)(PhoneNumber),
|
|
888
921
|
parser: Parser.parsePhoneNumber
|
|
@@ -990,6 +1023,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
|
|
|
990
1023
|
parser: Parser.parseVenusPoint
|
|
991
1024
|
};
|
|
992
1025
|
|
|
1026
|
+
var VegaWithdrawal = exports.VegaWithdrawal = {
|
|
1027
|
+
component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
|
|
1028
|
+
parser: Parser.parseVega
|
|
1029
|
+
};
|
|
1030
|
+
|
|
993
1031
|
var NetellerWithdrawal = exports.NetellerWithdrawal = {
|
|
994
1032
|
component: injectMethod({ method: 'withdraw' }, (0, _reactIntl.injectIntl)(Neteller)),
|
|
995
1033
|
parser: Parser.parseNeteller
|
|
@@ -44,6 +44,12 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
var parseVega = exports.parseVega = function parseVega(account) {
|
|
48
|
+
return {
|
|
49
|
+
account: account.maskedAccount || account.account
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
47
53
|
var parseMifinity = exports.parseMifinity = function parseMifinity(account) {
|
|
48
54
|
return {
|
|
49
55
|
account: account.maskedAccount || account.account
|
|
@@ -198,11 +198,13 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
198
198
|
if (amount === undefined) {
|
|
199
199
|
return errors;
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
if (Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
201
|
+
if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
203
202
|
errors.amount.push(_react2.default.createElement(_Translate2.default, {
|
|
204
203
|
id: 'error.cashier.amount-below-method-limit',
|
|
205
|
-
defaultMessage: 'Amount is too low.'
|
|
204
|
+
defaultMessage: 'Amount is too low. Min amount: {min}',
|
|
205
|
+
values: {
|
|
206
|
+
min: parseFloat(selectedMethod.limit.min)
|
|
207
|
+
}
|
|
206
208
|
}));
|
|
207
209
|
return errors;
|
|
208
210
|
}
|
|
@@ -80,7 +80,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
80
80
|
minute: '2-digit',
|
|
81
81
|
second: '2-digit'
|
|
82
82
|
});
|
|
83
|
-
}, _this.createListInfo = function (item, product,
|
|
83
|
+
}, _this.createListInfo = function (item, product, isLoading) {
|
|
84
84
|
if (isLoading) return [[_react2.default.createElement(_Skeleton.SkeletonLine, { bold: true }), _react2.default.createElement(_Skeleton.SkeletonLine, null)], [_react2.default.createElement(_Skeleton.SkeletonLine, { bold: true }), _react2.default.createElement(_Skeleton.SkeletonLine, null)]];
|
|
85
85
|
|
|
86
86
|
if (product === 'casino') {
|
|
@@ -92,7 +92,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
92
92
|
'div',
|
|
93
93
|
null,
|
|
94
94
|
(0, _message.getMessage)((0, _get2.default)(item, 'Transactions[0].Status'))
|
|
95
|
-
)], [_react2.default.createElement(_Money2.default, { value: item.Win - item.Bet, currency:
|
|
95
|
+
)], [_react2.default.createElement(_Money2.default, { value: item.Win - item.Bet, currency: item.Currency }), _react2.default.createElement(_reactIntl.FormattedRelativeTime, (0, _selectUnit.selectUnit)(new Date(item.StartTime + '+00:00')))]];
|
|
96
96
|
} else if (product === 'sportsbook') {
|
|
97
97
|
var selection = item.Transactions[0].Description;
|
|
98
98
|
var odds = item.Transactions[0].Odds;
|
|
@@ -108,7 +108,10 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
108
108
|
'div',
|
|
109
109
|
null,
|
|
110
110
|
(0, _message.getMessage)(item.Settled ? 'settled' : 'pendling')
|
|
111
|
-
)], [_react2.default.createElement(_Money2.default, {
|
|
111
|
+
)], [_react2.default.createElement(_Money2.default, {
|
|
112
|
+
value: item.TotalWin - item.TotalWager,
|
|
113
|
+
currency: item.Currency
|
|
114
|
+
}), _react2.default.createElement(_reactIntl.FormattedRelativeTime, (0, _selectUnit.selectUnit)(new Date(item.Created + '+00:00')))]];
|
|
112
115
|
} else if (product === 'bingo') {
|
|
113
116
|
return [[_react2.default.createElement(_Translate2.default, {
|
|
114
117
|
tag: 'div'
|
|
@@ -120,7 +123,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
120
123
|
(0, _message.getMessage)((0, _get2.default)(item, 'Transactions[0].TransactionType'))
|
|
121
124
|
)], [_react2.default.createElement(_Money2.default, {
|
|
122
125
|
value: (0, _get2.default)(item, 'Transactions[0].Amount'),
|
|
123
|
-
currency:
|
|
126
|
+
currency: item.Currency
|
|
124
127
|
}), _react2.default.createElement(_reactIntl.FormattedRelativeTime, (0, _selectUnit.selectUnit)(new Date(item.Created + '+00:00')))]];
|
|
125
128
|
} else if (product === 'fantasy') {
|
|
126
129
|
return [[_react2.default.createElement(
|
|
@@ -135,7 +138,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
135
138
|
(0, _message.getMessage)(item.Status === 'Default' ? 'initiated' : item.Status === 'Canceled' ? 'canceled' : 'completed')
|
|
136
139
|
)], [_react2.default.createElement(_Money2.default, {
|
|
137
140
|
value: item.Win - (item.Bet + item.Rake),
|
|
138
|
-
currency:
|
|
141
|
+
currency: item.Currency
|
|
139
142
|
}), _react2.default.createElement(_reactIntl.FormattedRelativeTime, (0, _selectUnit.selectUnit)(new Date(item.Created + '+00:00')))]];
|
|
140
143
|
}
|
|
141
144
|
|
|
@@ -149,9 +152,9 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
149
152
|
(0, _message.getMessage)(item.Status)
|
|
150
153
|
)], [_react2.default.createElement(_Money2.default, {
|
|
151
154
|
value: item.TransactionType === 'Withdraw' ? -item.Amount : item.Amount,
|
|
152
|
-
currency:
|
|
155
|
+
currency: item.Currency
|
|
153
156
|
}), _react2.default.createElement(_reactIntl.FormattedRelativeTime, (0, _selectUnit.selectUnit)(new Date(item.Started + '+00:00')))]];
|
|
154
|
-
}, _this.createListDetail = function (item, product
|
|
157
|
+
}, _this.createListDetail = function (item, product) {
|
|
155
158
|
if (product === 'casino') {
|
|
156
159
|
return [[_react2.default.createElement(
|
|
157
160
|
'div',
|
|
@@ -163,14 +166,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
163
166
|
id: 'label.history.bet',
|
|
164
167
|
defaultMessage: 'Bet: {value}',
|
|
165
168
|
values: {
|
|
166
|
-
value: _react2.default.createElement(_Money2.default, { value: item.Bet, currency:
|
|
169
|
+
value: _react2.default.createElement(_Money2.default, { value: item.Bet, currency: item.Currency })
|
|
167
170
|
}
|
|
168
171
|
}), _react2.default.createElement(_Translate2.default, {
|
|
169
172
|
tag: 'div',
|
|
170
173
|
id: 'label.history.win',
|
|
171
174
|
defaultMessage: 'Win: {value}',
|
|
172
175
|
values: {
|
|
173
|
-
value: _react2.default.createElement(_Money2.default, { value: item.Win, currency:
|
|
176
|
+
value: _react2.default.createElement(_Money2.default, { value: item.Win, currency: item.Currency })
|
|
174
177
|
}
|
|
175
178
|
})]];
|
|
176
179
|
} else if (product === 'sportsbook') {
|
|
@@ -199,14 +202,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
199
202
|
id: 'label.history.bet',
|
|
200
203
|
defaultMessage: 'Bet: {value}',
|
|
201
204
|
values: {
|
|
202
|
-
value: _react2.default.createElement(_Money2.default, { value: item.TotalWager, currency:
|
|
205
|
+
value: _react2.default.createElement(_Money2.default, { value: item.TotalWager, currency: item.Currency })
|
|
203
206
|
}
|
|
204
207
|
}), _react2.default.createElement(_Translate2.default, {
|
|
205
208
|
tag: 'div',
|
|
206
209
|
id: 'label.history.win',
|
|
207
210
|
defaultMessage: 'Win: {value}',
|
|
208
211
|
values: {
|
|
209
|
-
value: _react2.default.createElement(_Money2.default, { value: item.TotalWin, currency:
|
|
212
|
+
value: _react2.default.createElement(_Money2.default, { value: item.TotalWin, currency: item.Currency })
|
|
210
213
|
}
|
|
211
214
|
})]];
|
|
212
215
|
} else if (product === 'bingo') {
|
|
@@ -239,14 +242,14 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
239
242
|
id: 'label.history.bet',
|
|
240
243
|
defaultMessage: 'Bet: {value}',
|
|
241
244
|
values: {
|
|
242
|
-
value: _react2.default.createElement(_Money2.default, { value: item.Bet + item.Rake, currency:
|
|
245
|
+
value: _react2.default.createElement(_Money2.default, { value: item.Bet + item.Rake, currency: item.Currency })
|
|
243
246
|
}
|
|
244
247
|
}), _react2.default.createElement(_Translate2.default, {
|
|
245
248
|
tag: 'div',
|
|
246
249
|
id: 'label.history.win',
|
|
247
250
|
defaultMessage: 'Win: {value}',
|
|
248
251
|
values: {
|
|
249
|
-
value: _react2.default.createElement(_Money2.default, { value: item.Win, currency:
|
|
252
|
+
value: _react2.default.createElement(_Money2.default, { value: item.Win, currency: item.Currency })
|
|
250
253
|
}
|
|
251
254
|
})]];
|
|
252
255
|
}
|
|
@@ -308,8 +311,7 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
308
311
|
var _props = this.props,
|
|
309
312
|
items = _props.items,
|
|
310
313
|
product = _props.product,
|
|
311
|
-
limit = _props.limit
|
|
312
|
-
currency = _props.currency;
|
|
314
|
+
limit = _props.limit;
|
|
313
315
|
var page = this.state.page;
|
|
314
316
|
|
|
315
317
|
|
|
@@ -318,8 +320,8 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
318
320
|
var listItems = pageItems.map(function (item) {
|
|
319
321
|
return {
|
|
320
322
|
id: item,
|
|
321
|
-
info: _this2.createListInfo(item, product,
|
|
322
|
-
detail: _this2.createListDetail(item, product,
|
|
323
|
+
info: _this2.createListInfo(item, product, items.isLoading),
|
|
324
|
+
detail: _this2.createListDetail(item, product, items.isLoading)
|
|
323
325
|
};
|
|
324
326
|
});
|
|
325
327
|
|
|
@@ -366,7 +368,6 @@ var HistoryWidget = function HistoryWidget(_ref2) {
|
|
|
366
368
|
var getTransactions = _ref2.getTransactions,
|
|
367
369
|
items = _ref2.items,
|
|
368
370
|
products = _ref2.products,
|
|
369
|
-
currency = _ref2.currency,
|
|
370
371
|
limit = _ref2.limit;
|
|
371
372
|
|
|
372
373
|
var accordionItems = products.map(function (product) {
|
|
@@ -374,7 +375,6 @@ var HistoryWidget = function HistoryWidget(_ref2) {
|
|
|
374
375
|
header: (0, _message.getMessage)(product),
|
|
375
376
|
content: _react2.default.createElement(HistoryWidgetList, {
|
|
376
377
|
product: product,
|
|
377
|
-
currency: currency,
|
|
378
378
|
limit: limit,
|
|
379
379
|
getTransactions: getTransactions[product],
|
|
380
380
|
items: items[product]
|