@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/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { $ as e, A as t, At as n, B as r, C as i, Ct as a, D as o, Dt as s, E as c, Et as l, F as u, Ft as d, G as f, H as p, I as m, J as h, K as g, L as _, M as v, Mt as y, N as b, Nt as x, O as S, Ot as C, P as w, Pt as T, Q as E, R as D, S as O, St as k, T as A, Tt as j, U as M, V as N, W as P, X as ee, Y as te, Z as ne, _ as re, _t as ie, a as ae, at as oe, b as se, bt as ce, c as le, ct as ue, d as de, dt as fe, et as pe, f as me, ft as he, g as ge, gt as _e, h as ve, ht as ye, i as be, it as xe, jt as Se, k as Ce, kt as we, l as Te, lt as Ee, m as De, mt as Oe, n as ke, nt as Ae, o as je, ot as Me, p as Ne, pt as Pe, q as F, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, xt as Je, y as Ye, yt as Xe, z as Ze } from "./error-toast-DQZ4SB72.js";
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 Qe, css as R, html as z, unsafeCSS as $e } from "lit";
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 et(e, t) {
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 tt(e) {
16
- var t = et(e, "string");
16
+ function Be(e) {
17
+ var t = ze(e, "string");
17
18
  return typeof t == "symbol" ? t : String(t);
18
19
  }
19
- function nt(e) {
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 B(e, t, n) {
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 rt(e, t, n, r, i, a) {
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: B(function() {
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 || B(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
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 : tt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
113
- return nt(t) === e;
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 it(e) {
136
+ function Ue(e) {
136
137
  return e;
137
138
  }
138
- var at = I("app-layout"), ot, st = d, ct = L({ type: String }), lt = L({ type: String }), ut = L({ type: String }), dt = L({ type: Boolean }), ft = L({ type: String }), pt = L({ type: String }), mt = L({ type: Boolean }), ht = L({ type: Number }), gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, V;
139
- new class extends it {
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(V), ot();
142
+ super(H), Ge();
142
143
  }
143
- static [class extends st {
144
+ static [class extends Ke {
144
145
  static {
145
- ({e: [gt, _t, vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt], c: [V, ot]} = rt(this, [at], [
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
- ct,
148
+ qe,
148
149
  1,
149
150
  "iconSrc"
150
151
  ],
151
152
  [
152
- lt,
153
+ Je,
153
154
  1,
154
155
  "themeSrc"
155
156
  ],
156
157
  [
157
- ut,
158
+ Ye,
158
159
  1,
159
160
  "networkName"
160
161
  ],
161
162
  [
162
- dt,
163
+ Xe,
163
164
  1,
164
165
  "networkConnected"
165
166
  ],
166
167
  [
167
- ft,
168
+ Ze,
168
169
  1,
169
170
  "currentPage"
170
171
  ],
171
172
  [
172
- pt,
173
+ Qe,
173
174
  1,
174
175
  "dappApiUrl"
175
176
  ],
176
177
  [
177
- mt,
178
+ $e,
178
179
  1,
179
180
  "isAdmin"
180
181
  ],
181
182
  [
182
- ht,
183
+ et,
183
184
  1,
184
185
  "warningCount"
185
186
  ]
186
- ], 0, void 0, st));
187
+ ], 0, void 0, Ke));
187
188
  }
188
189
  #e = (() => {
189
- let e = gt(this, "/images/icon.png");
190
- return _t(this), e;
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 = vt(this);
200
- return yt(this), e;
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 = bt(this, "No network connected");
210
- return xt(this), e;
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 = St(this, !1);
220
- return Ct(this), e;
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 = wt(this, "");
230
- return Tt(this), e;
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 = Et(this, "");
240
- return Dt(this), e;
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 = Ot(this, !1);
250
- return kt(this), e;
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 = At(this, 0);
260
- return jt(this), e;
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
- ${$e(this.effectiveThemeCss)}
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 = [d.styles, R`
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 Mt(e, t) {
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 Nt(e) {
327
- var t = Mt(e, "string");
327
+ function vt(e) {
328
+ var t = _t(e, "string");
328
329
  return typeof t == "symbol" ? t : String(t);
329
330
  }
330
- function Pt(e) {
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 Ft(e, t, n) {
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 It(e, t, n, r, i, a) {
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: Ft(function() {
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 || Ft(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
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 : Nt(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
424
- return Pt(t) === e;
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 Lt(e) {
447
+ function St(e) {
447
448
  return e;
448
449
  }
449
- var Rt, zt, H, Bt, Vt, Ht, Ut, Wt, Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn = 5e3, U = 250;
450
- Rt = I("custom-toast"), H = d, Bt = L({ type: String }), Vt = L({ type: String }), Ht = L({ type: String }), Ut = L({ type: String }), Wt = L({ type: Boolean });
451
- var W;
452
- new class extends Lt {
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(W), zt();
455
+ super(G), wt();
455
456
  }
456
- static [class extends H {
457
+ static [class extends U {
457
458
  static {
458
- ({e: [Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en], c: [W, zt]} = It(this, [Rt], [
459
+ ({e: [At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt], c: [G, wt]} = xt(this, [Ct], [
459
460
  [
460
- Bt,
461
+ Tt,
461
462
  1,
462
463
  "title"
463
464
  ],
464
465
  [
465
- Vt,
466
+ Et,
466
467
  1,
467
468
  "message"
468
469
  ],
469
470
  [
470
- Ht,
471
+ Dt,
471
472
  1,
472
473
  "buttonText"
473
474
  ],
474
475
  [
475
- Ut,
476
+ Ot,
476
477
  1,
477
478
  "type"
478
479
  ],
479
480
  [
480
- Wt,
481
+ kt,
481
482
  1,
482
483
  "closing"
483
484
  ]
484
- ], 0, void 0, H));
485
+ ], 0, void 0, U));
485
486
  }
486
487
  #e = (() => {
487
- let e = Gt(this, "");
488
- return Kt(this), e;
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 = qt(this, "");
498
- return Jt(this), e;
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 = Yt(this, "Dismiss notification");
508
- return Xt(this), e;
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 = Zt(this, "error");
518
- return Qt(this), e;
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 = $t(this, !1);
528
- return en(this), e;
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
- }, U));
542
+ }, W));
542
543
  };
543
544
  connectedCallback() {
544
- super.connectedCallback(), this.dismissTimeout = window.setTimeout(() => this.closeToast(), tn);
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 = [d.styles, R`
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 ${U}ms ease-out;
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 ${U}ms ease-in forwards;
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 nn(e, t) {
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 rn(e) {
723
- var t = nn(e, "string");
723
+ function Ht(e) {
724
+ var t = Vt(e, "string");
724
725
  return typeof t == "symbol" ? t : String(t);
725
726
  }
726
- function an(e) {
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 on(e, t, n) {
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 sn(e, t, n, r, i, a) {
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: on(function() {
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 || on(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
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 : rn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
820
- return an(t) === e;
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 cn(e) {
843
+ function Kt(e) {
843
844
  return e;
844
845
  }
845
- var ln = I("wg-loading-state"), un, dn = d, fn = L({ type: String }), pn, mn, G;
846
- new class extends cn {
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(G), un();
849
+ super(K), Jt();
849
850
  }
850
- static [class extends dn {
851
+ static [class extends Yt {
851
852
  static {
852
- ({e: [pn, mn], c: [G, un]} = sn(this, [ln], [[
853
- fn,
853
+ ({e: [Zt, Qt], c: [K, Jt]} = Gt(this, [qt], [[
854
+ Xt,
854
855
  1,
855
856
  "text"
856
- ]], 0, void 0, dn));
857
+ ]], 0, void 0, Yt));
857
858
  }
858
859
  #e = (() => {
859
- let e = pn(this, "Loading");
860
- return mn(this), e;
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 = [d.styles, R`
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 hn(e) {
944
- return Array.isArray(e) ? e.reduce((e, t) => e + hn(t), "") : e instanceof Qe ? e.cssText : "";
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 gn = hn([d.styles, R`
948
+ var en = $t([F.styles, R`
948
949
  * {
949
950
  box-sizing: border-box;
950
- font-family: var(--wg-theme-font-family);
951
- color: var(--wg-theme-text-color);
951
+ font-family: var(--wg-font-family);
952
+ color: var(--wg-text);
952
953
  }
953
954
 
954
955
  .root {
955
- background-color: var(--wg-theme-background-color);
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-theme-border-color);
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-theme-text-color);
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-theme-text-color);
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-theme-text-color);
1018
+ color: var(--wg-text);
1018
1019
  }
1019
1020
 
1020
1021
  .back-link:focus-visible {
1021
- outline: 2px solid var(--wg-theme-accent-color);
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-theme-border-color);
1050
- background: var(--wg-theme-surface-color);
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-theme-border-color);
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-theme-surface-color);
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-theme-surface-hover);
1076
- border-color: var(--wg-theme-accent-color);
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-theme-border-color);
1086
- background: var(--wg-theme-surface-color);
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-theme-surface-hover);
1096
- border-color: var(--wg-theme-accent-color);
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-theme-accent-color);
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-theme-icon-bg);
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-theme-text-secondary);
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-theme-font-size-xs);
1169
+ font-size: var(--wg-font-size-xs);
1169
1170
  line-height: 16px;
1170
- color: var(--wg-theme-text-secondary);
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-theme-accent-color);
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-theme-border-color);
1185
+ border: 1px solid var(--wg-border);
1185
1186
  border-radius: 6px;
1186
- background: var(--wg-theme-background-color);
1187
- color: var(--wg-theme-text-color);
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-theme-text-secondary);
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-theme-text-color);
1211
- background: var(--wg-theme-icon-bg);
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-theme-error-color);
1216
+ color: var(--wg-error);
1216
1217
  }
1217
1218
 
1218
1219
  .wallet-action-btn:focus-visible {
1219
- outline: 2px solid var(--wg-theme-accent-color);
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-theme-text-color);
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-theme-text-secondary);
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-theme-accent-color);
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-theme-primary-color);
1281
- color: var(--wg-theme-primary-text-color);
1282
- box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
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-theme-border-color);
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-theme-surface-color);
1338
- color: var(--wg-theme-text-color);
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-theme-accent-color);
1343
- box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
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-theme-text-secondary);
1348
+ color: var(--wg-text-secondary);
1348
1349
  }
1349
1350
 
1350
1351
  .btn-add {
1351
- background: var(--wg-theme-primary-color);
1352
- color: var(--wg-theme-primary-text-color);
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-theme-primary-hover);
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-theme-text-secondary);
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-theme-border-color);
1399
- border-top-color: var(--wg-theme-accent-color);
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-theme-success-color);
1412
+ color: var(--wg-success);
1412
1413
  }
1413
1414
 
1414
1415
  .error-icon {
1415
- color: var(--wg-theme-error-color);
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-theme-primary-color);
1426
- color: var(--wg-theme-primary-text-color);
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-theme-primary-hover);
1438
+ background: var(--wg-primary-hover);
1438
1439
  }
1439
1440
 
1440
1441
  .btn-secondary {
1441
1442
  background: transparent;
1442
- color: var(--wg-theme-text-secondary);
1443
- border: 1px solid var(--wg-theme-border-color);
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-theme-text-secondary);
1453
+ color: var(--wg-text-secondary);
1453
1454
  }
1454
- `]), K = class extends HTMLElement {
1455
- static styles = gn;
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-theme-background-color, #111);padding:12px;border-radius:6px;margin:8px 0;max-height:120px;overflow:auto;user-select:all;cursor:pointer;", t.appendChild(e);
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:#646cff;color:white;cursor:pointer;font-size:14px;margin-top:4px;", r.addEventListener("click", () => {
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", K);
1836
+ customElements.define("swk-wallet-picker", q);
1836
1837
  // src/components/form-input.ts
1837
- function _n(e, t) {
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 vn(e) {
1848
- var t = _n(e, "string");
1848
+ function nn(e) {
1849
+ var t = tn(e, "string");
1849
1850
  return typeof t == "symbol" ? t : String(t);
1850
1851
  }
1851
- function yn(e) {
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 bn(e, t, n) {
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 xn(e, t, n, r, i, a) {
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: bn(function() {
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 || bn(E[O], r, w ? "" : O)) : h || (E = Object.getOwnPropertyDescriptor(e, r)), !h && !d)) {
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 : vn(f), d, d < 2 ? [] : o ? a ||= [] : r ||= [], t, !!o, p, s, o && p ? function(t) {
1945
- return yn(t) === e;
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 Sn(e) {
1968
+ function sn(e) {
1968
1969
  return e;
1969
1970
  }
1970
- var Cn, wn, q, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, J, Gn = class extends Event {
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
- Cn = I("form-input"), q = d, Tn = L({ type: String }), En = L({ type: String }), Dn = L({ type: String }), On = L({ type: Boolean }), kn = L({ type: Boolean }), An = L({ type: Boolean });
1980
- var Y;
1981
- new class extends Sn {
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(Y), wn();
1984
+ super(Z), ln();
1984
1985
  }
1985
- static [class extends q {
1986
+ static [class extends J {
1986
1987
  static {
1987
- ({e: [jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn], c: [Y, wn]} = xn(this, [Cn], [
1988
+ ({e: [gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn], c: [Z, ln]} = on(this, [cn], [
1988
1989
  [
1989
- Tn,
1990
+ un,
1990
1991
  1,
1991
1992
  "label"
1992
1993
  ],
1993
1994
  [
1994
- En,
1995
+ dn,
1995
1996
  1,
1996
1997
  "value"
1997
1998
  ],
1998
1999
  [
1999
- Dn,
2000
+ fn,
2000
2001
  1,
2001
2002
  "text"
2002
2003
  ],
2003
2004
  [
2004
- On,
2005
+ pn,
2005
2006
  1,
2006
2007
  "required"
2007
2008
  ],
2008
2009
  [
2009
- kn,
2010
+ mn,
2010
2011
  1,
2011
2012
  "hideable"
2012
2013
  ],
2013
2014
  [
2014
- An,
2015
+ hn,
2015
2016
  1,
2016
2017
  "hidden"
2017
2018
  ]
2018
- ], 0, void 0, q));
2019
+ ], 0, void 0, J));
2019
2020
  }
2020
2021
  #e = (() => {
2021
- let e = jn(this, "");
2022
- return Mn(this), e;
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 = Nn(this, "");
2032
- return Pn(this), e;
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 = Fn(this, "");
2042
- return In(this), e;
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 = Ln(this, !1);
2052
- return Rn(this), e;
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 = zn(this, !1);
2062
- return Bn(this), e;
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 = Vn(this, !0);
2072
- return Hn(this), e;
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 ? C : s}
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 Gn(this.value));
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 = [d.styles, R`
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
- }(), Un = I("wg-form-input"), J = Y;
2194
- var Kn;
2195
- (class extends J {
2194
+ }(), On = I("wg-form-input"), Y = Z;
2195
+ var An;
2196
+ (class extends Y {
2196
2197
  static {
2197
- ({c: [Kn, Wn]} = xn(this, [Un], [], 0, void 0, J));
2198
+ ({c: [An, kn]} = on(this, [On], [], 0, void 0, Y));
2198
2199
  }
2199
2200
  static {
2200
- Wn();
2201
- }
2202
- }), new Uint8Array([18, 32]), P().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/, "Must be in the form party-hint::fingerprint"), F({
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, rr = new class e {
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: $n.SPLICE_WALLET_BROADCAST_ORIGIN,
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
- tr(e) && e.data.type === $n.SPLICE_WALLET_BROADCAST_ORIGIN_ACK && i === e.origin && (o = !0, clearInterval(s), clearTimeout(c), window.removeEventListener("message", l));
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
- }(), $, ir = (e) => {
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
- }, ar = (e) => {
2350
- ir({
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
- }, or = (e) => {
2363
- ir({
2306
+ }, Pn = (e) => {
2307
+ Mn({
2364
2308
  messageType: "SPLICE_WALLET_PICKER_CONNECT_STATUS",
2365
2309
  status: "error",
2366
2310
  message: e
2367
2311
  });
2368
- }, sr = (e) => new Promise((t, n) => {
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
- }), cr = async () => {
2327
+ }), In = async () => {
2384
2328
  let e = $;
2385
2329
  if (!e || e.closed) throw Error("Wallet picker is not open");
2386
- return await sr(e);
2330
+ return await Fn(e);
2387
2331
  };
2388
- async function lr(e) {
2332
+ async function Ln(e) {
2389
2333
  localStorage.setItem("splice_wallet_picker_entries", JSON.stringify(e));
2390
- let t = rr.open(K, { title: "Connect a wallet" });
2391
- return $ = t, await sr(t);
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 ur(e, t) {
2395
- let n = document.createElement("custom-toast"), r = ze(e, t);
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 { Xe as ALLOWED_ROUTES, y as ApiKeyCard, Se as ApiKeyCardRevokeEvent, n as ApiKeyForm, we as ApiKeyGenerateEvent, We as AppHeader, V as AppLayout, j as AuthEditor, Ke as AuthEditorChangeEvent, d as BaseElement, _e as CopyDappApiUrlEvent, Pe as CopySuccessEvent, He as ErrorPageBackEvent, fe as ErrorPageRefreshEvent, Y as FormInput, Gn as FormInputChangedEvent, Me as IdpCard, Ie as IdpCardDeleteEvent, xe as IdpCardReviewEvent, oe as IdpCardUpdateEvent, E as IdpFormBackEvent, e as IdpFormCancelEvent, Ae as IdpFormComponent, pe as IdpFormDeleteEvent, Be as IdpFormSaveEvent, Ve as LoginBackEvent, de as LoginConnectEvent, ie as LogoutEvent, ke as MessageApproveEvent, Fe as MessageDeleteEvent, ne as NetworkCard, h as NetworkCardDeleteEvent, te as NetworkCardReviewEvent, ee as NetworkCardUpdateEvent, o as NetworkDeleteEvent, S as NetworkEditCancelEvent, Ce as NetworkEditSaveEvent, t as NetworkForm, c as NotFound, Re as PageChangeEvent, re as SigningProviderChangeEvent, W as Toast, ae as TransactionApproveEvent, le as TransactionCardReviewEvent, je as TransactionDeleteEvent, Ye as WalletAllocateEvent, se as WalletCardEditEvent, qe as WalletCardSelectEvent, ve as WalletCreateEvent, Ne as WalletEditEvent, K as WalletPicker, O as WalletSetPrimaryEvent, Ge as WalletsSyncEvent, ye as WgBackLink, Oe as WgCopyButton, he as WgErrorPage, Kn as WgFormInput, G as WgLoadingState, me as WgLoginForm, be as WgMessageDetail, Ee as WgPageHeader, ue as WgPagination, Te as WgTransactionCard, Le as WgTransactionDetail, i as WgWalletCard, ge as WgWalletCreateForm, De as WgWalletEditForm, Ue as WgWalletList, A as WgWalletsSync, l as chevronLeftIcon, x as formatDateTime, T as formatUtcDateTime, ce as getCurrentRoute, ur as handleErrorToast, Je as isAllowedRoute, ar as notifyWalletPickerConnected, or as notifyWalletPickerError, lr as pickWallet, rr as popup, k as toRelHref, a as toRelPath, cr as waitForWalletPickerRetrySelection };
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