@lnfi-network/nodeflow-sdk 1.0.0-alpha.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 (106) hide show
  1. package/README.md +276 -0
  2. package/dist/SwapController-C-2g6oSP.js +447 -0
  3. package/dist/add-DDBnz1-Q.js +19 -0
  4. package/dist/all-wallets-XTwjZKGg.js +10 -0
  5. package/dist/app-store-sCzhkWOo.js +21 -0
  6. package/dist/apple-C4IG4u61.js +22 -0
  7. package/dist/arrow-bottom-D5KjiSxX.js +12 -0
  8. package/dist/arrow-bottom-circle-BwWTHJky.js +15 -0
  9. package/dist/arrow-left-hn1Ftfvb.js +12 -0
  10. package/dist/arrow-right-CkV03q5Q.js +12 -0
  11. package/dist/arrow-top-BFm9X5g1.js +12 -0
  12. package/dist/bank-BUCrVHdo.js +18 -0
  13. package/dist/bin-BKleaahE.js +8 -0
  14. package/dist/bitcoin-C7iWQVuy.js +17 -0
  15. package/dist/browser-CpOtTIku.js +18 -0
  16. package/dist/build-info.json +1 -0
  17. package/dist/card-CJ3tg2Ri.js +18 -0
  18. package/dist/ccip-DyUNuvL1.js +239 -0
  19. package/dist/checkmark-CvSC6zeV.js +15 -0
  20. package/dist/checkmark-bold-DyZJqlJ7.js +12 -0
  21. package/dist/chevron-bottom-T9v1OvPA.js +12 -0
  22. package/dist/chevron-left-B4I8A8BR.js +12 -0
  23. package/dist/chevron-right-DGcVStvL.js +12 -0
  24. package/dist/chevron-top-BtD7BPVB.js +12 -0
  25. package/dist/chrome-store-BTKxY14m.js +65 -0
  26. package/dist/circle-DLLZtCBf.js +8 -0
  27. package/dist/clock-BNIDUPYZ.js +12 -0
  28. package/dist/close-BscNWH3j.js +12 -0
  29. package/dist/coinPlaceholder-JCYCAADZ.js +12 -0
  30. package/dist/compass-D7B-kHmZ.js +12 -0
  31. package/dist/copy-DHBc9gJO.js +19 -0
  32. package/dist/cursor-DKduK293.js +7 -0
  33. package/dist/cursor-transparent-8DkjrHTm.js +16 -0
  34. package/dist/desktop-ChlWl7Ma.js +13 -0
  35. package/dist/disconnect-CML_GEin.js +12 -0
  36. package/dist/discord-CgAM6i7H.js +21 -0
  37. package/dist/email-8mepCwp-.js +10 -0
  38. package/dist/embedded-wallet-scU49N5X.js +464 -0
  39. package/dist/ethereum-CA-_7cWX.js +14 -0
  40. package/dist/etherscan-B4h2i8Uc.js +10 -0
  41. package/dist/exclamation-triangle-ftOWMqSf.js +8 -0
  42. package/dist/extension-7iqlSonF.js +12 -0
  43. package/dist/external-link-DAvuMfW6.js +12 -0
  44. package/dist/facebook-CsyBIxMB.js +30 -0
  45. package/dist/farcaster-DfetCk1r.js +16 -0
  46. package/dist/filters-CsU-LYSd.js +12 -0
  47. package/dist/font/ClashDisplay-Variable.ttf +0 -0
  48. package/dist/font/ClashDisplay-Variable.woff +0 -0
  49. package/dist/font/ClashDisplay-Variable.woff2 +0 -0
  50. package/dist/github-DjxwfOOF.js +22 -0
  51. package/dist/google--g4VSi6h.js +22 -0
  52. package/dist/help-circle-BPA985E7.js +16 -0
  53. package/dist/id-BCUBMri8.js +16 -0
  54. package/dist/image-gYCDO7su.js +8 -0
  55. package/dist/index-B9q3HG5u.js +709 -0
  56. package/dist/index-BEm1bPeX.js +63547 -0
  57. package/dist/index-CCgAY-U4.js +70 -0
  58. package/dist/index-CRbuhHbe.js +33 -0
  59. package/dist/index-DYL5OPkx.js +1060 -0
  60. package/dist/info-CIaFQJ_e.js +7 -0
  61. package/dist/info-circle-BPz5hFQa.js +16 -0
  62. package/dist/lightbulb-BDmHvdbq.js +7 -0
  63. package/dist/mail-DQiXQ-4_.js +12 -0
  64. package/dist/mobile-CG_8sNWZ.js +13 -0
  65. package/dist/more-B1H_I3-I.js +15 -0
  66. package/dist/network-placeholder-1RWeD7Yp.js +18 -0
  67. package/dist/nftPlaceholder-Cg-f-eaw.js +12 -0
  68. package/dist/nodeflow-sdk.es.js +15 -0
  69. package/dist/off-DB-2L-AT.js +8 -0
  70. package/dist/onramp-DI5eQmAC.js +917 -0
  71. package/dist/play-store-DKJRWbqp.js +36 -0
  72. package/dist/plus-By1Ef8nV.js +17 -0
  73. package/dist/qr-code-DGuZgP-9.js +10 -0
  74. package/dist/receive-BEsZr88v.js +179 -0
  75. package/dist/recycle-horizontal-DubwRDbc.js +13 -0
  76. package/dist/refresh-Dwfvwy6t.js +12 -0
  77. package/dist/reown-logo-oDEjOrqY.js +16 -0
  78. package/dist/search-DX_QdW9h.js +12 -0
  79. package/dist/send-Bd5bwLNJ.js +1039 -0
  80. package/dist/send-Dq4B7ftm.js +19 -0
  81. package/dist/socials-BnnwB5_t.js +589 -0
  82. package/dist/solana-B7Ds9KBT.js +17 -0
  83. package/dist/swapHorizontal-CF6_7qU-.js +12 -0
  84. package/dist/swapHorizontalBold-C-YFgVbc.js +12 -0
  85. package/dist/swapHorizontalMedium-BGOdc8_e.js +20 -0
  86. package/dist/swapHorizontalRoundedBold-D_vYgwwO.js +12 -0
  87. package/dist/swapVertical-j2pWqia1.js +12 -0
  88. package/dist/swaps-Bh2kuHjL.js +1713 -0
  89. package/dist/telegram-bh_htnzP.js +20 -0
  90. package/dist/three-dots-B31D_Ocu.js +9 -0
  91. package/dist/transactions-Ch56TR3p.js +35 -0
  92. package/dist/twitch-DUloatpE.js +22 -0
  93. package/dist/twitterIcon-CNo6b91J.js +10 -0
  94. package/dist/ui-C7PJmqHY.js +812 -0
  95. package/dist/user-DqFnAlKR.js +7 -0
  96. package/dist/verify-BmaaygAV.js +12 -0
  97. package/dist/verify-filled-BwLeEdJj.js +12 -0
  98. package/dist/vite.svg +1 -0
  99. package/dist/w3m-modal-BijXCMl6.js +1041 -0
  100. package/dist/wallet-DyP6_6JN.js +12 -0
  101. package/dist/wallet-placeholder-BZC82rR0.js +18 -0
  102. package/dist/walletconnect-DT69luRK.js +36 -0
  103. package/dist/warning-circle-CGbg6QZn.js +16 -0
  104. package/dist/x-BfEtqtAc.js +16 -0
  105. package/dist/x-mark-CSmIdhvb.js +7 -0
  106. package/package.json +53 -0
