@directcryptopay/sdk 0.1.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/README.md +357 -0
- package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
- package/dist/add-KF4m4jFK.js +19 -0
- package/dist/all-wallets-D6NAjQgX.js +10 -0
- package/dist/app-store-D7TTn-EO.js +21 -0
- package/dist/apple-DjX2E2hE.js +22 -0
- package/dist/arrow-bottom-C0YrNJYB.js +12 -0
- package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
- package/dist/arrow-left-x8_-lUyK.js +12 -0
- package/dist/arrow-right-BTZybj80.js +12 -0
- package/dist/arrow-top-LzH7iLCp.js +12 -0
- package/dist/bank-23jp-IV_.js +18 -0
- package/dist/browser-EjoorDid.js +18 -0
- package/dist/card-DGgWwtwC.js +18 -0
- package/dist/ccip-BMANewTU.js +150 -0
- package/dist/checkmark-B1qcQhBo.js +15 -0
- package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
- package/dist/chevron-bottom-ClHs08rB.js +12 -0
- package/dist/chevron-left-O8h_551_.js +12 -0
- package/dist/chevron-right-DP3xpyIA.js +12 -0
- package/dist/chevron-top-CuwkBUs9.js +12 -0
- package/dist/chrome-store-zfT_aJ3R.js +65 -0
- package/dist/clock-DHZqivIS.js +12 -0
- package/dist/close-Cp9rNAw4.js +12 -0
- package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
- package/dist/compass-Ds5-PRSR.js +12 -0
- package/dist/copy-Jg4HdIMf.js +19 -0
- package/dist/core/api.d.ts +30 -0
- package/dist/core/config.d.ts +59 -0
- package/dist/core/logic.d.ts +2 -0
- package/dist/core/wallet.d.ts +34 -0
- package/dist/cursor-DmMevduB.js +7 -0
- package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
- package/dist/dcp-sdk.umd.js +12000 -0
- package/dist/dcp.d.ts +10 -0
- package/dist/desktop-C4udXXlZ.js +13 -0
- package/dist/disconnect-wd1BYLxt.js +12 -0
- package/dist/discord-DthxuCAP.js +21 -0
- package/dist/email-B3jSnUFE.js +696 -0
- package/dist/embedded-wallet-CJHmoBI2.js +468 -0
- package/dist/etherscan-Cjp4xfMW.js +10 -0
- package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
- package/dist/extension-Cydk0mZt.js +12 -0
- package/dist/external-link-CuPTAoq9.js +12 -0
- package/dist/facebook-CghqXmdf.js +30 -0
- package/dist/farcaster-BREqMX4y.js +16 -0
- package/dist/filters-Dn_Ys7ew.js +12 -0
- package/dist/github-C-A7JmIY.js +22 -0
- package/dist/google-CCdM_naE.js +22 -0
- package/dist/hashTypedData-D2Qmzscs.js +197 -0
- package/dist/help-circle-DIH4vyj3.js +16 -0
- package/dist/id-DkJ0gBuy.js +16 -0
- package/dist/if-defined-BciplFKz.js +744 -0
- package/dist/image-qMjyiXM0.js +8 -0
- package/dist/index--3Zp0jAb.js +45 -0
- package/dist/index-1adX-Fit.js +65 -0
- package/dist/index-AvC0IGDl.js +7864 -0
- package/dist/index-B2-vKLd8.js +276 -0
- package/dist/index-B2iDt0TJ.js +146 -0
- package/dist/index-B5zkXsLJ.js +320 -0
- package/dist/index-B7K86vWu.js +1742 -0
- package/dist/index-BBkcvSiY.js +511 -0
- package/dist/index-BdjxQs66.js +181 -0
- package/dist/index-Bijd4_Ns.js +294 -0
- package/dist/index-BpXOsxzU.js +387 -0
- package/dist/index-C1QEJL-2.js +572 -0
- package/dist/index-C27dwOyE.js +243 -0
- package/dist/index-C4BX3QW8.js +58 -0
- package/dist/index-CMPIqsB1.js +170 -0
- package/dist/index-CTYngdl0.js +21991 -0
- package/dist/index-CUdQyyFn.js +51 -0
- package/dist/index-CX60z_g2.js +573 -0
- package/dist/index-CppCc1n8.js +65 -0
- package/dist/index-CqVegmN4.js +559 -0
- package/dist/index-CuiyMA8F.js +78 -0
- package/dist/index-CwB_qRfM.js +305 -0
- package/dist/index-CxOF7GqE.js +265 -0
- package/dist/index-D-IzHD_8.js +54 -0
- package/dist/index-DRNiFv9I.js +218 -0
- package/dist/index-Da8oZh8H.js +838 -0
- package/dist/index-DiHImG4L.js +44236 -0
- package/dist/index-DmOMXRG1.js +181 -0
- package/dist/index-DoSYqTQg.js +199 -0
- package/dist/index-DpHXq5_E.js +603 -0
- package/dist/index-DtCsAVBg.js +78 -0
- package/dist/index-Ij6XA6_4.js +77 -0
- package/dist/index-SzyBYfzA.js +8490 -0
- package/dist/index-eW8y-mXH.js +257 -0
- package/dist/index-fxzIDZsb.js +75 -0
- package/dist/index-lbhz9evJ.js +97 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/info-DMIGgjkL.js +7 -0
- package/dist/info-circle-CJuIKZSx.js +16 -0
- package/dist/lightbulb-qFT6WEWV.js +7 -0
- package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
- package/dist/mail-DoYgQvOt.js +12 -0
- package/dist/mobile-URtsh7o-.js +13 -0
- package/dist/more-DoQd10TF.js +15 -0
- package/dist/network-placeholder-BBA2Ue6C.js +18 -0
- package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
- package/dist/off-YcuDQczT.js +12 -0
- package/dist/onramp-BfqDIx4o.js +1279 -0
- package/dist/parseSignature-280HB24T.js +3560 -0
- package/dist/play-store-sFaloG_r.js +36 -0
- package/dist/plus-l0wekSht.js +17 -0
- package/dist/qr-code-CihrUU4G.js +10 -0
- package/dist/receive-dfY1Cu-g.js +186 -0
- package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
- package/dist/ref-huAzXCX0.js +41 -0
- package/dist/refresh-D2ZbVeNC.js +12 -0
- package/dist/reown-logo-BMaTMJmc.js +16 -0
- package/dist/search-YVM9q3J-.js +12 -0
- package/dist/secp256k1-BrysY3Sv.js +1302 -0
- package/dist/secp256k1-DPQgTBwQ.js +1510 -0
- package/dist/send-BwQZPKxI.js +19 -0
- package/dist/send-GyetMVu1.js +1038 -0
- package/dist/socials-B0W91J9k.js +574 -0
- package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
- package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
- package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
- package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
- package/dist/swapVertical-CVQ8Mg03.js +12 -0
- package/dist/swaps-CA04SSdK.js +1637 -0
- package/dist/telegram-BP4SgW_L.js +20 -0
- package/dist/three-dots-BJYGJ-dQ.js +9 -0
- package/dist/transactions-Bq-98Tsg.js +37 -0
- package/dist/twitch-DTATWo9M.js +22 -0
- package/dist/twitterIcon-D5UWPInb.js +10 -0
- package/dist/types.d.ts +128 -0
- package/dist/ui/Modal.d.ts +9 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/verify-Byvj8Wi1.js +12 -0
- package/dist/verify-filled-B40taNm0.js +12 -0
- package/dist/w3m-modal-HV6SE74G.js +1037 -0
- package/dist/wallet-Cp-6Kk88.js +12 -0
- package/dist/wallet-placeholder-C3juwA9o.js +18 -0
- package/dist/walletconnect-CRkIiLCx.js +36 -0
- package/dist/warning-circle-DtvCLwG4.js +16 -0
- package/dist/x-Cqyx5eCt.js +16 -0
- package/package.json +70 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { cy as a } from "./index-DiHImG4L.js";
|
|
2
|
+
const t = a` <svg
|
|
3
|
+
width="36"
|
|
4
|
+
height="36"
|
|
5
|
+
fill="none"
|
|
6
|
+
>
|
|
7
|
+
<path
|
|
8
|
+
d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z"
|
|
9
|
+
fill="#fff"
|
|
10
|
+
fill-opacity=".05"
|
|
11
|
+
/>
|
|
12
|
+
<path
|
|
13
|
+
d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z"
|
|
14
|
+
fill="#EA4335"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z"
|
|
18
|
+
fill="#FBBC04"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z"
|
|
22
|
+
fill="#4285F4"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z"
|
|
26
|
+
fill="#34A853"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z"
|
|
30
|
+
stroke="#fff"
|
|
31
|
+
stroke-opacity=".05"
|
|
32
|
+
/>
|
|
33
|
+
</svg>`;
|
|
34
|
+
export {
|
|
35
|
+
t as playStoreSvg
|
|
36
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cy as e } from "./index-DiHImG4L.js";
|
|
2
|
+
const o = e`<svg
|
|
3
|
+
width="13"
|
|
4
|
+
height="12"
|
|
5
|
+
viewBox="0 0 13 12"
|
|
6
|
+
fill="none"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
clip-rule="evenodd"
|
|
12
|
+
d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z"
|
|
13
|
+
/></svg
|
|
14
|
+
>`;
|
|
15
|
+
export {
|
|
16
|
+
o as plusSvg
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { cy as a } from "./index-DiHImG4L.js";
|
|
2
|
+
const s = a`<svg fill="none" viewBox="0 0 20 20">
|
|
3
|
+
<path
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z"
|
|
6
|
+
/>
|
|
7
|
+
</svg>`;
|
|
8
|
+
export {
|
|
9
|
+
s as qrCodeIcon
|
|
10
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { cz as C, cC as A, cD as T, cA as k, cB as u, cS as m, cT as d, cU as h, cV as g, cW as x, cX as R, cE as I, cY as S } from "./index-DiHImG4L.js";
|
|
2
|
+
import { n as N, c as $, U as E, o as O, r as f } from "./if-defined-BciplFKz.js";
|
|
3
|
+
import "./index-CMPIqsB1.js";
|
|
4
|
+
import "./index-CUdQyyFn.js";
|
|
5
|
+
import "./index-B7K86vWu.js";
|
|
6
|
+
const _ = C`
|
|
7
|
+
button {
|
|
8
|
+
display: flex;
|
|
9
|
+
gap: var(--wui-spacing-xl);
|
|
10
|
+
width: 100%;
|
|
11
|
+
background-color: var(--wui-color-gray-glass-002);
|
|
12
|
+
border-radius: var(--wui-border-radius-xxs);
|
|
13
|
+
padding: var(--wui-spacing-m) var(--wui-spacing-s);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
wui-text {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
wui-flex {
|
|
21
|
+
width: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.network-icon {
|
|
25
|
+
width: var(--wui-spacing-2l);
|
|
26
|
+
height: var(--wui-spacing-2l);
|
|
27
|
+
border-radius: calc(var(--wui-spacing-2l) / 2);
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
box-shadow:
|
|
30
|
+
0 0 0 3px var(--wui-color-gray-glass-002),
|
|
31
|
+
0 0 0 3px var(--wui-color-modal-bg);
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
var b = function(c, e, i, t) {
|
|
35
|
+
var s = arguments.length, r = s < 3 ? e : t === null ? t = Object.getOwnPropertyDescriptor(e, i) : t, o;
|
|
36
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(c, e, i, t);
|
|
37
|
+
else for (var a = c.length - 1; a >= 0; a--) (o = c[a]) && (r = (s < 3 ? o(r) : s > 3 ? o(e, i, r) : o(e, i)) || r);
|
|
38
|
+
return s > 3 && r && Object.defineProperty(e, i, r), r;
|
|
39
|
+
};
|
|
40
|
+
let p = class extends k {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments), this.networkImages = [""], this.text = "";
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return u`
|
|
46
|
+
<button>
|
|
47
|
+
<wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
|
|
48
|
+
<wui-flex gap="3xs" alignItems="center">
|
|
49
|
+
${this.networksTemplate()}
|
|
50
|
+
<wui-icon name="chevronRight" size="sm" color="fg-200"></wui-icon>
|
|
51
|
+
</wui-flex>
|
|
52
|
+
</button>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
networksTemplate() {
|
|
56
|
+
const e = this.networkImages.slice(0, 5);
|
|
57
|
+
return u` <wui-flex class="networks">
|
|
58
|
+
${e == null ? void 0 : e.map((i) => u` <wui-flex class="network-icon"> <wui-image src=${i}></wui-image> </wui-flex>`)}
|
|
59
|
+
</wui-flex>`;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
p.styles = [A, T, _];
|
|
63
|
+
b([
|
|
64
|
+
N({ type: Array })
|
|
65
|
+
], p.prototype, "networkImages", void 0);
|
|
66
|
+
b([
|
|
67
|
+
N()
|
|
68
|
+
], p.prototype, "text", void 0);
|
|
69
|
+
p = b([
|
|
70
|
+
$("wui-compatible-network")
|
|
71
|
+
], p);
|
|
72
|
+
const W = C`
|
|
73
|
+
wui-compatible-network {
|
|
74
|
+
margin-top: var(--wui-spacing-l);
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
77
|
+
var w = function(c, e, i, t) {
|
|
78
|
+
var s = arguments.length, r = s < 3 ? e : t === null ? t = Object.getOwnPropertyDescriptor(e, i) : t, o;
|
|
79
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(c, e, i, t);
|
|
80
|
+
else for (var a = c.length - 1; a >= 0; a--) (o = c[a]) && (r = (s < 3 ? o(r) : s > 3 ? o(e, i, r) : o(e, i)) || r);
|
|
81
|
+
return s > 3 && r && Object.defineProperty(e, i, r), r;
|
|
82
|
+
};
|
|
83
|
+
let l = class extends k {
|
|
84
|
+
constructor() {
|
|
85
|
+
super(), this.unsubscribe = [], this.address = m.state.address, this.profileName = m.state.profileName, this.network = d.state.activeCaipNetwork, this.preferredAccountTypes = m.state.preferredAccountTypes, this.unsubscribe.push(m.subscribe((e) => {
|
|
86
|
+
e.address ? (this.address = e.address, this.profileName = e.profileName, this.preferredAccountTypes = e.preferredAccountTypes) : h.showError("Account not found");
|
|
87
|
+
}), d.subscribeKey("activeCaipNetwork", (e) => {
|
|
88
|
+
e != null && e.id && (this.network = e);
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
disconnectedCallback() {
|
|
92
|
+
this.unsubscribe.forEach((e) => e());
|
|
93
|
+
}
|
|
94
|
+
render() {
|
|
95
|
+
if (!this.address)
|
|
96
|
+
throw new Error("w3m-wallet-receive-view: No account provided");
|
|
97
|
+
const e = g.getNetworkImage(this.network);
|
|
98
|
+
return u` <wui-flex
|
|
99
|
+
flexDirection="column"
|
|
100
|
+
.padding=${["0", "l", "l", "l"]}
|
|
101
|
+
alignItems="center"
|
|
102
|
+
>
|
|
103
|
+
<wui-chip-button
|
|
104
|
+
data-testid="receive-address-copy-button"
|
|
105
|
+
@click=${this.onCopyClick.bind(this)}
|
|
106
|
+
text=${E.getTruncateString({
|
|
107
|
+
string: this.profileName || this.address || "",
|
|
108
|
+
charsStart: this.profileName ? 18 : 4,
|
|
109
|
+
charsEnd: this.profileName ? 0 : 4,
|
|
110
|
+
truncate: this.profileName ? "end" : "middle"
|
|
111
|
+
})}
|
|
112
|
+
icon="copy"
|
|
113
|
+
size="sm"
|
|
114
|
+
imageSrc=${e || ""}
|
|
115
|
+
variant="gray"
|
|
116
|
+
></wui-chip-button>
|
|
117
|
+
<wui-flex
|
|
118
|
+
flexDirection="column"
|
|
119
|
+
.padding=${["l", "0", "0", "0"]}
|
|
120
|
+
alignItems="center"
|
|
121
|
+
gap="s"
|
|
122
|
+
>
|
|
123
|
+
<wui-qr-code
|
|
124
|
+
size=${232}
|
|
125
|
+
theme=${x.state.themeMode}
|
|
126
|
+
uri=${this.address}
|
|
127
|
+
?arenaClear=${!0}
|
|
128
|
+
color=${O(x.state.themeVariables["--w3m-qr-color"])}
|
|
129
|
+
data-testid="wui-qr-code"
|
|
130
|
+
></wui-qr-code>
|
|
131
|
+
<wui-text variant="paragraph-500" color="fg-100" align="center">
|
|
132
|
+
Copy your address or scan this QR code
|
|
133
|
+
</wui-text>
|
|
134
|
+
</wui-flex>
|
|
135
|
+
${this.networkTemplate()}
|
|
136
|
+
</wui-flex>`;
|
|
137
|
+
}
|
|
138
|
+
networkTemplate() {
|
|
139
|
+
var a, y;
|
|
140
|
+
const e = d.getAllRequestedCaipNetworks(), i = d.checkIfSmartAccountEnabled(), t = d.state.activeCaipNetwork, s = e.filter((n) => (n == null ? void 0 : n.chainNamespace) === (t == null ? void 0 : t.chainNamespace));
|
|
141
|
+
if (((a = this.preferredAccountTypes) == null ? void 0 : a[t == null ? void 0 : t.chainNamespace]) === R.ACCOUNT_TYPES.SMART_ACCOUNT && i)
|
|
142
|
+
return t ? u`<wui-compatible-network
|
|
143
|
+
@click=${this.onReceiveClick.bind(this)}
|
|
144
|
+
text="Only receive assets on this network"
|
|
145
|
+
.networkImages=${[g.getNetworkImage(t) ?? ""]}
|
|
146
|
+
></wui-compatible-network>` : null;
|
|
147
|
+
const o = ((y = s == null ? void 0 : s.filter((n) => {
|
|
148
|
+
var v;
|
|
149
|
+
return (v = n == null ? void 0 : n.assets) == null ? void 0 : v.imageId;
|
|
150
|
+
})) == null ? void 0 : y.slice(0, 5)).map(g.getNetworkImage).filter(Boolean);
|
|
151
|
+
return u`<wui-compatible-network
|
|
152
|
+
@click=${this.onReceiveClick.bind(this)}
|
|
153
|
+
text="Only receive assets on these networks"
|
|
154
|
+
.networkImages=${o}
|
|
155
|
+
></wui-compatible-network>`;
|
|
156
|
+
}
|
|
157
|
+
onReceiveClick() {
|
|
158
|
+
I.push("WalletCompatibleNetworks");
|
|
159
|
+
}
|
|
160
|
+
onCopyClick() {
|
|
161
|
+
try {
|
|
162
|
+
this.address && (S.copyToClopboard(this.address), h.showSuccess("Address copied"));
|
|
163
|
+
} catch {
|
|
164
|
+
h.showError("Failed to copy");
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
l.styles = W;
|
|
169
|
+
w([
|
|
170
|
+
f()
|
|
171
|
+
], l.prototype, "address", void 0);
|
|
172
|
+
w([
|
|
173
|
+
f()
|
|
174
|
+
], l.prototype, "profileName", void 0);
|
|
175
|
+
w([
|
|
176
|
+
f()
|
|
177
|
+
], l.prototype, "network", void 0);
|
|
178
|
+
w([
|
|
179
|
+
f()
|
|
180
|
+
], l.prototype, "preferredAccountTypes", void 0);
|
|
181
|
+
l = w([
|
|
182
|
+
$("w3m-wallet-receive-view")
|
|
183
|
+
], l);
|
|
184
|
+
export {
|
|
185
|
+
l as W3mWalletReceiveView
|
|
186
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cy as C } from "./index-DiHImG4L.js";
|
|
2
|
+
const o = C`<svg
|
|
3
|
+
fill="none"
|
|
4
|
+
viewBox="0 0 21 20"
|
|
5
|
+
>
|
|
6
|
+
<path
|
|
7
|
+
fill="currentColor"
|
|
8
|
+
d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z"
|
|
9
|
+
/></svg
|
|
10
|
+
>`;
|
|
11
|
+
export {
|
|
12
|
+
o as recycleHorizontalSvg
|
|
13
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { cx as o } from "./index-DiHImG4L.js";
|
|
2
|
+
import { e as n, f as c } from "./if-defined-BciplFKz.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2020 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const d = () => new r();
|
|
9
|
+
class r {
|
|
10
|
+
}
|
|
11
|
+
const e = /* @__PURE__ */ new WeakMap(), G = n(class extends c {
|
|
12
|
+
render(t) {
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
update(t, [s]) {
|
|
16
|
+
var h;
|
|
17
|
+
const i = s !== this.G;
|
|
18
|
+
return i && this.G !== void 0 && this.rt(void 0), (i || this.lt !== this.ct) && (this.G = s, this.ht = (h = t.options) == null ? void 0 : h.host, this.rt(this.ct = t.element)), o;
|
|
19
|
+
}
|
|
20
|
+
rt(t) {
|
|
21
|
+
if (this.isConnected || (t = void 0), typeof this.G == "function") {
|
|
22
|
+
const s = this.ht ?? globalThis;
|
|
23
|
+
let i = e.get(s);
|
|
24
|
+
i === void 0 && (i = /* @__PURE__ */ new WeakMap(), e.set(s, i)), i.get(this.G) !== void 0 && this.G.call(this.ht, void 0), i.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
|
|
25
|
+
} else this.G.value = t;
|
|
26
|
+
}
|
|
27
|
+
get lt() {
|
|
28
|
+
var t, s;
|
|
29
|
+
return typeof this.G == "function" ? (t = e.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (s = this.G) == null ? void 0 : s.value;
|
|
30
|
+
}
|
|
31
|
+
disconnected() {
|
|
32
|
+
this.lt === this.ct && this.rt(void 0);
|
|
33
|
+
}
|
|
34
|
+
reconnected() {
|
|
35
|
+
this.rt(this.ct);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
d as e,
|
|
40
|
+
G as n
|
|
41
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cy as l } from "./index-DiHImG4L.js";
|
|
2
|
+
const o = l`<svg fill="none" viewBox="0 0 14 16">
|
|
3
|
+
<path
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
fill-rule="evenodd"
|
|
6
|
+
d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z"
|
|
7
|
+
clip-rule="evenodd"
|
|
8
|
+
/>
|
|
9
|
+
</svg>`;
|
|
10
|
+
export {
|
|
11
|
+
o as refreshSvg
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cy as C } from "./index-DiHImG4L.js";
|
|
2
|
+
const l = C`<svg width="60" height="16" viewBox="0 0 60 16" fill="none"">
|
|
3
|
+
<path d="M9.3335 4.66667C9.3335 2.08934 11.4229 0 14.0002 0H20.6669C23.2442 0 25.3335 2.08934 25.3335 4.66667V11.3333C25.3335 13.9106 23.2442 16 20.6669 16H14.0002C11.4229 16 9.3335 13.9106 9.3335 11.3333V4.66667Z" fill="#363636"/>
|
|
4
|
+
<path d="M15.6055 11.0003L17.9448 4.66699H18.6316L16.2923 11.0003H15.6055Z" fill="#F6F6F6"/>
|
|
5
|
+
<path d="M0 4.33333C0 1.9401 1.9401 0 4.33333 0C6.72657 0 8.66669 1.9401 8.66669 4.33333V11.6667C8.66669 14.0599 6.72657 16 4.33333 16C1.9401 16 0 14.0599 0 11.6667V4.33333Z" fill="#363636"/>
|
|
6
|
+
<path d="M3.9165 9.99934V9.16602H4.74983V9.99934H3.9165Z" fill="#F6F6F6"/>
|
|
7
|
+
<path d="M26 8C26 3.58172 29.3517 0 33.4863 0H52.5137C56.6483 0 60 3.58172 60 8C60 12.4183 56.6483 16 52.5137 16H33.4863C29.3517 16 26 12.4183 26 8Z" fill="#363636"/>
|
|
8
|
+
<path d="M49.3687 9.95834V6.26232H50.0213V6.81966C50.256 6.40899 50.7326 6.16699 51.2606 6.16699C52.0599 6.16699 52.6173 6.67299 52.6173 7.65566V9.95834H51.972V7.69234C51.972 7.04696 51.6053 6.70966 51.07 6.70966C50.4906 6.70966 50.0213 7.17168 50.0213 7.82433V9.95834H49.3687Z" fill="#F6F6F6"/>
|
|
9
|
+
<path d="M45.2538 9.95773L44.5718 6.26172H45.1877L45.6717 9.31242L46.3098 7.30306H46.9184L47.5491 9.29041L48.0404 6.26172H48.6564L47.9744 9.95773H47.2411L46.6178 8.03641L45.9871 9.95773H45.2538Z" fill="#F6F6F6"/>
|
|
10
|
+
<path d="M42.3709 10.0536C41.2489 10.0536 40.5889 9.21765 40.5889 8.1103C40.5889 7.01035 41.2489 6.16699 42.3709 6.16699C43.4929 6.16699 44.1529 7.01035 44.1529 8.1103C44.1529 9.21765 43.4929 10.0536 42.3709 10.0536ZM42.3709 9.51096C43.1775 9.51096 43.4856 8.82164 43.4856 8.10296C43.4856 7.39163 43.1775 6.70966 42.3709 6.70966C41.5642 6.70966 41.2562 7.39163 41.2562 8.10296C41.2562 8.82164 41.5642 9.51096 42.3709 9.51096Z" fill="#F6F6F6"/>
|
|
11
|
+
<path d="M38.2805 10.0536C37.1952 10.0536 36.5132 9.22499 36.5132 8.1103C36.5132 7.00302 37.1952 6.16699 38.2805 6.16699C39.1972 6.16699 40.0038 6.68766 39.9159 8.27896H37.1805C37.2319 8.96103 37.5472 9.5183 38.2805 9.5183C38.7718 9.5183 39.0945 9.21765 39.2045 8.87299H39.8499C39.7472 9.48903 39.1679 10.0536 38.2805 10.0536ZM37.1952 7.78765H39.2852C39.2338 7.04696 38.8892 6.70232 38.2805 6.70232C37.6132 6.70232 37.2832 7.18635 37.1952 7.78765Z" fill="#F6F6F6"/>
|
|
12
|
+
<path d="M33.3828 9.95773V6.26172H34.0501V6.88506C34.2848 6.47439 34.6882 6.26172 35.1061 6.26172H35.9935V6.88506H35.0548C34.4682 6.88506 34.0501 7.26638 34.0501 8.00706V9.95773H33.3828Z" fill="#F6F6F6"/>
|
|
13
|
+
</svg>`;
|
|
14
|
+
export {
|
|
15
|
+
l as reownSvg
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cy as l } from "./index-DiHImG4L.js";
|
|
2
|
+
const o = l`<svg fill="none" viewBox="0 0 20 20">
|
|
3
|
+
<path
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
fill-rule="evenodd"
|
|
6
|
+
d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z"
|
|
7
|
+
clip-rule="evenodd"
|
|
8
|
+
/>
|
|
9
|
+
</svg>`;
|
|
10
|
+
export {
|
|
11
|
+
o as searchSvg
|
|
12
|
+
};
|