tg-core-components 6.1.2 → 6.1.3
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/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +68 -0
- package/es/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +69 -1
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountParser.js +6 -0
- package/package.json +2 -2
|
@@ -757,6 +757,69 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
757
757
|
);
|
|
758
758
|
};
|
|
759
759
|
|
|
760
|
+
var Paramount = function Paramount(_ref15) {
|
|
761
|
+
var account = _ref15.account,
|
|
762
|
+
intl = _ref15.intl,
|
|
763
|
+
values = _ref15.values,
|
|
764
|
+
change = _ref15.change,
|
|
765
|
+
detail = _ref15.detail;
|
|
766
|
+
|
|
767
|
+
var methodDetails = {
|
|
768
|
+
securityQuestions: getByPath(detail, 'config.securityQuestions', [])
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
return React.createElement(
|
|
772
|
+
'div',
|
|
773
|
+
{ className: 'payment-account-info' },
|
|
774
|
+
methodDetails.securityQuestions.length > 0 && React.createElement(
|
|
775
|
+
Select,
|
|
776
|
+
{
|
|
777
|
+
required: true,
|
|
778
|
+
disabled: account.accountId,
|
|
779
|
+
name: 'securityQuestion',
|
|
780
|
+
value: values['securityQuestion'],
|
|
781
|
+
onChange: function onChange(_, securityQuestion) {
|
|
782
|
+
return change('securityQuestion', securityQuestion);
|
|
783
|
+
},
|
|
784
|
+
label: translate({
|
|
785
|
+
id: 'cashier.details.securityQuestion',
|
|
786
|
+
defaultMessage: 'Security question'
|
|
787
|
+
}, intl) },
|
|
788
|
+
!values['securityQuestion'] && React.createElement(
|
|
789
|
+
Select.Option,
|
|
790
|
+
{ value: '', selected: true, disabled: true },
|
|
791
|
+
translate({
|
|
792
|
+
id: 'cashier.details.select-securityQuestion',
|
|
793
|
+
defaultMessage: 'Select security question'
|
|
794
|
+
}, intl)
|
|
795
|
+
),
|
|
796
|
+
methodDetails.securityQuestions.map(function (securityQuestion) {
|
|
797
|
+
return React.createElement(
|
|
798
|
+
Select.Option,
|
|
799
|
+
{ value: securityQuestion.value },
|
|
800
|
+
translate({
|
|
801
|
+
id: securityQuestion.id,
|
|
802
|
+
defaultMessage: securityQuestion.value
|
|
803
|
+
}, intl)
|
|
804
|
+
);
|
|
805
|
+
})
|
|
806
|
+
),
|
|
807
|
+
React.createElement(Input, {
|
|
808
|
+
required: true,
|
|
809
|
+
type: 'password',
|
|
810
|
+
name: 'securityAnswer',
|
|
811
|
+
value: values['securityAnswer'],
|
|
812
|
+
onChange: function onChange(_, securityAnswer) {
|
|
813
|
+
return change('securityAnswer', securityAnswer);
|
|
814
|
+
},
|
|
815
|
+
label: translate({
|
|
816
|
+
id: 'cashier.details.securityAnswer',
|
|
817
|
+
defaultMessage: 'Security answer'
|
|
818
|
+
}, intl)
|
|
819
|
+
})
|
|
820
|
+
);
|
|
821
|
+
};
|
|
822
|
+
|
|
760
823
|
export var SkrillDeposit = {
|
|
761
824
|
component: injectIntl(Email),
|
|
762
825
|
parser: Parser.parseEmail
|
|
@@ -918,6 +981,11 @@ export var EzeeWalletWithdrawal = {
|
|
|
918
981
|
parser: identity
|
|
919
982
|
};
|
|
920
983
|
|
|
984
|
+
export var ParamountWithdrawal = {
|
|
985
|
+
component: injectIntl(Paramount),
|
|
986
|
+
parser: Parser.parseParamount
|
|
987
|
+
};
|
|
988
|
+
|
|
921
989
|
export var MiFinityEWalletWithdrawal = {
|
|
922
990
|
component: injectIntl(Mifinity),
|
|
923
991
|
parser: identity
|
|
@@ -43,4 +43,10 @@ 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
|
+
};
|
|
46
52
|
};
|
|
@@ -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.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.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 _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
|
|
|
@@ -800,6 +800,69 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
800
800
|
);
|
|
801
801
|
};
|
|
802
802
|
|
|
803
|
+
var Paramount = function Paramount(_ref15) {
|
|
804
|
+
var account = _ref15.account,
|
|
805
|
+
intl = _ref15.intl,
|
|
806
|
+
values = _ref15.values,
|
|
807
|
+
change = _ref15.change,
|
|
808
|
+
detail = _ref15.detail;
|
|
809
|
+
|
|
810
|
+
var methodDetails = {
|
|
811
|
+
securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
return _react2.default.createElement(
|
|
815
|
+
'div',
|
|
816
|
+
{ className: 'payment-account-info' },
|
|
817
|
+
methodDetails.securityQuestions.length > 0 && _react2.default.createElement(
|
|
818
|
+
_Select2.default,
|
|
819
|
+
{
|
|
820
|
+
required: true,
|
|
821
|
+
disabled: account.accountId,
|
|
822
|
+
name: 'securityQuestion',
|
|
823
|
+
value: values['securityQuestion'],
|
|
824
|
+
onChange: function onChange(_, securityQuestion) {
|
|
825
|
+
return change('securityQuestion', securityQuestion);
|
|
826
|
+
},
|
|
827
|
+
label: (0, _translate2.default)({
|
|
828
|
+
id: 'cashier.details.securityQuestion',
|
|
829
|
+
defaultMessage: 'Security question'
|
|
830
|
+
}, intl) },
|
|
831
|
+
!values['securityQuestion'] && _react2.default.createElement(
|
|
832
|
+
_Select2.default.Option,
|
|
833
|
+
{ value: '', selected: true, disabled: true },
|
|
834
|
+
(0, _translate2.default)({
|
|
835
|
+
id: 'cashier.details.select-securityQuestion',
|
|
836
|
+
defaultMessage: 'Select security question'
|
|
837
|
+
}, intl)
|
|
838
|
+
),
|
|
839
|
+
methodDetails.securityQuestions.map(function (securityQuestion) {
|
|
840
|
+
return _react2.default.createElement(
|
|
841
|
+
_Select2.default.Option,
|
|
842
|
+
{ value: securityQuestion.value },
|
|
843
|
+
(0, _translate2.default)({
|
|
844
|
+
id: securityQuestion.id,
|
|
845
|
+
defaultMessage: securityQuestion.value
|
|
846
|
+
}, intl)
|
|
847
|
+
);
|
|
848
|
+
})
|
|
849
|
+
),
|
|
850
|
+
_react2.default.createElement(_Input2.default, {
|
|
851
|
+
required: true,
|
|
852
|
+
type: 'password',
|
|
853
|
+
name: 'securityAnswer',
|
|
854
|
+
value: values['securityAnswer'],
|
|
855
|
+
onChange: function onChange(_, securityAnswer) {
|
|
856
|
+
return change('securityAnswer', securityAnswer);
|
|
857
|
+
},
|
|
858
|
+
label: (0, _translate2.default)({
|
|
859
|
+
id: 'cashier.details.securityAnswer',
|
|
860
|
+
defaultMessage: 'Security answer'
|
|
861
|
+
}, intl)
|
|
862
|
+
})
|
|
863
|
+
);
|
|
864
|
+
};
|
|
865
|
+
|
|
803
866
|
var SkrillDeposit = exports.SkrillDeposit = {
|
|
804
867
|
component: (0, _reactIntl.injectIntl)(Email),
|
|
805
868
|
parser: Parser.parseEmail
|
|
@@ -961,6 +1024,11 @@ var EzeeWalletWithdrawal = exports.EzeeWalletWithdrawal = {
|
|
|
961
1024
|
parser: _identity2.default
|
|
962
1025
|
};
|
|
963
1026
|
|
|
1027
|
+
var ParamountWithdrawal = exports.ParamountWithdrawal = {
|
|
1028
|
+
component: (0, _reactIntl.injectIntl)(Paramount),
|
|
1029
|
+
parser: Parser.parseParamount
|
|
1030
|
+
};
|
|
1031
|
+
|
|
964
1032
|
var MiFinityEWalletWithdrawal = exports.MiFinityEWalletWithdrawal = {
|
|
965
1033
|
component: (0, _reactIntl.injectIntl)(Mifinity),
|
|
966
1034
|
parser: _identity2.default
|
|
@@ -48,4 +48,10 @@ 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
|
+
};
|
|
51
57
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
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": "359297fba3cc9fae7c24eccf36eeab528da8bb8e"
|
|
80
80
|
}
|