tg-core-components 6.0.4-BG-1532-emoji-flags.0 → 6.0.4

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.
@@ -71,10 +71,7 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
71
71
  callingCodeSelect.focus.onBlur();
72
72
  _onBlur(e);
73
73
  },
74
- status: props.status,
75
- leadingLane: [props.selectIcon].filter(function (i) {
76
- return i;
77
- }) }),
74
+ status: props.status }),
78
75
  (props.callingCodes || []).map(function (c, i) {
79
76
  return React.createElement(
80
77
  Select.Option,
@@ -100,9 +97,6 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
100
97
  _onBlur(e);
101
98
  },
102
99
  status: props.status,
103
- leadingLane: [props.inputIcon].filter(function (i) {
104
- return i;
105
- }),
106
100
  trailingLane: [statusIcons[props.status]].filter(function (i) {
107
101
  return i;
108
102
  })
@@ -501,7 +501,8 @@ var BankIntl = function BankIntl(_ref9) {
501
501
  var account = _ref9.account,
502
502
  intl = _ref9.intl,
503
503
  values = _ref9.values,
504
- change = _ref9.change;
504
+ change = _ref9.change,
505
+ country = _ref9.country;
505
506
 
506
507
  return React.createElement(
507
508
  'div',
@@ -525,7 +526,31 @@ var BankIntl = function BankIntl(_ref9) {
525
526
  },
526
527
  label: translate({ id: 'cashier.details.bic' }, intl),
527
528
  disabled: account.accountId
528
- })
529
+ }),
530
+ ['AE'].includes(country) && React.createElement(
531
+ React.Fragment,
532
+ null,
533
+ React.createElement(Input, {
534
+ required: true,
535
+ name: 'beneficiaryCountry',
536
+ value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['beneficiaryCountry'],
537
+ onChange: function onChange(e, beneficiaryCountry) {
538
+ return change('beneficiaryCountry', beneficiaryCountry);
539
+ },
540
+ label: translate({ id: 'cashier.details.beneficiaryCountry' }, intl),
541
+ disabled: account.accountId
542
+ }),
543
+ React.createElement(Input, {
544
+ required: true,
545
+ name: 'bankName',
546
+ value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['bankName'],
547
+ onChange: function onChange(e, bankName) {
548
+ return change('bankName', bankName);
549
+ },
550
+ label: translate({ id: 'cashier.details.bankName' }, intl),
551
+ disabled: account.accountId
552
+ })
553
+ )
529
554
  );
530
555
  };
531
556
 
@@ -88,10 +88,7 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
88
88
  callingCodeSelect.focus.onBlur();
89
89
  _onBlur(e);
90
90
  },
91
- status: props.status,
92
- leadingLane: [props.selectIcon].filter(function (i) {
93
- return i;
94
- }) }),
91
+ status: props.status }),
95
92
  (props.callingCodes || []).map(function (c, i) {
96
93
  return _react2.default.createElement(
97
94
  _common.Select.Option,
@@ -117,9 +114,6 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
117
114
  _onBlur(e);
118
115
  },
119
116
  status: props.status,
120
- leadingLane: [props.inputIcon].filter(function (i) {
121
- return i;
122
- }),
123
117
  trailingLane: [_common.statusIcons[props.status]].filter(function (i) {
124
118
  return i;
125
119
  })
@@ -538,7 +538,8 @@ var BankIntl = function BankIntl(_ref9) {
538
538
  var account = _ref9.account,
539
539
  intl = _ref9.intl,
540
540
  values = _ref9.values,
541
- change = _ref9.change;
541
+ change = _ref9.change,
542
+ country = _ref9.country;
542
543
 
543
544
  return _react2.default.createElement(
544
545
  'div',
@@ -562,7 +563,31 @@ var BankIntl = function BankIntl(_ref9) {
562
563
  },
563
564
  label: (0, _translate2.default)({ id: 'cashier.details.bic' }, intl),
564
565
  disabled: account.accountId
565
- })
566
+ }),
567
+ ['AE'].includes(country) && _react2.default.createElement(
568
+ _react2.default.Fragment,
569
+ null,
570
+ _react2.default.createElement(_Input2.default, {
571
+ required: true,
572
+ name: 'beneficiaryCountry',
573
+ value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['beneficiaryCountry'],
574
+ onChange: function onChange(e, beneficiaryCountry) {
575
+ return change('beneficiaryCountry', beneficiaryCountry);
576
+ },
577
+ label: (0, _translate2.default)({ id: 'cashier.details.beneficiaryCountry' }, intl),
578
+ disabled: account.accountId
579
+ }),
580
+ _react2.default.createElement(_Input2.default, {
581
+ required: true,
582
+ name: 'bankName',
583
+ value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['bankName'],
584
+ onChange: function onChange(e, bankName) {
585
+ return change('bankName', bankName);
586
+ },
587
+ label: (0, _translate2.default)({ id: 'cashier.details.bankName' }, intl),
588
+ disabled: account.accountId
589
+ })
590
+ )
566
591
  );
567
592
  };
568
593
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.0.4-BG-1532-emoji-flags.0",
3
+ "version": "6.0.4",
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": "3f30abff8de2b07a2d956443b4c8aa78853ce355"
79
+ "gitHead": "df9f4c8e28ec2b80a151d7b0158673a0eb4c29b3"
80
80
  }