tg-core-components 6.0.1-paramount-withdrawal.1 → 6.0.4-BG-1532-emoji-flags.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/Input/Input.js +1 -1
- package/es/components/Input/PhoneNumberInput.js +7 -1
- package/es/widgets/BonusWidget/BonusCode.js +2 -2
- package/es/widgets/CashierAccordion/Deposit/DepositWidget/index.js +27 -54
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +8 -69
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -6
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +1 -1
- package/es/widgets/ResponsibleGamingWidget/messages.js +1 -1
- package/lib/components/Input/Input.js +1 -1
- package/lib/components/Input/PhoneNumberInput.js +7 -1
- package/lib/widgets/BonusWidget/BonusCode.js +2 -2
- package/lib/widgets/CashierAccordion/Deposit/DepositWidget/index.js +27 -54
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +9 -70
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +0 -6
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +1 -1
- package/lib/widgets/ResponsibleGamingWidget/messages.js +1 -1
- package/package.json +2 -2
|
@@ -71,7 +71,10 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
71
71
|
callingCodeSelect.focus.onBlur();
|
|
72
72
|
_onBlur(e);
|
|
73
73
|
},
|
|
74
|
-
status: props.status
|
|
74
|
+
status: props.status,
|
|
75
|
+
leadingLane: [props.selectIcon].filter(function (i) {
|
|
76
|
+
return i;
|
|
77
|
+
}) }),
|
|
75
78
|
(props.callingCodes || []).map(function (c, i) {
|
|
76
79
|
return React.createElement(
|
|
77
80
|
Select.Option,
|
|
@@ -97,6 +100,9 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
97
100
|
_onBlur(e);
|
|
98
101
|
},
|
|
99
102
|
status: props.status,
|
|
103
|
+
leadingLane: [props.inputIcon].filter(function (i) {
|
|
104
|
+
return i;
|
|
105
|
+
}),
|
|
100
106
|
trailingLane: [statusIcons[props.status]].filter(function (i) {
|
|
101
107
|
return i;
|
|
102
108
|
})
|
|
@@ -75,10 +75,10 @@ var BonusCodeForm = function BonusCodeForm(_ref3) {
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
BonusCodeForm = compose(WithValidation(rules), injectIntl)(BonusCodeForm);
|
|
79
|
-
|
|
80
78
|
var rules = {
|
|
81
79
|
bonusCode: [[require, 'error.empty.bonusCode']]
|
|
82
80
|
};
|
|
83
81
|
|
|
82
|
+
BonusCodeForm = compose(WithValidation(rules), injectIntl)(BonusCodeForm);
|
|
83
|
+
|
|
84
84
|
export default Bonus;
|
|
@@ -544,45 +544,18 @@ var DepositWidget = function (_Component) {
|
|
|
544
544
|
var _initialiseProps = function _initialiseProps() {
|
|
545
545
|
var _this3 = this;
|
|
546
546
|
|
|
547
|
-
this.componentDidUpdate = function (prevProps) {
|
|
548
|
-
if (prevProps.shouldRenderSgaWarning !== _this3.props.shouldRenderSgaWarning) {
|
|
549
|
-
var _state2 = _this3.state,
|
|
550
|
-
currentAmount = _state2.currentAmount,
|
|
551
|
-
bonusCode = _state2.bonusCode;
|
|
552
|
-
|
|
553
|
-
_this3.handleNextStep({ amount: currentAmount, bonusCode: bonusCode });
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
|
|
557
547
|
this.handleNextStep = function (_ref6) {
|
|
558
548
|
var amount = _ref6.amount,
|
|
559
549
|
bonusCode = _ref6.bonusCode;
|
|
560
|
-
var
|
|
561
|
-
selectedMethod =
|
|
562
|
-
preDepositBonus =
|
|
563
|
-
selectedAccount =
|
|
564
|
-
var _props2 = _this3.props,
|
|
565
|
-
paymentStats = _props2.paymentStats,
|
|
566
|
-
renderSgaWarningPopup = _props2.renderSgaWarningPopup,
|
|
567
|
-
shouldRenderSgaWarning = _props2.shouldRenderSgaWarning;
|
|
550
|
+
var _state2 = _this3.state,
|
|
551
|
+
selectedMethod = _state2.selectedMethod,
|
|
552
|
+
preDepositBonus = _state2.preDepositBonus,
|
|
553
|
+
selectedAccount = _state2.selectedAccount;
|
|
568
554
|
|
|
569
555
|
|
|
570
556
|
var formExists = !!PaymentAccountForms[getPaymentForm(selectedMethod)];
|
|
571
557
|
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl'];
|
|
572
558
|
|
|
573
|
-
var remainingAmount = 5000 - Number(paymentStats.TotalDepositLast7Days);
|
|
574
|
-
var renderSgaWarning = shouldRenderSgaWarning && Number(paymentStats.TotalDepositLast7Days) + Number(amount) > 5000;
|
|
575
|
-
|
|
576
|
-
if (renderSgaWarning) {
|
|
577
|
-
_this3.setState({
|
|
578
|
-
buttonLoading: null,
|
|
579
|
-
currentAmount: amount,
|
|
580
|
-
bonusCode: bonusCode
|
|
581
|
-
});
|
|
582
|
-
renderSgaWarningPopup(remainingAmount);
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
559
|
if (!formExists || selectedAccount.accountId && skipFillInStep.includes(selectedMethod.providerType.toLowerCase())) {
|
|
587
560
|
return _this3.onSubmit({
|
|
588
561
|
currentAmount: amount,
|
|
@@ -600,9 +573,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
600
573
|
};
|
|
601
574
|
|
|
602
575
|
this.handleBackStep = function () {
|
|
603
|
-
var
|
|
604
|
-
currentStep =
|
|
605
|
-
buttonLoading =
|
|
576
|
+
var _state3 = _this3.state,
|
|
577
|
+
currentStep = _state3.currentStep,
|
|
578
|
+
buttonLoading = _state3.buttonLoading;
|
|
606
579
|
|
|
607
580
|
|
|
608
581
|
if (buttonLoading === 'fill-in-submit') return null;
|
|
@@ -619,13 +592,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
619
592
|
};
|
|
620
593
|
|
|
621
594
|
this.onSubmit = function (data) {
|
|
622
|
-
var
|
|
623
|
-
onSubmit =
|
|
624
|
-
countries =
|
|
625
|
-
user =
|
|
626
|
-
var
|
|
627
|
-
selectedMethod =
|
|
628
|
-
swishNumber =
|
|
595
|
+
var _props2 = _this3.props,
|
|
596
|
+
onSubmit = _props2.onSubmit,
|
|
597
|
+
countries = _props2.countries,
|
|
598
|
+
user = _props2.user;
|
|
599
|
+
var _state4 = _this3.state,
|
|
600
|
+
selectedMethod = _state4.selectedMethod,
|
|
601
|
+
swishNumber = _state4.swishNumber;
|
|
629
602
|
|
|
630
603
|
|
|
631
604
|
var submitData = _extends({}, _this3.state, data);
|
|
@@ -658,12 +631,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
658
631
|
|
|
659
632
|
this.onSelectMethod = function (_ref7) {
|
|
660
633
|
var method = _ref7.method;
|
|
661
|
-
var
|
|
662
|
-
currency =
|
|
663
|
-
paymentStats =
|
|
664
|
-
remainingDepositLimit =
|
|
665
|
-
payments =
|
|
666
|
-
shouldAutoFocus =
|
|
634
|
+
var _props3 = _this3.props,
|
|
635
|
+
currency = _props3.currency,
|
|
636
|
+
paymentStats = _props3.paymentStats,
|
|
637
|
+
remainingDepositLimit = _props3.remainingDepositLimit,
|
|
638
|
+
payments = _props3.payments,
|
|
639
|
+
shouldAutoFocus = _props3.shouldAutoFocus;
|
|
667
640
|
|
|
668
641
|
|
|
669
642
|
if (shouldAutoFocus) {
|
|
@@ -728,9 +701,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
728
701
|
};
|
|
729
702
|
|
|
730
703
|
this.getMinDepositBonusAmount = function () {
|
|
731
|
-
var
|
|
732
|
-
bonuses =
|
|
733
|
-
currency =
|
|
704
|
+
var _props4 = _this3.props,
|
|
705
|
+
bonuses = _props4.bonuses,
|
|
706
|
+
currency = _props4.currency;
|
|
734
707
|
var bonusCode = _this3.state.bonusCode;
|
|
735
708
|
|
|
736
709
|
|
|
@@ -753,10 +726,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
753
726
|
};
|
|
754
727
|
|
|
755
728
|
this.getSpainRemainingDepositAmount = function () {
|
|
756
|
-
var
|
|
757
|
-
jurisdiction =
|
|
758
|
-
hasIdApproved =
|
|
759
|
-
paymentStats =
|
|
729
|
+
var _props5 = _this3.props,
|
|
730
|
+
jurisdiction = _props5.jurisdiction,
|
|
731
|
+
hasIdApproved = _props5.hasIdApproved,
|
|
732
|
+
paymentStats = _props5.paymentStats;
|
|
760
733
|
|
|
761
734
|
return jurisdiction.toLowerCase() === 'es' && !hasIdApproved && (150 - parseFloat(paymentStats.TotalDeposit) < 0 ? 0 : 150 - parseFloat(paymentStats.TotalDeposit));
|
|
762
735
|
};
|
|
@@ -665,7 +665,8 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
665
665
|
var EzeeWallet = function EzeeWallet(_ref14) {
|
|
666
666
|
var account = _ref14.account,
|
|
667
667
|
intl = _ref14.intl,
|
|
668
|
-
method = _ref14.method
|
|
668
|
+
method = _ref14.method,
|
|
669
|
+
change = _ref14.change;
|
|
669
670
|
|
|
670
671
|
return React.createElement(
|
|
671
672
|
'div',
|
|
@@ -678,12 +679,18 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
678
679
|
defaultMessage: 'Wallet ID'
|
|
679
680
|
}, intl),
|
|
680
681
|
disabled: account.accountId,
|
|
682
|
+
onChange: function onChange(_, walletId) {
|
|
683
|
+
return change('walletId', walletId);
|
|
684
|
+
},
|
|
681
685
|
value: account.maskedAccount
|
|
682
686
|
}),
|
|
683
687
|
method === 'deposit' && React.createElement(Input, {
|
|
684
688
|
required: true,
|
|
685
689
|
type: 'password',
|
|
686
690
|
name: 'walletPassword',
|
|
691
|
+
onChange: function onChange(_, walletPassword) {
|
|
692
|
+
return change('walletPassword', walletPassword);
|
|
693
|
+
},
|
|
687
694
|
label: translate({
|
|
688
695
|
id: 'cashier.details.walletPassword',
|
|
689
696
|
defaultMessage: 'Wallet password'
|
|
@@ -692,69 +699,6 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
692
699
|
);
|
|
693
700
|
};
|
|
694
701
|
|
|
695
|
-
var Paramount = function Paramount(_ref15) {
|
|
696
|
-
var account = _ref15.account,
|
|
697
|
-
intl = _ref15.intl,
|
|
698
|
-
values = _ref15.values,
|
|
699
|
-
change = _ref15.change,
|
|
700
|
-
detail = _ref15.detail;
|
|
701
|
-
|
|
702
|
-
var methodDetails = {
|
|
703
|
-
securityQuestions: getByPath(detail, 'config.securityQuestions', [])
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
return React.createElement(
|
|
707
|
-
'div',
|
|
708
|
-
{ className: 'payment-account-info' },
|
|
709
|
-
methodDetails.securityQuestions.length > 0 && React.createElement(
|
|
710
|
-
Select,
|
|
711
|
-
{
|
|
712
|
-
required: true,
|
|
713
|
-
disabled: account.accountId,
|
|
714
|
-
name: 'securityQuestion',
|
|
715
|
-
value: values['securityQuestion'],
|
|
716
|
-
onChange: function onChange(_, securityQuestion) {
|
|
717
|
-
return change('securityQuestion', securityQuestion);
|
|
718
|
-
},
|
|
719
|
-
label: translate({
|
|
720
|
-
id: 'cashier.details.securityQuestion',
|
|
721
|
-
defaultMessage: 'Security question'
|
|
722
|
-
}, intl) },
|
|
723
|
-
!values['securityQuestion'] && React.createElement(
|
|
724
|
-
Select.Option,
|
|
725
|
-
{ value: '', selected: true, disabled: true },
|
|
726
|
-
translate({
|
|
727
|
-
id: 'cashier.details.select-securityQuestion',
|
|
728
|
-
defaultMessage: 'Select security question'
|
|
729
|
-
}, intl)
|
|
730
|
-
),
|
|
731
|
-
methodDetails.securityQuestions.map(function (securityQuestion) {
|
|
732
|
-
return React.createElement(
|
|
733
|
-
Select.Option,
|
|
734
|
-
{ value: securityQuestion.value },
|
|
735
|
-
translate({
|
|
736
|
-
id: securityQuestion.id,
|
|
737
|
-
defaultMessage: securityQuestion.value
|
|
738
|
-
}, intl)
|
|
739
|
-
);
|
|
740
|
-
})
|
|
741
|
-
),
|
|
742
|
-
React.createElement(Input, {
|
|
743
|
-
required: true,
|
|
744
|
-
type: 'password',
|
|
745
|
-
name: 'securityAnswer',
|
|
746
|
-
value: values['securityAnswer'],
|
|
747
|
-
onChange: function onChange(_, securityAnswer) {
|
|
748
|
-
return change('securityAnswer', securityAnswer);
|
|
749
|
-
},
|
|
750
|
-
label: translate({
|
|
751
|
-
id: 'cashier.details.securityAnswer',
|
|
752
|
-
defaultMessage: 'Security answer'
|
|
753
|
-
}, intl)
|
|
754
|
-
})
|
|
755
|
-
);
|
|
756
|
-
};
|
|
757
|
-
|
|
758
702
|
export var SkrillDeposit = {
|
|
759
703
|
component: injectIntl(Email),
|
|
760
704
|
parser: Parser.parseEmail
|
|
@@ -916,11 +860,6 @@ export var EzeeWalletWithdrawal = {
|
|
|
916
860
|
parser: identity
|
|
917
861
|
};
|
|
918
862
|
|
|
919
|
-
export var ParamountWithdrawal = {
|
|
920
|
-
component: injectIntl(Paramount),
|
|
921
|
-
parser: Parser.parseParamount
|
|
922
|
-
};
|
|
923
|
-
|
|
924
863
|
export var MiFinityEWalletWithdrawal = {
|
|
925
864
|
component: injectIntl(Mifinity),
|
|
926
865
|
parser: identity
|
|
@@ -43,10 +43,4 @@ export var parseMifinity = function parseMifinity(account) {
|
|
|
43
43
|
return {
|
|
44
44
|
account: account.maskedAccount || account.account
|
|
45
45
|
};
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export var parseParamount = function parseParamount(account) {
|
|
49
|
-
return {
|
|
50
|
-
securityQuestion: account.maskedAccount || account.account
|
|
51
|
-
};
|
|
52
46
|
};
|
|
@@ -375,7 +375,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
375
375
|
showCurrentValue && typeof getByPath(currentLimit, 'Amount') === 'number' && React.createElement(
|
|
376
376
|
'div',
|
|
377
377
|
{ className: 'ResponsibleGamingWidget__timespan-row' },
|
|
378
|
-
|
|
378
|
+
messages.get('message.responsiblegaming.current-limit'),
|
|
379
379
|
messages.getValue(currentLimit.Amount)
|
|
380
380
|
)
|
|
381
381
|
);
|
|
@@ -328,7 +328,7 @@ var messages = (_messages = {}, _defineProperty(_messages, 'header.responsible-g
|
|
|
328
328
|
Product = _ref24.Product;
|
|
329
329
|
return translate({
|
|
330
330
|
id: 'label.responsible-gaming.admin-limits-row',
|
|
331
|
-
defaultMessage: '{Timespan, select,\n 0 {Transaction}\n 1 {Daily}\n 7 {Weekly}\n 30 {Monthly}\n }: {Amount} {Product, select,\n Casino {(Only applies for casino games)}\n other {}\n }',
|
|
331
|
+
defaultMessage: '{Timespan, select,\n 0 {Transaction}\n 1 {Daily}\n 7 {Weekly}\n 30 {Monthly}\n other {Other}\n }: {Amount} {Product, select,\n Casino {(Only applies for casino games)}\n other {}\n }',
|
|
332
332
|
values: { Timespan: Timespan, Amount: Amount, Product: Product }
|
|
333
333
|
}, intl);
|
|
334
334
|
}), _messages);
|
|
@@ -25,7 +25,7 @@ var TGInput = function TGInput(_ref) {
|
|
|
25
25
|
props = _objectWithoutProperties(_ref, ['icon']);
|
|
26
26
|
|
|
27
27
|
var input = {
|
|
28
|
-
id: (0, _common.useId)(),
|
|
28
|
+
id: props.id || (0, _common.useId)(),
|
|
29
29
|
value: (0, _common.useValue)(props.value),
|
|
30
30
|
focus: (0, _common.useFocus)(),
|
|
31
31
|
touched: (0, _common.useTouched)(),
|
|
@@ -88,7 +88,10 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
88
88
|
callingCodeSelect.focus.onBlur();
|
|
89
89
|
_onBlur(e);
|
|
90
90
|
},
|
|
91
|
-
status: props.status
|
|
91
|
+
status: props.status,
|
|
92
|
+
leadingLane: [props.selectIcon].filter(function (i) {
|
|
93
|
+
return i;
|
|
94
|
+
}) }),
|
|
92
95
|
(props.callingCodes || []).map(function (c, i) {
|
|
93
96
|
return _react2.default.createElement(
|
|
94
97
|
_common.Select.Option,
|
|
@@ -114,6 +117,9 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
114
117
|
_onBlur(e);
|
|
115
118
|
},
|
|
116
119
|
status: props.status,
|
|
120
|
+
leadingLane: [props.inputIcon].filter(function (i) {
|
|
121
|
+
return i;
|
|
122
|
+
}),
|
|
117
123
|
trailingLane: [_common.statusIcons[props.status]].filter(function (i) {
|
|
118
124
|
return i;
|
|
119
125
|
})
|
|
@@ -104,10 +104,10 @@ var BonusCodeForm = function BonusCodeForm(_ref3) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
BonusCodeForm = (0, _compose2.default)((0, _WithValidation2.default)(rules), _reactIntl.injectIntl)(BonusCodeForm);
|
|
108
|
-
|
|
109
107
|
var rules = {
|
|
110
108
|
bonusCode: [[_required2.default, 'error.empty.bonusCode']]
|
|
111
109
|
};
|
|
112
110
|
|
|
111
|
+
BonusCodeForm = (0, _compose2.default)((0, _WithValidation2.default)(rules), _reactIntl.injectIntl)(BonusCodeForm);
|
|
112
|
+
|
|
113
113
|
exports.default = Bonus;
|
|
@@ -609,45 +609,18 @@ var DepositWidget = function (_Component) {
|
|
|
609
609
|
var _initialiseProps = function _initialiseProps() {
|
|
610
610
|
var _this3 = this;
|
|
611
611
|
|
|
612
|
-
this.componentDidUpdate = function (prevProps) {
|
|
613
|
-
if (prevProps.shouldRenderSgaWarning !== _this3.props.shouldRenderSgaWarning) {
|
|
614
|
-
var _state2 = _this3.state,
|
|
615
|
-
currentAmount = _state2.currentAmount,
|
|
616
|
-
bonusCode = _state2.bonusCode;
|
|
617
|
-
|
|
618
|
-
_this3.handleNextStep({ amount: currentAmount, bonusCode: bonusCode });
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
|
|
622
612
|
this.handleNextStep = function (_ref6) {
|
|
623
613
|
var amount = _ref6.amount,
|
|
624
614
|
bonusCode = _ref6.bonusCode;
|
|
625
|
-
var
|
|
626
|
-
selectedMethod =
|
|
627
|
-
preDepositBonus =
|
|
628
|
-
selectedAccount =
|
|
629
|
-
var _props2 = _this3.props,
|
|
630
|
-
paymentStats = _props2.paymentStats,
|
|
631
|
-
renderSgaWarningPopup = _props2.renderSgaWarningPopup,
|
|
632
|
-
shouldRenderSgaWarning = _props2.shouldRenderSgaWarning;
|
|
615
|
+
var _state2 = _this3.state,
|
|
616
|
+
selectedMethod = _state2.selectedMethod,
|
|
617
|
+
preDepositBonus = _state2.preDepositBonus,
|
|
618
|
+
selectedAccount = _state2.selectedAccount;
|
|
633
619
|
|
|
634
620
|
|
|
635
621
|
var formExists = !!PaymentAccountForms[(0, _Payment.getPaymentForm)(selectedMethod)];
|
|
636
622
|
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl'];
|
|
637
623
|
|
|
638
|
-
var remainingAmount = 5000 - Number(paymentStats.TotalDepositLast7Days);
|
|
639
|
-
var renderSgaWarning = shouldRenderSgaWarning && Number(paymentStats.TotalDepositLast7Days) + Number(amount) > 5000;
|
|
640
|
-
|
|
641
|
-
if (renderSgaWarning) {
|
|
642
|
-
_this3.setState({
|
|
643
|
-
buttonLoading: null,
|
|
644
|
-
currentAmount: amount,
|
|
645
|
-
bonusCode: bonusCode
|
|
646
|
-
});
|
|
647
|
-
renderSgaWarningPopup(remainingAmount);
|
|
648
|
-
return;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
624
|
if (!formExists || selectedAccount.accountId && skipFillInStep.includes(selectedMethod.providerType.toLowerCase())) {
|
|
652
625
|
return _this3.onSubmit({
|
|
653
626
|
currentAmount: amount,
|
|
@@ -665,9 +638,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
665
638
|
};
|
|
666
639
|
|
|
667
640
|
this.handleBackStep = function () {
|
|
668
|
-
var
|
|
669
|
-
currentStep =
|
|
670
|
-
buttonLoading =
|
|
641
|
+
var _state3 = _this3.state,
|
|
642
|
+
currentStep = _state3.currentStep,
|
|
643
|
+
buttonLoading = _state3.buttonLoading;
|
|
671
644
|
|
|
672
645
|
|
|
673
646
|
if (buttonLoading === 'fill-in-submit') return null;
|
|
@@ -684,13 +657,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
684
657
|
};
|
|
685
658
|
|
|
686
659
|
this.onSubmit = function (data) {
|
|
687
|
-
var
|
|
688
|
-
onSubmit =
|
|
689
|
-
countries =
|
|
690
|
-
user =
|
|
691
|
-
var
|
|
692
|
-
selectedMethod =
|
|
693
|
-
swishNumber =
|
|
660
|
+
var _props2 = _this3.props,
|
|
661
|
+
onSubmit = _props2.onSubmit,
|
|
662
|
+
countries = _props2.countries,
|
|
663
|
+
user = _props2.user;
|
|
664
|
+
var _state4 = _this3.state,
|
|
665
|
+
selectedMethod = _state4.selectedMethod,
|
|
666
|
+
swishNumber = _state4.swishNumber;
|
|
694
667
|
|
|
695
668
|
|
|
696
669
|
var submitData = _extends({}, _this3.state, data);
|
|
@@ -723,12 +696,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
723
696
|
|
|
724
697
|
this.onSelectMethod = function (_ref7) {
|
|
725
698
|
var method = _ref7.method;
|
|
726
|
-
var
|
|
727
|
-
currency =
|
|
728
|
-
paymentStats =
|
|
729
|
-
remainingDepositLimit =
|
|
730
|
-
payments =
|
|
731
|
-
shouldAutoFocus =
|
|
699
|
+
var _props3 = _this3.props,
|
|
700
|
+
currency = _props3.currency,
|
|
701
|
+
paymentStats = _props3.paymentStats,
|
|
702
|
+
remainingDepositLimit = _props3.remainingDepositLimit,
|
|
703
|
+
payments = _props3.payments,
|
|
704
|
+
shouldAutoFocus = _props3.shouldAutoFocus;
|
|
732
705
|
|
|
733
706
|
|
|
734
707
|
if (shouldAutoFocus) {
|
|
@@ -793,9 +766,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
793
766
|
};
|
|
794
767
|
|
|
795
768
|
this.getMinDepositBonusAmount = function () {
|
|
796
|
-
var
|
|
797
|
-
bonuses =
|
|
798
|
-
currency =
|
|
769
|
+
var _props4 = _this3.props,
|
|
770
|
+
bonuses = _props4.bonuses,
|
|
771
|
+
currency = _props4.currency;
|
|
799
772
|
var bonusCode = _this3.state.bonusCode;
|
|
800
773
|
|
|
801
774
|
|
|
@@ -818,10 +791,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
818
791
|
};
|
|
819
792
|
|
|
820
793
|
this.getSpainRemainingDepositAmount = function () {
|
|
821
|
-
var
|
|
822
|
-
jurisdiction =
|
|
823
|
-
hasIdApproved =
|
|
824
|
-
paymentStats =
|
|
794
|
+
var _props5 = _this3.props,
|
|
795
|
+
jurisdiction = _props5.jurisdiction,
|
|
796
|
+
hasIdApproved = _props5.hasIdApproved,
|
|
797
|
+
paymentStats = _props5.paymentStats;
|
|
825
798
|
|
|
826
799
|
return jurisdiction.toLowerCase() === 'es' && !hasIdApproved && (150 - parseFloat(paymentStats.TotalDeposit) < 0 ? 0 : 150 - parseFloat(paymentStats.TotalDeposit));
|
|
827
800
|
};
|
|
@@ -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.
|
|
6
|
+
exports.InteracWithdrawal = exports.PaysafecardWithdrawal = exports.InstadebitWithdrawal = exports.IDebitWithdrawal = exports.IdealWithdrawal = exports.EProPaymentWallWithdrawal = exports.EcoPayzWithdrawal = exports.TrustlyWithdrawal = exports.BankWithdrawal = exports.ZimplerWithdrawal = exports.MiFinityEWalletWithdrawal = 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;
|
|
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
|
|
|
@@ -702,7 +702,8 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
702
702
|
var EzeeWallet = function EzeeWallet(_ref14) {
|
|
703
703
|
var account = _ref14.account,
|
|
704
704
|
intl = _ref14.intl,
|
|
705
|
-
method = _ref14.method
|
|
705
|
+
method = _ref14.method,
|
|
706
|
+
change = _ref14.change;
|
|
706
707
|
|
|
707
708
|
return _react2.default.createElement(
|
|
708
709
|
'div',
|
|
@@ -715,12 +716,18 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
715
716
|
defaultMessage: 'Wallet ID'
|
|
716
717
|
}, intl),
|
|
717
718
|
disabled: account.accountId,
|
|
719
|
+
onChange: function onChange(_, walletId) {
|
|
720
|
+
return change('walletId', walletId);
|
|
721
|
+
},
|
|
718
722
|
value: account.maskedAccount
|
|
719
723
|
}),
|
|
720
724
|
method === 'deposit' && _react2.default.createElement(_Input2.default, {
|
|
721
725
|
required: true,
|
|
722
726
|
type: 'password',
|
|
723
727
|
name: 'walletPassword',
|
|
728
|
+
onChange: function onChange(_, walletPassword) {
|
|
729
|
+
return change('walletPassword', walletPassword);
|
|
730
|
+
},
|
|
724
731
|
label: (0, _translate2.default)({
|
|
725
732
|
id: 'cashier.details.walletPassword',
|
|
726
733
|
defaultMessage: 'Wallet password'
|
|
@@ -729,69 +736,6 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
729
736
|
);
|
|
730
737
|
};
|
|
731
738
|
|
|
732
|
-
var Paramount = function Paramount(_ref15) {
|
|
733
|
-
var account = _ref15.account,
|
|
734
|
-
intl = _ref15.intl,
|
|
735
|
-
values = _ref15.values,
|
|
736
|
-
change = _ref15.change,
|
|
737
|
-
detail = _ref15.detail;
|
|
738
|
-
|
|
739
|
-
var methodDetails = {
|
|
740
|
-
securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
return _react2.default.createElement(
|
|
744
|
-
'div',
|
|
745
|
-
{ className: 'payment-account-info' },
|
|
746
|
-
methodDetails.securityQuestions.length > 0 && _react2.default.createElement(
|
|
747
|
-
_Select2.default,
|
|
748
|
-
{
|
|
749
|
-
required: true,
|
|
750
|
-
disabled: account.accountId,
|
|
751
|
-
name: 'securityQuestion',
|
|
752
|
-
value: values['securityQuestion'],
|
|
753
|
-
onChange: function onChange(_, securityQuestion) {
|
|
754
|
-
return change('securityQuestion', securityQuestion);
|
|
755
|
-
},
|
|
756
|
-
label: (0, _translate2.default)({
|
|
757
|
-
id: 'cashier.details.securityQuestion',
|
|
758
|
-
defaultMessage: 'Security question'
|
|
759
|
-
}, intl) },
|
|
760
|
-
!values['securityQuestion'] && _react2.default.createElement(
|
|
761
|
-
_Select2.default.Option,
|
|
762
|
-
{ value: '', selected: true, disabled: true },
|
|
763
|
-
(0, _translate2.default)({
|
|
764
|
-
id: 'cashier.details.select-securityQuestion',
|
|
765
|
-
defaultMessage: 'Select security question'
|
|
766
|
-
}, intl)
|
|
767
|
-
),
|
|
768
|
-
methodDetails.securityQuestions.map(function (securityQuestion) {
|
|
769
|
-
return _react2.default.createElement(
|
|
770
|
-
_Select2.default.Option,
|
|
771
|
-
{ value: securityQuestion.value },
|
|
772
|
-
(0, _translate2.default)({
|
|
773
|
-
id: securityQuestion.id,
|
|
774
|
-
defaultMessage: securityQuestion.value
|
|
775
|
-
}, intl)
|
|
776
|
-
);
|
|
777
|
-
})
|
|
778
|
-
),
|
|
779
|
-
_react2.default.createElement(_Input2.default, {
|
|
780
|
-
required: true,
|
|
781
|
-
type: 'password',
|
|
782
|
-
name: 'securityAnswer',
|
|
783
|
-
value: values['securityAnswer'],
|
|
784
|
-
onChange: function onChange(_, securityAnswer) {
|
|
785
|
-
return change('securityAnswer', securityAnswer);
|
|
786
|
-
},
|
|
787
|
-
label: (0, _translate2.default)({
|
|
788
|
-
id: 'cashier.details.securityAnswer',
|
|
789
|
-
defaultMessage: 'Security answer'
|
|
790
|
-
}, intl)
|
|
791
|
-
})
|
|
792
|
-
);
|
|
793
|
-
};
|
|
794
|
-
|
|
795
739
|
var SkrillDeposit = exports.SkrillDeposit = {
|
|
796
740
|
component: (0, _reactIntl.injectIntl)(Email),
|
|
797
741
|
parser: Parser.parseEmail
|
|
@@ -953,11 +897,6 @@ var EzeeWalletWithdrawal = exports.EzeeWalletWithdrawal = {
|
|
|
953
897
|
parser: _identity2.default
|
|
954
898
|
};
|
|
955
899
|
|
|
956
|
-
var ParamountWithdrawal = exports.ParamountWithdrawal = {
|
|
957
|
-
component: (0, _reactIntl.injectIntl)(Paramount),
|
|
958
|
-
parser: Parser.parseParamount
|
|
959
|
-
};
|
|
960
|
-
|
|
961
900
|
var MiFinityEWalletWithdrawal = exports.MiFinityEWalletWithdrawal = {
|
|
962
901
|
component: (0, _reactIntl.injectIntl)(Mifinity),
|
|
963
902
|
parser: _identity2.default
|
|
@@ -48,10 +48,4 @@ var parseMifinity = exports.parseMifinity = function parseMifinity(account) {
|
|
|
48
48
|
return {
|
|
49
49
|
account: account.maskedAccount || account.account
|
|
50
50
|
};
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var parseParamount = exports.parseParamount = function parseParamount(account) {
|
|
54
|
-
return {
|
|
55
|
-
securityQuestion: account.maskedAccount || account.account
|
|
56
|
-
};
|
|
57
51
|
};
|
|
@@ -406,7 +406,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
406
406
|
showCurrentValue && typeof (0, _get2.default)(currentLimit, 'Amount') === 'number' && _react2.default.createElement(
|
|
407
407
|
'div',
|
|
408
408
|
{ className: 'ResponsibleGamingWidget__timespan-row' },
|
|
409
|
-
|
|
409
|
+
messages.get('message.responsiblegaming.current-limit'),
|
|
410
410
|
messages.getValue(currentLimit.Amount)
|
|
411
411
|
)
|
|
412
412
|
);
|
|
@@ -349,7 +349,7 @@ var messages = (_messages = {}, _defineProperty(_messages, 'header.responsible-g
|
|
|
349
349
|
Product = _ref24.Product;
|
|
350
350
|
return (0, _translate2.default)({
|
|
351
351
|
id: 'label.responsible-gaming.admin-limits-row',
|
|
352
|
-
defaultMessage: '{Timespan, select,\n 0 {Transaction}\n 1 {Daily}\n 7 {Weekly}\n 30 {Monthly}\n }: {Amount} {Product, select,\n Casino {(Only applies for casino games)}\n other {}\n }',
|
|
352
|
+
defaultMessage: '{Timespan, select,\n 0 {Transaction}\n 1 {Daily}\n 7 {Weekly}\n 30 {Monthly}\n other {Other}\n }: {Amount} {Product, select,\n Casino {(Only applies for casino games)}\n other {}\n }',
|
|
353
353
|
values: { Timespan: Timespan, Amount: Amount, Product: Product }
|
|
354
354
|
}, intl);
|
|
355
355
|
}), _messages);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4-BG-1532-emoji-flags.0",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "3f30abff8de2b07a2d956443b4c8aa78853ce355"
|
|
80
80
|
}
|