tg-core-components 6.1.16-pix-integration.2 → 6.1.16-pix-vega-integration.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.
@@ -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
@@ -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,16 +345,16 @@ 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
- methodString = _ref8.methodString,
326
- detail = _ref8.detail,
327
- change = _ref8.change,
328
- values = _ref8.values,
329
- 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
+ methodString = _ref9.methodString,
354
+ detail = _ref9.detail,
355
+ change = _ref9.change,
356
+ values = _ref9.values,
357
+ config = _ref9.config;
330
358
 
331
359
  var _useState = useState([]),
332
360
  _useState2 = _slicedToArray(_useState, 2),
@@ -533,12 +561,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
533
561
  );
534
562
  };
535
563
 
536
- var BankIntl = function BankIntl(_ref9) {
537
- var account = _ref9.account,
538
- intl = _ref9.intl,
539
- values = _ref9.values,
540
- change = _ref9.change,
541
- country = _ref9.country;
564
+ var BankIntl = function BankIntl(_ref10) {
565
+ var account = _ref10.account,
566
+ intl = _ref10.intl,
567
+ values = _ref10.values,
568
+ change = _ref10.change,
569
+ country = _ref10.country;
542
570
 
543
571
  return React.createElement(
544
572
  'div',
@@ -590,12 +618,12 @@ var BankIntl = function BankIntl(_ref9) {
590
618
  );
591
619
  };
592
620
 
593
- var CryptoCurrency = function CryptoCurrency(_ref10) {
594
- var intl = _ref10.intl,
595
- detail = _ref10.detail,
596
- method = _ref10.method,
597
- values = _ref10.values,
598
- change = _ref10.change;
621
+ var CryptoCurrency = function CryptoCurrency(_ref11) {
622
+ var intl = _ref11.intl,
623
+ detail = _ref11.detail,
624
+ method = _ref11.method,
625
+ values = _ref11.values,
626
+ change = _ref11.change;
599
627
 
600
628
  var methodDetails = {
601
629
  cryptoCurrencies: getByPath(detail, 'config.cryptoCurrencies', [])
@@ -648,11 +676,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
648
676
  );
649
677
  };
650
678
 
651
- var Jeton = function Jeton(_ref11) {
652
- var account = _ref11.account,
653
- intl = _ref11.intl,
654
- values = _ref11.values,
655
- change = _ref11.change;
679
+ var Jeton = function Jeton(_ref12) {
680
+ var account = _ref12.account,
681
+ intl = _ref12.intl,
682
+ values = _ref12.values,
683
+ change = _ref12.change;
656
684
 
657
685
  return React.createElement(
658
686
  'div',
@@ -670,11 +698,11 @@ var Jeton = function Jeton(_ref11) {
670
698
  );
671
699
  };
672
700
 
673
- var BestPay = function BestPay(_ref12) {
674
- var account = _ref12.account,
675
- intl = _ref12.intl,
676
- values = _ref12.values,
677
- change = _ref12.change;
701
+ var BestPay = function BestPay(_ref13) {
702
+ var account = _ref13.account,
703
+ intl = _ref13.intl,
704
+ values = _ref13.values,
705
+ change = _ref13.change;
678
706
 
679
707
  return React.createElement(
680
708
  'div',
@@ -701,11 +729,11 @@ var BestPay = function BestPay(_ref12) {
701
729
  );
702
730
  };
703
731
 
704
- var Mifinity = function Mifinity(_ref13) {
705
- var account = _ref13.account,
706
- intl = _ref13.intl,
707
- change = _ref13.change,
708
- values = _ref13.values;
732
+ var Mifinity = function Mifinity(_ref14) {
733
+ var account = _ref14.account,
734
+ intl = _ref14.intl,
735
+ change = _ref14.change,
736
+ values = _ref14.values;
709
737
 
710
738
  return React.createElement(
711
739
  'div',
@@ -723,11 +751,11 @@ var Mifinity = function Mifinity(_ref13) {
723
751
  );
724
752
  };
725
753
 
726
- var EzeeWallet = function EzeeWallet(_ref14) {
727
- var account = _ref14.account,
728
- intl = _ref14.intl,
729
- method = _ref14.method,
730
- change = _ref14.change;
754
+ var EzeeWallet = function EzeeWallet(_ref15) {
755
+ var account = _ref15.account,
756
+ intl = _ref15.intl,
757
+ method = _ref15.method,
758
+ change = _ref15.change;
731
759
 
732
760
  return React.createElement(
733
761
  'div',
@@ -760,12 +788,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
760
788
  );
761
789
  };
762
790
 
763
- var Paramount = function Paramount(_ref15) {
764
- var account = _ref15.account,
765
- intl = _ref15.intl,
766
- values = _ref15.values,
767
- change = _ref15.change,
768
- detail = _ref15.detail;
791
+ var Paramount = function Paramount(_ref16) {
792
+ var account = _ref16.account,
793
+ intl = _ref16.intl,
794
+ values = _ref16.values,
795
+ change = _ref16.change,
796
+ detail = _ref16.detail;
769
797
 
770
798
  var methodDetails = {
771
799
  securityQuestions: getByPath(detail, 'config.securityQuestions', [])
@@ -843,6 +871,11 @@ export var VenusPointDeposit = {
843
871
  parser: Parser.parseVenusPoint
844
872
  };
845
873
 
874
+ export var VegaDeposit = {
875
+ component: injectMethod('deposit', injectIntl(Vega)),
876
+ parser: Parser.parseVega
877
+ };
878
+
846
879
  export var SiruDeposit = {
847
880
  component: injectIntl(PhoneNumber),
848
881
  parser: Parser.parsePhoneNumber
@@ -950,6 +983,11 @@ export var VenusPointWithdrawal = {
950
983
  parser: Parser.parseVenusPoint
951
984
  };
952
985
 
986
+ export var VegaWithdrawal = {
987
+ component: injectMethod('withdraw', injectIntl(Vega)),
988
+ parser: Parser.parseVega
989
+ };
990
+
953
991
  export var NetellerWithdrawal = {
954
992
  component: injectMethod({ method: 'withdraw' }, injectIntl(Neteller)),
955
993
  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
@@ -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
@@ -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,16 +388,16 @@ 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
- methodString = _ref8.methodString,
369
- detail = _ref8.detail,
370
- change = _ref8.change,
371
- values = _ref8.values,
372
- 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
+ methodString = _ref9.methodString,
397
+ detail = _ref9.detail,
398
+ change = _ref9.change,
399
+ values = _ref9.values,
400
+ config = _ref9.config;
373
401
 
374
402
  var _useState = (0, _react.useState)([]),
375
403
  _useState2 = _slicedToArray(_useState, 2),
@@ -576,12 +604,12 @@ var AstroPayBank = function AstroPayBank(_ref8) {
576
604
  );
577
605
  };
578
606
 
579
- var BankIntl = function BankIntl(_ref9) {
580
- var account = _ref9.account,
581
- intl = _ref9.intl,
582
- values = _ref9.values,
583
- change = _ref9.change,
584
- country = _ref9.country;
607
+ var BankIntl = function BankIntl(_ref10) {
608
+ var account = _ref10.account,
609
+ intl = _ref10.intl,
610
+ values = _ref10.values,
611
+ change = _ref10.change,
612
+ country = _ref10.country;
585
613
 
586
614
  return _react2.default.createElement(
587
615
  'div',
@@ -633,12 +661,12 @@ var BankIntl = function BankIntl(_ref9) {
633
661
  );
634
662
  };
635
663
 
636
- var CryptoCurrency = function CryptoCurrency(_ref10) {
637
- var intl = _ref10.intl,
638
- detail = _ref10.detail,
639
- method = _ref10.method,
640
- values = _ref10.values,
641
- change = _ref10.change;
664
+ var CryptoCurrency = function CryptoCurrency(_ref11) {
665
+ var intl = _ref11.intl,
666
+ detail = _ref11.detail,
667
+ method = _ref11.method,
668
+ values = _ref11.values,
669
+ change = _ref11.change;
642
670
 
643
671
  var methodDetails = {
644
672
  cryptoCurrencies: (0, _get2.default)(detail, 'config.cryptoCurrencies', [])
@@ -691,11 +719,11 @@ var CryptoCurrency = function CryptoCurrency(_ref10) {
691
719
  );
692
720
  };
693
721
 
694
- var Jeton = function Jeton(_ref11) {
695
- var account = _ref11.account,
696
- intl = _ref11.intl,
697
- values = _ref11.values,
698
- change = _ref11.change;
722
+ var Jeton = function Jeton(_ref12) {
723
+ var account = _ref12.account,
724
+ intl = _ref12.intl,
725
+ values = _ref12.values,
726
+ change = _ref12.change;
699
727
 
700
728
  return _react2.default.createElement(
701
729
  'div',
@@ -713,11 +741,11 @@ var Jeton = function Jeton(_ref11) {
713
741
  );
714
742
  };
715
743
 
716
- var BestPay = function BestPay(_ref12) {
717
- var account = _ref12.account,
718
- intl = _ref12.intl,
719
- values = _ref12.values,
720
- change = _ref12.change;
744
+ var BestPay = function BestPay(_ref13) {
745
+ var account = _ref13.account,
746
+ intl = _ref13.intl,
747
+ values = _ref13.values,
748
+ change = _ref13.change;
721
749
 
722
750
  return _react2.default.createElement(
723
751
  'div',
@@ -744,11 +772,11 @@ var BestPay = function BestPay(_ref12) {
744
772
  );
745
773
  };
746
774
 
747
- var Mifinity = function Mifinity(_ref13) {
748
- var account = _ref13.account,
749
- intl = _ref13.intl,
750
- change = _ref13.change,
751
- values = _ref13.values;
775
+ var Mifinity = function Mifinity(_ref14) {
776
+ var account = _ref14.account,
777
+ intl = _ref14.intl,
778
+ change = _ref14.change,
779
+ values = _ref14.values;
752
780
 
753
781
  return _react2.default.createElement(
754
782
  'div',
@@ -766,11 +794,11 @@ var Mifinity = function Mifinity(_ref13) {
766
794
  );
767
795
  };
768
796
 
769
- var EzeeWallet = function EzeeWallet(_ref14) {
770
- var account = _ref14.account,
771
- intl = _ref14.intl,
772
- method = _ref14.method,
773
- change = _ref14.change;
797
+ var EzeeWallet = function EzeeWallet(_ref15) {
798
+ var account = _ref15.account,
799
+ intl = _ref15.intl,
800
+ method = _ref15.method,
801
+ change = _ref15.change;
774
802
 
775
803
  return _react2.default.createElement(
776
804
  'div',
@@ -803,12 +831,12 @@ var EzeeWallet = function EzeeWallet(_ref14) {
803
831
  );
804
832
  };
805
833
 
806
- var Paramount = function Paramount(_ref15) {
807
- var account = _ref15.account,
808
- intl = _ref15.intl,
809
- values = _ref15.values,
810
- change = _ref15.change,
811
- detail = _ref15.detail;
834
+ var Paramount = function Paramount(_ref16) {
835
+ var account = _ref16.account,
836
+ intl = _ref16.intl,
837
+ values = _ref16.values,
838
+ change = _ref16.change,
839
+ detail = _ref16.detail;
812
840
 
813
841
  var methodDetails = {
814
842
  securityQuestions: (0, _get2.default)(detail, 'config.securityQuestions', [])
@@ -886,6 +914,11 @@ var VenusPointDeposit = exports.VenusPointDeposit = {
886
914
  parser: Parser.parseVenusPoint
887
915
  };
888
916
 
917
+ var VegaDeposit = exports.VegaDeposit = {
918
+ component: injectMethod('deposit', (0, _reactIntl.injectIntl)(Vega)),
919
+ parser: Parser.parseVega
920
+ };
921
+
889
922
  var SiruDeposit = exports.SiruDeposit = {
890
923
  component: (0, _reactIntl.injectIntl)(PhoneNumber),
891
924
  parser: Parser.parsePhoneNumber
@@ -993,6 +1026,11 @@ var VenusPointWithdrawal = exports.VenusPointWithdrawal = {
993
1026
  parser: Parser.parseVenusPoint
994
1027
  };
995
1028
 
1029
+ var VegaWithdrawal = exports.VegaWithdrawal = {
1030
+ component: injectMethod('withdraw', (0, _reactIntl.injectIntl)(Vega)),
1031
+ parser: Parser.parseVega
1032
+ };
1033
+
996
1034
  var NetellerWithdrawal = exports.NetellerWithdrawal = {
997
1035
  component: injectMethod({ method: 'withdraw' }, (0, _reactIntl.injectIntl)(Neteller)),
998
1036
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.1.16-pix-integration.2",
3
+ "version": "6.1.16-pix-vega-integration.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": "b20a4161872f434ee1c3356513abcfdb87bfd8a7"
79
+ "gitHead": "27320128d23275e6f8081a74dca16e3a40123ae8"
80
80
  }