@canton-network/core-wallet-ui-components 0.31.0 → 0.32.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/transaction-card.d.ts +1 -0
- package/dist/components/transaction-card.d.ts.map +1 -1
- package/dist/components/transaction-detail.d.ts +1 -0
- package/dist/components/transaction-detail.d.ts.map +1 -1
- package/dist/components/wallet-picker.d.ts +2 -0
- package/dist/components/wallet-picker.d.ts.map +1 -1
- package/dist/index.cjs +178 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +625 -524
- package/dist/index.js.map +1 -1
- package/dist/windows/popup.d.ts +1 -0
- package/dist/windows/popup.d.ts.map +1 -1
- package/dist/windows/wallet-picker.stories.d.ts +1 -0
- package/dist/windows/wallet-picker.stories.d.ts.map +1 -1
- package/package.json +15 -9
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css as z, LitElement as za, unsafeCSS as lr, html as p, CSSResult as Aa, nothing as
|
|
1
|
+
import { css as z, LitElement as za, unsafeCSS as lr, html as p, CSSResult as Aa, nothing as Z } from "lit";
|
|
2
2
|
const I = (t) => (e, r) => {
|
|
3
3
|
r !== void 0 ? r.addInitializer(() => {
|
|
4
4
|
customElements.define(t, e);
|
|
@@ -34,10 +34,10 @@ const Ia = (t) => new Sa(typeof t == "string" ? t : t + "", void 0, ao), Oa = (t
|
|
|
34
34
|
for (const o of e.cssRules) r += o.cssText;
|
|
35
35
|
return Ia(r);
|
|
36
36
|
})(t) : t;
|
|
37
|
-
const { is: Ea, defineProperty:
|
|
37
|
+
const { is: Ea, defineProperty: Ca, getOwnPropertyDescriptor: ja, getOwnPropertyNames: _a, getOwnPropertySymbols: Pa, getPrototypeOf: Da } = Object, Xe = globalThis, Er = Xe.trustedTypes, Ba = Er ? Er.emptyScript : "", Ta = Xe.reactiveElementPolyfillSupport, $t = (t, e) => t, Te = { toAttribute(t, e) {
|
|
38
38
|
switch (e) {
|
|
39
39
|
case Boolean:
|
|
40
|
-
t = t ?
|
|
40
|
+
t = t ? Ba : null;
|
|
41
41
|
break;
|
|
42
42
|
case Object:
|
|
43
43
|
case Array:
|
|
@@ -62,7 +62,7 @@ const { is: Ea, defineProperty: ja, getOwnPropertyDescriptor: Ca, getOwnProperty
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
return r;
|
|
65
|
-
} }, gr = (t, e) => !Ea(t, e),
|
|
65
|
+
} }, gr = (t, e) => !Ea(t, e), Cr = { attribute: !0, type: String, converter: Te, reflect: !1, useDefault: !1, hasChanged: gr };
|
|
66
66
|
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Xe.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
67
67
|
class Mt extends HTMLElement {
|
|
68
68
|
static addInitializer(e) {
|
|
@@ -71,14 +71,14 @@ class Mt extends HTMLElement {
|
|
|
71
71
|
static get observedAttributes() {
|
|
72
72
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
73
73
|
}
|
|
74
|
-
static createProperty(e, r =
|
|
74
|
+
static createProperty(e, r = Cr) {
|
|
75
75
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
76
76
|
const o = /* @__PURE__ */ Symbol(), a = this.getPropertyDescriptor(e, o, r);
|
|
77
|
-
a !== void 0 &&
|
|
77
|
+
a !== void 0 && Ca(this.prototype, e, a);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
static getPropertyDescriptor(e, r, o) {
|
|
81
|
-
const { get: a, set: n } =
|
|
81
|
+
const { get: a, set: n } = ja(this.prototype, e) ?? { get() {
|
|
82
82
|
return this[r];
|
|
83
83
|
}, set(i) {
|
|
84
84
|
this[r] = i;
|
|
@@ -89,11 +89,11 @@ class Mt extends HTMLElement {
|
|
|
89
89
|
}, configurable: !0, enumerable: !0 };
|
|
90
90
|
}
|
|
91
91
|
static getPropertyOptions(e) {
|
|
92
|
-
return this.elementProperties.get(e) ??
|
|
92
|
+
return this.elementProperties.get(e) ?? Cr;
|
|
93
93
|
}
|
|
94
94
|
static _$Ei() {
|
|
95
95
|
if (this.hasOwnProperty($t("elementProperties"))) return;
|
|
96
|
-
const e =
|
|
96
|
+
const e = Da(this);
|
|
97
97
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
98
98
|
}
|
|
99
99
|
static finalize() {
|
|
@@ -273,7 +273,7 @@ function b(t) {
|
|
|
273
273
|
return a.constructor.createProperty(n, o), i ? Object.getOwnPropertyDescriptor(a, n) : void 0;
|
|
274
274
|
})(t, e, r);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function D(t) {
|
|
277
277
|
return b({ ...t, state: !0, attribute: !1 });
|
|
278
278
|
}
|
|
279
279
|
const Ma = (t, e, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, r), r);
|
|
@@ -374,7 +374,7 @@ const no = [
|
|
|
374
374
|
function Ap(t) {
|
|
375
375
|
return no.includes(t);
|
|
376
376
|
}
|
|
377
|
-
const
|
|
377
|
+
const Ga = no.filter(
|
|
378
378
|
(t) => t !== "/"
|
|
379
379
|
).sort((t, e) => e.length - t.length);
|
|
380
380
|
function so(t) {
|
|
@@ -385,17 +385,17 @@ function so(t) {
|
|
|
385
385
|
const e = t.replace(/\/+$/, "") || "/";
|
|
386
386
|
return e === "/index.html" ? "/" : e.endsWith("/index.html") ? e.slice(0, -11) || "/" : e;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Ua(t) {
|
|
389
389
|
const e = so(t);
|
|
390
390
|
if (e === "/")
|
|
391
391
|
return "/";
|
|
392
|
-
for (const r of
|
|
392
|
+
for (const r of Ga)
|
|
393
393
|
if (e === r || e.endsWith(`${r}`))
|
|
394
394
|
return r;
|
|
395
395
|
return null;
|
|
396
396
|
}
|
|
397
397
|
function Ha(t) {
|
|
398
|
-
const e = so(t), r =
|
|
398
|
+
const e = so(t), r = Ua(e);
|
|
399
399
|
return r === null || r === "/" ? e === "/" ? "" : e : e.slice(0, -r.length) || "";
|
|
400
400
|
}
|
|
401
401
|
function Yt(t, e = window.location.pathname) {
|
|
@@ -453,7 +453,7 @@ p`
|
|
|
453
453
|
/>
|
|
454
454
|
</svg>
|
|
455
455
|
`;
|
|
456
|
-
const
|
|
456
|
+
const Va = p`
|
|
457
457
|
<svg
|
|
458
458
|
xmlns="http://www.w3.org/2000/svg"
|
|
459
459
|
width="16"
|
|
@@ -528,7 +528,7 @@ const co = p`
|
|
|
528
528
|
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"
|
|
529
529
|
/>
|
|
530
530
|
</svg>
|
|
531
|
-
`,
|
|
531
|
+
`, qa = p`
|
|
532
532
|
<svg
|
|
533
533
|
xmlns="http://www.w3.org/2000/svg"
|
|
534
534
|
width="16"
|
|
@@ -627,7 +627,7 @@ class Wa extends Event {
|
|
|
627
627
|
super("logout", { bubbles: !0, composed: !0 });
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
let
|
|
630
|
+
let W = class extends h {
|
|
631
631
|
constructor() {
|
|
632
632
|
super(...arguments), this.iconSrc = "images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.menuOpen = !1, this.darkMode = localStorage.getItem("theme") === "dark", this.handleOutsideClick = (t) => {
|
|
633
633
|
if (!this.menuOpen) return;
|
|
@@ -731,7 +731,7 @@ let Q = class extends h {
|
|
|
731
731
|
`;
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
|
-
|
|
734
|
+
W.styles = [
|
|
735
735
|
h.styles,
|
|
736
736
|
z`
|
|
737
737
|
:host {
|
|
@@ -901,28 +901,28 @@ Q.styles = [
|
|
|
901
901
|
];
|
|
902
902
|
Pt([
|
|
903
903
|
b({ type: String })
|
|
904
|
-
],
|
|
904
|
+
], W.prototype, "iconSrc", 2);
|
|
905
905
|
Pt([
|
|
906
906
|
b({ type: String })
|
|
907
|
-
],
|
|
907
|
+
], W.prototype, "networkName", 2);
|
|
908
908
|
Pt([
|
|
909
909
|
b({ type: Boolean })
|
|
910
|
-
],
|
|
910
|
+
], W.prototype, "networkConnected", 2);
|
|
911
911
|
Pt([
|
|
912
|
-
|
|
913
|
-
],
|
|
912
|
+
D()
|
|
913
|
+
], W.prototype, "menuOpen", 2);
|
|
914
914
|
Pt([
|
|
915
|
-
|
|
916
|
-
],
|
|
917
|
-
|
|
915
|
+
D()
|
|
916
|
+
], W.prototype, "darkMode", 2);
|
|
917
|
+
W = Pt([
|
|
918
918
|
I("app-header")
|
|
919
|
-
],
|
|
920
|
-
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor,
|
|
919
|
+
], W);
|
|
920
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, Dt = (t, e, r, o) => {
|
|
921
921
|
for (var a = o > 1 ? void 0 : o ? ei(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
922
922
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
923
923
|
return o && a && ti(e, r, a), a;
|
|
924
924
|
};
|
|
925
|
-
let
|
|
925
|
+
let tt = class extends h {
|
|
926
926
|
constructor() {
|
|
927
927
|
super(...arguments), this.iconSrc = "/images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.currentPage = "", this.customThemeCss = null;
|
|
928
928
|
}
|
|
@@ -964,7 +964,7 @@ let W = class extends h {
|
|
|
964
964
|
`;
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
|
-
|
|
967
|
+
tt.styles = [
|
|
968
968
|
h.styles,
|
|
969
969
|
z`
|
|
970
970
|
:host {
|
|
@@ -973,30 +973,30 @@ W.styles = [
|
|
|
973
973
|
}
|
|
974
974
|
`
|
|
975
975
|
];
|
|
976
|
-
|
|
976
|
+
Dt([
|
|
977
977
|
b({ type: String })
|
|
978
|
-
],
|
|
979
|
-
|
|
978
|
+
], tt.prototype, "iconSrc", 2);
|
|
979
|
+
Dt([
|
|
980
980
|
b({ type: String })
|
|
981
|
-
],
|
|
982
|
-
|
|
981
|
+
], tt.prototype, "themeSrc", 2);
|
|
982
|
+
Dt([
|
|
983
983
|
b({ type: String })
|
|
984
|
-
],
|
|
985
|
-
|
|
984
|
+
], tt.prototype, "networkName", 2);
|
|
985
|
+
Dt([
|
|
986
986
|
b({ type: Boolean })
|
|
987
|
-
],
|
|
988
|
-
|
|
987
|
+
], tt.prototype, "networkConnected", 2);
|
|
988
|
+
Dt([
|
|
989
989
|
b({ type: String })
|
|
990
|
-
],
|
|
991
|
-
|
|
990
|
+
], tt.prototype, "currentPage", 2);
|
|
991
|
+
tt = Dt([
|
|
992
992
|
I("app-layout")
|
|
993
|
-
],
|
|
994
|
-
var ri = Object.defineProperty, oi = Object.getOwnPropertyDescriptor,
|
|
993
|
+
], tt);
|
|
994
|
+
var ri = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, Bt = (t, e, r, o) => {
|
|
995
995
|
for (var a = o > 1 ? void 0 : o ? oi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
996
996
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
997
997
|
return o && a && ri(e, r, a), a;
|
|
998
998
|
};
|
|
999
|
-
let
|
|
999
|
+
let q = class extends h {
|
|
1000
1000
|
constructor() {
|
|
1001
1001
|
super(...arguments), this.title = "", this.message = "", this.buttonText = "Okay", this.type = "error", this.closing = !1;
|
|
1002
1002
|
}
|
|
@@ -1029,7 +1029,7 @@ let V = class extends h {
|
|
|
1029
1029
|
`;
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
|
-
|
|
1032
|
+
q.styles = [
|
|
1033
1033
|
h.styles,
|
|
1034
1034
|
z`
|
|
1035
1035
|
:host {
|
|
@@ -1156,25 +1156,25 @@ V.styles = [
|
|
|
1156
1156
|
}
|
|
1157
1157
|
`
|
|
1158
1158
|
];
|
|
1159
|
-
|
|
1159
|
+
Bt([
|
|
1160
1160
|
b({ type: String })
|
|
1161
|
-
],
|
|
1162
|
-
|
|
1161
|
+
], q.prototype, "title", 2);
|
|
1162
|
+
Bt([
|
|
1163
1163
|
b({ type: String })
|
|
1164
|
-
],
|
|
1165
|
-
|
|
1164
|
+
], q.prototype, "message", 2);
|
|
1165
|
+
Bt([
|
|
1166
1166
|
b({ type: String })
|
|
1167
|
-
],
|
|
1168
|
-
|
|
1167
|
+
], q.prototype, "buttonText", 2);
|
|
1168
|
+
Bt([
|
|
1169
1169
|
b({ type: String })
|
|
1170
|
-
],
|
|
1171
|
-
|
|
1170
|
+
], q.prototype, "type", 2);
|
|
1171
|
+
Bt([
|
|
1172
1172
|
b({ type: Boolean })
|
|
1173
|
-
],
|
|
1174
|
-
|
|
1173
|
+
], q.prototype, "closing", 2);
|
|
1174
|
+
q = Bt([
|
|
1175
1175
|
I("custom-toast")
|
|
1176
|
-
],
|
|
1177
|
-
var ai = Object.defineProperty, ii = Object.getOwnPropertyDescriptor,
|
|
1176
|
+
], q);
|
|
1177
|
+
var ai = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, Ve = (t, e, r, o) => {
|
|
1178
1178
|
for (var a = o > 1 ? void 0 : o ? ii(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
1179
1179
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
1180
1180
|
return o && a && ai(e, r, a), a;
|
|
@@ -1211,7 +1211,7 @@ let zt = class extends h {
|
|
|
1211
1211
|
aria-label=${this.label}
|
|
1212
1212
|
title=${this.copied ? "Copied" : this.label}
|
|
1213
1213
|
>
|
|
1214
|
-
${
|
|
1214
|
+
${Va}
|
|
1215
1215
|
</button>
|
|
1216
1216
|
`;
|
|
1217
1217
|
}
|
|
@@ -1236,7 +1236,7 @@ zt.styles = [
|
|
|
1236
1236
|
border: none;
|
|
1237
1237
|
border-radius: var(--wg-radius-full);
|
|
1238
1238
|
background: transparent;
|
|
1239
|
-
color: var(--wg-
|
|
1239
|
+
color: var(--wg-text);
|
|
1240
1240
|
cursor: pointer;
|
|
1241
1241
|
line-height: 1;
|
|
1242
1242
|
flex: 0 0 auto;
|
|
@@ -1260,13 +1260,13 @@ zt.styles = [
|
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
.copy-btn:hover {
|
|
1263
|
-
background:
|
|
1263
|
+
background: var(--wg-icon-bg);
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
.copy-btn:focus-visible {
|
|
1267
1267
|
outline: none;
|
|
1268
|
-
background:
|
|
1269
|
-
box-shadow: 0 0 0 2px
|
|
1268
|
+
background: var(--wg-icon-bg);
|
|
1269
|
+
box-shadow: 0 0 0 2px var(--wg-border);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
.copy-btn:active {
|
|
@@ -1279,16 +1279,16 @@ zt.styles = [
|
|
|
1279
1279
|
}
|
|
1280
1280
|
`
|
|
1281
1281
|
];
|
|
1282
|
-
|
|
1282
|
+
Ve([
|
|
1283
1283
|
b({ type: String })
|
|
1284
1284
|
], zt.prototype, "value", 2);
|
|
1285
|
-
|
|
1285
|
+
Ve([
|
|
1286
1286
|
b({ type: String })
|
|
1287
1287
|
], zt.prototype, "label", 2);
|
|
1288
|
-
|
|
1289
|
-
|
|
1288
|
+
Ve([
|
|
1289
|
+
D()
|
|
1290
1290
|
], zt.prototype, "copied", 2);
|
|
1291
|
-
zt =
|
|
1291
|
+
zt = Ve([
|
|
1292
1292
|
I("wg-copy-button")
|
|
1293
1293
|
], zt);
|
|
1294
1294
|
var si = Object.defineProperty, li = Object.getOwnPropertyDescriptor, Tt = (t, e, r, o) => {
|
|
@@ -1306,7 +1306,7 @@ class ci extends Event {
|
|
|
1306
1306
|
super("error-refresh", { bubbles: !0, composed: !0 });
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
let
|
|
1309
|
+
let et = class extends h {
|
|
1310
1310
|
constructor() {
|
|
1311
1311
|
super(...arguments), this.mode = "back", this.title = "Something went wrong", this.message = "An unexpected error occurred while loading this page.", this.backHref = "/", this.performDefaultAction = !0;
|
|
1312
1312
|
}
|
|
@@ -1320,7 +1320,7 @@ let tt = class extends h {
|
|
|
1320
1320
|
return p`
|
|
1321
1321
|
<section class="error-page">
|
|
1322
1322
|
<article class="error-card" role="alert" aria-live="polite">
|
|
1323
|
-
<div class="error-icon">${
|
|
1323
|
+
<div class="error-icon">${qa}</div>
|
|
1324
1324
|
<h1>${this.title}</h1>
|
|
1325
1325
|
<p>${this.message}</p>
|
|
1326
1326
|
${this.mode === "refresh" ? p`<button
|
|
@@ -1341,7 +1341,7 @@ let tt = class extends h {
|
|
|
1341
1341
|
`;
|
|
1342
1342
|
}
|
|
1343
1343
|
};
|
|
1344
|
-
|
|
1344
|
+
et.styles = [
|
|
1345
1345
|
h.styles,
|
|
1346
1346
|
z`
|
|
1347
1347
|
:host {
|
|
@@ -1407,22 +1407,22 @@ tt.styles = [
|
|
|
1407
1407
|
];
|
|
1408
1408
|
Tt([
|
|
1409
1409
|
b({ type: String })
|
|
1410
|
-
],
|
|
1410
|
+
], et.prototype, "mode", 2);
|
|
1411
1411
|
Tt([
|
|
1412
1412
|
b({ type: String })
|
|
1413
|
-
],
|
|
1413
|
+
], et.prototype, "title", 2);
|
|
1414
1414
|
Tt([
|
|
1415
1415
|
b({ type: String })
|
|
1416
|
-
],
|
|
1416
|
+
], et.prototype, "message", 2);
|
|
1417
1417
|
Tt([
|
|
1418
1418
|
b({ type: String })
|
|
1419
|
-
],
|
|
1419
|
+
], et.prototype, "backHref", 2);
|
|
1420
1420
|
Tt([
|
|
1421
1421
|
b({ type: Boolean })
|
|
1422
|
-
],
|
|
1423
|
-
|
|
1422
|
+
], et.prototype, "performDefaultAction", 2);
|
|
1423
|
+
et = Tt([
|
|
1424
1424
|
I("wg-error-page")
|
|
1425
|
-
],
|
|
1425
|
+
], et);
|
|
1426
1426
|
var pi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, mo = (t, e, r, o) => {
|
|
1427
1427
|
for (var a = o > 1 ? void 0 : o ? bi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
1428
1428
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
@@ -1514,7 +1514,7 @@ mo([
|
|
|
1514
1514
|
Ne = mo([
|
|
1515
1515
|
I("wg-loading-state")
|
|
1516
1516
|
], Ne);
|
|
1517
|
-
var mi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor,
|
|
1517
|
+
var mi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, qe = (t, e, r, o) => {
|
|
1518
1518
|
for (var a = o > 1 ? void 0 : o ? gi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
1519
1519
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
1520
1520
|
return o && a && mi(e, r, a), a;
|
|
@@ -1622,16 +1622,16 @@ At.styles = [
|
|
|
1622
1622
|
}
|
|
1623
1623
|
`
|
|
1624
1624
|
];
|
|
1625
|
-
|
|
1625
|
+
qe([
|
|
1626
1626
|
b({ type: Number })
|
|
1627
1627
|
], At.prototype, "total", 2);
|
|
1628
|
-
|
|
1628
|
+
qe([
|
|
1629
1629
|
b({ type: Number })
|
|
1630
1630
|
], At.prototype, "pageSize", 2);
|
|
1631
|
-
|
|
1631
|
+
qe([
|
|
1632
1632
|
b({ type: Number })
|
|
1633
1633
|
], At.prototype, "page", 2);
|
|
1634
|
-
At =
|
|
1634
|
+
At = qe([
|
|
1635
1635
|
I("wg-pagination")
|
|
1636
1636
|
], At);
|
|
1637
1637
|
function go(t) {
|
|
@@ -1696,9 +1696,9 @@ const fi = go([
|
|
|
1696
1696
|
background: var(--wg-theme-surface-color);
|
|
1697
1697
|
cursor: pointer;
|
|
1698
1698
|
transition: all 0.15s ease;
|
|
1699
|
-
margin-bottom: 8px;
|
|
1700
1699
|
width: 100%;
|
|
1701
1700
|
text-align: left;
|
|
1701
|
+
margin-bottom: 8px;
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
1704
|
.wallet-card:hover {
|
|
@@ -1706,6 +1706,11 @@ const fi = go([
|
|
|
1706
1706
|
border-color: var(--wg-theme-accent-color);
|
|
1707
1707
|
}
|
|
1708
1708
|
|
|
1709
|
+
.wallet-card:focus-visible {
|
|
1710
|
+
outline: 2px solid var(--wg-theme-accent-color);
|
|
1711
|
+
outline-offset: 2px;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1709
1714
|
.wallet-card:active {
|
|
1710
1715
|
transform: scale(0.99);
|
|
1711
1716
|
}
|
|
@@ -1736,8 +1741,43 @@ const fi = go([
|
|
|
1736
1741
|
}
|
|
1737
1742
|
|
|
1738
1743
|
.wallet-name {
|
|
1744
|
+
flex: 1;
|
|
1745
|
+
min-width: 0;
|
|
1739
1746
|
font-size: 15px;
|
|
1740
1747
|
font-weight: 500;
|
|
1748
|
+
overflow: hidden;
|
|
1749
|
+
text-overflow: ellipsis;
|
|
1750
|
+
white-space: nowrap;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
.wallet-remove-btn {
|
|
1754
|
+
border: none;
|
|
1755
|
+
background: transparent;
|
|
1756
|
+
color: var(--wg-theme-text-secondary);
|
|
1757
|
+
display: inline-flex;
|
|
1758
|
+
align-items: center;
|
|
1759
|
+
justify-content: center;
|
|
1760
|
+
cursor: pointer;
|
|
1761
|
+
transition: color 0.15s ease;
|
|
1762
|
+
flex-shrink: 0;
|
|
1763
|
+
padding: 0;
|
|
1764
|
+
width: 16px;
|
|
1765
|
+
height: 16px;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.wallet-remove-btn:hover {
|
|
1769
|
+
color: var(--wg-theme-error-color);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
.wallet-remove-btn:focus-visible {
|
|
1773
|
+
outline: 2px solid var(--wg-theme-accent-color);
|
|
1774
|
+
outline-offset: 4px;
|
|
1775
|
+
border-radius: 4px;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
.wallet-remove-btn svg {
|
|
1779
|
+
width: 16px;
|
|
1780
|
+
height: 16px;
|
|
1741
1781
|
}
|
|
1742
1782
|
|
|
1743
1783
|
.custom-url-section {
|
|
@@ -1966,11 +2006,19 @@ const fi = go([
|
|
|
1966
2006
|
const r = this.loadRecentGateways().filter(
|
|
1967
2007
|
(o) => o.rpcUrl !== e.rpcUrl
|
|
1968
2008
|
);
|
|
1969
|
-
r.unshift(e), localStorage.setItem(
|
|
2009
|
+
r.unshift(e), this.recentGateways = r.slice(0, 5), localStorage.setItem(
|
|
1970
2010
|
this.RECENT_KEY,
|
|
1971
|
-
JSON.stringify(
|
|
2011
|
+
JSON.stringify(this.recentGateways)
|
|
1972
2012
|
);
|
|
1973
2013
|
}
|
|
2014
|
+
removeRecentGateway(e) {
|
|
2015
|
+
this.recentGateways = this.loadRecentGateways().filter(
|
|
2016
|
+
(r) => r.rpcUrl !== e
|
|
2017
|
+
), this.recentGateways.length === 0 ? localStorage.removeItem(this.RECENT_KEY) : localStorage.setItem(
|
|
2018
|
+
this.RECENT_KEY,
|
|
2019
|
+
JSON.stringify(this.recentGateways)
|
|
2020
|
+
), this.render();
|
|
2021
|
+
}
|
|
1974
2022
|
loadEntries() {
|
|
1975
2023
|
const e = localStorage.getItem("splice_wallet_picker_entries");
|
|
1976
2024
|
if (e)
|
|
@@ -1992,6 +2040,16 @@ const fi = go([
|
|
|
1992
2040
|
}));
|
|
1993
2041
|
return [...this.entries, ...r];
|
|
1994
2042
|
}
|
|
2043
|
+
isRemovableEntry(e) {
|
|
2044
|
+
if (e.type !== "remote" || !e.url)
|
|
2045
|
+
return !1;
|
|
2046
|
+
const r = this.entries.some(
|
|
2047
|
+
(a) => a.type === "remote" && a.url === e.url
|
|
2048
|
+
);
|
|
2049
|
+
return this.recentGateways.some(
|
|
2050
|
+
(a) => a.rpcUrl === e.url
|
|
2051
|
+
) && !r;
|
|
2052
|
+
}
|
|
1995
2053
|
// ── Actions ─────────────────────────────────────────────
|
|
1996
2054
|
selectWallet(e) {
|
|
1997
2055
|
this.selectedEntry = e, this.state = "connecting", this.render(), window.opener && window.opener.postMessage(
|
|
@@ -2034,13 +2092,29 @@ const fi = go([
|
|
|
2034
2092
|
return e.appendChild(r), e;
|
|
2035
2093
|
}
|
|
2036
2094
|
renderWalletCard(e) {
|
|
2037
|
-
const r = this.el("
|
|
2095
|
+
const r = this.el("div", "", {
|
|
2096
|
+
class: "wallet-card",
|
|
2097
|
+
role: "button",
|
|
2098
|
+
tabindex: "0",
|
|
2099
|
+
"aria-label": `Connect to ${e.name}`
|
|
2100
|
+
}), o = this.el("div", "", { class: "wallet-icon" });
|
|
2038
2101
|
if (e.icon) {
|
|
2039
2102
|
const a = this.el("img", "", { src: e.icon, alt: e.name });
|
|
2040
2103
|
o.appendChild(a);
|
|
2041
2104
|
} else
|
|
2042
2105
|
o.innerHTML = e.type === "browser" ? '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>' : '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8"/><path d="M12 17v4"/><circle cx="12" cy="10" r="2"/></svg>';
|
|
2043
|
-
|
|
2106
|
+
if (r.appendChild(o), r.appendChild(this.el("span", e.name, { class: "wallet-name" })), r.addEventListener("click", () => this.selectWallet(e)), this.isRemovableEntry(e) && e.url) {
|
|
2107
|
+
const a = this.el("button", "", {
|
|
2108
|
+
class: "wallet-remove-btn",
|
|
2109
|
+
type: "button",
|
|
2110
|
+
"aria-label": `Remove custom wallet ${e.name}`,
|
|
2111
|
+
title: `Remove custom wallet ${e.name}`
|
|
2112
|
+
});
|
|
2113
|
+
a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5m3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0z"/><path d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4zM2.5 3h11V2h-11z"/></svg>', a.addEventListener("click", (n) => {
|
|
2114
|
+
n.stopPropagation(), this.removeRecentGateway(e.url);
|
|
2115
|
+
}), r.appendChild(a);
|
|
2116
|
+
}
|
|
2117
|
+
return r;
|
|
2044
2118
|
}
|
|
2045
2119
|
renderList() {
|
|
2046
2120
|
const e = this.el("div", "", {
|
|
@@ -2186,7 +2260,7 @@ const fi = go([
|
|
|
2186
2260
|
Sr.styles = fi;
|
|
2187
2261
|
let Ze = Sr;
|
|
2188
2262
|
customElements.define("swk-wallet-picker", Ze);
|
|
2189
|
-
var hi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor,
|
|
2263
|
+
var hi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, at = (t, e, r, o) => {
|
|
2190
2264
|
for (var a = o > 1 ? void 0 : o ? vi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
2191
2265
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
2192
2266
|
return o && a && hi(e, r, a), a;
|
|
@@ -2196,7 +2270,7 @@ class wi extends Event {
|
|
|
2196
2270
|
super("form-input-change", { bubbles: !0, composed: !0 }), this.value = e;
|
|
2197
2271
|
}
|
|
2198
2272
|
}
|
|
2199
|
-
let
|
|
2273
|
+
let L = class extends h {
|
|
2200
2274
|
constructor() {
|
|
2201
2275
|
super(...arguments), this.label = "", this.value = "", this.text = "", this.required = !1, this.hideable = !1, this.hidden = !0;
|
|
2202
2276
|
}
|
|
@@ -2237,7 +2311,7 @@ let H = class extends h {
|
|
|
2237
2311
|
`;
|
|
2238
2312
|
}
|
|
2239
2313
|
};
|
|
2240
|
-
|
|
2314
|
+
L.styles = [
|
|
2241
2315
|
h.styles,
|
|
2242
2316
|
z`
|
|
2243
2317
|
.field {
|
|
@@ -2318,32 +2392,32 @@ H.styles = [
|
|
|
2318
2392
|
}
|
|
2319
2393
|
`
|
|
2320
2394
|
];
|
|
2321
|
-
|
|
2395
|
+
at([
|
|
2322
2396
|
b({ type: String })
|
|
2323
|
-
],
|
|
2324
|
-
|
|
2397
|
+
], L.prototype, "label", 2);
|
|
2398
|
+
at([
|
|
2325
2399
|
b({ type: String })
|
|
2326
|
-
],
|
|
2327
|
-
|
|
2400
|
+
], L.prototype, "value", 2);
|
|
2401
|
+
at([
|
|
2328
2402
|
b({ type: String })
|
|
2329
|
-
],
|
|
2330
|
-
|
|
2403
|
+
], L.prototype, "text", 2);
|
|
2404
|
+
at([
|
|
2331
2405
|
b({ type: Boolean })
|
|
2332
|
-
],
|
|
2333
|
-
|
|
2406
|
+
], L.prototype, "required", 2);
|
|
2407
|
+
at([
|
|
2334
2408
|
b({ type: Boolean })
|
|
2335
|
-
],
|
|
2336
|
-
|
|
2409
|
+
], L.prototype, "hideable", 2);
|
|
2410
|
+
at([
|
|
2337
2411
|
b({ type: Boolean })
|
|
2338
|
-
],
|
|
2339
|
-
|
|
2412
|
+
], L.prototype, "hidden", 2);
|
|
2413
|
+
L = at([
|
|
2340
2414
|
I("form-input")
|
|
2341
|
-
],
|
|
2342
|
-
let
|
|
2415
|
+
], L);
|
|
2416
|
+
let jr = class extends L {
|
|
2343
2417
|
};
|
|
2344
|
-
|
|
2418
|
+
jr = at([
|
|
2345
2419
|
I("wg-form-input")
|
|
2346
|
-
],
|
|
2420
|
+
], jr);
|
|
2347
2421
|
const Xt = z`
|
|
2348
2422
|
.wg-card {
|
|
2349
2423
|
background: var(--wg-surface);
|
|
@@ -2408,7 +2482,7 @@ class Op extends Event {
|
|
|
2408
2482
|
super("update", { bubbles: !0, composed: !0 });
|
|
2409
2483
|
}
|
|
2410
2484
|
}
|
|
2411
|
-
let
|
|
2485
|
+
let Gt = class extends h {
|
|
2412
2486
|
constructor() {
|
|
2413
2487
|
super(...arguments), this.idp = null, this.readonly = !1;
|
|
2414
2488
|
}
|
|
@@ -2459,7 +2533,7 @@ let Ut = class extends h {
|
|
|
2459
2533
|
</article>`;
|
|
2460
2534
|
}
|
|
2461
2535
|
};
|
|
2462
|
-
|
|
2536
|
+
Gt.styles = [
|
|
2463
2537
|
h.styles,
|
|
2464
2538
|
Xt,
|
|
2465
2539
|
z`
|
|
@@ -2537,13 +2611,13 @@ Ut.styles = [
|
|
|
2537
2611
|
];
|
|
2538
2612
|
ur([
|
|
2539
2613
|
b({ type: Object })
|
|
2540
|
-
],
|
|
2614
|
+
], Gt.prototype, "idp", 2);
|
|
2541
2615
|
ur([
|
|
2542
2616
|
b({ type: Boolean })
|
|
2543
|
-
],
|
|
2544
|
-
|
|
2617
|
+
], Gt.prototype, "readonly", 2);
|
|
2618
|
+
Gt = ur([
|
|
2545
2619
|
I("idp-card")
|
|
2546
|
-
],
|
|
2620
|
+
], Gt);
|
|
2547
2621
|
var zi = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, uo = (t) => {
|
|
2548
2622
|
throw TypeError(t);
|
|
2549
2623
|
}, J = (t, e, r, o) => {
|
|
@@ -2710,7 +2784,7 @@ let Y = class extends h {
|
|
|
2710
2784
|
</div>
|
|
2711
2785
|
</div>
|
|
2712
2786
|
|
|
2713
|
-
${this._error ? p`<div class="form-error">${this._error}</div>` :
|
|
2787
|
+
${this._error ? p`<div class="form-error">${this._error}</div>` : Z}
|
|
2714
2788
|
${t ? p`
|
|
2715
2789
|
<div class="delete-section">
|
|
2716
2790
|
<h4 class="delete-title">
|
|
@@ -2941,7 +3015,7 @@ J([
|
|
|
2941
3015
|
b({ type: Boolean })
|
|
2942
3016
|
], Y.prototype, "loading", 2);
|
|
2943
3017
|
J([
|
|
2944
|
-
|
|
3018
|
+
D()
|
|
2945
3019
|
], Y.prototype, "_error", 2);
|
|
2946
3020
|
J([
|
|
2947
3021
|
pt("#idp-id")
|
|
@@ -2995,14 +3069,14 @@ const ho = z`
|
|
|
2995
3069
|
}
|
|
2996
3070
|
}
|
|
2997
3071
|
`;
|
|
2998
|
-
var Ei = Object.defineProperty,
|
|
3072
|
+
var Ei = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, vo = (t) => {
|
|
2999
3073
|
throw TypeError(t);
|
|
3000
|
-
},
|
|
3001
|
-
for (var a = o > 1 ? void 0 : o ?
|
|
3074
|
+
}, Vt = (t, e, r, o) => {
|
|
3075
|
+
for (var a = o > 1 ? void 0 : o ? Ci(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
3002
3076
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
3003
3077
|
return o && a && Ei(e, r, a), a;
|
|
3004
3078
|
}, wo = (t, e, r) => e.has(t) || vo("Cannot " + r), Jt = (t, e, r) => (wo(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Kt = (t, e, r) => e.has(t) ? vo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Qt = (t, e, r, o) => (wo(t, e, "write to private field"), e.set(t, r), r), me, ge, ue, fe;
|
|
3005
|
-
class
|
|
3079
|
+
class ji extends Event {
|
|
3006
3080
|
constructor(e) {
|
|
3007
3081
|
super("idp-add", { bubbles: !0, composed: !0 }), this.idp = e;
|
|
3008
3082
|
}
|
|
@@ -3093,7 +3167,7 @@ let lt = class extends h {
|
|
|
3093
3167
|
<form
|
|
3094
3168
|
@submit=${(t) => {
|
|
3095
3169
|
t.preventDefault(), this.dispatchEvent(
|
|
3096
|
-
new
|
|
3170
|
+
new ji(this.modalIdp)
|
|
3097
3171
|
), this.closeModal();
|
|
3098
3172
|
}}
|
|
3099
3173
|
>
|
|
@@ -3167,19 +3241,19 @@ ge = /* @__PURE__ */ new WeakMap();
|
|
|
3167
3241
|
ue = /* @__PURE__ */ new WeakMap();
|
|
3168
3242
|
fe = /* @__PURE__ */ new WeakMap();
|
|
3169
3243
|
lt.styles = [h.styles, ho];
|
|
3170
|
-
|
|
3244
|
+
Vt([
|
|
3171
3245
|
b({ type: Array })
|
|
3172
3246
|
], lt.prototype, "idps", 1);
|
|
3173
|
-
|
|
3247
|
+
Vt([
|
|
3174
3248
|
b({ type: Boolean })
|
|
3175
3249
|
], lt.prototype, "readonly", 1);
|
|
3176
|
-
|
|
3177
|
-
|
|
3250
|
+
Vt([
|
|
3251
|
+
D()
|
|
3178
3252
|
], lt.prototype, "isModalOpen", 1);
|
|
3179
|
-
|
|
3180
|
-
|
|
3253
|
+
Vt([
|
|
3254
|
+
D()
|
|
3181
3255
|
], lt.prototype, "modalIdp", 1);
|
|
3182
|
-
lt =
|
|
3256
|
+
lt = Vt([
|
|
3183
3257
|
I("wg-idps")
|
|
3184
3258
|
], lt);
|
|
3185
3259
|
var _i = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, Fe = (t, e, r, o) => {
|
|
@@ -3228,22 +3302,22 @@ Fe([
|
|
|
3228
3302
|
St = Fe([
|
|
3229
3303
|
I("network-table")
|
|
3230
3304
|
], St);
|
|
3231
|
-
var
|
|
3232
|
-
for (var a = o > 1 ? void 0 : o ?
|
|
3305
|
+
var Di = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, qt = (t, e, r, o) => {
|
|
3306
|
+
for (var a = o > 1 ? void 0 : o ? Bi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
3233
3307
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
3234
|
-
return o && a &&
|
|
3308
|
+
return o && a && Di(e, r, a), a;
|
|
3235
3309
|
};
|
|
3236
3310
|
class Ti extends Event {
|
|
3237
3311
|
constructor(e) {
|
|
3238
3312
|
super("network-review", { bubbles: !0, composed: !0 }), this.network = e;
|
|
3239
3313
|
}
|
|
3240
3314
|
}
|
|
3241
|
-
class
|
|
3315
|
+
class Cp extends Event {
|
|
3242
3316
|
constructor(e) {
|
|
3243
3317
|
super("delete", { bubbles: !0, composed: !0 }), this.network = e;
|
|
3244
3318
|
}
|
|
3245
3319
|
}
|
|
3246
|
-
class
|
|
3320
|
+
class jp extends Event {
|
|
3247
3321
|
constructor() {
|
|
3248
3322
|
super("update", { bubbles: !0, composed: !0 });
|
|
3249
3323
|
}
|
|
@@ -3421,19 +3495,19 @@ dt.styles = [
|
|
|
3421
3495
|
}
|
|
3422
3496
|
`
|
|
3423
3497
|
];
|
|
3424
|
-
|
|
3498
|
+
qt([
|
|
3425
3499
|
b({ type: Object })
|
|
3426
3500
|
], dt.prototype, "network", 2);
|
|
3427
|
-
|
|
3501
|
+
qt([
|
|
3428
3502
|
b({ type: Boolean })
|
|
3429
3503
|
], dt.prototype, "activeSession", 2);
|
|
3430
|
-
|
|
3504
|
+
qt([
|
|
3431
3505
|
b({ type: String })
|
|
3432
3506
|
], dt.prototype, "accessToken", 2);
|
|
3433
|
-
|
|
3507
|
+
qt([
|
|
3434
3508
|
b({ type: Boolean })
|
|
3435
3509
|
], dt.prototype, "readonly", 2);
|
|
3436
|
-
dt =
|
|
3510
|
+
dt = qt([
|
|
3437
3511
|
I("network-card")
|
|
3438
3512
|
], dt);
|
|
3439
3513
|
function d(t, e, r) {
|
|
@@ -3481,7 +3555,7 @@ class xo extends Error {
|
|
|
3481
3555
|
}
|
|
3482
3556
|
}
|
|
3483
3557
|
const yo = {};
|
|
3484
|
-
function
|
|
3558
|
+
function rt(t) {
|
|
3485
3559
|
return yo;
|
|
3486
3560
|
}
|
|
3487
3561
|
function ko(t) {
|
|
@@ -3543,7 +3617,7 @@ function bt(t, e, r) {
|
|
|
3543
3617
|
configurable: !0
|
|
3544
3618
|
});
|
|
3545
3619
|
}
|
|
3546
|
-
function
|
|
3620
|
+
function it(...t) {
|
|
3547
3621
|
const e = {};
|
|
3548
3622
|
for (const r of t) {
|
|
3549
3623
|
const o = Object.getOwnPropertyDescriptors(r);
|
|
@@ -3559,7 +3633,7 @@ function Zi(t) {
|
|
|
3559
3633
|
}
|
|
3560
3634
|
const zo = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
|
|
3561
3635
|
};
|
|
3562
|
-
function
|
|
3636
|
+
function Ut(t) {
|
|
3563
3637
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
3564
3638
|
}
|
|
3565
3639
|
const Mi = Je(() => {
|
|
@@ -3573,13 +3647,13 @@ const Mi = Je(() => {
|
|
|
3573
3647
|
}
|
|
3574
3648
|
});
|
|
3575
3649
|
function It(t) {
|
|
3576
|
-
if (
|
|
3650
|
+
if (Ut(t) === !1)
|
|
3577
3651
|
return !1;
|
|
3578
3652
|
const e = t.constructor;
|
|
3579
3653
|
if (e === void 0 || typeof e != "function")
|
|
3580
3654
|
return !0;
|
|
3581
3655
|
const r = e.prototype;
|
|
3582
|
-
return !(
|
|
3656
|
+
return !(Ut(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
|
|
3583
3657
|
}
|
|
3584
3658
|
function Ao(t) {
|
|
3585
3659
|
return It(t) ? { ...t } : Array.isArray(t) ? [...t] : t;
|
|
@@ -3588,7 +3662,7 @@ const Ri = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
|
3588
3662
|
function Ot(t) {
|
|
3589
3663
|
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3590
3664
|
}
|
|
3591
|
-
function
|
|
3665
|
+
function nt(t, e, r) {
|
|
3592
3666
|
const o = new t._zod.constr(e ?? t._zod.def);
|
|
3593
3667
|
return (!e || r?.parent) && (o._zod.parent = t), o;
|
|
3594
3668
|
}
|
|
@@ -3615,11 +3689,11 @@ const Yi = {
|
|
|
3615
3689
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
3616
3690
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
3617
3691
|
};
|
|
3618
|
-
function
|
|
3692
|
+
function Gi(t, e) {
|
|
3619
3693
|
const r = t._zod.def, o = r.checks;
|
|
3620
3694
|
if (o && o.length > 0)
|
|
3621
3695
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
3622
|
-
const n =
|
|
3696
|
+
const n = it(t._zod.def, {
|
|
3623
3697
|
get shape() {
|
|
3624
3698
|
const i = {};
|
|
3625
3699
|
for (const s in e) {
|
|
@@ -3631,13 +3705,13 @@ function Ui(t, e) {
|
|
|
3631
3705
|
},
|
|
3632
3706
|
checks: []
|
|
3633
3707
|
});
|
|
3634
|
-
return
|
|
3708
|
+
return nt(t, n);
|
|
3635
3709
|
}
|
|
3636
|
-
function
|
|
3710
|
+
function Ui(t, e) {
|
|
3637
3711
|
const r = t._zod.def, o = r.checks;
|
|
3638
3712
|
if (o && o.length > 0)
|
|
3639
3713
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
3640
|
-
const n =
|
|
3714
|
+
const n = it(t._zod.def, {
|
|
3641
3715
|
get shape() {
|
|
3642
3716
|
const i = { ...t._zod.def.shape };
|
|
3643
3717
|
for (const s in e) {
|
|
@@ -3649,7 +3723,7 @@ function Gi(t, e) {
|
|
|
3649
3723
|
},
|
|
3650
3724
|
checks: []
|
|
3651
3725
|
});
|
|
3652
|
-
return
|
|
3726
|
+
return nt(t, n);
|
|
3653
3727
|
}
|
|
3654
3728
|
function Hi(t, e) {
|
|
3655
3729
|
if (!It(e))
|
|
@@ -3661,27 +3735,27 @@ function Hi(t, e) {
|
|
|
3661
3735
|
if (Object.getOwnPropertyDescriptor(n, i) !== void 0)
|
|
3662
3736
|
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
3663
3737
|
}
|
|
3664
|
-
const a =
|
|
3738
|
+
const a = it(t._zod.def, {
|
|
3665
3739
|
get shape() {
|
|
3666
3740
|
const n = { ...t._zod.def.shape, ...e };
|
|
3667
3741
|
return bt(this, "shape", n), n;
|
|
3668
3742
|
}
|
|
3669
3743
|
});
|
|
3670
|
-
return
|
|
3744
|
+
return nt(t, a);
|
|
3671
3745
|
}
|
|
3672
3746
|
function Li(t, e) {
|
|
3673
3747
|
if (!It(e))
|
|
3674
3748
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
3675
|
-
const r =
|
|
3749
|
+
const r = it(t._zod.def, {
|
|
3676
3750
|
get shape() {
|
|
3677
3751
|
const o = { ...t._zod.def.shape, ...e };
|
|
3678
3752
|
return bt(this, "shape", o), o;
|
|
3679
3753
|
}
|
|
3680
3754
|
});
|
|
3681
|
-
return
|
|
3755
|
+
return nt(t, r);
|
|
3682
3756
|
}
|
|
3683
3757
|
function Xi(t, e) {
|
|
3684
|
-
const r =
|
|
3758
|
+
const r = it(t._zod.def, {
|
|
3685
3759
|
get shape() {
|
|
3686
3760
|
const o = { ...t._zod.def.shape, ...e._zod.def.shape };
|
|
3687
3761
|
return bt(this, "shape", o), o;
|
|
@@ -3692,13 +3766,13 @@ function Xi(t, e) {
|
|
|
3692
3766
|
checks: []
|
|
3693
3767
|
// delete existing checks
|
|
3694
3768
|
});
|
|
3695
|
-
return
|
|
3769
|
+
return nt(t, r);
|
|
3696
3770
|
}
|
|
3697
|
-
function
|
|
3771
|
+
function Vi(t, e, r) {
|
|
3698
3772
|
const a = e._zod.def.checks;
|
|
3699
3773
|
if (a && a.length > 0)
|
|
3700
3774
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
3701
|
-
const i =
|
|
3775
|
+
const i = it(e._zod.def, {
|
|
3702
3776
|
get shape() {
|
|
3703
3777
|
const s = e._zod.def.shape, l = { ...s };
|
|
3704
3778
|
if (r)
|
|
@@ -3720,10 +3794,10 @@ function qi(t, e, r) {
|
|
|
3720
3794
|
},
|
|
3721
3795
|
checks: []
|
|
3722
3796
|
});
|
|
3723
|
-
return
|
|
3797
|
+
return nt(e, i);
|
|
3724
3798
|
}
|
|
3725
|
-
function
|
|
3726
|
-
const o =
|
|
3799
|
+
function qi(t, e, r) {
|
|
3800
|
+
const o = it(e._zod.def, {
|
|
3727
3801
|
get shape() {
|
|
3728
3802
|
const a = e._zod.def.shape, n = { ...a };
|
|
3729
3803
|
if (r)
|
|
@@ -3744,7 +3818,7 @@ function Vi(t, e, r) {
|
|
|
3744
3818
|
return bt(this, "shape", n), n;
|
|
3745
3819
|
}
|
|
3746
3820
|
});
|
|
3747
|
-
return
|
|
3821
|
+
return nt(e, o);
|
|
3748
3822
|
}
|
|
3749
3823
|
function xt(t, e = 0) {
|
|
3750
3824
|
if (t.aborted === !0)
|
|
@@ -3763,7 +3837,7 @@ function yt(t, e) {
|
|
|
3763
3837
|
function Wt(t) {
|
|
3764
3838
|
return typeof t == "string" ? t : t?.message;
|
|
3765
3839
|
}
|
|
3766
|
-
function
|
|
3840
|
+
function ot(t, e, r) {
|
|
3767
3841
|
const o = { ...t, path: t.path ?? [] };
|
|
3768
3842
|
if (!t.message) {
|
|
3769
3843
|
const a = Wt(t.inst?._zod.def?.error?.(t)) ?? Wt(e?.error?.(t)) ?? Wt(r.customError?.(t)) ?? Wt(r.localeError?.(t)) ?? "Invalid input";
|
|
@@ -3827,7 +3901,7 @@ const wr = (t) => (e, r, o, a) => {
|
|
|
3827
3901
|
if (i instanceof Promise)
|
|
3828
3902
|
throw new kt();
|
|
3829
3903
|
if (i.issues.length) {
|
|
3830
|
-
const s = new (a?.Err ?? t)(i.issues.map((l) =>
|
|
3904
|
+
const s = new (a?.Err ?? t)(i.issues.map((l) => ot(l, n, rt())));
|
|
3831
3905
|
throw zo(s, a?.callee), s;
|
|
3832
3906
|
}
|
|
3833
3907
|
return i.value;
|
|
@@ -3835,7 +3909,7 @@ const wr = (t) => (e, r, o, a) => {
|
|
|
3835
3909
|
const n = o ? Object.assign(o, { async: !0 }) : { async: !0 };
|
|
3836
3910
|
let i = e._zod.run({ value: r, issues: [] }, n);
|
|
3837
3911
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
3838
|
-
const s = new (a?.Err ?? t)(i.issues.map((l) =>
|
|
3912
|
+
const s = new (a?.Err ?? t)(i.issues.map((l) => ot(l, n, rt())));
|
|
3839
3913
|
throw zo(s, a?.callee), s;
|
|
3840
3914
|
}
|
|
3841
3915
|
return i.value;
|
|
@@ -3845,14 +3919,14 @@ const wr = (t) => (e, r, o, a) => {
|
|
|
3845
3919
|
throw new kt();
|
|
3846
3920
|
return n.issues.length ? {
|
|
3847
3921
|
success: !1,
|
|
3848
|
-
error: new (t ?? Io)(n.issues.map((i) =>
|
|
3922
|
+
error: new (t ?? Io)(n.issues.map((i) => ot(i, a, rt())))
|
|
3849
3923
|
} : { success: !0, data: n.value };
|
|
3850
3924
|
}, Ki = /* @__PURE__ */ Ke(Oo), Qe = (t) => async (e, r, o) => {
|
|
3851
3925
|
const a = o ? Object.assign(o, { async: !0 }) : { async: !0 };
|
|
3852
3926
|
let n = e._zod.run({ value: r, issues: [] }, a);
|
|
3853
3927
|
return n instanceof Promise && (n = await n), n.issues.length ? {
|
|
3854
3928
|
success: !1,
|
|
3855
|
-
error: new t(n.issues.map((i) =>
|
|
3929
|
+
error: new t(n.issues.map((i) => ot(i, a, rt())))
|
|
3856
3930
|
} : { success: !0, data: n.value };
|
|
3857
3931
|
}, Qi = /* @__PURE__ */ Qe(Oo), Wi = (t) => (e, r, o) => {
|
|
3858
3932
|
const a = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
|
|
@@ -3866,36 +3940,36 @@ const wr = (t) => (e, r, o, a) => {
|
|
|
3866
3940
|
}, an = (t) => (e, r, o) => Ke(t)(e, r, o), nn = (t) => async (e, r, o) => {
|
|
3867
3941
|
const a = o ? Object.assign(o, { direction: "backward" }) : { direction: "backward" };
|
|
3868
3942
|
return Qe(t)(e, r, a);
|
|
3869
|
-
}, sn = (t) => async (e, r, o) => Qe(t)(e, r, o), ln = /^[cC][^\s-]{8,}$/, dn = /^[0-9a-z]+$/, cn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, pn = /^[0-9a-vA-V]{20}$/, bn = /^[A-Za-z0-9]{27}$/, mn = /^[a-zA-Z0-9_-]{21}$/, gn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, un = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,
|
|
3943
|
+
}, sn = (t) => async (e, r, o) => Qe(t)(e, r, o), ln = /^[cC][^\s-]{8,}$/, dn = /^[0-9a-z]+$/, cn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, pn = /^[0-9a-vA-V]{20}$/, bn = /^[A-Za-z0-9]{27}$/, mn = /^[a-zA-Z0-9_-]{21}$/, gn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, un = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Dr = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, fn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, hn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
3870
3944
|
function vn() {
|
|
3871
3945
|
return new RegExp(hn, "u");
|
|
3872
3946
|
}
|
|
3873
|
-
const wn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, xn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, yn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, kn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, zn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Eo = /^[A-Za-z0-9_-]*$/, An = /^\+[1-9]\d{6,14}$/,
|
|
3874
|
-
function
|
|
3947
|
+
const wn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, xn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, yn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, kn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, zn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Eo = /^[A-Za-z0-9_-]*$/, An = /^\+[1-9]\d{6,14}$/, Co = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Sn = /* @__PURE__ */ new RegExp(`^${Co}$`);
|
|
3948
|
+
function jo(t) {
|
|
3875
3949
|
const e = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
3876
3950
|
return typeof t.precision == "number" ? t.precision === -1 ? `${e}` : t.precision === 0 ? `${e}:[0-5]\\d` : `${e}:[0-5]\\d\\.\\d{${t.precision}}` : `${e}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
3877
3951
|
}
|
|
3878
3952
|
function In(t) {
|
|
3879
|
-
return new RegExp(`^${
|
|
3953
|
+
return new RegExp(`^${jo(t)}$`);
|
|
3880
3954
|
}
|
|
3881
3955
|
function On(t) {
|
|
3882
|
-
const e =
|
|
3956
|
+
const e = jo({ precision: t.precision }), r = ["Z"];
|
|
3883
3957
|
t.local && r.push(""), t.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
3884
3958
|
const o = `${e}(?:${r.join("|")})`;
|
|
3885
|
-
return new RegExp(`^${
|
|
3959
|
+
return new RegExp(`^${Co}T(?:${o})$`);
|
|
3886
3960
|
}
|
|
3887
3961
|
const En = (t) => {
|
|
3888
3962
|
const e = t ? `[\\s\\S]{${t?.minimum ?? 0},${t?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
3889
3963
|
return new RegExp(`^${e}$`);
|
|
3890
|
-
},
|
|
3964
|
+
}, Cn = /^-?\d+$/, _o = /^-?\d+(?:\.\d+)?$/, jn = /^(?:true|false)$/i, _n = /^null$/i, Pn = /^undefined$/i, Dn = /^[^A-Z]*$/, Bn = /^[^a-z]*$/, M = /* @__PURE__ */ d("$ZodCheck", (t, e) => {
|
|
3891
3965
|
var r;
|
|
3892
3966
|
t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
|
|
3893
3967
|
}), Po = {
|
|
3894
3968
|
number: "number",
|
|
3895
3969
|
bigint: "bigint",
|
|
3896
3970
|
object: "date"
|
|
3897
|
-
},
|
|
3898
|
-
|
|
3971
|
+
}, Do = /* @__PURE__ */ d("$ZodCheckLessThan", (t, e) => {
|
|
3972
|
+
M.init(t, e);
|
|
3899
3973
|
const r = Po[typeof e.value];
|
|
3900
3974
|
t._zod.onattach.push((o) => {
|
|
3901
3975
|
const a = o._zod.bag, n = (e.inclusive ? a.maximum : a.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
@@ -3911,8 +3985,8 @@ const En = (t) => {
|
|
|
3911
3985
|
continue: !e.abort
|
|
3912
3986
|
});
|
|
3913
3987
|
};
|
|
3914
|
-
}),
|
|
3915
|
-
|
|
3988
|
+
}), Bo = /* @__PURE__ */ d("$ZodCheckGreaterThan", (t, e) => {
|
|
3989
|
+
M.init(t, e);
|
|
3916
3990
|
const r = Po[typeof e.value];
|
|
3917
3991
|
t._zod.onattach.push((o) => {
|
|
3918
3992
|
const a = o._zod.bag, n = (e.inclusive ? a.minimum : a.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
@@ -3929,7 +4003,7 @@ const En = (t) => {
|
|
|
3929
4003
|
});
|
|
3930
4004
|
};
|
|
3931
4005
|
}), Tn = /* @__PURE__ */ d("$ZodCheckMultipleOf", (t, e) => {
|
|
3932
|
-
|
|
4006
|
+
M.init(t, e), t._zod.onattach.push((r) => {
|
|
3933
4007
|
var o;
|
|
3934
4008
|
(o = r._zod.bag).multipleOf ?? (o.multipleOf = e.value);
|
|
3935
4009
|
}), t._zod.check = (r) => {
|
|
@@ -3945,11 +4019,11 @@ const En = (t) => {
|
|
|
3945
4019
|
});
|
|
3946
4020
|
};
|
|
3947
4021
|
}), Nn = /* @__PURE__ */ d("$ZodCheckNumberFormat", (t, e) => {
|
|
3948
|
-
|
|
4022
|
+
M.init(t, e), e.format = e.format || "float64";
|
|
3949
4023
|
const r = e.format?.includes("int"), o = r ? "int" : "number", [a, n] = Yi[e.format];
|
|
3950
4024
|
t._zod.onattach.push((i) => {
|
|
3951
4025
|
const s = i._zod.bag;
|
|
3952
|
-
s.format = e.format, s.minimum = a, s.maximum = n, r && (s.pattern =
|
|
4026
|
+
s.format = e.format, s.minimum = a, s.maximum = n, r && (s.pattern = Cn);
|
|
3953
4027
|
}), t._zod.check = (i) => {
|
|
3954
4028
|
const s = i.value;
|
|
3955
4029
|
if (r) {
|
|
@@ -4007,7 +4081,7 @@ const En = (t) => {
|
|
|
4007
4081
|
};
|
|
4008
4082
|
}), Zn = /* @__PURE__ */ d("$ZodCheckMaxLength", (t, e) => {
|
|
4009
4083
|
var r;
|
|
4010
|
-
|
|
4084
|
+
M.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
|
|
4011
4085
|
const a = o.value;
|
|
4012
4086
|
return !fr(a) && a.length !== void 0;
|
|
4013
4087
|
}), t._zod.onattach.push((o) => {
|
|
@@ -4030,7 +4104,7 @@ const En = (t) => {
|
|
|
4030
4104
|
};
|
|
4031
4105
|
}), Mn = /* @__PURE__ */ d("$ZodCheckMinLength", (t, e) => {
|
|
4032
4106
|
var r;
|
|
4033
|
-
|
|
4107
|
+
M.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
|
|
4034
4108
|
const a = o.value;
|
|
4035
4109
|
return !fr(a) && a.length !== void 0;
|
|
4036
4110
|
}), t._zod.onattach.push((o) => {
|
|
@@ -4053,7 +4127,7 @@ const En = (t) => {
|
|
|
4053
4127
|
};
|
|
4054
4128
|
}), Rn = /* @__PURE__ */ d("$ZodCheckLengthEquals", (t, e) => {
|
|
4055
4129
|
var r;
|
|
4056
|
-
|
|
4130
|
+
M.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
|
|
4057
4131
|
const a = o.value;
|
|
4058
4132
|
return !fr(a) && a.length !== void 0;
|
|
4059
4133
|
}), t._zod.onattach.push((o) => {
|
|
@@ -4076,7 +4150,7 @@ const En = (t) => {
|
|
|
4076
4150
|
};
|
|
4077
4151
|
}), We = /* @__PURE__ */ d("$ZodCheckStringFormat", (t, e) => {
|
|
4078
4152
|
var r, o;
|
|
4079
|
-
|
|
4153
|
+
M.init(t, e), t._zod.onattach.push((a) => {
|
|
4080
4154
|
const n = a._zod.bag;
|
|
4081
4155
|
n.format = e.format, e.pattern && (n.patterns ?? (n.patterns = /* @__PURE__ */ new Set()), n.patterns.add(e.pattern));
|
|
4082
4156
|
}), e.pattern ? (r = t._zod).check ?? (r.check = (a) => {
|
|
@@ -4104,11 +4178,11 @@ const En = (t) => {
|
|
|
4104
4178
|
});
|
|
4105
4179
|
};
|
|
4106
4180
|
}), Yn = /* @__PURE__ */ d("$ZodCheckLowerCase", (t, e) => {
|
|
4107
|
-
e.pattern ?? (e.pattern = Bn), We.init(t, e);
|
|
4108
|
-
}), Un = /* @__PURE__ */ d("$ZodCheckUpperCase", (t, e) => {
|
|
4109
4181
|
e.pattern ?? (e.pattern = Dn), We.init(t, e);
|
|
4110
|
-
}), Gn = /* @__PURE__ */ d("$
|
|
4111
|
-
|
|
4182
|
+
}), Gn = /* @__PURE__ */ d("$ZodCheckUpperCase", (t, e) => {
|
|
4183
|
+
e.pattern ?? (e.pattern = Bn), We.init(t, e);
|
|
4184
|
+
}), Un = /* @__PURE__ */ d("$ZodCheckIncludes", (t, e) => {
|
|
4185
|
+
M.init(t, e);
|
|
4112
4186
|
const r = Ot(e.includes), o = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
|
|
4113
4187
|
e.pattern = o, t._zod.onattach.push((a) => {
|
|
4114
4188
|
const n = a._zod.bag;
|
|
@@ -4125,7 +4199,7 @@ const En = (t) => {
|
|
|
4125
4199
|
});
|
|
4126
4200
|
};
|
|
4127
4201
|
}), Hn = /* @__PURE__ */ d("$ZodCheckStartsWith", (t, e) => {
|
|
4128
|
-
|
|
4202
|
+
M.init(t, e);
|
|
4129
4203
|
const r = new RegExp(`^${Ot(e.prefix)}.*`);
|
|
4130
4204
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((o) => {
|
|
4131
4205
|
const a = o._zod.bag;
|
|
@@ -4142,7 +4216,7 @@ const En = (t) => {
|
|
|
4142
4216
|
});
|
|
4143
4217
|
};
|
|
4144
4218
|
}), Ln = /* @__PURE__ */ d("$ZodCheckEndsWith", (t, e) => {
|
|
4145
|
-
|
|
4219
|
+
M.init(t, e);
|
|
4146
4220
|
const r = new RegExp(`.*${Ot(e.suffix)}$`);
|
|
4147
4221
|
e.pattern ?? (e.pattern = r), t._zod.onattach.push((o) => {
|
|
4148
4222
|
const a = o._zod.bag;
|
|
@@ -4159,11 +4233,11 @@ const En = (t) => {
|
|
|
4159
4233
|
});
|
|
4160
4234
|
};
|
|
4161
4235
|
}), Xn = /* @__PURE__ */ d("$ZodCheckOverwrite", (t, e) => {
|
|
4162
|
-
|
|
4236
|
+
M.init(t, e), t._zod.check = (r) => {
|
|
4163
4237
|
r.value = e.tx(r.value);
|
|
4164
4238
|
};
|
|
4165
4239
|
});
|
|
4166
|
-
class
|
|
4240
|
+
class Vn {
|
|
4167
4241
|
constructor(e = []) {
|
|
4168
4242
|
this.content = [], this.indent = 0, this && (this.args = e);
|
|
4169
4243
|
}
|
|
@@ -4186,13 +4260,13 @@ class qn {
|
|
|
4186
4260
|
`));
|
|
4187
4261
|
}
|
|
4188
4262
|
}
|
|
4189
|
-
const
|
|
4263
|
+
const qn = {
|
|
4190
4264
|
major: 4,
|
|
4191
4265
|
minor: 3,
|
|
4192
4266
|
patch: 6
|
|
4193
4267
|
}, A = /* @__PURE__ */ d("$ZodType", (t, e) => {
|
|
4194
4268
|
var r;
|
|
4195
|
-
t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version =
|
|
4269
|
+
t ?? (t = {}), t._zod.def = e, t._zod.bag = t._zod.bag || {}, t._zod.version = qn;
|
|
4196
4270
|
const o = [...t._zod.def.checks ?? []];
|
|
4197
4271
|
t._zod.traits.has("$ZodCheck") && o.unshift(t);
|
|
4198
4272
|
for (const a of o)
|
|
@@ -4296,9 +4370,9 @@ const Vn = {
|
|
|
4296
4370
|
}[e.version];
|
|
4297
4371
|
if (o === void 0)
|
|
4298
4372
|
throw new Error(`Invalid UUID version: "${e.version}"`);
|
|
4299
|
-
e.pattern ?? (e.pattern =
|
|
4373
|
+
e.pattern ?? (e.pattern = Dr(o));
|
|
4300
4374
|
} else
|
|
4301
|
-
e.pattern ?? (e.pattern =
|
|
4375
|
+
e.pattern ?? (e.pattern = Dr());
|
|
4302
4376
|
O.init(t, e);
|
|
4303
4377
|
}), Kn = /* @__PURE__ */ d("$ZodEmail", (t, e) => {
|
|
4304
4378
|
e.pattern ?? (e.pattern = fn), O.init(t, e);
|
|
@@ -4487,7 +4561,7 @@ const ws = /* @__PURE__ */ d("$ZodJWT", (t, e) => {
|
|
|
4487
4561
|
}), xs = /* @__PURE__ */ d("$ZodNumberFormat", (t, e) => {
|
|
4488
4562
|
Nn.init(t, e), No.init(t, e);
|
|
4489
4563
|
}), ys = /* @__PURE__ */ d("$ZodBoolean", (t, e) => {
|
|
4490
|
-
A.init(t, e), t._zod.pattern =
|
|
4564
|
+
A.init(t, e), t._zod.pattern = jn, t._zod.parse = (r, o) => {
|
|
4491
4565
|
if (e.coerce)
|
|
4492
4566
|
try {
|
|
4493
4567
|
r.value = !!r.value;
|
|
@@ -4531,7 +4605,7 @@ const ws = /* @__PURE__ */ d("$ZodJWT", (t, e) => {
|
|
|
4531
4605
|
inst: t
|
|
4532
4606
|
}), r);
|
|
4533
4607
|
});
|
|
4534
|
-
function
|
|
4608
|
+
function Br(t, e, r) {
|
|
4535
4609
|
t.issues.length && e.issues.push(...yt(r, t.issues)), e.value[r] = t.value;
|
|
4536
4610
|
}
|
|
4537
4611
|
const Is = /* @__PURE__ */ d("$ZodArray", (t, e) => {
|
|
@@ -4551,7 +4625,7 @@ const Is = /* @__PURE__ */ d("$ZodArray", (t, e) => {
|
|
|
4551
4625
|
value: s,
|
|
4552
4626
|
issues: []
|
|
4553
4627
|
}, o);
|
|
4554
|
-
l instanceof Promise ? n.push(l.then((c) =>
|
|
4628
|
+
l instanceof Promise ? n.push(l.then((c) => Br(c, r, i))) : Br(l, r, i);
|
|
4555
4629
|
}
|
|
4556
4630
|
return n.length ? Promise.all(n).then(() => r) : r;
|
|
4557
4631
|
};
|
|
@@ -4622,7 +4696,7 @@ const Os = /* @__PURE__ */ d("$ZodObject", (t, e) => {
|
|
|
4622
4696
|
}
|
|
4623
4697
|
return l;
|
|
4624
4698
|
});
|
|
4625
|
-
const a =
|
|
4699
|
+
const a = Ut, n = e.catchall;
|
|
4626
4700
|
let i;
|
|
4627
4701
|
t._zod.parse = (s, l) => {
|
|
4628
4702
|
i ?? (i = o.value);
|
|
@@ -4645,60 +4719,60 @@ const Os = /* @__PURE__ */ d("$ZodObject", (t, e) => {
|
|
|
4645
4719
|
}), Es = /* @__PURE__ */ d("$ZodObjectJIT", (t, e) => {
|
|
4646
4720
|
Os.init(t, e);
|
|
4647
4721
|
const r = t._zod.parse, o = Je(() => Zo(e)), a = (v) => {
|
|
4648
|
-
const w = new
|
|
4649
|
-
const
|
|
4650
|
-
return `shape[${
|
|
4722
|
+
const w = new Vn(["shape", "payload", "ctx"]), k = o.value, _ = (H) => {
|
|
4723
|
+
const N = Pr(H);
|
|
4724
|
+
return `shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`;
|
|
4651
4725
|
};
|
|
4652
4726
|
w.write("const input = payload.value;");
|
|
4653
4727
|
const Ft = /* @__PURE__ */ Object.create(null);
|
|
4654
4728
|
let xa = 0;
|
|
4655
|
-
for (const
|
|
4656
|
-
Ft[
|
|
4729
|
+
for (const H of k.keys)
|
|
4730
|
+
Ft[H] = `key_${xa++}`;
|
|
4657
4731
|
w.write("const newResult = {};");
|
|
4658
|
-
for (const
|
|
4659
|
-
const
|
|
4660
|
-
w.write(`const ${
|
|
4661
|
-
if (${
|
|
4732
|
+
for (const H of k.keys) {
|
|
4733
|
+
const N = Ft[H], $ = Pr(H), ka = v[H]?._zod?.optout === "optional";
|
|
4734
|
+
w.write(`const ${N} = ${_(H)};`), ka ? w.write(`
|
|
4735
|
+
if (${N}.issues.length) {
|
|
4662
4736
|
if (${$} in input) {
|
|
4663
|
-
payload.issues = payload.issues.concat(${
|
|
4737
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
4664
4738
|
...iss,
|
|
4665
4739
|
path: iss.path ? [${$}, ...iss.path] : [${$}]
|
|
4666
4740
|
})));
|
|
4667
4741
|
}
|
|
4668
4742
|
}
|
|
4669
4743
|
|
|
4670
|
-
if (${
|
|
4744
|
+
if (${N}.value === undefined) {
|
|
4671
4745
|
if (${$} in input) {
|
|
4672
4746
|
newResult[${$}] = undefined;
|
|
4673
4747
|
}
|
|
4674
4748
|
} else {
|
|
4675
|
-
newResult[${$}] = ${
|
|
4749
|
+
newResult[${$}] = ${N}.value;
|
|
4676
4750
|
}
|
|
4677
4751
|
|
|
4678
4752
|
`) : w.write(`
|
|
4679
|
-
if (${
|
|
4680
|
-
payload.issues = payload.issues.concat(${
|
|
4753
|
+
if (${N}.issues.length) {
|
|
4754
|
+
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
4681
4755
|
...iss,
|
|
4682
4756
|
path: iss.path ? [${$}, ...iss.path] : [${$}]
|
|
4683
4757
|
})));
|
|
4684
4758
|
}
|
|
4685
4759
|
|
|
4686
|
-
if (${
|
|
4760
|
+
if (${N}.value === undefined) {
|
|
4687
4761
|
if (${$} in input) {
|
|
4688
4762
|
newResult[${$}] = undefined;
|
|
4689
4763
|
}
|
|
4690
4764
|
} else {
|
|
4691
|
-
newResult[${$}] = ${
|
|
4765
|
+
newResult[${$}] = ${N}.value;
|
|
4692
4766
|
}
|
|
4693
4767
|
|
|
4694
4768
|
`);
|
|
4695
4769
|
}
|
|
4696
4770
|
w.write("payload.value = newResult;"), w.write("return payload;");
|
|
4697
4771
|
const ya = w.compile();
|
|
4698
|
-
return (
|
|
4772
|
+
return (H, N) => ya(v, H, N);
|
|
4699
4773
|
};
|
|
4700
4774
|
let n;
|
|
4701
|
-
const i =
|
|
4775
|
+
const i = Ut, s = !yo.jitless, c = s && Mi.value, m = e.catchall;
|
|
4702
4776
|
let g;
|
|
4703
4777
|
t._zod.parse = (v, w) => {
|
|
4704
4778
|
g ?? (g = o.value);
|
|
@@ -4720,7 +4794,7 @@ function Tr(t, e, r, o) {
|
|
|
4720
4794
|
code: "invalid_union",
|
|
4721
4795
|
input: e.value,
|
|
4722
4796
|
inst: r,
|
|
4723
|
-
errors: t.map((n) => n.issues.map((i) =>
|
|
4797
|
+
errors: t.map((n) => n.issues.map((i) => ot(i, o, rt())))
|
|
4724
4798
|
}), e);
|
|
4725
4799
|
}
|
|
4726
4800
|
const Ro = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
|
|
@@ -4754,7 +4828,7 @@ const Ro = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
|
|
|
4754
4828
|
}
|
|
4755
4829
|
return i ? Promise.all(s).then((l) => Tr(l, a, t, n)) : Tr(s, a, t, n);
|
|
4756
4830
|
};
|
|
4757
|
-
}),
|
|
4831
|
+
}), Cs = /* @__PURE__ */ d("$ZodDiscriminatedUnion", (t, e) => {
|
|
4758
4832
|
e.inclusive = !1, Ro.init(t, e);
|
|
4759
4833
|
const r = t._zod.parse;
|
|
4760
4834
|
x(t._zod, "propValues", () => {
|
|
@@ -4787,7 +4861,7 @@ const Ro = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
|
|
|
4787
4861
|
});
|
|
4788
4862
|
t._zod.parse = (a, n) => {
|
|
4789
4863
|
const i = a.value;
|
|
4790
|
-
if (!
|
|
4864
|
+
if (!Ut(i))
|
|
4791
4865
|
return a.issues.push({
|
|
4792
4866
|
code: "invalid_type",
|
|
4793
4867
|
expected: "object",
|
|
@@ -4805,7 +4879,7 @@ const Ro = /* @__PURE__ */ d("$ZodUnion", (t, e) => {
|
|
|
4805
4879
|
inst: t
|
|
4806
4880
|
}), a);
|
|
4807
4881
|
};
|
|
4808
|
-
}),
|
|
4882
|
+
}), js = /* @__PURE__ */ d("$ZodIntersection", (t, e) => {
|
|
4809
4883
|
A.init(t, e), t._zod.parse = (r, o) => {
|
|
4810
4884
|
const a = r.value, n = e.left._zod.run({ value: a, issues: [] }, o), i = e.right._zod.run({ value: a, issues: [] }, o);
|
|
4811
4885
|
return n instanceof Promise || i instanceof Promise ? Promise.all([n, i]).then(([l, c]) => Nr(r, l, c)) : Nr(r, n, i);
|
|
@@ -4919,7 +4993,7 @@ const _s = /* @__PURE__ */ d("$ZodRecord", (t, e) => {
|
|
|
4919
4993
|
e.mode === "loose" ? r.value[s] = a[s] : r.issues.push({
|
|
4920
4994
|
code: "invalid_key",
|
|
4921
4995
|
origin: "record",
|
|
4922
|
-
issues: l.issues.map((g) =>
|
|
4996
|
+
issues: l.issues.map((g) => ot(g, o, rt())),
|
|
4923
4997
|
input: s,
|
|
4924
4998
|
path: [s],
|
|
4925
4999
|
inst: t
|
|
@@ -4946,7 +5020,7 @@ const _s = /* @__PURE__ */ d("$ZodRecord", (t, e) => {
|
|
|
4946
5020
|
inst: t
|
|
4947
5021
|
}), a;
|
|
4948
5022
|
};
|
|
4949
|
-
}),
|
|
5023
|
+
}), Ds = /* @__PURE__ */ d("$ZodLiteral", (t, e) => {
|
|
4950
5024
|
if (A.init(t, e), e.values.length === 0)
|
|
4951
5025
|
throw new Error("Cannot create literal schema with no valid values");
|
|
4952
5026
|
const r = new Set(e.values);
|
|
@@ -4959,7 +5033,7 @@ const _s = /* @__PURE__ */ d("$ZodRecord", (t, e) => {
|
|
|
4959
5033
|
inst: t
|
|
4960
5034
|
}), o;
|
|
4961
5035
|
};
|
|
4962
|
-
}),
|
|
5036
|
+
}), Bs = /* @__PURE__ */ d("$ZodTransform", (t, e) => {
|
|
4963
5037
|
A.init(t, e), t._zod.parse = (r, o) => {
|
|
4964
5038
|
if (o.direction === "backward")
|
|
4965
5039
|
throw new xo(t.constructor.name);
|
|
@@ -5032,13 +5106,13 @@ const $s = /* @__PURE__ */ d("$ZodCatch", (t, e) => {
|
|
|
5032
5106
|
return a instanceof Promise ? a.then((n) => (r.value = n.value, n.issues.length && (r.value = e.catchValue({
|
|
5033
5107
|
...r,
|
|
5034
5108
|
error: {
|
|
5035
|
-
issues: n.issues.map((i) =>
|
|
5109
|
+
issues: n.issues.map((i) => ot(i, o, rt()))
|
|
5036
5110
|
},
|
|
5037
5111
|
input: r.value
|
|
5038
5112
|
}), r.issues = []), r)) : (r.value = a.value, a.issues.length && (r.value = e.catchValue({
|
|
5039
5113
|
...r,
|
|
5040
5114
|
error: {
|
|
5041
|
-
issues: a.issues.map((n) =>
|
|
5115
|
+
issues: a.issues.map((n) => ot(n, o, rt()))
|
|
5042
5116
|
},
|
|
5043
5117
|
input: r.value
|
|
5044
5118
|
}), r.issues = []), r);
|
|
@@ -5056,7 +5130,7 @@ const $s = /* @__PURE__ */ d("$ZodCatch", (t, e) => {
|
|
|
5056
5130
|
function te(t, e, r) {
|
|
5057
5131
|
return t.issues.length ? (t.aborted = !0, t) : e._zod.run({ value: t.value, issues: t.issues }, r);
|
|
5058
5132
|
}
|
|
5059
|
-
const
|
|
5133
|
+
const Gs = /* @__PURE__ */ d("$ZodReadonly", (t, e) => {
|
|
5060
5134
|
A.init(t, e), x(t._zod, "propValues", () => e.innerType._zod.propValues), x(t._zod, "values", () => e.innerType._zod.values), x(t._zod, "optin", () => e.innerType?._zod?.optin), x(t._zod, "optout", () => e.innerType?._zod?.optout), t._zod.parse = (r, o) => {
|
|
5061
5135
|
if (o.direction === "backward")
|
|
5062
5136
|
return e.innerType._zod.run(r, o);
|
|
@@ -5067,8 +5141,8 @@ const Us = /* @__PURE__ */ d("$ZodReadonly", (t, e) => {
|
|
|
5067
5141
|
function $r(t) {
|
|
5068
5142
|
return t.value = Object.freeze(t.value), t;
|
|
5069
5143
|
}
|
|
5070
|
-
const
|
|
5071
|
-
|
|
5144
|
+
const Us = /* @__PURE__ */ d("$ZodCustom", (t, e) => {
|
|
5145
|
+
M.init(t, e), A.init(t, e), t._zod.parse = (r, o) => r, t._zod.check = (r) => {
|
|
5072
5146
|
const o = r.value, a = e.fn(o);
|
|
5073
5147
|
if (a instanceof Promise)
|
|
5074
5148
|
return a.then((n) => Yr(n, r, o, t));
|
|
@@ -5090,7 +5164,7 @@ function Yr(t, e, r, o) {
|
|
|
5090
5164
|
o._zod.def.params && (a.params = o._zod.def.params), e.issues.push(Ht(a));
|
|
5091
5165
|
}
|
|
5092
5166
|
}
|
|
5093
|
-
var
|
|
5167
|
+
var Gr;
|
|
5094
5168
|
class Hs {
|
|
5095
5169
|
constructor() {
|
|
5096
5170
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -5123,7 +5197,7 @@ class Hs {
|
|
|
5123
5197
|
function Ls() {
|
|
5124
5198
|
return new Hs();
|
|
5125
5199
|
}
|
|
5126
|
-
(
|
|
5200
|
+
(Gr = globalThis).__zod_globalRegistry ?? (Gr.__zod_globalRegistry = Ls());
|
|
5127
5201
|
const Rt = globalThis.__zod_globalRegistry;
|
|
5128
5202
|
// @__NO_SIDE_EFFECTS__
|
|
5129
5203
|
function Xs(t, e) {
|
|
@@ -5133,7 +5207,7 @@ function Xs(t, e) {
|
|
|
5133
5207
|
});
|
|
5134
5208
|
}
|
|
5135
5209
|
// @__NO_SIDE_EFFECTS__
|
|
5136
|
-
function
|
|
5210
|
+
function Vs(t, e) {
|
|
5137
5211
|
return new t({
|
|
5138
5212
|
type: "string",
|
|
5139
5213
|
format: "email",
|
|
@@ -5143,7 +5217,7 @@ function qs(t, e) {
|
|
|
5143
5217
|
});
|
|
5144
5218
|
}
|
|
5145
5219
|
// @__NO_SIDE_EFFECTS__
|
|
5146
|
-
function
|
|
5220
|
+
function Ur(t, e) {
|
|
5147
5221
|
return new t({
|
|
5148
5222
|
type: "string",
|
|
5149
5223
|
format: "guid",
|
|
@@ -5153,7 +5227,7 @@ function Gr(t, e) {
|
|
|
5153
5227
|
});
|
|
5154
5228
|
}
|
|
5155
5229
|
// @__NO_SIDE_EFFECTS__
|
|
5156
|
-
function
|
|
5230
|
+
function qs(t, e) {
|
|
5157
5231
|
return new t({
|
|
5158
5232
|
type: "string",
|
|
5159
5233
|
format: "uuid",
|
|
@@ -5449,7 +5523,7 @@ function Al(t, e) {
|
|
|
5449
5523
|
}
|
|
5450
5524
|
// @__NO_SIDE_EFFECTS__
|
|
5451
5525
|
function Hr(t, e) {
|
|
5452
|
-
return new
|
|
5526
|
+
return new Do({
|
|
5453
5527
|
check: "less_than",
|
|
5454
5528
|
...u(e),
|
|
5455
5529
|
value: t,
|
|
@@ -5458,7 +5532,7 @@ function Hr(t, e) {
|
|
|
5458
5532
|
}
|
|
5459
5533
|
// @__NO_SIDE_EFFECTS__
|
|
5460
5534
|
function or(t, e) {
|
|
5461
|
-
return new
|
|
5535
|
+
return new Do({
|
|
5462
5536
|
check: "less_than",
|
|
5463
5537
|
...u(e),
|
|
5464
5538
|
value: t,
|
|
@@ -5467,7 +5541,7 @@ function or(t, e) {
|
|
|
5467
5541
|
}
|
|
5468
5542
|
// @__NO_SIDE_EFFECTS__
|
|
5469
5543
|
function Lr(t, e) {
|
|
5470
|
-
return new
|
|
5544
|
+
return new Bo({
|
|
5471
5545
|
check: "greater_than",
|
|
5472
5546
|
...u(e),
|
|
5473
5547
|
value: t,
|
|
@@ -5476,7 +5550,7 @@ function Lr(t, e) {
|
|
|
5476
5550
|
}
|
|
5477
5551
|
// @__NO_SIDE_EFFECTS__
|
|
5478
5552
|
function ar(t, e) {
|
|
5479
|
-
return new
|
|
5553
|
+
return new Bo({
|
|
5480
5554
|
check: "greater_than",
|
|
5481
5555
|
...u(e),
|
|
5482
5556
|
value: t,
|
|
@@ -5508,7 +5582,7 @@ function Re(t, e) {
|
|
|
5508
5582
|
});
|
|
5509
5583
|
}
|
|
5510
5584
|
// @__NO_SIDE_EFFECTS__
|
|
5511
|
-
function
|
|
5585
|
+
function Go(t, e) {
|
|
5512
5586
|
return new Rn({
|
|
5513
5587
|
check: "length_equals",
|
|
5514
5588
|
...u(e),
|
|
@@ -5534,7 +5608,7 @@ function Il(t) {
|
|
|
5534
5608
|
}
|
|
5535
5609
|
// @__NO_SIDE_EFFECTS__
|
|
5536
5610
|
function Ol(t) {
|
|
5537
|
-
return new
|
|
5611
|
+
return new Gn({
|
|
5538
5612
|
check: "string_format",
|
|
5539
5613
|
format: "uppercase",
|
|
5540
5614
|
...u(t)
|
|
@@ -5542,7 +5616,7 @@ function Ol(t) {
|
|
|
5542
5616
|
}
|
|
5543
5617
|
// @__NO_SIDE_EFFECTS__
|
|
5544
5618
|
function El(t, e) {
|
|
5545
|
-
return new
|
|
5619
|
+
return new Un({
|
|
5546
5620
|
check: "string_format",
|
|
5547
5621
|
format: "includes",
|
|
5548
5622
|
...u(e),
|
|
@@ -5550,7 +5624,7 @@ function El(t, e) {
|
|
|
5550
5624
|
});
|
|
5551
5625
|
}
|
|
5552
5626
|
// @__NO_SIDE_EFFECTS__
|
|
5553
|
-
function
|
|
5627
|
+
function Cl(t, e) {
|
|
5554
5628
|
return new Hn({
|
|
5555
5629
|
check: "string_format",
|
|
5556
5630
|
format: "starts_with",
|
|
@@ -5559,7 +5633,7 @@ function jl(t, e) {
|
|
|
5559
5633
|
});
|
|
5560
5634
|
}
|
|
5561
5635
|
// @__NO_SIDE_EFFECTS__
|
|
5562
|
-
function
|
|
5636
|
+
function jl(t, e) {
|
|
5563
5637
|
return new Ln({
|
|
5564
5638
|
check: "string_format",
|
|
5565
5639
|
format: "ends_with",
|
|
@@ -5583,11 +5657,11 @@ function Pl() {
|
|
|
5583
5657
|
return /* @__PURE__ */ Nt((t) => t.trim());
|
|
5584
5658
|
}
|
|
5585
5659
|
// @__NO_SIDE_EFFECTS__
|
|
5586
|
-
function
|
|
5660
|
+
function Dl() {
|
|
5587
5661
|
return /* @__PURE__ */ Nt((t) => t.toLowerCase());
|
|
5588
5662
|
}
|
|
5589
5663
|
// @__NO_SIDE_EFFECTS__
|
|
5590
|
-
function
|
|
5664
|
+
function Bl() {
|
|
5591
5665
|
return /* @__PURE__ */ Nt((t) => t.toUpperCase());
|
|
5592
5666
|
}
|
|
5593
5667
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -5628,13 +5702,13 @@ function Ml(t) {
|
|
|
5628
5702
|
}
|
|
5629
5703
|
// @__NO_SIDE_EFFECTS__
|
|
5630
5704
|
function Rl(t, e) {
|
|
5631
|
-
const r = new
|
|
5705
|
+
const r = new M({
|
|
5632
5706
|
check: "custom",
|
|
5633
5707
|
...u(e)
|
|
5634
5708
|
});
|
|
5635
5709
|
return r._zod.check = t, r;
|
|
5636
5710
|
}
|
|
5637
|
-
function
|
|
5711
|
+
function Uo(t) {
|
|
5638
5712
|
let e = t?.target ?? "draft-2020-12";
|
|
5639
5713
|
return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), {
|
|
5640
5714
|
processors: t.processors ?? {},
|
|
@@ -5651,7 +5725,7 @@ function Go(t) {
|
|
|
5651
5725
|
external: t?.external ?? void 0
|
|
5652
5726
|
};
|
|
5653
5727
|
}
|
|
5654
|
-
function
|
|
5728
|
+
function C(t, e, r = { path: [], schemaPath: [] }) {
|
|
5655
5729
|
var o;
|
|
5656
5730
|
const a = t._zod.def, n = e.seen.get(t);
|
|
5657
5731
|
if (n)
|
|
@@ -5676,10 +5750,10 @@ function j(t, e, r = { path: [], schemaPath: [] }) {
|
|
|
5676
5750
|
w(t, e, v, m);
|
|
5677
5751
|
}
|
|
5678
5752
|
const g = t._zod.parent;
|
|
5679
|
-
g && (i.ref || (i.ref = g),
|
|
5753
|
+
g && (i.ref || (i.ref = g), C(g, e, m), e.seen.get(g).isParent = !0);
|
|
5680
5754
|
}
|
|
5681
5755
|
const l = e.metadataRegistry.get(t);
|
|
5682
|
-
return l && Object.assign(i.schema, l), e.io === "input" &&
|
|
5756
|
+
return l && Object.assign(i.schema, l), e.io === "input" && B(t) && (delete i.schema.examples, delete i.schema.default), e.io === "input" && i.schema._prefault && ((o = i.schema).default ?? (o.default = i.schema._prefault)), delete i.schema._prefault, e.seen.get(t).schema;
|
|
5683
5757
|
}
|
|
5684
5758
|
function Ho(t, e) {
|
|
5685
5759
|
const r = t.seen.get(e);
|
|
@@ -5819,7 +5893,7 @@ function Lo(t, e) {
|
|
|
5819
5893
|
throw new Error("Error converting schema to JSON.");
|
|
5820
5894
|
}
|
|
5821
5895
|
}
|
|
5822
|
-
function
|
|
5896
|
+
function B(t, e) {
|
|
5823
5897
|
const r = e ?? { seen: /* @__PURE__ */ new Set() };
|
|
5824
5898
|
if (r.seen.has(t))
|
|
5825
5899
|
return !1;
|
|
@@ -5828,45 +5902,45 @@ function D(t, e) {
|
|
|
5828
5902
|
if (o.type === "transform")
|
|
5829
5903
|
return !0;
|
|
5830
5904
|
if (o.type === "array")
|
|
5831
|
-
return
|
|
5905
|
+
return B(o.element, r);
|
|
5832
5906
|
if (o.type === "set")
|
|
5833
|
-
return
|
|
5907
|
+
return B(o.valueType, r);
|
|
5834
5908
|
if (o.type === "lazy")
|
|
5835
|
-
return
|
|
5909
|
+
return B(o.getter(), r);
|
|
5836
5910
|
if (o.type === "promise" || o.type === "optional" || o.type === "nonoptional" || o.type === "nullable" || o.type === "readonly" || o.type === "default" || o.type === "prefault")
|
|
5837
|
-
return
|
|
5911
|
+
return B(o.innerType, r);
|
|
5838
5912
|
if (o.type === "intersection")
|
|
5839
|
-
return
|
|
5913
|
+
return B(o.left, r) || B(o.right, r);
|
|
5840
5914
|
if (o.type === "record" || o.type === "map")
|
|
5841
|
-
return
|
|
5915
|
+
return B(o.keyType, r) || B(o.valueType, r);
|
|
5842
5916
|
if (o.type === "pipe")
|
|
5843
|
-
return
|
|
5917
|
+
return B(o.in, r) || B(o.out, r);
|
|
5844
5918
|
if (o.type === "object") {
|
|
5845
5919
|
for (const a in o.shape)
|
|
5846
|
-
if (
|
|
5920
|
+
if (B(o.shape[a], r))
|
|
5847
5921
|
return !0;
|
|
5848
5922
|
return !1;
|
|
5849
5923
|
}
|
|
5850
5924
|
if (o.type === "union") {
|
|
5851
5925
|
for (const a of o.options)
|
|
5852
|
-
if (
|
|
5926
|
+
if (B(a, r))
|
|
5853
5927
|
return !0;
|
|
5854
5928
|
return !1;
|
|
5855
5929
|
}
|
|
5856
5930
|
if (o.type === "tuple") {
|
|
5857
5931
|
for (const a of o.items)
|
|
5858
|
-
if (
|
|
5932
|
+
if (B(a, r))
|
|
5859
5933
|
return !0;
|
|
5860
|
-
return !!(o.rest &&
|
|
5934
|
+
return !!(o.rest && B(o.rest, r));
|
|
5861
5935
|
}
|
|
5862
5936
|
return !1;
|
|
5863
5937
|
}
|
|
5864
5938
|
const $l = (t, e = {}) => (r) => {
|
|
5865
|
-
const o =
|
|
5866
|
-
return
|
|
5939
|
+
const o = Uo({ ...r, processors: e });
|
|
5940
|
+
return C(t, o), Ho(o, t), Lo(o, t);
|
|
5867
5941
|
}, $e = (t, e, r = {}) => (o) => {
|
|
5868
|
-
const { libraryOptions: a, target: n } = o ?? {}, i =
|
|
5869
|
-
return
|
|
5942
|
+
const { libraryOptions: a, target: n } = o ?? {}, i = Uo({ ...a ?? {}, target: n, io: e, processors: r });
|
|
5943
|
+
return C(t, i), Ho(i, t), Lo(i, t);
|
|
5870
5944
|
}, Yl = {
|
|
5871
5945
|
guid: "uuid",
|
|
5872
5946
|
url: "uri",
|
|
@@ -5874,7 +5948,7 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5874
5948
|
json_string: "json-string",
|
|
5875
5949
|
regex: ""
|
|
5876
5950
|
// do not set
|
|
5877
|
-
},
|
|
5951
|
+
}, Gl = (t, e, r, o) => {
|
|
5878
5952
|
const a = r;
|
|
5879
5953
|
a.type = "string";
|
|
5880
5954
|
const { minimum: n, maximum: i, format: s, patterns: l, contentEncoding: c } = t._zod.bag;
|
|
@@ -5887,7 +5961,7 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5887
5961
|
}))
|
|
5888
5962
|
]);
|
|
5889
5963
|
}
|
|
5890
|
-
},
|
|
5964
|
+
}, Ul = (t, e, r, o) => {
|
|
5891
5965
|
const a = r, { minimum: n, maximum: i, format: s, multipleOf: l, exclusiveMaximum: c, exclusiveMinimum: m } = t._zod.bag;
|
|
5892
5966
|
typeof s == "string" && s.includes("int") ? a.type = "integer" : a.type = "number", typeof m == "number" && (e.target === "draft-04" || e.target === "openapi-3.0" ? (a.minimum = m, a.exclusiveMinimum = !0) : a.exclusiveMinimum = m), typeof n == "number" && (a.minimum = n, typeof m == "number" && e.target !== "draft-04" && (m >= n ? delete a.minimum : delete a.exclusiveMinimum)), typeof c == "number" && (e.target === "draft-04" || e.target === "openapi-3.0" ? (a.maximum = c, a.exclusiveMaximum = !0) : a.exclusiveMaximum = c), typeof i == "number" && (a.maximum = i, typeof c == "number" && e.target !== "draft-04" && (c <= i ? delete a.maximum : delete a.exclusiveMaximum)), typeof l == "number" && (a.multipleOf = l);
|
|
5893
5967
|
}, Hl = (t, e, r, o) => {
|
|
@@ -5897,9 +5971,9 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5897
5971
|
}, Xl = (t, e, r, o) => {
|
|
5898
5972
|
if (e.unrepresentable === "throw")
|
|
5899
5973
|
throw new Error("Undefined cannot be represented in JSON Schema");
|
|
5900
|
-
}, ql = (t, e, r, o) => {
|
|
5901
|
-
r.not = {};
|
|
5902
5974
|
}, Vl = (t, e, r, o) => {
|
|
5975
|
+
r.not = {};
|
|
5976
|
+
}, ql = (t, e, r, o) => {
|
|
5903
5977
|
}, Fl = (t, e, r, o) => {
|
|
5904
5978
|
const a = t._zod.def, n = ko(a.entries);
|
|
5905
5979
|
n.every((i) => typeof i == "number") && (r.type = "number"), n.every((i) => typeof i == "string") && (r.type = "string"), r.enum = n;
|
|
@@ -5928,13 +6002,13 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5928
6002
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
5929
6003
|
}, Wl = (t, e, r, o) => {
|
|
5930
6004
|
const a = r, n = t._zod.def, { minimum: i, maximum: s } = t._zod.bag;
|
|
5931
|
-
typeof i == "number" && (a.minItems = i), typeof s == "number" && (a.maxItems = s), a.type = "array", a.items =
|
|
6005
|
+
typeof i == "number" && (a.minItems = i), typeof s == "number" && (a.maxItems = s), a.type = "array", a.items = C(n.element, e, { ...o, path: [...o.path, "items"] });
|
|
5932
6006
|
}, td = (t, e, r, o) => {
|
|
5933
6007
|
const a = r, n = t._zod.def;
|
|
5934
6008
|
a.type = "object", a.properties = {};
|
|
5935
6009
|
const i = n.shape;
|
|
5936
6010
|
for (const c in i)
|
|
5937
|
-
a.properties[c] =
|
|
6011
|
+
a.properties[c] = C(i[c], e, {
|
|
5938
6012
|
...o,
|
|
5939
6013
|
path: [...o.path, "properties", c]
|
|
5940
6014
|
});
|
|
@@ -5942,21 +6016,21 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5942
6016
|
const m = n.shape[c]._zod;
|
|
5943
6017
|
return e.io === "input" ? m.optin === void 0 : m.optout === void 0;
|
|
5944
6018
|
}));
|
|
5945
|
-
l.size > 0 && (a.required = Array.from(l)), n.catchall?._zod.def.type === "never" ? a.additionalProperties = !1 : n.catchall ? n.catchall && (a.additionalProperties =
|
|
6019
|
+
l.size > 0 && (a.required = Array.from(l)), n.catchall?._zod.def.type === "never" ? a.additionalProperties = !1 : n.catchall ? n.catchall && (a.additionalProperties = C(n.catchall, e, {
|
|
5946
6020
|
...o,
|
|
5947
6021
|
path: [...o.path, "additionalProperties"]
|
|
5948
6022
|
})) : e.io === "output" && (a.additionalProperties = !1);
|
|
5949
6023
|
}, ed = (t, e, r, o) => {
|
|
5950
|
-
const a = t._zod.def, n = a.inclusive === !1, i = a.options.map((s, l) =>
|
|
6024
|
+
const a = t._zod.def, n = a.inclusive === !1, i = a.options.map((s, l) => C(s, e, {
|
|
5951
6025
|
...o,
|
|
5952
6026
|
path: [...o.path, n ? "oneOf" : "anyOf", l]
|
|
5953
6027
|
}));
|
|
5954
6028
|
n ? r.oneOf = i : r.anyOf = i;
|
|
5955
6029
|
}, rd = (t, e, r, o) => {
|
|
5956
|
-
const a = t._zod.def, n =
|
|
6030
|
+
const a = t._zod.def, n = C(a.left, e, {
|
|
5957
6031
|
...o,
|
|
5958
6032
|
path: [...o.path, "allOf", 0]
|
|
5959
|
-
}), i =
|
|
6033
|
+
}), i = C(a.right, e, {
|
|
5960
6034
|
...o,
|
|
5961
6035
|
path: [...o.path, "allOf", 1]
|
|
5962
6036
|
}), s = (c) => "allOf" in c && Object.keys(c).length === 1, l = [
|
|
@@ -5969,7 +6043,7 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5969
6043
|
a.type = "object";
|
|
5970
6044
|
const i = n.keyType, l = i._zod.bag?.patterns;
|
|
5971
6045
|
if (n.mode === "loose" && l && l.size > 0) {
|
|
5972
|
-
const m =
|
|
6046
|
+
const m = C(n.valueType, e, {
|
|
5973
6047
|
...o,
|
|
5974
6048
|
path: [...o.path, "patternProperties", "*"]
|
|
5975
6049
|
});
|
|
@@ -5977,10 +6051,10 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5977
6051
|
for (const g of l)
|
|
5978
6052
|
a.patternProperties[g.source] = m;
|
|
5979
6053
|
} else
|
|
5980
|
-
(e.target === "draft-07" || e.target === "draft-2020-12") && (a.propertyNames =
|
|
6054
|
+
(e.target === "draft-07" || e.target === "draft-2020-12") && (a.propertyNames = C(n.keyType, e, {
|
|
5981
6055
|
...o,
|
|
5982
6056
|
path: [...o.path, "propertyNames"]
|
|
5983
|
-
})), a.additionalProperties =
|
|
6057
|
+
})), a.additionalProperties = C(n.valueType, e, {
|
|
5984
6058
|
...o,
|
|
5985
6059
|
path: [...o.path, "additionalProperties"]
|
|
5986
6060
|
});
|
|
@@ -5990,26 +6064,26 @@ const $l = (t, e = {}) => (r) => {
|
|
|
5990
6064
|
m.length > 0 && (a.required = m);
|
|
5991
6065
|
}
|
|
5992
6066
|
}, ad = (t, e, r, o) => {
|
|
5993
|
-
const a = t._zod.def, n =
|
|
6067
|
+
const a = t._zod.def, n = C(a.innerType, e, o), i = e.seen.get(t);
|
|
5994
6068
|
e.target === "openapi-3.0" ? (i.ref = a.innerType, r.nullable = !0) : r.anyOf = [n, { type: "null" }];
|
|
5995
6069
|
}, id = (t, e, r, o) => {
|
|
5996
6070
|
const a = t._zod.def;
|
|
5997
|
-
|
|
6071
|
+
C(a.innerType, e, o);
|
|
5998
6072
|
const n = e.seen.get(t);
|
|
5999
6073
|
n.ref = a.innerType;
|
|
6000
6074
|
}, nd = (t, e, r, o) => {
|
|
6001
6075
|
const a = t._zod.def;
|
|
6002
|
-
|
|
6076
|
+
C(a.innerType, e, o);
|
|
6003
6077
|
const n = e.seen.get(t);
|
|
6004
6078
|
n.ref = a.innerType, r.default = JSON.parse(JSON.stringify(a.defaultValue));
|
|
6005
6079
|
}, sd = (t, e, r, o) => {
|
|
6006
6080
|
const a = t._zod.def;
|
|
6007
|
-
|
|
6081
|
+
C(a.innerType, e, o);
|
|
6008
6082
|
const n = e.seen.get(t);
|
|
6009
6083
|
n.ref = a.innerType, e.io === "input" && (r._prefault = JSON.parse(JSON.stringify(a.defaultValue)));
|
|
6010
6084
|
}, ld = (t, e, r, o) => {
|
|
6011
6085
|
const a = t._zod.def;
|
|
6012
|
-
|
|
6086
|
+
C(a.innerType, e, o);
|
|
6013
6087
|
const n = e.seen.get(t);
|
|
6014
6088
|
n.ref = a.innerType;
|
|
6015
6089
|
let i;
|
|
@@ -6021,17 +6095,17 @@ const $l = (t, e = {}) => (r) => {
|
|
|
6021
6095
|
r.default = i;
|
|
6022
6096
|
}, dd = (t, e, r, o) => {
|
|
6023
6097
|
const a = t._zod.def, n = e.io === "input" ? a.in._zod.def.type === "transform" ? a.out : a.in : a.out;
|
|
6024
|
-
|
|
6098
|
+
C(n, e, o);
|
|
6025
6099
|
const i = e.seen.get(t);
|
|
6026
6100
|
i.ref = n;
|
|
6027
6101
|
}, cd = (t, e, r, o) => {
|
|
6028
6102
|
const a = t._zod.def;
|
|
6029
|
-
|
|
6103
|
+
C(a.innerType, e, o);
|
|
6030
6104
|
const n = e.seen.get(t);
|
|
6031
6105
|
n.ref = a.innerType, r.readOnly = !0;
|
|
6032
6106
|
}, Xo = (t, e, r, o) => {
|
|
6033
6107
|
const a = t._zod.def;
|
|
6034
|
-
|
|
6108
|
+
C(a.innerType, e, o);
|
|
6035
6109
|
const n = e.seen.get(t);
|
|
6036
6110
|
n.ref = a.innerType;
|
|
6037
6111
|
}, pd = /* @__PURE__ */ d("ZodISODateTime", (t, e) => {
|
|
@@ -6089,19 +6163,19 @@ const wd = (t, e) => {
|
|
|
6089
6163
|
});
|
|
6090
6164
|
}, R = d("ZodError", wd, {
|
|
6091
6165
|
Parent: Error
|
|
6092
|
-
}), xd = /* @__PURE__ */ wr(R), yd = /* @__PURE__ */ xr(R), kd = /* @__PURE__ */ Ke(R), zd = /* @__PURE__ */ Qe(R), Ad = /* @__PURE__ */ Wi(R), Sd = /* @__PURE__ */ tn(R), Id = /* @__PURE__ */ en(R), Od = /* @__PURE__ */ rn(R), Ed = /* @__PURE__ */ on(R),
|
|
6166
|
+
}), xd = /* @__PURE__ */ wr(R), yd = /* @__PURE__ */ xr(R), kd = /* @__PURE__ */ Ke(R), zd = /* @__PURE__ */ Qe(R), Ad = /* @__PURE__ */ Wi(R), Sd = /* @__PURE__ */ tn(R), Id = /* @__PURE__ */ en(R), Od = /* @__PURE__ */ rn(R), Ed = /* @__PURE__ */ on(R), Cd = /* @__PURE__ */ an(R), jd = /* @__PURE__ */ nn(R), _d = /* @__PURE__ */ sn(R), S = /* @__PURE__ */ d("ZodType", (t, e) => (A.init(t, e), Object.assign(t["~standard"], {
|
|
6093
6167
|
jsonSchema: {
|
|
6094
6168
|
input: $e(t, "input"),
|
|
6095
6169
|
output: $e(t, "output")
|
|
6096
6170
|
}
|
|
6097
|
-
}), t.toJSONSchema = $l(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.check = (...r) => t.clone(
|
|
6171
|
+
}), t.toJSONSchema = $l(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.check = (...r) => t.clone(it(e, {
|
|
6098
6172
|
checks: [
|
|
6099
6173
|
...e.checks ?? [],
|
|
6100
6174
|
...r.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
|
|
6101
6175
|
]
|
|
6102
6176
|
}), {
|
|
6103
6177
|
parent: !0
|
|
6104
|
-
}), t.with = t.check, t.clone = (r, o) =>
|
|
6178
|
+
}), t.with = t.check, t.clone = (r, o) => nt(t, r, o), t.brand = () => t, t.register = ((r, o) => (r.add(t, o), t)), t.parse = (r, o) => xd(t, r, o, { callee: t.parse }), t.safeParse = (r, o) => kd(t, r, o), t.parseAsync = async (r, o) => yd(t, r, o, { callee: t.parseAsync }), t.safeParseAsync = async (r, o) => zd(t, r, o), t.spa = t.safeParseAsync, t.encode = (r, o) => Ad(t, r, o), t.decode = (r, o) => Sd(t, r, o), t.encodeAsync = async (r, o) => Id(t, r, o), t.decodeAsync = async (r, o) => Od(t, r, o), t.safeEncode = (r, o) => Ed(t, r, o), t.safeDecode = (r, o) => Cd(t, r, o), t.safeEncodeAsync = async (r, o) => jd(t, r, o), t.safeDecodeAsync = async (r, o) => _d(t, r, o), t.refine = (r, o) => t.check(Ec(r, o)), t.superRefine = (r) => t.check(Cc(r)), t.overwrite = (r) => t.check(/* @__PURE__ */ Nt(r)), t.optional = () => ct(t), t.exactOptional = () => uc(t), t.nullable = () => Fr(t), t.nullish = () => ct(Fr(t)), t.nonoptional = (r) => yc(t, r), t.array = () => Ge(t), t.or = (r) => kr([t, r]), t.and = (r) => zr(t, r), t.transform = (r) => Jr(t, mc(r)), t.default = (r) => vc(t, r), t.prefault = (r) => xc(t, r), t.catch = (r) => zc(t, r), t.pipe = (r) => Jr(t, r), t.readonly = () => Ic(t), t.describe = (r) => {
|
|
6105
6179
|
const o = t.clone();
|
|
6106
6180
|
return Rt.add(o, { description: r }), o;
|
|
6107
6181
|
}, Object.defineProperty(t, "description", {
|
|
@@ -6114,25 +6188,25 @@ const wd = (t, e) => {
|
|
|
6114
6188
|
return Rt.get(t);
|
|
6115
6189
|
const o = t.clone();
|
|
6116
6190
|
return Rt.add(o, r[0]), o;
|
|
6117
|
-
}, t.isOptional = () => t.safeParse(void 0).success, t.isNullable = () => t.safeParse(null).success, t.apply = (r) => r(t), t)),
|
|
6118
|
-
yr.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) =>
|
|
6191
|
+
}, t.isOptional = () => t.safeParse(void 0).success, t.isNullable = () => t.safeParse(null).success, t.apply = (r) => r(t), t)), Vo = /* @__PURE__ */ d("_ZodString", (t, e) => {
|
|
6192
|
+
yr.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) => Gl(t, o, a);
|
|
6119
6193
|
const r = t._zod.bag;
|
|
6120
|
-
t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, t.regex = (...o) => t.check(/* @__PURE__ */ Sl(...o)), t.includes = (...o) => t.check(/* @__PURE__ */ El(...o)), t.startsWith = (...o) => t.check(/* @__PURE__ */
|
|
6194
|
+
t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, t.regex = (...o) => t.check(/* @__PURE__ */ Sl(...o)), t.includes = (...o) => t.check(/* @__PURE__ */ El(...o)), t.startsWith = (...o) => t.check(/* @__PURE__ */ Cl(...o)), t.endsWith = (...o) => t.check(/* @__PURE__ */ jl(...o)), t.min = (...o) => t.check(/* @__PURE__ */ Re(...o)), t.max = (...o) => t.check(/* @__PURE__ */ Yo(...o)), t.length = (...o) => t.check(/* @__PURE__ */ Go(...o)), t.nonempty = (...o) => t.check(/* @__PURE__ */ Re(1, ...o)), t.lowercase = (o) => t.check(/* @__PURE__ */ Il(o)), t.uppercase = (o) => t.check(/* @__PURE__ */ Ol(o)), t.trim = () => t.check(/* @__PURE__ */ Pl()), t.normalize = (...o) => t.check(/* @__PURE__ */ _l(...o)), t.toLowerCase = () => t.check(/* @__PURE__ */ Dl()), t.toUpperCase = () => t.check(/* @__PURE__ */ Bl()), t.slugify = () => t.check(/* @__PURE__ */ Tl());
|
|
6121
6195
|
}), Pd = /* @__PURE__ */ d("ZodString", (t, e) => {
|
|
6122
|
-
yr.init(t, e),
|
|
6196
|
+
yr.init(t, e), Vo.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ Vs(Dd, r)), t.url = (r) => t.check(/* @__PURE__ */ Qs(Bd, r)), t.jwt = (r) => t.check(/* @__PURE__ */ ml(Fd, r)), t.emoji = (r) => t.check(/* @__PURE__ */ Ws(Td, r)), t.guid = (r) => t.check(/* @__PURE__ */ Ur(Vr, r)), t.uuid = (r) => t.check(/* @__PURE__ */ qs(ee, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Fs(ee, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Js(ee, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ Ks(ee, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ tl(Nd, r)), t.guid = (r) => t.check(/* @__PURE__ */ Ur(Vr, r)), t.cuid = (r) => t.check(/* @__PURE__ */ el(Zd, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ rl(Md, r)), t.ulid = (r) => t.check(/* @__PURE__ */ ol(Rd, r)), t.base64 = (r) => t.check(/* @__PURE__ */ cl(Xd, r)), t.base64url = (r) => t.check(/* @__PURE__ */ pl(Vd, r)), t.xid = (r) => t.check(/* @__PURE__ */ al($d, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ il(Yd, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ nl(Gd, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ sl(Ud, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ ll(Hd, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ dl(Ld, r)), t.e164 = (r) => t.check(/* @__PURE__ */ bl(qd, r)), t.datetime = (r) => t.check(bd(r)), t.date = (r) => t.check(gd(r)), t.time = (r) => t.check(fd(r)), t.duration = (r) => t.check(vd(r));
|
|
6123
6197
|
});
|
|
6124
6198
|
function f(t) {
|
|
6125
6199
|
return /* @__PURE__ */ Xs(Pd, t);
|
|
6126
6200
|
}
|
|
6127
6201
|
const E = /* @__PURE__ */ d("ZodStringFormat", (t, e) => {
|
|
6128
|
-
O.init(t, e),
|
|
6129
|
-
}),
|
|
6202
|
+
O.init(t, e), Vo.init(t, e);
|
|
6203
|
+
}), Dd = /* @__PURE__ */ d("ZodEmail", (t, e) => {
|
|
6130
6204
|
Kn.init(t, e), E.init(t, e);
|
|
6131
|
-
}),
|
|
6205
|
+
}), Vr = /* @__PURE__ */ d("ZodGUID", (t, e) => {
|
|
6132
6206
|
Fn.init(t, e), E.init(t, e);
|
|
6133
6207
|
}), ee = /* @__PURE__ */ d("ZodUUID", (t, e) => {
|
|
6134
6208
|
Jn.init(t, e), E.init(t, e);
|
|
6135
|
-
}),
|
|
6209
|
+
}), Bd = /* @__PURE__ */ d("ZodURL", (t, e) => {
|
|
6136
6210
|
Qn.init(t, e), E.init(t, e);
|
|
6137
6211
|
}), Td = /* @__PURE__ */ d("ZodEmoji", (t, e) => {
|
|
6138
6212
|
Wn.init(t, e), E.init(t, e);
|
|
@@ -6148,9 +6222,9 @@ const E = /* @__PURE__ */ d("ZodStringFormat", (t, e) => {
|
|
|
6148
6222
|
as.init(t, e), E.init(t, e);
|
|
6149
6223
|
}), Yd = /* @__PURE__ */ d("ZodKSUID", (t, e) => {
|
|
6150
6224
|
is.init(t, e), E.init(t, e);
|
|
6151
|
-
}),
|
|
6225
|
+
}), Gd = /* @__PURE__ */ d("ZodIPv4", (t, e) => {
|
|
6152
6226
|
cs.init(t, e), E.init(t, e);
|
|
6153
|
-
}),
|
|
6227
|
+
}), Ud = /* @__PURE__ */ d("ZodIPv6", (t, e) => {
|
|
6154
6228
|
ps.init(t, e), E.init(t, e);
|
|
6155
6229
|
}), Hd = /* @__PURE__ */ d("ZodCIDRv4", (t, e) => {
|
|
6156
6230
|
bs.init(t, e), E.init(t, e);
|
|
@@ -6158,24 +6232,24 @@ const E = /* @__PURE__ */ d("ZodStringFormat", (t, e) => {
|
|
|
6158
6232
|
ms.init(t, e), E.init(t, e);
|
|
6159
6233
|
}), Xd = /* @__PURE__ */ d("ZodBase64", (t, e) => {
|
|
6160
6234
|
gs.init(t, e), E.init(t, e);
|
|
6161
|
-
}),
|
|
6235
|
+
}), Vd = /* @__PURE__ */ d("ZodBase64URL", (t, e) => {
|
|
6162
6236
|
fs.init(t, e), E.init(t, e);
|
|
6163
|
-
}),
|
|
6237
|
+
}), qd = /* @__PURE__ */ d("ZodE164", (t, e) => {
|
|
6164
6238
|
hs.init(t, e), E.init(t, e);
|
|
6165
6239
|
}), Fd = /* @__PURE__ */ d("ZodJWT", (t, e) => {
|
|
6166
6240
|
ws.init(t, e), E.init(t, e);
|
|
6167
|
-
}),
|
|
6168
|
-
No.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) =>
|
|
6241
|
+
}), qo = /* @__PURE__ */ d("ZodNumber", (t, e) => {
|
|
6242
|
+
No.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) => Ul(t, o, a), t.gt = (o, a) => t.check(/* @__PURE__ */ Lr(o, a)), t.gte = (o, a) => t.check(/* @__PURE__ */ ar(o, a)), t.min = (o, a) => t.check(/* @__PURE__ */ ar(o, a)), t.lt = (o, a) => t.check(/* @__PURE__ */ Hr(o, a)), t.lte = (o, a) => t.check(/* @__PURE__ */ or(o, a)), t.max = (o, a) => t.check(/* @__PURE__ */ or(o, a)), t.int = (o) => t.check(qr(o)), t.safe = (o) => t.check(qr(o)), t.positive = (o) => t.check(/* @__PURE__ */ Lr(0, o)), t.nonnegative = (o) => t.check(/* @__PURE__ */ ar(0, o)), t.negative = (o) => t.check(/* @__PURE__ */ Hr(0, o)), t.nonpositive = (o) => t.check(/* @__PURE__ */ or(0, o)), t.multipleOf = (o, a) => t.check(/* @__PURE__ */ Xr(o, a)), t.step = (o, a) => t.check(/* @__PURE__ */ Xr(o, a)), t.finite = () => t;
|
|
6169
6243
|
const r = t._zod.bag;
|
|
6170
6244
|
t.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, t.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, t.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), t.isFinite = !0, t.format = r.format ?? null;
|
|
6171
6245
|
});
|
|
6172
6246
|
function Ye(t) {
|
|
6173
|
-
return /* @__PURE__ */ vl(
|
|
6247
|
+
return /* @__PURE__ */ vl(qo, t);
|
|
6174
6248
|
}
|
|
6175
6249
|
const Jd = /* @__PURE__ */ d("ZodNumberFormat", (t, e) => {
|
|
6176
|
-
xs.init(t, e),
|
|
6250
|
+
xs.init(t, e), qo.init(t, e);
|
|
6177
6251
|
});
|
|
6178
|
-
function
|
|
6252
|
+
function qr(t) {
|
|
6179
6253
|
return /* @__PURE__ */ wl(Jd, t);
|
|
6180
6254
|
}
|
|
6181
6255
|
const Kd = /* @__PURE__ */ d("ZodBoolean", (t, e) => {
|
|
@@ -6197,25 +6271,25 @@ function Fo(t) {
|
|
|
6197
6271
|
return /* @__PURE__ */ kl(ec, t);
|
|
6198
6272
|
}
|
|
6199
6273
|
const rc = /* @__PURE__ */ d("ZodUnknown", (t, e) => {
|
|
6200
|
-
As.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) =>
|
|
6274
|
+
As.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => ql();
|
|
6201
6275
|
});
|
|
6202
6276
|
function Et() {
|
|
6203
6277
|
return /* @__PURE__ */ zl(rc);
|
|
6204
6278
|
}
|
|
6205
6279
|
const oc = /* @__PURE__ */ d("ZodNever", (t, e) => {
|
|
6206
|
-
Ss.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) =>
|
|
6280
|
+
Ss.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Vl(t, r, o);
|
|
6207
6281
|
});
|
|
6208
6282
|
function Jo(t) {
|
|
6209
6283
|
return /* @__PURE__ */ Al(oc, t);
|
|
6210
6284
|
}
|
|
6211
6285
|
const ac = /* @__PURE__ */ d("ZodArray", (t, e) => {
|
|
6212
|
-
Is.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Wl(t, r, o, a), t.element = e.element, t.min = (r, o) => t.check(/* @__PURE__ */ Re(r, o)), t.nonempty = (r) => t.check(/* @__PURE__ */ Re(1, r)), t.max = (r, o) => t.check(/* @__PURE__ */ Yo(r, o)), t.length = (r, o) => t.check(/* @__PURE__ */
|
|
6286
|
+
Is.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Wl(t, r, o, a), t.element = e.element, t.min = (r, o) => t.check(/* @__PURE__ */ Re(r, o)), t.nonempty = (r) => t.check(/* @__PURE__ */ Re(1, r)), t.max = (r, o) => t.check(/* @__PURE__ */ Yo(r, o)), t.length = (r, o) => t.check(/* @__PURE__ */ Go(r, o)), t.unwrap = () => t.element;
|
|
6213
6287
|
});
|
|
6214
|
-
function
|
|
6288
|
+
function Ge(t, e) {
|
|
6215
6289
|
return /* @__PURE__ */ Nl(ac, t, e);
|
|
6216
6290
|
}
|
|
6217
6291
|
const ic = /* @__PURE__ */ d("ZodObject", (t, e) => {
|
|
6218
|
-
Es.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => td(t, r, o, a), x(t, "shape", () => e.shape), t.keyof = () => cc(Object.keys(t._zod.def.shape)), t.catchall = (r) => t.clone({ ...t._zod.def, catchall: r }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: Et() }), t.loose = () => t.clone({ ...t._zod.def, catchall: Et() }), t.strict = () => t.clone({ ...t._zod.def, catchall: Jo() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (r) => Hi(t, r), t.safeExtend = (r) => Li(t, r), t.merge = (r) => Xi(t, r), t.pick = (r) =>
|
|
6292
|
+
Es.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => td(t, r, o, a), x(t, "shape", () => e.shape), t.keyof = () => cc(Object.keys(t._zod.def.shape)), t.catchall = (r) => t.clone({ ...t._zod.def, catchall: r }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: Et() }), t.loose = () => t.clone({ ...t._zod.def, catchall: Et() }), t.strict = () => t.clone({ ...t._zod.def, catchall: Jo() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (r) => Hi(t, r), t.safeExtend = (r) => Li(t, r), t.merge = (r) => Xi(t, r), t.pick = (r) => Gi(t, r), t.omit = (r) => Ui(t, r), t.partial = (...r) => Vi(Qo, t, r[0]), t.required = (...r) => qi(Wo, t, r[0]);
|
|
6219
6293
|
});
|
|
6220
6294
|
function y(t, e) {
|
|
6221
6295
|
const r = {
|
|
@@ -6236,7 +6310,7 @@ function kr(t, e) {
|
|
|
6236
6310
|
});
|
|
6237
6311
|
}
|
|
6238
6312
|
const nc = /* @__PURE__ */ d("ZodDiscriminatedUnion", (t, e) => {
|
|
6239
|
-
Ko.init(t, e),
|
|
6313
|
+
Ko.init(t, e), Cs.init(t, e);
|
|
6240
6314
|
});
|
|
6241
6315
|
function Zt(t, e, r) {
|
|
6242
6316
|
return new nc({
|
|
@@ -6247,7 +6321,7 @@ function Zt(t, e, r) {
|
|
|
6247
6321
|
});
|
|
6248
6322
|
}
|
|
6249
6323
|
const sc = /* @__PURE__ */ d("ZodIntersection", (t, e) => {
|
|
6250
|
-
|
|
6324
|
+
js.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => rd(t, r, o, a);
|
|
6251
6325
|
});
|
|
6252
6326
|
function zr(t, e) {
|
|
6253
6327
|
return new sc({
|
|
@@ -6307,7 +6381,7 @@ function cc(t, e) {
|
|
|
6307
6381
|
});
|
|
6308
6382
|
}
|
|
6309
6383
|
const pc = /* @__PURE__ */ d("ZodLiteral", (t, e) => {
|
|
6310
|
-
|
|
6384
|
+
Ds.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Jl(t, r, o), t.values = new Set(e.values), Object.defineProperty(t, "value", {
|
|
6311
6385
|
get() {
|
|
6312
6386
|
if (e.values.length > 1)
|
|
6313
6387
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -6315,7 +6389,7 @@ const pc = /* @__PURE__ */ d("ZodLiteral", (t, e) => {
|
|
|
6315
6389
|
}
|
|
6316
6390
|
});
|
|
6317
6391
|
});
|
|
6318
|
-
function
|
|
6392
|
+
function j(t, e) {
|
|
6319
6393
|
return new pc({
|
|
6320
6394
|
type: "literal",
|
|
6321
6395
|
values: Array.isArray(t) ? t : [t],
|
|
@@ -6323,7 +6397,7 @@ function C(t, e) {
|
|
|
6323
6397
|
});
|
|
6324
6398
|
}
|
|
6325
6399
|
const bc = /* @__PURE__ */ d("ZodTransform", (t, e) => {
|
|
6326
|
-
|
|
6400
|
+
Bs.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Ql(t, r), t._zod.parse = (r, o) => {
|
|
6327
6401
|
if (o.direction === "backward")
|
|
6328
6402
|
throw new xo(t.constructor.name);
|
|
6329
6403
|
r.addIssue = (n) => {
|
|
@@ -6427,7 +6501,7 @@ function Jr(t, e) {
|
|
|
6427
6501
|
});
|
|
6428
6502
|
}
|
|
6429
6503
|
const Sc = /* @__PURE__ */ d("ZodReadonly", (t, e) => {
|
|
6430
|
-
|
|
6504
|
+
Gs.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => cd(t, r, o, a), t.unwrap = () => t._zod.def.innerType;
|
|
6431
6505
|
});
|
|
6432
6506
|
function Ic(t) {
|
|
6433
6507
|
return new Sc({
|
|
@@ -6436,42 +6510,42 @@ function Ic(t) {
|
|
|
6436
6510
|
});
|
|
6437
6511
|
}
|
|
6438
6512
|
const Oc = /* @__PURE__ */ d("ZodCustom", (t, e) => {
|
|
6439
|
-
|
|
6513
|
+
Us.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => Kl(t, r);
|
|
6440
6514
|
});
|
|
6441
6515
|
function Ec(t, e = {}) {
|
|
6442
6516
|
return /* @__PURE__ */ Zl(Oc, t, e);
|
|
6443
6517
|
}
|
|
6444
|
-
function
|
|
6518
|
+
function Cc(t) {
|
|
6445
6519
|
return /* @__PURE__ */ Ml(t);
|
|
6446
6520
|
}
|
|
6447
6521
|
var ta = y({
|
|
6448
|
-
method:
|
|
6522
|
+
method: j("authorization_code"),
|
|
6449
6523
|
audience: f(),
|
|
6450
6524
|
scope: f(),
|
|
6451
6525
|
clientId: f()
|
|
6452
6526
|
}).meta({
|
|
6453
6527
|
description: "Authorization code flow authentication configuration. This is used for browser-based application login."
|
|
6454
|
-
}),
|
|
6455
|
-
method:
|
|
6528
|
+
}), jc = y({
|
|
6529
|
+
method: j("client_credentials"),
|
|
6456
6530
|
audience: f(),
|
|
6457
6531
|
scope: f(),
|
|
6458
6532
|
clientId: f(),
|
|
6459
6533
|
clientSecret: f()
|
|
6460
6534
|
}), _c = y({
|
|
6461
|
-
method:
|
|
6535
|
+
method: j("self_signed"),
|
|
6462
6536
|
issuer: f(),
|
|
6463
6537
|
audience: f(),
|
|
6464
6538
|
scope: f(),
|
|
6465
6539
|
clientId: f(),
|
|
6466
6540
|
clientSecret: f()
|
|
6467
6541
|
}), Pc = y({
|
|
6468
|
-
method:
|
|
6542
|
+
method: j("client_credentials"),
|
|
6469
6543
|
audience: f(),
|
|
6470
6544
|
scope: f(),
|
|
6471
6545
|
clientId: f(),
|
|
6472
6546
|
clientSecretEnv: f()
|
|
6473
|
-
}),
|
|
6474
|
-
method:
|
|
6547
|
+
}), Dc = y({
|
|
6548
|
+
method: j("self_signed"),
|
|
6475
6549
|
issuer: f(),
|
|
6476
6550
|
audience: f(),
|
|
6477
6551
|
scope: f(),
|
|
@@ -6479,23 +6553,23 @@ var ta = y({
|
|
|
6479
6553
|
clientSecretEnv: f()
|
|
6480
6554
|
}), Kr = Zt("method", [
|
|
6481
6555
|
ta,
|
|
6482
|
-
|
|
6556
|
+
jc,
|
|
6483
6557
|
_c
|
|
6484
6558
|
]);
|
|
6485
6559
|
Zt("method", [
|
|
6486
6560
|
ta,
|
|
6487
6561
|
Pc,
|
|
6488
|
-
|
|
6562
|
+
Dc
|
|
6489
6563
|
]);
|
|
6490
|
-
var
|
|
6564
|
+
var Bc = Zt("type", [
|
|
6491
6565
|
y({
|
|
6492
6566
|
id: f(),
|
|
6493
|
-
type:
|
|
6567
|
+
type: j("self_signed"),
|
|
6494
6568
|
issuer: f()
|
|
6495
6569
|
}),
|
|
6496
6570
|
y({
|
|
6497
6571
|
id: f(),
|
|
6498
|
-
type:
|
|
6572
|
+
type: j("oauth"),
|
|
6499
6573
|
issuer: f(),
|
|
6500
6574
|
configUrl: f().url()
|
|
6501
6575
|
})
|
|
@@ -6514,14 +6588,14 @@ var Dc = Zt("type", [
|
|
|
6514
6588
|
y({
|
|
6515
6589
|
connection: Zt("type", [
|
|
6516
6590
|
y({
|
|
6517
|
-
type:
|
|
6591
|
+
type: j("memory")
|
|
6518
6592
|
}),
|
|
6519
6593
|
y({
|
|
6520
|
-
type:
|
|
6594
|
+
type: j("sqlite"),
|
|
6521
6595
|
database: f()
|
|
6522
6596
|
}),
|
|
6523
6597
|
y({
|
|
6524
|
-
type:
|
|
6598
|
+
type: j("postgres"),
|
|
6525
6599
|
host: f(),
|
|
6526
6600
|
port: Ye(),
|
|
6527
6601
|
user: f(),
|
|
@@ -6531,8 +6605,8 @@ y({
|
|
|
6531
6605
|
])
|
|
6532
6606
|
});
|
|
6533
6607
|
y({
|
|
6534
|
-
idps:
|
|
6535
|
-
networks:
|
|
6608
|
+
idps: Ge(Bc),
|
|
6609
|
+
networks: Ge(ea)
|
|
6536
6610
|
});
|
|
6537
6611
|
var Nc = Object.defineProperty, Zc = Object.getOwnPropertyDescriptor, ra = (t) => {
|
|
6538
6612
|
throw TypeError(t);
|
|
@@ -6561,7 +6635,7 @@ class _p extends Event {
|
|
|
6561
6635
|
super("network-form-back", { bubbles: !0, composed: !0 });
|
|
6562
6636
|
}
|
|
6563
6637
|
}
|
|
6564
|
-
let
|
|
6638
|
+
let Ct = class extends h {
|
|
6565
6639
|
constructor() {
|
|
6566
6640
|
super(...arguments), Wr(this, ve, "add"), Wr(this, we, {
|
|
6567
6641
|
ledgerApi: {},
|
|
@@ -6853,10 +6927,10 @@ let jt = class extends h {
|
|
|
6853
6927
|
${t ? p`
|
|
6854
6928
|
<h3 class="section-title">Configure user auth</h3>
|
|
6855
6929
|
${this.renderAuthForm(this.network.auth)}
|
|
6856
|
-
` :
|
|
6930
|
+
` : Z}
|
|
6857
6931
|
</div>
|
|
6858
6932
|
|
|
6859
|
-
${this._error ? p`<div class="form-error">${this._error}</div>` :
|
|
6933
|
+
${this._error ? p`<div class="form-error">${this._error}</div>` : Z}
|
|
6860
6934
|
${t ? p`
|
|
6861
6935
|
<div class="delete-section">
|
|
6862
6936
|
<h4 class="delete-title">Delete network</h4>
|
|
@@ -6908,7 +6982,7 @@ let jt = class extends h {
|
|
|
6908
6982
|
};
|
|
6909
6983
|
ve = /* @__PURE__ */ new WeakMap();
|
|
6910
6984
|
we = /* @__PURE__ */ new WeakMap();
|
|
6911
|
-
|
|
6985
|
+
Ct.styles = [
|
|
6912
6986
|
h.styles,
|
|
6913
6987
|
z`
|
|
6914
6988
|
:host {
|
|
@@ -7072,20 +7146,20 @@ jt.styles = [
|
|
|
7072
7146
|
];
|
|
7073
7147
|
tr([
|
|
7074
7148
|
b({ type: String })
|
|
7075
|
-
],
|
|
7149
|
+
], Ct.prototype, "mode", 1);
|
|
7076
7150
|
tr([
|
|
7077
7151
|
b({ type: Object })
|
|
7078
|
-
],
|
|
7152
|
+
], Ct.prototype, "network", 1);
|
|
7079
7153
|
tr([
|
|
7080
|
-
|
|
7081
|
-
],
|
|
7082
|
-
|
|
7154
|
+
D()
|
|
7155
|
+
], Ct.prototype, "_error", 2);
|
|
7156
|
+
Ct = tr([
|
|
7083
7157
|
I("network-form")
|
|
7084
|
-
],
|
|
7085
|
-
var Yc = Object.defineProperty,
|
|
7158
|
+
], Ct);
|
|
7159
|
+
var Yc = Object.defineProperty, Gc = Object.getOwnPropertyDescriptor, aa = (t) => {
|
|
7086
7160
|
throw TypeError(t);
|
|
7087
7161
|
}, mt = (t, e, r, o) => {
|
|
7088
|
-
for (var a = o > 1 ? void 0 : o ?
|
|
7162
|
+
for (var a = o > 1 ? void 0 : o ? Gc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7089
7163
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
7090
7164
|
return o && a && Yc(e, r, a), a;
|
|
7091
7165
|
}, ia = (t, e, r) => e.has(t) || aa("Cannot " + r), ht = (t, e, r) => (ia(t, e, "read from private field"), r ? r.call(t) : e.get(t)), vt = (t, e, r) => e.has(t) ? aa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), wt = (t, e, r, o) => (ia(t, e, "write to private field"), e.set(t, r), r), xe, ye, ke, ze, Ae, Se;
|
|
@@ -7210,23 +7284,23 @@ mt([
|
|
|
7210
7284
|
b({ type: Boolean })
|
|
7211
7285
|
], F.prototype, "readonly", 1);
|
|
7212
7286
|
mt([
|
|
7213
|
-
|
|
7287
|
+
D()
|
|
7214
7288
|
], F.prototype, "isModalOpen", 1);
|
|
7215
7289
|
mt([
|
|
7216
|
-
|
|
7290
|
+
D()
|
|
7217
7291
|
], F.prototype, "editingNetwork", 1);
|
|
7218
7292
|
mt([
|
|
7219
|
-
|
|
7293
|
+
D()
|
|
7220
7294
|
], F.prototype, "authType", 1);
|
|
7221
7295
|
F = mt([
|
|
7222
7296
|
I("wg-networks")
|
|
7223
7297
|
], F);
|
|
7224
|
-
var
|
|
7298
|
+
var Uc = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, na = (t, e, r, o) => {
|
|
7225
7299
|
for (var a = o > 1 ? void 0 : o ? Hc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7226
7300
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
7227
|
-
return o && a &&
|
|
7301
|
+
return o && a && Uc(e, r, a), a;
|
|
7228
7302
|
};
|
|
7229
|
-
let
|
|
7303
|
+
let Ue = class extends h {
|
|
7230
7304
|
constructor() {
|
|
7231
7305
|
super(...arguments), this.href = "/";
|
|
7232
7306
|
}
|
|
@@ -7241,7 +7315,7 @@ let Ge = class extends h {
|
|
|
7241
7315
|
`;
|
|
7242
7316
|
}
|
|
7243
7317
|
};
|
|
7244
|
-
|
|
7318
|
+
Ue.styles = [
|
|
7245
7319
|
h.styles,
|
|
7246
7320
|
z`
|
|
7247
7321
|
:host {
|
|
@@ -7251,10 +7325,10 @@ Ge.styles = [
|
|
|
7251
7325
|
];
|
|
7252
7326
|
na([
|
|
7253
7327
|
b({ type: String })
|
|
7254
|
-
],
|
|
7255
|
-
|
|
7328
|
+
], Ue.prototype, "href", 2);
|
|
7329
|
+
Ue = na([
|
|
7256
7330
|
I("not-found")
|
|
7257
|
-
],
|
|
7331
|
+
], Ue);
|
|
7258
7332
|
var Lc = Object.defineProperty, Xc = Object.getOwnPropertyDescriptor, sa = (t, e, r, o) => {
|
|
7259
7333
|
for (var a = o > 1 ? void 0 : o ? Xc(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7260
7334
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
@@ -7441,12 +7515,12 @@ He = sa([
|
|
|
7441
7515
|
I("wg-sessions")
|
|
7442
7516
|
], He);
|
|
7443
7517
|
f().regex(/^[a-zA-Z0-9:_-]*::[a-z0-9]*/, "Invalid party ID format");
|
|
7444
|
-
var
|
|
7518
|
+
var Vc = y({
|
|
7445
7519
|
method: f(),
|
|
7446
7520
|
params: ct(
|
|
7447
|
-
kr([
|
|
7521
|
+
kr([Ge(Et()), dc(f(), Et())])
|
|
7448
7522
|
)
|
|
7449
|
-
}),
|
|
7523
|
+
}), qc = y({
|
|
7450
7524
|
result: ct(Et())
|
|
7451
7525
|
}), br = y({
|
|
7452
7526
|
error: y({
|
|
@@ -7456,16 +7530,16 @@ var qc = y({
|
|
|
7456
7530
|
f().or(Ye()).or(Qd()).or(Fo()).or(Et())
|
|
7457
7531
|
)
|
|
7458
7532
|
})
|
|
7459
|
-
}), Fc = kr([
|
|
7460
|
-
jsonrpc:
|
|
7533
|
+
}), Fc = kr([qc, br]), la = y({
|
|
7534
|
+
jsonrpc: j("2.0"),
|
|
7461
7535
|
// only support JSON-RPC 2.0
|
|
7462
7536
|
id: ct(f().or(Ye()).or(tc()).or(Fo()))
|
|
7463
|
-
}), Jc = zr(la,
|
|
7537
|
+
}), Jc = zr(la, Vc), Kc = zr(la, Fc), re = f().min(1).describe(
|
|
7464
7538
|
"Optional routing key for browser-extension messaging. When present, only the matching extension should handle the message."
|
|
7465
7539
|
);
|
|
7466
7540
|
Zt("type", [
|
|
7467
7541
|
y({
|
|
7468
|
-
type:
|
|
7542
|
+
type: j(
|
|
7469
7543
|
"SPLICE_WALLET_REQUEST"
|
|
7470
7544
|
/* SPLICE_WALLET_REQUEST */
|
|
7471
7545
|
),
|
|
@@ -7473,28 +7547,28 @@ Zt("type", [
|
|
|
7473
7547
|
target: re.optional()
|
|
7474
7548
|
}),
|
|
7475
7549
|
y({
|
|
7476
|
-
type:
|
|
7550
|
+
type: j(
|
|
7477
7551
|
"SPLICE_WALLET_RESPONSE"
|
|
7478
7552
|
/* SPLICE_WALLET_RESPONSE */
|
|
7479
7553
|
),
|
|
7480
7554
|
response: Kc
|
|
7481
7555
|
}),
|
|
7482
7556
|
y({
|
|
7483
|
-
type:
|
|
7557
|
+
type: j(
|
|
7484
7558
|
"SPLICE_WALLET_EXT_READY"
|
|
7485
7559
|
/* SPLICE_WALLET_EXT_READY */
|
|
7486
7560
|
),
|
|
7487
7561
|
target: re.optional()
|
|
7488
7562
|
}),
|
|
7489
7563
|
y({
|
|
7490
|
-
type:
|
|
7564
|
+
type: j(
|
|
7491
7565
|
"SPLICE_WALLET_EXT_ACK"
|
|
7492
7566
|
/* SPLICE_WALLET_EXT_ACK */
|
|
7493
7567
|
),
|
|
7494
7568
|
target: re.optional()
|
|
7495
7569
|
}),
|
|
7496
7570
|
y({
|
|
7497
|
-
type:
|
|
7571
|
+
type: j(
|
|
7498
7572
|
"SPLICE_WALLET_EXT_OPEN"
|
|
7499
7573
|
/* SPLICE_WALLET_EXT_OPEN */
|
|
7500
7574
|
),
|
|
@@ -7502,7 +7576,7 @@ Zt("type", [
|
|
|
7502
7576
|
target: re.optional()
|
|
7503
7577
|
}),
|
|
7504
7578
|
y({
|
|
7505
|
-
type:
|
|
7579
|
+
type: j(
|
|
7506
7580
|
"SPLICE_WALLET_IDP_AUTH_SUCCESS"
|
|
7507
7581
|
/* SPLICE_WALLET_IDP_AUTH_SUCCESS */
|
|
7508
7582
|
),
|
|
@@ -7512,13 +7586,13 @@ Zt("type", [
|
|
|
7512
7586
|
]);
|
|
7513
7587
|
Zt("walletType", [
|
|
7514
7588
|
y({
|
|
7515
|
-
walletType:
|
|
7589
|
+
walletType: j("extension"),
|
|
7516
7590
|
/** Matches {@link ProviderId} from discovery (e.g. `browser:canton`) for session restore. */
|
|
7517
7591
|
providerId: f().optional(),
|
|
7518
7592
|
url: ct(Jo())
|
|
7519
7593
|
}),
|
|
7520
7594
|
y({
|
|
7521
|
-
walletType:
|
|
7595
|
+
walletType: j("remote"),
|
|
7522
7596
|
url: f().url()
|
|
7523
7597
|
})
|
|
7524
7598
|
]);
|
|
@@ -7564,13 +7638,13 @@ var Wc = Object.defineProperty, tp = Object.getOwnPropertyDescriptor, da = (t) =
|
|
|
7564
7638
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
7565
7639
|
return o && a && Wc(e, r, a), a;
|
|
7566
7640
|
}, ca = (t, e, r) => e.has(t) || da("Cannot " + r), eo = (t, e, r) => (ca(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ro = (t, e, r) => e.has(t) ? da("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), oo = (t, e, r, o) => (ca(t, e, "write to private field"), e.set(t, r), r), Ie, Oe;
|
|
7567
|
-
let
|
|
7641
|
+
let jt = class extends h {
|
|
7568
7642
|
constructor() {
|
|
7569
7643
|
super(...arguments), this.client = null, ro(this, Ie, !1), ro(this, Oe, !1), this.syncWallets = async () => {
|
|
7570
7644
|
if (!(!this.client || this.isSyncing)) {
|
|
7571
7645
|
this.isSyncing = !0;
|
|
7572
7646
|
try {
|
|
7573
|
-
const t = await this.client.request({ method: "syncWallets" }), e = `Added: ${t.added.length}, Updated: ${t.updated.length}, Disabled: ${t.disabled.length}.`, r = new
|
|
7647
|
+
const t = await this.client.request({ method: "syncWallets" }), e = `Added: ${t.added.length}, Updated: ${t.updated.length}, Disabled: ${t.disabled.length}.`, r = new q();
|
|
7574
7648
|
r.title = "Wallet Sync Complete", r.message = e, r.type = "success", document.body.appendChild(r), await this.checkWalletSyncNeeded(), this.dispatchEvent(
|
|
7575
7649
|
new CustomEvent("sync-success", {
|
|
7576
7650
|
detail: {},
|
|
@@ -7631,7 +7705,7 @@ let Ct = class extends h {
|
|
|
7631
7705
|
};
|
|
7632
7706
|
Ie = /* @__PURE__ */ new WeakMap();
|
|
7633
7707
|
Oe = /* @__PURE__ */ new WeakMap();
|
|
7634
|
-
|
|
7708
|
+
jt.styles = [
|
|
7635
7709
|
h.styles,
|
|
7636
7710
|
z`
|
|
7637
7711
|
:host {
|
|
@@ -7696,31 +7770,31 @@ Ct.styles = [
|
|
|
7696
7770
|
];
|
|
7697
7771
|
er([
|
|
7698
7772
|
b({ attribute: !1 })
|
|
7699
|
-
],
|
|
7773
|
+
], jt.prototype, "client", 2);
|
|
7700
7774
|
er([
|
|
7701
|
-
|
|
7702
|
-
],
|
|
7775
|
+
D()
|
|
7776
|
+
], jt.prototype, "isSyncNeeded", 1);
|
|
7703
7777
|
er([
|
|
7704
|
-
|
|
7705
|
-
],
|
|
7706
|
-
|
|
7778
|
+
D()
|
|
7779
|
+
], jt.prototype, "isSyncing", 1);
|
|
7780
|
+
jt = er([
|
|
7707
7781
|
I("wg-wallets-sync")
|
|
7708
|
-
],
|
|
7782
|
+
], jt);
|
|
7709
7783
|
var ep = Object.defineProperty, rp = Object.getOwnPropertyDescriptor, pa = (t) => {
|
|
7710
7784
|
throw TypeError(t);
|
|
7711
|
-
},
|
|
7785
|
+
}, st = (t, e, r, o) => {
|
|
7712
7786
|
for (var a = o > 1 ? void 0 : o ? rp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7713
7787
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
7714
7788
|
return o && a && ep(e, r, a), a;
|
|
7715
|
-
}, ba = (t, e, r) => e.has(t) || pa("Cannot " + r), ir = (t, e, r) => (ba(t, e, "read from private field"), r ? r.call(t) : e.get(t)), nr = (t, e, r) => e.has(t) ? pa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), sr = (t, e, r, o) => (ba(t, e, "write to private field"), e.set(t, r), r), Ee,
|
|
7789
|
+
}, ba = (t, e, r) => e.has(t) || pa("Cannot " + r), ir = (t, e, r) => (ba(t, e, "read from private field"), r ? r.call(t) : e.get(t)), nr = (t, e, r) => e.has(t) ? pa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), sr = (t, e, r, o) => (ba(t, e, "write to private field"), e.set(t, r), r), Ee, Ce, je;
|
|
7716
7790
|
class op extends Event {
|
|
7717
7791
|
constructor(e, r, o) {
|
|
7718
7792
|
super("wallet-create", { bubbles: !0, composed: !0 }), this.partyHint = e, this.signingProviderId = r, this.primary = o;
|
|
7719
7793
|
}
|
|
7720
7794
|
}
|
|
7721
|
-
let
|
|
7795
|
+
let X = class extends h {
|
|
7722
7796
|
constructor() {
|
|
7723
|
-
super(...arguments), this.signingProviders = [], this.networkIds = [], this.loading = !1, this.submitLabel = "Add", nr(this, Ee, null), nr(this,
|
|
7797
|
+
super(...arguments), this.signingProviders = [], this.networkIds = [], this.loading = !1, this.submitLabel = "Add", nr(this, Ee, null), nr(this, Ce, null), nr(this, je, null);
|
|
7724
7798
|
}
|
|
7725
7799
|
get partyHintInput() {
|
|
7726
7800
|
return ir(this, Ee);
|
|
@@ -7729,16 +7803,16 @@ let L = class extends h {
|
|
|
7729
7803
|
sr(this, Ee, t);
|
|
7730
7804
|
}
|
|
7731
7805
|
get signingProviderSelect() {
|
|
7732
|
-
return ir(this,
|
|
7806
|
+
return ir(this, Ce);
|
|
7733
7807
|
}
|
|
7734
7808
|
set signingProviderSelect(t) {
|
|
7735
|
-
sr(this,
|
|
7809
|
+
sr(this, Ce, t);
|
|
7736
7810
|
}
|
|
7737
7811
|
get primaryCheckbox() {
|
|
7738
|
-
return ir(this,
|
|
7812
|
+
return ir(this, je);
|
|
7739
7813
|
}
|
|
7740
7814
|
set primaryCheckbox(t) {
|
|
7741
|
-
sr(this,
|
|
7815
|
+
sr(this, je, t);
|
|
7742
7816
|
}
|
|
7743
7817
|
onSubmit(t) {
|
|
7744
7818
|
t.preventDefault();
|
|
@@ -7829,9 +7903,9 @@ let L = class extends h {
|
|
|
7829
7903
|
}
|
|
7830
7904
|
};
|
|
7831
7905
|
Ee = /* @__PURE__ */ new WeakMap();
|
|
7832
|
-
je = /* @__PURE__ */ new WeakMap();
|
|
7833
7906
|
Ce = /* @__PURE__ */ new WeakMap();
|
|
7834
|
-
|
|
7907
|
+
je = /* @__PURE__ */ new WeakMap();
|
|
7908
|
+
X.styles = [
|
|
7835
7909
|
h.styles,
|
|
7836
7910
|
z`
|
|
7837
7911
|
:host {
|
|
@@ -7933,30 +8007,30 @@ L.styles = [
|
|
|
7933
8007
|
}
|
|
7934
8008
|
`
|
|
7935
8009
|
];
|
|
7936
|
-
|
|
8010
|
+
st([
|
|
7937
8011
|
b({ type: Array })
|
|
7938
|
-
],
|
|
7939
|
-
|
|
8012
|
+
], X.prototype, "signingProviders", 2);
|
|
8013
|
+
st([
|
|
7940
8014
|
b({ type: Array })
|
|
7941
|
-
],
|
|
7942
|
-
|
|
8015
|
+
], X.prototype, "networkIds", 2);
|
|
8016
|
+
st([
|
|
7943
8017
|
b({ type: Boolean })
|
|
7944
|
-
],
|
|
7945
|
-
|
|
8018
|
+
], X.prototype, "loading", 2);
|
|
8019
|
+
st([
|
|
7946
8020
|
b({ type: String })
|
|
7947
|
-
],
|
|
7948
|
-
|
|
8021
|
+
], X.prototype, "submitLabel", 2);
|
|
8022
|
+
st([
|
|
7949
8023
|
pt("#party-id-hint")
|
|
7950
|
-
],
|
|
7951
|
-
|
|
8024
|
+
], X.prototype, "partyHintInput", 1);
|
|
8025
|
+
st([
|
|
7952
8026
|
pt("#signing-provider-id")
|
|
7953
|
-
],
|
|
7954
|
-
|
|
8027
|
+
], X.prototype, "signingProviderSelect", 1);
|
|
8028
|
+
st([
|
|
7955
8029
|
pt("#primary")
|
|
7956
|
-
],
|
|
7957
|
-
|
|
8030
|
+
], X.prototype, "primaryCheckbox", 1);
|
|
8031
|
+
X = st([
|
|
7958
8032
|
I("wg-wallet-create-form")
|
|
7959
|
-
],
|
|
8033
|
+
], X);
|
|
7960
8034
|
var ap = Object.defineProperty, ip = Object.getOwnPropertyDescriptor, rr = (t, e, r, o) => {
|
|
7961
8035
|
for (var a = o > 1 ? void 0 : o ? ip(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
7962
8036
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
@@ -8137,8 +8211,8 @@ _t.styles = [
|
|
|
8137
8211
|
}
|
|
8138
8212
|
|
|
8139
8213
|
.badge-right {
|
|
8140
|
-
background:
|
|
8141
|
-
color: var(--wg-
|
|
8214
|
+
background: var(--wg-badge-bg);
|
|
8215
|
+
color: var(--wg-text);
|
|
8142
8216
|
}
|
|
8143
8217
|
|
|
8144
8218
|
.rights-badges {
|
|
@@ -8261,7 +8335,7 @@ var lp = Object.defineProperty, dp = Object.getOwnPropertyDescriptor, ma = (t) =
|
|
|
8261
8335
|
for (var a = o > 1 ? void 0 : o ? dp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
8262
8336
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
8263
8337
|
return o && a && lp(e, r, a), a;
|
|
8264
|
-
}, ga = (t, e, r) => e.has(t) || ma("Cannot " + r), oe = (t, e, r) => (ga(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ae = (t, e, r) => e.has(t) ? ma("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ie = (t, e, r, o) => (ga(t, e, "write to private field"), e.set(t, r), r), _e, Pe,
|
|
8338
|
+
}, ga = (t, e, r) => e.has(t) || ma("Cannot " + r), oe = (t, e, r) => (ga(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ae = (t, e, r) => e.has(t) ? ma("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ie = (t, e, r, o) => (ga(t, e, "write to private field"), e.set(t, r), r), _e, Pe, De, Be;
|
|
8265
8339
|
class cp extends Event {
|
|
8266
8340
|
constructor(e, r, o) {
|
|
8267
8341
|
super("login-connect", { bubbles: !0, composed: !0 }), this.selectedNetwork = e, this.selectedIdp = r, this.clientId = o;
|
|
@@ -8276,9 +8350,9 @@ class pp extends Event {
|
|
|
8276
8350
|
});
|
|
8277
8351
|
}
|
|
8278
8352
|
}
|
|
8279
|
-
let
|
|
8353
|
+
let G = class extends h {
|
|
8280
8354
|
constructor() {
|
|
8281
|
-
super(...arguments), this.networks = [], this.idps = [], this.connecting = !1, this.backHref = "/", ae(this, _e, null), ae(this, Pe, null), ae(this,
|
|
8355
|
+
super(...arguments), this.networks = [], this.idps = [], this.connecting = !1, this.backHref = "/", ae(this, _e, null), ae(this, Pe, null), ae(this, De, null), ae(this, Be, null);
|
|
8282
8356
|
}
|
|
8283
8357
|
get selectedNetwork() {
|
|
8284
8358
|
return oe(this, _e);
|
|
@@ -8293,16 +8367,16 @@ let U = class extends h {
|
|
|
8293
8367
|
ie(this, Pe, t);
|
|
8294
8368
|
}
|
|
8295
8369
|
get message() {
|
|
8296
|
-
return oe(this,
|
|
8370
|
+
return oe(this, De);
|
|
8297
8371
|
}
|
|
8298
8372
|
set message(t) {
|
|
8299
|
-
ie(this,
|
|
8373
|
+
ie(this, De, t);
|
|
8300
8374
|
}
|
|
8301
8375
|
get messageType() {
|
|
8302
|
-
return oe(this,
|
|
8376
|
+
return oe(this, Be);
|
|
8303
8377
|
}
|
|
8304
8378
|
set messageType(t) {
|
|
8305
|
-
ie(this,
|
|
8379
|
+
ie(this, Be, t);
|
|
8306
8380
|
}
|
|
8307
8381
|
updated(t) {
|
|
8308
8382
|
if (super.updated(t), t.has("networks") && !this.selectedNetwork) {
|
|
@@ -8453,9 +8527,9 @@ let U = class extends h {
|
|
|
8453
8527
|
};
|
|
8454
8528
|
_e = /* @__PURE__ */ new WeakMap();
|
|
8455
8529
|
Pe = /* @__PURE__ */ new WeakMap();
|
|
8456
|
-
Be = /* @__PURE__ */ new WeakMap();
|
|
8457
8530
|
De = /* @__PURE__ */ new WeakMap();
|
|
8458
|
-
|
|
8531
|
+
Be = /* @__PURE__ */ new WeakMap();
|
|
8532
|
+
G.styles = [
|
|
8459
8533
|
h.styles,
|
|
8460
8534
|
z`
|
|
8461
8535
|
:host {
|
|
@@ -8545,31 +8619,31 @@ U.styles = [
|
|
|
8545
8619
|
];
|
|
8546
8620
|
K([
|
|
8547
8621
|
b({ type: Array })
|
|
8548
|
-
],
|
|
8622
|
+
], G.prototype, "networks", 2);
|
|
8549
8623
|
K([
|
|
8550
8624
|
b({ type: Array })
|
|
8551
|
-
],
|
|
8625
|
+
], G.prototype, "idps", 2);
|
|
8552
8626
|
K([
|
|
8553
8627
|
b({ type: Boolean })
|
|
8554
|
-
],
|
|
8628
|
+
], G.prototype, "connecting", 2);
|
|
8555
8629
|
K([
|
|
8556
8630
|
b({ type: String })
|
|
8557
|
-
],
|
|
8631
|
+
], G.prototype, "backHref", 2);
|
|
8558
8632
|
K([
|
|
8559
|
-
|
|
8560
|
-
],
|
|
8633
|
+
D()
|
|
8634
|
+
], G.prototype, "selectedNetwork", 1);
|
|
8561
8635
|
K([
|
|
8562
|
-
|
|
8563
|
-
],
|
|
8636
|
+
D()
|
|
8637
|
+
], G.prototype, "selectedIdp", 1);
|
|
8564
8638
|
K([
|
|
8565
|
-
|
|
8566
|
-
],
|
|
8639
|
+
D()
|
|
8640
|
+
], G.prototype, "message", 1);
|
|
8567
8641
|
K([
|
|
8568
|
-
|
|
8569
|
-
],
|
|
8570
|
-
|
|
8642
|
+
D()
|
|
8643
|
+
], G.prototype, "messageType", 1);
|
|
8644
|
+
G = K([
|
|
8571
8645
|
I("wg-login-form")
|
|
8572
|
-
],
|
|
8646
|
+
], G);
|
|
8573
8647
|
function bp(t) {
|
|
8574
8648
|
const e = t.toLowerCase();
|
|
8575
8649
|
return e === "executed" || e === "signed" ? "success" : e === "pending" ? "warning" : e === "failed" || e === "rejected" ? "danger" : "default";
|
|
@@ -8603,7 +8677,7 @@ function wa(t) {
|
|
|
8603
8677
|
const e = t?.amount;
|
|
8604
8678
|
return e || "N/A";
|
|
8605
8679
|
}
|
|
8606
|
-
var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor,
|
|
8680
|
+
var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor, Q = (t, e, r, o) => {
|
|
8607
8681
|
for (var a = o > 1 ? void 0 : o ? gp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
8608
8682
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
8609
8683
|
return o && a && mp(e, r, a), a;
|
|
@@ -8613,9 +8687,9 @@ class up extends Event {
|
|
|
8613
8687
|
super("transaction-review", { bubbles: !0, composed: !0 }), this.commandId = e;
|
|
8614
8688
|
}
|
|
8615
8689
|
}
|
|
8616
|
-
let
|
|
8690
|
+
let U = class extends h {
|
|
8617
8691
|
constructor() {
|
|
8618
|
-
super(...arguments), this.commandId = "", this.status = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.loading = !1;
|
|
8692
|
+
super(...arguments), this.commandId = "", this.externalTxId = null, this.status = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.loading = !1;
|
|
8619
8693
|
}
|
|
8620
8694
|
renderFieldRow(t, e, r = {}) {
|
|
8621
8695
|
const o = [
|
|
@@ -8626,7 +8700,7 @@ let X = class extends h {
|
|
|
8626
8700
|
return p`
|
|
8627
8701
|
<div class="field">
|
|
8628
8702
|
<span class="label">${t}</span>
|
|
8629
|
-
<span class=${o} title=${r.title ??
|
|
8703
|
+
<span class=${o} title=${r.title ?? Z}
|
|
8630
8704
|
>${e}</span
|
|
8631
8705
|
>
|
|
8632
8706
|
</div>
|
|
@@ -8649,6 +8723,14 @@ let X = class extends h {
|
|
|
8649
8723
|
title: this.commandId,
|
|
8650
8724
|
truncate: !0
|
|
8651
8725
|
})}
|
|
8726
|
+
${this.externalTxId ? this.renderFieldRow(
|
|
8727
|
+
"External transaction ID",
|
|
8728
|
+
this.externalTxId,
|
|
8729
|
+
{
|
|
8730
|
+
title: this.externalTxId,
|
|
8731
|
+
truncate: !0
|
|
8732
|
+
}
|
|
8733
|
+
) : Z}
|
|
8652
8734
|
${this.renderFieldRow(
|
|
8653
8735
|
"Status",
|
|
8654
8736
|
p`
|
|
@@ -8681,7 +8763,7 @@ let X = class extends h {
|
|
|
8681
8763
|
`;
|
|
8682
8764
|
}
|
|
8683
8765
|
};
|
|
8684
|
-
|
|
8766
|
+
U.styles = [
|
|
8685
8767
|
h.styles,
|
|
8686
8768
|
Xt,
|
|
8687
8769
|
z`
|
|
@@ -8752,31 +8834,34 @@ X.styles = [
|
|
|
8752
8834
|
}
|
|
8753
8835
|
`
|
|
8754
8836
|
];
|
|
8755
|
-
|
|
8837
|
+
Q([
|
|
8756
8838
|
b()
|
|
8757
|
-
],
|
|
8758
|
-
|
|
8839
|
+
], U.prototype, "commandId", 2);
|
|
8840
|
+
Q([
|
|
8759
8841
|
b()
|
|
8760
|
-
],
|
|
8761
|
-
|
|
8842
|
+
], U.prototype, "externalTxId", 2);
|
|
8843
|
+
Q([
|
|
8844
|
+
b()
|
|
8845
|
+
], U.prototype, "status", 2);
|
|
8846
|
+
Q([
|
|
8762
8847
|
b({ type: Object })
|
|
8763
|
-
],
|
|
8764
|
-
|
|
8848
|
+
], U.prototype, "parsed", 2);
|
|
8849
|
+
Q([
|
|
8765
8850
|
b()
|
|
8766
|
-
],
|
|
8767
|
-
|
|
8851
|
+
], U.prototype, "createdAt", 2);
|
|
8852
|
+
Q([
|
|
8768
8853
|
b()
|
|
8769
|
-
],
|
|
8770
|
-
|
|
8854
|
+
], U.prototype, "signedAt", 2);
|
|
8855
|
+
Q([
|
|
8771
8856
|
b()
|
|
8772
|
-
],
|
|
8773
|
-
|
|
8857
|
+
], U.prototype, "origin", 2);
|
|
8858
|
+
Q([
|
|
8774
8859
|
b()
|
|
8775
|
-
],
|
|
8776
|
-
|
|
8860
|
+
], U.prototype, "loading", 2);
|
|
8861
|
+
U = Q([
|
|
8777
8862
|
I("wg-transaction-card")
|
|
8778
|
-
],
|
|
8779
|
-
var fp = Object.defineProperty, hp = Object.getOwnPropertyDescriptor,
|
|
8863
|
+
], U);
|
|
8864
|
+
var fp = Object.defineProperty, hp = Object.getOwnPropertyDescriptor, T = (t, e, r, o) => {
|
|
8780
8865
|
for (var a = o > 1 ? void 0 : o ? hp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
|
|
8781
8866
|
(i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
|
|
8782
8867
|
return o && a && fp(e, r, a), a;
|
|
@@ -8791,9 +8876,9 @@ class wp extends Event {
|
|
|
8791
8876
|
super("transaction-delete", { bubbles: !0, composed: !0 }), this.commandId = e;
|
|
8792
8877
|
}
|
|
8793
8878
|
}
|
|
8794
|
-
let
|
|
8879
|
+
let P = class extends h {
|
|
8795
8880
|
constructor() {
|
|
8796
|
-
super(...arguments), this.commandId = "", this.status = "", this.txHash = "", this.tx = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.backHref = "", this.isApproving = !1, this.isDeleting = !1, this.disabled = !1, this.decodedExpanded = !1;
|
|
8881
|
+
super(...arguments), this.commandId = "", this.externalTxId = null, this.status = "", this.txHash = "", this.tx = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.backHref = "", this.isApproving = !1, this.isDeleting = !1, this.disabled = !1, this.decodedExpanded = !1;
|
|
8797
8882
|
}
|
|
8798
8883
|
get isApproveDisabled() {
|
|
8799
8884
|
return this.disabled || this.isApproving || this.isDeleting;
|
|
@@ -8820,7 +8905,7 @@ let B = class extends h {
|
|
|
8820
8905
|
.value=${e}
|
|
8821
8906
|
.label=${r}
|
|
8822
8907
|
></wg-copy-button>
|
|
8823
|
-
` :
|
|
8908
|
+
` : Z}
|
|
8824
8909
|
</div>
|
|
8825
8910
|
</div>
|
|
8826
8911
|
</section>
|
|
@@ -8893,7 +8978,7 @@ let B = class extends h {
|
|
|
8893
8978
|
<span class="icon">${co}</span>
|
|
8894
8979
|
<span>Back</span>
|
|
8895
8980
|
</a>
|
|
8896
|
-
` :
|
|
8981
|
+
` : Z}
|
|
8897
8982
|
</div>
|
|
8898
8983
|
|
|
8899
8984
|
<div class="detail-grid">
|
|
@@ -8924,6 +9009,11 @@ let B = class extends h {
|
|
|
8924
9009
|
this.commandId,
|
|
8925
9010
|
"Copy transaction ID"
|
|
8926
9011
|
)}
|
|
9012
|
+
${this.externalTxId ? this.renderCopyableValue(
|
|
9013
|
+
"External transaction ID",
|
|
9014
|
+
this.externalTxId,
|
|
9015
|
+
"Copy external transaction ID"
|
|
9016
|
+
) : Z}
|
|
8927
9017
|
${this.renderCopyableValue(
|
|
8928
9018
|
"Transaction hash",
|
|
8929
9019
|
this.txHash,
|
|
@@ -8954,9 +9044,9 @@ let B = class extends h {
|
|
|
8954
9044
|
.value=${this.parsed.jsonString}
|
|
8955
9045
|
label="Copy decoded hash"
|
|
8956
9046
|
></wg-copy-button>
|
|
8957
|
-
` :
|
|
9047
|
+
` : Z}
|
|
8958
9048
|
</div>
|
|
8959
|
-
${this.decodedExpanded ? this.renderDecodedBox(r) :
|
|
9049
|
+
${this.decodedExpanded ? this.renderDecodedBox(r) : Z}
|
|
8960
9050
|
</section>
|
|
8961
9051
|
</div>
|
|
8962
9052
|
|
|
@@ -8964,7 +9054,7 @@ let B = class extends h {
|
|
|
8964
9054
|
`;
|
|
8965
9055
|
}
|
|
8966
9056
|
renderActionButtons() {
|
|
8967
|
-
return this.status !== "pending" && this.status !== "signed" ?
|
|
9057
|
+
return this.status !== "pending" && this.status !== "signed" ? Z : p`
|
|
8968
9058
|
<div class="actions">
|
|
8969
9059
|
${this.status === "pending" ? p`
|
|
8970
9060
|
<button
|
|
@@ -8976,10 +9066,10 @@ let B = class extends h {
|
|
|
8976
9066
|
>
|
|
8977
9067
|
${this.isDeleting ? p`<div
|
|
8978
9068
|
class="spinner-border spinner-border-sm"
|
|
8979
|
-
></div>` :
|
|
9069
|
+
></div>` : Z}
|
|
8980
9070
|
Reject
|
|
8981
9071
|
</button>
|
|
8982
|
-
` :
|
|
9072
|
+
` : Z}
|
|
8983
9073
|
|
|
8984
9074
|
<button
|
|
8985
9075
|
class="btn btn-primary rounded-pill d-inline-flex align-items-center justify-content-center gap-2"
|
|
@@ -8990,14 +9080,14 @@ let B = class extends h {
|
|
|
8990
9080
|
>
|
|
8991
9081
|
${this.isApproving ? p`<div
|
|
8992
9082
|
class="spinner-border spinner-border-sm"
|
|
8993
|
-
></div>` :
|
|
9083
|
+
></div>` : Z}
|
|
8994
9084
|
Approve
|
|
8995
9085
|
</button>
|
|
8996
9086
|
</div>
|
|
8997
9087
|
`;
|
|
8998
9088
|
}
|
|
8999
9089
|
};
|
|
9000
|
-
|
|
9090
|
+
P.styles = [
|
|
9001
9091
|
h.styles,
|
|
9002
9092
|
z`
|
|
9003
9093
|
:host {
|
|
@@ -9206,52 +9296,55 @@ B.styles = [
|
|
|
9206
9296
|
}
|
|
9207
9297
|
`
|
|
9208
9298
|
];
|
|
9209
|
-
|
|
9299
|
+
T([
|
|
9210
9300
|
b()
|
|
9211
|
-
],
|
|
9212
|
-
|
|
9301
|
+
], P.prototype, "commandId", 2);
|
|
9302
|
+
T([
|
|
9213
9303
|
b()
|
|
9214
|
-
],
|
|
9215
|
-
|
|
9304
|
+
], P.prototype, "externalTxId", 2);
|
|
9305
|
+
T([
|
|
9216
9306
|
b()
|
|
9217
|
-
],
|
|
9218
|
-
|
|
9307
|
+
], P.prototype, "status", 2);
|
|
9308
|
+
T([
|
|
9219
9309
|
b()
|
|
9220
|
-
],
|
|
9221
|
-
|
|
9310
|
+
], P.prototype, "txHash", 2);
|
|
9311
|
+
T([
|
|
9312
|
+
b()
|
|
9313
|
+
], P.prototype, "tx", 2);
|
|
9314
|
+
T([
|
|
9222
9315
|
b({ type: Object })
|
|
9223
|
-
],
|
|
9224
|
-
|
|
9316
|
+
], P.prototype, "parsed", 2);
|
|
9317
|
+
T([
|
|
9225
9318
|
b()
|
|
9226
|
-
],
|
|
9227
|
-
|
|
9319
|
+
], P.prototype, "createdAt", 2);
|
|
9320
|
+
T([
|
|
9228
9321
|
b()
|
|
9229
|
-
],
|
|
9230
|
-
|
|
9322
|
+
], P.prototype, "signedAt", 2);
|
|
9323
|
+
T([
|
|
9231
9324
|
b()
|
|
9232
|
-
],
|
|
9233
|
-
|
|
9325
|
+
], P.prototype, "origin", 2);
|
|
9326
|
+
T([
|
|
9234
9327
|
b()
|
|
9235
|
-
],
|
|
9236
|
-
|
|
9328
|
+
], P.prototype, "backHref", 2);
|
|
9329
|
+
T([
|
|
9237
9330
|
b({ type: Boolean })
|
|
9238
|
-
],
|
|
9239
|
-
|
|
9331
|
+
], P.prototype, "isApproving", 2);
|
|
9332
|
+
T([
|
|
9240
9333
|
b({ type: Boolean })
|
|
9241
|
-
],
|
|
9242
|
-
|
|
9334
|
+
], P.prototype, "isDeleting", 2);
|
|
9335
|
+
T([
|
|
9243
9336
|
b({ type: Boolean })
|
|
9244
|
-
],
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
],
|
|
9248
|
-
|
|
9337
|
+
], P.prototype, "disabled", 2);
|
|
9338
|
+
T([
|
|
9339
|
+
D()
|
|
9340
|
+
], P.prototype, "decodedExpanded", 2);
|
|
9341
|
+
P = T([
|
|
9249
9342
|
I("wg-transaction-detail")
|
|
9250
|
-
],
|
|
9251
|
-
let
|
|
9343
|
+
], P);
|
|
9344
|
+
let V;
|
|
9252
9345
|
class Le {
|
|
9253
9346
|
static getInstance() {
|
|
9254
|
-
if (!
|
|
9347
|
+
if (!V || V.closed) {
|
|
9255
9348
|
console.log("[PopupInstance] Creating new global popup instance");
|
|
9256
9349
|
const e = window.open(
|
|
9257
9350
|
"",
|
|
@@ -9259,13 +9352,13 @@ class Le {
|
|
|
9259
9352
|
"width=400,height=600,screenX=200,screenY=200"
|
|
9260
9353
|
);
|
|
9261
9354
|
if (!e) throw new Error("Failed to open popup window");
|
|
9262
|
-
|
|
9355
|
+
V = e;
|
|
9263
9356
|
}
|
|
9264
|
-
return
|
|
9357
|
+
return V;
|
|
9265
9358
|
}
|
|
9266
9359
|
constructor() {
|
|
9267
9360
|
const e = () => {
|
|
9268
|
-
|
|
9361
|
+
V && (console.log("[PopupInstance] Closing popup instance on unload"), V.close(), V = void 0);
|
|
9269
9362
|
};
|
|
9270
9363
|
window.addEventListener("beforeunload", e), window.addEventListener("unload", e);
|
|
9271
9364
|
}
|
|
@@ -9279,11 +9372,16 @@ class Le {
|
|
|
9279
9372
|
}
|
|
9280
9373
|
}
|
|
9281
9374
|
close() {
|
|
9282
|
-
console.log("[PopupInstance] Closing popup instance"),
|
|
9375
|
+
console.log("[PopupInstance] Closing popup instance"), V && V.close();
|
|
9283
9376
|
}
|
|
9284
9377
|
getComponentUrl(e, r) {
|
|
9285
|
-
const { title: o = "Custom Popup" } = r || {}, a = e.styles
|
|
9286
|
-
|
|
9378
|
+
const { title: o = "Custom Popup" } = r || {}, a = this.escapeStylesForTemplate(e.styles);
|
|
9379
|
+
let n = e.toString();
|
|
9380
|
+
n = n.replace(
|
|
9381
|
+
/static\s+styles\s*=\s*[^;]*;?/g,
|
|
9382
|
+
""
|
|
9383
|
+
);
|
|
9384
|
+
const i = `<!DOCTYPE html>
|
|
9287
9385
|
<html>
|
|
9288
9386
|
<head>
|
|
9289
9387
|
<title>${o}</title>
|
|
@@ -9320,6 +9418,9 @@ class Le {
|
|
|
9320
9418
|
</html>`;
|
|
9321
9419
|
return URL.createObjectURL(new Blob([i], { type: "text/html" }));
|
|
9322
9420
|
}
|
|
9421
|
+
escapeStylesForTemplate(e) {
|
|
9422
|
+
return e.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("</", "<\\/");
|
|
9423
|
+
}
|
|
9323
9424
|
}
|
|
9324
9425
|
const xp = new Le();
|
|
9325
9426
|
async function Pp(t) {
|
|
@@ -9355,16 +9456,16 @@ async function Pp(t) {
|
|
|
9355
9456
|
}
|
|
9356
9457
|
export {
|
|
9357
9458
|
no as ALLOWED_ROUTES,
|
|
9358
|
-
|
|
9359
|
-
|
|
9459
|
+
W as AppHeader,
|
|
9460
|
+
tt as AppLayout,
|
|
9360
9461
|
h as BaseElement,
|
|
9361
9462
|
ni as CopySuccessEvent,
|
|
9362
9463
|
di as ErrorPageBackEvent,
|
|
9363
9464
|
ci as ErrorPageRefreshEvent,
|
|
9364
|
-
|
|
9465
|
+
L as FormInput,
|
|
9365
9466
|
wi as FormInputChangedEvent,
|
|
9366
|
-
|
|
9367
|
-
|
|
9467
|
+
ji as IdpAddEvent,
|
|
9468
|
+
Gt as IdpCard,
|
|
9368
9469
|
Ip as IdpCardDeleteEvent,
|
|
9369
9470
|
ki as IdpCardReviewEvent,
|
|
9370
9471
|
Op as IdpCardUpdateEvent,
|
|
@@ -9377,18 +9478,18 @@ export {
|
|
|
9377
9478
|
cp as LoginConnectEvent,
|
|
9378
9479
|
Wa as LogoutEvent,
|
|
9379
9480
|
dt as NetworkCard,
|
|
9380
|
-
|
|
9481
|
+
Cp as NetworkCardDeleteEvent,
|
|
9381
9482
|
Ti as NetworkCardReviewEvent,
|
|
9382
|
-
|
|
9483
|
+
jp as NetworkCardUpdateEvent,
|
|
9383
9484
|
$c as NetworkDeleteEvent,
|
|
9384
9485
|
Mc as NetworkEditCancelEvent,
|
|
9385
9486
|
Rc as NetworkEditSaveEvent,
|
|
9386
|
-
|
|
9487
|
+
Ct as NetworkForm,
|
|
9387
9488
|
_p as NetworkFormBackEvent,
|
|
9388
9489
|
St as NetworkTable,
|
|
9389
|
-
|
|
9490
|
+
Ue as NotFound,
|
|
9390
9491
|
ui as PageChangeEvent,
|
|
9391
|
-
|
|
9492
|
+
q as Toast,
|
|
9392
9493
|
vp as TransactionApproveEvent,
|
|
9393
9494
|
up as TransactionCardReviewEvent,
|
|
9394
9495
|
wp as TransactionDeleteEvent,
|
|
@@ -9397,21 +9498,21 @@ export {
|
|
|
9397
9498
|
Ze as WalletPicker,
|
|
9398
9499
|
np as WalletSetPrimaryEvent,
|
|
9399
9500
|
zt as WgCopyButton,
|
|
9400
|
-
|
|
9401
|
-
|
|
9501
|
+
et as WgErrorPage,
|
|
9502
|
+
jr as WgFormInput,
|
|
9402
9503
|
lt as WgIdps,
|
|
9403
9504
|
Ne as WgLoadingState,
|
|
9404
|
-
|
|
9505
|
+
G as WgLoginForm,
|
|
9405
9506
|
F as WgNetworks,
|
|
9406
9507
|
At as WgPagination,
|
|
9407
9508
|
He as WgSessions,
|
|
9408
|
-
|
|
9409
|
-
|
|
9509
|
+
U as WgTransactionCard,
|
|
9510
|
+
P as WgTransactionDetail,
|
|
9410
9511
|
_t as WgWalletCard,
|
|
9411
|
-
|
|
9412
|
-
|
|
9512
|
+
X as WgWalletCreateForm,
|
|
9513
|
+
jt as WgWalletsSync,
|
|
9413
9514
|
co as chevronLeftIcon,
|
|
9414
|
-
|
|
9515
|
+
Ua as getCurrentRoute,
|
|
9415
9516
|
Qc as handleErrorToast,
|
|
9416
9517
|
Ap as isAllowedRoute,
|
|
9417
9518
|
Pp as pickWallet,
|