@depay/widgets 6.2.3 → 6.3.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.
- package/dist/esm/index.bundle.js +122 -133
- package/dist/esm/index.js +16 -22
- package/dist/umd/index.bundle.js +122 -133
- package/dist/umd/index.js +453 -459
- package/package.json +14 -14
package/dist/umd/index.bundle.js
CHANGED
|
@@ -1534,11 +1534,6 @@
|
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
1536
|
|
|
1537
|
-
function _interopDefaultLegacy$4 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1538
|
-
|
|
1539
|
-
var React__default$2 = /*#__PURE__*/_interopDefaultLegacy$4(react);
|
|
1540
|
-
var ReactDOM__default$1 = /*#__PURE__*/_interopDefaultLegacy$4(reactDom);
|
|
1541
|
-
|
|
1542
1537
|
function ReactDialogStyle (styles) {
|
|
1543
1538
|
let background =
|
|
1544
1539
|
typeof styles === 'object' && styles.background ? styles.background : 'rgba(0,0,0,0.4)';
|
|
@@ -1605,7 +1600,7 @@
|
|
|
1605
1600
|
}
|
|
1606
1601
|
|
|
1607
1602
|
const _jsxFileName$2 = "/home/runner/work/react-dialog/react-dialog/src/components/Dialog.jsx";
|
|
1608
|
-
class Dialog$1 extends
|
|
1603
|
+
class Dialog$1 extends react.Component {
|
|
1609
1604
|
constructor(props) {
|
|
1610
1605
|
super(props);
|
|
1611
1606
|
|
|
@@ -1653,11 +1648,11 @@
|
|
|
1653
1648
|
const classNames = ['ReactDialog', this.state.open ? 'ReactDialogOpen' : ''];
|
|
1654
1649
|
const style = ReactDialogStyle({ background: this.props.background });
|
|
1655
1650
|
return (
|
|
1656
|
-
|
|
1657
|
-
,
|
|
1658
|
-
,
|
|
1659
|
-
,
|
|
1660
|
-
,
|
|
1651
|
+
react.createElement('div', { className: classNames.join(' '), __self: this, __source: {fileName: _jsxFileName$2, lineNumber: 54}}
|
|
1652
|
+
, react.createElement('style', {__self: this, __source: {fileName: _jsxFileName$2, lineNumber: 55}}, style)
|
|
1653
|
+
, react.createElement('div', { className: "ReactDialogRow", __self: this, __source: {fileName: _jsxFileName$2, lineNumber: 56}}
|
|
1654
|
+
, react.createElement('div', { className: "ReactDialogCell", __self: this, __source: {fileName: _jsxFileName$2, lineNumber: 57}}
|
|
1655
|
+
, react.createElement('div', { className: "ReactDialogBackground", onClick: this.onClickBackground.bind(this), __self: this, __source: {fileName: _jsxFileName$2, lineNumber: 58}} )
|
|
1661
1656
|
, this.props.children
|
|
1662
1657
|
)
|
|
1663
1658
|
)
|
|
@@ -1667,7 +1662,7 @@
|
|
|
1667
1662
|
}
|
|
1668
1663
|
|
|
1669
1664
|
const _jsxFileName$1$1 = "/home/runner/work/react-dialog/react-dialog/src/index.jsx";
|
|
1670
|
-
class ReactDialog extends
|
|
1665
|
+
class ReactDialog extends react.Component {
|
|
1671
1666
|
constructor(props) {
|
|
1672
1667
|
super(props);
|
|
1673
1668
|
|
|
@@ -1690,8 +1685,8 @@
|
|
|
1690
1685
|
let _document = this.props.document || document;
|
|
1691
1686
|
let container = this.props.container || _document.body;
|
|
1692
1687
|
if (this.state.open) {
|
|
1693
|
-
return
|
|
1694
|
-
|
|
1688
|
+
return reactDom.createPortal(
|
|
1689
|
+
react.createElement(Dialog$1, {
|
|
1695
1690
|
background: this.props.background,
|
|
1696
1691
|
close: this.props.close,
|
|
1697
1692
|
document: _document,
|
|
@@ -1708,19 +1703,9 @@
|
|
|
1708
1703
|
}
|
|
1709
1704
|
}
|
|
1710
1705
|
|
|
1711
|
-
var
|
|
1712
|
-
|
|
1713
|
-
var cjs = /*#__PURE__*/Object.defineProperty({
|
|
1714
|
-
ReactDialog: ReactDialog_1
|
|
1715
|
-
}, '__esModule', {value: true});
|
|
1716
|
-
|
|
1717
|
-
function _interopDefaultLegacy$3 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
1706
|
+
var CloseStackContext = react.createContext();
|
|
1718
1707
|
|
|
1719
|
-
var
|
|
1720
|
-
|
|
1721
|
-
var CloseStackContext = React__default$1['default'].createContext();
|
|
1722
|
-
|
|
1723
|
-
var NavigateStackContext = React__default$1['default'].createContext();
|
|
1708
|
+
var NavigateStackContext = react.createContext();
|
|
1724
1709
|
|
|
1725
1710
|
function ReactDialogStackStyle () {
|
|
1726
1711
|
return `
|
|
@@ -1780,10 +1765,10 @@
|
|
|
1780
1765
|
`
|
|
1781
1766
|
}
|
|
1782
1767
|
|
|
1783
|
-
var StackContext =
|
|
1768
|
+
var StackContext = react.createContext();
|
|
1784
1769
|
|
|
1785
1770
|
const _jsxFileName$1 = "/home/runner/work/react-dialog-stack/react-dialog-stack/src/index.jsx";
|
|
1786
|
-
class ReactDialogStack extends
|
|
1771
|
+
class ReactDialogStack extends react.Component {
|
|
1787
1772
|
constructor(props) {
|
|
1788
1773
|
super(props);
|
|
1789
1774
|
|
|
@@ -1901,15 +1886,15 @@
|
|
|
1901
1886
|
this.classForDirection(),
|
|
1902
1887
|
];
|
|
1903
1888
|
return (
|
|
1904
|
-
|
|
1905
|
-
,
|
|
1906
|
-
,
|
|
1907
|
-
,
|
|
1889
|
+
react.createElement('div', { key: index, className: ['ReactDialogStack'].concat(stackState).join(' '), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 127}}
|
|
1890
|
+
, react.createElement('div', { className: "ReactDialogStackRow", __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 128}}
|
|
1891
|
+
, react.createElement('div', { className: "ReactDialogStackCell", onClick: this.onClick.bind(this), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 129}}
|
|
1892
|
+
, react.createElement(NavigateStackContext.Provider, {
|
|
1908
1893
|
value: { navigate: this.navigate.bind(this), set: this.set.bind(this) }, __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 130}}
|
|
1909
1894
|
|
|
1910
|
-
,
|
|
1911
|
-
,
|
|
1912
|
-
,
|
|
1895
|
+
, react.createElement(CloseStackContext.Provider, { value: this.close.bind(this), __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 133}}
|
|
1896
|
+
, react.createElement(StackContext.Provider, { value: this.state.stack, __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 134}}
|
|
1897
|
+
, react.createElement('div', { className: "ReactDialogAnimation", __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 135}}, this.props.dialogs[route])
|
|
1913
1898
|
)
|
|
1914
1899
|
)
|
|
1915
1900
|
)
|
|
@@ -1947,24 +1932,22 @@
|
|
|
1947
1932
|
|
|
1948
1933
|
render() {
|
|
1949
1934
|
return (
|
|
1950
|
-
|
|
1935
|
+
react.createElement(ReactDialog, {
|
|
1951
1936
|
close: this.close.bind(this),
|
|
1952
1937
|
open: this.props.open,
|
|
1953
1938
|
document: this.props.document,
|
|
1954
1939
|
container: this.props.container,
|
|
1955
1940
|
background: this.props.background, __self: this, __source: {fileName: _jsxFileName$1, lineNumber: 173}}
|
|
1956
1941
|
|
|
1957
|
-
,
|
|
1942
|
+
, react.createElement('style', {__self: this, __source: {fileName: _jsxFileName$1, lineNumber: 180}}, ReactDialogStackStyle())
|
|
1958
1943
|
, this.renderStack()
|
|
1959
1944
|
)
|
|
1960
1945
|
)
|
|
1961
1946
|
}
|
|
1962
1947
|
}
|
|
1963
|
-
var NavigateStackContext_1 = NavigateStackContext;
|
|
1964
|
-
var ReactDialogStack_1 = ReactDialogStack;
|
|
1965
1948
|
|
|
1966
1949
|
var Dialog = (function (props) {
|
|
1967
|
-
var _useContext = react.useContext(
|
|
1950
|
+
var _useContext = react.useContext(NavigateStackContext),
|
|
1968
1951
|
navigate = _useContext.navigate;
|
|
1969
1952
|
|
|
1970
1953
|
var _useContext2 = react.useContext(ClosableContext),
|
|
@@ -2004,7 +1987,7 @@
|
|
|
2004
1987
|
showConnectButton = _useState2[0],
|
|
2005
1988
|
setShowConnectButton = _useState2[1];
|
|
2006
1989
|
|
|
2007
|
-
var _useContext = react.useContext(
|
|
1990
|
+
var _useContext = react.useContext(NavigateStackContext),
|
|
2008
1991
|
navigate = _useContext.navigate;
|
|
2009
1992
|
|
|
2010
1993
|
var wallet = props.wallet;
|
|
@@ -2415,11 +2398,6 @@
|
|
|
2415
2398
|
},
|
|
2416
2399
|
};
|
|
2417
2400
|
|
|
2418
|
-
var es$1 = /*#__PURE__*/Object.freeze({
|
|
2419
|
-
__proto__: null,
|
|
2420
|
-
Blockchain: Blockchain
|
|
2421
|
-
});
|
|
2422
|
-
|
|
2423
2401
|
let CONSTANTS = {
|
|
2424
2402
|
ZERO: '0x0000000000000000000000000000000000000000',
|
|
2425
2403
|
MAXINT: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
|
|
@@ -2449,11 +2427,6 @@
|
|
|
2449
2427
|
CONSTANTS$2['ethereum'] = CONSTANTS;
|
|
2450
2428
|
CONSTANTS$2['bsc'] = CONSTANTS$1;
|
|
2451
2429
|
|
|
2452
|
-
var es = /*#__PURE__*/Object.freeze({
|
|
2453
|
-
__proto__: null,
|
|
2454
|
-
CONSTANTS: CONSTANTS$2
|
|
2455
|
-
});
|
|
2456
|
-
|
|
2457
2430
|
var byteLength_1 = byteLength$1;
|
|
2458
2431
|
var toByteArray_1 = toByteArray$1;
|
|
2459
2432
|
var fromByteArray_1 = fromByteArray$1;
|
|
@@ -48579,12 +48552,18 @@
|
|
|
48579
48552
|
|
|
48580
48553
|
function _optionalChain$3$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
48581
48554
|
class Web3Wallet {
|
|
48582
|
-
__init() {this.name = 'Web3 Wallet';}
|
|
48583
|
-
__init2() {this.logo =
|
|
48584
|
-
"data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446.42 376.77'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23828487;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M408.69,171.4H473.4V107.77a46.55,46.55,0,0,0-46.55-46.55H73.53A46.55,46.55,0,0,0,27,107.77v65.09H62.7L89.56,146a9.46,9.46,0,0,1,5.73-2.73h0l.41,0h78.59a47.2,47.2,0,1,1,82.63,39.56q-1.41,1.71-3,3.31t-3.31,3a47.21,47.21,0,0,1-76.31-26.9H100.21L73.34,189.07a9.43,9.43,0,0,1-5.73,2.73h0l-.41,0h-.07l-.48,0H27v74H55.83l18.25-18.24a9.39,9.39,0,0,1,5.73-2.74h0l.41,0h29.9a47.16,47.16,0,1,1,0,19H84.72L66.48,282.11a9.42,9.42,0,0,1-5.72,2.74h0l-.39,0H27V319H83.29a4,4,0,0,1,.49,0h.06l.41,0h0A9.41,9.41,0,0,1,90,321.78l28,28h57.66a47.2,47.2,0,1,1,81.48,40.9c-.6.67-1.22,1.32-1.86,2s-1.3,1.26-2,1.86a47.22,47.22,0,0,1-77.65-25.73H114.09a9.5,9.5,0,0,1-3.09-.52l-.08,0-.29-.11-.17-.07-.19-.08-.27-.12-.08,0a9.38,9.38,0,0,1-2.55-1.81l-28-28H27v53.46A46.55,46.55,0,0,0,73.53,438H426.86a46.55,46.55,0,0,0,46.54-46.55V327.82H408.69a78.22,78.22,0,0,1-78.21-78.21h0A78.22,78.22,0,0,1,408.69,171.4Z' transform='translate(-26.98 -61.22)'/%3E%3Cpath class='cls-1' d='M247.91,359.29a26,26,0,1,0-26,26A26,26,0,0,0,247.91,359.29Z' transform='translate(-26.98 -61.22)'/%3E%3Cpath class='cls-1' d='M246.55,152.71a26,26,0,1,0-26,26A26,26,0,0,0,246.55,152.71Z' transform='translate(-26.98 -61.22)'/%3E%3Ccircle class='cls-1' cx='129.39' cy='193.15' r='25.99'/%3E%3Cpath class='cls-1' d='M409.17,190h-.48a59.57,59.57,0,0,0-59.57,59.57h0a59.57,59.57,0,0,0,59.57,59.57h.48a59.58,59.58,0,0,0,59.58-59.57h0A59.58,59.58,0,0,0,409.17,190Zm14.45,90.61h-31l8.88-32.53a15.5,15.5,0,1,1,13.29,0Z' transform='translate(-26.98 -61.22)'/%3E%3C/svg%3E";}
|
|
48585
|
-
__init3() {this.blockchains = ['ethereum', 'bsc'];}
|
|
48586
48555
|
|
|
48587
|
-
|
|
48556
|
+
static __initStatic() {this.info = {
|
|
48557
|
+
name: 'Web3 Wallet',
|
|
48558
|
+
logo: "data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 446.42 376.77'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23828487;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M408.69,171.4H473.4V107.77a46.55,46.55,0,0,0-46.55-46.55H73.53A46.55,46.55,0,0,0,27,107.77v65.09H62.7L89.56,146a9.46,9.46,0,0,1,5.73-2.73h0l.41,0h78.59a47.2,47.2,0,1,1,82.63,39.56q-1.41,1.71-3,3.31t-3.31,3a47.21,47.21,0,0,1-76.31-26.9H100.21L73.34,189.07a9.43,9.43,0,0,1-5.73,2.73h0l-.41,0h-.07l-.48,0H27v74H55.83l18.25-18.24a9.39,9.39,0,0,1,5.73-2.74h0l.41,0h29.9a47.16,47.16,0,1,1,0,19H84.72L66.48,282.11a9.42,9.42,0,0,1-5.72,2.74h0l-.39,0H27V319H83.29a4,4,0,0,1,.49,0h.06l.41,0h0A9.41,9.41,0,0,1,90,321.78l28,28h57.66a47.2,47.2,0,1,1,81.48,40.9c-.6.67-1.22,1.32-1.86,2s-1.3,1.26-2,1.86a47.22,47.22,0,0,1-77.65-25.73H114.09a9.5,9.5,0,0,1-3.09-.52l-.08,0-.29-.11-.17-.07-.19-.08-.27-.12-.08,0a9.38,9.38,0,0,1-2.55-1.81l-28-28H27v53.46A46.55,46.55,0,0,0,73.53,438H426.86a46.55,46.55,0,0,0,46.54-46.55V327.82H408.69a78.22,78.22,0,0,1-78.21-78.21h0A78.22,78.22,0,0,1,408.69,171.4Z' transform='translate(-26.98 -61.22)'/%3E%3Cpath class='cls-1' d='M247.91,359.29a26,26,0,1,0-26,26A26,26,0,0,0,247.91,359.29Z' transform='translate(-26.98 -61.22)'/%3E%3Cpath class='cls-1' d='M246.55,152.71a26,26,0,1,0-26,26A26,26,0,0,0,246.55,152.71Z' transform='translate(-26.98 -61.22)'/%3E%3Ccircle class='cls-1' cx='129.39' cy='193.15' r='25.99'/%3E%3Cpath class='cls-1' d='M409.17,190h-.48a59.57,59.57,0,0,0-59.57,59.57h0a59.57,59.57,0,0,0,59.57,59.57h.48a59.58,59.58,0,0,0,59.58-59.57h0A59.58,59.58,0,0,0,409.17,190Zm14.45,90.61h-31l8.88-32.53a15.5,15.5,0,1,1,13.29,0Z' transform='translate(-26.98 -61.22)'/%3E%3C/svg%3E",
|
|
48559
|
+
blockchains: ['ethereum', 'bsc']
|
|
48560
|
+
};}
|
|
48561
|
+
|
|
48562
|
+
constructor () {
|
|
48563
|
+
this.name = this.constructor.info.name;
|
|
48564
|
+
this.logo = this.constructor.info.logo;
|
|
48565
|
+
this.blockchains = this.constructor.info.blockchains;
|
|
48566
|
+
this.install = this.constructor.info.install;
|
|
48588
48567
|
this.sendTransaction = (transaction)=>{
|
|
48589
48568
|
return sendTransaction$1({
|
|
48590
48569
|
wallet: this,
|
|
@@ -48711,23 +48690,27 @@
|
|
|
48711
48690
|
let signature = await signer.signMessage(message);
|
|
48712
48691
|
return signature
|
|
48713
48692
|
}
|
|
48714
|
-
}
|
|
48693
|
+
} Web3Wallet.__initStatic();
|
|
48715
48694
|
|
|
48716
|
-
class Coinbase extends Web3Wallet {
|
|
48717
|
-
__init() {this.name = 'Coinbase Wallet';}
|
|
48718
|
-
__init2() {this.logo =
|
|
48719
|
-
"data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 488.96 488.96'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:url(%23linear-gradient);%7D.cls-2%7Bfill:%234361ad;%7D%3C/style%3E%3ClinearGradient id='linear-gradient' x1='250' y1='7.35' x2='250' y2='496.32' gradientTransform='matrix(1, 0, 0, -1, 0, 502)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%233d5ba9'/%3E%3Cstop offset='1' stop-color='%234868b1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath class='cls-1' d='M250,5.68C114.87,5.68,5.52,115,5.52,250.17S114.87,494.65,250,494.65,494.48,385.29,494.48,250.17,385.13,5.68,250,5.68Zm0,387.54A143.06,143.06,0,1,1,393.05,250.17,143.11,143.11,0,0,1,250,393.22Z' transform='translate(-5.52 -5.68)'/%3E%3Cpath class='cls-2' d='M284.69,296.09H215.31a11,11,0,0,1-10.9-10.9V215.48a11,11,0,0,1,10.9-10.91H285a11,11,0,0,1,10.9,10.91v69.71A11.07,11.07,0,0,1,284.69,296.09Z' transform='translate(-5.52 -5.68)'/%3E%3C/svg%3E";}
|
|
48720
|
-
__init3() {this.blockchains = ['ethereum', 'bsc'];}
|
|
48721
|
-
__init4() {this.install = 'https://wallet.coinbase.com';}
|
|
48722
|
-
}
|
|
48695
|
+
class Coinbase extends Web3Wallet {
|
|
48723
48696
|
|
|
48724
|
-
|
|
48725
|
-
|
|
48726
|
-
|
|
48727
|
-
|
|
48728
|
-
|
|
48729
|
-
|
|
48730
|
-
}
|
|
48697
|
+
static __initStatic() {this.info = {
|
|
48698
|
+
name: 'Coinbase Wallet',
|
|
48699
|
+
logo: "data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 488.96 488.96'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:url(%23linear-gradient);%7D.cls-2%7Bfill:%234361ad;%7D%3C/style%3E%3ClinearGradient id='linear-gradient' x1='250' y1='7.35' x2='250' y2='496.32' gradientTransform='matrix(1, 0, 0, -1, 0, 502)' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%233d5ba9'/%3E%3Cstop offset='1' stop-color='%234868b1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath class='cls-1' d='M250,5.68C114.87,5.68,5.52,115,5.52,250.17S114.87,494.65,250,494.65,494.48,385.29,494.48,250.17,385.13,5.68,250,5.68Zm0,387.54A143.06,143.06,0,1,1,393.05,250.17,143.11,143.11,0,0,1,250,393.22Z' transform='translate(-5.52 -5.68)'/%3E%3Cpath class='cls-2' d='M284.69,296.09H215.31a11,11,0,0,1-10.9-10.9V215.48a11,11,0,0,1,10.9-10.91H285a11,11,0,0,1,10.9,10.91v69.71A11.07,11.07,0,0,1,284.69,296.09Z' transform='translate(-5.52 -5.68)'/%3E%3C/svg%3E",
|
|
48700
|
+
blockchains: ['ethereum', 'bsc'],
|
|
48701
|
+
install: 'https://wallet.coinbase.com'
|
|
48702
|
+
};}
|
|
48703
|
+
} Coinbase.__initStatic();
|
|
48704
|
+
|
|
48705
|
+
class MetaMask extends Web3Wallet {
|
|
48706
|
+
|
|
48707
|
+
static __initStatic() {this.info = {
|
|
48708
|
+
name: 'MetaMask',
|
|
48709
|
+
logo: "data:image/svg+xml,%3Csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 485.93 450.56'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23828487;%7D.cls-2%7Bfill:%23e27726;stroke:%23e27726;%7D.cls-10,.cls-11,.cls-2,.cls-3,.cls-4,.cls-5,.cls-6,.cls-7,.cls-8,.cls-9%7Bstroke-linecap:round;stroke-linejoin:round;%7D.cls-3%7Bfill:%23e37725;stroke:%23e37725;%7D.cls-4%7Bfill:%23d6c0b3;stroke:%23d6c0b3;%7D.cls-5%7Bfill:%23243447;stroke:%23243447;%7D.cls-6%7Bfill:%23cd6328;stroke:%23cd6328;%7D.cls-7%7Bfill:%23e37525;stroke:%23e37525;%7D.cls-8%7Bfill:%23f6851f;stroke:%23f6851f;%7D.cls-9%7Bfill:%23c1ae9e;stroke:%23c1ae9e;%7D.cls-10%7Bfill:%23171717;stroke:%23171717;%7D.cls-11%7Bfill:%23763e1a;stroke:%23763e1a;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M247.91,356.29a26,26,0,1,0-26,26A26,26,0,0,0,247.91,356.29Z' transform='translate(-7.97 -21.33)'/%3E%3Cpath class='cls-1' d='M246.55,149.71a26,26,0,1,0-26,26A26,26,0,0,0,246.55,149.71Z' transform='translate(-7.97 -21.33)'/%3E%3Ccircle class='cls-1' cx='148.4' cy='230.05' r='25.99'/%3E%3Cpolygon class='cls-2' points='461.28 0.5 272.06 141.03 307.05 58.12 461.28 0.5'/%3E%3Cpolygon class='cls-3' points='24.46 0.5 212.16 142.37 178.88 58.12 24.46 0.5'/%3E%3Cpolygon class='cls-3' points='393.2 326.26 342.81 403.47 450.63 433.14 481.63 327.97 393.2 326.26'/%3E%3Cpolygon class='cls-3' points='4.49 327.97 35.3 433.14 143.13 403.47 92.73 326.26 4.49 327.97'/%3E%3Cpolygon class='cls-3' points='137.04 195.8 107 241.25 214.06 246.01 210.26 130.96 137.04 195.8'/%3E%3Cpolygon class='cls-3' points='348.7 195.8 274.53 129.63 272.06 246.01 378.94 241.25 348.7 195.8'/%3E%3Cpolygon class='cls-3' points='143.13 403.47 207.41 372.09 151.88 328.73 143.13 403.47'/%3E%3Cpolygon class='cls-3' points='278.34 372.09 342.81 403.47 333.87 328.73 278.34 372.09'/%3E%3Cpolygon class='cls-4' points='342.81 403.47 278.34 372.09 283.47 414.12 282.9 431.81 342.81 403.47'/%3E%3Cpolygon class='cls-4' points='143.13 403.47 203.03 431.81 202.65 414.12 207.41 372.09 143.13 403.47'/%3E%3Cpolygon class='cls-5' points='203.98 300.97 150.35 285.18 188.2 267.88 203.98 300.97'/%3E%3Cpolygon class='cls-5' points='281.76 300.97 297.55 267.88 335.58 285.18 281.76 300.97'/%3E%3Cpolygon class='cls-6' points='143.13 403.47 152.25 326.26 92.73 327.97 143.13 403.47'/%3E%3Cpolygon class='cls-6' points='333.68 326.26 342.81 403.47 393.2 327.97 333.68 326.26'/%3E%3Cpolygon class='cls-6' points='378.94 241.25 272.06 246.01 281.95 300.97 297.74 267.88 335.77 285.18 378.94 241.25'/%3E%3Cpolygon class='cls-6' points='150.35 285.18 188.39 267.88 203.98 300.97 214.06 246.01 107 241.25 150.35 285.18'/%3E%3Cpolygon class='cls-7' points='107 241.25 151.88 328.73 150.35 285.18 107 241.25'/%3E%3Cpolygon class='cls-7' points='335.77 285.18 333.87 328.73 378.94 241.25 335.77 285.18'/%3E%3Cpolygon class='cls-7' points='214.06 246.01 203.98 300.97 216.53 365.82 219.38 280.43 214.06 246.01'/%3E%3Cpolygon class='cls-7' points='272.06 246.01 266.93 280.24 269.21 365.82 281.95 300.97 272.06 246.01'/%3E%3Cpolygon class='cls-8' points='281.95 300.97 269.21 365.82 278.34 372.09 333.87 328.73 335.77 285.18 281.95 300.97'/%3E%3Cpolygon class='cls-8' points='150.35 285.18 151.88 328.73 207.41 372.09 216.53 365.82 203.98 300.97 150.35 285.18'/%3E%3Cpolygon class='cls-9' points='282.9 431.81 283.47 414.12 278.72 409.94 207.02 409.94 202.65 414.12 203.03 431.81 143.13 403.47 164.05 420.58 206.45 450.06 279.29 450.06 321.89 420.58 342.81 403.47 282.9 431.81'/%3E%3Cpolygon class='cls-10' points='278.34 372.09 269.21 365.82 216.53 365.82 207.41 372.09 202.65 414.12 207.02 409.94 278.72 409.94 283.47 414.12 278.34 372.09'/%3E%3Cpolygon class='cls-11' points='469.27 150.16 485.43 72.57 461.28 0.5 278.34 136.28 348.7 195.8 448.16 224.9 470.22 199.23 460.71 192.38 475.92 178.5 464.13 169.37 479.35 157.77 469.27 150.16'/%3E%3Cpolygon class='cls-11' points='0.5 72.57 16.66 150.16 6.39 157.77 21.61 169.37 10.01 178.5 25.22 192.38 15.71 199.23 37.58 224.9 137.04 195.8 207.41 136.28 24.46 0.5 0.5 72.57'/%3E%3Cpolygon class='cls-8' points='448.16 224.9 348.7 195.8 378.94 241.25 333.87 328.73 393.2 327.97 481.63 327.97 448.16 224.9'/%3E%3Cpolygon class='cls-8' points='137.04 195.8 37.58 224.9 4.49 327.97 92.73 327.97 151.88 328.73 107 241.25 137.04 195.8'/%3E%3Cpolygon class='cls-8' points='272.06 246.01 278.34 136.28 307.24 58.12 178.88 58.12 207.41 136.28 214.06 246.01 216.34 280.62 216.53 365.82 269.21 365.82 269.59 280.62 272.06 246.01'/%3E%3C/svg%3E",
|
|
48710
|
+
blockchains: ['ethereum', 'bsc'],
|
|
48711
|
+
install: 'https://metamask.io/download.html'
|
|
48712
|
+
};}
|
|
48713
|
+
} MetaMask.__initStatic();
|
|
48731
48714
|
|
|
48732
48715
|
function _optionalChain$2$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
48733
48716
|
const estimate = async ({ transaction, wallet })=> {
|
|
@@ -48841,13 +48824,18 @@
|
|
|
48841
48824
|
let connectedInstance;
|
|
48842
48825
|
|
|
48843
48826
|
class WalletConnectWallet {
|
|
48844
|
-
__init() {this.name = 'WalletConnect';}
|
|
48845
|
-
__init2() {this.logo =
|
|
48846
|
-
"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 500 500' style='enable-background:new 0 0 500 500;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%235991CD;%7D%0A%3C/style%3E%3Cg id='Page-1'%3E%3Cg id='walletconnect-logo-alt'%3E%3Cpath id='WalletConnect' class='st0' d='M102.7,162c81.5-79.8,213.6-79.8,295.1,0l9.8,9.6c4.1,4,4.1,10.5,0,14.4L374,218.9 c-2,2-5.3,2-7.4,0l-13.5-13.2c-56.8-55.7-149-55.7-205.8,0l-14.5,14.1c-2,2-5.3,2-7.4,0L91.9,187c-4.1-4-4.1-10.5,0-14.4 L102.7,162z M467.1,229.9l29.9,29.2c4.1,4,4.1,10.5,0,14.4L362.3,405.4c-4.1,4-10.7,4-14.8,0c0,0,0,0,0,0L252,311.9 c-1-1-2.7-1-3.7,0h0l-95.5,93.5c-4.1,4-10.7,4-14.8,0c0,0,0,0,0,0L3.4,273.6c-4.1-4-4.1-10.5,0-14.4l29.9-29.2 c4.1-4,10.7-4,14.8,0l95.5,93.5c1,1,2.7,1,3.7,0c0,0,0,0,0,0l95.5-93.5c4.1-4,10.7-4,14.8,0c0,0,0,0,0,0l95.5,93.5 c1,1,2.7,1,3.7,0l95.5-93.5C456.4,225.9,463,225.9,467.1,229.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A";}
|
|
48847
|
-
__init3() {this.blockchains = ['ethereum', 'bsc'];}
|
|
48848
48827
|
|
|
48849
|
-
|
|
48850
|
-
|
|
48828
|
+
static __initStatic() {this.info = {
|
|
48829
|
+
name: 'WalletConnect',
|
|
48830
|
+
logo: "data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 500 500' style='enable-background:new 0 0 500 500;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%235991CD;%7D%0A%3C/style%3E%3Cg id='Page-1'%3E%3Cg id='walletconnect-logo-alt'%3E%3Cpath id='WalletConnect' class='st0' d='M102.7,162c81.5-79.8,213.6-79.8,295.1,0l9.8,9.6c4.1,4,4.1,10.5,0,14.4L374,218.9 c-2,2-5.3,2-7.4,0l-13.5-13.2c-56.8-55.7-149-55.7-205.8,0l-14.5,14.1c-2,2-5.3,2-7.4,0L91.9,187c-4.1-4-4.1-10.5,0-14.4 L102.7,162z M467.1,229.9l29.9,29.2c4.1,4,4.1,10.5,0,14.4L362.3,405.4c-4.1,4-10.7,4-14.8,0c0,0,0,0,0,0L252,311.9 c-1-1-2.7-1-3.7,0h0l-95.5,93.5c-4.1,4-10.7,4-14.8,0c0,0,0,0,0,0L3.4,273.6c-4.1-4-4.1-10.5,0-14.4l29.9-29.2 c4.1-4,10.7-4,14.8,0l95.5,93.5c1,1,2.7,1,3.7,0c0,0,0,0,0,0l95.5-93.5c4.1-4,10.7-4,14.8,0c0,0,0,0,0,0l95.5,93.5 c1,1,2.7,1,3.7,0l95.5-93.5C456.4,225.9,463,225.9,467.1,229.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A",
|
|
48831
|
+
blockchains: ['ethereum', 'bsc']
|
|
48832
|
+
};}
|
|
48833
|
+
|
|
48834
|
+
constructor() {
|
|
48835
|
+
this.name = this.constructor.info.name;
|
|
48836
|
+
this.logo = this.constructor.info.logo;
|
|
48837
|
+
this.blockchains = this.constructor.info.blockchains;
|
|
48838
|
+
this.connector = WalletConnectWallet.instance || this.newWalletConnectInstance();
|
|
48851
48839
|
this.sendTransaction = (transaction)=>{
|
|
48852
48840
|
return sendTransaction({
|
|
48853
48841
|
wallet: this,
|
|
@@ -48889,7 +48877,7 @@
|
|
|
48889
48877
|
|
|
48890
48878
|
instance.on("modal_closed", ()=>{
|
|
48891
48879
|
connectedInstance = undefined;
|
|
48892
|
-
this.connector =
|
|
48880
|
+
this.connector = undefined;
|
|
48893
48881
|
});
|
|
48894
48882
|
|
|
48895
48883
|
return instance
|
|
@@ -49005,18 +48993,20 @@
|
|
|
49005
48993
|
let signature = await this.connector.signPersonalMessage(params);
|
|
49006
48994
|
return signature
|
|
49007
48995
|
}
|
|
49008
|
-
}
|
|
48996
|
+
} WalletConnectWallet.__initStatic();
|
|
49009
48997
|
|
|
49010
48998
|
const wallets = {
|
|
49011
|
-
MetaMask
|
|
49012
|
-
Coinbase
|
|
49013
|
-
Web3Wallet
|
|
49014
|
-
WalletConnect:
|
|
48999
|
+
MetaMask,
|
|
49000
|
+
Coinbase,
|
|
49001
|
+
Web3Wallet,
|
|
49002
|
+
WalletConnect: WalletConnectWallet
|
|
49015
49003
|
};
|
|
49016
49004
|
|
|
49017
|
-
|
|
49005
|
+
const instances = {};
|
|
49006
|
+
|
|
49007
|
+
const getWalletClass = function(){
|
|
49018
49008
|
if(connectedInstance) {
|
|
49019
|
-
return
|
|
49009
|
+
return wallets.WalletConnect
|
|
49020
49010
|
} else if (typeof window.ethereum === 'object' && window.ethereum.isMetaMask) {
|
|
49021
49011
|
return wallets.MetaMask
|
|
49022
49012
|
} else if (typeof window.ethereum === 'object' && (window.ethereum.isCoinbaseWallet || window.ethereum.isWalletLink)) {
|
|
@@ -49026,13 +49016,27 @@
|
|
|
49026
49016
|
}
|
|
49027
49017
|
};
|
|
49028
49018
|
|
|
49019
|
+
const getWallet = function () {
|
|
49020
|
+
const walletClass = getWalletClass();
|
|
49021
|
+
const existingInstance = instances[walletClass];
|
|
49022
|
+
|
|
49023
|
+
if(connectedInstance) {
|
|
49024
|
+
return connectedInstance
|
|
49025
|
+
} else if(existingInstance) {
|
|
49026
|
+
return existingInstance
|
|
49027
|
+
} else if(walletClass) {
|
|
49028
|
+
instances[walletClass] = new walletClass();
|
|
49029
|
+
return instances[walletClass]
|
|
49030
|
+
}
|
|
49031
|
+
};
|
|
49032
|
+
|
|
49029
49033
|
var SelectWalletDialog = (function (props) {
|
|
49030
49034
|
var _useState = react.useState(false),
|
|
49031
49035
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49032
49036
|
showExplanation = _useState2[0],
|
|
49033
49037
|
setShowExplanation = _useState2[1];
|
|
49034
49038
|
|
|
49035
|
-
var _useContext = react.useContext(
|
|
49039
|
+
var _useContext = react.useContext(NavigateStackContext),
|
|
49036
49040
|
navigate = _useContext.navigate;
|
|
49037
49041
|
|
|
49038
49042
|
var wallet = getWallet();
|
|
@@ -49065,7 +49069,8 @@
|
|
|
49065
49069
|
}, _callee);
|
|
49066
49070
|
})), [wallet]);
|
|
49067
49071
|
|
|
49068
|
-
var connect = function connect(
|
|
49072
|
+
var connect = function connect(walletClass) {
|
|
49073
|
+
var wallet = new walletClass();
|
|
49069
49074
|
props.setWallet(wallet);
|
|
49070
49075
|
navigate('ConnectingWallet');
|
|
49071
49076
|
props.connect(wallet);
|
|
@@ -49074,7 +49079,7 @@
|
|
|
49074
49079
|
var availableWallets = [wallets.WalletConnect];
|
|
49075
49080
|
|
|
49076
49081
|
if (wallet) {
|
|
49077
|
-
availableWallets.unshift(wallet);
|
|
49082
|
+
availableWallets.unshift(wallet.constructor);
|
|
49078
49083
|
}
|
|
49079
49084
|
|
|
49080
49085
|
var walletCards = availableWallets.map(function (wallet, index) {
|
|
@@ -49083,21 +49088,21 @@
|
|
|
49083
49088
|
className: "PaddingBottomXS"
|
|
49084
49089
|
}, /*#__PURE__*/react.createElement("button", {
|
|
49085
49090
|
className: "Card small",
|
|
49086
|
-
title: "Connect ".concat(wallet.name),
|
|
49091
|
+
title: "Connect ".concat(wallet.info.name),
|
|
49087
49092
|
onClick: function onClick() {
|
|
49088
49093
|
return connect(wallet);
|
|
49089
49094
|
}
|
|
49090
49095
|
}, /*#__PURE__*/react.createElement("div", {
|
|
49091
49096
|
className: "CardImage"
|
|
49092
49097
|
}, /*#__PURE__*/react.createElement("img", {
|
|
49093
|
-
src: wallet.logo
|
|
49098
|
+
src: wallet.info.logo
|
|
49094
49099
|
})), /*#__PURE__*/react.createElement("div", {
|
|
49095
49100
|
className: "CardBody"
|
|
49096
49101
|
}, /*#__PURE__*/react.createElement("div", {
|
|
49097
49102
|
className: "CardBodyWrapper PaddingLeftXS"
|
|
49098
49103
|
}, /*#__PURE__*/react.createElement("h2", {
|
|
49099
49104
|
className: "CardText FontWeightBold"
|
|
49100
|
-
}, wallet.name)))));
|
|
49105
|
+
}, wallet.info.name)))));
|
|
49101
49106
|
});
|
|
49102
49107
|
return /*#__PURE__*/react.createElement(Dialog, {
|
|
49103
49108
|
header: /*#__PURE__*/react.createElement("div", {
|
|
@@ -49223,7 +49228,7 @@
|
|
|
49223
49228
|
}
|
|
49224
49229
|
}, _callee2);
|
|
49225
49230
|
})), [wallet]);
|
|
49226
|
-
return /*#__PURE__*/react.createElement(
|
|
49231
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
49227
49232
|
open: open,
|
|
49228
49233
|
close: close,
|
|
49229
49234
|
start: "SelectWallet",
|
|
@@ -49388,7 +49393,7 @@
|
|
|
49388
49393
|
|
|
49389
49394
|
if (error) {
|
|
49390
49395
|
console.log(error);
|
|
49391
|
-
return /*#__PURE__*/react.createElement(
|
|
49396
|
+
return /*#__PURE__*/react.createElement(ReactDialog, {
|
|
49392
49397
|
container: props.container,
|
|
49393
49398
|
close: close,
|
|
49394
49399
|
open: open
|
|
@@ -49537,10 +49542,6 @@
|
|
|
49537
49542
|
return [ResetStyle(), FontStyle(style), DialogStyle(), ButtonCircularStyle(), ButtonPrimaryStyle(style), CardStyle(style), PoweredByStyle(style), GraphicStyle(), SkeletonStyle(), TokenAmountStyle(), TextStyle(style), IconStyle(style), OpacityStyle(), PaddingStyle(), HeightStyle(), LabelStyle(style), LoadingTextStyle(style), RangeSliderStyle(style), InputStyle(), TextButtonStyle(style), ImageStyle(), BlockchainLogoStyle()].join('');
|
|
49538
49543
|
});
|
|
49539
49544
|
|
|
49540
|
-
function _interopDefaultLegacy$2 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
49541
|
-
|
|
49542
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy$2(reactDom);
|
|
49543
|
-
|
|
49544
49545
|
const insideContainerClass = 'ReactShadowDOMInsideContainer';
|
|
49545
49546
|
|
|
49546
49547
|
function createInsideContainer({ document, shadow, style }) {
|
|
@@ -49591,7 +49592,7 @@
|
|
|
49591
49592
|
if (shadowRoot) {
|
|
49592
49593
|
const insideContainer = shadowRoot.childNodes[0];
|
|
49593
49594
|
if (insideContainer) {
|
|
49594
|
-
|
|
49595
|
+
reactDom.unmountComponentAtNode(insideContainer);
|
|
49595
49596
|
}
|
|
49596
49597
|
}
|
|
49597
49598
|
|
|
@@ -49614,13 +49615,11 @@
|
|
|
49614
49615
|
content = content(insideContainer);
|
|
49615
49616
|
}
|
|
49616
49617
|
|
|
49617
|
-
|
|
49618
|
+
reactDom.render(content, insideContainer);
|
|
49618
49619
|
|
|
49619
49620
|
return { content, unmount: () => unmount(outsideContainer) }
|
|
49620
49621
|
}
|
|
49621
49622
|
|
|
49622
|
-
var ReactShadowDOM_1 = ReactShadowDOM;
|
|
49623
|
-
|
|
49624
49623
|
var mount = (function (_ref, content) {
|
|
49625
49624
|
var style = _ref.style,
|
|
49626
49625
|
document = _ref.document,
|
|
@@ -49642,7 +49641,7 @@
|
|
|
49642
49641
|
}, 300);
|
|
49643
49642
|
};
|
|
49644
49643
|
|
|
49645
|
-
var _ReactShadowDOM =
|
|
49644
|
+
var _ReactShadowDOM = ReactShadowDOM({
|
|
49646
49645
|
document: document,
|
|
49647
49646
|
element: document.body,
|
|
49648
49647
|
content: content(unmountShadowDOM),
|
|
@@ -62528,7 +62527,7 @@
|
|
|
62528
62527
|
}, [allRoutes]);
|
|
62529
62528
|
|
|
62530
62529
|
if (allRoutes instanceof Array && allRoutes.length == 0) {
|
|
62531
|
-
return /*#__PURE__*/react.createElement(
|
|
62530
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
62532
62531
|
open: open,
|
|
62533
62532
|
close: close,
|
|
62534
62533
|
start: "NoPaymentMethodFound",
|
|
@@ -69286,14 +69285,6 @@
|
|
|
69286
69285
|
|
|
69287
69286
|
var _default = _Rangeslider2.default;
|
|
69288
69287
|
|
|
69289
|
-
var web3Blockchains = /*@__PURE__*/getAugmentedNamespace(es$1);
|
|
69290
|
-
|
|
69291
|
-
var web3Constants = /*@__PURE__*/getAugmentedNamespace(es);
|
|
69292
|
-
|
|
69293
|
-
function _interopDefaultLegacy$1 (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
69294
|
-
|
|
69295
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy$1(react);
|
|
69296
|
-
|
|
69297
69288
|
const _jsxFileName = "/home/runner/work/react-token-image/react-token-image/src/index.jsx";
|
|
69298
69289
|
let TokenImage = function(props){
|
|
69299
69290
|
|
|
@@ -69304,8 +69295,8 @@
|
|
|
69304
69295
|
const address = props.address;
|
|
69305
69296
|
|
|
69306
69297
|
react.useEffect(()=>{
|
|
69307
|
-
if(
|
|
69308
|
-
setSrc(
|
|
69298
|
+
if(CONSTANTS$2[blockchain].NATIVE.toLowerCase() == address.toLowerCase()) {
|
|
69299
|
+
setSrc(Blockchain.findByName(blockchain).logo);
|
|
69309
69300
|
} else {
|
|
69310
69301
|
setSrc(trustWalletAddress({ blockchain, address }));
|
|
69311
69302
|
}
|
|
@@ -69339,17 +69330,15 @@
|
|
|
69339
69330
|
if(src == undefined) { return null }
|
|
69340
69331
|
|
|
69341
69332
|
return(
|
|
69342
|
-
|
|
69333
|
+
react.createElement('img', {
|
|
69343
69334
|
src: src ,
|
|
69344
69335
|
onError: handleLoadError , __self: this, __source: {fileName: _jsxFileName, lineNumber: 51}}
|
|
69345
69336
|
)
|
|
69346
69337
|
)
|
|
69347
69338
|
};
|
|
69348
69339
|
|
|
69349
|
-
var TokenImage_1 = TokenImage;
|
|
69350
|
-
|
|
69351
69340
|
var ChangeAmountDialog = (function (props) {
|
|
69352
|
-
var _useContext = react.useContext(
|
|
69341
|
+
var _useContext = react.useContext(NavigateStackContext),
|
|
69353
69342
|
navigate = _useContext.navigate;
|
|
69354
69343
|
|
|
69355
69344
|
var _useContext2 = react.useContext(ErrorContext);
|
|
@@ -69515,7 +69504,7 @@
|
|
|
69515
69504
|
var _useContext3 = react.useContext(PaymentValueContext),
|
|
69516
69505
|
paymentValue = _useContext3.paymentValue;
|
|
69517
69506
|
|
|
69518
|
-
var _useContext4 = react.useContext(
|
|
69507
|
+
var _useContext4 = react.useContext(NavigateStackContext),
|
|
69519
69508
|
navigate = _useContext4.navigate;
|
|
69520
69509
|
|
|
69521
69510
|
var _useState = react.useState([]),
|
|
@@ -69562,7 +69551,7 @@
|
|
|
69562
69551
|
}
|
|
69563
69552
|
}, /*#__PURE__*/react.createElement("div", {
|
|
69564
69553
|
className: "CardImage"
|
|
69565
|
-
}, /*#__PURE__*/react.createElement(
|
|
69554
|
+
}, /*#__PURE__*/react.createElement(TokenImage, {
|
|
69566
69555
|
blockchain: payment.route.blockchain,
|
|
69567
69556
|
address: payment.route.fromToken.address
|
|
69568
69557
|
}), /*#__PURE__*/react.createElement("img", {
|
|
@@ -69730,7 +69719,7 @@
|
|
|
69730
69719
|
var _useContext5 = react.useContext(PaymentValueContext),
|
|
69731
69720
|
paymentValue = _useContext5.paymentValue;
|
|
69732
69721
|
|
|
69733
|
-
var _useContext6 = react.useContext(
|
|
69722
|
+
var _useContext6 = react.useContext(NavigateStackContext),
|
|
69734
69723
|
navigate = _useContext6.navigate;
|
|
69735
69724
|
|
|
69736
69725
|
var _useContext7 = react.useContext(ClosableContext),
|
|
@@ -69913,7 +69902,7 @@
|
|
|
69913
69902
|
payment = _useContext3.payment,
|
|
69914
69903
|
paymentState = _useContext3.paymentState;
|
|
69915
69904
|
|
|
69916
|
-
var _useContext4 = react.useContext(
|
|
69905
|
+
var _useContext4 = react.useContext(NavigateStackContext),
|
|
69917
69906
|
navigate = _useContext4.navigate;
|
|
69918
69907
|
|
|
69919
69908
|
if (payment == undefined) {
|
|
@@ -69966,7 +69955,7 @@
|
|
|
69966
69955
|
}, /*#__PURE__*/react.createElement("div", {
|
|
69967
69956
|
className: "CardImage",
|
|
69968
69957
|
title: payment.name
|
|
69969
|
-
}, /*#__PURE__*/react.createElement(
|
|
69958
|
+
}, /*#__PURE__*/react.createElement(TokenImage, {
|
|
69970
69959
|
blockchain: payment.route.blockchain,
|
|
69971
69960
|
address: payment.token
|
|
69972
69961
|
})), /*#__PURE__*/react.createElement("div", {
|
|
@@ -69993,7 +69982,7 @@
|
|
|
69993
69982
|
});
|
|
69994
69983
|
|
|
69995
69984
|
var PaymentErrorDialog = (function () {
|
|
69996
|
-
var _useContext = react.useContext(
|
|
69985
|
+
var _useContext = react.useContext(NavigateStackContext),
|
|
69997
69986
|
navigate = _useContext.navigate;
|
|
69998
69987
|
|
|
69999
69988
|
var _useContext2 = react.useContext(PaymentContext),
|
|
@@ -70041,7 +70030,7 @@
|
|
|
70041
70030
|
var _useContext = react.useContext(PaymentContext),
|
|
70042
70031
|
payment = _useContext.payment;
|
|
70043
70032
|
|
|
70044
|
-
var _useContext2 = react.useContext(
|
|
70033
|
+
var _useContext2 = react.useContext(NavigateStackContext),
|
|
70045
70034
|
navigate = _useContext2.navigate;
|
|
70046
70035
|
|
|
70047
70036
|
var blockchain = Blockchain.findByName(payment.route.blockchain);
|
|
@@ -70082,7 +70071,7 @@
|
|
|
70082
70071
|
open = _useContext.open,
|
|
70083
70072
|
close = _useContext.close;
|
|
70084
70073
|
|
|
70085
|
-
return /*#__PURE__*/react.createElement(
|
|
70074
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
70086
70075
|
open: open,
|
|
70087
70076
|
close: close,
|
|
70088
70077
|
start: "DonationOverview",
|
|
@@ -70482,7 +70471,7 @@
|
|
|
70482
70471
|
_useState2[0];
|
|
70483
70472
|
_useState2[1];
|
|
70484
70473
|
|
|
70485
|
-
return /*#__PURE__*/react.createElement(
|
|
70474
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
70486
70475
|
open: open,
|
|
70487
70476
|
close: close,
|
|
70488
70477
|
start: "SignLogin",
|
|
@@ -70646,7 +70635,7 @@
|
|
|
70646
70635
|
var _useContext4 = react.useContext(PaymentValueContext),
|
|
70647
70636
|
paymentValue = _useContext4.paymentValue;
|
|
70648
70637
|
|
|
70649
|
-
var _useContext5 = react.useContext(
|
|
70638
|
+
var _useContext5 = react.useContext(NavigateStackContext),
|
|
70650
70639
|
navigate = _useContext5.navigate;
|
|
70651
70640
|
|
|
70652
70641
|
if (payment == undefined || paymentValue == undefined) {
|
|
@@ -70699,7 +70688,7 @@
|
|
|
70699
70688
|
}, /*#__PURE__*/react.createElement("div", {
|
|
70700
70689
|
className: "CardImage",
|
|
70701
70690
|
title: payment.name
|
|
70702
|
-
}, /*#__PURE__*/react.createElement(
|
|
70691
|
+
}, /*#__PURE__*/react.createElement(TokenImage, {
|
|
70703
70692
|
blockchain: payment.route.blockchain,
|
|
70704
70693
|
address: payment.token
|
|
70705
70694
|
})), /*#__PURE__*/react.createElement("div", {
|
|
@@ -70730,7 +70719,7 @@
|
|
|
70730
70719
|
open = _useContext.open,
|
|
70731
70720
|
close = _useContext.close;
|
|
70732
70721
|
|
|
70733
|
-
return /*#__PURE__*/react.createElement(
|
|
70722
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
70734
70723
|
open: open,
|
|
70735
70724
|
close: close,
|
|
70736
70725
|
start: "PaymentOverview",
|
|
@@ -71000,7 +70989,7 @@
|
|
|
71000
70989
|
payment = _useContext4.payment,
|
|
71001
70990
|
paymentState = _useContext4.paymentState;
|
|
71002
70991
|
|
|
71003
|
-
var _useContext5 = react.useContext(
|
|
70992
|
+
var _useContext5 = react.useContext(NavigateStackContext),
|
|
71004
70993
|
navigate = _useContext5.navigate;
|
|
71005
70994
|
|
|
71006
70995
|
var _useContext6 = react.useContext(ToTokenContext),
|
|
@@ -71032,7 +71021,7 @@
|
|
|
71032
71021
|
src: tokenImage
|
|
71033
71022
|
});
|
|
71034
71023
|
} else {
|
|
71035
|
-
tokenImageElement = /*#__PURE__*/react.createElement(
|
|
71024
|
+
tokenImageElement = /*#__PURE__*/react.createElement(TokenImage, {
|
|
71036
71025
|
blockchain: payment.route.blockchain,
|
|
71037
71026
|
address: toToken.address
|
|
71038
71027
|
});
|
|
@@ -71090,7 +71079,7 @@
|
|
|
71090
71079
|
}, /*#__PURE__*/react.createElement("div", {
|
|
71091
71080
|
className: "CardImage",
|
|
71092
71081
|
title: payment.name
|
|
71093
|
-
}, /*#__PURE__*/react.createElement(
|
|
71082
|
+
}, /*#__PURE__*/react.createElement(TokenImage, {
|
|
71094
71083
|
blockchain: payment.route.blockchain,
|
|
71095
71084
|
address: payment.token
|
|
71096
71085
|
})), /*#__PURE__*/react.createElement("div", {
|
|
@@ -71121,7 +71110,7 @@
|
|
|
71121
71110
|
open = _useContext.open,
|
|
71122
71111
|
close = _useContext.close;
|
|
71123
71112
|
|
|
71124
|
-
return /*#__PURE__*/react.createElement(
|
|
71113
|
+
return /*#__PURE__*/react.createElement(ReactDialogStack, {
|
|
71125
71114
|
open: open,
|
|
71126
71115
|
close: close,
|
|
71127
71116
|
start: "SaleOverview",
|