@depay/widgets 11.4.5 → 11.6.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.
@@ -0,0 +1,184 @@
1
+ declare namespace DePayWidgets {
2
+
3
+ interface ColorsOptions {
4
+ primary?: string;
5
+ text?: string;
6
+ buttonText?: string;
7
+ icons?: string;
8
+ }
9
+
10
+ interface StyleOptions {
11
+ colors?: ColorsOptions;
12
+ fontFamily?: string;
13
+ css?: string;
14
+ }
15
+
16
+ interface AcceptOptions {
17
+ blockchain: string;
18
+ token: string;
19
+ receiver: string;
20
+ amount?: number;
21
+ fee?: {
22
+ amount: string;
23
+ receiver: string;
24
+ };
25
+ }
26
+
27
+ interface BlockchainStringListOptions {
28
+ ethereum?: string[];
29
+ bsc?: string[];
30
+ polygon?: string[];
31
+ solana?: string[];
32
+ }
33
+
34
+ interface BlockchainStringOptions {
35
+ ethereum?: string;
36
+ bsc?: string;
37
+ polygon?: string;
38
+ solana?: string;
39
+ }
40
+
41
+ interface PaymentOptions {
42
+ accept: AcceptOptions[];
43
+ amount?: {
44
+ currency?: string;
45
+ fix?: number;
46
+ };
47
+ sent?: (transaction: any) => void;
48
+ succeeded?: (transaction: any) => void;
49
+ validated?: (successful: boolean, transaction: any) => void;
50
+ failed?: (transaction: any) => void;
51
+ error?: (error: any) => void;
52
+ critical?: (error: any) => void;
53
+ style?: StyleOptions;
54
+ whitelist?: BlockchainStringListOptions;
55
+ blacklist?: BlockchainStringListOptions;
56
+ providers?: BlockchainStringListOptions;
57
+ currency?: string;
58
+ connected?: (address: string) => void;
59
+ closed?: () => void;
60
+ track?: {
61
+ endpoint?: string;
62
+ method?: (payment: any) => void;
63
+ poll?: {
64
+ endpoint?: string;
65
+ method?: (payment: any) => void;
66
+ };
67
+ };
68
+ recover?: {
69
+ blockchain: string;
70
+ transaction: string;
71
+ sender: string;
72
+ nonce: number;
73
+ afterBlock: number;
74
+ token: string;
75
+ amount: number;
76
+ };
77
+ closable?: boolean;
78
+ integration?: string;
79
+ container?: HTMLElement;
80
+ before?: (payment: any) => Promise<void>;
81
+ wallet?: any;
82
+ title?: string;
83
+ action?: string;
84
+ document?: HTMLElement;
85
+ }
86
+
87
+ interface PaymentResponse {
88
+ unmount: () => void;
89
+ }
90
+
91
+ const Payment: (options: PaymentOptions) => Promise<PaymentResponse>;
92
+
93
+ interface ConnectOptions {
94
+ style?: StyleOptions;
95
+ error?: (error: any) => void;
96
+ document?: HTMLElement;
97
+ }
98
+
99
+ interface ConnectResponse {
100
+ account: string;
101
+ wallet: any;
102
+ }
103
+
104
+ const Connect: (options: ConnectOptions) => Promise<ConnectResponse>;
105
+
106
+ interface LoginOptions {
107
+ message: string;
108
+ endpoint?: string;
109
+ recover?: (message: string, signature: string) => void;
110
+ wallet?: any;
111
+ style?: StyleOptions;
112
+ error?: (error: any) => void;
113
+ document?: HTMLElement;
114
+ }
115
+
116
+ interface LoginResponse {
117
+ account: string;
118
+ wallet: any;
119
+ }
120
+
121
+ const Login: (options: LoginOptions) => Promise<LoginResponse>;
122
+
123
+ interface SaleOptions {
124
+ sell: BlockchainStringOptions;
125
+ amount?: {
126
+ start?: number;
127
+ min?: number;
128
+ step?: number;
129
+ token?: boolean;
130
+ };
131
+ sent?: (transaction: any) => void;
132
+ succeeded?: (transaction: any) => void;
133
+ failed?: (transaction: any) => void;
134
+ error?: (error: any) => void;
135
+ critical?: (error: any) => void;
136
+ style?: StyleOptions;
137
+ blacklist?: BlockchainStringListOptions;
138
+ providers?: BlockchainStringListOptions;
139
+ currency?: string;
140
+ connected?: (address: string) => void;
141
+ closed?: () => void;
142
+ tokenImage: string;
143
+ closable?: boolean;
144
+ integration?: string;
145
+ wallet?: any;
146
+ document?: HTMLElement;
147
+ }
148
+
149
+ interface SaleResponse {
150
+ unmount: () => void;
151
+ }
152
+
153
+ const Sale: (options: SaleOptions) => Promise<SaleResponse>;
154
+
155
+ interface SelectOptions {
156
+ what: string;
157
+ style?: StyleOptions;
158
+ error?: (error: any) => void;
159
+ document?: HTMLElement;
160
+ }
161
+
162
+ const Select: (options: SelectOptions) => Promise<any>;
163
+
164
+ interface LoadingOptions {
165
+ text: string;
166
+ style?: StyleOptions;
167
+ error?: (error: any) => void;
168
+ critical?: (error: any) => void;
169
+ document?: HTMLElement;
170
+ }
171
+
172
+ const Loading: (options: LoadingOptions) => Promise<any>;
173
+ }
174
+
175
+ declare const DePayWidgets: {
176
+ Connect: DePayWidgets.Connect;
177
+ Login: DePayWidgets.Login;
178
+ Payment: DePayWidgets.Payment;
179
+ Sale: DePayWidgets.Sale;
180
+ Select: DePayWidgets.Select;
181
+ Loading: DePayWidgets.Loading;
182
+ };
183
+
184
+ export default DePayWidgets;
@@ -557,17 +557,19 @@
557
557
  "mobile": {
558
558
  "ios": {
559
559
  "native": "metamask:",
560
- "encoded": false,
561
560
  "universal": "https://metamask.app.link",
562
- "connect": "WalletConnectV1",
563
- "qr": "WalletConnectV1"
561
+ "qr": "WalletConnectV1",
562
+ "open": function open() {
563
+ return "https://metamask.app.link/dapp/".concat(window.location.toString().replace(/^(https*)*:\/\//, ''));
564
+ }
564
565
  },
565
566
  "android": {
566
567
  "native": "metamask:",
567
- "encoded": false,
568
568
  "universal": "https://metamask.app.link",
569
- "connect": "WalletConnectV1",
570
- "qr": "WalletConnectV1"
569
+ "qr": "WalletConnectV1",
570
+ "open": function open() {
571
+ return "https://metamask.app.link/dapp/".concat(window.location.toString().replace(/^(https*)*:\/\//, ''));
572
+ }
571
573
  }
572
574
  },
573
575
  "logo": web3WalletsSolana.wallets.MetaMask.info.logo,
@@ -4256,6 +4258,13 @@
4256
4258
  "extension": "WindowSolana",
4257
4259
  "logo": web3WalletsSolana.wallets.WindowSolana.info.logo,
4258
4260
  "blockchains": _toConsumableArray(supported.evm)
4261
+ }, {
4262
+ "name": "WalletConnect V2",
4263
+ "desktop": {
4264
+ "qr": "WalletConnectV2"
4265
+ },
4266
+ "logo": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",
4267
+ "blockchains": _toConsumableArray(supported.evm)
4259
4268
  }, {
4260
4269
  "name": "WalletConnect",
4261
4270
  "desktop": {
@@ -4615,8 +4624,6 @@
4615
4624
  requireAllSignatures: false
4616
4625
  });
4617
4626
  txBase64 = serializedTransaction.toString('base64');
4618
- console.log('WIDGET TRACKING TRANSACTION TRACKING HERE!!!');
4619
- console.log('API TRACKING via TRACK HERE!!!');
4620
4627
  this.socket.send(JSON.stringify({
4621
4628
  command: 'message',
4622
4629
  identifier: JSON.stringify({
@@ -4630,7 +4637,7 @@
4630
4637
  transaction: txBase64
4631
4638
  })
4632
4639
  }));
4633
- case 8:
4640
+ case 6:
4634
4641
  case "end":
4635
4642
  return _context4.stop();
4636
4643
  }
@@ -21853,7 +21860,7 @@
21853
21860
  };
21854
21861
 
21855
21862
  var ConnectWalletDialog = (function (props) {
21856
- var _props$wallet, _props$platform9, _props$platform10, _props$platform11;
21863
+ var _props$wallet, _props$platform9, _props$platform10, _props$platform11, _props$platform12, _props$platform13;
21857
21864
  var QRCodeElement = React__default["default"].useRef();
21858
21865
  var _useState = React.useState(),
21859
21866
  _useState2 = _slicedToArray(_useState, 2),
@@ -21985,7 +21992,9 @@
21985
21992
  }
21986
21993
  break;
21987
21994
  case 'WalletConnectV1':
21995
+ case 'WalletConnectV2':
21988
21996
  if (QRCode == undefined) {
21997
+ localStorage[atob('ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk')] = atob('YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=');
21989
21998
  var _wallet = new web3WalletsSolana.wallets[props.platform.qr]();
21990
21999
  _wallet.connect({
21991
22000
  name: props.wallet.name,
@@ -22078,8 +22087,8 @@
22078
22087
  }, []);
22079
22088
  React.useEffect(function () {
22080
22089
  if (appIsConnected !== undefined) {
22081
- var _props$wallet3, _props$wallet3$deskto, _props$platform7;
22082
- setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3$deskto = _props$wallet3.desktop) !== null && _props$wallet3$deskto !== void 0 && _props$wallet3$deskto["native"]) && ((_props$platform7 = props.platform) === null || _props$platform7 === void 0 ? void 0 : _props$platform7.qr) && (props.platform.qr !== 'SolanaPay' || props.accept && props.accept.every(function (accept) {
22090
+ var _props$wallet3, _props$platform7;
22091
+ setShowQRCode(!extensionIsAvailable && !isMobile() && !((_props$wallet3 = props.wallet) !== null && _props$wallet3 !== void 0 && (_props$wallet3 = _props$wallet3.desktop) !== null && _props$wallet3 !== void 0 && _props$wallet3["native"]) && ((_props$platform7 = props.platform) === null || _props$platform7 === void 0 ? void 0 : _props$platform7.qr) && (props.platform.qr !== 'SolanaPay' || props.accept && props.accept.every(function (accept) {
22083
22092
  return accept.amount;
22084
22093
  })));
22085
22094
  }
@@ -22118,7 +22127,17 @@
22118
22127
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22119
22128
  ref: QRCodeElement,
22120
22129
  className: "QRCode"
22121
- }), showQRCode && ((_props$platform10 = props.platform) === null || _props$platform10 === void 0 ? void 0 : _props$platform10.qr) !== 'WalletLink' && /*#__PURE__*/React__default["default"].createElement("div", {
22130
+ }, showQRCode && ((_props$platform10 = props.platform) === null || _props$platform10 === void 0 ? void 0 : _props$platform10.qr) !== 'WalletLink' && QRCode === undefined && /*#__PURE__*/React__default["default"].createElement("div", {
22131
+ className: "Skeleton",
22132
+ style: {
22133
+ width: "305px",
22134
+ height: "305px"
22135
+ }
22136
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
22137
+ className: "SkeletonBackground"
22138
+ }))), showQRCode && ((_props$platform11 = props.platform) === null || _props$platform11 === void 0 ? void 0 : _props$platform11.qr) !== 'WalletLink' && QRCode === undefined && /*#__PURE__*/React__default["default"].createElement("div", {
22139
+ className: "Opacity05 PaddingBottomXS PaddingTopS"
22140
+ }, /*#__PURE__*/React__default["default"].createElement("small", null, "Generating QR code...")), showQRCode && ((_props$platform12 = props.platform) === null || _props$platform12 === void 0 ? void 0 : _props$platform12.qr) !== 'WalletLink' && QRCode !== undefined && /*#__PURE__*/React__default["default"].createElement("div", {
22122
22141
  className: "Opacity05 PaddingBottomXS PaddingTopS"
22123
22142
  }, /*#__PURE__*/React__default["default"].createElement("small", null, "Scan QR code with your wallet"))), /*#__PURE__*/React__default["default"].createElement("div", {
22124
22143
  className: "PaddingLeftL PaddingRightL PaddingTopS"
@@ -22215,7 +22234,7 @@
22215
22234
  className: "PaddingLeftS LineHeightXS"
22216
22235
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22217
22236
  className: "CardText FontWeightMedium"
22218
- }, "Scan QR code")))), ((_props$platform11 = props.platform) === null || _props$platform11 === void 0 ? void 0 : _props$platform11.connect) && props.platform.connect === 'WalletConnectV1' && props.platform.copyLink && /*#__PURE__*/React__default["default"].createElement("div", {
22237
+ }, "Scan QR code")))), ((_props$platform13 = props.platform) === null || _props$platform13 === void 0 ? void 0 : _props$platform13.connect) && ['WalletConnectV1', 'WalletConnectV2'].includes(props.platform.connect) && props.platform.copyLink && /*#__PURE__*/React__default["default"].createElement("div", {
22219
22238
  className: "PaddingBottomXS TooltipWrapper"
22220
22239
  }, /*#__PURE__*/React__default["default"].createElement("button", {
22221
22240
  onClick: connectViaCopyLink,
@@ -22605,7 +22624,7 @@
22605
22624
  return null;
22606
22625
  }
22607
22626
  var connectionType = 'app';
22608
- if (wallet && wallet.constructor && ![web3WalletsSolana.wallets.WalletConnectV1, web3WalletsSolana.wallets.WalletLink].includes(wallet.constructor)) {
22627
+ if (wallet && wallet.constructor && ![web3WalletsSolana.wallets.WalletConnectV1, web3WalletsSolana.wallets.WalletConnectV2, web3WalletsSolana.wallets.WalletLink].includes(wallet.constructor)) {
22609
22628
  connectionType = 'extension';
22610
22629
  }
22611
22630
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -22739,7 +22758,7 @@
22739
22758
  src: QuestionsGraphic
22740
22759
  })), /*#__PURE__*/React__default["default"].createElement("p", {
22741
22760
  className: "FontSizeM PaddingTopS PaddingLeftM PaddingRightM"
22742
- }, "Wallets are used to send, receive, and store digital assets. Wallets come in many forms. They are either built into your browser, an extension added to your browser, a piece of hardware plugged into your computer or even an app on your phone."), /*#__PURE__*/React__default["default"].createElement("div", {
22761
+ }, "Wallets are used to send, receive, and store digital assets. Wallets come in many forms. They are either built into your browser, an extension added to your browser, an app on your phone, your computer or even a piece of hardware."), /*#__PURE__*/React__default["default"].createElement("div", {
22743
22762
  className: "PaddingTopS"
22744
22763
  }, /*#__PURE__*/React__default["default"].createElement("a", {
22745
22764
  className: "Link FontSizeM",
@@ -22846,7 +22865,8 @@
22846
22865
  if (!platform) {
22847
22866
  return;
22848
22867
  }
22849
- if (platform.connect == 'WalletConnectV1') {
22868
+ if (['WalletConnectV1', 'WalletConnectV2'].includes(platform.connect)) {
22869
+ localStorage[atob('ZGVwYXk6d2FsbGV0czp3YzI6cHJvamVjdElk')] = atob('YjFmYzJmMDZlYTIxMDdmY2Q5OWM2OGY0MTI3MTQxYWI=');
22850
22870
  var _wallet = new web3WalletsSolana.wallets[platform.connect]();
22851
22871
  _wallet.connect({
22852
22872
  name: walletMetaData.name,
@@ -22888,6 +22908,7 @@
22888
22908
  return;
22889
22909
  }
22890
22910
  set(walletMetaData.name);
22911
+ console.log('open in app', platform.open());
22891
22912
  window.open(platform.open(), '_self', 'noreferrer noopener');
22892
22913
  };
22893
22914
  return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(reactDialogStack.ReactDialogStack, {
@@ -23029,13 +23050,17 @@
23029
23050
  }
23030
23051
 
23031
23052
  componentDidMount() {
23032
- this.setState({ open: false }, () => {
23053
+ if(this.props.animate === false) {
23054
+ this.setState({ open: true });
23055
+ } else {
23033
23056
  // make sure state is false first before opening the dialog
23034
23057
  // to ensure opening is animated
23035
- setTimeout(() => {
23036
- this.setState({ open: true });
23037
- }, 10);
23038
- });
23058
+ this.setState({ open: false }, () => {
23059
+ setTimeout(() => {
23060
+ this.setState({ open: true });
23061
+ }, 10);
23062
+ });
23063
+ }
23039
23064
  this.props.document.addEventListener('keydown', this.handler, true);
23040
23065
  }
23041
23066
 
@@ -23047,10 +23072,10 @@
23047
23072
  const classNames = ['ReactDialog', this.state.open ? 'ReactDialogOpen' : ''];
23048
23073
  const style = ReactDialogStyle({ background: this.props.background });
23049
23074
  return (
23050
- React__default["default"].createElement('div', { key: this.props.dialogKey, className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 55}}
23051
- , React__default["default"].createElement('style', {__self: this, __source: {fileName: _jsxFileName$1, lineNumber: 56}}, style)
23052
- , React__default["default"].createElement('div', { className: "ReactDialogInner", __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 57}}
23053
- , React__default["default"].createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 58}} )
23075
+ React__default["default"].createElement('div', { key: this.props.dialogKey, className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 59}}
23076
+ , React__default["default"].createElement('style', {__self: this, __source: {fileName: _jsxFileName$1, lineNumber: 60}}, style)
23077
+ , React__default["default"].createElement('div', { className: "ReactDialogInner", __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 61}}
23078
+ , React__default["default"].createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 62}} )
23054
23079
  , this.props.children
23055
23080
  )