@@ -0,0 +1,464 @@
1
+ import { E as v, J as h, aH as E, K as l, a3 as P, a8 as _, aO as D, aa as p, I as f, a1 as N, F as M, H as g, a9 as j, P as C, aP as H, aQ as c, _ as A, Y as U, aR as k, Q as y, T as x, V as $, U as R, S as V, aS as F, R as z } from "./index-BEm1bPeX.js";
2
+ const Y = v`
3
+ div {
4
+ width: 100%;
5
+ }
6
+
7
+ [data-ready='false'] {
8
+ transform: scale(1.05);
9
+ }
10
+
11
+ @media (max-width: 430px) {
12
+ [data-ready='false'] {
13
+ transform: translateY(-50px);
14
+ }
15
+ }
16
+ `;
17
+ var W = function(a, e, i, n) {
18
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
19
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, e, i, n);
20
+ else for (var o = a.length - 1; o >= 0; o--) (r = a[o]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
21
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
22
+ };
23
+ const T = 600, I = 360, G = 64;
24
+ let b = class extends h {
25
+ constructor() {
26
+ super(), this.bodyObserver = void 0, this.unsubscribe = [], this.iframe = document.getElementById("w3m-iframe"), this.ready = !1, this.unsubscribe.push(E.subscribeKey("open", (e) => {
27
+ e || this.onHideIframe();
28
+ }), E.subscribeKey("shake", (e) => {
29
+ e ? this.iframe.style.animation = "w3m-shake 500ms var(--wui-ease-out-power-2)" : this.iframe.style.animation = "none";
30
+ }));
31
+ }
32
+ disconnectedCallback() {
33
+ var e;
34
+ this.onHideIframe(), this.unsubscribe.forEach((i) => i()), (e = this.bodyObserver) == null || e.unobserve(window.document.body);
35
+ }
36
+ async firstUpdated() {
37
+ var i;
38
+ await this.syncTheme(), this.iframe.style.display = "block";
39
+ const e = (i = this == null ? void 0 : this.renderRoot) == null ? void 0 : i.querySelector("div");
40
+ this.bodyObserver = new ResizeObserver((n) => {
41
+ var r, o;
42
+ const s = (r = n == null ? void 0 : n[0]) == null ? void 0 : r.contentBoxSize, t = (o = s == null ? void 0 : s[0]) == null ? void 0 : o.inlineSize;
43
+ this.iframe.style.height = `${T}px`, e.style.height = `${T}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 = `${I}px`, this.iframe.style.left = `calc(50% - ${I / 2}px)`, this.iframe.style.top = `calc(50% - ${T / 2}px + ${G / 2}px)`, this.iframe.style.bottom = "unset"), this.ready = !0, this.onShowIframe();
44
+ }), this.bodyObserver.observe(window.document.body);
45
+ }
46
+ render() {
47
+ return l`<div data-ready=${this.ready} id="w3m-frame-container"></div>`;
48
+ }
49
+ onShowIframe() {
50
+ const e = window.innerWidth <= 430;
51
+ 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)";
52
+ }
53
+ onHideIframe() {
54
+ this.iframe.style.display = "none", this.iframe.style.animation = "w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)";
55
+ }
56
+ async syncTheme() {
57
+ const e = P.getAuthConnector();
58
+ if (e) {
59
+ const i = _.getSnapshot().themeMode, n = _.getSnapshot().themeVariables;
60
+ await e.provider.syncTheme({
61
+ themeVariables: n,
62
+ w3mThemeVariables: D(n, i)
63
+ });
64
+ }
65
+ }
66
+ };
67
+ b.styles = Y;
68
+ W([
69
+ p()
70
+ ], b.prototype, "ready", void 0);
71
+ b = W([
72
+ f("w3m-approve-transaction-view")
73
+ ], b);
74
+ var K = function(a, e, i, n) {
75
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
76
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, e, i, n);
77
+ else for (var o = a.length - 1; o >= 0; o--) (r = a[o]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
78
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
79
+ };
80
+ let O = class extends h {
81
+ render() {
82
+ return l`
83
+ <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl">
84
+ <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text>
85
+ <wui-chip
86
+ icon="externalLink"
87
+ variant="fill"
88
+ href=${N.SECURE_SITE_DASHBOARD}
89
+ imageSrc=${N.SECURE_SITE_FAVICON}
90
+ data-testid="w3m-secure-website-button"
91
+ >
92
+ </wui-chip>
93
+ <wui-text variant="small-400" color="fg-200">
94
+ You will have to reconnect for security reasons
95
+ </wui-text>
96
+ </wui-flex>
97
+ `;
98
+ }
99
+ };
100
+ O = K([
101
+ f("w3m-upgrade-wallet-view")
102
+ ], O);
103
+ const L = v`
104
+ :host {
105
+ position: relative;
106
+ width: 100%;
107
+ display: inline-block;
108
+ color: var(--wui-color-fg-275);
109
+ }
110
+
111
+ .error {
112
+ margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
113
+ }
114
+
115
+ .base-name {
116
+ position: absolute;
117
+ right: 45px;
118
+ top: 15px;
119
+ text-align: right;
120
+ }
121
+ `;
122
+ var w = function(a, e, i, n) {
123
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
124
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, e, i, n);
125
+ else for (var o = a.length - 1; o >= 0; o--) (r = a[o]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
126
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
127
+ };
128
+ let d = class extends h {
129
+ constructor() {
130
+ super(...arguments), this.disabled = !1, this.loading = !1;
131
+ }
132
+ render() {
133
+ return l`
134
+ <wui-input-text
135
+ value=${j(this.value)}
136
+ ?disabled=${this.disabled}
137
+ .value=${this.value || ""}
138
+ data-testid="wui-ens-input"
139
+ inputRightPadding="5xl"
140
+ >
141
+ ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()}
142
+ </wui-input-text>
143
+ `;
144
+ }
145
+ baseNameTemplate() {
146
+ return l`<wui-text variant="paragraph-400" color="fg-200" class="base-name">
147
+ ${C.WC_NAME_SUFFIX}
148
+ </wui-text>`;
149
+ }
150
+ loadingTemplate() {
151
+ return this.loading ? l`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>` : null;
152
+ }
153
+ errorTemplate() {
154
+ return this.errorMessage ? l`<wui-text variant="tiny-500" color="error-100" class="error"
155
+ >${this.errorMessage}</wui-text
156
+ >` : null;
157
+ }
158
+ };
159
+ d.styles = [M, L];
160
+ w([
161
+ g()
162
+ ], d.prototype, "errorMessage", void 0);
163
+ w([
164
+ g({ type: Boolean })
165
+ ], d.prototype, "disabled", void 0);
166
+ w([
167
+ g()
168
+ ], d.prototype, "value", void 0);
169
+ w([
170
+ g({ type: Boolean })
171
+ ], d.prototype, "loading", void 0);
172
+ d = w([
173
+ f("wui-ens-input")
174
+ ], d);
175
+ const B = v`
176
+ wui-flex {
177
+ width: 100%;
178
+ }
179
+
180
+ .suggestion {
181
+ border: none;
182
+ width: 100%;
183
+ display: flex;
184
+ justify-content: space-between;
185
+ align-items: center;
186
+ background: var(--wui-color-gray-glass-002);
187
+ border-radius: var(--wui-border-radius-xs);
188
+ padding: var(--wui-spacing-m);
189
+ }
190
+
191
+ .suggestion:disabled {
192
+ opacity: 0.5;
193
+ cursor: default;
194
+ }
195
+
196
+ .suggestion:focus-visible:not(:disabled) {
197
+ outline: 1px solid var(--wui-color-gray-glass-020);
198
+ background-color: var(--wui-color-gray-glass-005);
199
+ }
200
+
201
+ .suggestion:hover:not(:disabled) {
202
+ background-color: var(--wui-color-gray-glass-005);
203
+ }
204
+
205
+ .suggested-name {
206
+ max-width: 75%;
207
+ overflow: hidden;
208
+ text-overflow: ellipsis;
209
+ white-space: nowrap;
210
+ }
211
+
212
+ form {
213
+ width: 100%;
214
+ position: relative;
215
+ }
216
+
217
+ .input-submit-button,
218
+ .input-loading-spinner {
219
+ position: absolute;
220
+ top: 26px;
221
+ transform: translateY(-50%);
222
+ right: 10px;
223
+ }
224
+ `;
225
+ var m = function(a, e, i, n) {
226
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
227
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, e, i, n);
228
+ else for (var o = a.length - 1; o >= 0; o--) (r = a[o]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
229
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
230
+ };
231
+ let u = class extends h {
232
+ constructor() {
233
+ super(), this.formRef = H(), this.usubscribe = [], this.name = "", this.error = "", this.loading = c.state.loading, this.suggestions = c.state.suggestions, this.profileName = A.state.profileName, this.onDebouncedNameInputChange = U.debounce((e) => {
234
+ c.validateName(e) ? (this.error = "", this.name = e, c.getSuggestions(e)) : e.length < 4 ? this.error = "Name must be at least 4 characters long" : this.error = "Can only contain letters, numbers and - characters";
235
+ }), this.usubscribe.push(c.subscribe((e) => {
236
+ this.suggestions = e.suggestions, this.loading = e.loading;
237
+ }), A.subscribeKey("profileName", (e) => {
238
+ this.profileName = e, e && (this.error = "You already own a name");
239
+ }));
240
+ }
241
+ firstUpdated() {
242
+ var e;
243
+ (e = this.formRef.value) == null || e.addEventListener("keydown", this.onEnterKey.bind(this));
244
+ }
245
+ disconnectedCallback() {
246
+ var e;
247
+ super.disconnectedCallback(), this.usubscribe.forEach((i) => i()), (e = this.formRef.value) == null || e.removeEventListener("keydown", this.onEnterKey.bind(this));
248
+ }
249
+ render() {
250
+ return l`
251
+ <wui-flex
252
+ flexDirection="column"
253
+ alignItems="center"
254
+ gap="m"
255
+ .padding=${["0", "s", "m", "s"]}
256
+ >
257
+ <form ${k(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
258
+ <wui-ens-input
259
+ @inputChange=${this.onNameInputChange.bind(this)}
260
+ .errorMessage=${this.error}
261
+ .value=${this.name}
262
+ >
263
+ </wui-ens-input>
264
+ ${this.submitButtonTemplate()}
265
+ <input type="submit" hidden />
266
+ </form>
267
+ ${this.templateSuggestions()}
268
+ </wui-flex>
269
+ `;
270
+ }
271
+ submitButtonTemplate() {
272
+ const e = this.suggestions.find((n) => {
273
+ var s, t;
274
+ return ((t = (s = n.name) == null ? void 0 : s.split(".")) == null ? void 0 : t[0]) === this.name && n.registered;
275
+ });
276
+ if (this.loading)
277
+ return l`<wui-loading-spinner
278
+ class="input-loading-spinner"
279
+ color="fg-200"
280
+ ></wui-loading-spinner>`;
281
+ const i = `${this.name}${C.WC_NAME_SUFFIX}`;
282
+ return l`
283
+ <wui-icon-link
284
+ .disabled=${e}
285
+ class="input-submit-button"
286
+ size="sm"
287
+ icon="chevronRight"
288
+ iconColor=${e ? "fg-200" : "accent-100"}
289
+ @click=${() => this.onSubmitName(i)}
290
+ >
291
+ </wui-icon-link>
292
+ `;
293
+ }
294
+ onNameInputChange(e) {
295
+ this.onDebouncedNameInputChange(e.detail);
296
+ }
297
+ nameSuggestionTagTemplate(e) {
298
+ return this.loading ? l`<wui-loading-spinner color="fg-200"></wui-loading-spinner>` : e.registered ? l`<wui-tag variant="shade" size="lg">Registered</wui-tag>` : l`<wui-tag variant="success" size="lg">Available</wui-tag>`;
299
+ }
300
+ templateSuggestions() {
301
+ return !this.name || this.name.length < 4 || this.error ? null : l`<wui-flex flexDirection="column" gap="xxs" alignItems="center">
302
+ ${this.suggestions.map((e) => l`<button
303
+ .disabled=${e.registered || this.loading}
304
+ data-testid="account-name-suggestion"
305
+ class="suggestion"
306
+ @click=${() => this.onSubmitName(e.name)}
307
+ >
308
+ <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
309
+ ${e.name}</wui-text
310
+ >${this.nameSuggestionTagTemplate(e)}
311
+ </button>`)}
312
+ </wui-flex>`;
313
+ }
314
+ isAllowedToSubmit(e) {
315
+ var s;
316
+ const i = (s = e.split(".")) == null ? void 0 : s[0], n = this.suggestions.find((t) => {
317
+ var r, o;
318
+ return ((o = (r = t.name) == null ? void 0 : r.split(".")) == null ? void 0 : o[0]) === i && t.registered;
319
+ });
320
+ return !this.loading && !this.error && !this.profileName && i && c.validateName(i) && !n;
321
+ }
322
+ async onSubmitName(e) {
323
+ try {
324
+ if (!this.isAllowedToSubmit(e))
325
+ return;
326
+ y.sendEvent({
327
+ type: "track",
328
+ event: "REGISTER_NAME_INITIATED",
329
+ properties: {
330
+ isSmartAccount: x($.state.activeChain) === R.ACCOUNT_TYPES.SMART_ACCOUNT,
331
+ ensName: e
332
+ }
333
+ }), await c.registerName(e), y.sendEvent({
334
+ type: "track",
335
+ event: "REGISTER_NAME_SUCCESS",
336
+ properties: {
337
+ isSmartAccount: x($.state.activeChain) === R.ACCOUNT_TYPES.SMART_ACCOUNT,
338
+ ensName: e
339
+ }
340
+ });
341
+ } catch (i) {
342
+ V.showError(i.message), y.sendEvent({
343
+ type: "track",
344
+ event: "REGISTER_NAME_ERROR",
345
+ properties: {
346
+ isSmartAccount: x($.state.activeChain) === R.ACCOUNT_TYPES.SMART_ACCOUNT,
347
+ ensName: e,
348
+ error: (i == null ? void 0 : i.message) || "Unknown error"
349
+ }
350
+ });
351
+ }
352
+ }
353
+ onEnterKey(e) {
354
+ if (e.key === "Enter" && this.name && this.isAllowedToSubmit(this.name)) {
355
+ const i = `${this.name}${C.WC_NAME_SUFFIX}`;
356
+ this.onSubmitName(i);
357
+ }
358
+ }
359
+ };
360
+ u.styles = B;
361
+ m([
362
+ g()
363
+ ], u.prototype, "errorMessage", void 0);
364
+ m([
365
+ p()
366
+ ], u.prototype, "name", void 0);
367
+ m([
368
+ p()
369
+ ], u.prototype, "error", void 0);
370
+ m([
371
+ p()
372
+ ], u.prototype, "loading", void 0);
373
+ m([
374
+ p()
375
+ ], u.prototype, "suggestions", void 0);
376
+ m([
377
+ p()
378
+ ], u.prototype, "profileName", void 0);
379
+ u = m([
380
+ f("w3m-register-account-name-view")
381
+ ], u);
382
+ const Q = v`
383
+ .continue-button-container {
384
+ width: 100%;
385
+ }
386
+ `;
387
+ var X = function(a, e, i, n) {
388
+ var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
389
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, e, i, n);
390
+ else for (var o = a.length - 1; o >= 0; o--) (r = a[o]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
391
+ return s > 3 && t && Object.defineProperty(e, i, t), t;
392
+ };
393
+ let S = class extends h {
394
+ render() {
395
+ return l`
396
+ <wui-flex
397
+ flexDirection="column"
398
+ alignItems="center"
399
+ gap="xxl"
400
+ .padding=${["0", "0", "l", "0"]}
401
+ >
402
+ ${this.onboardingTemplate()} ${this.buttonsTemplate()}
403
+ <wui-link
404
+ @click=${() => {
405
+ U.openHref(F.URLS.FAQ, "_blank");
406
+ }}
407
+ >
408
+ Learn more
409
+ <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
410
+ </wui-link>
411
+ </wui-flex>
412
+ `;
413
+ }
414
+ onboardingTemplate() {
415
+ return l` <wui-flex
416
+ flexDirection="column"
417
+ gap="xxl"
418
+ alignItems="center"
419
+ .padding=${["0", "xxl", "0", "xxl"]}
420
+ >
421
+ <wui-flex gap="s" alignItems="center" justifyContent="center">
422
+ <wui-icon-box
423
+ size="xl"
424
+ iconcolor="success-100"
425
+ backgroundcolor="success-100"
426
+ icon="checkmark"
427
+ background="opaque"
428
+ ></wui-icon-box>
429
+ </wui-flex>
430
+ <wui-flex flexDirection="column" alignItems="center" gap="s">
431
+ <wui-text align="center" variant="medium-600" color="fg-100">
432
+ Account name chosen successfully
433
+ </wui-text>
434
+ <wui-text align="center" variant="paragraph-400" color="fg-100">
435
+ You can now fund your account and trade crypto
436
+ </wui-text>
437
+ </wui-flex>
438
+ </wui-flex>`;
439
+ }
440
+ buttonsTemplate() {
441
+ return l`<wui-flex
442
+ .padding=${["0", "2l", "0", "2l"]}
443
+ gap="s"
444
+ class="continue-button-container"
445
+ >
446
+ <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
447
+ >Let's Go!
448
+ </wui-button>
449
+ </wui-flex>`;
450
+ }
451
+ redirectToAccount() {
452
+ z.replace("Account");
453
+ }
454
+ };
455
+ S.styles = Q;
456
+ S = X([
457
+ f("w3m-register-account-name-success-view")
458
+ ], S);
459
+ export {
460
+ b as W3mApproveTransactionView,
461
+ S as W3mRegisterAccountNameSuccess,
462
+ u as W3mRegisterAccountNameView,
463
+ O as W3mUpgradeWalletView
464
+ };
@@ -0,0 +1,14 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const r = l`<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M6.66686 12C9.9805 12 12.6667 9.31371 12.6667 6C12.6667 2.68629 9.9805 0 6.66686 0C3.35323 0 0.666992 2.68629 0.666992 6C0.666992 9.31371 3.35323 12 6.66686 12Z" fill="var(--wui-color-gray-glass-005)"/>
4
+ <path d="M6.6658 1.50098V4.82739L9.47712 6.08381L6.6658 1.50098Z" fill="var(--wui-color-gray-glass-060)"/>
5
+ <path d="M6.6658 1.50098L3.85449 6.08381L6.6658 4.82739V1.50098Z" fill="var(--wui-color-gray-glass-090)"/>
6
+ <path d="M6.6658 8.23909V10.4993L9.47876 6.60705L6.6658 8.23909Z" fill="var(--wui-color-gray-glass-060)"/>
7
+ <path d="M6.6658 10.4993V8.23909L3.85449 6.60705L6.6658 10.4993Z" fill="var(--wui-color-gray-glass-090)"/>
8
+ <path d="M6.6658 7.71585L9.47712 6.08381L6.6658 4.82739V7.71585Z" fill="var(--wui-color-gray-glass-020)"/>
9
+ <path d="M3.85449 6.08381L6.6658 7.71585V4.82739L3.85449 6.08381Z" fill="var(--wui-color-gray-glass-060)"/>
10
+ </svg>
11
+ `;
12
+ export {
13
+ r as ethereumSvg
14
+ };
@@ -0,0 +1,10 @@
1
+ import { D as c } from "./index-BEm1bPeX.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 { D as C } from "./index-BEm1bPeX.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 { D as a } from "./index-BEm1bPeX.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 { D as l } from "./index-BEm1bPeX.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 { D as l } from "./index-BEm1bPeX.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 { D as h } from "./index-BEm1bPeX.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 { D as a } from "./index-BEm1bPeX.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 { D as l } from "./index-BEm1bPeX.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 { D as l } from "./index-BEm1bPeX.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
+ };
@@ -0,0 +1,16 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const o = l`<svg fill="none" viewBox="0 0 16 16">
3
+ <path
4
+ fill="currentColor"
5
+ d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z"
6
+ />
7
+ <path
8
+ fill="currentColor"
9
+ fill-rule="evenodd"
10
+ d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"
11
+ clip-rule="evenodd"
12
+ />
13
+ </svg>`;
14
+ export {
15
+ o as helpCircleSvg
16
+ };