tg-core-components 5.5.1-bethard → 5.5.1-master
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/AcceptUpdatedTaC/index.js +8 -3
- package/es/components/Checkbox/index.js +93 -0
- package/es/components/Deposit/CardInput/index.js +1 -3
- package/es/components/Input/index.js +222 -22
- package/es/components/InputWrapper/index.js +69 -0
- package/es/components/List/ListItem.js +1 -7
- package/es/components/Notification.js +4 -4
- package/es/components/Select/index.js +202 -64
- package/es/components/Select/test.js +111 -0
- package/es/index.js +2 -2
- package/es/lib/utils/translate.js +1 -8
- package/es/misc/countryEmojiFlags.js +0 -1
- package/es/widgets/AccountDetail/index.js +53 -77
- package/es/widgets/ActivateWidget/index.js +59 -293
- package/es/widgets/BonusWidget/BonusCode.js +24 -17
- package/es/widgets/BonusWidget/index.js +83 -45
- package/es/widgets/CashierAccordion/Deposit/BonusCodeInput/index.js +9 -6
- package/es/widgets/CashierAccordion/Deposit/DepositWidget/index.js +47 -85
- package/es/widgets/CashierAccordion/Deposit/PaymentForm/index.js +2 -6
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/astroPayBankTransaltions.js +12 -0
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +163 -347
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -6
- package/es/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +9 -23
- package/es/widgets/ChangePassword/index.js +53 -40
- package/es/widgets/HistoryWidget/index.js +69 -51
- package/es/widgets/HistoryWidget/message.js +17 -20
- package/es/widgets/RequestResetPassword/index.js +15 -14
- package/es/widgets/ResetPassword/index.js +22 -18
- package/es/widgets/ResponsibleGamingAccordion/LimitStatus/index.js +5 -2
- package/es/widgets/ResponsibleGamingAccordion/PeriodItemContent/index.js +1 -2
- package/es/widgets/ResponsibleGamingSingleSignUp/AmountItem/index.js +1 -2
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +14 -24
- package/es/widgets/ResponsibleGamingWidget/helpers.js +2 -2
- package/es/widgets/ResponsibleGamingWidget/validate.js +2 -6
- package/es/widgets/Settings/index.js +2 -2
- package/es/widgets/SignIn/SignInForm.js +4 -6
- package/es/widgets/SignIn/index.js +21 -21
- package/es/widgets/SignUp/ContactInfoStep.js +5 -6
- package/es/widgets/SportsbookSettings/index.js +10 -24
- package/es/widgets/Subscriptions/index.js +3 -5
- package/lib/components/AcceptUpdatedTaC/index.js +11 -3
- package/lib/components/Checkbox/index.js +106 -0
- package/lib/components/Deposit/CardInput/index.js +1 -3
- package/lib/components/Input/index.js +223 -26
- package/lib/components/InputWrapper/index.js +85 -0
- package/lib/components/List/ListItem.js +1 -10
- package/lib/components/Notification.js +3 -3
- package/lib/components/Select/index.js +209 -63
- package/lib/components/Select/test.js +121 -0
- package/lib/index.js +7 -7
- package/lib/lib/utils/translate.js +1 -8
- package/lib/misc/countryEmojiFlags.js +0 -1
- package/lib/widgets/AccountDetail/index.js +53 -86
- package/lib/widgets/ActivateWidget/index.js +58 -305
- package/lib/widgets/BonusWidget/BonusCode.js +24 -20
- package/lib/widgets/BonusWidget/index.js +85 -44
- package/lib/widgets/CashierAccordion/Deposit/BonusCodeInput/index.js +13 -7
- package/lib/widgets/CashierAccordion/Deposit/DepositWidget/index.js +50 -88
- package/lib/widgets/CashierAccordion/Deposit/PaymentForm/index.js +2 -9
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/astroPayBankTransaltions.js +12 -0
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +195 -378
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -6
- package/lib/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +11 -25
- package/lib/widgets/ChangePassword/index.js +53 -43
- package/lib/widgets/HistoryWidget/index.js +69 -51
- package/lib/widgets/HistoryWidget/message.js +17 -20
- package/lib/widgets/RequestResetPassword/index.js +15 -17
- package/lib/widgets/ResetPassword/index.js +25 -21
- package/lib/widgets/ResponsibleGamingAccordion/LimitStatus/index.js +5 -2
- package/lib/widgets/ResponsibleGamingAccordion/PeriodItemContent/index.js +1 -2
- package/lib/widgets/ResponsibleGamingSingleSignUp/AmountItem/index.js +1 -2
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +14 -24
- package/lib/widgets/ResponsibleGamingWidget/helpers.js +2 -2
- package/lib/widgets/ResponsibleGamingWidget/validate.js +2 -6
- package/lib/widgets/Settings/index.js +6 -6
- package/lib/widgets/SignIn/SignInForm.js +7 -6
- package/lib/widgets/SignIn/index.js +25 -25
- package/lib/widgets/SignUp/ContactInfoStep.js +8 -6
- package/lib/widgets/SportsbookSettings/index.js +10 -24
- package/lib/widgets/Subscriptions/index.js +3 -11
- package/package.json +8 -3
- package/es/components/AutocompleteInput/index.js +0 -104
- package/es/components/Input/BirthdateInput.js +0 -174
- package/es/components/Input/Checkbox.js +0 -51
- package/es/components/Input/Input.js +0 -73
- package/es/components/Input/PasswordInput.js +0 -84
- package/es/components/Input/PhoneNumberInput.js +0 -113
- package/es/components/Input/input.test.js +0 -80
- package/es/components/Input/old-input.test.js +0 -100
- package/es/components/common.js +0 -339
- package/es/widgets/CashierAccordion/Deposit/PaymentForm/NewTab.js +0 -28
- package/lib/components/AutocompleteInput/index.js +0 -118
- package/lib/components/Input/BirthdateInput.js +0 -195
- package/lib/components/Input/Checkbox.js +0 -65
- package/lib/components/Input/Input.js +0 -87
- package/lib/components/Input/PasswordInput.js +0 -101
- package/lib/components/Input/PhoneNumberInput.js +0 -130
- package/lib/components/Input/input.test.js +0 -89
- package/lib/components/Input/old-input.test.js +0 -107
- package/lib/components/common.js +0 -359
- package/lib/widgets/CashierAccordion/Deposit/PaymentForm/NewTab.js +0 -44
|
@@ -37,10 +37,4 @@ export var parseVenusPoint = function parseVenusPoint(account) {
|
|
|
37
37
|
return {
|
|
38
38
|
account: account.maskedAccount || account.account
|
|
39
39
|
};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export var parseMifinity = function parseMifinity(account) {
|
|
43
|
-
return {
|
|
44
|
-
account: account.maskedAccount || account.account
|
|
45
|
-
};
|
|
46
40
|
};
|
|
@@ -17,7 +17,7 @@ import * as PaymentAccountForms from '../../Payment/PaymentAccountForms';
|
|
|
17
17
|
import Money from '../../../../components/Money';
|
|
18
18
|
import { matchProviderType, getPaymentForm } from '../../Payment';
|
|
19
19
|
import marked from 'marked';
|
|
20
|
-
import Input from '../../../../components/
|
|
20
|
+
import Input from '../../../../components/Deposit/TextInput';
|
|
21
21
|
import MethodMinMax from '../../Payment/MethodMinMax';
|
|
22
22
|
import Icon from '../../../../components/Icon';
|
|
23
23
|
import DelayVisibility from '../../../../components/Deposit/DelayVisibility';
|
|
@@ -97,7 +97,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
var accountExclusions = payments.filter(function (provider) {
|
|
100
|
-
return provider.accountSelection;
|
|
100
|
+
return provider.accountSelection || provider.accountSelectionWithdrawal;
|
|
101
101
|
}).map(function (provider) {
|
|
102
102
|
return provider.providerType.toUpperCase();
|
|
103
103
|
});
|
|
@@ -184,7 +184,6 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
184
184
|
selectedMethod: selectedMethod,
|
|
185
185
|
onSelectMethod: _this2.onSelectMethod,
|
|
186
186
|
methodContent: function methodContent(method) {
|
|
187
|
-
if (method.txType !== selectedMethod.txType) return null;
|
|
188
187
|
return React.createElement(
|
|
189
188
|
Fragment,
|
|
190
189
|
null,
|
|
@@ -201,21 +200,15 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
201
200
|
{ className: 'custom-amount-and-submit' },
|
|
202
201
|
React.createElement(Input, {
|
|
203
202
|
pattern: '[0-9]*',
|
|
204
|
-
required: true,
|
|
205
203
|
className: 'custom-amount',
|
|
206
204
|
name: 'amount',
|
|
207
205
|
type: 'number',
|
|
208
206
|
step: '0.01',
|
|
209
|
-
|
|
207
|
+
placeholder: translate({
|
|
210
208
|
id: 'label.amount'
|
|
211
209
|
}, intl),
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
onChange: function onChange(e) {
|
|
215
|
-
return _this2.setState({
|
|
216
|
-
currentAmount: e.target.value
|
|
217
|
-
});
|
|
218
|
-
}
|
|
210
|
+
showErrorText: false,
|
|
211
|
+
showErrorIcon: errors && errors.amount && errors.amount.length > 0
|
|
219
212
|
}),
|
|
220
213
|
React.createElement(
|
|
221
214
|
Button,
|
|
@@ -239,10 +232,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
239
232
|
React.createElement(
|
|
240
233
|
'div',
|
|
241
234
|
{ className: 'bonus-limit' },
|
|
242
|
-
method && method.limit && React.createElement(MethodMinMax, {
|
|
243
|
-
method: method,
|
|
244
|
-
currency: currency
|
|
245
|
-
})
|
|
235
|
+
method && method.limit && React.createElement(MethodMinMax, { method: method, currency: currency })
|
|
246
236
|
)
|
|
247
237
|
);
|
|
248
238
|
}
|
|
@@ -294,8 +284,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
294
284
|
render: function render(_ref3) {
|
|
295
285
|
var handleSubmit = _ref3.handleSubmit,
|
|
296
286
|
values = _ref3.values,
|
|
297
|
-
change = _ref3.change
|
|
298
|
-
form = _ref3.form;
|
|
287
|
+
change = _ref3.change;
|
|
299
288
|
return React.createElement(
|
|
300
289
|
Fragment,
|
|
301
290
|
null,
|
|
@@ -320,10 +309,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
320
309
|
React.createElement(
|
|
321
310
|
'div',
|
|
322
311
|
{ className: 'account-details' },
|
|
323
|
-
React.createElement(PaymentAccountForm,
|
|
324
|
-
change: form.change,
|
|
325
|
-
values: values
|
|
326
|
-
}))
|
|
312
|
+
React.createElement(PaymentAccountForm, paymentAccountFormProps)
|
|
327
313
|
),
|
|
328
314
|
React.createElement(
|
|
329
315
|
Button,
|
|
@@ -385,7 +371,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
385
371
|
selectedAccount = _state2.selectedAccount;
|
|
386
372
|
|
|
387
373
|
var formExists = !!PaymentAccountForms[getPaymentForm(selectedMethod)];
|
|
388
|
-
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl', 'mifinity'];
|
|
374
|
+
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl', 'ezeewallet', 'mifinity'];
|
|
389
375
|
|
|
390
376
|
if (!formExists || selectedAccount.accountId && skipFillInStep.includes(selectedMethod.providerType.toLowerCase())) {
|
|
391
377
|
return _this3.onSubmit({
|
|
@@ -3,7 +3,6 @@ import compose from 'recompose/compose';
|
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
4
|
import WithValidation from '../../lib/WithValidation';
|
|
5
5
|
import Input from '../../components/Input';
|
|
6
|
-
import Button from '../../components/Button';
|
|
7
6
|
import require from '../../lib/WithValidation/rules/required';
|
|
8
7
|
import password from '../../lib/WithValidation/rules/password';
|
|
9
8
|
import match from '../../lib/WithValidation/rules/match';
|
|
@@ -14,57 +13,71 @@ var ChangePassword = function ChangePassword(_ref) {
|
|
|
14
13
|
var errors = _ref.errors,
|
|
15
14
|
intl = _ref.intl,
|
|
16
15
|
onSubmit = _ref.onSubmit,
|
|
17
|
-
_onBlur = _ref.onBlur
|
|
16
|
+
_onBlur = _ref.onBlur,
|
|
17
|
+
device = _ref.device;
|
|
18
|
+
|
|
19
|
+
var desktopLayout = device === 'Desktop' && __CLIENT__;
|
|
18
20
|
|
|
19
21
|
return React.createElement(
|
|
20
22
|
'form',
|
|
21
23
|
{ className: 'form', onSubmit: onSubmit },
|
|
22
24
|
React.createElement(Input, {
|
|
23
|
-
|
|
25
|
+
className: 'layout-item',
|
|
26
|
+
title: translate({
|
|
24
27
|
id: 'title.old_password',
|
|
25
28
|
defaultMessage: 'Old password'
|
|
26
29
|
}, intl),
|
|
30
|
+
placeholder: translate({ id: 'label.old_password' }, intl),
|
|
27
31
|
type: 'password',
|
|
28
32
|
name: 'CurrentPassword',
|
|
29
|
-
onBlur: function onBlur(
|
|
30
|
-
return _onBlur('CurrentPassword',
|
|
33
|
+
onBlur: function onBlur(value) {
|
|
34
|
+
return _onBlur('CurrentPassword', value);
|
|
31
35
|
},
|
|
32
|
-
|
|
33
|
-
statusText: errors.CurrentPassword && translate({ id: errors.CurrentPassword }, intl),
|
|
36
|
+
error: errors.CurrentPassword && translate({ id: errors.CurrentPassword }, intl),
|
|
34
37
|
autoComplete: 'current-password'
|
|
35
38
|
}),
|
|
36
|
-
React.createElement(Input, {
|
|
37
|
-
label: translate({
|
|
38
|
-
id: 'title.new_password',
|
|
39
|
-
defaultMessage: 'New password'
|
|
40
|
-
}, intl),
|
|
41
|
-
type: 'password',
|
|
42
|
-
name: 'NewPassword',
|
|
43
|
-
onBlur: function onBlur(e) {
|
|
44
|
-
return _onBlur('NewPassword', e.target.value);
|
|
45
|
-
},
|
|
46
|
-
status: errors.NewPassword && 'failure' || 'idle',
|
|
47
|
-
statusText: errors.NewPassword && translate({ id: errors.NewPassword }, intl),
|
|
48
|
-
autoComplete: 'new-password'
|
|
49
|
-
}),
|
|
50
|
-
React.createElement(Input, {
|
|
51
|
-
label: translate({
|
|
52
|
-
id: 'title.confirm_password',
|
|
53
|
-
defaultMessage: 'Confirm password'
|
|
54
|
-
}, intl),
|
|
55
|
-
type: 'password',
|
|
56
|
-
name: 'confirm_password',
|
|
57
|
-
onBlur: function onBlur(e) {
|
|
58
|
-
return _onBlur('confirm_password', e.target.value);
|
|
59
|
-
},
|
|
60
|
-
status: errors.confirm_password && 'failure' || 'idle',
|
|
61
|
-
statusText: errors.confirm_password && translate({ id: errors.confirm_password }, intl),
|
|
62
|
-
autoComplete: 'new-password'
|
|
63
|
-
}),
|
|
64
39
|
React.createElement(
|
|
65
|
-
|
|
66
|
-
{ className: '
|
|
67
|
-
|
|
40
|
+
'div',
|
|
41
|
+
{ className: 'layout-item password' },
|
|
42
|
+
React.createElement(Input, {
|
|
43
|
+
className: desktopLayout ? 'layout-item-6' : 'layout-item-12',
|
|
44
|
+
title: translate({
|
|
45
|
+
id: 'title.new_password',
|
|
46
|
+
defaultMessage: 'New password'
|
|
47
|
+
}, intl),
|
|
48
|
+
placeholder: translate({ id: 'label.new_password' }, intl),
|
|
49
|
+
type: 'password',
|
|
50
|
+
name: 'NewPassword',
|
|
51
|
+
onBlur: function onBlur(value) {
|
|
52
|
+
return _onBlur('NewPassword', value);
|
|
53
|
+
},
|
|
54
|
+
error: errors.NewPassword && translate({ id: errors.NewPassword }, intl),
|
|
55
|
+
autoComplete: 'new-password'
|
|
56
|
+
}),
|
|
57
|
+
React.createElement(Input, {
|
|
58
|
+
className: desktopLayout ? 'layout-item-6' : 'layout-item-12',
|
|
59
|
+
title: translate({
|
|
60
|
+
id: 'title.confirm_password',
|
|
61
|
+
defaultMessage: 'Confirm password'
|
|
62
|
+
}, intl),
|
|
63
|
+
placeholder: translate({ id: 'label.confirm_password' }, intl),
|
|
64
|
+
type: 'password',
|
|
65
|
+
name: 'confirm_password',
|
|
66
|
+
onBlur: function onBlur(value) {
|
|
67
|
+
return _onBlur('confirm_password', value);
|
|
68
|
+
},
|
|
69
|
+
error: errors.confirm_password && translate({ id: errors.confirm_password }, intl),
|
|
70
|
+
autoComplete: 'new-password'
|
|
71
|
+
})
|
|
72
|
+
),
|
|
73
|
+
React.createElement(
|
|
74
|
+
'div',
|
|
75
|
+
{ className: 'layout-item' },
|
|
76
|
+
React.createElement(
|
|
77
|
+
'button',
|
|
78
|
+
{ className: 'button primary wide', type: 'submit' },
|
|
79
|
+
translate({ id: 'action.button.submit_new_password' }, intl)
|
|
80
|
+
)
|
|
68
81
|
)
|
|
69
82
|
);
|
|
70
83
|
};
|
|
@@ -73,7 +86,7 @@ ChangePassword.propTypes = {
|
|
|
73
86
|
/** The form input fields and content */
|
|
74
87
|
children: PropTypes.any,
|
|
75
88
|
/** The above title for each field */
|
|
76
|
-
|
|
89
|
+
title: PropTypes.string,
|
|
77
90
|
/** The name of each field */
|
|
78
91
|
name: PropTypes.string,
|
|
79
92
|
/** Array of validation errors where the error display depends on which invalid rule it breaks */
|
|
@@ -86,7 +99,7 @@ ChangePassword.propTypes = {
|
|
|
86
99
|
|
|
87
100
|
ChangePassword.defaultProps = {
|
|
88
101
|
children: '',
|
|
89
|
-
|
|
102
|
+
title: '',
|
|
90
103
|
name: '',
|
|
91
104
|
error: [],
|
|
92
105
|
onSubmit: Function,
|
|
@@ -99,28 +99,20 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
99
99
|
|
|
100
100
|
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = HistoryWidgetList.__proto__ || Object.getPrototypeOf(HistoryWidgetList)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
|
|
101
101
|
page: 1
|
|
102
|
-
}, _this.getFormattedDate = function (date) {
|
|
103
|
-
return React.createElement(FormattedDate, {
|
|
104
|
-
value: date,
|
|
105
|
-
year: 'numeric',
|
|
106
|
-
month: 'short',
|
|
107
|
-
day: '2-digit',
|
|
108
|
-
hour: '2-digit',
|
|
109
|
-
minute: '2-digit',
|
|
110
|
-
second: '2-digit'
|
|
111
|
-
});
|
|
112
102
|
}, _this.createListInfo = function (item, product, currency, isLoading) {
|
|
113
103
|
if (isLoading) return [[React.createElement(SkeletonLine, { bold: true }), React.createElement(SkeletonLine, null)], [React.createElement(SkeletonLine, { bold: true }), React.createElement(SkeletonLine, null)]];
|
|
114
104
|
|
|
115
|
-
if (product === 'casino')
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
105
|
+
if (product === 'casino') {
|
|
106
|
+
return [[React.createElement(
|
|
107
|
+
'div',
|
|
108
|
+
null,
|
|
109
|
+
item.Game
|
|
110
|
+
), React.createElement(
|
|
111
|
+
'div',
|
|
112
|
+
null,
|
|
113
|
+
getMessage(getByPath(item, 'Transactions[0].Status'))
|
|
114
|
+
)], [React.createElement(Money, { value: item.Win - item.Bet, currency: currency }), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.StartTime + '+00:00')))]];
|
|
115
|
+
} else if (product === 'sportsbook') {
|
|
124
116
|
var selection = item.Transactions[0].Description;
|
|
125
117
|
var odds = item.Transactions[0].Odds;
|
|
126
118
|
var l = item.Transactions.filter(function (t) {
|
|
@@ -136,29 +128,33 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
136
128
|
null,
|
|
137
129
|
getMessage(item.Settled ? 'settled' : 'pendling')
|
|
138
130
|
)], [React.createElement(Money, { value: item.TotalWin - item.TotalWager, currency: currency }), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Created + '+00:00')))]];
|
|
139
|
-
} else if (product === '
|
|
140
|
-
return [[React.createElement(
|
|
141
|
-
'div'
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
item.TournamentId
|
|
146
|
-
), React.createElement(
|
|
131
|
+
} else if (product === 'bingo') {
|
|
132
|
+
return [[React.createElement(Translate, {
|
|
133
|
+
tag: 'div'
|
|
134
|
+
// We use a dynamic key here since we don't know rooms and new once can be added.
|
|
135
|
+
, id: 'label.history.bingoroomid-' + item.RoomId
|
|
136
|
+
}), React.createElement(
|
|
147
137
|
'div',
|
|
148
138
|
null,
|
|
149
|
-
getMessage(item
|
|
150
|
-
)], [React.createElement(Money, {
|
|
139
|
+
getMessage(getByPath(item, 'Transactions[0].TransactionType'))
|
|
140
|
+
)], [React.createElement(Money, {
|
|
141
|
+
value: getByPath(item, 'Transactions[0].Amount'),
|
|
142
|
+
currency: currency
|
|
143
|
+
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Created + '+00:00')))]];
|
|
151
144
|
}
|
|
152
145
|
|
|
153
146
|
return [[React.createElement(
|
|
154
147
|
'div',
|
|
155
148
|
null,
|
|
156
|
-
getMessage(item.Method)
|
|
149
|
+
getMessage(item.Method + item.TransactionType)
|
|
157
150
|
), React.createElement(
|
|
158
151
|
'div',
|
|
159
152
|
null,
|
|
160
153
|
getMessage(item.Status)
|
|
161
|
-
)], [React.createElement(Money, {
|
|
154
|
+
)], [React.createElement(Money, {
|
|
155
|
+
value: item.TransactionType === 'Withdraw' ? -item.Amount : item.Amount,
|
|
156
|
+
currency: currency
|
|
157
|
+
}), React.createElement(FormattedRelativeTime, selectUnit(new Date(item.Started + '+00:00')))]];
|
|
162
158
|
}, _this.createListDetail = function (item, product, currency) {
|
|
163
159
|
if (product === 'casino') {
|
|
164
160
|
return [[React.createElement(
|
|
@@ -166,7 +162,15 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
166
162
|
null,
|
|
167
163
|
'#',
|
|
168
164
|
item.RoundId
|
|
169
|
-
),
|
|
165
|
+
), React.createElement(FormattedDate, {
|
|
166
|
+
value: item.StartTime,
|
|
167
|
+
year: 'numeric',
|
|
168
|
+
month: 'short',
|
|
169
|
+
day: '2-digit',
|
|
170
|
+
hour: '2-digit',
|
|
171
|
+
minute: '2-digit',
|
|
172
|
+
second: '2-digit'
|
|
173
|
+
})], [React.createElement(Translate, {
|
|
170
174
|
tag: 'div',
|
|
171
175
|
id: 'label.history.bet',
|
|
172
176
|
defaultMessage: 'Bet: {value}',
|
|
@@ -192,7 +196,15 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
192
196
|
null,
|
|
193
197
|
'#',
|
|
194
198
|
item.Id
|
|
195
|
-
),
|
|
199
|
+
), React.createElement(FormattedDate, {
|
|
200
|
+
value: item.Created,
|
|
201
|
+
year: 'numeric',
|
|
202
|
+
month: 'short',
|
|
203
|
+
day: '2-digit',
|
|
204
|
+
hour: '2-digit',
|
|
205
|
+
minute: '2-digit',
|
|
206
|
+
second: '2-digit'
|
|
207
|
+
}), React.createElement(
|
|
196
208
|
'div',
|
|
197
209
|
null,
|
|
198
210
|
bets.map(function (b) {
|
|
@@ -217,27 +229,25 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
217
229
|
value: React.createElement(Money, { value: item.TotalWin, currency: currency })
|
|
218
230
|
}
|
|
219
231
|
})]];
|
|
220
|
-
} else if (product === '
|
|
232
|
+
} else if (product === 'bingo') {
|
|
221
233
|
return [[React.createElement(
|
|
222
234
|
'div',
|
|
223
235
|
null,
|
|
224
236
|
'#',
|
|
225
|
-
item.
|
|
226
|
-
),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
})]];
|
|
237
|
+
item.Id
|
|
238
|
+
), React.createElement(FormattedDate, {
|
|
239
|
+
value: item.Created,
|
|
240
|
+
year: 'numeric',
|
|
241
|
+
month: 'short',
|
|
242
|
+
day: '2-digit',
|
|
243
|
+
hour: '2-digit',
|
|
244
|
+
minute: '2-digit',
|
|
245
|
+
second: '2-digit'
|
|
246
|
+
})], React.createElement(
|
|
247
|
+
'div',
|
|
248
|
+
null,
|
|
249
|
+
getMessage(getByPath(item, 'Transactions[0].Status'))
|
|
250
|
+
)];
|
|
241
251
|
}
|
|
242
252
|
|
|
243
253
|
return [[React.createElement(
|
|
@@ -245,7 +255,15 @@ var HistoryWidgetList = function (_React$Component) {
|
|
|
245
255
|
null,
|
|
246
256
|
'#',
|
|
247
257
|
item.Id
|
|
248
|
-
),
|
|
258
|
+
), React.createElement(FormattedDate, {
|
|
259
|
+
value: item.Started,
|
|
260
|
+
year: 'numeric',
|
|
261
|
+
month: 'short',
|
|
262
|
+
day: '2-digit',
|
|
263
|
+
hour: '2-digit',
|
|
264
|
+
minute: '2-digit',
|
|
265
|
+
second: '2-digit'
|
|
266
|
+
})]];
|
|
249
267
|
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
250
268
|
}
|
|
251
269
|
|
|
@@ -12,19 +12,19 @@ export var getMessage = function getMessage(key) {
|
|
|
12
12
|
ZimplerDeposit: React.createElement(Translate, { id: 'label.history.ZimplerDeposit', defaultMessage: 'Zimpler' }),
|
|
13
13
|
SiruDeposit: React.createElement(Translate, { id: 'label.history.SiruDeposit', defaultMessage: 'Siru' }),
|
|
14
14
|
TrustlyDeposit: React.createElement(Translate, { id: 'label.history.TrustlyDeposit', defaultMessage: 'Trustly' }),
|
|
15
|
-
|
|
15
|
+
ZimplerWithdraw: React.createElement(Translate, {
|
|
16
16
|
id: 'label.history.ZimplerWithdrawal',
|
|
17
17
|
defaultMessage: 'Zimpler'
|
|
18
18
|
}),
|
|
19
|
-
|
|
19
|
+
InteracWithdraw: React.createElement(Translate, {
|
|
20
20
|
id: 'label.history.InteracWithdrawal',
|
|
21
21
|
defaultMessage: 'Interac'
|
|
22
22
|
}),
|
|
23
|
-
|
|
23
|
+
CreditcardWithdraw: React.createElement(Translate, {
|
|
24
24
|
id: 'label.history.CreditcardWithdrawal',
|
|
25
25
|
defaultMessage: 'Creditcard'
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
TrustlyWithdraw: React.createElement(Translate, {
|
|
28
28
|
id: 'label.history.TrustlyWithdrawal',
|
|
29
29
|
defaultMessage: 'Trustly'
|
|
30
30
|
}),
|
|
@@ -33,11 +33,11 @@ export var getMessage = function getMessage(key) {
|
|
|
33
33
|
id: 'label.history.PaysafecardDeposit',
|
|
34
34
|
defaultMessage: 'Paysafecard'
|
|
35
35
|
}),
|
|
36
|
-
|
|
36
|
+
AstroPayCardWithdraw: React.createElement(Translate, {
|
|
37
37
|
id: 'label.history.AstroPayCardWithdrawal',
|
|
38
38
|
defaultMessage: 'AstroPayCard'
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
InstadebitWithdraw: React.createElement(Translate, {
|
|
41
41
|
id: 'label.history.InstadebitWithdrawal',
|
|
42
42
|
defaultMessage: 'Instadebit'
|
|
43
43
|
}),
|
|
@@ -55,27 +55,27 @@ export var getMessage = function getMessage(key) {
|
|
|
55
55
|
id: 'label.history.MuchBetterDeposit',
|
|
56
56
|
defaultMessage: 'MuchBetter'
|
|
57
57
|
}),
|
|
58
|
-
|
|
58
|
+
EcoPayzWithdraw: React.createElement(Translate, {
|
|
59
59
|
id: 'label.history.EcoPayzWithdrawal',
|
|
60
60
|
defaultMessage: 'EcoPayz'
|
|
61
61
|
}),
|
|
62
|
-
|
|
62
|
+
NetellerWithdraw: React.createElement(Translate, {
|
|
63
63
|
id: 'label.history.NetellerWithdrawal',
|
|
64
64
|
defaultMessage: 'Neteller'
|
|
65
65
|
}),
|
|
66
66
|
SkrillDeposit: React.createElement(Translate, { id: 'label.history.SkrillDeposit', defaultMessage: 'Skrill' }),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
SkrillWithdraw: React.createElement(Translate, { id: 'label.history.SkrillWithdrawal', defaultMessage: 'Skrill' }),
|
|
68
|
+
IDebitWithdraw: React.createElement(Translate, { id: 'label.history.IDebitWithdrawal', defaultMessage: 'IDebit' }),
|
|
69
|
+
AstroPayBankWithdraw: React.createElement(Translate, {
|
|
70
70
|
id: 'label.history.AstroPayBankWithdrawal',
|
|
71
71
|
defaultMessage: 'AstroPayBank'
|
|
72
72
|
}),
|
|
73
|
-
|
|
73
|
+
MuchBetterWithdraw: React.createElement(Translate, {
|
|
74
74
|
id: 'label.history.MuchBetterWithdrawal',
|
|
75
75
|
defaultMessage: 'MuchBetter'
|
|
76
76
|
}),
|
|
77
77
|
SwishDeposit: React.createElement(Translate, { id: 'label.history.SwishDeposit', defaultMessage: 'Swish' }),
|
|
78
|
-
|
|
78
|
+
JetonWithdraw: React.createElement(Translate, {
|
|
79
79
|
id: 'label.history.JetonWithdrawal',
|
|
80
80
|
defaultMessage: 'JetonWithdrawal'
|
|
81
81
|
}),
|
|
@@ -87,7 +87,7 @@ export var getMessage = function getMessage(key) {
|
|
|
87
87
|
id: 'label.history.BestPayDeposit',
|
|
88
88
|
defaultMessage: 'BestPayDeposit'
|
|
89
89
|
}),
|
|
90
|
-
|
|
90
|
+
BestPayWithdraw: React.createElement(Translate, {
|
|
91
91
|
id: 'label.history.BestPayDeposit',
|
|
92
92
|
defaultMessage: 'BestPayDeposit'
|
|
93
93
|
}),
|
|
@@ -95,11 +95,11 @@ export var getMessage = function getMessage(key) {
|
|
|
95
95
|
id: 'label.history.CryptoCurrencyDeposit',
|
|
96
96
|
defaultMessage: 'CryptoCurrencyDeposit'
|
|
97
97
|
}),
|
|
98
|
-
|
|
98
|
+
CryptoCurrencyWithdraw: React.createElement(Translate, {
|
|
99
99
|
id: 'label.history.CryptoCurrencyWithdrawal',
|
|
100
100
|
defaultMessage: 'CryptoCurrencyWithdrawal'
|
|
101
101
|
}),
|
|
102
|
-
|
|
102
|
+
BankLocalWithdraw: React.createElement(Translate, {
|
|
103
103
|
id: 'label.history.BankLocalWithdrawal',
|
|
104
104
|
defaultMessage: 'BankLocalWithdrawal'
|
|
105
105
|
}),
|
|
@@ -114,10 +114,7 @@ export var getMessage = function getMessage(key) {
|
|
|
114
114
|
id: 'label.history.product-sportsbook',
|
|
115
115
|
defaultMessage: 'Sportsbook'
|
|
116
116
|
}),
|
|
117
|
-
|
|
118
|
-
id: 'label.history.product-fantasy',
|
|
119
|
-
defaultMessage: 'Fantasy sports'
|
|
120
|
-
}),
|
|
117
|
+
bingo: React.createElement(Translate, { id: 'label.history.product-bingo', defaultMessage: 'Bingo' }),
|
|
121
118
|
|
|
122
119
|
// Status
|
|
123
120
|
initiated: React.createElement(Translate, {
|
|
@@ -11,7 +11,6 @@ import compose from 'recompose/compose';
|
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
import WithValidation from '../../lib/WithValidation';
|
|
13
13
|
import Input from '../../components/Input';
|
|
14
|
-
import Button from '../../components/Button';
|
|
15
14
|
import require from '../../lib/WithValidation/rules/required';
|
|
16
15
|
import marked from 'marked';
|
|
17
16
|
import PropTypes from 'prop-types';
|
|
@@ -35,8 +34,7 @@ var RequestResetPassword = function (_Component) {
|
|
|
35
34
|
errors = _props.errors,
|
|
36
35
|
intl = _props.intl,
|
|
37
36
|
onSubmit = _props.onSubmit,
|
|
38
|
-
_onBlur = _props.onBlur
|
|
39
|
-
isLoading = _props.isLoading;
|
|
37
|
+
_onBlur = _props.onBlur;
|
|
40
38
|
|
|
41
39
|
|
|
42
40
|
if (status == 'COMPLETE') {
|
|
@@ -47,22 +45,25 @@ var RequestResetPassword = function (_Component) {
|
|
|
47
45
|
'form',
|
|
48
46
|
{ className: 'form', onSubmit: onSubmit },
|
|
49
47
|
React.createElement(Input, {
|
|
50
|
-
|
|
48
|
+
className: 'layout-item send-email-input',
|
|
49
|
+
title: translate({ id: 'label.username_or_email' }, intl),
|
|
51
50
|
type: 'text',
|
|
52
51
|
name: 'UsernameOrEmail',
|
|
53
|
-
onBlur: function onBlur(
|
|
54
|
-
return _onBlur('UsernameOrEmail',
|
|
52
|
+
onBlur: function onBlur(value) {
|
|
53
|
+
return _onBlur('UsernameOrEmail', value);
|
|
55
54
|
},
|
|
56
|
-
|
|
57
|
-
statusText: errors.UsernameOrEmail && translate({ id: errors.UsernameOrEmail }, intl)
|
|
55
|
+
error: errors.UsernameOrEmail && translate({ id: errors.UsernameOrEmail }, intl)
|
|
58
56
|
}),
|
|
59
57
|
React.createElement(
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
'div',
|
|
59
|
+
{ className: 'layout-item' },
|
|
60
|
+
React.createElement(
|
|
61
|
+
'button',
|
|
62
|
+
{
|
|
63
|
+
className: 'button primary request-reset-password-button',
|
|
64
|
+
type: 'submit' },
|
|
65
|
+
translate({ id: 'label.request_reset_password' }, intl)
|
|
66
|
+
)
|
|
66
67
|
)
|
|
67
68
|
);
|
|
68
69
|
}
|
|
@@ -11,11 +11,11 @@ import compose from 'recompose/compose';
|
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
import WithValidation from '../../lib/WithValidation';
|
|
13
13
|
import Input from '../../components/Input';
|
|
14
|
-
import Button from '../../components/Button';
|
|
15
14
|
import require from '../../lib/WithValidation/rules/required';
|
|
16
15
|
import password from '../../lib/WithValidation/rules/password';
|
|
17
16
|
import match from '../../lib/WithValidation/rules/match';
|
|
18
17
|
import translate from '../../lib/utils/translate';
|
|
18
|
+
import Button from '../../components/Button/index';
|
|
19
19
|
|
|
20
20
|
import PropTypes from 'prop-types';
|
|
21
21
|
|
|
@@ -36,39 +36,43 @@ var ResetPassword = function (_Component) {
|
|
|
36
36
|
intl = _props.intl,
|
|
37
37
|
onSubmit = _props.onSubmit,
|
|
38
38
|
_onBlur = _props.onBlur,
|
|
39
|
-
|
|
39
|
+
disabled = _props.disabled;
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
return React.createElement(
|
|
43
43
|
'form',
|
|
44
44
|
{ className: 'form', onSubmit: onSubmit },
|
|
45
45
|
React.createElement(Input, {
|
|
46
|
-
|
|
46
|
+
className: 'layout-item',
|
|
47
|
+
placeholder: translate({ id: 'label.new_password' }, intl),
|
|
47
48
|
type: 'password',
|
|
48
49
|
name: 'NewPassword',
|
|
49
|
-
onBlur: function onBlur(
|
|
50
|
-
return _onBlur('NewPassword',
|
|
50
|
+
onBlur: function onBlur(value) {
|
|
51
|
+
return _onBlur('NewPassword', value);
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
-
statusText: errors.NewPassword && translate({ id: errors.NewPassword }, intl)
|
|
53
|
+
error: errors.NewPassword && translate({ id: errors.NewPassword }, intl)
|
|
54
54
|
}),
|
|
55
55
|
React.createElement(Input, {
|
|
56
|
-
|
|
56
|
+
className: 'layout-item',
|
|
57
|
+
placeholder: translate({ id: 'label.confirm_password' }, intl),
|
|
57
58
|
type: 'password',
|
|
58
59
|
name: 'confirm_password',
|
|
59
|
-
onBlur: function onBlur(
|
|
60
|
-
return _onBlur('confirm_password',
|
|
60
|
+
onBlur: function onBlur(value) {
|
|
61
|
+
return _onBlur('confirm_password', value);
|
|
61
62
|
},
|
|
62
|
-
|
|
63
|
-
statusText: errors.confirm_password && translate({ id: errors.confirm_password }, intl)
|
|
63
|
+
error: errors.confirm_password && translate({ id: errors.confirm_password }, intl)
|
|
64
64
|
}),
|
|
65
65
|
React.createElement(
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
'div',
|
|
67
|
+
{ className: 'layout-item' },
|
|
68
|
+
React.createElement(
|
|
69
|
+
Button,
|
|
70
|
+
{
|
|
71
|
+
isLoading: disabled,
|
|
72
|
+
className: 'button primary reset-password-button',
|
|
73
|
+
type: 'submit' },
|
|
74
|
+
translate({ id: 'label.reset_password' }, intl)
|
|
75
|
+
)
|
|
72
76
|
)
|
|
73
77
|
);
|
|
74
78
|
}
|