@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.
Files changed (141) hide show
  1. package/README.md +357 -0
  2. package/dist/ConstantsUtil-B-_-u8aQ.js +6 -0
  3. package/dist/add-KF4m4jFK.js +19 -0
  4. package/dist/all-wallets-D6NAjQgX.js +10 -0
  5. package/dist/app-store-D7TTn-EO.js +21 -0
  6. package/dist/apple-DjX2E2hE.js +22 -0
  7. package/dist/arrow-bottom-C0YrNJYB.js +12 -0
  8. package/dist/arrow-bottom-circle-Dlxvx_XG.js +15 -0
  9. package/dist/arrow-left-x8_-lUyK.js +12 -0
  10. package/dist/arrow-right-BTZybj80.js +12 -0
  11. package/dist/arrow-top-LzH7iLCp.js +12 -0
  12. package/dist/bank-23jp-IV_.js +18 -0
  13. package/dist/browser-EjoorDid.js +18 -0
  14. package/dist/card-DGgWwtwC.js +18 -0
  15. package/dist/ccip-BMANewTU.js +150 -0
  16. package/dist/checkmark-B1qcQhBo.js +15 -0
  17. package/dist/checkmark-bold-Cyc4IEEJ.js +12 -0
  18. package/dist/chevron-bottom-ClHs08rB.js +12 -0
  19. package/dist/chevron-left-O8h_551_.js +12 -0
  20. package/dist/chevron-right-DP3xpyIA.js +12 -0
  21. package/dist/chevron-top-CuwkBUs9.js +12 -0
  22. package/dist/chrome-store-zfT_aJ3R.js +65 -0
  23. package/dist/clock-DHZqivIS.js +12 -0
  24. package/dist/close-Cp9rNAw4.js +12 -0
  25. package/dist/coinPlaceholder-U7-T1KKQ.js +12 -0
  26. package/dist/compass-Ds5-PRSR.js +12 -0
  27. package/dist/copy-Jg4HdIMf.js +19 -0
  28. package/dist/core/api.d.ts +30 -0
  29. package/dist/core/config.d.ts +59 -0
  30. package/dist/core/logic.d.ts +2 -0
  31. package/dist/core/wallet.d.ts +34 -0
  32. package/dist/cursor-DmMevduB.js +7 -0
  33. package/dist/cursor-transparent-Dn9-1SV8.js +16 -0
  34. package/dist/dcp-sdk.umd.js +12000 -0
  35. package/dist/dcp.d.ts +10 -0
  36. package/dist/desktop-C4udXXlZ.js +13 -0
  37. package/dist/disconnect-wd1BYLxt.js +12 -0
  38. package/dist/discord-DthxuCAP.js +21 -0
  39. package/dist/email-B3jSnUFE.js +696 -0
  40. package/dist/embedded-wallet-CJHmoBI2.js +468 -0
  41. package/dist/etherscan-Cjp4xfMW.js +10 -0
  42. package/dist/exclamation-triangle-CRNR5WOy.js +8 -0
  43. package/dist/extension-Cydk0mZt.js +12 -0
  44. package/dist/external-link-CuPTAoq9.js +12 -0
  45. package/dist/facebook-CghqXmdf.js +30 -0
  46. package/dist/farcaster-BREqMX4y.js +16 -0
  47. package/dist/filters-Dn_Ys7ew.js +12 -0
  48. package/dist/github-C-A7JmIY.js +22 -0
  49. package/dist/google-CCdM_naE.js +22 -0
  50. package/dist/hashTypedData-D2Qmzscs.js +197 -0
  51. package/dist/help-circle-DIH4vyj3.js +16 -0
  52. package/dist/id-DkJ0gBuy.js +16 -0
  53. package/dist/if-defined-BciplFKz.js +744 -0
  54. package/dist/image-qMjyiXM0.js +8 -0
  55. package/dist/index--3Zp0jAb.js +45 -0
  56. package/dist/index-1adX-Fit.js +65 -0
  57. package/dist/index-AvC0IGDl.js +7864 -0
  58. package/dist/index-B2-vKLd8.js +276 -0
  59. package/dist/index-B2iDt0TJ.js +146 -0
  60. package/dist/index-B5zkXsLJ.js +320 -0
  61. package/dist/index-B7K86vWu.js +1742 -0
  62. package/dist/index-BBkcvSiY.js +511 -0
  63. package/dist/index-BdjxQs66.js +181 -0
  64. package/dist/index-Bijd4_Ns.js +294 -0
  65. package/dist/index-BpXOsxzU.js +387 -0
  66. package/dist/index-C1QEJL-2.js +572 -0
  67. package/dist/index-C27dwOyE.js +243 -0
  68. package/dist/index-C4BX3QW8.js +58 -0
  69. package/dist/index-CMPIqsB1.js +170 -0
  70. package/dist/index-CTYngdl0.js +21991 -0
  71. package/dist/index-CUdQyyFn.js +51 -0
  72. package/dist/index-CX60z_g2.js +573 -0
  73. package/dist/index-CppCc1n8.js +65 -0
  74. package/dist/index-CqVegmN4.js +559 -0
  75. package/dist/index-CuiyMA8F.js +78 -0
  76. package/dist/index-CwB_qRfM.js +305 -0
  77. package/dist/index-CxOF7GqE.js +265 -0
  78. package/dist/index-D-IzHD_8.js +54 -0
  79. package/dist/index-DRNiFv9I.js +218 -0
  80. package/dist/index-Da8oZh8H.js +838 -0
  81. package/dist/index-DiHImG4L.js +44236 -0
  82. package/dist/index-DmOMXRG1.js +181 -0
  83. package/dist/index-DoSYqTQg.js +199 -0
  84. package/dist/index-DpHXq5_E.js +603 -0
  85. package/dist/index-DtCsAVBg.js +78 -0
  86. package/dist/index-Ij6XA6_4.js +77 -0
  87. package/dist/index-SzyBYfzA.js +8490 -0
  88. package/dist/index-eW8y-mXH.js +257 -0
  89. package/dist/index-fxzIDZsb.js +75 -0
  90. package/dist/index-lbhz9evJ.js +97 -0
  91. package/dist/index.d.ts +3 -0
  92. package/dist/index.js +4 -0
  93. package/dist/info-DMIGgjkL.js +7 -0
  94. package/dist/info-circle-CJuIKZSx.js +16 -0
  95. package/dist/lightbulb-qFT6WEWV.js +7 -0
  96. package/dist/localBatchGatewayRequest-CsMVMFBc.js +91 -0
  97. package/dist/mail-DoYgQvOt.js +12 -0
  98. package/dist/mobile-URtsh7o-.js +13 -0
  99. package/dist/more-DoQd10TF.js +15 -0
  100. package/dist/network-placeholder-BBA2Ue6C.js +18 -0
  101. package/dist/nftPlaceholder-C9RXWz9k.js +12 -0
  102. package/dist/off-YcuDQczT.js +12 -0
  103. package/dist/onramp-BfqDIx4o.js +1279 -0
  104. package/dist/parseSignature-280HB24T.js +3560 -0
  105. package/dist/play-store-sFaloG_r.js +36 -0
  106. package/dist/plus-l0wekSht.js +17 -0
  107. package/dist/qr-code-CihrUU4G.js +10 -0
  108. package/dist/receive-dfY1Cu-g.js +186 -0
  109. package/dist/recycle-horizontal-nXu6YaPw.js +13 -0
  110. package/dist/ref-huAzXCX0.js +41 -0
  111. package/dist/refresh-D2ZbVeNC.js +12 -0
  112. package/dist/reown-logo-BMaTMJmc.js +16 -0
  113. package/dist/search-YVM9q3J-.js +12 -0
  114. package/dist/secp256k1-BrysY3Sv.js +1302 -0
  115. package/dist/secp256k1-DPQgTBwQ.js +1510 -0
  116. package/dist/send-BwQZPKxI.js +19 -0
  117. package/dist/send-GyetMVu1.js +1038 -0
  118. package/dist/socials-B0W91J9k.js +574 -0
  119. package/dist/swapHorizontal-Dy_oQEkp.js +12 -0
  120. package/dist/swapHorizontalBold-C4JpaMpc.js +12 -0
  121. package/dist/swapHorizontalMedium-D5NuVZFh.js +20 -0
  122. package/dist/swapHorizontalRoundedBold-Bq4P2MCj.js +12 -0
  123. package/dist/swapVertical-CVQ8Mg03.js +12 -0
  124. package/dist/swaps-CA04SSdK.js +1637 -0
  125. package/dist/telegram-BP4SgW_L.js +20 -0
  126. package/dist/three-dots-BJYGJ-dQ.js +9 -0
  127. package/dist/transactions-Bq-98Tsg.js +37 -0
  128. package/dist/twitch-DTATWo9M.js +22 -0
  129. package/dist/twitterIcon-D5UWPInb.js +10 -0
  130. package/dist/types.d.ts +128 -0
  131. package/dist/ui/Modal.d.ts +9 -0
  132. package/dist/ui/index.d.ts +6 -0
  133. package/dist/verify-Byvj8Wi1.js +12 -0
  134. package/dist/verify-filled-B40taNm0.js +12 -0
  135. package/dist/w3m-modal-HV6SE74G.js +1037 -0
  136. package/dist/wallet-Cp-6Kk88.js +12 -0
  137. package/dist/wallet-placeholder-C3juwA9o.js +18 -0
  138. package/dist/walletconnect-CRkIiLCx.js +36 -0
  139. package/dist/warning-circle-DtvCLwG4.js +16 -0
  140. package/dist/x-Cqyx5eCt.js +16 -0
  141. package/package.json +70 -0
