tg-core-components 6.1.14 → 6.1.16-vega-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.
@@ -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',
@@ -130,6 +130,27 @@ var VenusPoint = function VenusPoint(_ref3) {
130
130
  );
131
131
  };
132
132
 
133
+ var Vega = function Vega(_ref4) {
134
+ var account = _ref4.account,
135
+ intl = _ref4.intl;
136
+
137
+ return React.createElement(
138
+ 'div',
139
+ { className: 'payment-account-info' },
140
+ React.createElement(Input, {
141
+ disabled: account.accountId,
142
+ name: 'username',
143
+ value: account.maskedAccount,
144
+ label: translate({ id: 'cashier.details.username' }, intl)
145
+ }),
146
+ React.createElement(Input, {
147
+ type: 'password',
148
+ name: 'password',
149
+ label: translate({ id: 'cashier.details.password' }, intl)
150
+ })
151
+ );
152
+ };
153
+
133
154
  var PPro = function PPro() {
134
155
  return React.createElement(
135
156
  'div',
@@ -138,9 +159,9 @@ var PPro = function PPro() {
138
159
  );
139
160
  };
140
161
 
141
- var PhoneNumber = function PhoneNumber(_ref4) {
142
- var account = _ref4.account,
143
- intl = _ref4.intl;
162
+ var PhoneNumber = function PhoneNumber(_ref5) {
163
+ var account = _ref5.account,
164
+ intl = _ref5.intl;
144
165
 
145
166
  return React.createElement(
146
167
  'div',
@@ -153,9 +174,9 @@ var PhoneNumber = function PhoneNumber(_ref4) {
153
174
  );
154
175
  };
155
176
 
156
- var Email = function Email(_ref5) {
157
- var account = _ref5.account,
158
- intl = _ref5.intl;
177
+ var Email = function Email(_ref6) {
178
+ var account = _ref6.account,
179
+ intl = _ref6.intl;
159
180
 
160
181
  return React.createElement(
161
182
  'div',
@@ -169,9 +190,9 @@ var Email = function Email(_ref5) {
169
190
  );
170
191
  };
171
192
 
172
- var Banklocal = function Banklocal(_ref6) {
173
- var account = _ref6.account,
174
- intl = _ref6.intl;
193
+ var Banklocal = function Banklocal(_ref7) {
194
+ var account = _ref7.account,
195
+ intl = _ref7.intl;
175
196
 
176
197
  return React.createElement(
177
198
  'div',
@@ -211,6 +232,11 @@ export var VenusPointDeposit = {
211
232
  parser: Parser.parseVenusPoint
212
233
  };
213
234
 
235
+ export var VegaDeposit = {
236
+ component: injectMethod('deposit', injectIntl(Vega)),
237
+ parser: Parser.parseVega
238
+ };
239
+
214
240
  export var SiruDeposit = {
215
241
  component: injectIntl(PhoneNumber),
216
242
  parser: Parser.parsePhoneNumber
@@ -262,6 +288,11 @@ export var VenusPointWithdrawal = {
262
288
  parser: Parser.parseVenusPoint
263
289
  };
264
290
 
291
+ export var VegaWithdrawal = {
292
+ component: injectMethod('withdraw', injectIntl(Vega)),
293
+ parser: Parser.parseVega
294
+ };
295
+
265
296
  export var NetellerWithdrawal = {
266
297
  component: injectMethod('withdraw', injectIntl(Neteller)),
267
298
  parser: Parser.parseNeteller
@@ -37,6 +37,12 @@ export var parseVenusPoint = function parseVenusPoint(account) {
37
37
  };
38
38
  };
39
39
 
40
+ export var parseVega = function parseVega(account) {
41
+ return {
42
+ account: account.maskedAccount || account.account
43
+ };
44
+ };
45
+
40
46
  export var parsePhoneNumber = function parsePhoneNumber(account) {
41
47
  return {
42
48
  phoneNumber: account.phoneNumber || account.maskedAccount
@@ -666,8 +666,8 @@ var _initialiseProps = function _initialiseProps() {
666
666
  providerType: method.providerType,
667
667
  lastDepositAmount: paymentStats.LastDepositAmount,
668
668
  remainingDepositLimit: remainingDepositLimit,
669
- methodMin: method.limit.min,
670
- methodMax: method.limit.max,
669
+ methodMin: 1,
670
+ methodMax: 500,
671
671
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
672
672
  cancelWithdrawalAmount: method.amount,
673
673
  spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
@@ -186,6 +186,34 @@ var VenusPoint = function VenusPoint(_ref3) {
186
186
  );
187
187
  };
188
188
 
189
+ var Vega = function Vega(_ref4) {
190
+ var account = _ref4.account,
191
+ intl = _ref4.intl,
192
+ change = _ref4.change;
193
+
194
+ return React.createElement(
195
+ 'div',
196
+ null,
197
+ React.createElement(Input, {
198
+ disabled: account.accountId,
199
+ name: 'username',
200
+ onChange: function onChange(e, username) {
201
+ return change('username', username);
202
+ },
203
+ value: account.maskedAccount,
204
+ label: translate({ id: 'cashier.details.username' }, intl)
205
+ }),
206
+ React.createElement(Input, {
207
+ type: 'password',
208
+ name: 'password',
209
+ onChange: function onChange(e, password) {
210
+ return change('password', password);
211
+ },
212
+ label: translate({ id: 'cashier.details.password' }, intl)
213
+ })
214
+ );
215
+ };
216
+
189
217
  var PPro = function PPro() {
190
218
  return React.createElement(
191
219
  'div',
@@ -194,11 +222,11 @@ var PPro = function PPro() {
194
222
  );
195
223
  };
196
224
 
197
- var PhoneNumber = function PhoneNumber(_ref4) {
198
- var account = _ref4.account,
199
- intl = _ref4.intl,
200
- change = _ref4.change,
201
- values = _ref4.values;
225
+ var PhoneNumber = function PhoneNumber(_ref5) {
226
+ var account = _ref5.account,
227
+ intl = _ref5.intl,
228
+ change = _ref5.change,
229
+ values = _ref5.values;
202
230
 
203
231
  return React.createElement(
204
232
  'div',
@@ -216,11 +244,11 @@ var PhoneNumber = function PhoneNumber(_ref4) {
216
244
  );
217
245
  };
218
246
 
219
- var Email = function Email(_ref5) {
220
- var account = _ref5.account,
221
- intl = _ref5.intl,
222
- change = _ref5.change,
223
- values = _ref5.values;
247
+ var Email = function Email(_ref6) {
248
+ var account = _ref6.account,
249
+ intl = _ref6.intl,
250
+ change = _ref6.change,
251
+ values = _ref6.values;
224
252
 
225
253
  return React.createElement(
226
254
  'div',
@@ -238,10 +266,10 @@ var Email = function Email(_ref5) {
238
266
  );
239
267
  };
240
268
 
241
- var Banklocal = function Banklocal(_ref6) {
242
- var account = _ref6.account,
243
- intl = _ref6.intl,
244
- change = _ref6.change;
269
+ var Banklocal = function Banklocal(_ref7) {
270
+ var account = _ref7.account,
271
+ intl = _ref7.intl,
272
+ change = _ref7.change;
245
273
 
246
274
  return React.createElement(
247
275
  'div',
@@ -267,11 +295,11 @@ var Banklocal = function Banklocal(_ref6) {
267
295
  );
268
296
  };
269
297
 
270
- var BankIBAN = function BankIBAN(_ref7) {
271
- var account = _ref7.account,
272
- intl = _ref7.intl,
273
- change = _ref7.change,
274
- values = _ref7.values;
298
+ var BankIBAN = function BankIBAN(_ref8) {
299
+ var account = _ref8.account,
300
+ intl = _ref8.intl,
301
+ change = _ref8.change,
302
+ values = _ref8.values;
275
303
 
276
304
  return React.createElement(
277
305
  'div',
@@ -317,15 +345,15 @@ var BankIBAN = function BankIBAN(_ref7) {
317
345
  );
318
346
  };
319
347
 
320
- var AstroPayBank = function AstroPayBank(_ref8) {
321
- var account = _ref8.account,
322
- intl = _ref8.intl,
323
- country = _ref8.country,
324
- method = _ref8.method,
325
- detail = _ref8.detail,
326
- change = _ref8.change,
327
- values = _ref8.values,
328
- config = _ref8.config;
348
+ var AstroPayBank = function AstroPayBank(_ref9) {
349
+ var account = _ref9.account,
350
+ intl = _ref9.intl,
351
+ country = _ref9.country,
352
+ method = _ref9.method,
353
+ detail = _ref9.detail,
354
+ change = _ref9.change,
355
+ values = _ref9.values,
356
+ config = _ref9.config;
329
357
 
330
358
  var _useState = useState([]),
331
359
  _useState2 = _slicedToArray(_useState, 2),
@@ -530,12 +558,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
530
558
  );
531
559
  };
532
560
 
533
- var BankIntl = function BankIntl(_ref9) {
534
- var account = _ref9.account,
535
- intl = _ref9.intl,
536
- values = _ref9.values,
537
- change = _ref9.change,
538
- country = _ref9.country;
561
+ var BankIntl = function BankIntl(_ref10) {
562
+ var account = _ref10.account,
563
+ intl = _ref10.intl,
564
+ values = _ref10.values,
565
+ change = _ref10.change,
566
+ country = _ref10.country;
539
567
 
540
568
  return React.createElement(
541
569
  'div',
@@ -587,12 +615,12 @@ var BankIntl = function BankIntl(_ref9) {
587
615
  );
588
616
  };
589
617
 
590
- var CryptoCurrency = function CryptoCurrency(_ref10) {
591
- var intl = _ref10.intl,
592
- detail = _ref10.detail,
593
- method = _ref10.method,
594
- values = _ref10.values,
595
- change = _ref10.change;
618
+ var CryptoCurrency = function CryptoCurrency(_ref11) {
619
+ var intl = _ref11.intl,
620
+ detail = _ref11.detail,
621
+ method = _ref11.method,
622
+ values = _ref11.values,
623
+ change = _ref11.change;
596
624
 
597
625
  var methodDetails = {
598
626
  cryptoCurrencies: getByPath(detail, 'config.cryptoCurrencies', [])
@@ -645,11 +673,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
645
673
  );
646
674
  };
647
675
 
648
- var Jeton = function Jeton(_ref11) {
649
- var account = _ref11.account,
650
- intl = _ref11.intl,
651
- values = _ref11.values,
652
- change = _ref11.change;
676
+ var Jeton = function Jeton(_ref12) {
677
+ var account = _ref12.account,
678
+ intl = _ref12.intl,
679
+ values = _ref12.values,
680
+ change = _ref12.change;
653
681
 
654
682
  return React.createElement(
655
683
  'div',
@@ -667,11 +695,11 @@ var Jeton = function Jeton(_ref11) {
667
695
  );
668
696
  };
669
697
 
670
- var BestPay = function BestPay(_ref12) {
671
- var account = _ref12.account,
672
- intl = _ref12.intl,
673
- values = _ref12.values,
674
- change = _ref12.change;
698
+ var BestPay = function BestPay(_ref13) {
699
+ var account = _ref13.account,
700
+ intl = _ref13.intl,
701
+ values = _ref13.values,
702
+ change = _ref13.change;
675
703
 
676
704
  return React.createElement(
677
705
  'div',
@@ -698,11 +726,11 @@ var BestPay = function BestPay(_ref12) {
698
726
  );
699
727
  };
700
728
 
701
- var Mifinity = function Mifinity(_ref13) {
702
- var account = _ref13.account,
703
- intl = _ref13.intl,
704
- change = _ref13.change,
705
- values = _ref13.values;
729
+ var Mifinity = function Mifinity(_ref14) {
730
+ var account = _ref14.account,
731
+ intl = _ref14.intl,
732
+ change = _ref14.change,
733
+ values = _ref14.values;
706
734
 
707
735
  return React.createElement(
708
736
  'div',
@@ -720,11 +748,11 @@ var Mifinity = function Mifinity(_ref13) {
720
748
  );
721
749
  };
722
750
 
723
- var EzeeWallet = function EzeeWallet(_ref14) {
724
- var account = _ref14.account,
725
- intl = _ref14.intl,
726
- method = _ref14.method,
727
- change = _ref14.change;
751
+ var EzeeWallet = function EzeeWallet(_ref15) {
752
+ var account = _ref15.account,
753
+ intl = _ref15.intl,
754
+ method = _ref15.method,
755
+ change = _ref15.change;
728
756
 
729
757
  return React.createElement(
730
758
  'div',
@@ -757,12 +785,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
757
785
  );
758
786
  };
759
787
 
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;
788
+ var Paramount = function Paramount(_ref16) {
789
+ var account = _ref16.account,
790
+ intl = _ref16.intl,
791
+ values = _ref16.values,
792
+ change = _ref16.change,
793
+ detail = _ref16.detail;
766
794
 
767
795
  var methodDetails = {
768
796
  securityQuestions: getByPath(detail, 'config.securityQuestions', [])
@@ -840,6 +868,11 @@ export var VenusPointDeposit = {
840
868
  parser: Parser.parseVenusPoint
841
869
  };
842
870
 
871
+ export var VegaDeposit = {
872
+ component: injectMethod('deposit', injectIntl(Vega)),
873
+ parser: Parser.parseVega
874
+ };
875
+
843
876
  export var SiruDeposit = {
844
877
  component: injectIntl(PhoneNumber),
845
878
  parser: Parser.parsePhoneNumber
@@ -947,6 +980,11 @@ export var VenusPointWithdrawal = {
947
980
  parser: Parser.parseVenusPoint
948
981
  };
949
982
 
983
+ export var VegaWithdrawal = {
984
+ component: injectMethod('withdraw', injectIntl(Vega)),
985
+ parser: Parser.parseVega
986
+ };
987
+
950
988
  export var NetellerWithdrawal = {
951
989
  component: injectMethod({ method: 'withdraw' }, injectIntl(Neteller)),
952
990
  parser: Parser.parseNeteller
@@ -39,6 +39,12 @@ export var parseVenusPoint = function parseVenusPoint(account) {
39
39
  };
40
40
  };
41
41
 
42
+ export var parseVega = function parseVega(account) {
43
+ return {
44
+ account: account.maskedAccount || account.account
45
+ };
46
+ };
47
+
42
48
  export var parseMifinity = function parseMifinity(account) {
43
49
  return {
44
50
  account: account.maskedAccount || account.account
@@ -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: true,
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',
@@ -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.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankLocalWithdrawal = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.SwishDeposit = 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.MuchBetterWithdrawal = exports.NetellerWithdrawal = exports.VegaWithdrawal = exports.VenusPointWithdrawal = exports.CreditcardWithdrawal = exports.SkrillWithdrawal = exports.BankLocalWithdrawal = exports.PaysafecardDeposit = exports.InstadebitDeposit = exports.IDebitDeposit = exports.IdealDeposit = exports.EProPaymentWallDeposit = exports.EcoPayzDeposit = exports.TrustlyDeposit = exports.BankDeposit = exports.ZimplerDeposit = exports.SwishDeposit = exports.MobilePayDeposit = exports.PProDeposit = exports.MuchBetterDeposit = exports.SiruDeposit = exports.VegaDeposit = 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
 
@@ -165,6 +165,27 @@ var VenusPoint = function VenusPoint(_ref3) {
165
165
  );
166
166
  };
167
167
 
168
+ var Vega = function Vega(_ref4) {
169
+ var account = _ref4.account,
170
+ intl = _ref4.intl;
171
+
172
+ return _react2.default.createElement(
173
+ 'div',
174
+ { className: 'payment-account-info' },
175
+ _react2.default.createElement(_TextInput2.default, {
176
+ disabled: account.accountId,
177
+ name: 'username',
178
+ value: account.maskedAccount,
179
+ label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
180
+ }),
181
+ _react2.default.createElement(_TextInput2.default, {
182
+ type: 'password',
183
+ name: 'password',
184
+ label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
185
+ })
186
+ );
187
+ };
188
+
168
189
  var PPro = function PPro() {
169
190
  return _react2.default.createElement(
170
191
  'div',
@@ -173,9 +194,9 @@ var PPro = function PPro() {
173
194
  );
174
195
  };
175
196
 
176
- var PhoneNumber = function PhoneNumber(_ref4) {
177
- var account = _ref4.account,
178
- intl = _ref4.intl;
197
+ var PhoneNumber = function PhoneNumber(_ref5) {
198
+ var account = _ref5.account,
199
+ intl = _ref5.intl;
179
200
 
180
201
  return _react2.default.createElement(
181
202
  'div',
@@ -188,9 +209,9 @@ var PhoneNumber = function PhoneNumber(_ref4) {
188
209
  );
189
210
  };
190
211
 
191
- var Email = function Email(_ref5) {
192
- var account = _ref5.account,
193
- intl = _ref5.intl;
212
+ var Email = function Email(_ref6) {
213
+ var account = _ref6.account,
214
+ intl = _ref6.intl;
194
215
 
195
216
  return _react2.default.createElement(
196
217
  'div',
@@ -204,9 +225,9 @@ var Email = function Email(_ref5) {
204
225
  );
205
226
  };
206
227
 
207
- var Banklocal = function Banklocal(_ref6) {
208
- var account = _ref6.account,
209
- intl = _ref6.intl;
228
+ var Banklocal = function Banklocal(_ref7) {
229
+ var account = _ref7.account,
230
+ intl = _ref7.intl;
210
231
 
211
232
  return _react2.default.createElement(
212
233
  'div',
@@ -246,6 +267,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
246
267
  parser: Parser.parseVenusPoint
247
268
  };
248
269
 
270
+ var VegaDeposit = exports.VegaDeposit = {
271
+ component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
272
+ parser: Parser.parseVega
273
+ };
274
+
249
275
  var SiruDeposit = exports.SiruDeposit = {
250
276
  component: (0, _reactIntl.injectIntl)(PhoneNumber),
251
277
  parser: Parser.parsePhoneNumber
@@ -297,6 +323,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
297
323
  parser: Parser.parseVenusPoint
298
324
  };
299
325
 
326
+ var VegaWithdrawal = exports.VegaWithdrawal = {
327
+ component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
328
+ parser: Parser.parseVega
329
+ };
330
+
300
331
  var NetellerWithdrawal = exports.NetellerWithdrawal = {
301
332
  component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Neteller)),
302
333
  parser: Parser.parseNeteller
@@ -42,6 +42,12 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
42
42
  };
43
43
  };
44
44
 
45
+ var parseVega = exports.parseVega = function parseVega(account) {
46
+ return {
47
+ account: account.maskedAccount || account.account
48
+ };
49
+ };
50
+
45
51
  var parsePhoneNumber = exports.parsePhoneNumber = function parsePhoneNumber(account) {
46
52
  return {
47
53
  phoneNumber: account.phoneNumber || account.maskedAccount
@@ -731,8 +731,8 @@ var _initialiseProps = function _initialiseProps() {
731
731
  providerType: method.providerType,
732
732
  lastDepositAmount: paymentStats.LastDepositAmount,
733
733
  remainingDepositLimit: remainingDepositLimit,
734
- methodMin: method.limit.min,
735
- methodMax: method.limit.max,
734
+ methodMin: 1,
735
+ methodMax: 500,
736
736
  customAmount: selectedMethodDetail && selectedMethodDetail.customAmounts,
737
737
  cancelWithdrawalAmount: method.amount,
738
738
  spainRemainingDepositAmount: _this3.getSpainRemainingDepositAmount()
@@ -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.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;
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.VegaWithdrawal = 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.VegaDeposit = 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
 
@@ -229,6 +229,34 @@ var VenusPoint = function VenusPoint(_ref3) {
229
229
  );
230
230
  };
231
231
 
232
+ var Vega = function Vega(_ref4) {
233
+ var account = _ref4.account,
234
+ intl = _ref4.intl,
235
+ change = _ref4.change;
236
+
237
+ return _react2.default.createElement(
238
+ 'div',
239
+ null,
240
+ _react2.default.createElement(_Input2.default, {
241
+ disabled: account.accountId,
242
+ name: 'username',
243
+ onChange: function onChange(e, username) {
244
+ return change('username', username);
245
+ },
246
+ value: account.maskedAccount,
247
+ label: (0, _translate2.default)({ id: 'cashier.details.username' }, intl)
248
+ }),
249
+ _react2.default.createElement(_Input2.default, {
250
+ type: 'password',
251
+ name: 'password',
252
+ onChange: function onChange(e, password) {
253
+ return change('password', password);
254
+ },
255
+ label: (0, _translate2.default)({ id: 'cashier.details.password' }, intl)
256
+ })
257
+ );
258
+ };
259
+
232
260
  var PPro = function PPro() {
233
261
  return _react2.default.createElement(
234
262
  'div',
@@ -237,11 +265,11 @@ var PPro = function PPro() {
237
265
  );
238
266
  };
239
267
 
240
- var PhoneNumber = function PhoneNumber(_ref4) {
241
- var account = _ref4.account,
242
- intl = _ref4.intl,
243
- change = _ref4.change,
244
- values = _ref4.values;
268
+ var PhoneNumber = function PhoneNumber(_ref5) {
269
+ var account = _ref5.account,
270
+ intl = _ref5.intl,
271
+ change = _ref5.change,
272
+ values = _ref5.values;
245
273
 
246
274
  return _react2.default.createElement(
247
275
  'div',
@@ -259,11 +287,11 @@ var PhoneNumber = function PhoneNumber(_ref4) {
259
287
  );
260
288
  };
261
289
 
262
- var Email = function Email(_ref5) {
263
- var account = _ref5.account,
264
- intl = _ref5.intl,
265
- change = _ref5.change,
266
- values = _ref5.values;
290
+ var Email = function Email(_ref6) {
291
+ var account = _ref6.account,
292
+ intl = _ref6.intl,
293
+ change = _ref6.change,
294
+ values = _ref6.values;
267
295
 
268
296
  return _react2.default.createElement(
269
297
  'div',
@@ -281,10 +309,10 @@ var Email = function Email(_ref5) {
281
309
  );
282
310
  };
283
311
 
284
- var Banklocal = function Banklocal(_ref6) {
285
- var account = _ref6.account,
286
- intl = _ref6.intl,
287
- change = _ref6.change;
312
+ var Banklocal = function Banklocal(_ref7) {
313
+ var account = _ref7.account,
314
+ intl = _ref7.intl,
315
+ change = _ref7.change;
288
316
 
289
317
  return _react2.default.createElement(
290
318
  'div',
@@ -310,11 +338,11 @@ var Banklocal = function Banklocal(_ref6) {
310
338
  );
311
339
  };
312
340
 
313
- var BankIBAN = function BankIBAN(_ref7) {
314
- var account = _ref7.account,
315
- intl = _ref7.intl,
316
- change = _ref7.change,
317
- values = _ref7.values;
341
+ var BankIBAN = function BankIBAN(_ref8) {
342
+ var account = _ref8.account,
343
+ intl = _ref8.intl,
344
+ change = _ref8.change,
345
+ values = _ref8.values;
318
346
 
319
347
  return _react2.default.createElement(
320
348
  'div',
@@ -360,15 +388,15 @@ var BankIBAN = function BankIBAN(_ref7) {
360
388
  );
361
389
  };
362
390
 
363
- var AstroPayBank = function AstroPayBank(_ref8) {
364
- var account = _ref8.account,
365
- intl = _ref8.intl,
366
- country = _ref8.country,
367
- method = _ref8.method,
368
- detail = _ref8.detail,
369
- change = _ref8.change,
370
- values = _ref8.values,
371
- config = _ref8.config;
391
+ var AstroPayBank = function AstroPayBank(_ref9) {
392
+ var account = _ref9.account,
393
+ intl = _ref9.intl,
394
+ country = _ref9.country,
395
+ method = _ref9.method,
396
+ detail = _ref9.detail,
397
+ change = _ref9.change,
398
+ values = _ref9.values,
399
+ config = _ref9.config;
372
400
 
373
401
  var _useState = (0, _react.useState)([]),
374
402
  _useState2 = _slicedToArray(_useState, 2),
@@ -573,12 +601,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
573
601
  );
574
602
  };
575
603
 
576
- var BankIntl = function BankIntl(_ref9) {
577
- var account = _ref9.account,
578
- intl = _ref9.intl,
579
- values = _ref9.values,
580
- change = _ref9.change,
581
- country = _ref9.country;
604
+ var BankIntl = function BankIntl(_ref10) {
605
+ var account = _ref10.account,
606
+ intl = _ref10.intl,
607
+ values = _ref10.values,
608
+ change = _ref10.change,
609
+ country = _ref10.country;
582
610
 
583
611
  return _react2.default.createElement(
584
612
  'div',
@@ -630,12 +658,12 @@ var BankIntl = function BankIntl(_ref9) {
630
658
  );
631
659
  };
632
660
 
633
- var CryptoCurrency = function CryptoCurrency(_ref10) {
634
- var intl = _ref10.intl,
635
- detail = _ref10.detail,
636
- method = _ref10.method,
637
- values = _ref10.values,
638
- change = _ref10.change;
661
+ var CryptoCurrency = function CryptoCurrency(_ref11) {
662
+ var intl = _ref11.intl,
663
+ detail = _ref11.detail,
664
+ method = _ref11.method,
665
+ values = _ref11.values,
666
+ change = _ref11.change;
639
667
 
640
668
  var methodDetails = {
641
669
  cryptoCurrencies: (0, _get2.default)(detail, 'config.cryptoCurrencies', [])
@@ -688,11 +716,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
688
716
  );
689
717
  };
690
718
 
691
- var Jeton = function Jeton(_ref11) {
692
- var account = _ref11.account,
693
- intl = _ref11.intl,
694
- values = _ref11.values,
695
- change = _ref11.change;
719
+ var Jeton = function Jeton(_ref12) {
720
+ var account = _ref12.account,
721
+ intl = _ref12.intl,
722
+ values = _ref12.values,
723
+ change = _ref12.change;
696
724
 
697
725
  return _react2.default.createElement(
698
726
  'div',
@@ -710,11 +738,11 @@ var Jeton = function Jeton(_ref11) {
710
738
  );
711
739
  };
712
740
 
713
- var BestPay = function BestPay(_ref12) {
714
- var account = _ref12.account,
715
- intl = _ref12.intl,
716
- values = _ref12.values,
717
- change = _ref12.change;
741
+ var BestPay = function BestPay(_ref13) {
742
+ var account = _ref13.account,
743
+ intl = _ref13.intl,
744
+ values = _ref13.values,
745
+ change = _ref13.change;
718
746
 
719
747
  return _react2.default.createElement(
720
748
  'div',
@@ -741,11 +769,11 @@ var BestPay = function BestPay(_ref12) {
741
769
  );
742
770
  };
743
771
 
744
- var Mifinity = function Mifinity(_ref13) {
745
- var account = _ref13.account,
746
- intl = _ref13.intl,
747
- change = _ref13.change,
748
- values = _ref13.values;
772
+ var Mifinity = function Mifinity(_ref14) {
773
+ var account = _ref14.account,
774
+ intl = _ref14.intl,
775
+ change = _ref14.change,
776
+ values = _ref14.values;
749
777
 
750
778
  return _react2.default.createElement(
751
779
  'div',
@@ -763,11 +791,11 @@ var Mifinity = function Mifinity(_ref13) {
763
791
  );
764
792
  };
765
793
 
766
- var EzeeWallet = function EzeeWallet(_ref14) {
767
- var account = _ref14.account,
768
- intl = _ref14.intl,
769
- method = _ref14.method,
770
- change = _ref14.change;
794
+ var EzeeWallet = function EzeeWallet(_ref15) {
795
+ var account = _ref15.account,
796
+ intl = _ref15.intl,
797
+ method = _ref15.method,
798
+ change = _ref15.change;
771
799
 
772
800
  return _react2.default.createElement(
773
801
  'div',
@@ -800,12 +828,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
800
828
  );
801
829
  };
802
830
 
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;
831
+ var Paramount = function Paramount(_ref16) {
832
+ var account = _ref16.account,
833
+ intl = _ref16.intl,
834
+ values = _ref16.values,
835
+ change = _ref16.change,
836
+ detail = _ref16.detail;
809
837
 
810
838
  var methodDetails = {
811
839
  securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
@@ -883,6 +911,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
883
911
  parser: Parser.parseVenusPoint
884
912
  };
885
913
 
914
+ var VegaDeposit = exports.VegaDeposit = {
915
+ component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
916
+ parser: Parser.parseVega
917
+ };
918
+
886
919
  var SiruDeposit = exports.SiruDeposit = {
887
920
  component: (0, _reactIntl.injectIntl)(PhoneNumber),
888
921
  parser: Parser.parsePhoneNumber
@@ -990,6 +1023,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
990
1023
  parser: Parser.parseVenusPoint
991
1024
  };
992
1025
 
1026
+ var VegaWithdrawal = exports.VegaWithdrawal = {
1027
+ component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
1028
+ parser: Parser.parseVega
1029
+ };
1030
+
993
1031
  var NetellerWithdrawal = exports.NetellerWithdrawal = {
994
1032
  component: injectMethod({ method: 'withdraw' }, (0, _reactIntl.injectIntl)(Neteller)),
995
1033
  parser: Parser.parseNeteller
@@ -44,6 +44,12 @@ var parseVenusPoint = exports.parseVenusPoint = function parseVenusPoint(account
44
44
  };
45
45
  };
46
46
 
47
+ var parseVega = exports.parseVega = function parseVega(account) {
48
+ return {
49
+ account: account.maskedAccount || account.account
50
+ };
51
+ };
52
+
47
53
  var parseMifinity = exports.parseMifinity = function parseMifinity(account) {
48
54
  return {
49
55
  account: account.maskedAccount || account.account
@@ -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: true,
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.14",
3
+ "version": "6.1.16-vega-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": "558ef34be1b71b56cc94f1edd6c04816679178ce"
79
+ "gitHead": "833c6feccb7d8243f1a9bf32af8ae1913db39db7"
80
80
  }