23056
23081
  )
@@ -23087,7 +23112,8 @@
23087
23112
  background: this.props.background,
23088
23113
  close: this.props.close,
23089
23114
  document: _document,
23090
- open: this.props.open, __self: this, __source: {fileName: _jsxFileName, lineNumber: 29}}
23115
+ open: this.props.open,
23116
+ animate: this.props.animate, __self: this, __source: {fileName: _jsxFileName, lineNumber: 29}}
23091
23117
 
23092
23118
  , this.props.children
23093
23119
  ),
@@ -24522,18 +24548,17 @@
24522
24548
  while (1) switch (_context3.prev = _context3.next) {
24523
24549
  case 0:
24524
24550
  if (!(wallet && wallet.isSolanaPay && routes && routes.length && wallet.isTransactionSend !== true)) {
24525
- _context3.next = 8;
24551
+ _context3.next = 7;
24526
24552
  break;
24527
24553
  }
24528
- console.log('TRACE HERE!!!');
24529
24554
  route = routes[0];
24530
24555
  _context3.t0 = wallet;
24531
- _context3.next = 6;
24556
+ _context3.next = 5;
24532
24557
  return route.getTransaction();
24533
- case 6:
24558
+ case 5:
24534
24559
  _context3.t1 = _context3.sent;
24535
24560
  _context3.t0.sendTransaction.call(_context3.t0, _context3.t1);
24536
- case 8:
24561
+ case 7:
24537
24562
  case "end":
24538
24563
  return _context3.stop();
24539
24564
  }
