tg-core-components 6.1.14 → 6.1.16-pix-integration.1
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/AccountDetail/index.js +0 -8
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +18 -7
- package/es/widgets/CashierAccordion/Payment/index.js +1 -1
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/lib/widgets/AccountDetail/index.js +0 -8
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +18 -7
- package/lib/widgets/CashierAccordion/Payment/index.js +1 -1
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/package.json +2 -2
|
@@ -148,14 +148,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
148
148
|
id: 'title.mobile_number',
|
|
149
149
|
defaultMessage: 'Mobile number'
|
|
150
150
|
}, intl),
|
|
151
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
152
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
153
|
-
}).map(function (i) {
|
|
154
|
-
return {
|
|
155
|
-
value: '00' + i.callingCode,
|
|
156
|
-
label: '+' + i.callingCode + ' ' + (countryEmojiFlags[i.value] || '')
|
|
157
|
-
};
|
|
158
|
-
}) : [],
|
|
159
151
|
name: 'MobilePhoneNumber',
|
|
160
152
|
autoComplete: 'off',
|
|
161
153
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -322,6 +322,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
322
322
|
intl = _ref8.intl,
|
|
323
323
|
country = _ref8.country,
|
|
324
324
|
method = _ref8.method,
|
|
325
|
+
methodd = _ref8.methodd,
|
|
325
326
|
detail = _ref8.detail,
|
|
326
327
|
change = _ref8.change,
|
|
327
328
|
values = _ref8.values,
|
|
@@ -337,6 +338,16 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
337
338
|
isLoading = _useState4[0],
|
|
338
339
|
setIsLoading = _useState4[1];
|
|
339
340
|
|
|
341
|
+
console.log({
|
|
342
|
+
country: country,
|
|
343
|
+
method: method,
|
|
344
|
+
methodd: methodd,
|
|
345
|
+
detail: detail,
|
|
346
|
+
change: change,
|
|
347
|
+
values: values,
|
|
348
|
+
config: config
|
|
349
|
+
});
|
|
350
|
+
|
|
340
351
|
useEffect(function () {
|
|
341
352
|
setIsLoading(true);
|
|
342
353
|
|
|
@@ -375,7 +386,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
375
386
|
return React.createElement(
|
|
376
387
|
'div',
|
|
377
388
|
null,
|
|
378
|
-
|
|
389
|
+
methodd === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && React.createElement(
|
|
379
390
|
Select,
|
|
380
391
|
{
|
|
381
392
|
required: true,
|
|
@@ -416,7 +427,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
416
427
|
defaultMessage: 'nationalId'
|
|
417
428
|
}, intl)
|
|
418
429
|
}),
|
|
419
|
-
|
|
430
|
+
methodd === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && React.createElement(
|
|
420
431
|
Select,
|
|
421
432
|
{
|
|
422
433
|
required: true,
|
|
@@ -445,7 +456,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
445
456
|
);
|
|
446
457
|
})
|
|
447
458
|
),
|
|
448
|
-
|
|
459
|
+
methodd === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && React.createElement(Input, {
|
|
449
460
|
required: true,
|
|
450
461
|
name: 'bankBranch',
|
|
451
462
|
value: values['bankBranch'],
|
|
@@ -457,7 +468,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
457
468
|
defaultMessage: 'bankBranch'
|
|
458
469
|
}, intl)
|
|
459
470
|
}),
|
|
460
|
-
|
|
471
|
+
methodd === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && React.createElement(
|
|
461
472
|
Select,
|
|
462
473
|
{
|
|
463
474
|
required: true,
|
|
@@ -486,7 +497,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
486
497
|
);
|
|
487
498
|
})
|
|
488
499
|
),
|
|
489
|
-
|
|
500
|
+
methodd === 'withdraw' && React.createElement(Input, {
|
|
490
501
|
required: true,
|
|
491
502
|
name: 'bankAccount',
|
|
492
503
|
value: values['bankAccount'],
|
|
@@ -498,7 +509,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
498
509
|
defaultMessage: 'bankAccount'
|
|
499
510
|
}, intl)
|
|
500
511
|
}),
|
|
501
|
-
|
|
512
|
+
methodd === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && React.createElement(
|
|
502
513
|
Select,
|
|
503
514
|
{
|
|
504
515
|
required: true,
|
|
@@ -861,7 +872,7 @@ export var MobilePayDeposit = {
|
|
|
861
872
|
};
|
|
862
873
|
|
|
863
874
|
export var AstroPayBankDeposit = {
|
|
864
|
-
component: injectMethod({
|
|
875
|
+
component: injectMethod({ methodd: 'deposit' }, injectIntl(AstroPayBank)),
|
|
865
876
|
initialValues: function initialValues(props) {
|
|
866
877
|
var values = {};
|
|
867
878
|
var details = {
|
|
@@ -76,7 +76,7 @@ export var getPaymentForm = function getPaymentForm(_ref2) {
|
|
|
76
76
|
var txType = _ref2.txType,
|
|
77
77
|
service = _ref2.service;
|
|
78
78
|
|
|
79
|
-
if (txType === 'BankDeposit' && ['ASTROPAYBANK', 'WEBPAY', 'BOLETO'].includes(service)) return 'AstroPayBankDeposit';
|
|
79
|
+
if (txType === 'BankDeposit' && ['ASTROPAYBANK', 'WEBPAY', 'BOLETO', 'PIX'].includes(service)) return 'AstroPayBankDeposit';
|
|
80
80
|
|
|
81
81
|
return txType;
|
|
82
82
|
};
|
|
@@ -319,6 +319,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
323
|
+
|
|
322
324
|
return React.createElement(
|
|
323
325
|
Fragment,
|
|
324
326
|
null,
|
|
@@ -352,7 +354,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
352
354
|
setValue(parseInt(value));
|
|
353
355
|
if (value > 0) _onChange(value);
|
|
354
356
|
},
|
|
355
|
-
autoFocus:
|
|
357
|
+
autoFocus: !isIphone,
|
|
356
358
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
357
359
|
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') : Infinity
|
|
358
360
|
}),
|
|
@@ -189,14 +189,6 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
189
189
|
id: 'title.mobile_number',
|
|
190
190
|
defaultMessage: 'Mobile number'
|
|
191
191
|
}, intl),
|
|
192
|
-
callingCodes: countries ? countries.value.sort(function (a, b) {
|
|
193
|
-
return Number(a.callingCode) - Number(b.callingCode);
|
|
194
|
-
}).map(function (i) {
|
|
195
|
-
return {
|
|
196
|
-
value: '00' + i.callingCode,
|
|
197
|
-
label: '+' + i.callingCode + ' ' + (_countryEmojiFlags2.default[i.value] || '')
|
|
198
|
-
};
|
|
199
|
-
}) : [],
|
|
200
192
|
name: 'MobilePhoneNumber',
|
|
201
193
|
autoComplete: 'off',
|
|
202
194
|
status: errors.MobilePhoneNumber && 'failure' || 'idle',
|
|
@@ -365,6 +365,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
365
365
|
intl = _ref8.intl,
|
|
366
366
|
country = _ref8.country,
|
|
367
367
|
method = _ref8.method,
|
|
368
|
+
methodd = _ref8.methodd,
|
|
368
369
|
detail = _ref8.detail,
|
|
369
370
|
change = _ref8.change,
|
|
370
371
|
values = _ref8.values,
|
|
@@ -380,6 +381,16 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
380
381
|
isLoading = _useState4[0],
|
|
381
382
|
setIsLoading = _useState4[1];
|
|
382
383
|
|
|
384
|
+
console.log({
|
|
385
|
+
country: country,
|
|
386
|
+
method: method,
|
|
387
|
+
methodd: methodd,
|
|
388
|
+
detail: detail,
|
|
389
|
+
change: change,
|
|
390
|
+
values: values,
|
|
391
|
+
config: config
|
|
392
|
+
});
|
|
393
|
+
|
|
383
394
|
(0, _react.useEffect)(function () {
|
|
384
395
|
setIsLoading(true);
|
|
385
396
|
|
|
@@ -418,7 +429,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
418
429
|
return _react2.default.createElement(
|
|
419
430
|
'div',
|
|
420
431
|
null,
|
|
421
|
-
|
|
432
|
+
methodd === 'withdraw' && methodDetails.idTypes && methodDetails.idTypes.length > 1 && _react2.default.createElement(
|
|
422
433
|
_Select2.default,
|
|
423
434
|
{
|
|
424
435
|
required: true,
|
|
@@ -459,7 +470,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
459
470
|
defaultMessage: 'nationalId'
|
|
460
471
|
}, intl)
|
|
461
472
|
}),
|
|
462
|
-
|
|
473
|
+
methodd === 'withdraw' && methodDetails.banks && methodDetails.banks.length > 1 && _react2.default.createElement(
|
|
463
474
|
_Select2.default,
|
|
464
475
|
{
|
|
465
476
|
required: true,
|
|
@@ -488,7 +499,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
488
499
|
);
|
|
489
500
|
})
|
|
490
501
|
),
|
|
491
|
-
|
|
502
|
+
methodd === 'withdraw' && ['BR', 'UY', 'IN'].includes(country) && _react2.default.createElement(_Input2.default, {
|
|
492
503
|
required: true,
|
|
493
504
|
name: 'bankBranch',
|
|
494
505
|
value: values['bankBranch'],
|
|
@@ -500,7 +511,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
500
511
|
defaultMessage: 'bankBranch'
|
|
501
512
|
}, intl)
|
|
502
513
|
}),
|
|
503
|
-
|
|
514
|
+
methodd === 'withdraw' && methodDetails.accountTypes && methodDetails.accountTypes.length > 1 && _react2.default.createElement(
|
|
504
515
|
_Select2.default,
|
|
505
516
|
{
|
|
506
517
|
required: true,
|
|
@@ -529,7 +540,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
529
540
|
);
|
|
530
541
|
})
|
|
531
542
|
),
|
|
532
|
-
|
|
543
|
+
methodd === 'withdraw' && _react2.default.createElement(_Input2.default, {
|
|
533
544
|
required: true,
|
|
534
545
|
name: 'bankAccount',
|
|
535
546
|
value: values['bankAccount'],
|
|
@@ -541,7 +552,7 @@ var AstroPayBank = function AstroPayBank(_ref8) {
|
|
|
541
552
|
defaultMessage: 'bankAccount'
|
|
542
553
|
}, intl)
|
|
543
554
|
}),
|
|
544
|
-
|
|
555
|
+
methodd === 'deposit' && methodDetails.services && methodDetails.services.length > 1 && _react2.default.createElement(
|
|
545
556
|
_Select2.default,
|
|
546
557
|
{
|
|
547
558
|
required: true,
|
|
@@ -904,7 +915,7 @@ var MobilePayDeposit = exports.MobilePayDeposit = {
|
|
|
904
915
|
};
|
|
905
916
|
|
|
906
917
|
var AstroPayBankDeposit = exports.AstroPayBankDeposit = {
|
|
907
|
-
component: injectMethod({
|
|
918
|
+
component: injectMethod({ methodd: 'deposit' }, (0, _reactIntl.injectIntl)(AstroPayBank)),
|
|
908
919
|
initialValues: function initialValues(props) {
|
|
909
920
|
var values = {};
|
|
910
921
|
var details = {
|
|
@@ -81,7 +81,7 @@ var getPaymentForm = exports.getPaymentForm = function getPaymentForm(_ref2) {
|
|
|
81
81
|
var txType = _ref2.txType,
|
|
82
82
|
service = _ref2.service;
|
|
83
83
|
|
|
84
|
-
if (txType === 'BankDeposit' && ['ASTROPAYBANK', 'WEBPAY', 'BOLETO'].includes(service)) return 'AstroPayBankDeposit';
|
|
84
|
+
if (txType === 'BankDeposit' && ['ASTROPAYBANK', 'WEBPAY', 'BOLETO', 'PIX'].includes(service)) return 'AstroPayBankDeposit';
|
|
85
85
|
|
|
86
86
|
return txType;
|
|
87
87
|
};
|
|
@@ -350,6 +350,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
354
|
+
|
|
353
355
|
return _react2.default.createElement(
|
|
354
356
|
_react.Fragment,
|
|
355
357
|
null,
|
|
@@ -383,7 +385,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
383
385
|
setValue(parseInt(value));
|
|
384
386
|
if (value > 0) _onChange(value);
|
|
385
387
|
},
|
|
386
|
-
autoFocus:
|
|
388
|
+
autoFocus: !isIphone,
|
|
387
389
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
388
390
|
max: validationState['limit-increase-blocked'] ? (0, _get2.default)(currentLimit, 'Amount') : Infinity
|
|
389
391
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.16-pix-integration.1",
|
|
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": "63dcec59f7d88fd8bceba6299f9e5d5acf7a8b6a"
|
|
80
80
|
}
|