@@ -0,0 +1,468 @@
1
+ import { cz as x, cA as f, cN as R, cB as l, d7 as U, cW as E, dr as W, d6 as A, cC as j, d8 as $, ds as u, cS as h, cY as I, cT as D, d3 as y, cX as T, cU as M, cE as P } from "./index-DiHImG4L.js";
2
+ import { r as p, c as g, n as w, o as k } from "./if-defined-BciplFKz.js";
3
+ import { N as z } from "./index-eW8y-mXH.js";
4
+ import { e as H, n as V } from "./ref-huAzXCX0.js";
5
+ import "./index-lbhz9evJ.js";
6
+ import "./index-CxOF7GqE.js";
7
+ import "./index-1adX-Fit.js";
8
+ import "./index-DtCsAVBg.js";
9
+ import "./index-Bijd4_Ns.js";
10
+ import "./index-fxzIDZsb.js";
11
+ import "./index-D-IzHD_8.js";
12
+ const F = x`
13
+ div {
14
+ width: 100%;
15
+ }
16
+
17
+ [data-ready='false'] {
18
+ transform: scale(1.05);
19
+ }
20
+
21
+ @media (max-width: 430px) {
22
+ [data-ready='false'] {
23
+ transform: translateY(-50px);
24
+ }
25
+ }
26
+ `;
27
+ var O = function(o, e, i, n) {
28
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
29
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
30
+ else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
31
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
32
+ };
33
+ const S = 600, N = 360, Y = 64;
34
+ let v = class extends f {
35
+ constructor() {
36
+ super(), this.bodyObserver = void 0, this.unsubscribe = [], this.iframe = document.getElementById("w3m-iframe"), this.ready = !1, this.unsubscribe.push(R.subscribeKey("open", (e) => {
37
+ e || this.onHideIframe();
38
+ }), R.subscribeKey("shake", (e) => {
39
+ e ? this.iframe.style.animation = "w3m-shake 500ms var(--wui-ease-out-power-2)" : this.iframe.style.animation = "none";
40
+ }));
41
+ }
42
+ disconnectedCallback() {
43
+ var e;
44
+ this.onHideIframe(), this.unsubscribe.forEach((i) => i()), (e = this.bodyObserver) == null || e.unobserve(window.document.body);
45
+ }
46
+ async firstUpdated() {
47
+ var i;
48
+ await this.syncTheme(), this.iframe.style.display = "block";
49
+ const e = (i = this == null ? void 0 : this.renderRoot) == null ? void 0 : i.querySelector("div");
50
+ this.bodyObserver = new ResizeObserver((n) => {
51
+ var r, a;
52
+ const s = (r = n == null ? void 0 : n[0]) == null ? void 0 : r.contentBoxSize, t = (a = s == null ? void 0 : s[0]) == null ? void 0 : a.inlineSize;
53
+ this.iframe.style.height = `${S}px`, e.style.height = `${S}px`, t && t <= 430 ? (this.iframe.style.width = "100%", this.iframe.style.left = "0px", this.iframe.style.bottom = "0px", this.iframe.style.top = "unset") : (this.iframe.style.width = `${N}px`, this.iframe.style.left = `calc(50% - ${N / 2}px)`, this.iframe.style.top = `calc(50% - ${S / 2}px + ${Y / 2}px)`, this.iframe.style.bottom = "unset"), this.ready = !0, this.onShowIframe();
54
+ }), this.bodyObserver.observe(window.document.body);
55
+ }
56
+ render() {
57
+ return l`<div data-ready=${this.ready} id="w3m-frame-container"></div>`;
58
+ }
59
+ onShowIframe() {
60
+ const e = window.innerWidth <= 430;
61
+ this.iframe.style.animation = e ? "w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)" : "w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)";
62
+ }
63
+ onHideIframe() {
64
+ this.iframe.style.display = "none", this.iframe.style.animation = "w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)";
65
+ }
66
+ async syncTheme() {
67
+ const e = U.getAuthConnector();
68
+ if (e) {
69
+ const i = E.getSnapshot().themeMode, n = E.getSnapshot().themeVariables;
70
+ await e.provider.syncTheme({
71
+ themeVariables: n,
72
+ w3mThemeVariables: W(n, i)
73
+ });
74
+ }
75
+ }
76
+ };
77
+ v.styles = F;
78
+ O([
79
+ p()
80
+ ], v.prototype, "ready", void 0);
81
+ v = O([
82
+ g("w3m-approve-transaction-view")
83
+ ], v);
84
+ var G = function(o, e, i, n) {
85
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
86
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
87
+ else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
88
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
89
+ };
90
+ let _ = class extends f {
91
+ render() {
92
+ return l`
93
+ <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl">
94
+ <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text>
95
+ <wui-chip
96
+ icon="externalLink"
97
+ variant="fill"
98
+ href=${A.SECURE_SITE_DASHBOARD}
99
+ imageSrc=${A.SECURE_SITE_FAVICON}
100
+ data-testid="w3m-secure-website-button"
101
+ >
102
+ </wui-chip>
103
+ <wui-text variant="small-400" color="fg-200">
104
+ You will have to reconnect for security reasons
105
+ </wui-text>
106
+ </wui-flex>
107
+ `;
108
+ }
109
+ };
110
+ _ = G([
111
+ g("w3m-upgrade-wallet-view")
112
+ ], _);
113
+ const B = x`
114
+ :host {
115
+ position: relative;
116
+ width: 100%;
117
+ display: inline-block;
118
+ color: var(--wui-color-fg-275);
119
+ }
120
+
121
+ .error {
122
+ margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
123
+ }
124
+
125
+ .base-name {
126
+ position: absolute;
127
+ right: 45px;
128
+ top: 15px;
129
+ text-align: right;
130
+ }
131
+ `;
132
+ var b = function(o, e, i, n) {
133
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
134
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
135
+ else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
136
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
137
+ };
138
+ let d = class extends f {
139
+ constructor() {
140
+ super(...arguments), this.disabled = !1, this.loading = !1;
141
+ }
142
+ render() {
143
+ return l`
144
+ <wui-input-text
145
+ value=${k(this.value)}
146
+ ?disabled=${this.disabled}
147
+ .value=${this.value || ""}
148
+ data-testid="wui-ens-input"
149
+ inputRightPadding="5xl"
150
+ >
151
+ ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()}
152
+ </wui-input-text>
153
+ `;
154
+ }
155
+ baseNameTemplate() {
156
+ return l`<wui-text variant="paragraph-400" color="fg-200" class="base-name">
157
+ ${$.WC_NAME_SUFFIX}
158
+ </wui-text>`;
159
+ }
160
+ loadingTemplate() {
161
+ return this.loading ? l`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>` : null;
162
+ }
163
+ errorTemplate() {
164
+ return this.errorMessage ? l`<wui-text variant="tiny-500" color="error-100" class="error"
165
+ >${this.errorMessage}</wui-text
166
+ >` : null;
167
+ }
168
+ };
169
+ d.styles = [j, B];
170
+ b([
171
+ w()
172
+ ], d.prototype, "errorMessage", void 0);
173
+ b([
174
+ w({ type: Boolean })
175
+ ], d.prototype, "disabled", void 0);
176
+ b([
177
+ w()
178
+ ], d.prototype, "value", void 0);
179
+ b([
180
+ w({ type: Boolean })
181
+ ], d.prototype, "loading", void 0);
182
+ d = b([
183
+ g("wui-ens-input")
184
+ ], d);
185
+ const L = x`
186
+ wui-flex {
187
+ width: 100%;
188
+ }
189
+
190
+ .suggestion {
191
+ background: var(--wui-color-gray-glass-002);
192
+ border-radius: var(--wui-border-radius-xs);
193
+ }
194
+
195
+ .suggestion:hover {
196
+ background-color: var(--wui-color-gray-glass-005);
197
+ cursor: pointer;
198
+ }
199
+
200
+ .suggested-name {
201
+ max-width: 75%;
202
+ overflow: hidden;
203
+ text-overflow: ellipsis;
204
+ white-space: nowrap;
205
+ }
206
+
207
+ form {
208
+ width: 100%;
209
+ }
210
+
211
+ wui-icon-link {
212
+ position: absolute;
213
+ right: 20px;
214
+ transform: translateY(11px);
215
+ }
216
+ `;
217
+ var m = function(o, e, i, n) {
218
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
219
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
220
+ else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
221
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
222
+ };
223
+ let c = class extends f {
224
+ constructor() {
225
+ super(), this.formRef = H(), this.usubscribe = [], this.name = "", this.error = "", this.loading = u.state.loading, this.suggestions = u.state.suggestions, this.registered = !1, this.profileName = h.state.profileName, this.onDebouncedNameInputChange = I.debounce((e) => {
226
+ u.validateName(e) ? (this.error = "", this.name = e, u.getSuggestions(e), u.isNameRegistered(e).then((i) => {
227
+ this.registered = i;
228
+ })) : e.length < 4 ? this.error = "Name must be at least 4 characters long" : this.error = "Can only contain letters, numbers and - characters";
229
+ }), this.usubscribe.push(u.subscribe((e) => {
230
+ this.suggestions = e.suggestions, this.loading = e.loading;
231
+ }), h.subscribeKey("profileName", (e) => {
232
+ this.profileName = e, e && (this.error = "You already own a name");
233
+ }));
234
+ }
235
+ firstUpdated() {
236
+ var e;
237
+ (e = this.formRef.value) == null || e.addEventListener("keydown", this.onEnterKey.bind(this));
238
+ }
239
+ disconnectedCallback() {
240
+ var e;
241
+ super.disconnectedCallback(), this.usubscribe.forEach((i) => i()), (e = this.formRef.value) == null || e.removeEventListener("keydown", this.onEnterKey.bind(this));
242
+ }
243
+ render() {
244
+ return l`
245
+ <wui-flex
246
+ flexDirection="column"
247
+ alignItems="center"
248
+ gap="m"
249
+ .padding=${["0", "s", "m", "s"]}
250
+ >
251
+ <form ${V(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
252
+ <wui-ens-input
253
+ @inputChange=${this.onNameInputChange.bind(this)}
254
+ .errorMessage=${this.error}
255
+ .value=${this.name}
256
+ >
257
+ </wui-ens-input>
258
+ ${this.submitButtonTemplate()}
259
+ <input type="submit" hidden />
260
+ </form>
261
+ ${this.templateSuggestions()}
262
+ </wui-flex>
263
+ `;
264
+ }
265
+ submitButtonTemplate() {
266
+ return this.isAllowedToSubmit() ? l`
267
+ <wui-icon-link
268
+ size="sm"
269
+ icon="chevronRight"
270
+ iconcolor="accent-100"
271
+ @click=${this.onSubmitName.bind(this)}
272
+ >
273
+ </wui-icon-link>
274
+ ` : null;
275
+ }
276
+ onSelectSuggestion(e) {
277
+ return () => {
278
+ this.name = e, this.registered = !1, this.requestUpdate();
279
+ };
280
+ }
281
+ onNameInputChange(e) {
282
+ this.onDebouncedNameInputChange(e.detail);
283
+ }
284
+ nameSuggestionTagTemplate() {
285
+ return this.loading ? l`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>` : this.registered ? l`<wui-tag variant="shade" size="lg">Registered</wui-tag>` : l`<wui-tag variant="success" size="lg">Available</wui-tag>`;
286
+ }
287
+ templateSuggestions() {
288
+ if (!this.name || this.name.length < 4 || this.error)
289
+ return null;
290
+ const e = this.registered ? this.suggestions.filter((i) => i.name !== this.name) : [];
291
+ return l`<wui-flex flexDirection="column" gap="xxs" alignItems="center">
292
+ <wui-flex
293
+ data-testid="account-name-suggestion"
294
+ .padding=${["m", "m", "m", "m"]}
295
+ justifyContent="space-between"
296
+ class="suggestion"
297
+ @click=${this.onSubmitName.bind(this)}
298
+ >
299
+ <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
300
+ ${this.name}</wui-text
301
+ >${this.nameSuggestionTagTemplate()}
302
+ </wui-flex>
303
+ ${e.map((i) => this.availableNameTemplate(i.name))}
304
+ </wui-flex>`;
305
+ }
306
+ availableNameTemplate(e) {
307
+ return l` <wui-flex
308
+ data-testid="account-name-suggestion"
309
+ .padding=${["m", "m", "m", "m"]}
310
+ justifyContent="space-between"
311
+ class="suggestion"
312
+ @click=${this.onSelectSuggestion(e)}
313
+ >
314
+ <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
315
+ ${e}
316
+ </wui-text>
317
+ <wui-tag variant="success" size="lg">Available</wui-tag>
318
+ </wui-flex>`;
319
+ }
320
+ isAllowedToSubmit() {
321
+ return !this.loading && !this.registered && !this.error && !this.profileName && u.validateName(this.name);
322
+ }
323
+ async onSubmitName() {
324
+ var i, n, s;
325
+ const e = D.state.activeChain;
326
+ try {
327
+ if (!this.isAllowedToSubmit())
328
+ return;
329
+ const t = `${this.name}${$.WC_NAME_SUFFIX}`;
330
+ y.sendEvent({
331
+ type: "track",
332
+ event: "REGISTER_NAME_INITIATED",
333
+ properties: {
334
+ isSmartAccount: ((i = h.state.preferredAccountTypes) == null ? void 0 : i[e]) === T.ACCOUNT_TYPES.SMART_ACCOUNT,
335
+ ensName: t
336
+ }
337
+ }), await u.registerName(t), y.sendEvent({
338
+ type: "track",
339
+ event: "REGISTER_NAME_SUCCESS",
340
+ properties: {
341
+ isSmartAccount: ((n = h.state.preferredAccountTypes) == null ? void 0 : n[e]) === T.ACCOUNT_TYPES.SMART_ACCOUNT,
342
+ ensName: t
343
+ }
344
+ });
345
+ } catch (t) {
346
+ M.showError(t.message), y.sendEvent({
347
+ type: "track",
348
+ event: "REGISTER_NAME_ERROR",
349
+ properties: {
350
+ isSmartAccount: ((s = h.state.preferredAccountTypes) == null ? void 0 : s[e]) === T.ACCOUNT_TYPES.SMART_ACCOUNT,
351
+ ensName: `${this.name}${$.WC_NAME_SUFFIX}`,
352
+ error: (t == null ? void 0 : t.message) || "Unknown error"
353
+ }
354
+ });
355
+ }
356
+ }
357
+ onEnterKey(e) {
358
+ e.key === "Enter" && this.isAllowedToSubmit() && this.onSubmitName();
359
+ }
360
+ };
361
+ c.styles = L;
362
+ m([
363
+ w()
364
+ ], c.prototype, "errorMessage", void 0);
365
+ m([
366
+ p()
367
+ ], c.prototype, "name", void 0);
368
+ m([
369
+ p()
370
+ ], c.prototype, "error", void 0);
371
+ m([
372
+ p()
373
+ ], c.prototype, "loading", void 0);
374
+ m([
375
+ p()
376
+ ], c.prototype, "suggestions", void 0);
377
+ m([
378
+ p()
379
+ ], c.prototype, "registered", void 0);
380
+ m([
381
+ p()
382
+ ], c.prototype, "profileName", void 0);
383
+ c = m([
384
+ g("w3m-register-account-name-view")
385
+ ], c);
386
+ const K = x`
387
+ .continue-button-container {
388
+ width: 100%;
389
+ }
390
+ `;
391
+ var X = function(o, e, i, n) {
392
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
393
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
394
+ else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
395
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
396
+ };
397
+ let C = class extends f {
398
+ render() {
399
+ return l`
400
+ <wui-flex
401
+ flexDirection="column"
402
+ alignItems="center"
403
+ gap="xxl"
404
+ .padding=${["0", "0", "l", "0"]}
405
+ >
406
+ ${this.onboardingTemplate()} ${this.buttonsTemplate()}
407
+ <wui-link
408
+ @click=${() => {
409
+ I.openHref(z.URLS.FAQ, "_blank");
410
+ }}
411
+ >
412
+ Learn more
413
+ <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
414
+ </wui-link>
415
+ </wui-flex>
416
+ `;
417
+ }
418
+ onboardingTemplate() {
419
+ return l` <wui-flex
420
+ flexDirection="column"
421
+ gap="xxl"
422
+ alignItems="center"
423
+ .padding=${["0", "xxl", "0", "xxl"]}
424
+ >
425
+ <wui-flex gap="s" alignItems="center" justifyContent="center">
426
+ <wui-icon-box
427
+ size="xl"
428
+ iconcolor="success-100"
429
+ backgroundcolor="success-100"
430
+ icon="checkmark"
431
+ background="opaque"
432
+ ></wui-icon-box>
433
+ </wui-flex>
434
+ <wui-flex flexDirection="column" alignItems="center" gap="s">
435
+ <wui-text align="center" variant="medium-600" color="fg-100">
436
+ Account name chosen successfully
437
+ </wui-text>
438
+ <wui-text align="center" variant="paragraph-400" color="fg-100">
439
+ You can now fund your account and trade crypto
440
+ </wui-text>
441
+ </wui-flex>
442
+ </wui-flex>`;
443
+ }
444
+ buttonsTemplate() {
445
+ return l`<wui-flex
446
+ .padding=${["0", "2l", "0", "2l"]}
447
+ gap="s"
448
+ class="continue-button-container"
449
+ >
450
+ <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
451
+ >Let's Go!
452
+ </wui-button>
453
+ </wui-flex>`;
454
+ }
455
+ redirectToAccount() {
456
+ P.replace("Account");
457
+ }
458
+ };
459
+ C.styles = K;
460
+ C = X([
461
+ g("w3m-register-account-name-success-view")
462
+ ], C);
463
+ export {
464
+ v as W3mApproveTransactionView,
465
+ C as W3mRegisterAccountNameSuccess,
466
+ c as W3mRegisterAccountNameView,
467
+ _ as W3mUpgradeWalletView
468
+ };
@@ -0,0 +1,10 @@
1
+ import { cy as c } from "./index-DiHImG4L.js";
2
+ const v = c`<svg fill="none" viewBox="0 0 16 16">
3
+ <path
4
+ fill="currentColor"
5
+ d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
6
+ />
7
+ </svg>`;
8
+ export {
9
+ v as etherscanSvg
10
+ };
@@ -0,0 +1,8 @@
1
+ import { cy as C } from "./index-DiHImG4L.js";
2
+ const t = C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
4
+ </svg>
5
+ `;
6
+ export {
7
+ t as exclamationTriangleSvg
8
+ };
@@ -0,0 +1,12 @@
1
+ import { cy as a } from "./index-DiHImG4L.js";
2
+ const e = a`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ e as extensionSvg
12
+ };
@@ -0,0 +1,12 @@
1
+ import { cy as l } from "./index-DiHImG4L.js";
2
+ const o = l`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ o as externalLinkSvg
12
+ };
@@ -0,0 +1,30 @@
1
+ import { cy as l } from "./index-DiHImG4L.js";
2
+ const f = l`<svg fill="none" viewBox="0 0 40 40">
3
+ <g clip-path="url(#a)">
4
+ <g clip-path="url(#b)">
5
+ <circle cx="20" cy="19.89" r="20" fill="#1877F2" />
6
+ <g clip-path="url(#c)">
7
+ <path
8
+ fill="#fff"
9
+ d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H21.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z"
10
+ />
11
+ </g>
12
+ </g>
13
+ <path
14
+ fill="#1877F2"
15
+ d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z"
16
+ />
17
+ <path
18
+ fill="#fff"
19
+ d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z"
20
+ />
21
+ </g>
22
+ <defs>
23
+ <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
24
+ <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
25
+ <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
26
+ </defs>
27
+ </svg>`;
28
+ export {
29
+ f as facebookSvg
30
+ };
@@ -0,0 +1,16 @@
1
+ import { cy as h } from "./index-DiHImG4L.js";
2
+ const a = h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
3
+ <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
4
+ <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
5
+ <path
6
+ fill="#fff"
7
+ d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
8
+ />
9
+ <path
10
+ fill="#fff"
11
+ d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
12
+ />
13
+ </svg>`;
14
+ export {
15
+ a as farcasterSvg
16
+ };
@@ -0,0 +1,12 @@
1
+ import { cy as a } from "./index-DiHImG4L.js";
2
+ const l = a`<svg fill="none" viewBox="0 0 16 16">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ l as filtersSvg
12
+ };
@@ -0,0 +1,22 @@
1
+ import { cy as l } from "./index-DiHImG4L.js";
2
+ const c = l`<svg fill="none" viewBox="0 0 40 40">
3
+ <g clip-path="url(#a)">
4
+ <g clip-path="url(#b)">
5
+ <circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
6
+ <g clip-path="url(#c)">
7
+ <path
8
+ fill="#fff"
9
+ d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z"
10
+ />
11
+ </g>
12
+ </g>
13
+ </g>
14
+ <defs>
15
+ <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
16
+ <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
17
+ <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
18
+ </defs>
19
+ </svg>`;
20
+ export {
21
+ c as githubSvg
22
+ };
@@ -0,0 +1,22 @@
1
+ import { cy as l } from "./index-DiHImG4L.js";
2
+ const o = l`<svg fill="none" viewBox="0 0 40 40">
3
+ <path
4
+ fill="#4285F4"
5
+ d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z"
6
+ />
7
+ <path
8
+ fill="#34A853"
9
+ d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z"
10
+ />
11
+ <path
12
+ fill="#FBBC05"
13
+ d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z"
14
+ />
15
+ <path
16
+ fill="#EA4335"
17
+ d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z"
18
+ />
19
+ </svg>`;
20
+ export {
21
+ o as googleSvg
22
+ };