@@ -26223,7 +26248,7 @@
26223
26248
  _context3.next = 7;
26224
26249
  break;
26225
26250
  }
26226
- return _context3.abrupt("return", transaction === null || transaction === void 0 ? void 0 : (_transaction$nonce = transaction.nonce) === null || _transaction$nonce === void 0 ? void 0 : _transaction$nonce.toString());
26251
+ return _context3.abrupt("return", transaction === null || transaction === void 0 || (_transaction$nonce = transaction.nonce) === null || _transaction$nonce === void 0 ? void 0 : _transaction$nonce.toString());
26227
26252
  case 7:
26228
26253
  if (!blockchain) {
26229
26254
  _context3.next = 11;
@@ -26473,7 +26498,7 @@
26473
26498
  _context2.t9 = paymentRoute.toToken.address;
26474
26499
  _context2.t10 = paymentRoute.toAmount.toString();
26475
26500
  _context2.t11 = paymentRoute.toDecimals;
26476
- _context2.t12 = paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString();
26501
+ _context2.t12 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou === void 0 ? void 0 : _paymentRoute$feeAmou.toString();
26477
26502
  _context2.t13 = transaction.deadline;
26478
26503
  _context2.t14 = {
26479
26504
  blockchain: _context2.t1,
@@ -26720,7 +26745,7 @@
26720
26745
  _context5.t7 = paymentRoute.toToken.address;
26721
26746
  _context5.t8 = paymentRoute.toAmount.toString();
26722
26747
  _context5.t9 = paymentRoute.toDecimals;
26723
- _context5.t10 = paymentRoute === null || paymentRoute === void 0 ? void 0 : (_paymentRoute$feeAmou2 = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou2 === void 0 ? void 0 : _paymentRoute$feeAmou2.toString();
26748
+ _context5.t10 = paymentRoute === null || paymentRoute === void 0 || (_paymentRoute$feeAmou2 = paymentRoute.feeAmount) === null || _paymentRoute$feeAmou2 === void 0 ? void 0 : _paymentRoute$feeAmou2.toString();
26724
26749
  _context5.t11 = transaction.deadline;
26725
26750
  payment = {
26726
26751
  blockchain: _context5.t0,
@@ -27864,7 +27889,7 @@
27864
27889
  setIdRequired = _useState10[1];
27865
27890
  var confirm = function confirm() {
27866
27891
  var _selection$blockchain, _selection$collection;
27867
- var blockchain = (selection === null || selection === void 0 ? void 0 : (_selection$blockchain = selection.blockchain) === null || _selection$blockchain === void 0 ? void 0 : _selection$blockchain.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 ? void 0 : (_selection$collection = selection.collection) === null || _selection$collection === void 0 ? void 0 : _selection$collection.blockchain);
27892
+ var blockchain = (selection === null || selection === void 0 || (_selection$blockchain = selection.blockchain) === null || _selection$blockchain === void 0 ? void 0 : _selection$blockchain.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection = selection.collection) === null || _selection$collection === void 0 ? void 0 : _selection$collection.blockchain);
27868
27893
  setSelection(Object.assign(props.selection, {
27869
27894
  nft: {
27870
27895
  blockchain: blockchain,
@@ -27880,7 +27905,7 @@
27880
27905
  };
27881
27906
  React.useEffect(function () {
27882
27907
  var _selection$blockchain2, _selection$collection2;
27883
- var blockchain = (selection === null || selection === void 0 ? void 0 : (_selection$blockchain2 = selection.blockchain) === null || _selection$blockchain2 === void 0 ? void 0 : _selection$blockchain2.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 ? void 0 : (_selection$collection2 = selection.collection) === null || _selection$collection2 === void 0 ? void 0 : _selection$collection2.blockchain);
27908
+ var blockchain = (selection === null || selection === void 0 || (_selection$blockchain2 = selection.blockchain) === null || _selection$blockchain2 === void 0 ? void 0 : _selection$blockchain2.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection2 = selection.collection) === null || _selection$collection2 === void 0 ? void 0 : _selection$collection2.blockchain);
27884
27909
  var checkForIdRequired = /*#__PURE__*/function () {
27885
27910
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
27886
27911
  var balanceWithId;
@@ -27954,10 +27979,10 @@
27954
27979
  className: "CardImage small"
27955
27980
  }, /*#__PURE__*/React__default["default"].createElement("img", {
27956
27981
  className: "transparent",
27957
- src: (_Blockchains$findByNa = Blockchains__default["default"].findByName((selection === null || selection === void 0 ? void 0 : (_selection$blockchain3 = selection.blockchain) === null || _selection$blockchain3 === void 0 ? void 0 : _selection$blockchain3.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 ? void 0 : (_selection$collection3 = selection.collection) === null || _selection$collection3 === void 0 ? void 0 : _selection$collection3.blockchain))) === null || _Blockchains$findByNa === void 0 ? void 0 : _Blockchains$findByNa.logo
27982
+ src: (_Blockchains$findByNa = Blockchains__default["default"].findByName((selection === null || selection === void 0 || (_selection$blockchain3 = selection.blockchain) === null || _selection$blockchain3 === void 0 ? void 0 : _selection$blockchain3.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection3 = selection.collection) === null || _selection$collection3 === void 0 ? void 0 : _selection$collection3.blockchain))) === null || _Blockchains$findByNa === void 0 ? void 0 : _Blockchains$findByNa.logo
27958
27983
  })), /*#__PURE__*/React__default["default"].createElement("div", {
27959
27984
  className: "CardBody FontSizeM"
27960
- }, (_Blockchains$findByNa2 = Blockchains__default["default"].findByName((selection === null || selection === void 0 ? void 0 : (_selection$blockchain4 = selection.blockchain) === null || _selection$blockchain4 === void 0 ? void 0 : _selection$blockchain4.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 ? void 0 : (_selection$collection4 = selection.collection) === null || _selection$collection4 === void 0 ? void 0 : _selection$collection4.blockchain))) === null || _Blockchains$findByNa2 === void 0 ? void 0 : _Blockchains$findByNa2.label), /*#__PURE__*/React__default["default"].createElement("div", {
27985
+ }, (_Blockchains$findByNa2 = Blockchains__default["default"].findByName((selection === null || selection === void 0 || (_selection$blockchain4 = selection.blockchain) === null || _selection$blockchain4 === void 0 ? void 0 : _selection$blockchain4.name) || (selection === null || selection === void 0 ? void 0 : selection.blockchain) || (selection === null || selection === void 0 || (_selection$collection4 = selection.collection) === null || _selection$collection4 === void 0 ? void 0 : _selection$collection4.blockchain))) === null || _Blockchains$findByNa2 === void 0 ? void 0 : _Blockchains$findByNa2.label), /*#__PURE__*/React__default["default"].createElement("div", {
27961
27986
  className: "CardAction"
27962
27987
  }, /*#__PURE__*/React__default["default"].createElement(ChevronRight, null))))), idRequired && /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
27963
27988
  className: "PaddingTopXS TextLeft"
@@ -28092,7 +28117,7 @@
28092
28117
  }
28093
28118
  response.json().then( /*#__PURE__*/function () {
28094
28119
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
28095
- var result, blockchain, holders, additionalData, _additionalData$colle, _additionalData$colle2, _additionalData$colle3, _additionalData$colle4, _additionalData, _blockchain;
28120
+ var result, blockchain, holders, additionalData, _additionalData$colle, _additionalData$colle2, _additionalData, _blockchain;
28096
28121
  return regenerator.wrap(function _callee$(_context) {
28097
28122
  while (1) switch (_context.prev = _context.next) {
28098
28123
  case 0:
@@ -28106,7 +28131,7 @@
28106
28131
  additionalData = _context.sent;
28107
28132
  if (additionalData) {
28108
28133
  blockchain = additionalData !== null && additionalData !== void 0 && additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//) ? BLOCKCHAIN_NAMES$1[additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//)[1]] : undefined;
28109
- holders = additionalData === null || additionalData === void 0 ? void 0 : (_additionalData$colle = additionalData.collection) === null || _additionalData$colle === void 0 ? void 0 : (_additionalData$colle2 = _additionalData$colle.stats) === null || _additionalData$colle2 === void 0 ? void 0 : _additionalData$colle2.num_owners;
28134
+ holders = additionalData === null || additionalData === void 0 || (_additionalData$colle = additionalData.collection) === null || _additionalData$colle === void 0 || (_additionalData$colle = _additionalData$colle.stats) === null || _additionalData$colle === void 0 ? void 0 : _additionalData$colle.num_owners;
28110
28135
  }
28111
28136
  result = {
28112
28137
  blockchain: blockchain,
@@ -28142,7 +28167,7 @@
28142
28167
  case 15:
28143
28168
  _additionalData = _context.sent;
28144
28169
  _blockchain = _additionalData !== null && _additionalData !== void 0 && _additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//) ? BLOCKCHAIN_NAMES$1[_additionalData.permalink.match(/https:\/\/opensea\.io\/assets\/(\w*)\//)[1]] : undefined;
28145
- _additionalData === null || _additionalData === void 0 ? void 0 : (_additionalData$colle3 = _additionalData.collection) === null || _additionalData$colle3 === void 0 ? void 0 : (_additionalData$colle4 = _additionalData$colle3.stats) === null || _additionalData$colle4 === void 0 ? void 0 : _additionalData$colle4.num_owners;
28170
+ _additionalData === null || _additionalData === void 0 || (_additionalData$colle2 = _additionalData.collection) === null || _additionalData$colle2 === void 0 || (_additionalData$colle2 = _additionalData$colle2.stats) === null || _additionalData$colle2 === void 0 ? void 0 : _additionalData$colle2.num_owners;
28146
28171
  result = {
28147
28172
  blockchain: _blockchain,
28148
28173
  id: null,