@canton-network/core-wallet-ui-components 1.19.0 → 1.20.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/components/idp-card.d.ts +1 -0
- package/dist/components/idp-card.d.ts.map +1 -1
- package/dist/components/login-form.d.ts +1 -0
- package/dist/components/login-form.d.ts.map +1 -1
- package/dist/components/network-card.d.ts +1 -0
- package/dist/components/network-card.d.ts.map +1 -1
- package/dist/components/transaction-card.d.ts +1 -0
- package/dist/components/transaction-card.d.ts.map +1 -1
- package/dist/components/wallet-picker.d.ts.map +1 -1
- package/dist/error-toast-CKCPRZK8.cjs +3991 -0
- package/dist/error-toast-CKCPRZK8.cjs.map +1 -0
- package/dist/error-toast-CpOdjSpE.js +10598 -0
- package/dist/error-toast-CpOdjSpE.js.map +1 -0
- package/dist/index.cjs +73 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +236 -292
- package/dist/index.js.map +1 -1
- package/dist/internal/error-toast.d.ts.map +1 -1
- package/dist/react/components/LoginForm.d.ts +1 -0
- package/dist/react/components/LoginForm.d.ts.map +1 -1
- package/dist/react/index.cjs +2 -2
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +87 -86
- package/dist/react/index.js.map +1 -1
- package/dist/styles/card.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/error-toast-By8cEMjq.cjs +0 -4002
- package/dist/error-toast-By8cEMjq.cjs.map +0 -1
- package/dist/error-toast-DQZ4SB72.js +0 -17335
- package/dist/error-toast-DQZ4SB72.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, _t as O, a as k, at as A, b as j, c as M, ct as N, d as P, dt as ee, et as te, f as ne, ft as re, g as ie, gt as ae, h as oe, ht as se, i as ce, it as le, j as ue, k as de, l as fe, lt as pe, m as me, mt as he, n as ge, nt as _e, o as ve, ot as ye, p as be, pt as xe, q as Se, r as Ce, rt as we, s as Te, st as Ee, t as De, tt as Oe, u as ke, ut as Ae, v as je, vt as F, w as Me, x as Ne, y as Pe, z as Fe } from "./error-toast-CpOdjSpE.js";
|
|
2
2
|
import { customElement as I, property as L } from "lit/decorators.js";
|
|
3
|
-
import { CSSResult as
|
|
3
|
+
import { CSSResult as Ie, css as R, html as z, unsafeCSS as Le } from "lit";
|
|
4
|
+
import { WalletEvent as B, isSpliceMessageEvent as Re } from "@canton-network/core-types";
|
|
4
5
|
// src/components/app-layout.ts
|
|
5
|
-
function
|
|
6
|
+
function ze(e, t) {
|
|
6
7
|
if (typeof e != "object" || !e) return e;
|
|
7
8
|
var n = e[Symbol.toPrimitive];
|
|
8
9
|
if (n !== void 0) {
|
|
@@ -12,15 +13,15 @@ function et(e, t) {
|
|
|
12
13
|
}
|
|
13
14
|
return (t === "string" ? String : Number)(e);
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
var t =
|
|
16
|
+
function Be(e) {
|
|
17
|
+
var t = ze(e, "string");
|
|
17
18
|
return typeof t == "symbol" ? t : String(t);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
+
function Ve(e) {
|
|
20
21
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
21
22
|
return e;
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function V(e, t, n) {
|
|
24
25
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
25
26
|
try {
|
|
26
27
|
Object.defineProperty(e, "name", {
|
|
@@ -30,7 +31,7 @@ function B(e, t, n) {
|
|
|
30
31
|
} catch {}
|
|
31
32
|
return e;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function He(e, t, n, r, i, a) {
|
|
34
35
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
35
36
|
function p(t, n, r) {
|
|
36
37
|
return function(i, a) {
|
|
@@ -55,13 +56,13 @@ function rt(e, t, n, r, i, a) {
|
|
|
55
56
|
}
|
|
56
57
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
57
58
|
if (!b && (d ? (h || x ? E = {
|
|
58
|
-
get:
|
|
59
|
+
get: V(function() {
|
|
59
60
|
return y(this);
|
|
60
61
|
}, r, "get"),
|
|
61
62
|
set: function(e) {
|
|
62
63
|
t[4](this, e);
|
|
63
64
|
}
|
|
64
|
-
} : E[O] = y, h ||
|
|
65
|
+
} : E[O] = y, h || V(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
65
66
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
66
67
|
u[+c][r] = i < 3 ? 1 : i;
|
|
67
68
|
}
|
|
@@ -109,8 +110,8 @@ function rt(e, t, n, r, i, a) {
|
|
|
109
110
|
var l = n[c], u = l[1], d = u & 7;
|
|
110
111
|
if ((u & 8) == o && !d == s) {
|
|
111
112
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
112
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
113
|
-
return
|
|
113
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Be(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
114
|
+
return Ve(t) === e;
|
|
114
115
|
} : i);
|
|
115
116
|
}
|
|
116
117
|
}
|
|
@@ -132,62 +133,62 @@ function rt(e, t, n, r, i, a) {
|
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function Ue(e) {
|
|
136
137
|
return e;
|
|
137
138
|
}
|
|
138
|
-
var
|
|
139
|
-
new class extends
|
|
139
|
+
var We = I("app-layout"), Ge, Ke = F, qe = L({ type: String }), Je = L({ type: String }), Ye = L({ type: String }), Xe = L({ type: Boolean }), Ze = L({ type: String }), Qe = L({ type: String }), $e = L({ type: Boolean }), et = L({ type: Number }), tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt, H;
|
|
140
|
+
new class extends Ue {
|
|
140
141
|
constructor() {
|
|
141
|
-
super(
|
|
142
|
+
super(H), Ge();
|
|
142
143
|
}
|
|
143
|
-
static [class extends
|
|
144
|
+
static [class extends Ke {
|
|
144
145
|
static {
|
|
145
|
-
({e: [
|
|
146
|
+
({e: [tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt, mt, ht, gt], c: [H, Ge]} = He(this, [We], [
|
|
146
147
|
[
|
|
147
|
-
|
|
148
|
+
qe,
|
|
148
149
|
1,
|
|
149
150
|
"iconSrc"
|
|
150
151
|
],
|
|
151
152
|
[
|
|
152
|
-
|
|
153
|
+
Je,
|
|
153
154
|
1,
|
|
154
155
|
"themeSrc"
|
|
155
156
|
],
|
|
156
157
|
[
|
|
157
|
-
|
|
158
|
+
Ye,
|
|
158
159
|
1,
|
|
159
160
|
"networkName"
|
|
160
161
|
],
|
|
161
162
|
[
|
|
162
|
-
|
|
163
|
+
Xe,
|
|
163
164
|
1,
|
|
164
165
|
"networkConnected"
|
|
165
166
|
],
|
|
166
167
|
[
|
|
167
|
-
|
|
168
|
+
Ze,
|
|
168
169
|
1,
|
|
169
170
|
"currentPage"
|
|
170
171
|
],
|
|
171
172
|
[
|
|
172
|
-
|
|
173
|
+
Qe,
|
|
173
174
|
1,
|
|
174
175
|
"dappApiUrl"
|
|
175
176
|
],
|
|
176
177
|
[
|
|
177
|
-
|
|
178
|
+
$e,
|
|
178
179
|
1,
|
|
179
180
|
"isAdmin"
|
|
180
181
|
],
|
|
181
182
|
[
|
|
182
|
-
|
|
183
|
+
et,
|
|
183
184
|
1,
|
|
184
185
|
"warningCount"
|
|
185
186
|
]
|
|
186
|
-
], 0, void 0,
|
|
187
|
+
], 0, void 0, Ke));
|
|
187
188
|
}
|
|
188
189
|
#e = (() => {
|
|
189
|
-
let e =
|
|
190
|
-
return
|
|
190
|
+
let e = tt(this, "/images/icon.png");
|
|
191
|
+
return nt(this), e;
|
|
191
192
|
})();
|
|
192
193
|
get iconSrc() {
|
|
193
194
|
return this.#e;
|
|
@@ -196,8 +197,8 @@ new class extends it {
|
|
|
196
197
|
this.#e = e;
|
|
197
198
|
}
|
|
198
199
|
#t = (() => {
|
|
199
|
-
let e =
|
|
200
|
-
return
|
|
200
|
+
let e = rt(this);
|
|
201
|
+
return it(this), e;
|
|
201
202
|
})();
|
|
202
203
|
get themeSrc() {
|
|
203
204
|
return this.#t;
|
|
@@ -206,8 +207,8 @@ new class extends it {
|
|
|
206
207
|
this.#t = e;
|
|
207
208
|
}
|
|
208
209
|
#n = (() => {
|
|
209
|
-
let e =
|
|
210
|
-
return
|
|
210
|
+
let e = at(this, "No network connected");
|
|
211
|
+
return ot(this), e;
|
|
211
212
|
})();
|
|
212
213
|
get networkName() {
|
|
213
214
|
return this.#n;
|
|
@@ -216,8 +217,8 @@ new class extends it {
|
|
|
216
217
|
this.#n = e;
|
|
217
218
|
}
|
|
218
219
|
#r = (() => {
|
|
219
|
-
let e =
|
|
220
|
-
return
|
|
220
|
+
let e = st(this, !1);
|
|
221
|
+
return ct(this), e;
|
|
221
222
|
})();
|
|
222
223
|
get networkConnected() {
|
|
223
224
|
return this.#r;
|
|
@@ -226,8 +227,8 @@ new class extends it {
|
|
|
226
227
|
this.#r = e;
|
|
227
228
|
}
|
|
228
229
|
#i = (() => {
|
|
229
|
-
let e =
|
|
230
|
-
return
|
|
230
|
+
let e = lt(this, "");
|
|
231
|
+
return ut(this), e;
|
|
231
232
|
})();
|
|
232
233
|
get currentPage() {
|
|
233
234
|
return this.#i;
|
|
@@ -236,8 +237,8 @@ new class extends it {
|
|
|
236
237
|
this.#i = e;
|
|
237
238
|
}
|
|
238
239
|
#a = (() => {
|
|
239
|
-
let e =
|
|
240
|
-
return
|
|
240
|
+
let e = dt(this, "");
|
|
241
|
+
return ft(this), e;
|
|
241
242
|
})();
|
|
242
243
|
get dappApiUrl() {
|
|
243
244
|
return this.#a;
|
|
@@ -246,8 +247,8 @@ new class extends it {
|
|
|
246
247
|
this.#a = e;
|
|
247
248
|
}
|
|
248
249
|
#o = (() => {
|
|
249
|
-
let e =
|
|
250
|
-
return
|
|
250
|
+
let e = pt(this, !1);
|
|
251
|
+
return mt(this), e;
|
|
251
252
|
})();
|
|
252
253
|
get isAdmin() {
|
|
253
254
|
return this.#o;
|
|
@@ -256,8 +257,8 @@ new class extends it {
|
|
|
256
257
|
this.#o = e;
|
|
257
258
|
}
|
|
258
259
|
#s = (() => {
|
|
259
|
-
let e =
|
|
260
|
-
return
|
|
260
|
+
let e = ht(this, 0);
|
|
261
|
+
return gt(this), e;
|
|
261
262
|
})();
|
|
262
263
|
get warningCount() {
|
|
263
264
|
return this.#s;
|
|
@@ -286,7 +287,7 @@ new class extends it {
|
|
|
286
287
|
render() {
|
|
287
288
|
return z`
|
|
288
289
|
<style>
|
|
289
|
-
${
|
|
290
|
+
${Le(this.effectiveThemeCss)}
|
|
290
291
|
</style>
|
|
291
292
|
|
|
292
293
|
<app-header
|
|
@@ -304,7 +305,7 @@ new class extends it {
|
|
|
304
305
|
`;
|
|
305
306
|
}
|
|
306
307
|
}];
|
|
307
|
-
styles = [
|
|
308
|
+
styles = [F.styles, R`
|
|
308
309
|
:host {
|
|
309
310
|
display: block;
|
|
310
311
|
width: 100%;
|
|
@@ -313,7 +314,7 @@ new class extends it {
|
|
|
313
314
|
`];
|
|
314
315
|
}();
|
|
315
316
|
// src/components/custom-toast.ts
|
|
316
|
-
function
|
|
317
|
+
function _t(e, t) {
|
|
317
318
|
if (typeof e != "object" || !e) return e;
|
|
318
319
|
var n = e[Symbol.toPrimitive];
|
|
319
320
|
if (n !== void 0) {
|
|
@@ -323,15 +324,15 @@ function Mt(e, t) {
|
|
|
323
324
|
}
|
|
324
325
|
return (t === "string" ? String : Number)(e);
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
-
var t =
|
|
327
|
+
function vt(e) {
|
|
328
|
+
var t = _t(e, "string");
|
|
328
329
|
return typeof t == "symbol" ? t : String(t);
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
+
function yt(e) {
|
|
331
332
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
332
333
|
return e;
|
|
333
334
|
}
|
|
334
|
-
function
|
|
335
|
+
function bt(e, t, n) {
|
|
335
336
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
336
337
|
try {
|
|
337
338
|
Object.defineProperty(e, "name", {
|
|
@@ -341,7 +342,7 @@ function Ft(e, t, n) {
|
|
|
341
342
|
} catch {}
|
|
342
343
|
return e;
|
|
343
344
|
}
|
|
344
|
-
function
|
|
345
|
+
function xt(e, t, n, r, i, a) {
|
|
345
346
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
346
347
|
function p(t, n, r) {
|
|
347
348
|
return function(i, a) {
|
|
@@ -366,13 +367,13 @@ function It(e, t, n, r, i, a) {
|
|
|
366
367
|
}
|
|
367
368
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
368
369
|
if (!b && (d ? (h || x ? E = {
|
|
369
|
-
get:
|
|
370
|
+
get: bt(function() {
|
|
370
371
|
return y(this);
|
|
371
372
|
}, r, "get"),
|
|
372
373
|
set: function(e) {
|
|
373
374
|
t[4](this, e);
|
|
374
375
|
}
|
|
375
|
-
} : E[O] = y, h ||
|
|
376
|
+
} : E[O] = y, h || bt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
376
377
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
377
378
|
u[+c][r] = i < 3 ? 1 : i;
|
|
378
379
|
}
|
|
@@ -420,8 +421,8 @@ function It(e, t, n, r, i, a) {
|
|
|
420
421
|
var l = n[c], u = l[1], d = u & 7;
|
|
421
422
|
if ((u & 8) == o && !d == s) {
|
|
422
423
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
423
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
424
|
-
return
|
|
424
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : vt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
425
|
+
return yt(t) === e;
|
|
425
426
|
} : i);
|
|
426
427
|
}
|
|
427
428
|
}
|
|
@@ -443,49 +444,49 @@ function It(e, t, n, r, i, a) {
|
|
|
443
444
|
}
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
|
-
function
|
|
447
|
+
function St(e) {
|
|
447
448
|
return e;
|
|
448
449
|
}
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
new class extends
|
|
450
|
+
var Ct, wt, U, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt = 5e3, W = 250;
|
|
451
|
+
Ct = I("custom-toast"), U = F, Tt = L({ type: String }), Et = L({ type: String }), Dt = L({ type: String }), Ot = L({ type: String }), kt = L({ type: Boolean });
|
|
452
|
+
var G;
|
|
453
|
+
new class extends St {
|
|
453
454
|
constructor() {
|
|
454
|
-
super(
|
|
455
|
+
super(G), wt();
|
|
455
456
|
}
|
|
456
|
-
static [class extends
|
|
457
|
+
static [class extends U {
|
|
457
458
|
static {
|
|
458
|
-
({e: [
|
|
459
|
+
({e: [At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt], c: [G, wt]} = xt(this, [Ct], [
|
|
459
460
|
[
|
|
460
|
-
|
|
461
|
+
Tt,
|
|
461
462
|
1,
|
|
462
463
|
"title"
|
|
463
464
|
],
|
|
464
465
|
[
|
|
465
|
-
|
|
466
|
+
Et,
|
|
466
467
|
1,
|
|
467
468
|
"message"
|
|
468
469
|
],
|
|
469
470
|
[
|
|
470
|
-
|
|
471
|
+
Dt,
|
|
471
472
|
1,
|
|
472
473
|
"buttonText"
|
|
473
474
|
],
|
|
474
475
|
[
|
|
475
|
-
|
|
476
|
+
Ot,
|
|
476
477
|
1,
|
|
477
478
|
"type"
|
|
478
479
|
],
|
|
479
480
|
[
|
|
480
|
-
|
|
481
|
+
kt,
|
|
481
482
|
1,
|
|
482
483
|
"closing"
|
|
483
484
|
]
|
|
484
|
-
], 0, void 0,
|
|
485
|
+
], 0, void 0, U));
|
|
485
486
|
}
|
|
486
487
|
#e = (() => {
|
|
487
|
-
let e =
|
|
488
|
-
return
|
|
488
|
+
let e = At(this, "");
|
|
489
|
+
return jt(this), e;
|
|
489
490
|
})();
|
|
490
491
|
get title() {
|
|
491
492
|
return this.#e;
|
|
@@ -494,8 +495,8 @@ new class extends Lt {
|
|
|
494
495
|
this.#e = e;
|
|
495
496
|
}
|
|
496
497
|
#t = (() => {
|
|
497
|
-
let e =
|
|
498
|
-
return
|
|
498
|
+
let e = Mt(this, "");
|
|
499
|
+
return Nt(this), e;
|
|
499
500
|
})();
|
|
500
501
|
get message() {
|
|
501
502
|
return this.#t;
|
|
@@ -504,8 +505,8 @@ new class extends Lt {
|
|
|
504
505
|
this.#t = e;
|
|
505
506
|
}
|
|
506
507
|
#n = (() => {
|
|
507
|
-
let e =
|
|
508
|
-
return
|
|
508
|
+
let e = Pt(this, "Dismiss notification");
|
|
509
|
+
return Ft(this), e;
|
|
509
510
|
})();
|
|
510
511
|
get buttonText() {
|
|
511
512
|
return this.#n;
|
|
@@ -514,8 +515,8 @@ new class extends Lt {
|
|
|
514
515
|
this.#n = e;
|
|
515
516
|
}
|
|
516
517
|
#r = (() => {
|
|
517
|
-
let e =
|
|
518
|
-
return
|
|
518
|
+
let e = It(this, "error");
|
|
519
|
+
return Lt(this), e;
|
|
519
520
|
})();
|
|
520
521
|
get type() {
|
|
521
522
|
return this.#r;
|
|
@@ -524,8 +525,8 @@ new class extends Lt {
|
|
|
524
525
|
this.#r = e;
|
|
525
526
|
}
|
|
526
527
|
#i = (() => {
|
|
527
|
-
let e =
|
|
528
|
-
return
|
|
528
|
+
let e = Rt(this, !1);
|
|
529
|
+
return zt(this), e;
|
|
529
530
|
})();
|
|
530
531
|
get closing() {
|
|
531
532
|
return this.#i;
|
|
@@ -538,10 +539,10 @@ new class extends Lt {
|
|
|
538
539
|
closeToast = () => {
|
|
539
540
|
this.closing || (this.dismissTimeout &&= (window.clearTimeout(this.dismissTimeout), void 0), this.closing = !0, this.removeTimeout = window.setTimeout(() => {
|
|
540
541
|
this.closing = !1, this.remove();
|
|
541
|
-
},
|
|
542
|
+
}, W));
|
|
542
543
|
};
|
|
543
544
|
connectedCallback() {
|
|
544
|
-
super.connectedCallback(), this.dismissTimeout = window.setTimeout(() => this.closeToast(),
|
|
545
|
+
super.connectedCallback(), this.dismissTimeout = window.setTimeout(() => this.closeToast(), Bt);
|
|
545
546
|
}
|
|
546
547
|
disconnectedCallback() {
|
|
547
548
|
this.dismissTimeout &&= (window.clearTimeout(this.dismissTimeout), void 0), this.removeTimeout &&= (window.clearTimeout(this.removeTimeout), void 0), super.disconnectedCallback();
|
|
@@ -571,7 +572,7 @@ new class extends Lt {
|
|
|
571
572
|
`;
|
|
572
573
|
}
|
|
573
574
|
}];
|
|
574
|
-
styles = [
|
|
575
|
+
styles = [F.styles, R`
|
|
575
576
|
:host {
|
|
576
577
|
position: fixed;
|
|
577
578
|
right: 20px;
|
|
@@ -598,7 +599,7 @@ new class extends Lt {
|
|
|
598
599
|
border-left: 4px solid var(--toast-accent-color);
|
|
599
600
|
border-radius: var(--wg-radius-lg);
|
|
600
601
|
box-shadow: var(--wg-shadow-lg);
|
|
601
|
-
animation: fadeIn ${
|
|
602
|
+
animation: fadeIn ${W}ms ease-out;
|
|
602
603
|
}
|
|
603
604
|
|
|
604
605
|
.toast-wrapper.info {
|
|
@@ -696,7 +697,7 @@ new class extends Lt {
|
|
|
696
697
|
}
|
|
697
698
|
|
|
698
699
|
.toast-wrapper.closing {
|
|
699
|
-
animation: fadeOut ${
|
|
700
|
+
animation: fadeOut ${W}ms ease-in forwards;
|
|
700
701
|
}
|
|
701
702
|
|
|
702
703
|
@media (max-width: 600px) {
|
|
@@ -709,7 +710,7 @@ new class extends Lt {
|
|
|
709
710
|
`];
|
|
710
711
|
}();
|
|
711
712
|
// src/components/loading-state.ts
|
|
712
|
-
function
|
|
713
|
+
function Vt(e, t) {
|
|
713
714
|
if (typeof e != "object" || !e) return e;
|
|
714
715
|
var n = e[Symbol.toPrimitive];
|
|
715
716
|
if (n !== void 0) {
|
|
@@ -719,15 +720,15 @@ function nn(e, t) {
|
|
|
719
720
|
}
|
|
720
721
|
return (t === "string" ? String : Number)(e);
|
|
721
722
|
}
|
|
722
|
-
function
|
|
723
|
-
var t =
|
|
723
|
+
function Ht(e) {
|
|
724
|
+
var t = Vt(e, "string");
|
|
724
725
|
return typeof t == "symbol" ? t : String(t);
|
|
725
726
|
}
|
|
726
|
-
function
|
|
727
|
+
function Ut(e) {
|
|
727
728
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
728
729
|
return e;
|
|
729
730
|
}
|
|
730
|
-
function
|
|
731
|
+
function Wt(e, t, n) {
|
|
731
732
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
732
733
|
try {
|
|
733
734
|
Object.defineProperty(e, "name", {
|
|
@@ -737,7 +738,7 @@ function on(e, t, n) {
|
|
|
737
738
|
} catch {}
|
|
738
739
|
return e;
|
|
739
740
|
}
|
|
740
|
-
function
|
|
741
|
+
function Gt(e, t, n, r, i, a) {
|
|
741
742
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
742
743
|
function p(t, n, r) {
|
|
743
744
|
return function(i, a) {
|
|
@@ -762,13 +763,13 @@ function sn(e, t, n, r, i, a) {
|
|
|
762
763
|
}
|
|
763
764
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
764
765
|
if (!b && (d ? (h || x ? E = {
|
|
765
|
-
get:
|
|
766
|
+
get: Wt(function() {
|
|
766
767
|
return y(this);
|
|
767
768
|
}, r, "get"),
|
|
768
769
|
set: function(e) {
|
|
769
770
|
t[4](this, e);
|
|
770
771
|
}
|
|
771
|
-
} : E[O] = y, h ||
|
|
772
|
+
} : E[O] = y, h || Wt(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
772
773
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
773
774
|
u[+c][r] = i < 3 ? 1 : i;
|
|
774
775
|
}
|
|
@@ -816,8 +817,8 @@ function sn(e, t, n, r, i, a) {
|
|
|
816
817
|
var l = n[c], u = l[1], d = u & 7;
|
|
817
818
|
if ((u & 8) == o && !d == s) {
|
|
818
819
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
819
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
820
|
-
return
|
|
820
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : Ht(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
821
|
+
return Ut(t) === e;
|
|
821
822
|
} : i);
|
|
822
823
|
}
|
|
823
824
|
}
|
|
@@ -839,25 +840,25 @@ function sn(e, t, n, r, i, a) {
|
|
|
839
840
|
}
|
|
840
841
|
};
|
|
841
842
|
}
|
|
842
|
-
function
|
|
843
|
+
function Kt(e) {
|
|
843
844
|
return e;
|
|
844
845
|
}
|
|
845
|
-
var
|
|
846
|
-
new class extends
|
|
846
|
+
var qt = I("wg-loading-state"), Jt, Yt = F, Xt = L({ type: String }), Zt, Qt, K;
|
|
847
|
+
new class extends Kt {
|
|
847
848
|
constructor() {
|
|
848
|
-
super(
|
|
849
|
+
super(K), Jt();
|
|
849
850
|
}
|
|
850
|
-
static [class extends
|
|
851
|
+
static [class extends Yt {
|
|
851
852
|
static {
|
|
852
|
-
({e: [
|
|
853
|
-
|
|
853
|
+
({e: [Zt, Qt], c: [K, Jt]} = Gt(this, [qt], [[
|
|
854
|
+
Xt,
|
|
854
855
|
1,
|
|
855
856
|
"text"
|
|
856
|
-
]], 0, void 0,
|
|
857
|
+
]], 0, void 0, Yt));
|
|
857
858
|
}
|
|
858
859
|
#e = (() => {
|
|
859
|
-
let e =
|
|
860
|
-
return
|
|
860
|
+
let e = Zt(this, "Loading");
|
|
861
|
+
return Qt(this), e;
|
|
861
862
|
})();
|
|
862
863
|
get text() {
|
|
863
864
|
return this.#e;
|
|
@@ -878,7 +879,7 @@ new class extends cn {
|
|
|
878
879
|
`;
|
|
879
880
|
}
|
|
880
881
|
}];
|
|
881
|
-
styles = [
|
|
882
|
+
styles = [F.styles, R`
|
|
882
883
|
:host {
|
|
883
884
|
display: block;
|
|
884
885
|
}
|
|
@@ -940,19 +941,19 @@ new class extends cn {
|
|
|
940
941
|
`];
|
|
941
942
|
}();
|
|
942
943
|
// src/utils.ts
|
|
943
|
-
function
|
|
944
|
-
return Array.isArray(e) ? e.reduce((e, t) => e +
|
|
944
|
+
function $t(e) {
|
|
945
|
+
return Array.isArray(e) ? e.reduce((e, t) => e + $t(t), "") : e instanceof Ie ? e.cssText : "";
|
|
945
946
|
}
|
|
946
947
|
// src/components/wallet-picker.ts
|
|
947
|
-
var
|
|
948
|
+
var en = $t([F.styles, R`
|
|
948
949
|
* {
|
|
949
950
|
box-sizing: border-box;
|
|
950
|
-
font-family: var(--wg-
|
|
951
|
-
color: var(--wg-
|
|
951
|
+
font-family: var(--wg-font-family);
|
|
952
|
+
color: var(--wg-text);
|
|
952
953
|
}
|
|
953
954
|
|
|
954
955
|
.root {
|
|
955
|
-
background-color: var(--wg-
|
|
956
|
+
background-color: var(--wg-bg);
|
|
956
957
|
width: 100%;
|
|
957
958
|
height: 100%;
|
|
958
959
|
display: flex;
|
|
@@ -970,7 +971,7 @@ var gn = hn([d.styles, R`
|
|
|
970
971
|
padding: 0 24px;
|
|
971
972
|
display: flex;
|
|
972
973
|
align-items: center;
|
|
973
|
-
border-bottom: 1px solid var(--wg-
|
|
974
|
+
border-bottom: 1px solid var(--wg-border);
|
|
974
975
|
}
|
|
975
976
|
|
|
976
977
|
.header-logo {
|
|
@@ -982,7 +983,7 @@ var gn = hn([d.styles, R`
|
|
|
982
983
|
font-size: 20px;
|
|
983
984
|
font-weight: 600;
|
|
984
985
|
padding: 16px 24px 12px;
|
|
985
|
-
color: var(--wg-
|
|
986
|
+
color: var(--wg-text);
|
|
986
987
|
}
|
|
987
988
|
|
|
988
989
|
.view-title-row {
|
|
@@ -1001,7 +1002,7 @@ var gn = hn([d.styles, R`
|
|
|
1001
1002
|
border: none;
|
|
1002
1003
|
background: transparent;
|
|
1003
1004
|
padding: 0;
|
|
1004
|
-
color: var(--wg-
|
|
1005
|
+
color: var(--wg-text);
|
|
1005
1006
|
text-decoration: none;
|
|
1006
1007
|
display: inline-flex;
|
|
1007
1008
|
align-items: center;
|
|
@@ -1014,11 +1015,11 @@ var gn = hn([d.styles, R`
|
|
|
1014
1015
|
}
|
|
1015
1016
|
|
|
1016
1017
|
.back-link:hover {
|
|
1017
|
-
color: var(--wg-
|
|
1018
|
+
color: var(--wg-text);
|
|
1018
1019
|
}
|
|
1019
1020
|
|
|
1020
1021
|
.back-link:focus-visible {
|
|
1021
|
-
outline: 2px solid var(--wg-
|
|
1022
|
+
outline: 2px solid var(--wg-accent);
|
|
1022
1023
|
outline-offset: 2px;
|
|
1023
1024
|
border-radius: 4px;
|
|
1024
1025
|
}
|
|
@@ -1046,8 +1047,8 @@ var gn = hn([d.styles, R`
|
|
|
1046
1047
|
gap: 12px;
|
|
1047
1048
|
padding: 14px 16px;
|
|
1048
1049
|
border-radius: 8px;
|
|
1049
|
-
border: 1px solid var(--wg-
|
|
1050
|
-
background: var(--wg-
|
|
1050
|
+
border: 1px solid var(--wg-border);
|
|
1051
|
+
background: var(--wg-surface);
|
|
1051
1052
|
transition: all 0.15s ease;
|
|
1052
1053
|
width: 100%;
|
|
1053
1054
|
text-align: left;
|
|
@@ -1056,14 +1057,14 @@ var gn = hn([d.styles, R`
|
|
|
1056
1057
|
|
|
1057
1058
|
.wallet-suggested-card.wallet-suggested-card-disabled {
|
|
1058
1059
|
opacity: 0.8;
|
|
1059
|
-
background: var(--wg-
|
|
1060
|
+
background: var(--wg-border);
|
|
1060
1061
|
}
|
|
1061
1062
|
|
|
1062
1063
|
.btn-secondary.wallet-install-btn {
|
|
1063
1064
|
text-decoration: none;
|
|
1064
1065
|
padding: 2px 4px;
|
|
1065
1066
|
font-size: 12px;
|
|
1066
|
-
background: var(--wg-
|
|
1067
|
+
background: var(--wg-surface);
|
|
1067
1068
|
}
|
|
1068
1069
|
|
|
1069
1070
|
.wallet-install-buttons
|
|
@@ -1072,8 +1073,8 @@ var gn = hn([d.styles, R`
|
|
|
1072
1073
|
}
|
|
1073
1074
|
|
|
1074
1075
|
.wallet-install-btn:hover {
|
|
1075
|
-
background: var(--wg-
|
|
1076
|
-
border-color: var(--wg-
|
|
1076
|
+
background: var(--wg-surface-hover);
|
|
1077
|
+
border-color: var(--wg-accent);
|
|
1077
1078
|
}
|
|
1078
1079
|
|
|
1079
1080
|
.wallet-card {
|
|
@@ -1082,8 +1083,8 @@ var gn = hn([d.styles, R`
|
|
|
1082
1083
|
gap: 12px;
|
|
1083
1084
|
padding: 14px 16px;
|
|
1084
1085
|
border-radius: 8px;
|
|
1085
|
-
border: 1px solid var(--wg-
|
|
1086
|
-
background: var(--wg-
|
|
1086
|
+
border: 1px solid var(--wg-border);
|
|
1087
|
+
background: var(--wg-surface);
|
|
1087
1088
|
cursor: pointer;
|
|
1088
1089
|
transition: all 0.15s ease;
|
|
1089
1090
|
width: 100%;
|
|
@@ -1092,12 +1093,12 @@ var gn = hn([d.styles, R`
|
|
|
1092
1093
|
}
|
|
1093
1094
|
|
|
1094
1095
|
.wallet-card:hover {
|
|
1095
|
-
background: var(--wg-
|
|
1096
|
-
border-color: var(--wg-
|
|
1096
|
+
background: var(--wg-surface-hover);
|
|
1097
|
+
border-color: var(--wg-accent);
|
|
1097
1098
|
}
|
|
1098
1099
|
|
|
1099
1100
|
.wallet-card:focus-visible {
|
|
1100
|
-
outline: 2px solid var(--wg-
|
|
1101
|
+
outline: 2px solid var(--wg-accent);
|
|
1101
1102
|
outline-offset: 2px;
|
|
1102
1103
|
}
|
|
1103
1104
|
|
|
@@ -1109,7 +1110,7 @@ var gn = hn([d.styles, R`
|
|
|
1109
1110
|
width: 32px;
|
|
1110
1111
|
height: 32px;
|
|
1111
1112
|
border-radius: 8px;
|
|
1112
|
-
background: var(--wg-
|
|
1113
|
+
background: var(--wg-icon-bg);
|
|
1113
1114
|
display: flex;
|
|
1114
1115
|
align-items: center;
|
|
1115
1116
|
justify-content: center;
|
|
@@ -1127,7 +1128,7 @@ var gn = hn([d.styles, R`
|
|
|
1127
1128
|
.wallet-icon svg {
|
|
1128
1129
|
width: 22px;
|
|
1129
1130
|
height: 22px;
|
|
1130
|
-
color: var(--wg-
|
|
1131
|
+
color: var(--wg-text-secondary);
|
|
1131
1132
|
}
|
|
1132
1133
|
|
|
1133
1134
|
.wallet-name {
|
|
@@ -1165,9 +1166,9 @@ var gn = hn([d.styles, R`
|
|
|
1165
1166
|
}
|
|
1166
1167
|
|
|
1167
1168
|
.wallet-url {
|
|
1168
|
-
font-size: var(--wg-
|
|
1169
|
+
font-size: var(--wg-font-size-xs);
|
|
1169
1170
|
line-height: 16px;
|
|
1170
|
-
color: var(--wg-
|
|
1171
|
+
color: var(--wg-text-secondary);
|
|
1171
1172
|
overflow: hidden;
|
|
1172
1173
|
text-overflow: ellipsis;
|
|
1173
1174
|
white-space: nowrap;
|
|
@@ -1175,16 +1176,16 @@ var gn = hn([d.styles, R`
|
|
|
1175
1176
|
|
|
1176
1177
|
.wallet-card-editing {
|
|
1177
1178
|
cursor: default;
|
|
1178
|
-
border-color: var(--wg-
|
|
1179
|
+
border-color: var(--wg-accent);
|
|
1179
1180
|
}
|
|
1180
1181
|
|
|
1181
1182
|
.wallet-rename-input {
|
|
1182
1183
|
height: 26px;
|
|
1183
1184
|
padding: 0 8px;
|
|
1184
|
-
border: 1px solid var(--wg-
|
|
1185
|
+
border: 1px solid var(--wg-border);
|
|
1185
1186
|
border-radius: 6px;
|
|
1186
|
-
background: var(--wg-
|
|
1187
|
-
color: var(--wg-
|
|
1187
|
+
background: var(--wg-bg);
|
|
1188
|
+
color: var(--wg-text);
|
|
1188
1189
|
font-size: 15px;
|
|
1189
1190
|
font-weight: 500;
|
|
1190
1191
|
}
|
|
@@ -1192,7 +1193,7 @@ var gn = hn([d.styles, R`
|
|
|
1192
1193
|
.wallet-action-btn {
|
|
1193
1194
|
border: none;
|
|
1194
1195
|
background: transparent;
|
|
1195
|
-
color: var(--wg-
|
|
1196
|
+
color: var(--wg-text-secondary);
|
|
1196
1197
|
display: inline-flex;
|
|
1197
1198
|
align-items: center;
|
|
1198
1199
|
justify-content: center;
|
|
@@ -1207,16 +1208,16 @@ var gn = hn([d.styles, R`
|
|
|
1207
1208
|
}
|
|
1208
1209
|
|
|
1209
1210
|
.wallet-action-btn:hover {
|
|
1210
|
-
color: var(--wg-
|
|
1211
|
-
background: var(--wg-
|
|
1211
|
+
color: var(--wg-text);
|
|
1212
|
+
background: var(--wg-icon-bg);
|
|
1212
1213
|
}
|
|
1213
1214
|
|
|
1214
1215
|
.wallet-remove-btn:hover {
|
|
1215
|
-
color: var(--wg-
|
|
1216
|
+
color: var(--wg-error);
|
|
1216
1217
|
}
|
|
1217
1218
|
|
|
1218
1219
|
.wallet-action-btn:focus-visible {
|
|
1219
|
-
outline: 2px solid var(--wg-
|
|
1220
|
+
outline: 2px solid var(--wg-accent);
|
|
1220
1221
|
}
|
|
1221
1222
|
|
|
1222
1223
|
.wallet-action-btn svg {
|
|
@@ -1238,7 +1239,7 @@ var gn = hn([d.styles, R`
|
|
|
1238
1239
|
font-weight: 600;
|
|
1239
1240
|
text-transform: uppercase;
|
|
1240
1241
|
letter-spacing: 0.05em;
|
|
1241
|
-
color: var(--wg-
|
|
1242
|
+
color: var(--wg-text);
|
|
1242
1243
|
padding: 0 4px 8px;
|
|
1243
1244
|
}
|
|
1244
1245
|
|
|
@@ -1257,7 +1258,7 @@ var gn = hn([d.styles, R`
|
|
|
1257
1258
|
justify-content: center;
|
|
1258
1259
|
width: 14px;
|
|
1259
1260
|
height: 14px;
|
|
1260
|
-
color: var(--wg-
|
|
1261
|
+
color: var(--wg-text-secondary);
|
|
1261
1262
|
border: none;
|
|
1262
1263
|
background: transparent;
|
|
1263
1264
|
padding: 0;
|
|
@@ -1265,7 +1266,7 @@ var gn = hn([d.styles, R`
|
|
|
1265
1266
|
}
|
|
1266
1267
|
|
|
1267
1268
|
.custom-url-label .info-icon:focus-visible {
|
|
1268
|
-
outline: 2px solid var(--wg-
|
|
1269
|
+
outline: 2px solid var(--wg-accent);
|
|
1269
1270
|
border-radius: 999px;
|
|
1270
1271
|
}
|
|
1271
1272
|
|
|
@@ -1277,9 +1278,9 @@ var gn = hn([d.styles, R`
|
|
|
1277
1278
|
padding: 8px 10px;
|
|
1278
1279
|
border: none;
|
|
1279
1280
|
border-radius: 10px;
|
|
1280
|
-
background: var(--wg-
|
|
1281
|
-
color: var(--wg-
|
|
1282
|
-
box-shadow: 0 10px 24px rgba(
|
|
1281
|
+
background: var(--wg-primary);
|
|
1282
|
+
color: var(--wg-primary-text);
|
|
1283
|
+
box-shadow: 0 10px 24px rgba(var(--wg-shade-rgb), 0.22);
|
|
1283
1284
|
font-size: 12px;
|
|
1284
1285
|
font-weight: 500;
|
|
1285
1286
|
line-height: 1.4;
|
|
@@ -1330,26 +1331,26 @@ var gn = hn([d.styles, R`
|
|
|
1330
1331
|
.custom-url-input {
|
|
1331
1332
|
flex: 1;
|
|
1332
1333
|
padding: 10px 14px;
|
|
1333
|
-
border: 1px solid var(--wg-
|
|
1334
|
+
border: 1px solid var(--wg-border);
|
|
1334
1335
|
border-radius: 8px;
|
|
1335
1336
|
font-size: 14px;
|
|
1336
1337
|
outline: none;
|
|
1337
|
-
background: var(--wg-
|
|
1338
|
-
color: var(--wg-
|
|
1338
|
+
background: var(--wg-surface);
|
|
1339
|
+
color: var(--wg-text);
|
|
1339
1340
|
}
|
|
1340
1341
|
|
|
1341
1342
|
.custom-url-input:focus {
|
|
1342
|
-
border-color: var(--wg-
|
|
1343
|
-
box-shadow: 0 0 0 2px rgba(
|
|
1343
|
+
border-color: var(--wg-accent);
|
|
1344
|
+
box-shadow: 0 0 0 2px rgba(var(--wg-accent-rgb), 0.15);
|
|
1344
1345
|
}
|
|
1345
1346
|
|
|
1346
1347
|
.custom-url-input::placeholder {
|
|
1347
|
-
color: var(--wg-
|
|
1348
|
+
color: var(--wg-text-secondary);
|
|
1348
1349
|
}
|
|
1349
1350
|
|
|
1350
1351
|
.btn-add {
|
|
1351
|
-
background: var(--wg-
|
|
1352
|
-
color: var(--wg-
|
|
1352
|
+
background: var(--wg-primary);
|
|
1353
|
+
color: var(--wg-primary-text);
|
|
1353
1354
|
border: none;
|
|
1354
1355
|
border-radius: 20px;
|
|
1355
1356
|
padding: 10px 24px;
|
|
@@ -1361,7 +1362,7 @@ var gn = hn([d.styles, R`
|
|
|
1361
1362
|
}
|
|
1362
1363
|
|
|
1363
1364
|
.btn-add:hover {
|
|
1364
|
-
background: var(--wg-
|
|
1365
|
+
background: var(--wg-primary-hover);
|
|
1365
1366
|
}
|
|
1366
1367
|
|
|
1367
1368
|
.btn-add:disabled {
|
|
@@ -1389,14 +1390,14 @@ var gn = hn([d.styles, R`
|
|
|
1389
1390
|
.status-view p {
|
|
1390
1391
|
margin: 0;
|
|
1391
1392
|
font-size: 14px;
|
|
1392
|
-
color: var(--wg-
|
|
1393
|
+
color: var(--wg-text-secondary);
|
|
1393
1394
|
}
|
|
1394
1395
|
|
|
1395
1396
|
.spinner {
|
|
1396
1397
|
width: 36px;
|
|
1397
1398
|
height: 36px;
|
|
1398
|
-
border: 3px solid var(--wg-
|
|
1399
|
-
border-top-color: var(--wg-
|
|
1399
|
+
border: 3px solid var(--wg-border);
|
|
1400
|
+
border-top-color: var(--wg-accent);
|
|
1400
1401
|
border-radius: 50%;
|
|
1401
1402
|
animation: spin 0.8s linear infinite;
|
|
1402
1403
|
}
|
|
@@ -1408,11 +1409,11 @@ var gn = hn([d.styles, R`
|
|
|
1408
1409
|
}
|
|
1409
1410
|
|
|
1410
1411
|
.success-icon {
|
|
1411
|
-
color: var(--wg-
|
|
1412
|
+
color: var(--wg-success);
|
|
1412
1413
|
}
|
|
1413
1414
|
|
|
1414
1415
|
.error-icon {
|
|
1415
|
-
color: var(--wg-
|
|
1416
|
+
color: var(--wg-error);
|
|
1416
1417
|
}
|
|
1417
1418
|
|
|
1418
1419
|
.btn-row {
|
|
@@ -1422,8 +1423,8 @@ var gn = hn([d.styles, R`
|
|
|
1422
1423
|
}
|
|
1423
1424
|
|
|
1424
1425
|
.btn-primary {
|
|
1425
|
-
background: var(--wg-
|
|
1426
|
-
color: var(--wg-
|
|
1426
|
+
background: var(--wg-primary);
|
|
1427
|
+
color: var(--wg-primary-text);
|
|
1427
1428
|
border: none;
|
|
1428
1429
|
border-radius: 8px;
|
|
1429
1430
|
padding: 10px 24px;
|
|
@@ -1434,13 +1435,13 @@ var gn = hn([d.styles, R`
|
|
|
1434
1435
|
}
|
|
1435
1436
|
|
|
1436
1437
|
.btn-primary:hover {
|
|
1437
|
-
background: var(--wg-
|
|
1438
|
+
background: var(--wg-primary-hover);
|
|
1438
1439
|
}
|
|
1439
1440
|
|
|
1440
1441
|
.btn-secondary {
|
|
1441
1442
|
background: transparent;
|
|
1442
|
-
color: var(--wg-
|
|
1443
|
-
border: 1px solid var(--wg-
|
|
1443
|
+
color: var(--wg-text-secondary);
|
|
1444
|
+
border: 1px solid var(--wg-border);
|
|
1444
1445
|
border-radius: 8px;
|
|
1445
1446
|
padding: 10px 24px;
|
|
1446
1447
|
font-size: 14px;
|
|
@@ -1449,10 +1450,10 @@ var gn = hn([d.styles, R`
|
|
|
1449
1450
|
}
|
|
1450
1451
|
|
|
1451
1452
|
.empty-state {
|
|
1452
|
-
color: var(--wg-
|
|
1453
|
+
color: var(--wg-text-secondary);
|
|
1453
1454
|
}
|
|
1454
|
-
`]),
|
|
1455
|
-
static styles =
|
|
1455
|
+
`]), q = class extends HTMLElement {
|
|
1456
|
+
static styles = en;
|
|
1456
1457
|
RECENT_KEY = "splice_wallet_picker_recent";
|
|
1457
1458
|
icons = {
|
|
1458
1459
|
back: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" fill=\"currentColor\" viewBox=\"0 0 16 16\"><path fill-rule=\"evenodd\" d=\"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0\"/></svg>",
|
|
@@ -1763,9 +1764,9 @@ var gn = hn([d.styles, R`
|
|
|
1763
1764
|
}
|
|
1764
1765
|
t.appendChild(this.el("h3", this.wcQrDataUrl ? "Or paste this URI in your wallet" : "Paste this URI in your wallet"));
|
|
1765
1766
|
let e = this.el("code", this.wcUri);
|
|
1766
|
-
e.style.cssText = "display:block;word-break:break-all;font-size:11px;background:var(--wg-
|
|
1767
|
+
e.style.cssText = "display:block;word-break:break-all;font-size:11px;background:var(--wg-bg);padding:12px;border-radius:6px;margin:8px 0;max-height:120px;overflow:auto;user-select:all;cursor:pointer;", t.appendChild(e);
|
|
1767
1768
|
let n = this.wcUri, r = this.el("button", "Copy URI");
|
|
1768
|
-
r.style.cssText = "padding:8px 16px;border-radius:4px;border:none;background
|
|
1769
|
+
r.style.cssText = "padding:8px 16px;border-radius:4px;border:none;background:var(--wg-primary);color:var(--wg-primary-text);cursor:pointer;font-size:14px;margin-top:4px;", r.addEventListener("click", () => {
|
|
1769
1770
|
navigator.clipboard.writeText(n), r.innerText = "Copied!", setTimeout(() => {
|
|
1770
1771
|
r.innerText = "Copy URI";
|
|
1771
1772
|
}, 2e3);
|
|
@@ -1832,9 +1833,9 @@ var gn = hn([d.styles, R`
|
|
|
1832
1833
|
return t ? "firefox" : n ? "chrome" : "unsupported";
|
|
1833
1834
|
}
|
|
1834
1835
|
};
|
|
1835
|
-
customElements.define("swk-wallet-picker",
|
|
1836
|
+
customElements.define("swk-wallet-picker", q);
|
|
1836
1837
|
// src/components/form-input.ts
|
|
1837
|
-
function
|
|
1838
|
+
function tn(e, t) {
|
|
1838
1839
|
if (typeof e != "object" || !e) return e;
|
|
1839
1840
|
var n = e[Symbol.toPrimitive];
|
|
1840
1841
|
if (n !== void 0) {
|
|
@@ -1844,15 +1845,15 @@ function _n(e, t) {
|
|
|
1844
1845
|
}
|
|
1845
1846
|
return (t === "string" ? String : Number)(e);
|
|
1846
1847
|
}
|
|
1847
|
-
function
|
|
1848
|
-
var t =
|
|
1848
|
+
function nn(e) {
|
|
1849
|
+
var t = tn(e, "string");
|
|
1849
1850
|
return typeof t == "symbol" ? t : String(t);
|
|
1850
1851
|
}
|
|
1851
|
-
function
|
|
1852
|
+
function rn(e) {
|
|
1852
1853
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
1853
1854
|
return e;
|
|
1854
1855
|
}
|
|
1855
|
-
function
|
|
1856
|
+
function an(e, t, n) {
|
|
1856
1857
|
typeof t == "symbol" && (t = t.description, t = t ? "[" + t + "]" : "");
|
|
1857
1858
|
try {
|
|
1858
1859
|
Object.defineProperty(e, "name", {
|
|
@@ -1862,7 +1863,7 @@ function bn(e, t, n) {
|
|
|
1862
1863
|
} catch {}
|
|
1863
1864
|
return e;
|
|
1864
1865
|
}
|
|
1865
|
-
function
|
|
1866
|
+
function on(e, t, n, r, i, a) {
|
|
1866
1867
|
var o = Symbol.metadata || Symbol.for("Symbol.metadata"), s = Object.defineProperty, c = Object.create, l, u = [c(null), c(null)], d = t.length, f;
|
|
1867
1868
|
function p(t, n, r) {
|
|
1868
1869
|
return function(i, a) {
|
|
@@ -1887,13 +1888,13 @@ function xn(e, t, n, r, i, a) {
|
|
|
1887
1888
|
}
|
|
1888
1889
|
var E = {}, D = [], O = S ? "get" : C || x ? "set" : "value";
|
|
1889
1890
|
if (!b && (d ? (h || x ? E = {
|
|
1890
|
-
get:
|
|
1891
|
+
get: an(function() {
|
|
1891
1892
|
return y(this);
|
|
1892
1893
|
}, r, "get"),
|
|
1893
1894
|
set: function(e) {
|
|
1894
1895
|
t[4](this, e);
|
|
1895
1896
|
}
|
|
1896
|
-
} : E[O] = y, h ||
|
|
1897
|
+
} : E[O] = y, h || an(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
|
|
1897
1898
|
if (f = u[+c][r], f && (f ^ i) !== 7) throw Error("Decorating two elements with the same name (" + E[O].name + ") is not supported yet");
|
|
1898
1899
|
u[+c][r] = i < 3 ? 1 : i;
|
|
1899
1900
|
}
|
|
@@ -1941,8 +1942,8 @@ function xn(e, t, n, r, i, a) {
|
|
|
1941
1942
|
var l = n[c], u = l[1], d = u & 7;
|
|
1942
1943
|
if ((u & 8) == o && !d == s) {
|
|
1943
1944
|
var f = l[2], p = !!l[3], m = u & 16;
|
|
1944
|
-
h(o ? e : e.prototype, l, m, p ? "#" + f :
|
|
1945
|
-
return
|
|
1945
|
+
h(o ? e : e.prototype, l, m, p ? "#" + f : nn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
|
|
1946
|
+
return rn(t) === e;
|
|
1946
1947
|
} : i);
|
|
1947
1948
|
}
|
|
1948
1949
|
}
|
|
@@ -1964,10 +1965,10 @@ function xn(e, t, n, r, i, a) {
|
|
|
1964
1965
|
}
|
|
1965
1966
|
};
|
|
1966
1967
|
}
|
|
1967
|
-
function
|
|
1968
|
+
function sn(e) {
|
|
1968
1969
|
return e;
|
|
1969
1970
|
}
|
|
1970
|
-
var
|
|
1971
|
+
var cn, ln, J, un, dn, fn, pn, mn, hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, Y, X = class extends Event {
|
|
1971
1972
|
value;
|
|
1972
1973
|
constructor(e) {
|
|
1973
1974
|
super("form-input-change", {
|
|
@@ -1976,50 +1977,50 @@ var Cn, wn, q, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, V
|
|
|
1976
1977
|
}), this.value = e;
|
|
1977
1978
|
}
|
|
1978
1979
|
};
|
|
1979
|
-
|
|
1980
|
-
var
|
|
1981
|
-
new class extends
|
|
1980
|
+
cn = I("form-input"), J = F, un = L({ type: String }), dn = L({ type: String }), fn = L({ type: String }), pn = L({ type: Boolean }), mn = L({ type: Boolean }), hn = L({ type: Boolean });
|
|
1981
|
+
var Z;
|
|
1982
|
+
new class extends sn {
|
|
1982
1983
|
constructor() {
|
|
1983
|
-
super(
|
|
1984
|
+
super(Z), ln();
|
|
1984
1985
|
}
|
|
1985
|
-
static [class extends
|
|
1986
|
+
static [class extends J {
|
|
1986
1987
|
static {
|
|
1987
|
-
({e: [
|
|
1988
|
+
({e: [gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn], c: [Z, ln]} = on(this, [cn], [
|
|
1988
1989
|
[
|
|
1989
|
-
|
|
1990
|
+
un,
|
|
1990
1991
|
1,
|
|
1991
1992
|
"label"
|
|
1992
1993
|
],
|
|
1993
1994
|
[
|
|
1994
|
-
|
|
1995
|
+
dn,
|
|
1995
1996
|
1,
|
|
1996
1997
|
"value"
|
|
1997
1998
|
],
|
|
1998
1999
|
[
|
|
1999
|
-
|
|
2000
|
+
fn,
|
|
2000
2001
|
1,
|
|
2001
2002
|
"text"
|
|
2002
2003
|
],
|
|
2003
2004
|
[
|
|
2004
|
-
|
|
2005
|
+
pn,
|
|
2005
2006
|
1,
|
|
2006
2007
|
"required"
|
|
2007
2008
|
],
|
|
2008
2009
|
[
|
|
2009
|
-
|
|
2010
|
+
mn,
|
|
2010
2011
|
1,
|
|
2011
2012
|
"hideable"
|
|
2012
2013
|
],
|
|
2013
2014
|
[
|
|
2014
|
-
|
|
2015
|
+
hn,
|
|
2015
2016
|
1,
|
|
2016
2017
|
"hidden"
|
|
2017
2018
|
]
|
|
2018
|
-
], 0, void 0,
|
|
2019
|
+
], 0, void 0, J));
|
|
2019
2020
|
}
|
|
2020
2021
|
#e = (() => {
|
|
2021
|
-
let e =
|
|
2022
|
-
return
|
|
2022
|
+
let e = gn(this, "");
|
|
2023
|
+
return _n(this), e;
|
|
2023
2024
|
})();
|
|
2024
2025
|
get label() {
|
|
2025
2026
|
return this.#e;
|
|
@@ -2028,8 +2029,8 @@ new class extends Sn {
|
|
|
2028
2029
|
this.#e = e;
|
|
2029
2030
|
}
|
|
2030
2031
|
#t = (() => {
|
|
2031
|
-
let e =
|
|
2032
|
-
return
|
|
2032
|
+
let e = vn(this, "");
|
|
2033
|
+
return yn(this), e;
|
|
2033
2034
|
})();
|
|
2034
2035
|
get value() {
|
|
2035
2036
|
return this.#t;
|
|
@@ -2038,8 +2039,8 @@ new class extends Sn {
|
|
|
2038
2039
|
this.#t = e;
|
|
2039
2040
|
}
|
|
2040
2041
|
#n = (() => {
|
|
2041
|
-
let e =
|
|
2042
|
-
return
|
|
2042
|
+
let e = bn(this, "");
|
|
2043
|
+
return xn(this), e;
|
|
2043
2044
|
})();
|
|
2044
2045
|
get text() {
|
|
2045
2046
|
return this.#n;
|
|
@@ -2048,8 +2049,8 @@ new class extends Sn {
|
|
|
2048
2049
|
this.#n = e;
|
|
2049
2050
|
}
|
|
2050
2051
|
#r = (() => {
|
|
2051
|
-
let e =
|
|
2052
|
-
return
|
|
2052
|
+
let e = Sn(this, !1);
|
|
2053
|
+
return Cn(this), e;
|
|
2053
2054
|
})();
|
|
2054
2055
|
get required() {
|
|
2055
2056
|
return this.#r;
|
|
@@ -2058,8 +2059,8 @@ new class extends Sn {
|
|
|
2058
2059
|
this.#r = e;
|
|
2059
2060
|
}
|
|
2060
2061
|
#i = (() => {
|
|
2061
|
-
let e =
|
|
2062
|
-
return
|
|
2062
|
+
let e = wn(this, !1);
|
|
2063
|
+
return Tn(this), e;
|
|
2063
2064
|
})();
|
|
2064
2065
|
get hideable() {
|
|
2065
2066
|
return this.#i;
|
|
@@ -2068,8 +2069,8 @@ new class extends Sn {
|
|
|
2068
2069
|
this.#i = e;
|
|
2069
2070
|
}
|
|
2070
2071
|
#a = (() => {
|
|
2071
|
-
let e =
|
|
2072
|
-
return
|
|
2072
|
+
let e = En(this, !0);
|
|
2073
|
+
return Dn(this), e;
|
|
2073
2074
|
})();
|
|
2074
2075
|
get hidden() {
|
|
2075
2076
|
return this.#a;
|
|
@@ -2093,7 +2094,7 @@ new class extends Sn {
|
|
|
2093
2094
|
type="button"
|
|
2094
2095
|
aria-label=${this.hidden ? "Show value" : "Hide value"}
|
|
2095
2096
|
>
|
|
2096
|
-
${this.hidden ?
|
|
2097
|
+
${this.hidden ? ee : Ae}
|
|
2097
2098
|
</button>` : null}
|
|
2098
2099
|
<input
|
|
2099
2100
|
.value=${this.value}
|
|
@@ -2101,7 +2102,7 @@ new class extends Sn {
|
|
|
2101
2102
|
type=${this.hideable && this.hidden ? "password" : "text"}
|
|
2102
2103
|
@change=${(e) => {
|
|
2103
2104
|
let t = e.target;
|
|
2104
|
-
this.value = t.value, this.dispatchEvent(new
|
|
2105
|
+
this.value = t.value, this.dispatchEvent(new X(this.value));
|
|
2105
2106
|
}}
|
|
2106
2107
|
class="form-control field-input"
|
|
2107
2108
|
name=${this.label}
|
|
@@ -2112,7 +2113,7 @@ new class extends Sn {
|
|
|
2112
2113
|
`;
|
|
2113
2114
|
}
|
|
2114
2115
|
}];
|
|
2115
|
-
styles = [
|
|
2116
|
+
styles = [F.styles, R`
|
|
2116
2117
|
.field {
|
|
2117
2118
|
margin-bottom: var(--wg-space-4);
|
|
2118
2119
|
}
|
|
@@ -2190,75 +2191,18 @@ new class extends Sn {
|
|
|
2190
2191
|
color: var(--wg-text-secondary);
|
|
2191
2192
|
}
|
|
2192
2193
|
`];
|
|
2193
|
-
}(),
|
|
2194
|
-
var
|
|
2195
|
-
(class extends
|
|
2194
|
+
}(), On = I("wg-form-input"), Y = Z;
|
|
2195
|
+
var An;
|
|
2196
|
+
(class extends Y {
|
|
2196
2197
|
static {
|
|
2197
|
-
({c: [
|
|
2198
|
+
({c: [An, kn]} = on(this, [On], [], 0, void 0, Y));
|
|
2198
2199
|
}
|
|
2199
2200
|
static {
|
|
2200
|
-
|
|
2201
|
-
}
|
|
2202
|
-
})
|
|
2203
|
-
message: "Must be a valid HTTP or HTTPS URL",
|
|
2204
|
-
protocol: /^https?$/
|
|
2205
|
-
}).transform((e) => new URL(e).toString());
|
|
2206
|
-
var qn = N({
|
|
2207
|
-
method: P(),
|
|
2208
|
-
params: p(f([w(g()), M(P(), g())]))
|
|
2209
|
-
}), Jn = N({ result: p(g()) }), Yn = N({ error: N({
|
|
2210
|
-
code: r(),
|
|
2211
|
-
message: P(),
|
|
2212
|
-
data: p(P().or(r()).or(u()).or(v()).or(g()))
|
|
2213
|
-
}) }), Xn = f([Jn, Yn]), X = N({
|
|
2214
|
-
jsonrpc: D("2.0"),
|
|
2215
|
-
id: p(P().or(r()).or(b()).or(v()))
|
|
2216
|
-
}), Zn = _(X, qn), Qn = _(X, Xn), $n = /* @__PURE__ */ function(e) {
|
|
2217
|
-
return e.SPLICE_WALLET_REQUEST = "SPLICE_WALLET_REQUEST", e.SPLICE_WALLET_RESPONSE = "SPLICE_WALLET_RESPONSE", e.SPLICE_WALLET_EXT_READY = "SPLICE_WALLET_EXT_READY", e.SPLICE_WALLET_EXT_ACK = "SPLICE_WALLET_EXT_ACK", e.SPLICE_WALLET_EXT_OPEN = "SPLICE_WALLET_EXT_OPEN", e.SPLICE_WALLET_IDP_AUTH_SUCCESS = "SPLICE_WALLET_IDP_AUTH_SUCCESS", e.SPLICE_WALLET_LOGOUT = "SPLICE_WALLET_LOGOUT", e.SPLICE_WALLET_BROADCAST_ORIGIN = "SPLICE_WALLET_BROADCAST_ORIGIN", e.SPLICE_WALLET_BROADCAST_ORIGIN_ACK = "SPLICE_WALLET_BROADCAST_ORIGIN_ACK", e;
|
|
2218
|
-
}({}), Z = P().min(1).describe("Optional routing key for browser-extension messaging. When present, only the matching extension should handle the message."), er = m("type", [
|
|
2219
|
-
N({
|
|
2220
|
-
type: D("SPLICE_WALLET_REQUEST"),
|
|
2221
|
-
request: Zn,
|
|
2222
|
-
target: Z.optional()
|
|
2223
|
-
}),
|
|
2224
|
-
N({
|
|
2225
|
-
type: D("SPLICE_WALLET_RESPONSE"),
|
|
2226
|
-
response: Qn
|
|
2227
|
-
}),
|
|
2228
|
-
N({
|
|
2229
|
-
type: D("SPLICE_WALLET_EXT_READY"),
|
|
2230
|
-
target: Z.optional()
|
|
2231
|
-
}),
|
|
2232
|
-
N({
|
|
2233
|
-
type: D("SPLICE_WALLET_EXT_ACK"),
|
|
2234
|
-
target: Z.optional()
|
|
2235
|
-
}),
|
|
2236
|
-
N({
|
|
2237
|
-
type: D("SPLICE_WALLET_EXT_OPEN"),
|
|
2238
|
-
url: F(),
|
|
2239
|
-
target: Z.optional()
|
|
2240
|
-
}),
|
|
2241
|
-
N({
|
|
2242
|
-
type: D("SPLICE_WALLET_IDP_AUTH_SUCCESS"),
|
|
2243
|
-
token: P(),
|
|
2244
|
-
sessionId: P()
|
|
2245
|
-
}),
|
|
2246
|
-
N({
|
|
2247
|
-
type: D("SPLICE_WALLET_BROADCAST_ORIGIN"),
|
|
2248
|
-
origin: F()
|
|
2249
|
-
}),
|
|
2250
|
-
N({ type: D("SPLICE_WALLET_BROADCAST_ORIGIN_ACK") })
|
|
2251
|
-
]), tr = (e) => typeof e == "object" && e && "data" in e ? nr(e.data) : !1, nr = (e) => er.safeParse(e).success;
|
|
2252
|
-
m("walletType", [N({
|
|
2253
|
-
walletType: D("extension"),
|
|
2254
|
-
providerId: P().optional(),
|
|
2255
|
-
url: p(Ze())
|
|
2256
|
-
}), N({
|
|
2257
|
-
walletType: D("remote"),
|
|
2258
|
-
url: F()
|
|
2259
|
-
})]), N({ name: P() });
|
|
2201
|
+
kn();
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2260
2204
|
// src/windows/popup.ts
|
|
2261
|
-
var Q,
|
|
2205
|
+
var Q, jn = new class e {
|
|
2262
2206
|
static getInstance() {
|
|
2263
2207
|
if (!Q || Q.closed) {
|
|
2264
2208
|
console.log("[PopupInstance] Creating new global popup instance");
|
|
@@ -2278,14 +2222,14 @@ var Q, rr = new class e {
|
|
|
2278
2222
|
let n = e.getInstance(), r = t.toString(), i = new URL(r).origin;
|
|
2279
2223
|
n.location.href = r;
|
|
2280
2224
|
let a = {
|
|
2281
|
-
type:
|
|
2225
|
+
type: B.SPLICE_WALLET_BROADCAST_ORIGIN,
|
|
2282
2226
|
origin: window.location.origin
|
|
2283
2227
|
}, o = !1, s = setInterval(() => {
|
|
2284
2228
|
n.postMessage(a, i);
|
|
2285
2229
|
}, 500), c = setTimeout(() => {
|
|
2286
2230
|
clearInterval(s), o || console.error("Connection timed out waiting for child window.");
|
|
2287
2231
|
}, 1e4), l = (e) => {
|
|
2288
|
-
|
|
2232
|
+
Re(e) && e.data.type === B.SPLICE_WALLET_BROADCAST_ORIGIN_ACK && i === e.origin && (o = !0, clearInterval(s), clearTimeout(c), window.removeEventListener("message", l));
|
|
2289
2233
|
};
|
|
2290
2234
|
return window.addEventListener("message", l), n.focus(), n;
|
|
2291
2235
|
}
|
|
@@ -2340,14 +2284,14 @@ var Q, rr = new class e {
|
|
|
2340
2284
|
escapeStylesForTemplate(e) {
|
|
2341
2285
|
return e.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("</", "<\\/");
|
|
2342
2286
|
}
|
|
2343
|
-
}(), $,
|
|
2287
|
+
}(), $, Mn = (e) => {
|
|
2344
2288
|
let t = $;
|
|
2345
2289
|
if (t && !t.closed) try {
|
|
2346
2290
|
if (t.location.origin !== window.location.origin) return;
|
|
2347
2291
|
t.postMessage(e, window.location.origin);
|
|
2348
2292
|
} catch {}
|
|
2349
|
-
},
|
|
2350
|
-
|
|
2293
|
+
}, Nn = (e) => {
|
|
2294
|
+
Mn({
|
|
2351
2295
|
messageType: "SPLICE_WALLET_PICKER_CONNECT_STATUS",
|
|
2352
2296
|
status: "connected"
|
|
2353
2297
|
}), e || queueMicrotask(() => {
|
|
@@ -2359,13 +2303,13 @@ var Q, rr = new class e {
|
|
|
2359
2303
|
$ = void 0;
|
|
2360
2304
|
}
|
|
2361
2305
|
});
|
|
2362
|
-
},
|
|
2363
|
-
|
|
2306
|
+
}, Pn = (e) => {
|
|
2307
|
+
Mn({
|
|
2364
2308
|
messageType: "SPLICE_WALLET_PICKER_CONNECT_STATUS",
|
|
2365
2309
|
status: "error",
|
|
2366
2310
|
message: e
|
|
2367
2311
|
});
|
|
2368
|
-
},
|
|
2312
|
+
}, Fn = (e) => new Promise((t, n) => {
|
|
2369
2313
|
let r = setInterval(() => {
|
|
2370
2314
|
e.closed && (i(), n(/* @__PURE__ */ Error("User closed the wallet picker")));
|
|
2371
2315
|
}, 500), i = () => {
|
|
@@ -2380,21 +2324,21 @@ var Q, rr = new class e {
|
|
|
2380
2324
|
}));
|
|
2381
2325
|
};
|
|
2382
2326
|
window.addEventListener("message", a);
|
|
2383
|
-
}),
|
|
2327
|
+
}), In = async () => {
|
|
2384
2328
|
let e = $;
|
|
2385
2329
|
if (!e || e.closed) throw Error("Wallet picker is not open");
|
|
2386
|
-
return await
|
|
2330
|
+
return await Fn(e);
|
|
2387
2331
|
};
|
|
2388
|
-
async function
|
|
2332
|
+
async function Ln(e) {
|
|
2389
2333
|
localStorage.setItem("splice_wallet_picker_entries", JSON.stringify(e));
|
|
2390
|
-
let t =
|
|
2391
|
-
return $ = t, await
|
|
2334
|
+
let t = jn.open(q, { title: "Connect a wallet" });
|
|
2335
|
+
return $ = t, await Fn(t);
|
|
2392
2336
|
}
|
|
2393
2337
|
// src/handle-errors.ts
|
|
2394
|
-
function
|
|
2395
|
-
let n = document.createElement("custom-toast"), r =
|
|
2338
|
+
function Rn(e, t) {
|
|
2339
|
+
let n = document.createElement("custom-toast"), r = De(e, t);
|
|
2396
2340
|
n.title = r.title, n.message = r.message, n.type = "error", n.buttonText = r.buttonText, document.body.appendChild(n);
|
|
2397
2341
|
}
|
|
2398
|
-
export {
|
|
2342
|
+
export { _e as ALLOWED_ROUTES, se as ApiKeyCard, he as ApiKeyCardRevokeEvent, xe as ApiKeyForm, re as ApiKeyGenerateEvent, Oe as AppHeader, H as AppLayout, N as AuthEditor, Ee as AuthEditorChangeEvent, F as BaseElement, e as CopyDappApiUrlEvent, w as CopySuccessEvent, Se as ErrorPageBackEvent, u as ErrorPageRefreshEvent, Z as FormInput, X as FormInputChangedEvent, x as IdpCard, n as IdpCardDeleteEvent, S as IdpCardReviewEvent, c as IdpCardUpdateEvent, o as IdpFormBackEvent, l as IdpFormCancelEvent, Fe as IdpFormComponent, f as IdpFormDeleteEvent, v as IdpFormSaveEvent, ke as LoginBackEvent, P as LoginConnectEvent, te as LogoutEvent, ge as MessageApproveEvent, Ce as MessageDeleteEvent, g as NetworkCard, ue as NetworkCardDeleteEvent, p as NetworkCardReviewEvent, m as NetworkCardUpdateEvent, i as NetworkDeleteEvent, h as NetworkEditCancelEvent, de as NetworkEditSaveEvent, t as NetworkForm, a as NotFound, C as PageChangeEvent, D as SigningProviderChangeEvent, G as Toast, k as TransactionApproveEvent, M as TransactionCardReviewEvent, ve as TransactionDeleteEvent, Pe as WalletAllocateEvent, j as WalletCardEditEvent, Ne as WalletCardSelectEvent, oe as WalletCreateEvent, be as WalletEditEvent, q as WalletPicker, y as WalletSetPrimaryEvent, Me as WalletsSyncEvent, _ as WgBackLink, E as WgCopyButton, T as WgErrorPage, An as WgFormInput, K as WgLoadingState, ne as WgLoginForm, ce as WgMessageDetail, d as WgPageHeader, s as WgPagination, fe as WgTransactionCard, Te as WgTransactionDetail, r as WgWalletCard, ie as WgWalletCreateForm, me as WgWalletEditForm, je as WgWalletList, b as WgWalletsSync, pe as chevronLeftIcon, ae as formatDateTime, O as formatUtcDateTime, we as getCurrentRoute, Rn as handleErrorToast, le as isAllowedRoute, Nn as notifyWalletPickerConnected, Pn as notifyWalletPickerError, Ln as pickWallet, jn as popup, A as toRelHref, ye as toRelPath, In as waitForWalletPickerRetrySelection };
|
|
2399
2343
|
|
|
2400
2344
|
//# sourceMappingURL=index.js.map
|