@golemui/gui-lit 1.1.1-rc.2 → 1.1.1-rc.3
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/CHANGELOG.md +4 -0
- package/{calendar-D31xNsxx.js → calendar-DleRbmvP.js} +2 -2
- package/{calendar.element-BhFrCsns.js → calendar.element-Cv3RBphf.js} +1 -1
- package/{checkbox.element-DAAVB651.js → checkbox.element-CpmrzdH0.js} +12 -10
- package/{currency.element-D8A2ObpM.js → currency.element-Cezgzbbs.js} +1 -1
- package/{date-input-DLiMreSS.js → date-input-B3yHsn-g.js} +1 -1
- package/{date-picker.element-DeUQtbLg.js → date-picker.element-ByZefznr.js} +3 -3
- package/{date-time-calendar-DzU-FtVl.js → date-time-calendar-CB5cNoOX.js} +3 -3
- package/{date-time-calendar.element-BLBcVsFu.js → date-time-calendar.element-DlbWZjoe.js} +1 -1
- package/{date-time-input-DZaz2heD.js → date-time-input-DrY68YDX.js} +1 -1
- package/{date-time-picker.element-BUbLdV6i.js → date-time-picker.element-CYwmumfq.js} +3 -3
- package/{date-time.element-B5onfSBG.js → date-time.element-CLLxM2nV.js} +2 -2
- package/{date.element-BsKhLrEc.js → date.element-B8ZHK9KJ.js} +2 -2
- package/{day-status-CsWStVQV.js → day-status-ljexnwEO.js} +1 -1
- package/{dropdown.element-CXpMwJsU.js → dropdown.element-DMZ7oL5n.js} +1 -1
- package/{errors-Byb2dIhK.js → errors-Bs_vYN-_.js} +1 -1
- package/index.js +902 -956
- package/index.umd.cjs +133 -133
- package/lib/components/form.element.d.ts +3 -12
- package/{list.element-eo3DIOrp.js → list.element-ADtUK2na.js} +1 -1
- package/{markdown.element-FbtwdnAv.js → markdown.element-D5zcxAUS.js} +1 -1
- package/{number.element-BEpOCzXy.js → number.element-DEY5tR_y.js} +1 -1
- package/package.json +6 -6
- package/{password.element-CBaB8h5b.js → password.element-C1aQh_iz.js} +1 -1
- package/{radiogroup.element-GKhoX1n2.js → radiogroup.element-B2G-XyGx.js} +1 -1
- package/{range-calendar-DO_woqcF.js → range-calendar-D7sG24Kx.js} +2 -2
- package/{range-calendar.element-DHLZhpnj.js → range-calendar.element-D5eb2f7p.js} +1 -1
- package/{range-date-input-Br7XqQPK.js → range-date-input-BChaoBC1.js} +1 -1
- package/{range-date-input.element-BdD4SlB4.js → range-date-input.element-C35grlYo.js} +1 -1
- package/{range-date-picker.element-DWRHiAoC.js → range-date-picker.element-Do5YsL5V.js} +3 -3
- package/{range-date-time-calendar-B3EMgN1E.js → range-date-time-calendar-DulGK2EQ.js} +3 -3
- package/{range-date-time-calendar.element-Coea6RF4.js → range-date-time-calendar.element-BV0J96Gu.js} +1 -1
- package/{range-date-time-input-Cu-T_nuC.js → range-date-time-input-8ggqckP7.js} +1 -1
- package/{range-date-time-input.element-Cti44iuW.js → range-date-time-input.element-CzgRbR9F.js} +1 -1
- package/{range-date-time-picker.element-CDN2RL1y.js → range-date-time-picker.element-hi5KdopZ.js} +3 -3
- package/{range-time-input-BP9ZL9O8.js → range-time-input-D7GFdDeA.js} +1 -1
- package/{range-time-input.element-B7wtHJoQ.js → range-time-input.element-BOHLUO8z.js} +1 -1
- package/{range-time-picker.element-CPIAiQPC.js → range-time-picker.element-DDNQMA_u.js} +2 -2
- package/{repeater.element-tEuTeMLO.js → repeater.element-Da8YN1Vy.js} +1 -1
- package/{select.element-DzUFQKcu.js → select.element-SDxBhGjz.js} +1 -1
- package/{tags.element-CPHgotb0.js → tags.element-Bnhfevp3.js} +1 -1
- package/{templates-Dmr34nwp.js → templates-Df7abEkB.js} +28 -24
- package/{textarea.element-CiNEy9uq.js → textarea.element-Dx7eYEnl.js} +1 -1
- package/{textinput.element-AL2Nr768.js → textinput.element-BnIoDRmY.js} +1 -1
- package/{time-input-5dkSm8UW.js → time-input-Kk4EX6at.js} +1 -1
- package/{time-picker-g337F8d0.js → time-picker-DLj1rhOf.js} +2 -2
- package/{time-picker.element-DLihegjg.js → time-picker.element-C3oR0EkQ.js} +1 -1
- package/{time.element-BneqgMlQ.js → time.element-X286nthD.js} +2 -2
- package/{toggle.element-Cz91CRdp.js → toggle.element-Dokdat_o.js} +4 -2
package/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { filterTap as En, standardValidate as Ft, isStandardValidateSuccess as jt } from "@golemui/core";
|
|
2
1
|
import "@golemui/gui-shared";
|
|
3
|
-
import "@golemui/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { filterTap as vn, standardValidate as xt, isStandardValidateSuccess as Wt } from "@golemui/core";
|
|
3
|
+
import { createFormComponent as In } from "@golemui/lit";
|
|
4
|
+
import { customElement as En } from "lit/decorators.js";
|
|
6
5
|
function x(e) {
|
|
7
6
|
return function(t, n = () => !0) {
|
|
8
7
|
return {
|
|
@@ -21,7 +20,7 @@ const R = {
|
|
|
21
20
|
}, D = {
|
|
22
21
|
...R
|
|
23
22
|
};
|
|
24
|
-
class
|
|
23
|
+
class wn {
|
|
25
24
|
constructor() {
|
|
26
25
|
this.handlerByItemType = /* @__PURE__ */ new Map(), this.kindByItemType = /* @__PURE__ */ new Map();
|
|
27
26
|
}
|
|
@@ -63,8 +62,8 @@ class Dn {
|
|
|
63
62
|
return this.handlerByItemType.has(t);
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
return new
|
|
65
|
+
function An() {
|
|
66
|
+
return new wn();
|
|
68
67
|
}
|
|
69
68
|
function y(e) {
|
|
70
69
|
const t = (a) => {
|
|
@@ -103,11 +102,11 @@ function y(e) {
|
|
|
103
102
|
}, i = x(e.itemType), o = (a, u) => i(u, ((c) => c.uid === a));
|
|
104
103
|
return { itemType: e.itemType, kind: e.kind, handler: s, gsl: i, gslByUid: o };
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function Pn(e, t) {
|
|
107
106
|
e.registerItemType(t.itemType, t.handler, t.kind);
|
|
108
107
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
108
|
+
const zn = ["tag", "state", "tagsAnd", "tagsOr"];
|
|
109
|
+
function Dn(e, t) {
|
|
111
110
|
if (t.length === 0)
|
|
112
111
|
return e;
|
|
113
112
|
const n = t.find(
|
|
@@ -138,49 +137,49 @@ function Nn(e, t) {
|
|
|
138
137
|
...n ? { targetState: n.name } : {}
|
|
139
138
|
};
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function q(e) {
|
|
142
141
|
return (t, n) => e(n, (r) => r.uid === t);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function Mn() {
|
|
145
144
|
const e = x(R.INPUTS), t = x(R.ACTIONS), n = x(R.DISPLAYS), r = x(R.LAYOUTS);
|
|
146
145
|
return {
|
|
147
146
|
inputs: e,
|
|
148
|
-
inputByUid:
|
|
147
|
+
inputByUid: q(e),
|
|
149
148
|
actions: t,
|
|
150
|
-
actionByUid:
|
|
149
|
+
actionByUid: q(t),
|
|
151
150
|
displays: n,
|
|
152
|
-
displayByUid:
|
|
151
|
+
displayByUid: q(n),
|
|
153
152
|
layouts: r,
|
|
154
|
-
layoutByUid:
|
|
153
|
+
layoutByUid: q(r)
|
|
155
154
|
};
|
|
156
155
|
}
|
|
157
|
-
function
|
|
156
|
+
function J(e, t) {
|
|
158
157
|
const n = {
|
|
159
|
-
tag: (r) =>
|
|
160
|
-
state: (r) =>
|
|
161
|
-
tagsAnd: (r) =>
|
|
162
|
-
tagsOr: (r) =>
|
|
158
|
+
tag: (r) => J(e, [...t, { kind: "tagsAnd", tags: [r] }]),
|
|
159
|
+
state: (r) => J(e, [...t, { kind: "state", name: r }]),
|
|
160
|
+
tagsAnd: (r) => J(e, [...t, { kind: "tagsAnd", tags: r }]),
|
|
161
|
+
tagsOr: (r) => J(e, [...t, { kind: "tagsOr", tags: r }])
|
|
163
162
|
};
|
|
164
163
|
for (const [r, s] of Object.entries(e))
|
|
165
|
-
n[r] = (...i) =>
|
|
164
|
+
n[r] = (...i) => Dn(s(...i), t);
|
|
166
165
|
return n;
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
const t =
|
|
167
|
+
function Un(e) {
|
|
168
|
+
const t = zn.filter((r) => r in e);
|
|
170
169
|
if (t.length > 0)
|
|
171
170
|
throw new Error(
|
|
172
171
|
`Selector factory map must not use the reserved scope method name(s): ${t.join(", ")}.`
|
|
173
172
|
);
|
|
174
|
-
const n = { ...
|
|
175
|
-
return
|
|
173
|
+
const n = { ...Mn(), ...e };
|
|
174
|
+
return J(n, []);
|
|
176
175
|
}
|
|
177
|
-
const
|
|
176
|
+
const ft = {
|
|
178
177
|
[R.INPUTS]: "input",
|
|
179
178
|
[R.ACTIONS]: "action",
|
|
180
179
|
[R.DISPLAYS]: "display",
|
|
181
180
|
[R.LAYOUTS]: "layout"
|
|
182
181
|
};
|
|
183
|
-
class
|
|
182
|
+
class $n {
|
|
184
183
|
constructor(t) {
|
|
185
184
|
this.registry = t;
|
|
186
185
|
}
|
|
@@ -195,7 +194,7 @@ class Cn {
|
|
|
195
194
|
};
|
|
196
195
|
}
|
|
197
196
|
selectorMatchesItemType(t, n) {
|
|
198
|
-
const r =
|
|
197
|
+
const r = ft[t];
|
|
199
198
|
return r ? this.registry.getItemTypeKind(n) === r : t === n;
|
|
200
199
|
}
|
|
201
200
|
collectFromAggregated(t, n, r) {
|
|
@@ -212,7 +211,7 @@ class Cn {
|
|
|
212
211
|
a.push(o), n.set(i, a);
|
|
213
212
|
};
|
|
214
213
|
for (const i of t) {
|
|
215
|
-
const o =
|
|
214
|
+
const o = ft[i.selectorType];
|
|
216
215
|
if (o)
|
|
217
216
|
for (const a of this.registry.getItemTypesOfKind(o))
|
|
218
217
|
r(a, i);
|
|
@@ -225,7 +224,7 @@ class Cn {
|
|
|
225
224
|
return s;
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
|
-
class
|
|
227
|
+
class Nn {
|
|
229
228
|
/**
|
|
230
229
|
* Deep merges two objects, with right taking precedence over left when properties conflict.
|
|
231
230
|
* Arrays are replaced, not merged.
|
|
@@ -244,8 +243,8 @@ class Ln {
|
|
|
244
243
|
return r;
|
|
245
244
|
}
|
|
246
245
|
}
|
|
247
|
-
const
|
|
248
|
-
class
|
|
246
|
+
const On = new Nn();
|
|
247
|
+
class Rn {
|
|
249
248
|
constructor(t, n) {
|
|
250
249
|
this.objectUtils = t, this.registry = n;
|
|
251
250
|
}
|
|
@@ -326,7 +325,7 @@ class Bn {
|
|
|
326
325
|
};
|
|
327
326
|
}
|
|
328
327
|
}
|
|
329
|
-
class
|
|
328
|
+
class Cn {
|
|
330
329
|
constructor(t) {
|
|
331
330
|
this.registry = t;
|
|
332
331
|
}
|
|
@@ -352,7 +351,7 @@ class xn {
|
|
|
352
351
|
return n.size != null && (t.size = n.size), n.defaultValue != null && t.kind === "input" && (t.defaultValue = n.defaultValue), n.on != null && (t.on = n.on), n.include != null && (t.include = n.include), n.exclude != null && (t.exclude = n.exclude), t;
|
|
353
352
|
}
|
|
354
353
|
}
|
|
355
|
-
class
|
|
354
|
+
class Ln {
|
|
356
355
|
/**
|
|
357
356
|
* Ensures the output is always a uniform GslSelector[] of aggregated selectors.
|
|
358
357
|
*
|
|
@@ -383,13 +382,13 @@ class Wn {
|
|
|
383
382
|
};
|
|
384
383
|
}
|
|
385
384
|
}
|
|
386
|
-
const
|
|
385
|
+
const Ft = {
|
|
387
386
|
onLoad: "load",
|
|
388
387
|
onChange: "change",
|
|
389
388
|
onFilter: "filter",
|
|
390
389
|
onBlur: "blur"
|
|
391
|
-
},
|
|
392
|
-
function
|
|
390
|
+
}, Zn = Object.keys(Ft);
|
|
391
|
+
function jt(e) {
|
|
393
392
|
if (e.length > 0)
|
|
394
393
|
return null;
|
|
395
394
|
try {
|
|
@@ -399,7 +398,7 @@ function Vt(e) {
|
|
|
399
398
|
return null;
|
|
400
399
|
}
|
|
401
400
|
}
|
|
402
|
-
class
|
|
401
|
+
class Bn {
|
|
403
402
|
// ── Action-specific: onClick ───────────────────────────────────
|
|
404
403
|
extractOnClickFromMergeResult(t, n, r) {
|
|
405
404
|
if (t.kind === "dynamic") {
|
|
@@ -435,12 +434,12 @@ class jn {
|
|
|
435
434
|
const s = { ...t.on || {} };
|
|
436
435
|
let i = !1;
|
|
437
436
|
const o = { ...t };
|
|
438
|
-
for (const a of
|
|
437
|
+
for (const a of Zn) {
|
|
439
438
|
const u = t[a];
|
|
440
439
|
if (u == null) continue;
|
|
441
|
-
const c =
|
|
440
|
+
const c = Ft[a];
|
|
442
441
|
if (typeof u == "function") {
|
|
443
|
-
const p =
|
|
442
|
+
const p = jt(u);
|
|
444
443
|
if (p != null)
|
|
445
444
|
s[c] = p;
|
|
446
445
|
else {
|
|
@@ -454,18 +453,18 @@ class jn {
|
|
|
454
453
|
return i && (o.on = s), o;
|
|
455
454
|
}
|
|
456
455
|
}
|
|
457
|
-
const
|
|
456
|
+
const _e = new Bn(), xn = {
|
|
458
457
|
input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
|
|
459
458
|
action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
|
|
460
459
|
layout: /* @__PURE__ */ new Set(["size"]),
|
|
461
460
|
display: /* @__PURE__ */ new Set([])
|
|
462
|
-
},
|
|
461
|
+
}, gt = {
|
|
463
462
|
onChange: "change",
|
|
464
463
|
onLoad: "load",
|
|
465
464
|
onFilter: "filter",
|
|
466
465
|
onClick: "click"
|
|
467
466
|
};
|
|
468
|
-
class
|
|
467
|
+
class Wn {
|
|
469
468
|
/**
|
|
470
469
|
* Extracts `states` from a merge result, combining with state-targeted
|
|
471
470
|
* GSL leaf selectors from `_gslStates`.
|
|
@@ -515,11 +514,11 @@ class Vn {
|
|
|
515
514
|
const { stateOverrides: i } = n;
|
|
516
515
|
if (Object.keys(i).length === 0)
|
|
517
516
|
return t;
|
|
518
|
-
const o = { ...t }, a = t.kind, u =
|
|
517
|
+
const o = { ...t }, a = t.kind, u = xn[a] || /* @__PURE__ */ new Set();
|
|
519
518
|
t.props && (o.props = { ...t.props }), t.on && (o.on = { ...t.on });
|
|
520
519
|
for (const [c, p] of Object.entries(i))
|
|
521
520
|
for (const [d, m] of Object.entries(p))
|
|
522
|
-
d === "visible" ? this.applyVisibility(o, c, m) :
|
|
521
|
+
d === "visible" ? this.applyVisibility(o, c, m) : gt[d] ? this.applyStateEvent(o, c, d, m, r, s) : u.has(d) ? o[`${d}.${c}`] = m : (o.props || (o.props = {}), o.props[`${d}.${c}`] = m);
|
|
523
522
|
return o;
|
|
524
523
|
}
|
|
525
524
|
hasStateData(t) {
|
|
@@ -537,9 +536,9 @@ class Vn {
|
|
|
537
536
|
}
|
|
538
537
|
// ── State-suffixed event helpers ──
|
|
539
538
|
applyStateEvent(t, n, r, s, i, o) {
|
|
540
|
-
const a =
|
|
539
|
+
const a = gt[r];
|
|
541
540
|
if (t.on || (t.on = {}), typeof s == "function") {
|
|
542
|
-
const u =
|
|
541
|
+
const u = jt(s);
|
|
543
542
|
if (u != null)
|
|
544
543
|
t.on[`${a}.${n}`] = u;
|
|
545
544
|
else {
|
|
@@ -549,8 +548,8 @@ class Vn {
|
|
|
549
548
|
} else typeof s == "string" && (t.on[`${a}.${n}`] = s);
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
|
-
const
|
|
553
|
-
function
|
|
551
|
+
const Fn = new Wn();
|
|
552
|
+
function de(e) {
|
|
554
553
|
return {
|
|
555
554
|
errors: void 0,
|
|
556
555
|
touched: void 0,
|
|
@@ -559,16 +558,16 @@ function ye(e) {
|
|
|
559
558
|
$form: e?.$form ?? {}
|
|
560
559
|
};
|
|
561
560
|
}
|
|
562
|
-
function
|
|
561
|
+
function jn() {
|
|
563
562
|
let e = 0;
|
|
564
563
|
return { next: () => `event_${e++}` };
|
|
565
564
|
}
|
|
566
|
-
class
|
|
565
|
+
class Gn {
|
|
567
566
|
constructor(t, n, r, s, i, o) {
|
|
568
567
|
this.registry = t, this.resolver = n, this.merger = r, this.mapper = s, this.eventWiring = i, this.stateExpansion = o;
|
|
569
568
|
}
|
|
570
569
|
walkAndMap(t, n, r) {
|
|
571
|
-
const s = /* @__PURE__ */ new Map(), i =
|
|
570
|
+
const s = /* @__PURE__ */ new Map(), i = jn(), o = { value: 0 }, a = /* @__PURE__ */ new Set();
|
|
572
571
|
return { widgets: this.walkItems(
|
|
573
572
|
t,
|
|
574
573
|
n,
|
|
@@ -597,11 +596,11 @@ class Yn {
|
|
|
597
596
|
});
|
|
598
597
|
}
|
|
599
598
|
processItem(t, n, r, s, i, o, a, u, c) {
|
|
600
|
-
const p = n, d = this.registry.getItemTypeHandler(n), m = d.parseEntry(t), f = this.buildBaseDef(m), E = this.buildDecoratorForMatching(f, p, r), k = this.resolver.resolve(E, s),
|
|
599
|
+
const p = n, d = this.registry.getItemTypeHandler(n), m = d.parseEntry(t), f = this.buildBaseDef(m), E = this.buildDecoratorForMatching(f, p, r), k = this.resolver.resolve(E, s), K = k.leafSelectors.filter((w) => w.targetState != null), mt = {
|
|
601
600
|
leafSelectors: k.leafSelectors.filter((w) => w.targetState == null),
|
|
602
601
|
sensibleDefaults: k.sensibleDefaults
|
|
603
602
|
};
|
|
604
|
-
let C = this.merger.merge(f, p,
|
|
603
|
+
let C = this.merger.merge(f, p, mt);
|
|
605
604
|
d.afterMerge && (C = d.afterMerge(C, {
|
|
606
605
|
eventRegistry: i,
|
|
607
606
|
formConfig: o,
|
|
@@ -611,9 +610,9 @@ class Yn {
|
|
|
611
610
|
i,
|
|
612
611
|
a
|
|
613
612
|
);
|
|
614
|
-
const { cleanedResult:
|
|
613
|
+
const { cleanedResult: yt, stateData: pe } = this.stateExpansion.extractFromMergeResult(
|
|
615
614
|
C,
|
|
616
|
-
|
|
615
|
+
K
|
|
617
616
|
);
|
|
618
617
|
let O;
|
|
619
618
|
if (d.buildCustomWidget) {
|
|
@@ -626,21 +625,21 @@ class Yn {
|
|
|
626
625
|
u,
|
|
627
626
|
c
|
|
628
627
|
);
|
|
629
|
-
O = this.buildCustomWidget(d,
|
|
628
|
+
O = this.buildCustomWidget(d, yt, w);
|
|
630
629
|
} else
|
|
631
|
-
O = this.mapper.mapToWidget(
|
|
630
|
+
O = this.mapper.mapToWidget(yt, p);
|
|
632
631
|
if (typeof O != "function") {
|
|
633
632
|
const w = O;
|
|
634
633
|
w.uid || (w.path && !c.has(w.path) ? (w.uid = w.path, c.add(w.path)) : w.uid = `dx_${u.value++}`);
|
|
635
634
|
}
|
|
636
|
-
if (this.stateExpansion.hasStateData(
|
|
635
|
+
if (this.stateExpansion.hasStateData(pe))
|
|
637
636
|
if (typeof O == "function") {
|
|
638
637
|
const w = O;
|
|
639
|
-
O = ((
|
|
640
|
-
const
|
|
638
|
+
O = ((kn) => {
|
|
639
|
+
const Sn = w(kn);
|
|
641
640
|
return this.stateExpansion.applyToWidget(
|
|
642
|
-
|
|
643
|
-
|
|
641
|
+
Sn,
|
|
642
|
+
pe,
|
|
644
643
|
i,
|
|
645
644
|
a
|
|
646
645
|
);
|
|
@@ -648,7 +647,7 @@ class Yn {
|
|
|
648
647
|
} else
|
|
649
648
|
O = this.stateExpansion.applyToWidget(
|
|
650
649
|
O,
|
|
651
|
-
|
|
650
|
+
pe,
|
|
652
651
|
i,
|
|
653
652
|
a
|
|
654
653
|
);
|
|
@@ -679,7 +678,7 @@ class Yn {
|
|
|
679
678
|
buildBaseDef(t) {
|
|
680
679
|
const n = t.baseDef;
|
|
681
680
|
return typeof n == "function" ? (r) => {
|
|
682
|
-
const s =
|
|
681
|
+
const s = de(r), i = n(s);
|
|
683
682
|
return t.path != null ? { ...i, path: t.path } : i;
|
|
684
683
|
} : t.path != null ? { ...n, path: t.path } : n;
|
|
685
684
|
}
|
|
@@ -690,7 +689,7 @@ class Yn {
|
|
|
690
689
|
return { itemType: n, tags: s, uid: i, type: o };
|
|
691
690
|
}
|
|
692
691
|
}
|
|
693
|
-
class
|
|
692
|
+
class Vn {
|
|
694
693
|
constructor(t, n, r) {
|
|
695
694
|
this.selectorNormalizer = t, this.walker = n, this.adapter = r;
|
|
696
695
|
}
|
|
@@ -768,43 +767,43 @@ class Hn {
|
|
|
768
767
|
}), r.dependencies && (s.dependencies = r.dependencies), r.functions && (s.functions = r.functions), r.widgetLoaders && (s.widgetLoaders = r.widgetLoaders), r.validateOn && (s.validateOn = r.validateOn), r.itemRenderers && (s.itemRenderers = r.itemRenderers), s;
|
|
769
768
|
}
|
|
770
769
|
}
|
|
771
|
-
function
|
|
772
|
-
const { registry: t, adapter: n } = e, r = new
|
|
770
|
+
function Kn(e) {
|
|
771
|
+
const { registry: t, adapter: n } = e, r = new Gn(
|
|
773
772
|
t,
|
|
773
|
+
new $n(t),
|
|
774
|
+
new Rn(On, t),
|
|
774
775
|
new Cn(t),
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
Se,
|
|
778
|
-
Kn
|
|
776
|
+
_e,
|
|
777
|
+
Fn
|
|
779
778
|
);
|
|
780
|
-
return new
|
|
779
|
+
return new Vn(new Ln(), r, n);
|
|
781
780
|
}
|
|
782
|
-
function
|
|
783
|
-
return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(
|
|
781
|
+
function Gt(e) {
|
|
782
|
+
return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(ht) : ht(e);
|
|
784
783
|
}
|
|
785
|
-
function
|
|
784
|
+
function ht(e) {
|
|
786
785
|
if (typeof e == "function") return !0;
|
|
787
786
|
if (e === null || typeof e != "object") return !1;
|
|
788
787
|
const t = e;
|
|
789
788
|
return t.type === "ITEMS" && typeof t.itemType == "string";
|
|
790
789
|
}
|
|
791
|
-
function
|
|
790
|
+
function Jn(e) {
|
|
792
791
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
793
792
|
return;
|
|
794
793
|
const t = e.form;
|
|
795
|
-
if (
|
|
794
|
+
if (Gt(t))
|
|
796
795
|
throw new Error(
|
|
797
796
|
"[GolemUI] The gui.* form definition was wrapped in an extra `{ form: ... }` object, so its fields were never resolved. Pass the gui.* array DIRECTLY as formDef (`config={{ formDef: form }}`) and put any named `states` in `formConfig`: `config={{ formDef: form, formConfig: { states } }}`. Do NOT wrap them as a `{ form: [...] }` object."
|
|
798
797
|
);
|
|
799
798
|
}
|
|
800
|
-
function
|
|
799
|
+
function Yn(e) {
|
|
801
800
|
const t = Object.freeze({}), n = Object.freeze({}), r = /* @__PURE__ */ new WeakMap();
|
|
802
801
|
function s(i, o) {
|
|
803
802
|
return i == null ? o : typeof i == "object" ? i : {};
|
|
804
803
|
}
|
|
805
804
|
return function(o, a, u) {
|
|
806
|
-
if (!
|
|
807
|
-
return
|
|
805
|
+
if (!Gt(o))
|
|
806
|
+
return Jn(o), { formDef: o };
|
|
808
807
|
const c = s(o, t), p = s(a, t), d = s(u, n);
|
|
809
808
|
let m = r.get(c);
|
|
810
809
|
m || (m = /* @__PURE__ */ new WeakMap(), r.set(c, m));
|
|
@@ -816,7 +815,7 @@ function Qn(e) {
|
|
|
816
815
|
o,
|
|
817
816
|
a,
|
|
818
817
|
u
|
|
819
|
-
),
|
|
818
|
+
), K = {
|
|
820
819
|
formDef: k.form,
|
|
821
820
|
formEvent: k.events,
|
|
822
821
|
dependencies: k.dependencies,
|
|
@@ -825,15 +824,15 @@ function Qn(e) {
|
|
|
825
824
|
validateOn: k.validateOn,
|
|
826
825
|
itemRenderers: k.itemRenderers
|
|
827
826
|
};
|
|
828
|
-
return f.set(d,
|
|
827
|
+
return f.set(d, K), K;
|
|
829
828
|
};
|
|
830
829
|
}
|
|
831
|
-
function
|
|
830
|
+
function Hn(e) {
|
|
832
831
|
if ("selectors" in e.facade)
|
|
833
832
|
throw new Error(
|
|
834
833
|
`The "${e.name}" implementation facade must not contain a "selectors" key: that slot of the namespace is filled by the selector chain.`
|
|
835
834
|
);
|
|
836
|
-
const t =
|
|
835
|
+
const t = Kn({
|
|
837
836
|
registry: e.registry,
|
|
838
837
|
adapter: e.adapter
|
|
839
838
|
});
|
|
@@ -842,7 +841,7 @@ function er(e) {
|
|
|
842
841
|
registry: e.registry,
|
|
843
842
|
namespace: { ...e.facade, selectors: e.selectors },
|
|
844
843
|
formDefs: t,
|
|
845
|
-
resolveFormInput:
|
|
844
|
+
resolveFormInput: Yn(t)
|
|
846
845
|
};
|
|
847
846
|
}
|
|
848
847
|
function h(e) {
|
|
@@ -862,8 +861,8 @@ function h(e) {
|
|
|
862
861
|
on: f,
|
|
863
862
|
states: E,
|
|
864
863
|
include: k,
|
|
865
|
-
exclude:
|
|
866
|
-
validator:
|
|
864
|
+
exclude: K,
|
|
865
|
+
validator: mt,
|
|
867
866
|
...C
|
|
868
867
|
} = e;
|
|
869
868
|
return C;
|
|
@@ -871,28 +870,28 @@ function h(e) {
|
|
|
871
870
|
function b(e, t) {
|
|
872
871
|
return typeof e == "function" ? e : { type: t, ...e ?? {} };
|
|
873
872
|
}
|
|
874
|
-
function
|
|
873
|
+
function Xn(e) {
|
|
875
874
|
return e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()) : "";
|
|
876
875
|
}
|
|
877
876
|
function T(e, t) {
|
|
878
|
-
return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label:
|
|
877
|
+
return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Xn(e.path) };
|
|
879
878
|
}
|
|
880
879
|
function U(e, t) {
|
|
881
880
|
return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
|
|
882
881
|
}
|
|
883
|
-
function
|
|
882
|
+
function qn(e) {
|
|
884
883
|
switch (e.type) {
|
|
885
884
|
case "text":
|
|
886
|
-
return
|
|
885
|
+
return er(e);
|
|
887
886
|
case "number":
|
|
888
|
-
return
|
|
887
|
+
return tr(e);
|
|
889
888
|
case "boolean":
|
|
890
|
-
return
|
|
889
|
+
return Qn(e);
|
|
891
890
|
default:
|
|
892
891
|
throw new Error(`Unsupported field type "${e.type}"`);
|
|
893
892
|
}
|
|
894
893
|
}
|
|
895
|
-
function
|
|
894
|
+
function Qn(e) {
|
|
896
895
|
const t = h(e);
|
|
897
896
|
return {
|
|
898
897
|
uid: e.uid ?? "",
|
|
@@ -906,7 +905,7 @@ function rr(e) {
|
|
|
906
905
|
props: t
|
|
907
906
|
};
|
|
908
907
|
}
|
|
909
|
-
function
|
|
908
|
+
function er(e) {
|
|
910
909
|
const t = h(e);
|
|
911
910
|
return {
|
|
912
911
|
uid: e.uid ?? "",
|
|
@@ -923,7 +922,7 @@ function sr(e) {
|
|
|
923
922
|
validator: b(e.validator, "string")
|
|
924
923
|
};
|
|
925
924
|
}
|
|
926
|
-
function
|
|
925
|
+
function tr(e) {
|
|
927
926
|
const t = h(e);
|
|
928
927
|
return {
|
|
929
928
|
uid: e.uid ?? "",
|
|
@@ -940,7 +939,7 @@ function ir(e) {
|
|
|
940
939
|
validator: b(e.validator, "number")
|
|
941
940
|
};
|
|
942
941
|
}
|
|
943
|
-
const
|
|
942
|
+
const be = y({
|
|
944
943
|
itemType: "INPUTS",
|
|
945
944
|
kind: "input",
|
|
946
945
|
entryShape: "keyed",
|
|
@@ -955,9 +954,9 @@ const ve = y({
|
|
|
955
954
|
return n = U(n, t), n;
|
|
956
955
|
}
|
|
957
956
|
},
|
|
958
|
-
mapToWidget:
|
|
959
|
-
}),
|
|
960
|
-
function
|
|
957
|
+
mapToWidget: qn
|
|
958
|
+
}), ne = be.gsl, nr = be.gslByUid;
|
|
959
|
+
function rr(e) {
|
|
961
960
|
const {
|
|
962
961
|
uid: t,
|
|
963
962
|
label: n,
|
|
@@ -985,18 +984,18 @@ function ar(e) {
|
|
|
985
984
|
props: E
|
|
986
985
|
};
|
|
987
986
|
}
|
|
988
|
-
const
|
|
987
|
+
const ke = y({
|
|
989
988
|
itemType: "ACTIONS",
|
|
990
989
|
kind: "action",
|
|
991
990
|
entryShape: "bare",
|
|
992
|
-
mapToWidget:
|
|
993
|
-
afterMerge: (e, t) =>
|
|
991
|
+
mapToWidget: rr,
|
|
992
|
+
afterMerge: (e, t) => _e.extractOnClickFromMergeResult(
|
|
994
993
|
e,
|
|
995
994
|
t.eventRegistry,
|
|
996
995
|
t.eventIdGenerator
|
|
997
996
|
)
|
|
998
|
-
}),
|
|
999
|
-
function
|
|
997
|
+
}), sr = ke.gsl, ir = ke.gslByUid;
|
|
998
|
+
function or(e) {
|
|
1000
999
|
const {
|
|
1001
1000
|
uid: t,
|
|
1002
1001
|
widgetName: n,
|
|
@@ -1018,7 +1017,7 @@ function lr(e) {
|
|
|
1018
1017
|
children: []
|
|
1019
1018
|
};
|
|
1020
1019
|
}
|
|
1021
|
-
function
|
|
1020
|
+
function ar(e, t) {
|
|
1022
1021
|
const n = t.walkChildren(t.children ?? []);
|
|
1023
1022
|
if (e.kind === "static")
|
|
1024
1023
|
return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
|
|
@@ -1028,18 +1027,18 @@ function pr(e, t) {
|
|
|
1028
1027
|
return { ...t.mapStaticDef(i, "LAYOUTS"), children: n };
|
|
1029
1028
|
});
|
|
1030
1029
|
}
|
|
1031
|
-
function
|
|
1030
|
+
function ur(e) {
|
|
1032
1031
|
return e.children;
|
|
1033
1032
|
}
|
|
1034
|
-
const
|
|
1033
|
+
const Se = y({
|
|
1035
1034
|
itemType: "LAYOUTS",
|
|
1036
1035
|
kind: "layout",
|
|
1037
1036
|
entryShape: "compound",
|
|
1038
|
-
mapToWidget:
|
|
1039
|
-
buildCustomWidget:
|
|
1040
|
-
getChildren:
|
|
1041
|
-
}),
|
|
1042
|
-
function
|
|
1037
|
+
mapToWidget: or,
|
|
1038
|
+
buildCustomWidget: ar,
|
|
1039
|
+
getChildren: ur
|
|
1040
|
+
}), cr = Se.gsl, lr = Se.gslByUid;
|
|
1041
|
+
function pr(e) {
|
|
1043
1042
|
return {
|
|
1044
1043
|
uid: "",
|
|
1045
1044
|
kind: "display",
|
|
@@ -1047,7 +1046,7 @@ function fr(e) {
|
|
|
1047
1046
|
props: { render: e.render }
|
|
1048
1047
|
};
|
|
1049
1048
|
}
|
|
1050
|
-
function
|
|
1049
|
+
function dr(e, t) {
|
|
1051
1050
|
if (e.kind === "static") {
|
|
1052
1051
|
const r = e.def;
|
|
1053
1052
|
return ((s) => ({
|
|
@@ -1056,7 +1055,7 @@ function gr(e, t) {
|
|
|
1056
1055
|
type: "renderer",
|
|
1057
1056
|
...r.include != null ? { include: r.include } : {},
|
|
1058
1057
|
...r.exclude != null ? { exclude: r.exclude } : {},
|
|
1059
|
-
props: { render: r.render(
|
|
1058
|
+
props: { render: r.render(de(s)) }
|
|
1060
1059
|
}));
|
|
1061
1060
|
}
|
|
1062
1061
|
const n = e.fn;
|
|
@@ -1068,17 +1067,17 @@ function gr(e, t) {
|
|
|
1068
1067
|
type: "renderer",
|
|
1069
1068
|
...s.include != null ? { include: s.include } : {},
|
|
1070
1069
|
...s.exclude != null ? { exclude: s.exclude } : {},
|
|
1071
|
-
props: { render: s.render(
|
|
1070
|
+
props: { render: s.render(de(r)) }
|
|
1072
1071
|
};
|
|
1073
1072
|
});
|
|
1074
1073
|
}
|
|
1075
|
-
const
|
|
1074
|
+
const ve = y({
|
|
1076
1075
|
itemType: "DISPLAYS",
|
|
1077
1076
|
kind: "display",
|
|
1078
1077
|
entryShape: "bare",
|
|
1079
|
-
mapToWidget:
|
|
1080
|
-
buildCustomWidget:
|
|
1081
|
-
}),
|
|
1078
|
+
mapToWidget: pr,
|
|
1079
|
+
buildCustomWidget: dr
|
|
1080
|
+
}), mr = ve.gsl, yr = ve.gslByUid, Ie = y({
|
|
1082
1081
|
itemType: "CALENDAR",
|
|
1083
1082
|
kind: "input",
|
|
1084
1083
|
entryShape: "bare",
|
|
@@ -1098,7 +1097,7 @@ const we = y({
|
|
|
1098
1097
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1099
1098
|
props: h(e)
|
|
1100
1099
|
})
|
|
1101
|
-
}),
|
|
1100
|
+
}), fr = Ie.gsl, gr = Ie.gslByUid, Ee = y({
|
|
1102
1101
|
itemType: "DATE_TIME_CALENDAR",
|
|
1103
1102
|
kind: "input",
|
|
1104
1103
|
entryShape: "bare",
|
|
@@ -1118,7 +1117,7 @@ const we = y({
|
|
|
1118
1117
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1119
1118
|
props: h(e)
|
|
1120
1119
|
})
|
|
1121
|
-
}),
|
|
1120
|
+
}), hr = Ee.gsl, Tr = Ee.gslByUid, we = y({
|
|
1122
1121
|
itemType: "DATE_TIME_PICKER",
|
|
1123
1122
|
kind: "input",
|
|
1124
1123
|
entryShape: "keyed",
|
|
@@ -1141,7 +1140,7 @@ const we = y({
|
|
|
1141
1140
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1142
1141
|
props: h(e)
|
|
1143
1142
|
})
|
|
1144
|
-
}),
|
|
1143
|
+
}), _r = we.gsl, br = we.gslByUid, Ae = y({
|
|
1145
1144
|
itemType: "TEXTAREA",
|
|
1146
1145
|
kind: "input",
|
|
1147
1146
|
entryShape: "keyed",
|
|
@@ -1161,7 +1160,7 @@ const we = y({
|
|
|
1161
1160
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1162
1161
|
props: h(e)
|
|
1163
1162
|
})
|
|
1164
|
-
}),
|
|
1163
|
+
}), kr = Ae.gsl, Sr = Ae.gslByUid, Pe = y({
|
|
1165
1164
|
itemType: "PASSWORD",
|
|
1166
1165
|
kind: "input",
|
|
1167
1166
|
entryShape: "keyed",
|
|
@@ -1181,7 +1180,7 @@ const we = y({
|
|
|
1181
1180
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1182
1181
|
props: h(e)
|
|
1183
1182
|
})
|
|
1184
|
-
}),
|
|
1183
|
+
}), vr = Pe.gsl, Ir = Pe.gslByUid, ze = y({
|
|
1185
1184
|
itemType: "CHECKBOX",
|
|
1186
1185
|
kind: "input",
|
|
1187
1186
|
entryShape: "keyed",
|
|
@@ -1201,7 +1200,7 @@ const we = y({
|
|
|
1201
1200
|
...e.validator != null ? { validator: b(e.validator, "boolean") } : {},
|
|
1202
1201
|
props: h(e)
|
|
1203
1202
|
})
|
|
1204
|
-
}),
|
|
1203
|
+
}), Er = ze.gsl, wr = ze.gslByUid, De = y({
|
|
1205
1204
|
itemType: "DATE_INPUT",
|
|
1206
1205
|
kind: "input",
|
|
1207
1206
|
entryShape: "keyed",
|
|
@@ -1221,7 +1220,7 @@ const we = y({
|
|
|
1221
1220
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1222
1221
|
props: h(e)
|
|
1223
1222
|
})
|
|
1224
|
-
}),
|
|
1223
|
+
}), Ar = De.gsl, Pr = De.gslByUid, Me = y({
|
|
1225
1224
|
itemType: "TIME_INPUT",
|
|
1226
1225
|
kind: "input",
|
|
1227
1226
|
entryShape: "keyed",
|
|
@@ -1241,7 +1240,7 @@ const we = y({
|
|
|
1241
1240
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1242
1241
|
props: h(e)
|
|
1243
1242
|
})
|
|
1244
|
-
}),
|
|
1243
|
+
}), zr = Me.gsl, Dr = Me.gslByUid, Ue = y({
|
|
1245
1244
|
itemType: "TIME_PICKER",
|
|
1246
1245
|
kind: "input",
|
|
1247
1246
|
entryShape: "keyed",
|
|
@@ -1264,7 +1263,7 @@ const we = y({
|
|
|
1264
1263
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1265
1264
|
props: h(e)
|
|
1266
1265
|
})
|
|
1267
|
-
}),
|
|
1266
|
+
}), Mr = Ue.gsl, Ur = Ue.gslByUid, $e = y({
|
|
1268
1267
|
itemType: "DATE_TIME_INPUT",
|
|
1269
1268
|
kind: "input",
|
|
1270
1269
|
entryShape: "keyed",
|
|
@@ -1284,7 +1283,7 @@ const we = y({
|
|
|
1284
1283
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1285
1284
|
props: h(e)
|
|
1286
1285
|
})
|
|
1287
|
-
}),
|
|
1286
|
+
}), $r = $e.gsl, Nr = $e.gslByUid, Ne = y({
|
|
1288
1287
|
itemType: "CURRENCY",
|
|
1289
1288
|
kind: "input",
|
|
1290
1289
|
entryShape: "keyed",
|
|
@@ -1304,7 +1303,7 @@ const we = y({
|
|
|
1304
1303
|
...e.validator != null ? { validator: b(e.validator, "number") } : {},
|
|
1305
1304
|
props: h(e)
|
|
1306
1305
|
})
|
|
1307
|
-
}),
|
|
1306
|
+
}), Or = Ne.gsl, Rr = Ne.gslByUid, Oe = y({
|
|
1308
1307
|
itemType: "RANGE_CALENDAR",
|
|
1309
1308
|
kind: "input",
|
|
1310
1309
|
entryShape: "keyed",
|
|
@@ -1324,7 +1323,7 @@ const we = y({
|
|
|
1324
1323
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1325
1324
|
props: h(e)
|
|
1326
1325
|
})
|
|
1327
|
-
}),
|
|
1326
|
+
}), Cr = Oe.gsl, Lr = Oe.gslByUid, Re = y(
|
|
1328
1327
|
{
|
|
1329
1328
|
itemType: "SELECT",
|
|
1330
1329
|
kind: "input",
|
|
@@ -1346,7 +1345,7 @@ const we = y({
|
|
|
1346
1345
|
props: h(e)
|
|
1347
1346
|
})
|
|
1348
1347
|
}
|
|
1349
|
-
),
|
|
1348
|
+
), Zr = Re.gsl, Br = Re.gslByUid, Ce = y({
|
|
1350
1349
|
itemType: "RADIOGROUP",
|
|
1351
1350
|
kind: "input",
|
|
1352
1351
|
entryShape: "keyed",
|
|
@@ -1366,8 +1365,8 @@ const we = y({
|
|
|
1366
1365
|
...e.validator != null ? { validator: e.validator } : {},
|
|
1367
1366
|
props: h(e)
|
|
1368
1367
|
})
|
|
1369
|
-
}),
|
|
1370
|
-
function
|
|
1368
|
+
}), xr = Ce.gsl, Wr = Ce.gslByUid;
|
|
1369
|
+
function Fr(e) {
|
|
1371
1370
|
return {
|
|
1372
1371
|
uid: e.uid ?? "",
|
|
1373
1372
|
kind: "layout",
|
|
@@ -1380,7 +1379,7 @@ function Kr(e) {
|
|
|
1380
1379
|
children: []
|
|
1381
1380
|
};
|
|
1382
1381
|
}
|
|
1383
|
-
function
|
|
1382
|
+
function jr(e, t) {
|
|
1384
1383
|
const n = t.walkChildren(t.children ?? []);
|
|
1385
1384
|
if (e.kind === "static")
|
|
1386
1385
|
return { ...t.mapStaticDef(e.def, "TABS"), children: n };
|
|
@@ -1390,17 +1389,17 @@ function Jr(e, t) {
|
|
|
1390
1389
|
return { ...t.mapStaticDef(i, "TABS"), children: n };
|
|
1391
1390
|
});
|
|
1392
1391
|
}
|
|
1393
|
-
function
|
|
1392
|
+
function Gr(e) {
|
|
1394
1393
|
return e.children;
|
|
1395
1394
|
}
|
|
1396
|
-
const
|
|
1395
|
+
const Le = y({
|
|
1397
1396
|
itemType: "TABS",
|
|
1398
1397
|
kind: "layout",
|
|
1399
1398
|
entryShape: "compound",
|
|
1400
|
-
mapToWidget:
|
|
1401
|
-
buildCustomWidget:
|
|
1402
|
-
getChildren:
|
|
1403
|
-
}),
|
|
1399
|
+
mapToWidget: Fr,
|
|
1400
|
+
buildCustomWidget: jr,
|
|
1401
|
+
getChildren: Gr
|
|
1402
|
+
}), Vr = Le.gsl, Kr = Le.gslByUid, Ze = y({
|
|
1404
1403
|
itemType: "LIST",
|
|
1405
1404
|
kind: "input",
|
|
1406
1405
|
entryShape: "keyed",
|
|
@@ -1420,7 +1419,7 @@ const xe = y({
|
|
|
1420
1419
|
...e.validator != null ? { validator: e.validator } : {},
|
|
1421
1420
|
props: h(e)
|
|
1422
1421
|
})
|
|
1423
|
-
}),
|
|
1422
|
+
}), Jr = Ze.gsl, Yr = Ze.gslByUid, Be = y({
|
|
1424
1423
|
itemType: "TAGS",
|
|
1425
1424
|
kind: "input",
|
|
1426
1425
|
entryShape: "keyed",
|
|
@@ -1441,9 +1440,9 @@ const xe = y({
|
|
|
1441
1440
|
props: h(e)
|
|
1442
1441
|
})
|
|
1443
1442
|
});
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
const
|
|
1443
|
+
Be.gsl;
|
|
1444
|
+
Be.gslByUid;
|
|
1445
|
+
const xe = y({
|
|
1447
1446
|
itemType: "ALERTS",
|
|
1448
1447
|
kind: "display",
|
|
1449
1448
|
entryShape: "bare",
|
|
@@ -1456,7 +1455,7 @@ const je = y({
|
|
|
1456
1455
|
...e.level != null ? { level: e.level } : {}
|
|
1457
1456
|
}
|
|
1458
1457
|
})
|
|
1459
|
-
}),
|
|
1458
|
+
}), Hr = xe.gsl, Xr = xe.gslByUid, We = y({
|
|
1460
1459
|
itemType: "MARKDOWN_TEXTS",
|
|
1461
1460
|
kind: "display",
|
|
1462
1461
|
entryShape: "bare",
|
|
@@ -1468,7 +1467,7 @@ const je = y({
|
|
|
1468
1467
|
md: e.md
|
|
1469
1468
|
}
|
|
1470
1469
|
})
|
|
1471
|
-
}),
|
|
1470
|
+
}), qr = We.gsl, Qr = We.gslByUid, Fe = y({
|
|
1472
1471
|
itemType: "DATE_PICKER",
|
|
1473
1472
|
kind: "input",
|
|
1474
1473
|
entryShape: "keyed",
|
|
@@ -1491,7 +1490,7 @@ const je = y({
|
|
|
1491
1490
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1492
1491
|
props: h(e)
|
|
1493
1492
|
})
|
|
1494
|
-
}),
|
|
1493
|
+
}), es = Fe.gsl, ts = Fe.gslByUid, je = y({
|
|
1495
1494
|
itemType: "DROPDOWN",
|
|
1496
1495
|
kind: "input",
|
|
1497
1496
|
entryShape: "keyed",
|
|
@@ -1514,8 +1513,8 @@ const je = y({
|
|
|
1514
1513
|
...e.validator != null ? { validator: e.validator } : {},
|
|
1515
1514
|
props: h(e)
|
|
1516
1515
|
})
|
|
1517
|
-
}),
|
|
1518
|
-
function
|
|
1516
|
+
}), ns = je.gsl, rs = je.gslByUid;
|
|
1517
|
+
function ss(e) {
|
|
1519
1518
|
return {
|
|
1520
1519
|
uid: e.uid ?? "",
|
|
1521
1520
|
kind: "layout",
|
|
@@ -1529,7 +1528,7 @@ function us(e) {
|
|
|
1529
1528
|
children: []
|
|
1530
1529
|
};
|
|
1531
1530
|
}
|
|
1532
|
-
function
|
|
1531
|
+
function is(e, t) {
|
|
1533
1532
|
const n = t.walkChildren(t.children ?? []);
|
|
1534
1533
|
if (e.kind === "static")
|
|
1535
1534
|
return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
|
|
@@ -1539,22 +1538,22 @@ function cs(e, t) {
|
|
|
1539
1538
|
return { ...t.mapStaticDef(i, "ACCORDION"), children: n };
|
|
1540
1539
|
});
|
|
1541
1540
|
}
|
|
1542
|
-
function
|
|
1541
|
+
function os(e) {
|
|
1543
1542
|
return e.children;
|
|
1544
1543
|
}
|
|
1545
|
-
const
|
|
1544
|
+
const Ge = y({
|
|
1546
1545
|
itemType: "ACCORDION",
|
|
1547
1546
|
kind: "layout",
|
|
1548
1547
|
entryShape: "compound",
|
|
1549
|
-
mapToWidget:
|
|
1550
|
-
buildCustomWidget:
|
|
1551
|
-
getChildren:
|
|
1552
|
-
}),
|
|
1553
|
-
function
|
|
1548
|
+
mapToWidget: ss,
|
|
1549
|
+
buildCustomWidget: is,
|
|
1550
|
+
getChildren: os
|
|
1551
|
+
}), as = Ge.gsl, us = Ge.gslByUid;
|
|
1552
|
+
function cs(e) {
|
|
1554
1553
|
const t = {};
|
|
1555
1554
|
return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
|
|
1556
1555
|
}
|
|
1557
|
-
function
|
|
1556
|
+
function ls(e) {
|
|
1558
1557
|
return {
|
|
1559
1558
|
uid: e.uid ?? "",
|
|
1560
1559
|
kind: "input",
|
|
@@ -1565,23 +1564,23 @@ function ys(e) {
|
|
|
1565
1564
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1566
1565
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1567
1566
|
props: {
|
|
1568
|
-
...
|
|
1567
|
+
...cs(e),
|
|
1569
1568
|
template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
|
|
1570
1569
|
}
|
|
1571
1570
|
};
|
|
1572
1571
|
}
|
|
1573
|
-
function
|
|
1572
|
+
function me(e, t) {
|
|
1574
1573
|
for (const n of e) {
|
|
1575
1574
|
if (typeof n == "function") continue;
|
|
1576
1575
|
const r = n;
|
|
1577
|
-
typeof r.path == "string" && r.path && !r.path.startsWith(t) && (r.path = t + r.path), "children" in r && Array.isArray(r.children) &&
|
|
1576
|
+
typeof r.path == "string" && r.path && !r.path.startsWith(t) && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && me(r.children, t);
|
|
1578
1577
|
const s = r.props;
|
|
1579
|
-
s?.template?.children && Array.isArray(s.template.children) &&
|
|
1578
|
+
s?.template?.children && Array.isArray(s.template.children) && me(s.template.children, t);
|
|
1580
1579
|
}
|
|
1581
1580
|
}
|
|
1582
|
-
function
|
|
1581
|
+
function ps(e, t) {
|
|
1583
1582
|
const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
|
|
1584
|
-
r &&
|
|
1583
|
+
r && me(n, r + ".items.");
|
|
1585
1584
|
const s = {
|
|
1586
1585
|
kind: "layout",
|
|
1587
1586
|
type: "flex",
|
|
@@ -1605,30 +1604,30 @@ function fs(e, t) {
|
|
|
1605
1604
|
};
|
|
1606
1605
|
});
|
|
1607
1606
|
}
|
|
1608
|
-
function
|
|
1607
|
+
function ds(e) {
|
|
1609
1608
|
return {
|
|
1610
1609
|
baseDef: e.def,
|
|
1611
1610
|
path: e.key,
|
|
1612
1611
|
children: e.children
|
|
1613
1612
|
};
|
|
1614
1613
|
}
|
|
1615
|
-
function
|
|
1614
|
+
function ms(e) {
|
|
1616
1615
|
return e.children;
|
|
1617
1616
|
}
|
|
1618
|
-
const
|
|
1619
|
-
parseEntry:
|
|
1617
|
+
const ys = {
|
|
1618
|
+
parseEntry: ds,
|
|
1620
1619
|
rollUpSensibleDefaults: () => ({}),
|
|
1621
1620
|
applySensibleDefaults: (e) => e,
|
|
1622
|
-
mapToWidget:
|
|
1623
|
-
buildCustomWidget:
|
|
1624
|
-
getChildren:
|
|
1625
|
-
},
|
|
1621
|
+
mapToWidget: ls,
|
|
1622
|
+
buildCustomWidget: ps,
|
|
1623
|
+
getChildren: ms
|
|
1624
|
+
}, Ve = x("REPEATER"), Vt = (e, t) => Ve(t, ((n) => n.uid === e)), fs = {
|
|
1626
1625
|
itemType: "REPEATER",
|
|
1627
1626
|
kind: "input",
|
|
1628
|
-
handler:
|
|
1629
|
-
gsl:
|
|
1630
|
-
gslByUid:
|
|
1631
|
-
},
|
|
1627
|
+
handler: ys,
|
|
1628
|
+
gsl: Ve,
|
|
1629
|
+
gslByUid: Vt
|
|
1630
|
+
}, Ke = y({
|
|
1632
1631
|
itemType: "MARKDOWN",
|
|
1633
1632
|
kind: "input",
|
|
1634
1633
|
entryShape: "keyed",
|
|
@@ -1648,7 +1647,7 @@ const Ts = {
|
|
|
1648
1647
|
...e.validator != null ? { validator: b(e.validator, "string") } : {},
|
|
1649
1648
|
props: h(e)
|
|
1650
1649
|
})
|
|
1651
|
-
}),
|
|
1650
|
+
}), gs = Ke.gsl, hs = Ke.gslByUid, Je = y({
|
|
1652
1651
|
itemType: "RANGE_DATE_INPUT",
|
|
1653
1652
|
kind: "input",
|
|
1654
1653
|
entryShape: "keyed",
|
|
@@ -1668,7 +1667,7 @@ const Ts = {
|
|
|
1668
1667
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1669
1668
|
props: h(e)
|
|
1670
1669
|
})
|
|
1671
|
-
}),
|
|
1670
|
+
}), Ts = Je.gsl, _s = Je.gslByUid, Ye = y({
|
|
1672
1671
|
itemType: "RANGE_TIME_INPUT",
|
|
1673
1672
|
kind: "input",
|
|
1674
1673
|
entryShape: "keyed",
|
|
@@ -1688,7 +1687,7 @@ const Ts = {
|
|
|
1688
1687
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1689
1688
|
props: h(e)
|
|
1690
1689
|
})
|
|
1691
|
-
}),
|
|
1690
|
+
}), bs = Ye.gsl, ks = Ye.gslByUid, He = y({
|
|
1692
1691
|
itemType: "RANGE_DATE_TIME_INPUT",
|
|
1693
1692
|
kind: "input",
|
|
1694
1693
|
entryShape: "keyed",
|
|
@@ -1708,7 +1707,7 @@ const Ts = {
|
|
|
1708
1707
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1709
1708
|
props: h(e)
|
|
1710
1709
|
})
|
|
1711
|
-
}),
|
|
1710
|
+
}), Ss = He.gsl, vs = He.gslByUid, Xe = y({
|
|
1712
1711
|
itemType: "RANGE_DATE_TIME_CALENDAR",
|
|
1713
1712
|
kind: "input",
|
|
1714
1713
|
entryShape: "keyed",
|
|
@@ -1728,7 +1727,7 @@ const Ts = {
|
|
|
1728
1727
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1729
1728
|
props: h(e)
|
|
1730
1729
|
})
|
|
1731
|
-
}),
|
|
1730
|
+
}), Is = Xe.gsl, Es = Xe.gslByUid, qe = y({
|
|
1732
1731
|
itemType: "RANGE_DATE_TIME_PICKER",
|
|
1733
1732
|
kind: "input",
|
|
1734
1733
|
entryShape: "keyed",
|
|
@@ -1748,7 +1747,7 @@ const Ts = {
|
|
|
1748
1747
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1749
1748
|
props: h(e)
|
|
1750
1749
|
})
|
|
1751
|
-
}),
|
|
1750
|
+
}), ws = qe.gsl, As = qe.gslByUid, Qe = y({
|
|
1752
1751
|
itemType: "RANGE_DATE_PICKER",
|
|
1753
1752
|
kind: "input",
|
|
1754
1753
|
entryShape: "keyed",
|
|
@@ -1771,7 +1770,7 @@ const Ts = {
|
|
|
1771
1770
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1772
1771
|
props: h(e)
|
|
1773
1772
|
})
|
|
1774
|
-
}),
|
|
1773
|
+
}), Ps = Qe.gsl, zs = Qe.gslByUid, et = y({
|
|
1775
1774
|
itemType: "RANGE_TIME_PICKER",
|
|
1776
1775
|
kind: "input",
|
|
1777
1776
|
entryShape: "keyed",
|
|
@@ -1791,7 +1790,7 @@ const Ts = {
|
|
|
1791
1790
|
...e.validator != null ? { validator: b(e.validator, "array") } : {},
|
|
1792
1791
|
props: h(e)
|
|
1793
1792
|
})
|
|
1794
|
-
}),
|
|
1793
|
+
}), Ds = et.gsl, Ms = et.gslByUid, tt = y({
|
|
1795
1794
|
itemType: "CUSTOM_DISPLAY",
|
|
1796
1795
|
kind: "display",
|
|
1797
1796
|
entryShape: "bare",
|
|
@@ -1801,7 +1800,7 @@ const Ts = {
|
|
|
1801
1800
|
type: e.customType,
|
|
1802
1801
|
props: e.props ?? {}
|
|
1803
1802
|
})
|
|
1804
|
-
}),
|
|
1803
|
+
}), Us = tt.gsl, $s = tt.gslByUid, nt = y({
|
|
1805
1804
|
itemType: "CUSTOM_INPUT",
|
|
1806
1805
|
kind: "input",
|
|
1807
1806
|
entryShape: "keyed",
|
|
@@ -1824,7 +1823,7 @@ const Ts = {
|
|
|
1824
1823
|
...e.validator != null ? { validator: e.validator } : {},
|
|
1825
1824
|
props: e.props ?? {}
|
|
1826
1825
|
})
|
|
1827
|
-
}),
|
|
1826
|
+
}), Ns = nt.gsl, Os = nt.gslByUid, rt = y({
|
|
1828
1827
|
itemType: "CUSTOM_ACTION",
|
|
1829
1828
|
kind: "action",
|
|
1830
1829
|
entryShape: "bare",
|
|
@@ -1855,13 +1854,13 @@ const Ts = {
|
|
|
1855
1854
|
props: { ...f, ...E }
|
|
1856
1855
|
};
|
|
1857
1856
|
},
|
|
1858
|
-
afterMerge: (e, t) =>
|
|
1857
|
+
afterMerge: (e, t) => _e.extractOnClickFromMergeResult(
|
|
1859
1858
|
e,
|
|
1860
1859
|
t.eventRegistry,
|
|
1861
1860
|
t.eventIdGenerator
|
|
1862
1861
|
)
|
|
1863
|
-
}),
|
|
1864
|
-
function
|
|
1862
|
+
}), Rs = rt.gsl, Cs = rt.gslByUid;
|
|
1863
|
+
function Ls(e) {
|
|
1865
1864
|
return {
|
|
1866
1865
|
uid: e.uid ?? "",
|
|
1867
1866
|
kind: "layout",
|
|
@@ -1870,7 +1869,7 @@ function Ws(e) {
|
|
|
1870
1869
|
children: []
|
|
1871
1870
|
};
|
|
1872
1871
|
}
|
|
1873
|
-
function
|
|
1872
|
+
function Zs(e, t) {
|
|
1874
1873
|
const n = t.walkChildren(t.children ?? []);
|
|
1875
1874
|
if (e.kind === "static")
|
|
1876
1875
|
return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
|
|
@@ -1880,17 +1879,20 @@ function Fs(e, t) {
|
|
|
1880
1879
|
return { ...t.mapStaticDef(i, "CUSTOM_LAYOUT"), children: n };
|
|
1881
1880
|
});
|
|
1882
1881
|
}
|
|
1883
|
-
function
|
|
1882
|
+
function Bs(e) {
|
|
1884
1883
|
return e.children;
|
|
1885
1884
|
}
|
|
1886
|
-
const
|
|
1885
|
+
const st = y({
|
|
1887
1886
|
itemType: "CUSTOM_LAYOUT",
|
|
1888
1887
|
kind: "layout",
|
|
1889
1888
|
entryShape: "compound",
|
|
1890
|
-
mapToWidget:
|
|
1891
|
-
buildCustomWidget:
|
|
1892
|
-
getChildren:
|
|
1893
|
-
}),
|
|
1889
|
+
mapToWidget: Ls,
|
|
1890
|
+
buildCustomWidget: Zs,
|
|
1891
|
+
getChildren: Bs
|
|
1892
|
+
}), xs = st.gsl, Ws = st.gslByUid, Fs = [
|
|
1893
|
+
be,
|
|
1894
|
+
ke,
|
|
1895
|
+
Se,
|
|
1894
1896
|
ve,
|
|
1895
1897
|
Ie,
|
|
1896
1898
|
Ee,
|
|
@@ -1914,26 +1916,23 @@ const at = y({
|
|
|
1914
1916
|
Fe,
|
|
1915
1917
|
je,
|
|
1916
1918
|
Ge,
|
|
1917
|
-
|
|
1919
|
+
fs,
|
|
1918
1920
|
Ke,
|
|
1919
1921
|
Je,
|
|
1920
|
-
|
|
1922
|
+
Ye,
|
|
1921
1923
|
He,
|
|
1922
|
-
qe,
|
|
1923
1924
|
Xe,
|
|
1925
|
+
qe,
|
|
1924
1926
|
Qe,
|
|
1925
1927
|
et,
|
|
1926
1928
|
tt,
|
|
1927
1929
|
nt,
|
|
1928
1930
|
rt,
|
|
1929
|
-
st
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
for (const e of Ks)
|
|
1935
|
-
Un(Yt, e);
|
|
1936
|
-
function Js(e, t, n) {
|
|
1931
|
+
st
|
|
1932
|
+
], Kt = An();
|
|
1933
|
+
for (const e of Fs)
|
|
1934
|
+
Pn(Kt, e);
|
|
1935
|
+
function js(e, t, n) {
|
|
1937
1936
|
if (typeof t == "function") {
|
|
1938
1937
|
const s = t;
|
|
1939
1938
|
return {
|
|
@@ -1951,7 +1950,7 @@ function Js(e, t, n) {
|
|
|
1951
1950
|
tags: n ?? []
|
|
1952
1951
|
};
|
|
1953
1952
|
}
|
|
1954
|
-
function
|
|
1953
|
+
function Gs(e, t, n) {
|
|
1955
1954
|
if (typeof t == "function") {
|
|
1956
1955
|
const s = t;
|
|
1957
1956
|
return {
|
|
@@ -1969,7 +1968,7 @@ function Ys(e, t, n) {
|
|
|
1969
1968
|
tags: n ?? []
|
|
1970
1969
|
};
|
|
1971
1970
|
}
|
|
1972
|
-
function
|
|
1971
|
+
function Vs(e, t, n) {
|
|
1973
1972
|
if (typeof t == "function") {
|
|
1974
1973
|
const s = t;
|
|
1975
1974
|
return {
|
|
@@ -1987,7 +1986,7 @@ function Hs(e, t, n) {
|
|
|
1987
1986
|
tags: n ?? []
|
|
1988
1987
|
};
|
|
1989
1988
|
}
|
|
1990
|
-
function
|
|
1989
|
+
function Ks(e, t, n) {
|
|
1991
1990
|
if (typeof t == "function") {
|
|
1992
1991
|
const i = t;
|
|
1993
1992
|
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (u) => ({ type: "select", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -1995,7 +1994,7 @@ function qs(e, t, n) {
|
|
|
1995
1994
|
const r = { type: "select", ...t };
|
|
1996
1995
|
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
1997
1996
|
}
|
|
1998
|
-
function
|
|
1997
|
+
function Js(e, t, n) {
|
|
1999
1998
|
if (typeof t == "function") {
|
|
2000
1999
|
const i = t;
|
|
2001
2000
|
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (u) => ({
|
|
@@ -2006,7 +2005,7 @@ function Xs(e, t, n) {
|
|
|
2006
2005
|
const r = { type: "dropdown", ...t };
|
|
2007
2006
|
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2008
2007
|
}
|
|
2009
|
-
function
|
|
2008
|
+
function Ys(e, t, n) {
|
|
2010
2009
|
if (typeof t == "function") {
|
|
2011
2010
|
const i = t;
|
|
2012
2011
|
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (u) => ({ type: "radiogroup", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2014,7 +2013,7 @@ function Qs(e, t, n) {
|
|
|
2014
2013
|
const r = { type: "radiogroup", ...t };
|
|
2015
2014
|
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2016
2015
|
}
|
|
2017
|
-
function
|
|
2016
|
+
function Hs(e, t, n) {
|
|
2018
2017
|
if (typeof t == "function") {
|
|
2019
2018
|
const i = t;
|
|
2020
2019
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (u) => ({ type: "checkbox", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2022,7 +2021,7 @@ function ei(e, t, n) {
|
|
|
2022
2021
|
const r = { type: "checkbox", ...t };
|
|
2023
2022
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2024
2023
|
}
|
|
2025
|
-
function
|
|
2024
|
+
function Xs(e, t, n) {
|
|
2026
2025
|
if (typeof t == "function") {
|
|
2027
2026
|
const i = t;
|
|
2028
2027
|
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (u) => ({ type: "textarea", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2030,7 +2029,7 @@ function ti(e, t, n) {
|
|
|
2030
2029
|
const r = { type: "textarea", ...t };
|
|
2031
2030
|
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2032
2031
|
}
|
|
2033
|
-
function
|
|
2032
|
+
function qs(e, t, n) {
|
|
2034
2033
|
if (typeof t == "function") {
|
|
2035
2034
|
const i = t;
|
|
2036
2035
|
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: (u) => ({ type: "password", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2038,7 +2037,7 @@ function ni(e, t, n) {
|
|
|
2038
2037
|
const r = { type: "password", ...t };
|
|
2039
2038
|
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2040
2039
|
}
|
|
2041
|
-
function
|
|
2040
|
+
function Qs(e, t, n) {
|
|
2042
2041
|
if (typeof t == "function") {
|
|
2043
2042
|
const i = t;
|
|
2044
2043
|
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (u) => ({ type: "currency", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2046,7 +2045,7 @@ function ri(e, t, n) {
|
|
|
2046
2045
|
const r = { type: "currency", ...t };
|
|
2047
2046
|
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2048
2047
|
}
|
|
2049
|
-
function
|
|
2048
|
+
function ei(e, t, n) {
|
|
2050
2049
|
if (typeof t == "function") {
|
|
2051
2050
|
const i = t;
|
|
2052
2051
|
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (u) => ({ type: "markdown", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2054,7 +2053,7 @@ function si(e, t, n) {
|
|
|
2054
2053
|
const r = { type: "markdown", ...t };
|
|
2055
2054
|
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2056
2055
|
}
|
|
2057
|
-
function
|
|
2056
|
+
function ti(e, t, n) {
|
|
2058
2057
|
if (typeof t == "function") {
|
|
2059
2058
|
const i = t;
|
|
2060
2059
|
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (u) => ({ type: "list", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2062,7 +2061,7 @@ function ii(e, t, n) {
|
|
|
2062
2061
|
const r = { type: "list", ...t };
|
|
2063
2062
|
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2064
2063
|
}
|
|
2065
|
-
function
|
|
2064
|
+
function ni(e, t, n) {
|
|
2066
2065
|
if (typeof t == "function") {
|
|
2067
2066
|
const s = t;
|
|
2068
2067
|
return {
|
|
@@ -2083,7 +2082,7 @@ function oi(e, t, n) {
|
|
|
2083
2082
|
tags: n ?? []
|
|
2084
2083
|
};
|
|
2085
2084
|
}
|
|
2086
|
-
function
|
|
2085
|
+
function ri(e, t, n) {
|
|
2087
2086
|
if (typeof t == "function") {
|
|
2088
2087
|
const s = t;
|
|
2089
2088
|
return {
|
|
@@ -2104,7 +2103,7 @@ function ai(e, t, n) {
|
|
|
2104
2103
|
tags: n ?? []
|
|
2105
2104
|
};
|
|
2106
2105
|
}
|
|
2107
|
-
function
|
|
2106
|
+
function si(e, t, n) {
|
|
2108
2107
|
if (typeof t == "function") {
|
|
2109
2108
|
const i = t;
|
|
2110
2109
|
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (u) => ({ type: "dateInput", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2112,7 +2111,7 @@ function ui(e, t, n) {
|
|
|
2112
2111
|
const r = { type: "dateInput", ...t };
|
|
2113
2112
|
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2114
2113
|
}
|
|
2115
|
-
function
|
|
2114
|
+
function ii(e, t, n) {
|
|
2116
2115
|
if (typeof t == "function") {
|
|
2117
2116
|
const i = t;
|
|
2118
2117
|
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2123,7 +2122,7 @@ function ci(e, t, n) {
|
|
|
2123
2122
|
const r = { type: "datePicker", ...t };
|
|
2124
2123
|
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2125
2124
|
}
|
|
2126
|
-
function
|
|
2125
|
+
function oi(e, t, n) {
|
|
2127
2126
|
if (typeof t == "function") {
|
|
2128
2127
|
const i = t;
|
|
2129
2128
|
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2134,7 +2133,7 @@ function li(e, t, n) {
|
|
|
2134
2133
|
const r = { type: "dateTimePicker", ...t };
|
|
2135
2134
|
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2136
2135
|
}
|
|
2137
|
-
function
|
|
2136
|
+
function ai(e, t, n) {
|
|
2138
2137
|
if (typeof t == "function") {
|
|
2139
2138
|
const i = t;
|
|
2140
2139
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (u) => ({
|
|
@@ -2145,7 +2144,7 @@ function pi(e, t, n) {
|
|
|
2145
2144
|
const r = { type: "rangeCalendar", ...t };
|
|
2146
2145
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2147
2146
|
}
|
|
2148
|
-
function
|
|
2147
|
+
function ui(e, t, n) {
|
|
2149
2148
|
if (typeof t == "function") {
|
|
2150
2149
|
const i = t;
|
|
2151
2150
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (u) => ({
|
|
@@ -2156,7 +2155,7 @@ function di(e, t, n) {
|
|
|
2156
2155
|
const r = { type: "rangeDateInput", ...t };
|
|
2157
2156
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2158
2157
|
}
|
|
2159
|
-
function
|
|
2158
|
+
function ci(e, t, n) {
|
|
2160
2159
|
if (typeof t == "function") {
|
|
2161
2160
|
const i = t;
|
|
2162
2161
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (u) => ({
|
|
@@ -2167,7 +2166,7 @@ function mi(e, t, n) {
|
|
|
2167
2166
|
const r = { type: "rangeDateTimeInput", ...t };
|
|
2168
2167
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2169
2168
|
}
|
|
2170
|
-
function
|
|
2169
|
+
function li(e, t, n) {
|
|
2171
2170
|
if (typeof t == "function") {
|
|
2172
2171
|
const i = t;
|
|
2173
2172
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (u) => ({
|
|
@@ -2178,7 +2177,7 @@ function yi(e, t, n) {
|
|
|
2178
2177
|
const r = { type: "rangeDateTimeCalendar", ...t };
|
|
2179
2178
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2180
2179
|
}
|
|
2181
|
-
function
|
|
2180
|
+
function pi(e, t, n) {
|
|
2182
2181
|
if (typeof t == "function") {
|
|
2183
2182
|
const i = t;
|
|
2184
2183
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2189,7 +2188,7 @@ function fi(e, t, n) {
|
|
|
2189
2188
|
const r = { type: "rangeDateTimePicker", ...t };
|
|
2190
2189
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2191
2190
|
}
|
|
2192
|
-
function
|
|
2191
|
+
function di(e, t, n) {
|
|
2193
2192
|
if (typeof t == "function") {
|
|
2194
2193
|
const i = t;
|
|
2195
2194
|
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (u) => ({
|
|
@@ -2200,7 +2199,7 @@ function gi(e, t, n) {
|
|
|
2200
2199
|
const r = { type: "rangeTimeInput", ...t };
|
|
2201
2200
|
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2202
2201
|
}
|
|
2203
|
-
function
|
|
2202
|
+
function mi(e, t, n) {
|
|
2204
2203
|
if (typeof t == "function") {
|
|
2205
2204
|
const i = t;
|
|
2206
2205
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2211,7 +2210,7 @@ function hi(e, t, n) {
|
|
|
2211
2210
|
const r = { type: "rangeDatePicker", ...t };
|
|
2212
2211
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2213
2212
|
}
|
|
2214
|
-
function
|
|
2213
|
+
function yi(e, t, n) {
|
|
2215
2214
|
if (typeof t == "function") {
|
|
2216
2215
|
const i = t;
|
|
2217
2216
|
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2222,7 +2221,7 @@ function Ti(e, t, n) {
|
|
|
2222
2221
|
const r = { type: "rangeTimePicker", ...t };
|
|
2223
2222
|
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2224
2223
|
}
|
|
2225
|
-
function
|
|
2224
|
+
function fi(e, t, n) {
|
|
2226
2225
|
if (typeof t == "function") {
|
|
2227
2226
|
const i = t;
|
|
2228
2227
|
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (u) => ({ type: "timeInput", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2230,7 +2229,7 @@ function _i(e, t, n) {
|
|
|
2230
2229
|
const r = { type: "timeInput", ...t };
|
|
2231
2230
|
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2232
2231
|
}
|
|
2233
|
-
function
|
|
2232
|
+
function gi(e, t, n) {
|
|
2234
2233
|
if (typeof t == "function") {
|
|
2235
2234
|
const i = t;
|
|
2236
2235
|
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (u) => ({
|
|
@@ -2241,7 +2240,7 @@ function bi(e, t, n) {
|
|
|
2241
2240
|
const r = { type: "timePicker", ...t };
|
|
2242
2241
|
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2243
2242
|
}
|
|
2244
|
-
function
|
|
2243
|
+
function hi(e, t, n) {
|
|
2245
2244
|
if (typeof t == "function") {
|
|
2246
2245
|
const i = t;
|
|
2247
2246
|
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (u) => ({
|
|
@@ -2252,7 +2251,7 @@ function ki(e, t, n) {
|
|
|
2252
2251
|
const r = { type: "dateTimeInput", ...t };
|
|
2253
2252
|
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2254
2253
|
}
|
|
2255
|
-
function
|
|
2254
|
+
function Ti(e, t, n, r) {
|
|
2256
2255
|
if (typeof n == "function") {
|
|
2257
2256
|
const o = n;
|
|
2258
2257
|
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (c) => ({
|
|
@@ -2263,7 +2262,7 @@ function Si(e, t, n, r) {
|
|
|
2263
2262
|
const s = { customType: e, ...n };
|
|
2264
2263
|
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: s }], tags: r ?? [] };
|
|
2265
2264
|
}
|
|
2266
|
-
function
|
|
2265
|
+
function _i(e, t) {
|
|
2267
2266
|
return {
|
|
2268
2267
|
items: [e],
|
|
2269
2268
|
type: "ITEMS",
|
|
@@ -2271,7 +2270,7 @@ function vi(e, t) {
|
|
|
2271
2270
|
tags: t ?? []
|
|
2272
2271
|
};
|
|
2273
2272
|
}
|
|
2274
|
-
function
|
|
2273
|
+
function bi(e, t, n) {
|
|
2275
2274
|
if (typeof t == "function") {
|
|
2276
2275
|
const i = t;
|
|
2277
2276
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
@@ -2280,19 +2279,19 @@ function Ii(e, t, n) {
|
|
|
2280
2279
|
}
|
|
2281
2280
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: n ?? [] };
|
|
2282
2281
|
}
|
|
2283
|
-
const
|
|
2282
|
+
const Jt = (e, t) => ({
|
|
2284
2283
|
type: "ITEMS",
|
|
2285
2284
|
itemType: D.DISPLAYS,
|
|
2286
2285
|
items: [{ render: e }],
|
|
2287
2286
|
tags: t ?? []
|
|
2288
2287
|
});
|
|
2289
|
-
function
|
|
2288
|
+
function ki(e, t) {
|
|
2290
2289
|
return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
|
|
2291
2290
|
}
|
|
2292
|
-
function
|
|
2291
|
+
function Si(e, t) {
|
|
2293
2292
|
return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
|
|
2294
2293
|
}
|
|
2295
|
-
function
|
|
2294
|
+
function vi(e, t, n) {
|
|
2296
2295
|
if (typeof t == "function") {
|
|
2297
2296
|
const a = t;
|
|
2298
2297
|
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
@@ -2306,12 +2305,12 @@ function Ai(e, t, n) {
|
|
|
2306
2305
|
props: Object.keys(s).length > 0 ? s : void 0
|
|
2307
2306
|
}], tags: n ?? [] };
|
|
2308
2307
|
}
|
|
2309
|
-
const
|
|
2308
|
+
const it = (e, t, n) => ({
|
|
2310
2309
|
type: "ITEMS",
|
|
2311
2310
|
itemType: D.LAYOUTS,
|
|
2312
2311
|
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
|
|
2313
2312
|
tags: n ?? []
|
|
2314
|
-
}),
|
|
2313
|
+
}), Ii = (e, t, n) => it(e, { direction: "row", ...t ?? {} }, n), Ei = (e, t, n) => it(e, { direction: "column", ...t ?? {} }, n), ot = (e, t, n) => ({
|
|
2315
2314
|
type: "ITEMS",
|
|
2316
2315
|
itemType: D.LAYOUTS,
|
|
2317
2316
|
items: [
|
|
@@ -2326,20 +2325,20 @@ const ut = (e, t, n) => ({
|
|
|
2326
2325
|
}
|
|
2327
2326
|
],
|
|
2328
2327
|
tags: n ?? []
|
|
2329
|
-
}),
|
|
2330
|
-
function
|
|
2328
|
+
}), wi = (e, t, n) => ot(e, { direction: "row", ...t ?? {} }, n), Ai = (e, t, n) => ot(e, { direction: "column", ...t ?? {} }, n);
|
|
2329
|
+
function Tt(e) {
|
|
2331
2330
|
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
2332
2331
|
}
|
|
2333
|
-
function
|
|
2332
|
+
function Pi(e, t, n) {
|
|
2334
2333
|
const r = e.map((o) => ({
|
|
2335
2334
|
label: o.label,
|
|
2336
|
-
uid: o.uid ??
|
|
2335
|
+
uid: o.uid ?? Tt(o.label)
|
|
2337
2336
|
})), s = e.map((o) => ({
|
|
2338
2337
|
type: "ITEMS",
|
|
2339
2338
|
itemType: D.LAYOUTS,
|
|
2340
2339
|
items: [
|
|
2341
2340
|
{
|
|
2342
|
-
def: { uid: o.uid ??
|
|
2341
|
+
def: { uid: o.uid ?? Tt(o.label), direction: "column", widgetName: "flex" },
|
|
2343
2342
|
children: o.children
|
|
2344
2343
|
}
|
|
2345
2344
|
],
|
|
@@ -2355,19 +2354,19 @@ function Ui(e, t, n) {
|
|
|
2355
2354
|
tags: n ?? []
|
|
2356
2355
|
};
|
|
2357
2356
|
}
|
|
2358
|
-
function
|
|
2357
|
+
function _t(e) {
|
|
2359
2358
|
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
2360
2359
|
}
|
|
2361
|
-
function
|
|
2360
|
+
function zi(e, t, n) {
|
|
2362
2361
|
const r = e.map((o) => ({
|
|
2363
2362
|
label: o.label,
|
|
2364
|
-
uid: o.uid ??
|
|
2363
|
+
uid: o.uid ?? _t(o.label)
|
|
2365
2364
|
})), s = e.map((o) => ({
|
|
2366
2365
|
type: "ITEMS",
|
|
2367
2366
|
itemType: D.LAYOUTS,
|
|
2368
2367
|
items: [
|
|
2369
2368
|
{
|
|
2370
|
-
def: { uid: o.uid ??
|
|
2369
|
+
def: { uid: o.uid ?? _t(o.label), direction: "column", widgetName: "flex" },
|
|
2371
2370
|
children: o.children
|
|
2372
2371
|
}
|
|
2373
2372
|
],
|
|
@@ -2383,7 +2382,7 @@ function $i(e, t, n) {
|
|
|
2383
2382
|
tags: n ?? []
|
|
2384
2383
|
};
|
|
2385
2384
|
}
|
|
2386
|
-
function
|
|
2385
|
+
function Di(e, t, n, r) {
|
|
2387
2386
|
if (typeof n == "function") {
|
|
2388
2387
|
const o = n;
|
|
2389
2388
|
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (c) => ({
|
|
@@ -2393,7 +2392,7 @@ function Ni(e, t, n, r) {
|
|
|
2393
2392
|
}
|
|
2394
2393
|
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...n }, children: t }], tags: r ?? [] };
|
|
2395
2394
|
}
|
|
2396
|
-
function
|
|
2395
|
+
function Mi(e, t, n) {
|
|
2397
2396
|
const { template: r, ...s } = t;
|
|
2398
2397
|
return {
|
|
2399
2398
|
type: "ITEMS",
|
|
@@ -2402,7 +2401,7 @@ function Oi(e, t, n) {
|
|
|
2402
2401
|
tags: n ?? []
|
|
2403
2402
|
};
|
|
2404
2403
|
}
|
|
2405
|
-
function
|
|
2404
|
+
function Ui(e, t, n) {
|
|
2406
2405
|
if (typeof t == "function") {
|
|
2407
2406
|
const i = t;
|
|
2408
2407
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (u) => ({ type: "tags", ...i(u) }) }], tags: n ?? [] };
|
|
@@ -2410,91 +2409,91 @@ function Ri(e, t, n) {
|
|
|
2410
2409
|
const r = { type: "tags", ...t };
|
|
2411
2410
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: r }], tags: n ?? [] };
|
|
2412
2411
|
}
|
|
2413
|
-
const
|
|
2412
|
+
const $i = (e) => ne(e, (t) => t.type === "text"), Ni = (e) => ne(e, (t) => t.type === "number"), Oi = (e) => ne(e, (t) => t.type === "boolean"), Ri = Un({
|
|
2414
2413
|
// Inputs
|
|
2415
|
-
inputs:
|
|
2416
|
-
inputByUid:
|
|
2417
|
-
textInputs:
|
|
2418
|
-
numberInputs:
|
|
2419
|
-
booleanInputs:
|
|
2420
|
-
selects:
|
|
2421
|
-
selectByUid:
|
|
2422
|
-
dropdowns:
|
|
2423
|
-
dropdownByUid:
|
|
2424
|
-
radiogroups:
|
|
2425
|
-
radiogroupByUid:
|
|
2426
|
-
checkboxes:
|
|
2427
|
-
checkboxByUid:
|
|
2428
|
-
textareas:
|
|
2429
|
-
textareaByUid:
|
|
2430
|
-
passwords:
|
|
2431
|
-
passwordByUid:
|
|
2432
|
-
currencies:
|
|
2433
|
-
currencyByUid:
|
|
2434
|
-
markdowns:
|
|
2435
|
-
markdownByUid:
|
|
2436
|
-
lists:
|
|
2437
|
-
listByUid:
|
|
2438
|
-
calendars:
|
|
2439
|
-
calendarByUid:
|
|
2440
|
-
dateTimeCalendars:
|
|
2441
|
-
dateTimeCalendarByUid:
|
|
2442
|
-
dateInputs:
|
|
2443
|
-
dateInputByUid:
|
|
2444
|
-
timeInputs:
|
|
2445
|
-
timeInputByUid:
|
|
2446
|
-
timePickers:
|
|
2447
|
-
timePickerByUid:
|
|
2448
|
-
dateTimeInputs:
|
|
2449
|
-
dateTimeInputByUid:
|
|
2450
|
-
datePickers:
|
|
2451
|
-
datePickerByUid:
|
|
2452
|
-
dateTimePickers:
|
|
2453
|
-
dateTimePickerByUid:
|
|
2454
|
-
rangeCalendars:
|
|
2455
|
-
rangeCalendarByUid:
|
|
2456
|
-
rangeDateInputs:
|
|
2457
|
-
rangeDateInputByUid:
|
|
2458
|
-
rangeTimeInputs:
|
|
2459
|
-
rangeTimeInputByUid:
|
|
2460
|
-
rangeDateTimeInputs:
|
|
2461
|
-
rangeDateTimeInputByUid:
|
|
2462
|
-
rangeDateTimeCalendars:
|
|
2463
|
-
rangeDateTimeCalendarByUid:
|
|
2464
|
-
rangeDateTimePickers:
|
|
2465
|
-
rangeDateTimePickerByUid:
|
|
2466
|
-
rangeDatePickers:
|
|
2467
|
-
rangeDatePickerByUid:
|
|
2468
|
-
rangeTimePickers:
|
|
2469
|
-
rangeTimePickerByUid:
|
|
2470
|
-
repeaters:
|
|
2471
|
-
repeaterByUid:
|
|
2414
|
+
inputs: ne,
|
|
2415
|
+
inputByUid: nr,
|
|
2416
|
+
textInputs: $i,
|
|
2417
|
+
numberInputs: Ni,
|
|
2418
|
+
booleanInputs: Oi,
|
|
2419
|
+
selects: Zr,
|
|
2420
|
+
selectByUid: Br,
|
|
2421
|
+
dropdowns: ns,
|
|
2422
|
+
dropdownByUid: rs,
|
|
2423
|
+
radiogroups: xr,
|
|
2424
|
+
radiogroupByUid: Wr,
|
|
2425
|
+
checkboxes: Er,
|
|
2426
|
+
checkboxByUid: wr,
|
|
2427
|
+
textareas: kr,
|
|
2428
|
+
textareaByUid: Sr,
|
|
2429
|
+
passwords: vr,
|
|
2430
|
+
passwordByUid: Ir,
|
|
2431
|
+
currencies: Or,
|
|
2432
|
+
currencyByUid: Rr,
|
|
2433
|
+
markdowns: gs,
|
|
2434
|
+
markdownByUid: hs,
|
|
2435
|
+
lists: Jr,
|
|
2436
|
+
listByUid: Yr,
|
|
2437
|
+
calendars: fr,
|
|
2438
|
+
calendarByUid: gr,
|
|
2439
|
+
dateTimeCalendars: hr,
|
|
2440
|
+
dateTimeCalendarByUid: Tr,
|
|
2441
|
+
dateInputs: Ar,
|
|
2442
|
+
dateInputByUid: Pr,
|
|
2443
|
+
timeInputs: zr,
|
|
2444
|
+
timeInputByUid: Dr,
|
|
2445
|
+
timePickers: Mr,
|
|
2446
|
+
timePickerByUid: Ur,
|
|
2447
|
+
dateTimeInputs: $r,
|
|
2448
|
+
dateTimeInputByUid: Nr,
|
|
2449
|
+
datePickers: es,
|
|
2450
|
+
datePickerByUid: ts,
|
|
2451
|
+
dateTimePickers: _r,
|
|
2452
|
+
dateTimePickerByUid: br,
|
|
2453
|
+
rangeCalendars: Cr,
|
|
2454
|
+
rangeCalendarByUid: Lr,
|
|
2455
|
+
rangeDateInputs: Ts,
|
|
2456
|
+
rangeDateInputByUid: _s,
|
|
2457
|
+
rangeTimeInputs: bs,
|
|
2458
|
+
rangeTimeInputByUid: ks,
|
|
2459
|
+
rangeDateTimeInputs: Ss,
|
|
2460
|
+
rangeDateTimeInputByUid: vs,
|
|
2461
|
+
rangeDateTimeCalendars: Is,
|
|
2462
|
+
rangeDateTimeCalendarByUid: Es,
|
|
2463
|
+
rangeDateTimePickers: ws,
|
|
2464
|
+
rangeDateTimePickerByUid: As,
|
|
2465
|
+
rangeDatePickers: Ps,
|
|
2466
|
+
rangeDatePickerByUid: zs,
|
|
2467
|
+
rangeTimePickers: Ds,
|
|
2468
|
+
rangeTimePickerByUid: Ms,
|
|
2469
|
+
repeaters: Ve,
|
|
2470
|
+
repeaterByUid: Vt,
|
|
2472
2471
|
// Actions, displays, layouts
|
|
2473
|
-
actions:
|
|
2474
|
-
actionByUid:
|
|
2475
|
-
layouts:
|
|
2476
|
-
layoutByUid:
|
|
2477
|
-
displays:
|
|
2478
|
-
displayByUid:
|
|
2479
|
-
alerts:
|
|
2480
|
-
alertByUid:
|
|
2481
|
-
markdownTexts:
|
|
2482
|
-
markdownTextByUid:
|
|
2483
|
-
tabs:
|
|
2484
|
-
tabsByUid:
|
|
2485
|
-
accordions:
|
|
2486
|
-
accordionByUid:
|
|
2472
|
+
actions: sr,
|
|
2473
|
+
actionByUid: ir,
|
|
2474
|
+
layouts: cr,
|
|
2475
|
+
layoutByUid: lr,
|
|
2476
|
+
displays: mr,
|
|
2477
|
+
displayByUid: yr,
|
|
2478
|
+
alerts: Hr,
|
|
2479
|
+
alertByUid: Xr,
|
|
2480
|
+
markdownTexts: qr,
|
|
2481
|
+
markdownTextByUid: Qr,
|
|
2482
|
+
tabs: Vr,
|
|
2483
|
+
tabsByUid: Kr,
|
|
2484
|
+
accordions: as,
|
|
2485
|
+
accordionByUid: us,
|
|
2487
2486
|
// Custom kinds
|
|
2488
|
-
customInputs:
|
|
2489
|
-
customInputByUid:
|
|
2490
|
-
customActions:
|
|
2491
|
-
customActionByUid:
|
|
2492
|
-
customDisplays:
|
|
2493
|
-
customDisplayByUid:
|
|
2494
|
-
customLayouts:
|
|
2495
|
-
customLayoutByUid:
|
|
2496
|
-
}),
|
|
2497
|
-
bareItemToWidget: (e) =>
|
|
2487
|
+
customInputs: Ns,
|
|
2488
|
+
customInputByUid: Os,
|
|
2489
|
+
customActions: Rs,
|
|
2490
|
+
customActionByUid: Cs,
|
|
2491
|
+
customDisplays: Us,
|
|
2492
|
+
customDisplayByUid: $s,
|
|
2493
|
+
customLayouts: xs,
|
|
2494
|
+
customLayoutByUid: Ws
|
|
2495
|
+
}), Ci = {
|
|
2496
|
+
bareItemToWidget: (e) => Jt(e),
|
|
2498
2497
|
rootEntry: (e) => {
|
|
2499
2498
|
const t = {
|
|
2500
2499
|
def: { uid: "#root", direction: "column", widgetName: "flex" },
|
|
@@ -2502,68 +2501,68 @@ const Ci = (e) => se(e, (t) => t.type === "text"), Li = (e) => se(e, (t) => t.ty
|
|
|
2502
2501
|
};
|
|
2503
2502
|
return { type: "ITEMS", itemType: D.LAYOUTS, items: [t], tags: [] };
|
|
2504
2503
|
}
|
|
2505
|
-
},
|
|
2504
|
+
}, Li = {
|
|
2506
2505
|
inputs: {
|
|
2507
|
-
textInput:
|
|
2508
|
-
numberInput:
|
|
2509
|
-
booleanInput:
|
|
2510
|
-
select:
|
|
2511
|
-
dropdown:
|
|
2512
|
-
radiogroup:
|
|
2513
|
-
checkbox:
|
|
2514
|
-
textarea:
|
|
2515
|
-
password:
|
|
2516
|
-
currency:
|
|
2517
|
-
markdown:
|
|
2518
|
-
list:
|
|
2519
|
-
calendar:
|
|
2520
|
-
dateTimeCalendar:
|
|
2521
|
-
dateInput:
|
|
2522
|
-
datePicker:
|
|
2523
|
-
dateTimePicker:
|
|
2524
|
-
timeInput:
|
|
2525
|
-
timePicker:
|
|
2526
|
-
dateTimeInput:
|
|
2527
|
-
rangeCalendar:
|
|
2528
|
-
rangeDateInput:
|
|
2529
|
-
rangeDateTimeInput:
|
|
2530
|
-
rangeDateTimeCalendar:
|
|
2531
|
-
rangeDateTimePicker:
|
|
2532
|
-
rangeTimeInput:
|
|
2533
|
-
rangeDatePicker:
|
|
2534
|
-
rangeTimePicker:
|
|
2535
|
-
repeater:
|
|
2536
|
-
tags:
|
|
2537
|
-
custom:
|
|
2506
|
+
textInput: js,
|
|
2507
|
+
numberInput: Gs,
|
|
2508
|
+
booleanInput: Vs,
|
|
2509
|
+
select: Ks,
|
|
2510
|
+
dropdown: Js,
|
|
2511
|
+
radiogroup: Ys,
|
|
2512
|
+
checkbox: Hs,
|
|
2513
|
+
textarea: Xs,
|
|
2514
|
+
password: qs,
|
|
2515
|
+
currency: Qs,
|
|
2516
|
+
markdown: ei,
|
|
2517
|
+
list: ti,
|
|
2518
|
+
calendar: ni,
|
|
2519
|
+
dateTimeCalendar: ri,
|
|
2520
|
+
dateInput: si,
|
|
2521
|
+
datePicker: ii,
|
|
2522
|
+
dateTimePicker: oi,
|
|
2523
|
+
timeInput: fi,
|
|
2524
|
+
timePicker: gi,
|
|
2525
|
+
dateTimeInput: hi,
|
|
2526
|
+
rangeCalendar: ai,
|
|
2527
|
+
rangeDateInput: ui,
|
|
2528
|
+
rangeDateTimeInput: ci,
|
|
2529
|
+
rangeDateTimeCalendar: li,
|
|
2530
|
+
rangeDateTimePicker: pi,
|
|
2531
|
+
rangeTimeInput: di,
|
|
2532
|
+
rangeDatePicker: mi,
|
|
2533
|
+
rangeTimePicker: yi,
|
|
2534
|
+
repeater: Mi,
|
|
2535
|
+
tags: Ui,
|
|
2536
|
+
custom: Ti
|
|
2538
2537
|
},
|
|
2539
2538
|
actions: {
|
|
2540
|
-
button:
|
|
2541
|
-
custom:
|
|
2539
|
+
button: _i,
|
|
2540
|
+
custom: bi
|
|
2542
2541
|
},
|
|
2543
2542
|
displays: {
|
|
2544
|
-
display:
|
|
2545
|
-
alert:
|
|
2546
|
-
markdownText:
|
|
2547
|
-
custom:
|
|
2543
|
+
display: Jt,
|
|
2544
|
+
alert: ki,
|
|
2545
|
+
markdownText: Si,
|
|
2546
|
+
custom: vi
|
|
2548
2547
|
},
|
|
2549
2548
|
layouts: {
|
|
2550
|
-
flex:
|
|
2551
|
-
horizontalFlex:
|
|
2552
|
-
verticalFlex:
|
|
2553
|
-
grid:
|
|
2554
|
-
horizontalGrid:
|
|
2555
|
-
verticalGrid:
|
|
2556
|
-
tabs:
|
|
2557
|
-
accordion:
|
|
2558
|
-
custom:
|
|
2559
|
-
}
|
|
2560
|
-
},
|
|
2549
|
+
flex: it,
|
|
2550
|
+
horizontalFlex: Ii,
|
|
2551
|
+
verticalFlex: Ei,
|
|
2552
|
+
grid: ot,
|
|
2553
|
+
horizontalGrid: wi,
|
|
2554
|
+
verticalGrid: Ai,
|
|
2555
|
+
tabs: Pi,
|
|
2556
|
+
accordion: zi,
|
|
2557
|
+
custom: Di
|
|
2558
|
+
}
|
|
2559
|
+
}, Zi = Hn({
|
|
2561
2560
|
name: "gui",
|
|
2562
|
-
registry:
|
|
2563
|
-
facade:
|
|
2564
|
-
selectors:
|
|
2565
|
-
adapter:
|
|
2566
|
-
}),
|
|
2561
|
+
registry: Kt,
|
|
2562
|
+
facade: Li,
|
|
2563
|
+
selectors: Ri,
|
|
2564
|
+
adapter: Ci
|
|
2565
|
+
}), Bi = Zi.resolveFormInput;
|
|
2567
2566
|
function l(e, t, n) {
|
|
2568
2567
|
function r(a, u) {
|
|
2569
2568
|
if (a._zod || Object.defineProperty(a, "_zod", {
|
|
@@ -2603,32 +2602,32 @@ class F extends Error {
|
|
|
2603
2602
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
2604
2603
|
}
|
|
2605
2604
|
}
|
|
2606
|
-
class
|
|
2605
|
+
class Yt extends Error {
|
|
2607
2606
|
constructor(t) {
|
|
2608
2607
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
2609
2608
|
}
|
|
2610
2609
|
}
|
|
2611
|
-
const
|
|
2610
|
+
const xi = {};
|
|
2612
2611
|
function L(e) {
|
|
2613
|
-
return
|
|
2612
|
+
return xi;
|
|
2614
2613
|
}
|
|
2615
|
-
function
|
|
2614
|
+
function ye(e, t) {
|
|
2616
2615
|
return typeof t == "bigint" ? t.toString() : t;
|
|
2617
2616
|
}
|
|
2618
|
-
function
|
|
2617
|
+
function at(e) {
|
|
2619
2618
|
return e == null;
|
|
2620
2619
|
}
|
|
2621
|
-
function
|
|
2620
|
+
function ut(e) {
|
|
2622
2621
|
const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
2623
2622
|
return e.slice(t, n);
|
|
2624
2623
|
}
|
|
2625
|
-
const
|
|
2624
|
+
const bt = /* @__PURE__ */ Symbol("evaluating");
|
|
2626
2625
|
function _(e, t, n) {
|
|
2627
2626
|
let r;
|
|
2628
2627
|
Object.defineProperty(e, t, {
|
|
2629
2628
|
get() {
|
|
2630
|
-
if (r !==
|
|
2631
|
-
return r === void 0 && (r =
|
|
2629
|
+
if (r !== bt)
|
|
2630
|
+
return r === void 0 && (r = bt, r = n()), r;
|
|
2632
2631
|
},
|
|
2633
2632
|
set(s) {
|
|
2634
2633
|
Object.defineProperty(e, t, {
|
|
@@ -2639,7 +2638,7 @@ function _(e, t, n) {
|
|
|
2639
2638
|
configurable: !0
|
|
2640
2639
|
});
|
|
2641
2640
|
}
|
|
2642
|
-
function
|
|
2641
|
+
function Wi(...e) {
|
|
2643
2642
|
const t = {};
|
|
2644
2643
|
for (const n of e) {
|
|
2645
2644
|
const r = Object.getOwnPropertyDescriptors(n);
|
|
@@ -2647,30 +2646,30 @@ function Vi(...e) {
|
|
|
2647
2646
|
}
|
|
2648
2647
|
return Object.defineProperties({}, t);
|
|
2649
2648
|
}
|
|
2650
|
-
function
|
|
2649
|
+
function Fi(e) {
|
|
2651
2650
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
2652
2651
|
}
|
|
2653
|
-
const
|
|
2652
|
+
const Ht = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
2654
2653
|
};
|
|
2655
|
-
function
|
|
2654
|
+
function kt(e) {
|
|
2656
2655
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2657
2656
|
}
|
|
2658
|
-
function
|
|
2659
|
-
if (
|
|
2657
|
+
function fe(e) {
|
|
2658
|
+
if (kt(e) === !1)
|
|
2660
2659
|
return !1;
|
|
2661
2660
|
const t = e.constructor;
|
|
2662
2661
|
if (t === void 0 || typeof t != "function")
|
|
2663
2662
|
return !0;
|
|
2664
2663
|
const n = t.prototype;
|
|
2665
|
-
return !(
|
|
2664
|
+
return !(kt(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
2666
2665
|
}
|
|
2667
|
-
function
|
|
2668
|
-
return
|
|
2666
|
+
function Xt(e) {
|
|
2667
|
+
return fe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
2669
2668
|
}
|
|
2670
|
-
function
|
|
2669
|
+
function ct(e) {
|
|
2671
2670
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2672
2671
|
}
|
|
2673
|
-
function
|
|
2672
|
+
function qt(e, t, n) {
|
|
2674
2673
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
2675
2674
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
2676
2675
|
}
|
|
@@ -2687,7 +2686,7 @@ function g(e) {
|
|
|
2687
2686
|
}
|
|
2688
2687
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
2689
2688
|
}
|
|
2690
|
-
const
|
|
2689
|
+
const ji = {
|
|
2691
2690
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
2692
2691
|
int32: [-2147483648, 2147483647],
|
|
2693
2692
|
uint32: [0, 4294967295],
|
|
@@ -2702,27 +2701,27 @@ function W(e, t = 0) {
|
|
|
2702
2701
|
return !0;
|
|
2703
2702
|
return !1;
|
|
2704
2703
|
}
|
|
2705
|
-
function
|
|
2704
|
+
function Gi(e, t) {
|
|
2706
2705
|
return t.map((n) => {
|
|
2707
2706
|
var r;
|
|
2708
2707
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
2709
2708
|
});
|
|
2710
2709
|
}
|
|
2711
|
-
function
|
|
2710
|
+
function Q(e) {
|
|
2712
2711
|
return typeof e == "string" ? e : e?.message;
|
|
2713
2712
|
}
|
|
2714
2713
|
function Z(e, t, n) {
|
|
2715
2714
|
const r = { ...e, path: e.path ?? [] };
|
|
2716
2715
|
if (!e.message) {
|
|
2717
|
-
const s =
|
|
2716
|
+
const s = Q(e.inst?._zod.def?.error?.(e)) ?? Q(t?.error?.(e)) ?? Q(n.customError?.(e)) ?? Q(n.localeError?.(e)) ?? "Invalid input";
|
|
2718
2717
|
r.message = s;
|
|
2719
2718
|
}
|
|
2720
2719
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
2721
2720
|
}
|
|
2722
|
-
function
|
|
2721
|
+
function lt(e) {
|
|
2723
2722
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
2724
2723
|
}
|
|
2725
|
-
function
|
|
2724
|
+
function H(...e) {
|
|
2726
2725
|
const [t, n, r] = e;
|
|
2727
2726
|
return typeof t == "string" ? {
|
|
2728
2727
|
message: t,
|
|
@@ -2731,25 +2730,25 @@ function q(...e) {
|
|
|
2731
2730
|
inst: r
|
|
2732
2731
|
} : { ...t };
|
|
2733
2732
|
}
|
|
2734
|
-
const
|
|
2733
|
+
const Qt = (e, t) => {
|
|
2735
2734
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
2736
2735
|
value: e._zod,
|
|
2737
2736
|
enumerable: !1
|
|
2738
2737
|
}), Object.defineProperty(e, "issues", {
|
|
2739
2738
|
value: t,
|
|
2740
2739
|
enumerable: !1
|
|
2741
|
-
}), e.message = JSON.stringify(t,
|
|
2740
|
+
}), e.message = JSON.stringify(t, ye, 2), Object.defineProperty(e, "toString", {
|
|
2742
2741
|
value: () => e.message,
|
|
2743
2742
|
enumerable: !1
|
|
2744
2743
|
});
|
|
2745
|
-
},
|
|
2746
|
-
function
|
|
2744
|
+
}, en = l("$ZodError", Qt), re = l("$ZodError", Qt, { Parent: Error });
|
|
2745
|
+
function Vi(e, t = (n) => n.message) {
|
|
2747
2746
|
const n = {}, r = [];
|
|
2748
2747
|
for (const s of e.issues)
|
|
2749
2748
|
s.path.length > 0 ? (n[s.path[0]] = n[s.path[0]] || [], n[s.path[0]].push(t(s))) : r.push(t(s));
|
|
2750
2749
|
return { formErrors: r, fieldErrors: n };
|
|
2751
2750
|
}
|
|
2752
|
-
function
|
|
2751
|
+
function Ki(e, t = (n) => n.message) {
|
|
2753
2752
|
const n = { _errors: [] }, r = (s) => {
|
|
2754
2753
|
for (const i of s.issues)
|
|
2755
2754
|
if (i.code === "invalid_union" && i.errors.length)
|
|
@@ -2770,77 +2769,77 @@ function qi(e, t = (n) => n.message) {
|
|
|
2770
2769
|
};
|
|
2771
2770
|
return r(e), n;
|
|
2772
2771
|
}
|
|
2773
|
-
const
|
|
2772
|
+
const se = (e) => (t, n, r, s) => {
|
|
2774
2773
|
const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({ value: n, issues: [] }, i);
|
|
2775
2774
|
if (o instanceof Promise)
|
|
2776
2775
|
throw new F();
|
|
2777
2776
|
if (o.issues.length) {
|
|
2778
2777
|
const a = new (s?.Err ?? e)(o.issues.map((u) => Z(u, i, L())));
|
|
2779
|
-
throw
|
|
2778
|
+
throw Ht(a, s?.callee), a;
|
|
2780
2779
|
}
|
|
2781
2780
|
return o.value;
|
|
2782
|
-
},
|
|
2781
|
+
}, Ji = /* @__PURE__ */ se(re), ie = (e) => async (t, n, r, s) => {
|
|
2783
2782
|
const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
2784
2783
|
let o = t._zod.run({ value: n, issues: [] }, i);
|
|
2785
2784
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
2786
2785
|
const a = new (s?.Err ?? e)(o.issues.map((u) => Z(u, i, L())));
|
|
2787
|
-
throw
|
|
2786
|
+
throw Ht(a, s?.callee), a;
|
|
2788
2787
|
}
|
|
2789
2788
|
return o.value;
|
|
2790
|
-
},
|
|
2789
|
+
}, Yi = /* @__PURE__ */ ie(re), oe = (e) => (t, n, r) => {
|
|
2791
2790
|
const s = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
|
|
2792
2791
|
if (i instanceof Promise)
|
|
2793
2792
|
throw new F();
|
|
2794
2793
|
return i.issues.length ? {
|
|
2795
2794
|
success: !1,
|
|
2796
|
-
error: new (e ??
|
|
2795
|
+
error: new (e ?? en)(i.issues.map((o) => Z(o, s, L())))
|
|
2797
2796
|
} : { success: !0, data: i.value };
|
|
2798
|
-
},
|
|
2797
|
+
}, tn = /* @__PURE__ */ oe(re), ae = (e) => async (t, n, r) => {
|
|
2799
2798
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
2800
2799
|
let i = t._zod.run({ value: n, issues: [] }, s);
|
|
2801
2800
|
return i instanceof Promise && (i = await i), i.issues.length ? {
|
|
2802
2801
|
success: !1,
|
|
2803
2802
|
error: new e(i.issues.map((o) => Z(o, s, L())))
|
|
2804
2803
|
} : { success: !0, data: i.value };
|
|
2805
|
-
},
|
|
2804
|
+
}, nn = /* @__PURE__ */ ae(re), Hi = (e) => (t, n, r) => {
|
|
2805
|
+
const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2806
|
+
return se(e)(t, n, s);
|
|
2807
|
+
}, Xi = (e) => (t, n, r) => se(e)(t, n, r), qi = (e) => async (t, n, r) => {
|
|
2808
|
+
const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2809
|
+
return ie(e)(t, n, s);
|
|
2810
|
+
}, Qi = (e) => async (t, n, r) => ie(e)(t, n, r), eo = (e) => (t, n, r) => {
|
|
2806
2811
|
const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2807
2812
|
return oe(e)(t, n, s);
|
|
2808
2813
|
}, to = (e) => (t, n, r) => oe(e)(t, n, r), no = (e) => async (t, n, r) => {
|
|
2809
2814
|
const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2810
2815
|
return ae(e)(t, n, s);
|
|
2811
|
-
}, ro = (e) => async (t, n, r) => ae(e)(t, n, r), so = (e) => (
|
|
2812
|
-
|
|
2813
|
-
return ue(e)(t, n, s);
|
|
2814
|
-
}, io = (e) => (t, n, r) => ue(e)(t, n, r), oo = (e) => async (t, n, r) => {
|
|
2815
|
-
const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
2816
|
-
return ce(e)(t, n, s);
|
|
2817
|
-
}, ao = (e) => async (t, n, r) => ce(e)(t, n, r), uo = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Et = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/, co = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, lo = /^(?:(?: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])$/, po = /^(([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}|:))$/, mo = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, on = "(?:(?:\\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])))", yo = /* @__PURE__ */ new RegExp(`^${on}$`);
|
|
2818
|
-
function an(e) {
|
|
2816
|
+
}, ro = (e) => async (t, n, r) => ae(e)(t, n, r), so = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, St = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[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)$/, io = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, oo = /^(?:(?: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])$/, ao = /^(([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}|:))$/, uo = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, rn = "(?:(?:\\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])))", co = /* @__PURE__ */ new RegExp(`^${rn}$`);
|
|
2817
|
+
function sn(e) {
|
|
2819
2818
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
2820
2819
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
2821
2820
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return new RegExp(`^${
|
|
2821
|
+
function lo(e) {
|
|
2822
|
+
return new RegExp(`^${sn(e)}$`);
|
|
2824
2823
|
}
|
|
2825
|
-
function
|
|
2826
|
-
const t =
|
|
2824
|
+
function po(e) {
|
|
2825
|
+
const t = sn({ precision: e.precision }), n = ["Z"];
|
|
2827
2826
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
2828
2827
|
const r = `${t}(?:${n.join("|")})`;
|
|
2829
|
-
return new RegExp(`^${
|
|
2828
|
+
return new RegExp(`^${rn}T(?:${r})$`);
|
|
2830
2829
|
}
|
|
2831
|
-
const
|
|
2830
|
+
const mo = (e) => {
|
|
2832
2831
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
2833
2832
|
return new RegExp(`^${t}$`);
|
|
2834
|
-
},
|
|
2833
|
+
}, yo = /^-?\d+$/, fo = /^-?\d+(?:\.\d+)?$/, go = /^(?:true|false)$/i, ho = /^[^A-Z]*$/, To = /^[^a-z]*$/, M = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
|
|
2835
2834
|
var n;
|
|
2836
2835
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
2837
|
-
}),
|
|
2836
|
+
}), on = {
|
|
2838
2837
|
number: "number",
|
|
2839
2838
|
bigint: "bigint",
|
|
2840
2839
|
object: "date"
|
|
2841
|
-
},
|
|
2840
|
+
}, _o = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
|
|
2842
2841
|
M.init(e, t);
|
|
2843
|
-
const n =
|
|
2842
|
+
const n = on[typeof t.value];
|
|
2844
2843
|
e._zod.onattach.push((r) => {
|
|
2845
2844
|
const s = r._zod.bag, i = (t.inclusive ? s.maximum : s.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
2846
2845
|
t.value < i && (t.inclusive ? s.maximum = t.value : s.exclusiveMaximum = t.value);
|
|
@@ -2855,9 +2854,9 @@ const ho = (e) => {
|
|
|
2855
2854
|
continue: !t.abort
|
|
2856
2855
|
});
|
|
2857
2856
|
};
|
|
2858
|
-
}),
|
|
2857
|
+
}), bo = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
|
|
2859
2858
|
M.init(e, t);
|
|
2860
|
-
const n =
|
|
2859
|
+
const n = on[typeof t.value];
|
|
2861
2860
|
e._zod.onattach.push((r) => {
|
|
2862
2861
|
const s = r._zod.bag, i = (t.inclusive ? s.minimum : s.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
2863
2862
|
t.value > i && (t.inclusive ? s.minimum = t.value : s.exclusiveMinimum = t.value);
|
|
@@ -2872,12 +2871,12 @@ const ho = (e) => {
|
|
|
2872
2871
|
continue: !t.abort
|
|
2873
2872
|
});
|
|
2874
2873
|
};
|
|
2875
|
-
}),
|
|
2874
|
+
}), ko = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
|
|
2876
2875
|
M.init(e, t), t.format = t.format || "float64";
|
|
2877
|
-
const n = t.format?.includes("int"), r = n ? "int" : "number", [s, i] =
|
|
2876
|
+
const n = t.format?.includes("int"), r = n ? "int" : "number", [s, i] = ji[t.format];
|
|
2878
2877
|
e._zod.onattach.push((o) => {
|
|
2879
2878
|
const a = o._zod.bag;
|
|
2880
|
-
a.format = t.format, a.minimum = s, a.maximum = i, n && (a.pattern =
|
|
2879
|
+
a.format = t.format, a.minimum = s, a.maximum = i, n && (a.pattern = yo);
|
|
2881
2880
|
}), e._zod.check = (o) => {
|
|
2882
2881
|
const a = o.value;
|
|
2883
2882
|
if (n) {
|
|
@@ -2933,11 +2932,11 @@ const ho = (e) => {
|
|
|
2933
2932
|
continue: !t.abort
|
|
2934
2933
|
});
|
|
2935
2934
|
};
|
|
2936
|
-
}),
|
|
2935
|
+
}), So = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
|
|
2937
2936
|
var n;
|
|
2938
2937
|
M.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
2939
2938
|
const s = r.value;
|
|
2940
|
-
return !
|
|
2939
|
+
return !at(s) && s.length !== void 0;
|
|
2941
2940
|
}), e._zod.onattach.push((r) => {
|
|
2942
2941
|
const s = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
2943
2942
|
t.maximum < s && (r._zod.bag.maximum = t.maximum);
|
|
@@ -2945,7 +2944,7 @@ const ho = (e) => {
|
|
|
2945
2944
|
const s = r.value;
|
|
2946
2945
|
if (s.length <= t.maximum)
|
|
2947
2946
|
return;
|
|
2948
|
-
const o =
|
|
2947
|
+
const o = lt(s);
|
|
2949
2948
|
r.issues.push({
|
|
2950
2949
|
origin: o,
|
|
2951
2950
|
code: "too_big",
|
|
@@ -2956,11 +2955,11 @@ const ho = (e) => {
|
|
|
2956
2955
|
continue: !t.abort
|
|
2957
2956
|
});
|
|
2958
2957
|
};
|
|
2959
|
-
}),
|
|
2958
|
+
}), vo = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
|
|
2960
2959
|
var n;
|
|
2961
2960
|
M.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
2962
2961
|
const s = r.value;
|
|
2963
|
-
return !
|
|
2962
|
+
return !at(s) && s.length !== void 0;
|
|
2964
2963
|
}), e._zod.onattach.push((r) => {
|
|
2965
2964
|
const s = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
2966
2965
|
t.minimum > s && (r._zod.bag.minimum = t.minimum);
|
|
@@ -2968,7 +2967,7 @@ const ho = (e) => {
|
|
|
2968
2967
|
const s = r.value;
|
|
2969
2968
|
if (s.length >= t.minimum)
|
|
2970
2969
|
return;
|
|
2971
|
-
const o =
|
|
2970
|
+
const o = lt(s);
|
|
2972
2971
|
r.issues.push({
|
|
2973
2972
|
origin: o,
|
|
2974
2973
|
code: "too_small",
|
|
@@ -2979,11 +2978,11 @@ const ho = (e) => {
|
|
|
2979
2978
|
continue: !t.abort
|
|
2980
2979
|
});
|
|
2981
2980
|
};
|
|
2982
|
-
}),
|
|
2981
|
+
}), Io = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
|
|
2983
2982
|
var n;
|
|
2984
2983
|
M.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
2985
2984
|
const s = r.value;
|
|
2986
|
-
return !
|
|
2985
|
+
return !at(s) && s.length !== void 0;
|
|
2987
2986
|
}), e._zod.onattach.push((r) => {
|
|
2988
2987
|
const s = r._zod.bag;
|
|
2989
2988
|
s.minimum = t.length, s.maximum = t.length, s.length = t.length;
|
|
@@ -2991,7 +2990,7 @@ const ho = (e) => {
|
|
|
2991
2990
|
const s = r.value, i = s.length;
|
|
2992
2991
|
if (i === t.length)
|
|
2993
2992
|
return;
|
|
2994
|
-
const o =
|
|
2993
|
+
const o = lt(s), a = i > t.length;
|
|
2995
2994
|
r.issues.push({
|
|
2996
2995
|
origin: o,
|
|
2997
2996
|
...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
@@ -3002,7 +3001,7 @@ const ho = (e) => {
|
|
|
3002
3001
|
continue: !t.abort
|
|
3003
3002
|
});
|
|
3004
3003
|
};
|
|
3005
|
-
}),
|
|
3004
|
+
}), ue = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
|
|
3006
3005
|
var n, r;
|
|
3007
3006
|
M.init(e, t), e._zod.onattach.push((s) => {
|
|
3008
3007
|
const i = s._zod.bag;
|
|
@@ -3019,8 +3018,8 @@ const ho = (e) => {
|
|
|
3019
3018
|
});
|
|
3020
3019
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
3021
3020
|
});
|
|
3022
|
-
}),
|
|
3023
|
-
|
|
3021
|
+
}), Eo = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
|
|
3022
|
+
ue.init(e, t), e._zod.check = (n) => {
|
|
3024
3023
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
3025
3024
|
origin: "string",
|
|
3026
3025
|
code: "invalid_format",
|
|
@@ -3031,13 +3030,13 @@ const ho = (e) => {
|
|
|
3031
3030
|
continue: !t.abort
|
|
3032
3031
|
});
|
|
3033
3032
|
};
|
|
3034
|
-
}),
|
|
3035
|
-
t.pattern ?? (t.pattern =
|
|
3036
|
-
}),
|
|
3037
|
-
t.pattern ?? (t.pattern =
|
|
3038
|
-
}),
|
|
3033
|
+
}), wo = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
|
|
3034
|
+
t.pattern ?? (t.pattern = ho), ue.init(e, t);
|
|
3035
|
+
}), Ao = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
|
|
3036
|
+
t.pattern ?? (t.pattern = To), ue.init(e, t);
|
|
3037
|
+
}), Po = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
|
|
3039
3038
|
M.init(e, t);
|
|
3040
|
-
const n =
|
|
3039
|
+
const n = ct(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
3041
3040
|
t.pattern = r, e._zod.onattach.push((s) => {
|
|
3042
3041
|
const i = s._zod.bag;
|
|
3043
3042
|
i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(r);
|
|
@@ -3052,9 +3051,9 @@ const ho = (e) => {
|
|
|
3052
3051
|
continue: !t.abort
|
|
3053
3052
|
});
|
|
3054
3053
|
};
|
|
3055
|
-
}),
|
|
3054
|
+
}), zo = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
|
|
3056
3055
|
M.init(e, t);
|
|
3057
|
-
const n = new RegExp(`^${
|
|
3056
|
+
const n = new RegExp(`^${ct(t.prefix)}.*`);
|
|
3058
3057
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
3059
3058
|
const s = r._zod.bag;
|
|
3060
3059
|
s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
|
|
@@ -3069,9 +3068,9 @@ const ho = (e) => {
|
|
|
3069
3068
|
continue: !t.abort
|
|
3070
3069
|
});
|
|
3071
3070
|
};
|
|
3072
|
-
}),
|
|
3071
|
+
}), Do = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
|
|
3073
3072
|
M.init(e, t);
|
|
3074
|
-
const n = new RegExp(`.*${
|
|
3073
|
+
const n = new RegExp(`.*${ct(t.suffix)}$`);
|
|
3075
3074
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
3076
3075
|
const s = r._zod.bag;
|
|
3077
3076
|
s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
|
|
@@ -3086,17 +3085,17 @@ const ho = (e) => {
|
|
|
3086
3085
|
continue: !t.abort
|
|
3087
3086
|
});
|
|
3088
3087
|
};
|
|
3089
|
-
}),
|
|
3088
|
+
}), Mo = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
|
|
3090
3089
|
M.init(e, t), e._zod.check = (n) => {
|
|
3091
3090
|
n.value = t.tx(n.value);
|
|
3092
3091
|
};
|
|
3093
|
-
}),
|
|
3092
|
+
}), Uo = {
|
|
3094
3093
|
major: 4,
|
|
3095
3094
|
minor: 3,
|
|
3096
3095
|
patch: 6
|
|
3097
3096
|
}, v = /* @__PURE__ */ l("$ZodType", (e, t) => {
|
|
3098
3097
|
var n;
|
|
3099
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
3098
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Uo;
|
|
3100
3099
|
const r = [...e._zod.def.checks ?? []];
|
|
3101
3100
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
3102
3101
|
for (const s of r)
|
|
@@ -3159,17 +3158,17 @@ const ho = (e) => {
|
|
|
3159
3158
|
_(e, "~standard", () => ({
|
|
3160
3159
|
validate: (s) => {
|
|
3161
3160
|
try {
|
|
3162
|
-
const i =
|
|
3161
|
+
const i = tn(e, s);
|
|
3163
3162
|
return i.success ? { value: i.data } : { issues: i.error?.issues };
|
|
3164
3163
|
} catch {
|
|
3165
|
-
return
|
|
3164
|
+
return nn(e, s).then((o) => o.success ? { value: o.data } : { issues: o.error?.issues });
|
|
3166
3165
|
}
|
|
3167
3166
|
},
|
|
3168
3167
|
vendor: "zod",
|
|
3169
3168
|
version: 1
|
|
3170
3169
|
}));
|
|
3171
|
-
}),
|
|
3172
|
-
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
3170
|
+
}), pt = /* @__PURE__ */ l("$ZodString", (e, t) => {
|
|
3171
|
+
v.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? mo(e._zod.bag), e._zod.parse = (n, r) => {
|
|
3173
3172
|
if (t.coerce)
|
|
3174
3173
|
try {
|
|
3175
3174
|
n.value = String(n.value);
|
|
@@ -3183,8 +3182,8 @@ const ho = (e) => {
|
|
|
3183
3182
|
}), n;
|
|
3184
3183
|
};
|
|
3185
3184
|
}), $ = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
|
|
3186
|
-
|
|
3187
|
-
}),
|
|
3185
|
+
ue.init(e, t), pt.init(e, t);
|
|
3186
|
+
}), $o = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
|
|
3188
3187
|
if (t.version) {
|
|
3189
3188
|
const r = {
|
|
3190
3189
|
v1: 1,
|
|
@@ -3198,13 +3197,13 @@ const ho = (e) => {
|
|
|
3198
3197
|
}[t.version];
|
|
3199
3198
|
if (r === void 0)
|
|
3200
3199
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
3201
|
-
t.pattern ?? (t.pattern =
|
|
3200
|
+
t.pattern ?? (t.pattern = St(r));
|
|
3202
3201
|
} else
|
|
3203
|
-
t.pattern ?? (t.pattern =
|
|
3202
|
+
t.pattern ?? (t.pattern = St());
|
|
3204
3203
|
$.init(e, t);
|
|
3205
|
-
}),
|
|
3206
|
-
t.pattern ?? (t.pattern =
|
|
3207
|
-
}),
|
|
3204
|
+
}), No = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
|
|
3205
|
+
t.pattern ?? (t.pattern = io), $.init(e, t);
|
|
3206
|
+
}), Oo = /* @__PURE__ */ l("$ZodURL", (e, t) => {
|
|
3208
3207
|
$.init(e, t), e._zod.check = (n) => {
|
|
3209
3208
|
try {
|
|
3210
3209
|
const r = n.value.trim(), s = new URL(r);
|
|
@@ -3236,18 +3235,18 @@ const ho = (e) => {
|
|
|
3236
3235
|
});
|
|
3237
3236
|
}
|
|
3238
3237
|
};
|
|
3239
|
-
}),
|
|
3240
|
-
t.pattern ?? (t.pattern =
|
|
3241
|
-
}),
|
|
3242
|
-
t.pattern ?? (t.pattern =
|
|
3243
|
-
}),
|
|
3244
|
-
t.pattern ?? (t.pattern =
|
|
3245
|
-
}),
|
|
3246
|
-
t.pattern ?? (t.pattern =
|
|
3247
|
-
}),
|
|
3248
|
-
t.pattern ?? (t.pattern =
|
|
3249
|
-
}),
|
|
3250
|
-
t.pattern ?? (t.pattern =
|
|
3238
|
+
}), Ro = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
|
|
3239
|
+
t.pattern ?? (t.pattern = po(t)), $.init(e, t);
|
|
3240
|
+
}), Co = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
|
|
3241
|
+
t.pattern ?? (t.pattern = co), $.init(e, t);
|
|
3242
|
+
}), Lo = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
|
|
3243
|
+
t.pattern ?? (t.pattern = lo(t)), $.init(e, t);
|
|
3244
|
+
}), Zo = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
|
|
3245
|
+
t.pattern ?? (t.pattern = so), $.init(e, t);
|
|
3246
|
+
}), Bo = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
|
|
3247
|
+
t.pattern ?? (t.pattern = oo), $.init(e, t), e._zod.bag.format = "ipv4";
|
|
3248
|
+
}), xo = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
|
|
3249
|
+
t.pattern ?? (t.pattern = ao), $.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
3251
3250
|
try {
|
|
3252
3251
|
new URL(`http://[${n.value}]`);
|
|
3253
3252
|
} catch {
|
|
@@ -3260,7 +3259,7 @@ const ho = (e) => {
|
|
|
3260
3259
|
});
|
|
3261
3260
|
}
|
|
3262
3261
|
};
|
|
3263
|
-
}),
|
|
3262
|
+
}), Wo = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
|
|
3264
3263
|
$.init(e, t), e._zod.check = (n) => {
|
|
3265
3264
|
t.fn(n.value) || n.issues.push({
|
|
3266
3265
|
code: "invalid_format",
|
|
@@ -3270,8 +3269,8 @@ const ho = (e) => {
|
|
|
3270
3269
|
continue: !t.abort
|
|
3271
3270
|
});
|
|
3272
3271
|
};
|
|
3273
|
-
}),
|
|
3274
|
-
v.init(e, t), e._zod.pattern = e._zod.bag.pattern ??
|
|
3272
|
+
}), an = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
|
|
3273
|
+
v.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? fo, e._zod.parse = (n, r) => {
|
|
3275
3274
|
if (t.coerce)
|
|
3276
3275
|
try {
|
|
3277
3276
|
n.value = Number(n.value);
|
|
@@ -3289,10 +3288,10 @@ const ho = (e) => {
|
|
|
3289
3288
|
...i ? { received: i } : {}
|
|
3290
3289
|
}), n;
|
|
3291
3290
|
};
|
|
3292
|
-
}),
|
|
3293
|
-
|
|
3294
|
-
}),
|
|
3295
|
-
v.init(e, t), e._zod.pattern =
|
|
3291
|
+
}), Fo = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
|
|
3292
|
+
ko.init(e, t), an.init(e, t);
|
|
3293
|
+
}), jo = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
|
|
3294
|
+
v.init(e, t), e._zod.pattern = go, e._zod.parse = (n, r) => {
|
|
3296
3295
|
if (t.coerce)
|
|
3297
3296
|
try {
|
|
3298
3297
|
n.value = !!n.value;
|
|
@@ -3306,13 +3305,13 @@ const ho = (e) => {
|
|
|
3306
3305
|
inst: e
|
|
3307
3306
|
}), n;
|
|
3308
3307
|
};
|
|
3309
|
-
}),
|
|
3308
|
+
}), Go = /* @__PURE__ */ l("$ZodAny", (e, t) => {
|
|
3310
3309
|
v.init(e, t), e._zod.parse = (n) => n;
|
|
3311
3310
|
});
|
|
3312
|
-
function
|
|
3313
|
-
e.issues.length && t.issues.push(...
|
|
3311
|
+
function vt(e, t, n) {
|
|
3312
|
+
e.issues.length && t.issues.push(...Gi(n, e.issues)), t.value[n] = e.value;
|
|
3314
3313
|
}
|
|
3315
|
-
const
|
|
3314
|
+
const un = /* @__PURE__ */ l("$ZodArray", (e, t) => {
|
|
3316
3315
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
3317
3316
|
const s = n.value;
|
|
3318
3317
|
if (!Array.isArray(s))
|
|
@@ -3329,12 +3328,12 @@ const ln = /* @__PURE__ */ l("$ZodArray", (e, t) => {
|
|
|
3329
3328
|
value: a,
|
|
3330
3329
|
issues: []
|
|
3331
3330
|
}, r);
|
|
3332
|
-
u instanceof Promise ? i.push(u.then((c) =>
|
|
3331
|
+
u instanceof Promise ? i.push(u.then((c) => vt(c, n, o))) : vt(u, n, o);
|
|
3333
3332
|
}
|
|
3334
3333
|
return i.length ? Promise.all(i).then(() => n) : n;
|
|
3335
3334
|
};
|
|
3336
3335
|
});
|
|
3337
|
-
function
|
|
3336
|
+
function It(e, t, n, r) {
|
|
3338
3337
|
for (const i of e)
|
|
3339
3338
|
if (i.issues.length === 0)
|
|
3340
3339
|
return t.value = i.value, t;
|
|
@@ -3346,14 +3345,14 @@ function At(e, t, n, r) {
|
|
|
3346
3345
|
errors: e.map((i) => i.issues.map((o) => Z(o, r, L())))
|
|
3347
3346
|
}), t);
|
|
3348
3347
|
}
|
|
3349
|
-
const
|
|
3348
|
+
const Vo = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
|
|
3350
3349
|
v.init(e, t), _(e._zod, "optin", () => t.options.some((s) => s._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((s) => s._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
|
|
3351
3350
|
if (t.options.every((s) => s._zod.values))
|
|
3352
3351
|
return new Set(t.options.flatMap((s) => Array.from(s._zod.values)));
|
|
3353
3352
|
}), _(e._zod, "pattern", () => {
|
|
3354
3353
|
if (t.options.every((s) => s._zod.pattern)) {
|
|
3355
3354
|
const s = t.options.map((i) => i._zod.pattern);
|
|
3356
|
-
return new RegExp(`^(${s.map((i) =>
|
|
3355
|
+
return new RegExp(`^(${s.map((i) => ut(i.source)).join("|")})$`);
|
|
3357
3356
|
}
|
|
3358
3357
|
});
|
|
3359
3358
|
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
@@ -3375,23 +3374,23 @@ const Ho = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
|
|
|
3375
3374
|
a.push(c);
|
|
3376
3375
|
}
|
|
3377
3376
|
}
|
|
3378
|
-
return o ? Promise.all(a).then((u) =>
|
|
3377
|
+
return o ? Promise.all(a).then((u) => It(u, s, e, i)) : It(a, s, e, i);
|
|
3379
3378
|
};
|
|
3380
|
-
}),
|
|
3379
|
+
}), Ko = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
|
|
3381
3380
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
3382
3381
|
const s = n.value, i = t.left._zod.run({ value: s, issues: [] }, r), o = t.right._zod.run({ value: s, issues: [] }, r);
|
|
3383
|
-
return i instanceof Promise || o instanceof Promise ? Promise.all([i, o]).then(([u, c]) =>
|
|
3382
|
+
return i instanceof Promise || o instanceof Promise ? Promise.all([i, o]).then(([u, c]) => Et(n, u, c)) : Et(n, i, o);
|
|
3384
3383
|
};
|
|
3385
3384
|
});
|
|
3386
|
-
function
|
|
3385
|
+
function ge(e, t) {
|
|
3387
3386
|
if (e === t)
|
|
3388
3387
|
return { valid: !0, data: e };
|
|
3389
3388
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
3390
3389
|
return { valid: !0, data: e };
|
|
3391
|
-
if (
|
|
3390
|
+
if (fe(e) && fe(t)) {
|
|
3392
3391
|
const n = Object.keys(t), r = Object.keys(e).filter((i) => n.indexOf(i) !== -1), s = { ...e, ...t };
|
|
3393
3392
|
for (const i of r) {
|
|
3394
|
-
const o =
|
|
3393
|
+
const o = ge(e[i], t[i]);
|
|
3395
3394
|
if (!o.valid)
|
|
3396
3395
|
return {
|
|
3397
3396
|
valid: !1,
|
|
@@ -3406,7 +3405,7 @@ function Te(e, t) {
|
|
|
3406
3405
|
return { valid: !1, mergeErrorPath: [] };
|
|
3407
3406
|
const n = [];
|
|
3408
3407
|
for (let r = 0; r < e.length; r++) {
|
|
3409
|
-
const s = e[r], i = t[r], o =
|
|
3408
|
+
const s = e[r], i = t[r], o = ge(s, i);
|
|
3410
3409
|
if (!o.valid)
|
|
3411
3410
|
return {
|
|
3412
3411
|
valid: !1,
|
|
@@ -3418,7 +3417,7 @@ function Te(e, t) {
|
|
|
3418
3417
|
}
|
|
3419
3418
|
return { valid: !1, mergeErrorPath: [] };
|
|
3420
3419
|
}
|
|
3421
|
-
function
|
|
3420
|
+
function Et(e, t, n) {
|
|
3422
3421
|
const r = /* @__PURE__ */ new Map();
|
|
3423
3422
|
let s;
|
|
3424
3423
|
for (const a of t.issues)
|
|
@@ -3437,15 +3436,15 @@ function Pt(e, t, n) {
|
|
|
3437
3436
|
const i = [...r].filter(([, a]) => a.l && a.r).map(([a]) => a);
|
|
3438
3437
|
if (i.length && s && e.issues.push({ ...s, keys: i }), W(e))
|
|
3439
3438
|
return e;
|
|
3440
|
-
const o =
|
|
3439
|
+
const o = ge(t.value, n.value);
|
|
3441
3440
|
if (!o.valid)
|
|
3442
3441
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
3443
3442
|
return e.value = o.data, e;
|
|
3444
3443
|
}
|
|
3445
|
-
const
|
|
3444
|
+
const Jo = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
|
|
3446
3445
|
v.init(e, t), e._zod.parse = (n, r) => {
|
|
3447
3446
|
if (r.direction === "backward")
|
|
3448
|
-
throw new
|
|
3447
|
+
throw new Yt(e.constructor.name);
|
|
3449
3448
|
const s = t.transform(n.value, n);
|
|
3450
3449
|
if (r.async)
|
|
3451
3450
|
return (s instanceof Promise ? s : Promise.resolve(s)).then((o) => (n.value = o, n));
|
|
@@ -3454,52 +3453,52 @@ const Xo = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
|
|
|
3454
3453
|
return n.value = s, n;
|
|
3455
3454
|
};
|
|
3456
3455
|
});
|
|
3457
|
-
function
|
|
3456
|
+
function wt(e, t) {
|
|
3458
3457
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
3459
3458
|
}
|
|
3460
|
-
const
|
|
3459
|
+
const dt = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
|
|
3461
3460
|
v.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
|
|
3462
3461
|
const n = t.innerType._zod.pattern;
|
|
3463
|
-
return n ? new RegExp(`^(${
|
|
3462
|
+
return n ? new RegExp(`^(${ut(n.source)})?$`) : void 0;
|
|
3464
3463
|
}), e._zod.parse = (n, r) => {
|
|
3465
3464
|
if (t.innerType._zod.optin === "optional") {
|
|
3466
3465
|
const s = t.innerType._zod.run(n, r);
|
|
3467
|
-
return s instanceof Promise ? s.then((i) =>
|
|
3466
|
+
return s instanceof Promise ? s.then((i) => wt(i, n.value)) : wt(s, n.value);
|
|
3468
3467
|
}
|
|
3469
3468
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
3470
3469
|
};
|
|
3471
|
-
}),
|
|
3472
|
-
|
|
3473
|
-
}),
|
|
3470
|
+
}), Yo = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
|
|
3471
|
+
dt.init(e, t), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
|
|
3472
|
+
}), Ho = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
|
|
3474
3473
|
v.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
|
|
3475
3474
|
const n = t.innerType._zod.pattern;
|
|
3476
|
-
return n ? new RegExp(`^(${
|
|
3475
|
+
return n ? new RegExp(`^(${ut(n.source)}|null)$`) : void 0;
|
|
3477
3476
|
}), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
3478
|
-
}),
|
|
3477
|
+
}), Xo = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
|
|
3479
3478
|
v.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
3480
3479
|
if (r.direction === "backward")
|
|
3481
3480
|
return t.innerType._zod.run(n, r);
|
|
3482
3481
|
if (n.value === void 0)
|
|
3483
3482
|
return n.value = t.defaultValue, n;
|
|
3484
3483
|
const s = t.innerType._zod.run(n, r);
|
|
3485
|
-
return s instanceof Promise ? s.then((i) =>
|
|
3484
|
+
return s instanceof Promise ? s.then((i) => At(i, t)) : At(s, t);
|
|
3486
3485
|
};
|
|
3487
3486
|
});
|
|
3488
|
-
function
|
|
3487
|
+
function At(e, t) {
|
|
3489
3488
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
3490
3489
|
}
|
|
3491
|
-
const
|
|
3490
|
+
const qo = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
|
|
3492
3491
|
v.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
3493
|
-
}),
|
|
3492
|
+
}), Qo = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
|
|
3494
3493
|
v.init(e, t), _(e._zod, "values", () => {
|
|
3495
3494
|
const n = t.innerType._zod.values;
|
|
3496
3495
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
3497
3496
|
}), e._zod.parse = (n, r) => {
|
|
3498
3497
|
const s = t.innerType._zod.run(n, r);
|
|
3499
|
-
return s instanceof Promise ? s.then((i) =>
|
|
3498
|
+
return s instanceof Promise ? s.then((i) => Pt(i, e)) : Pt(s, e);
|
|
3500
3499
|
};
|
|
3501
3500
|
});
|
|
3502
|
-
function
|
|
3501
|
+
function Pt(e, t) {
|
|
3503
3502
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
3504
3503
|
code: "invalid_type",
|
|
3505
3504
|
expected: "nonoptional",
|
|
@@ -3507,7 +3506,7 @@ function Mt(e, t) {
|
|
|
3507
3506
|
inst: t
|
|
3508
3507
|
}), e;
|
|
3509
3508
|
}
|
|
3510
|
-
const
|
|
3509
|
+
const ea = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
|
|
3511
3510
|
v.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
3512
3511
|
if (r.direction === "backward")
|
|
3513
3512
|
return t.innerType._zod.run(n, r);
|
|
@@ -3526,39 +3525,39 @@ const sa = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
|
|
|
3526
3525
|
input: n.value
|
|
3527
3526
|
}), n.issues = []), n);
|
|
3528
3527
|
};
|
|
3529
|
-
}),
|
|
3528
|
+
}), ta = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
|
|
3530
3529
|
v.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
3531
3530
|
if (r.direction === "backward") {
|
|
3532
3531
|
const i = t.out._zod.run(n, r);
|
|
3533
|
-
return i instanceof Promise ? i.then((o) =>
|
|
3532
|
+
return i instanceof Promise ? i.then((o) => ee(o, t.in, r)) : ee(i, t.in, r);
|
|
3534
3533
|
}
|
|
3535
3534
|
const s = t.in._zod.run(n, r);
|
|
3536
|
-
return s instanceof Promise ? s.then((i) =>
|
|
3535
|
+
return s instanceof Promise ? s.then((i) => ee(i, t.out, r)) : ee(s, t.out, r);
|
|
3537
3536
|
};
|
|
3538
3537
|
});
|
|
3539
|
-
function
|
|
3538
|
+
function ee(e, t, n) {
|
|
3540
3539
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
3541
3540
|
}
|
|
3542
|
-
const
|
|
3541
|
+
const na = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
|
|
3543
3542
|
v.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType?._zod?.optin), _(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
|
|
3544
3543
|
if (r.direction === "backward")
|
|
3545
3544
|
return t.innerType._zod.run(n, r);
|
|
3546
3545
|
const s = t.innerType._zod.run(n, r);
|
|
3547
|
-
return s instanceof Promise ? s.then(
|
|
3546
|
+
return s instanceof Promise ? s.then(zt) : zt(s);
|
|
3548
3547
|
};
|
|
3549
3548
|
});
|
|
3550
|
-
function
|
|
3549
|
+
function zt(e) {
|
|
3551
3550
|
return e.value = Object.freeze(e.value), e;
|
|
3552
3551
|
}
|
|
3553
|
-
const
|
|
3552
|
+
const cn = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
|
|
3554
3553
|
M.init(e, t), v.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
3555
3554
|
const r = n.value, s = t.fn(r);
|
|
3556
3555
|
if (s instanceof Promise)
|
|
3557
|
-
return s.then((i) =>
|
|
3558
|
-
|
|
3556
|
+
return s.then((i) => Dt(i, n, r, e));
|
|
3557
|
+
Dt(s, n, r, e);
|
|
3559
3558
|
};
|
|
3560
3559
|
});
|
|
3561
|
-
function
|
|
3560
|
+
function Dt(e, t, n, r) {
|
|
3562
3561
|
if (!e) {
|
|
3563
3562
|
const s = {
|
|
3564
3563
|
code: "custom",
|
|
@@ -3570,11 +3569,11 @@ function $t(e, t, n, r) {
|
|
|
3570
3569
|
continue: !r._zod.def.abort
|
|
3571
3570
|
// params: inst._zod.def.params,
|
|
3572
3571
|
};
|
|
3573
|
-
r._zod.def.params && (s.params = r._zod.def.params), t.issues.push(
|
|
3572
|
+
r._zod.def.params && (s.params = r._zod.def.params), t.issues.push(H(s));
|
|
3574
3573
|
}
|
|
3575
3574
|
}
|
|
3576
|
-
var
|
|
3577
|
-
class
|
|
3575
|
+
var Mt;
|
|
3576
|
+
class ra {
|
|
3578
3577
|
constructor() {
|
|
3579
3578
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
3580
3579
|
}
|
|
@@ -3603,20 +3602,20 @@ class aa {
|
|
|
3603
3602
|
return this._map.has(t);
|
|
3604
3603
|
}
|
|
3605
3604
|
}
|
|
3606
|
-
function
|
|
3607
|
-
return new
|
|
3605
|
+
function sa() {
|
|
3606
|
+
return new ra();
|
|
3608
3607
|
}
|
|
3609
|
-
(
|
|
3610
|
-
const
|
|
3608
|
+
(Mt = globalThis).__zod_globalRegistry ?? (Mt.__zod_globalRegistry = sa());
|
|
3609
|
+
const Y = globalThis.__zod_globalRegistry;
|
|
3611
3610
|
// @__NO_SIDE_EFFECTS__
|
|
3612
|
-
function
|
|
3611
|
+
function ia(e, t) {
|
|
3613
3612
|
return new e({
|
|
3614
3613
|
type: "string",
|
|
3615
3614
|
...g(t)
|
|
3616
3615
|
});
|
|
3617
3616
|
}
|
|
3618
3617
|
// @__NO_SIDE_EFFECTS__
|
|
3619
|
-
function
|
|
3618
|
+
function oa(e, t) {
|
|
3620
3619
|
return new e({
|
|
3621
3620
|
type: "string",
|
|
3622
3621
|
format: "email",
|
|
@@ -3626,7 +3625,7 @@ function la(e, t) {
|
|
|
3626
3625
|
});
|
|
3627
3626
|
}
|
|
3628
3627
|
// @__NO_SIDE_EFFECTS__
|
|
3629
|
-
function
|
|
3628
|
+
function aa(e, t) {
|
|
3630
3629
|
return new e({
|
|
3631
3630
|
type: "string",
|
|
3632
3631
|
format: "uuid",
|
|
@@ -3636,7 +3635,7 @@ function pa(e, t) {
|
|
|
3636
3635
|
});
|
|
3637
3636
|
}
|
|
3638
3637
|
// @__NO_SIDE_EFFECTS__
|
|
3639
|
-
function
|
|
3638
|
+
function ua(e, t) {
|
|
3640
3639
|
return new e({
|
|
3641
3640
|
type: "string",
|
|
3642
3641
|
format: "url",
|
|
@@ -3646,7 +3645,7 @@ function da(e, t) {
|
|
|
3646
3645
|
});
|
|
3647
3646
|
}
|
|
3648
3647
|
// @__NO_SIDE_EFFECTS__
|
|
3649
|
-
function
|
|
3648
|
+
function ca(e, t) {
|
|
3650
3649
|
return new e({
|
|
3651
3650
|
type: "string",
|
|
3652
3651
|
format: "ipv4",
|
|
@@ -3656,7 +3655,7 @@ function ma(e, t) {
|
|
|
3656
3655
|
});
|
|
3657
3656
|
}
|
|
3658
3657
|
// @__NO_SIDE_EFFECTS__
|
|
3659
|
-
function
|
|
3658
|
+
function la(e, t) {
|
|
3660
3659
|
return new e({
|
|
3661
3660
|
type: "string",
|
|
3662
3661
|
format: "ipv6",
|
|
@@ -3666,7 +3665,7 @@ function ya(e, t) {
|
|
|
3666
3665
|
});
|
|
3667
3666
|
}
|
|
3668
3667
|
// @__NO_SIDE_EFFECTS__
|
|
3669
|
-
function
|
|
3668
|
+
function pa(e, t) {
|
|
3670
3669
|
return new e({
|
|
3671
3670
|
type: "string",
|
|
3672
3671
|
format: "datetime",
|
|
@@ -3678,7 +3677,7 @@ function fa(e, t) {
|
|
|
3678
3677
|
});
|
|
3679
3678
|
}
|
|
3680
3679
|
// @__NO_SIDE_EFFECTS__
|
|
3681
|
-
function
|
|
3680
|
+
function da(e, t) {
|
|
3682
3681
|
return new e({
|
|
3683
3682
|
type: "string",
|
|
3684
3683
|
format: "date",
|
|
@@ -3687,7 +3686,7 @@ function ga(e, t) {
|
|
|
3687
3686
|
});
|
|
3688
3687
|
}
|
|
3689
3688
|
// @__NO_SIDE_EFFECTS__
|
|
3690
|
-
function
|
|
3689
|
+
function ma(e, t) {
|
|
3691
3690
|
return new e({
|
|
3692
3691
|
type: "string",
|
|
3693
3692
|
format: "time",
|
|
@@ -3697,7 +3696,7 @@ function ha(e, t) {
|
|
|
3697
3696
|
});
|
|
3698
3697
|
}
|
|
3699
3698
|
// @__NO_SIDE_EFFECTS__
|
|
3700
|
-
function
|
|
3699
|
+
function ya(e, t) {
|
|
3701
3700
|
return new e({
|
|
3702
3701
|
type: "string",
|
|
3703
3702
|
format: "duration",
|
|
@@ -3706,7 +3705,7 @@ function Ta(e, t) {
|
|
|
3706
3705
|
});
|
|
3707
3706
|
}
|
|
3708
3707
|
// @__NO_SIDE_EFFECTS__
|
|
3709
|
-
function
|
|
3708
|
+
function fa(e, t) {
|
|
3710
3709
|
return new e({
|
|
3711
3710
|
type: "number",
|
|
3712
3711
|
checks: [],
|
|
@@ -3714,7 +3713,7 @@ function _a(e, t) {
|
|
|
3714
3713
|
});
|
|
3715
3714
|
}
|
|
3716
3715
|
// @__NO_SIDE_EFFECTS__
|
|
3717
|
-
function
|
|
3716
|
+
function ga(e, t) {
|
|
3718
3717
|
return new e({
|
|
3719
3718
|
type: "number",
|
|
3720
3719
|
check: "number_format",
|
|
@@ -3724,21 +3723,21 @@ function ba(e, t) {
|
|
|
3724
3723
|
});
|
|
3725
3724
|
}
|
|
3726
3725
|
// @__NO_SIDE_EFFECTS__
|
|
3727
|
-
function
|
|
3726
|
+
function ha(e, t) {
|
|
3728
3727
|
return new e({
|
|
3729
3728
|
type: "boolean",
|
|
3730
3729
|
...g(t)
|
|
3731
3730
|
});
|
|
3732
3731
|
}
|
|
3733
3732
|
// @__NO_SIDE_EFFECTS__
|
|
3734
|
-
function
|
|
3733
|
+
function Ta(e) {
|
|
3735
3734
|
return new e({
|
|
3736
3735
|
type: "any"
|
|
3737
3736
|
});
|
|
3738
3737
|
}
|
|
3739
3738
|
// @__NO_SIDE_EFFECTS__
|
|
3740
|
-
function
|
|
3741
|
-
return new
|
|
3739
|
+
function _a(e, t) {
|
|
3740
|
+
return new _o({
|
|
3742
3741
|
check: "less_than",
|
|
3743
3742
|
...g(t),
|
|
3744
3743
|
value: e,
|
|
@@ -3746,8 +3745,8 @@ function va(e, t) {
|
|
|
3746
3745
|
});
|
|
3747
3746
|
}
|
|
3748
3747
|
// @__NO_SIDE_EFFECTS__
|
|
3749
|
-
function
|
|
3750
|
-
return new
|
|
3748
|
+
function ba(e, t) {
|
|
3749
|
+
return new bo({
|
|
3751
3750
|
check: "greater_than",
|
|
3752
3751
|
...g(t),
|
|
3753
3752
|
value: e,
|
|
@@ -3755,8 +3754,8 @@ function Ia(e, t) {
|
|
|
3755
3754
|
});
|
|
3756
3755
|
}
|
|
3757
3756
|
// @__NO_SIDE_EFFECTS__
|
|
3758
|
-
function
|
|
3759
|
-
return new
|
|
3757
|
+
function ce(e, t) {
|
|
3758
|
+
return new So({
|
|
3760
3759
|
check: "max_length",
|
|
3761
3760
|
...g(t),
|
|
3762
3761
|
maximum: e
|
|
@@ -3764,23 +3763,23 @@ function pe(e, t) {
|
|
|
3764
3763
|
}
|
|
3765
3764
|
// @__NO_SIDE_EFFECTS__
|
|
3766
3765
|
function j(e, t) {
|
|
3767
|
-
return new
|
|
3766
|
+
return new vo({
|
|
3768
3767
|
check: "min_length",
|
|
3769
3768
|
...g(t),
|
|
3770
3769
|
minimum: e
|
|
3771
3770
|
});
|
|
3772
3771
|
}
|
|
3773
3772
|
// @__NO_SIDE_EFFECTS__
|
|
3774
|
-
function
|
|
3775
|
-
return new
|
|
3773
|
+
function ln(e, t) {
|
|
3774
|
+
return new Io({
|
|
3776
3775
|
check: "length_equals",
|
|
3777
3776
|
...g(t),
|
|
3778
3777
|
length: e
|
|
3779
3778
|
});
|
|
3780
3779
|
}
|
|
3781
3780
|
// @__NO_SIDE_EFFECTS__
|
|
3782
|
-
function
|
|
3783
|
-
return new
|
|
3781
|
+
function pn(e, t) {
|
|
3782
|
+
return new Eo({
|
|
3784
3783
|
check: "string_format",
|
|
3785
3784
|
format: "regex",
|
|
3786
3785
|
...g(t),
|
|
@@ -3788,24 +3787,24 @@ function mn(e, t) {
|
|
|
3788
3787
|
});
|
|
3789
3788
|
}
|
|
3790
3789
|
// @__NO_SIDE_EFFECTS__
|
|
3791
|
-
function
|
|
3792
|
-
return new
|
|
3790
|
+
function ka(e) {
|
|
3791
|
+
return new wo({
|
|
3793
3792
|
check: "string_format",
|
|
3794
3793
|
format: "lowercase",
|
|
3795
3794
|
...g(e)
|
|
3796
3795
|
});
|
|
3797
3796
|
}
|
|
3798
3797
|
// @__NO_SIDE_EFFECTS__
|
|
3799
|
-
function
|
|
3800
|
-
return new
|
|
3798
|
+
function Sa(e) {
|
|
3799
|
+
return new Ao({
|
|
3801
3800
|
check: "string_format",
|
|
3802
3801
|
format: "uppercase",
|
|
3803
3802
|
...g(e)
|
|
3804
3803
|
});
|
|
3805
3804
|
}
|
|
3806
3805
|
// @__NO_SIDE_EFFECTS__
|
|
3807
|
-
function
|
|
3808
|
-
return new
|
|
3806
|
+
function va(e, t) {
|
|
3807
|
+
return new Po({
|
|
3809
3808
|
check: "string_format",
|
|
3810
3809
|
format: "includes",
|
|
3811
3810
|
...g(t),
|
|
@@ -3813,8 +3812,8 @@ function Aa(e, t) {
|
|
|
3813
3812
|
});
|
|
3814
3813
|
}
|
|
3815
3814
|
// @__NO_SIDE_EFFECTS__
|
|
3816
|
-
function
|
|
3817
|
-
return new
|
|
3815
|
+
function Ia(e, t) {
|
|
3816
|
+
return new zo({
|
|
3818
3817
|
check: "string_format",
|
|
3819
3818
|
format: "starts_with",
|
|
3820
3819
|
...g(t),
|
|
@@ -3822,8 +3821,8 @@ function Pa(e, t) {
|
|
|
3822
3821
|
});
|
|
3823
3822
|
}
|
|
3824
3823
|
// @__NO_SIDE_EFFECTS__
|
|
3825
|
-
function
|
|
3826
|
-
return new
|
|
3824
|
+
function Ea(e, t) {
|
|
3825
|
+
return new Do({
|
|
3827
3826
|
check: "string_format",
|
|
3828
3827
|
format: "ends_with",
|
|
3829
3828
|
...g(t),
|
|
@@ -3831,34 +3830,34 @@ function za(e, t) {
|
|
|
3831
3830
|
});
|
|
3832
3831
|
}
|
|
3833
3832
|
// @__NO_SIDE_EFFECTS__
|
|
3834
|
-
function
|
|
3835
|
-
return new
|
|
3833
|
+
function G(e) {
|
|
3834
|
+
return new Mo({
|
|
3836
3835
|
check: "overwrite",
|
|
3837
3836
|
tx: e
|
|
3838
3837
|
});
|
|
3839
3838
|
}
|
|
3840
3839
|
// @__NO_SIDE_EFFECTS__
|
|
3841
|
-
function
|
|
3842
|
-
return /* @__PURE__ */
|
|
3840
|
+
function wa(e) {
|
|
3841
|
+
return /* @__PURE__ */ G((t) => t.normalize(e));
|
|
3843
3842
|
}
|
|
3844
3843
|
// @__NO_SIDE_EFFECTS__
|
|
3845
|
-
function
|
|
3846
|
-
return /* @__PURE__ */
|
|
3844
|
+
function Aa() {
|
|
3845
|
+
return /* @__PURE__ */ G((e) => e.trim());
|
|
3847
3846
|
}
|
|
3848
3847
|
// @__NO_SIDE_EFFECTS__
|
|
3849
|
-
function
|
|
3850
|
-
return /* @__PURE__ */
|
|
3848
|
+
function Pa() {
|
|
3849
|
+
return /* @__PURE__ */ G((e) => e.toLowerCase());
|
|
3851
3850
|
}
|
|
3852
3851
|
// @__NO_SIDE_EFFECTS__
|
|
3853
|
-
function
|
|
3854
|
-
return /* @__PURE__ */
|
|
3852
|
+
function za() {
|
|
3853
|
+
return /* @__PURE__ */ G((e) => e.toUpperCase());
|
|
3855
3854
|
}
|
|
3856
3855
|
// @__NO_SIDE_EFFECTS__
|
|
3857
|
-
function
|
|
3858
|
-
return /* @__PURE__ */
|
|
3856
|
+
function Da() {
|
|
3857
|
+
return /* @__PURE__ */ G((e) => Fi(e));
|
|
3859
3858
|
}
|
|
3860
3859
|
// @__NO_SIDE_EFFECTS__
|
|
3861
|
-
function
|
|
3860
|
+
function Ma(e, t, n) {
|
|
3862
3861
|
return new e({
|
|
3863
3862
|
type: "array",
|
|
3864
3863
|
element: t,
|
|
@@ -3869,7 +3868,7 @@ function Oa(e, t, n) {
|
|
|
3869
3868
|
});
|
|
3870
3869
|
}
|
|
3871
3870
|
// @__NO_SIDE_EFFECTS__
|
|
3872
|
-
function
|
|
3871
|
+
function dn(e, t, n) {
|
|
3873
3872
|
return new e({
|
|
3874
3873
|
type: "custom",
|
|
3875
3874
|
check: "custom",
|
|
@@ -3878,19 +3877,19 @@ function yn(e, t, n) {
|
|
|
3878
3877
|
});
|
|
3879
3878
|
}
|
|
3880
3879
|
// @__NO_SIDE_EFFECTS__
|
|
3881
|
-
function
|
|
3882
|
-
const t = /* @__PURE__ */
|
|
3880
|
+
function mn(e) {
|
|
3881
|
+
const t = /* @__PURE__ */ Ua((n) => (n.addIssue = (r) => {
|
|
3883
3882
|
if (typeof r == "string")
|
|
3884
|
-
n.issues.push(
|
|
3883
|
+
n.issues.push(H(r, n.value, t._zod.def));
|
|
3885
3884
|
else {
|
|
3886
3885
|
const s = r;
|
|
3887
|
-
s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = n.value), s.inst ?? (s.inst = t), s.continue ?? (s.continue = !t._zod.def.abort), n.issues.push(
|
|
3886
|
+
s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = n.value), s.inst ?? (s.inst = t), s.continue ?? (s.continue = !t._zod.def.abort), n.issues.push(H(s));
|
|
3888
3887
|
}
|
|
3889
3888
|
}, e(n.value, n)));
|
|
3890
3889
|
return t;
|
|
3891
3890
|
}
|
|
3892
3891
|
// @__NO_SIDE_EFFECTS__
|
|
3893
|
-
function
|
|
3892
|
+
function Ua(e, t) {
|
|
3894
3893
|
const n = new M({
|
|
3895
3894
|
check: "custom",
|
|
3896
3895
|
...g(t)
|
|
@@ -3898,7 +3897,7 @@ function Ra(e, t) {
|
|
|
3898
3897
|
return n._zod.check = e, n;
|
|
3899
3898
|
}
|
|
3900
3899
|
// @__NO_SIDE_EFFECTS__
|
|
3901
|
-
function
|
|
3900
|
+
function $a(e, t, n, r = {}) {
|
|
3902
3901
|
const s = g(r), i = {
|
|
3903
3902
|
...g(r),
|
|
3904
3903
|
check: "string_format",
|
|
@@ -3909,11 +3908,11 @@ function Ca(e, t, n, r = {}) {
|
|
|
3909
3908
|
};
|
|
3910
3909
|
return n instanceof RegExp && (i.pattern = n), new e(i);
|
|
3911
3910
|
}
|
|
3912
|
-
function
|
|
3911
|
+
function yn(e) {
|
|
3913
3912
|
let t = e?.target ?? "draft-2020-12";
|
|
3914
3913
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
3915
3914
|
processors: e.processors ?? {},
|
|
3916
|
-
metadataRegistry: e?.metadata ??
|
|
3915
|
+
metadataRegistry: e?.metadata ?? Y,
|
|
3917
3916
|
target: t,
|
|
3918
3917
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
3919
3918
|
override: e?.override ?? (() => {
|
|
@@ -3956,7 +3955,7 @@ function P(e, t, n = { path: [], schemaPath: [] }) {
|
|
|
3956
3955
|
const u = t.metadataRegistry.get(e);
|
|
3957
3956
|
return u && Object.assign(o.schema, u), t.io === "input" && A(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
3958
3957
|
}
|
|
3959
|
-
function
|
|
3958
|
+
function fn(e, t) {
|
|
3960
3959
|
const n = e.seen.get(t);
|
|
3961
3960
|
if (!n)
|
|
3962
3961
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -4028,7 +4027,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
4028
4027
|
}
|
|
4029
4028
|
}
|
|
4030
4029
|
}
|
|
4031
|
-
function
|
|
4030
|
+
function gn(e, t) {
|
|
4032
4031
|
const n = e.seen.get(t);
|
|
4033
4032
|
if (!n)
|
|
4034
4033
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -4083,8 +4082,8 @@ function Tn(e, t) {
|
|
|
4083
4082
|
value: {
|
|
4084
4083
|
...t["~standard"],
|
|
4085
4084
|
jsonSchema: {
|
|
4086
|
-
input:
|
|
4087
|
-
output:
|
|
4085
|
+
input: te(t, "input", e.processors),
|
|
4086
|
+
output: te(t, "output", e.processors)
|
|
4088
4087
|
}
|
|
4089
4088
|
},
|
|
4090
4089
|
enumerable: !1,
|
|
@@ -4136,24 +4135,24 @@ function A(e, t) {
|
|
|
4136
4135
|
}
|
|
4137
4136
|
return !1;
|
|
4138
4137
|
}
|
|
4139
|
-
const
|
|
4140
|
-
const r =
|
|
4141
|
-
return P(e, r),
|
|
4142
|
-
},
|
|
4143
|
-
const { libraryOptions: s, target: i } = r ?? {}, o =
|
|
4144
|
-
return P(e, o),
|
|
4145
|
-
},
|
|
4138
|
+
const Na = (e, t = {}) => (n) => {
|
|
4139
|
+
const r = yn({ ...n, processors: t });
|
|
4140
|
+
return P(e, r), fn(r, e), gn(r, e);
|
|
4141
|
+
}, te = (e, t, n = {}) => (r) => {
|
|
4142
|
+
const { libraryOptions: s, target: i } = r ?? {}, o = yn({ ...s ?? {}, target: i, io: t, processors: n });
|
|
4143
|
+
return P(e, o), fn(o, e), gn(o, e);
|
|
4144
|
+
}, Oa = {
|
|
4146
4145
|
guid: "uuid",
|
|
4147
4146
|
url: "uri",
|
|
4148
4147
|
datetime: "date-time",
|
|
4149
4148
|
json_string: "json-string",
|
|
4150
4149
|
regex: ""
|
|
4151
4150
|
// do not set
|
|
4152
|
-
},
|
|
4151
|
+
}, Ra = (e, t, n, r) => {
|
|
4153
4152
|
const s = n;
|
|
4154
4153
|
s.type = "string";
|
|
4155
4154
|
const { minimum: i, maximum: o, format: a, patterns: u, contentEncoding: c } = e._zod.bag;
|
|
4156
|
-
if (typeof i == "number" && (s.minLength = i), typeof o == "number" && (s.maxLength = o), a && (s.format =
|
|
4155
|
+
if (typeof i == "number" && (s.minLength = i), typeof o == "number" && (s.maxLength = o), a && (s.format = Oa[a] ?? a, s.format === "" && delete s.format, a === "time" && delete s.format), c && (s.contentEncoding = c), u && u.size > 0) {
|
|
4157
4156
|
const p = [...u];
|
|
4158
4157
|
p.length === 1 ? s.pattern = p[0].source : p.length > 1 && (s.allOf = [
|
|
4159
4158
|
...p.map((d) => ({
|
|
@@ -4162,22 +4161,22 @@ const La = (e, t = {}) => (n) => {
|
|
|
4162
4161
|
}))
|
|
4163
4162
|
]);
|
|
4164
4163
|
}
|
|
4165
|
-
},
|
|
4164
|
+
}, Ca = (e, t, n, r) => {
|
|
4166
4165
|
if (t.unrepresentable === "throw")
|
|
4167
4166
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
4168
|
-
},
|
|
4167
|
+
}, La = (e, t, n, r) => {
|
|
4169
4168
|
if (t.unrepresentable === "throw")
|
|
4170
4169
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
4171
|
-
},
|
|
4170
|
+
}, Za = (e, t, n, r) => {
|
|
4172
4171
|
const s = n, i = e._zod.def, { minimum: o, maximum: a } = e._zod.bag;
|
|
4173
4172
|
typeof o == "number" && (s.minItems = o), typeof a == "number" && (s.maxItems = a), s.type = "array", s.items = P(i.element, t, { ...r, path: [...r.path, "items"] });
|
|
4174
|
-
},
|
|
4173
|
+
}, Ba = (e, t, n, r) => {
|
|
4175
4174
|
const s = e._zod.def, i = s.inclusive === !1, o = s.options.map((a, u) => P(a, t, {
|
|
4176
4175
|
...r,
|
|
4177
4176
|
path: [...r.path, i ? "oneOf" : "anyOf", u]
|
|
4178
4177
|
}));
|
|
4179
4178
|
i ? n.oneOf = o : n.anyOf = o;
|
|
4180
|
-
},
|
|
4179
|
+
}, xa = (e, t, n, r) => {
|
|
4181
4180
|
const s = e._zod.def, i = P(s.left, t, {
|
|
4182
4181
|
...r,
|
|
4183
4182
|
path: [...r.path, "allOf", 0]
|
|
@@ -4189,25 +4188,25 @@ const La = (e, t = {}) => (n) => {
|
|
|
4189
4188
|
...a(o) ? o.allOf : [o]
|
|
4190
4189
|
];
|
|
4191
4190
|
n.allOf = u;
|
|
4192
|
-
},
|
|
4191
|
+
}, Wa = (e, t, n, r) => {
|
|
4193
4192
|
const s = e._zod.def, i = P(s.innerType, t, r), o = t.seen.get(e);
|
|
4194
4193
|
t.target === "openapi-3.0" ? (o.ref = s.innerType, n.nullable = !0) : n.anyOf = [i, { type: "null" }];
|
|
4195
|
-
},
|
|
4194
|
+
}, Fa = (e, t, n, r) => {
|
|
4196
4195
|
const s = e._zod.def;
|
|
4197
4196
|
P(s.innerType, t, r);
|
|
4198
4197
|
const i = t.seen.get(e);
|
|
4199
4198
|
i.ref = s.innerType;
|
|
4200
|
-
},
|
|
4199
|
+
}, ja = (e, t, n, r) => {
|
|
4201
4200
|
const s = e._zod.def;
|
|
4202
4201
|
P(s.innerType, t, r);
|
|
4203
4202
|
const i = t.seen.get(e);
|
|
4204
4203
|
i.ref = s.innerType, n.default = JSON.parse(JSON.stringify(s.defaultValue));
|
|
4205
|
-
},
|
|
4204
|
+
}, Ga = (e, t, n, r) => {
|
|
4206
4205
|
const s = e._zod.def;
|
|
4207
4206
|
P(s.innerType, t, r);
|
|
4208
4207
|
const i = t.seen.get(e);
|
|
4209
4208
|
i.ref = s.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(s.defaultValue)));
|
|
4210
|
-
},
|
|
4209
|
+
}, Va = (e, t, n, r) => {
|
|
4211
4210
|
const s = e._zod.def;
|
|
4212
4211
|
P(s.innerType, t, r);
|
|
4213
4212
|
const i = t.seen.get(e);
|
|
@@ -4219,64 +4218,64 @@ const La = (e, t = {}) => (n) => {
|
|
|
4219
4218
|
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
4220
4219
|
}
|
|
4221
4220
|
n.default = o;
|
|
4222
|
-
},
|
|
4221
|
+
}, Ka = (e, t, n, r) => {
|
|
4223
4222
|
const s = e._zod.def, i = t.io === "input" ? s.in._zod.def.type === "transform" ? s.out : s.in : s.out;
|
|
4224
4223
|
P(i, t, r);
|
|
4225
4224
|
const o = t.seen.get(e);
|
|
4226
4225
|
o.ref = i;
|
|
4227
|
-
},
|
|
4226
|
+
}, Ja = (e, t, n, r) => {
|
|
4228
4227
|
const s = e._zod.def;
|
|
4229
4228
|
P(s.innerType, t, r);
|
|
4230
4229
|
const i = t.seen.get(e);
|
|
4231
4230
|
i.ref = s.innerType, n.readOnly = !0;
|
|
4232
|
-
},
|
|
4231
|
+
}, hn = (e, t, n, r) => {
|
|
4233
4232
|
const s = e._zod.def;
|
|
4234
4233
|
P(s.innerType, t, r);
|
|
4235
4234
|
const i = t.seen.get(e);
|
|
4236
4235
|
i.ref = s.innerType;
|
|
4237
|
-
},
|
|
4238
|
-
|
|
4236
|
+
}, Ya = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
|
|
4237
|
+
Ro.init(e, t), le.init(e, t);
|
|
4239
4238
|
});
|
|
4240
|
-
function
|
|
4241
|
-
return /* @__PURE__ */
|
|
4239
|
+
function Ha(e) {
|
|
4240
|
+
return /* @__PURE__ */ pa(Ya, e);
|
|
4242
4241
|
}
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4242
|
+
const Xa = /* @__PURE__ */ l("ZodISODate", (e, t) => {
|
|
4243
|
+
Co.init(e, t), le.init(e, t);
|
|
4245
4244
|
});
|
|
4246
|
-
function
|
|
4247
|
-
return /* @__PURE__ */
|
|
4245
|
+
function qa(e) {
|
|
4246
|
+
return /* @__PURE__ */ da(Xa, e);
|
|
4248
4247
|
}
|
|
4249
|
-
const
|
|
4250
|
-
|
|
4248
|
+
const Qa = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
|
|
4249
|
+
Lo.init(e, t), le.init(e, t);
|
|
4251
4250
|
});
|
|
4252
|
-
function
|
|
4253
|
-
return /* @__PURE__ */
|
|
4251
|
+
function eu(e) {
|
|
4252
|
+
return /* @__PURE__ */ ma(Qa, e);
|
|
4254
4253
|
}
|
|
4255
|
-
const
|
|
4256
|
-
|
|
4254
|
+
const tu = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
|
|
4255
|
+
Zo.init(e, t), le.init(e, t);
|
|
4257
4256
|
});
|
|
4258
|
-
function
|
|
4259
|
-
return /* @__PURE__ */
|
|
4257
|
+
function nu(e) {
|
|
4258
|
+
return /* @__PURE__ */ ya(tu, e);
|
|
4260
4259
|
}
|
|
4261
|
-
const
|
|
4262
|
-
|
|
4260
|
+
const ru = (e, t) => {
|
|
4261
|
+
en.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
4263
4262
|
format: {
|
|
4264
|
-
value: (n) =>
|
|
4263
|
+
value: (n) => Ki(e, n)
|
|
4265
4264
|
// enumerable: false,
|
|
4266
4265
|
},
|
|
4267
4266
|
flatten: {
|
|
4268
|
-
value: (n) =>
|
|
4267
|
+
value: (n) => Vi(e, n)
|
|
4269
4268
|
// enumerable: false,
|
|
4270
4269
|
},
|
|
4271
4270
|
addIssue: {
|
|
4272
4271
|
value: (n) => {
|
|
4273
|
-
e.issues.push(n), e.message = JSON.stringify(e.issues,
|
|
4272
|
+
e.issues.push(n), e.message = JSON.stringify(e.issues, ye, 2);
|
|
4274
4273
|
}
|
|
4275
4274
|
// enumerable: false,
|
|
4276
4275
|
},
|
|
4277
4276
|
addIssues: {
|
|
4278
4277
|
value: (n) => {
|
|
4279
|
-
e.issues.push(...n), e.message = JSON.stringify(e.issues,
|
|
4278
|
+
e.issues.push(...n), e.message = JSON.stringify(e.issues, ye, 2);
|
|
4280
4279
|
}
|
|
4281
4280
|
// enumerable: false,
|
|
4282
4281
|
},
|
|
@@ -4287,336 +4286,336 @@ const au = (e, t) => {
|
|
|
4287
4286
|
// enumerable: false,
|
|
4288
4287
|
}
|
|
4289
4288
|
});
|
|
4290
|
-
}, N = l("ZodError",
|
|
4289
|
+
}, N = l("ZodError", ru, {
|
|
4291
4290
|
Parent: Error
|
|
4292
|
-
}),
|
|
4291
|
+
}), su = /* @__PURE__ */ se(N), iu = /* @__PURE__ */ ie(N), ou = /* @__PURE__ */ oe(N), au = /* @__PURE__ */ ae(N), uu = /* @__PURE__ */ Hi(N), cu = /* @__PURE__ */ Xi(N), lu = /* @__PURE__ */ qi(N), pu = /* @__PURE__ */ Qi(N), du = /* @__PURE__ */ eo(N), mu = /* @__PURE__ */ to(N), yu = /* @__PURE__ */ no(N), fu = /* @__PURE__ */ ro(N), z = /* @__PURE__ */ l("ZodType", (e, t) => (v.init(e, t), Object.assign(e["~standard"], {
|
|
4293
4292
|
jsonSchema: {
|
|
4294
|
-
input:
|
|
4295
|
-
output:
|
|
4293
|
+
input: te(e, "input"),
|
|
4294
|
+
output: te(e, "output")
|
|
4296
4295
|
}
|
|
4297
|
-
}), e.toJSONSchema =
|
|
4296
|
+
}), e.toJSONSchema = Na(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Wi(t, {
|
|
4298
4297
|
checks: [
|
|
4299
4298
|
...t.checks ?? [],
|
|
4300
4299
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
4301
4300
|
]
|
|
4302
4301
|
}), {
|
|
4303
4302
|
parent: !0
|
|
4304
|
-
}), e.with = e.check, e.clone = (n, r) =>
|
|
4303
|
+
}), e.with = e.check, e.clone = (n, r) => qt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => su(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ou(e, n, r), e.parseAsync = async (n, r) => iu(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => au(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => uu(e, n, r), e.decode = (n, r) => cu(e, n, r), e.encodeAsync = async (n, r) => lu(e, n, r), e.decodeAsync = async (n, r) => pu(e, n, r), e.safeEncode = (n, r) => du(e, n, r), e.safeDecode = (n, r) => mu(e, n, r), e.safeEncodeAsync = async (n, r) => yu(e, n, r), e.safeDecodeAsync = async (n, r) => fu(e, n, r), e.refine = (n, r) => e.check(xu(n, r)), e.superRefine = (n) => e.check(Wu(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ G(n)), e.optional = () => Ut(e), e.exactOptional = () => Au(e), e.nullable = () => $t(e), e.nullish = () => Ut($t(e)), e.nonoptional = (n) => Nu(e, n), e.array = () => Tu(e), e.or = (n) => bu([e, n]), e.and = (n) => Su(e, n), e.transform = (n) => Nt(e, Iu(n)), e.default = (n) => Du(e, n), e.prefault = (n) => Uu(e, n), e.catch = (n) => Ru(e, n), e.pipe = (n) => Nt(e, n), e.readonly = () => Zu(e), e.describe = (n) => {
|
|
4305
4304
|
const r = e.clone();
|
|
4306
|
-
return
|
|
4305
|
+
return Y.add(r, { description: n }), r;
|
|
4307
4306
|
}, Object.defineProperty(e, "description", {
|
|
4308
4307
|
get() {
|
|
4309
|
-
return
|
|
4308
|
+
return Y.get(e)?.description;
|
|
4310
4309
|
},
|
|
4311
4310
|
configurable: !0
|
|
4312
4311
|
}), e.meta = (...n) => {
|
|
4313
4312
|
if (n.length === 0)
|
|
4314
|
-
return
|
|
4313
|
+
return Y.get(e);
|
|
4315
4314
|
const r = e.clone();
|
|
4316
|
-
return
|
|
4317
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)),
|
|
4318
|
-
|
|
4315
|
+
return Y.add(r, n[0]), r;
|
|
4316
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), gu = /* @__PURE__ */ l("_ZodString", (e, t) => {
|
|
4317
|
+
pt.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, s, i) => Ra(e, r, s);
|
|
4319
4318
|
const n = e._zod.bag;
|
|
4320
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */
|
|
4321
|
-
}),
|
|
4322
|
-
$.init(e, t),
|
|
4323
|
-
}),
|
|
4324
|
-
|
|
4319
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ pn(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ va(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ Ia(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ Ea(...r)), e.min = (...r) => e.check(/* @__PURE__ */ j(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ce(...r)), e.length = (...r) => e.check(/* @__PURE__ */ ln(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ j(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ ka(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ Sa(r)), e.trim = () => e.check(/* @__PURE__ */ Aa()), e.normalize = (...r) => e.check(/* @__PURE__ */ wa(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ Pa()), e.toUpperCase = () => e.check(/* @__PURE__ */ za()), e.slugify = () => e.check(/* @__PURE__ */ Da());
|
|
4320
|
+
}), le = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
|
|
4321
|
+
$.init(e, t), gu.init(e, t);
|
|
4322
|
+
}), hu = /* @__PURE__ */ l("ZodArray", (e, t) => {
|
|
4323
|
+
un.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Za(e, n, r, s), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ j(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ j(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ ce(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ ln(n, r)), e.unwrap = () => e.element;
|
|
4325
4324
|
});
|
|
4326
|
-
function
|
|
4327
|
-
return /* @__PURE__ */
|
|
4325
|
+
function Tu(e, t) {
|
|
4326
|
+
return /* @__PURE__ */ Ma(hu, e, t);
|
|
4328
4327
|
}
|
|
4329
|
-
const
|
|
4330
|
-
|
|
4328
|
+
const _u = /* @__PURE__ */ l("ZodUnion", (e, t) => {
|
|
4329
|
+
Vo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Ba(e, n, r, s), e.options = t.options;
|
|
4331
4330
|
});
|
|
4332
|
-
function
|
|
4333
|
-
return new
|
|
4331
|
+
function bu(e, t) {
|
|
4332
|
+
return new _u({
|
|
4334
4333
|
type: "union",
|
|
4335
4334
|
options: e,
|
|
4336
4335
|
...g(t)
|
|
4337
4336
|
});
|
|
4338
4337
|
}
|
|
4339
|
-
const
|
|
4340
|
-
|
|
4338
|
+
const ku = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
|
|
4339
|
+
Ko.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => xa(e, n, r, s);
|
|
4341
4340
|
});
|
|
4342
|
-
function
|
|
4343
|
-
return new
|
|
4341
|
+
function Su(e, t) {
|
|
4342
|
+
return new ku({
|
|
4344
4343
|
type: "intersection",
|
|
4345
4344
|
left: e,
|
|
4346
4345
|
right: t
|
|
4347
4346
|
});
|
|
4348
4347
|
}
|
|
4349
|
-
const
|
|
4350
|
-
|
|
4348
|
+
const vu = /* @__PURE__ */ l("ZodTransform", (e, t) => {
|
|
4349
|
+
Jo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => La(e, n), e._zod.parse = (n, r) => {
|
|
4351
4350
|
if (r.direction === "backward")
|
|
4352
|
-
throw new
|
|
4351
|
+
throw new Yt(e.constructor.name);
|
|
4353
4352
|
n.addIssue = (i) => {
|
|
4354
4353
|
if (typeof i == "string")
|
|
4355
|
-
n.issues.push(
|
|
4354
|
+
n.issues.push(H(i, n.value, t));
|
|
4356
4355
|
else {
|
|
4357
4356
|
const o = i;
|
|
4358
|
-
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = e), n.issues.push(
|
|
4357
|
+
o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = e), n.issues.push(H(o));
|
|
4359
4358
|
}
|
|
4360
4359
|
};
|
|
4361
4360
|
const s = t.transform(n.value, n);
|
|
4362
4361
|
return s instanceof Promise ? s.then((i) => (n.value = i, n)) : (n.value = s, n);
|
|
4363
4362
|
};
|
|
4364
4363
|
});
|
|
4365
|
-
function
|
|
4366
|
-
return new
|
|
4364
|
+
function Iu(e) {
|
|
4365
|
+
return new vu({
|
|
4367
4366
|
type: "transform",
|
|
4368
4367
|
transform: e
|
|
4369
4368
|
});
|
|
4370
4369
|
}
|
|
4371
|
-
const
|
|
4372
|
-
|
|
4370
|
+
const Eu = /* @__PURE__ */ l("ZodOptional", (e, t) => {
|
|
4371
|
+
dt.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => hn(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4373
4372
|
});
|
|
4374
|
-
function
|
|
4375
|
-
return new
|
|
4373
|
+
function Ut(e) {
|
|
4374
|
+
return new Eu({
|
|
4376
4375
|
type: "optional",
|
|
4377
4376
|
innerType: e
|
|
4378
4377
|
});
|
|
4379
4378
|
}
|
|
4380
|
-
const
|
|
4381
|
-
|
|
4379
|
+
const wu = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
|
|
4380
|
+
Yo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => hn(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4382
4381
|
});
|
|
4383
|
-
function
|
|
4384
|
-
return new
|
|
4382
|
+
function Au(e) {
|
|
4383
|
+
return new wu({
|
|
4385
4384
|
type: "optional",
|
|
4386
4385
|
innerType: e
|
|
4387
4386
|
});
|
|
4388
4387
|
}
|
|
4389
|
-
const
|
|
4390
|
-
|
|
4388
|
+
const Pu = /* @__PURE__ */ l("ZodNullable", (e, t) => {
|
|
4389
|
+
Ho.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Wa(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4391
4390
|
});
|
|
4392
|
-
function
|
|
4393
|
-
return new
|
|
4391
|
+
function $t(e) {
|
|
4392
|
+
return new Pu({
|
|
4394
4393
|
type: "nullable",
|
|
4395
4394
|
innerType: e
|
|
4396
4395
|
});
|
|
4397
4396
|
}
|
|
4398
|
-
const
|
|
4399
|
-
|
|
4397
|
+
const zu = /* @__PURE__ */ l("ZodDefault", (e, t) => {
|
|
4398
|
+
Xo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => ja(e, n, r, s), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
4400
4399
|
});
|
|
4401
|
-
function
|
|
4402
|
-
return new
|
|
4400
|
+
function Du(e, t) {
|
|
4401
|
+
return new zu({
|
|
4403
4402
|
type: "default",
|
|
4404
4403
|
innerType: e,
|
|
4405
4404
|
get defaultValue() {
|
|
4406
|
-
return typeof t == "function" ? t() :
|
|
4405
|
+
return typeof t == "function" ? t() : Xt(t);
|
|
4407
4406
|
}
|
|
4408
4407
|
});
|
|
4409
4408
|
}
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4409
|
+
const Mu = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
|
|
4410
|
+
qo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Ga(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4412
4411
|
});
|
|
4413
|
-
function
|
|
4414
|
-
return new
|
|
4412
|
+
function Uu(e, t) {
|
|
4413
|
+
return new Mu({
|
|
4415
4414
|
type: "prefault",
|
|
4416
4415
|
innerType: e,
|
|
4417
4416
|
get defaultValue() {
|
|
4418
|
-
return typeof t == "function" ? t() :
|
|
4417
|
+
return typeof t == "function" ? t() : Xt(t);
|
|
4419
4418
|
}
|
|
4420
4419
|
});
|
|
4421
4420
|
}
|
|
4422
|
-
const
|
|
4423
|
-
|
|
4421
|
+
const $u = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
|
|
4422
|
+
Qo.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Fa(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4424
4423
|
});
|
|
4425
|
-
function
|
|
4426
|
-
return new
|
|
4424
|
+
function Nu(e, t) {
|
|
4425
|
+
return new $u({
|
|
4427
4426
|
type: "nonoptional",
|
|
4428
4427
|
innerType: e,
|
|
4429
4428
|
...g(t)
|
|
4430
4429
|
});
|
|
4431
4430
|
}
|
|
4432
|
-
const
|
|
4433
|
-
|
|
4431
|
+
const Ou = /* @__PURE__ */ l("ZodCatch", (e, t) => {
|
|
4432
|
+
ea.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Va(e, n, r, s), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
4434
4433
|
});
|
|
4435
|
-
function
|
|
4436
|
-
return new
|
|
4434
|
+
function Ru(e, t) {
|
|
4435
|
+
return new Ou({
|
|
4437
4436
|
type: "catch",
|
|
4438
4437
|
innerType: e,
|
|
4439
4438
|
catchValue: typeof t == "function" ? t : () => t
|
|
4440
4439
|
});
|
|
4441
4440
|
}
|
|
4442
|
-
const
|
|
4443
|
-
|
|
4441
|
+
const Cu = /* @__PURE__ */ l("ZodPipe", (e, t) => {
|
|
4442
|
+
ta.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Ka(e, n, r, s), e.in = t.in, e.out = t.out;
|
|
4444
4443
|
});
|
|
4445
|
-
function
|
|
4446
|
-
return new
|
|
4444
|
+
function Nt(e, t) {
|
|
4445
|
+
return new Cu({
|
|
4447
4446
|
type: "pipe",
|
|
4448
4447
|
in: e,
|
|
4449
4448
|
out: t
|
|
4450
4449
|
// ...util.normalizeParams(params),
|
|
4451
4450
|
});
|
|
4452
4451
|
}
|
|
4453
|
-
const
|
|
4454
|
-
|
|
4452
|
+
const Lu = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
|
|
4453
|
+
na.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Ja(e, n, r, s), e.unwrap = () => e._zod.def.innerType;
|
|
4455
4454
|
});
|
|
4456
|
-
function
|
|
4457
|
-
return new
|
|
4455
|
+
function Zu(e) {
|
|
4456
|
+
return new Lu({
|
|
4458
4457
|
type: "readonly",
|
|
4459
4458
|
innerType: e
|
|
4460
4459
|
});
|
|
4461
4460
|
}
|
|
4462
|
-
const
|
|
4463
|
-
|
|
4461
|
+
const Bu = /* @__PURE__ */ l("ZodCustom", (e, t) => {
|
|
4462
|
+
cn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, s) => Ca(e, n);
|
|
4464
4463
|
});
|
|
4465
|
-
function
|
|
4466
|
-
return /* @__PURE__ */
|
|
4464
|
+
function xu(e, t = {}) {
|
|
4465
|
+
return /* @__PURE__ */ dn(Bu, e, t);
|
|
4467
4466
|
}
|
|
4468
|
-
function
|
|
4469
|
-
return /* @__PURE__ */
|
|
4467
|
+
function Wu(e) {
|
|
4468
|
+
return /* @__PURE__ */ mn(e);
|
|
4470
4469
|
}
|
|
4471
4470
|
const B = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
|
|
4472
4471
|
if (!e._zod)
|
|
4473
4472
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
4474
|
-
v.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) =>
|
|
4473
|
+
v.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Ji(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => tn(e, n, r), e.parseAsync = async (n, r) => Yi(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => nn(e, n, r), e.check = (...n) => e.clone({
|
|
4475
4474
|
...t,
|
|
4476
4475
|
checks: [
|
|
4477
4476
|
...t.checks ?? [],
|
|
4478
4477
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
4479
4478
|
]
|
|
4480
|
-
}, { parent: !0 }), e.with = e.check, e.clone = (n, r) =>
|
|
4481
|
-
}),
|
|
4482
|
-
|
|
4479
|
+
}, { parent: !0 }), e.with = e.check, e.clone = (n, r) => qt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
|
|
4480
|
+
}), Tn = /* @__PURE__ */ l("ZodMiniString", (e, t) => {
|
|
4481
|
+
pt.init(e, t), B.init(e, t);
|
|
4483
4482
|
});
|
|
4484
4483
|
// @__NO_SIDE_EFFECTS__
|
|
4485
|
-
function
|
|
4486
|
-
return /* @__PURE__ */
|
|
4484
|
+
function Ot(e) {
|
|
4485
|
+
return /* @__PURE__ */ ia(Tn, e);
|
|
4487
4486
|
}
|
|
4488
|
-
const
|
|
4489
|
-
$.init(e, t),
|
|
4490
|
-
}),
|
|
4491
|
-
|
|
4487
|
+
const V = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
|
|
4488
|
+
$.init(e, t), Tn.init(e, t);
|
|
4489
|
+
}), Fu = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
|
|
4490
|
+
No.init(e, t), V.init(e, t);
|
|
4492
4491
|
});
|
|
4493
4492
|
// @__NO_SIDE_EFFECTS__
|
|
4494
|
-
function
|
|
4495
|
-
return /* @__PURE__ */
|
|
4493
|
+
function ju(e) {
|
|
4494
|
+
return /* @__PURE__ */ oa(Fu, e);
|
|
4496
4495
|
}
|
|
4497
|
-
const
|
|
4498
|
-
|
|
4496
|
+
const Gu = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
|
|
4497
|
+
$o.init(e, t), V.init(e, t);
|
|
4499
4498
|
});
|
|
4500
4499
|
// @__NO_SIDE_EFFECTS__
|
|
4501
|
-
function
|
|
4502
|
-
return /* @__PURE__ */
|
|
4500
|
+
function Vu(e) {
|
|
4501
|
+
return /* @__PURE__ */ aa(Gu, e);
|
|
4503
4502
|
}
|
|
4504
|
-
const
|
|
4505
|
-
|
|
4503
|
+
const Ku = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
|
|
4504
|
+
Oo.init(e, t), V.init(e, t);
|
|
4506
4505
|
});
|
|
4507
4506
|
// @__NO_SIDE_EFFECTS__
|
|
4508
|
-
function
|
|
4509
|
-
return /* @__PURE__ */
|
|
4507
|
+
function Ju(e) {
|
|
4508
|
+
return /* @__PURE__ */ ua(Ku, e);
|
|
4510
4509
|
}
|
|
4511
|
-
const
|
|
4512
|
-
|
|
4510
|
+
const Yu = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
|
|
4511
|
+
Bo.init(e, t), V.init(e, t);
|
|
4513
4512
|
});
|
|
4514
4513
|
// @__NO_SIDE_EFFECTS__
|
|
4515
|
-
function
|
|
4516
|
-
return /* @__PURE__ */
|
|
4514
|
+
function Hu(e) {
|
|
4515
|
+
return /* @__PURE__ */ ca(Yu, e);
|
|
4517
4516
|
}
|
|
4518
|
-
const
|
|
4519
|
-
|
|
4517
|
+
const Xu = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
|
|
4518
|
+
xo.init(e, t), V.init(e, t);
|
|
4520
4519
|
});
|
|
4521
4520
|
// @__NO_SIDE_EFFECTS__
|
|
4522
|
-
function
|
|
4523
|
-
return /* @__PURE__ */
|
|
4521
|
+
function qu(e) {
|
|
4522
|
+
return /* @__PURE__ */ la(Xu, e);
|
|
4524
4523
|
}
|
|
4525
|
-
const
|
|
4526
|
-
|
|
4524
|
+
const Qu = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
|
|
4525
|
+
Wo.init(e, t), V.init(e, t);
|
|
4527
4526
|
});
|
|
4528
4527
|
// @__NO_SIDE_EFFECTS__
|
|
4529
|
-
function
|
|
4530
|
-
return /* @__PURE__ */
|
|
4528
|
+
function ec(e) {
|
|
4529
|
+
return /* @__PURE__ */ $a(Qu, "hostname", uo, e);
|
|
4531
4530
|
}
|
|
4532
|
-
const
|
|
4533
|
-
|
|
4531
|
+
const _n = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
|
|
4532
|
+
an.init(e, t), B.init(e, t);
|
|
4534
4533
|
});
|
|
4535
4534
|
// @__NO_SIDE_EFFECTS__
|
|
4536
|
-
function
|
|
4537
|
-
return /* @__PURE__ */
|
|
4535
|
+
function Rt(e) {
|
|
4536
|
+
return /* @__PURE__ */ fa(_n, e);
|
|
4538
4537
|
}
|
|
4539
|
-
const
|
|
4540
|
-
|
|
4538
|
+
const tc = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
|
|
4539
|
+
Fo.init(e, t), _n.init(e, t);
|
|
4541
4540
|
});
|
|
4542
4541
|
// @__NO_SIDE_EFFECTS__
|
|
4543
|
-
function
|
|
4544
|
-
return /* @__PURE__ */
|
|
4542
|
+
function nc(e) {
|
|
4543
|
+
return /* @__PURE__ */ ga(tc, e);
|
|
4545
4544
|
}
|
|
4546
|
-
const
|
|
4547
|
-
|
|
4545
|
+
const rc = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
|
|
4546
|
+
jo.init(e, t), B.init(e, t);
|
|
4548
4547
|
});
|
|
4549
4548
|
// @__NO_SIDE_EFFECTS__
|
|
4550
|
-
function
|
|
4551
|
-
return /* @__PURE__ */
|
|
4549
|
+
function Ct(e) {
|
|
4550
|
+
return /* @__PURE__ */ ha(rc, e);
|
|
4552
4551
|
}
|
|
4553
|
-
const
|
|
4554
|
-
|
|
4552
|
+
const sc = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
|
|
4553
|
+
Go.init(e, t), B.init(e, t);
|
|
4555
4554
|
});
|
|
4556
4555
|
// @__NO_SIDE_EFFECTS__
|
|
4557
|
-
function
|
|
4558
|
-
return /* @__PURE__ */
|
|
4556
|
+
function he() {
|
|
4557
|
+
return /* @__PURE__ */ Ta(sc);
|
|
4559
4558
|
}
|
|
4560
|
-
const
|
|
4561
|
-
|
|
4559
|
+
const ic = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
|
|
4560
|
+
un.init(e, t), B.init(e, t);
|
|
4562
4561
|
});
|
|
4563
4562
|
// @__NO_SIDE_EFFECTS__
|
|
4564
|
-
function
|
|
4565
|
-
return new
|
|
4563
|
+
function Lt(e, t) {
|
|
4564
|
+
return new ic({
|
|
4566
4565
|
type: "array",
|
|
4567
4566
|
element: e,
|
|
4568
4567
|
...g(t)
|
|
4569
4568
|
});
|
|
4570
4569
|
}
|
|
4571
|
-
const
|
|
4572
|
-
|
|
4570
|
+
const oc = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
|
|
4571
|
+
dt.init(e, t), B.init(e, t);
|
|
4573
4572
|
});
|
|
4574
4573
|
// @__NO_SIDE_EFFECTS__
|
|
4575
|
-
function
|
|
4576
|
-
return new
|
|
4574
|
+
function ac(e) {
|
|
4575
|
+
return new oc({
|
|
4577
4576
|
type: "optional",
|
|
4578
4577
|
innerType: e
|
|
4579
4578
|
});
|
|
4580
4579
|
}
|
|
4581
|
-
const
|
|
4582
|
-
|
|
4580
|
+
const uc = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
|
|
4581
|
+
cn.init(e, t), B.init(e, t);
|
|
4583
4582
|
});
|
|
4584
4583
|
// @__NO_SIDE_EFFECTS__
|
|
4585
4584
|
function I(e, t = {}) {
|
|
4586
|
-
return /* @__PURE__ */
|
|
4585
|
+
return /* @__PURE__ */ dn(uc, e, t);
|
|
4587
4586
|
}
|
|
4588
4587
|
// @__NO_SIDE_EFFECTS__
|
|
4589
|
-
function
|
|
4590
|
-
return /* @__PURE__ */
|
|
4591
|
-
}
|
|
4592
|
-
const
|
|
4593
|
-
email: { schema: /* @__PURE__ */
|
|
4594
|
-
hostname: { schema: /* @__PURE__ */
|
|
4595
|
-
ipv4: { schema: /* @__PURE__ */
|
|
4596
|
-
ipv6: { schema: /* @__PURE__ */
|
|
4597
|
-
url: { schema: /* @__PURE__ */
|
|
4598
|
-
uuid: { schema: /* @__PURE__ */
|
|
4599
|
-
date: { schema:
|
|
4600
|
-
time: { schema:
|
|
4601
|
-
"date-time": { schema:
|
|
4602
|
-
duration: { schema:
|
|
4603
|
-
},
|
|
4588
|
+
function bn(e) {
|
|
4589
|
+
return /* @__PURE__ */ mn(e);
|
|
4590
|
+
}
|
|
4591
|
+
const Te = {
|
|
4592
|
+
email: { schema: /* @__PURE__ */ ju() },
|
|
4593
|
+
hostname: { schema: /* @__PURE__ */ ec() },
|
|
4594
|
+
ipv4: { schema: /* @__PURE__ */ Hu() },
|
|
4595
|
+
ipv6: { schema: /* @__PURE__ */ qu() },
|
|
4596
|
+
url: { schema: /* @__PURE__ */ Ju() },
|
|
4597
|
+
uuid: { schema: /* @__PURE__ */ Vu() },
|
|
4598
|
+
date: { schema: qa() },
|
|
4599
|
+
time: { schema: eu() },
|
|
4600
|
+
"date-time": { schema: Ha({ local: !0, offset: !0 }) },
|
|
4601
|
+
duration: { schema: nu() }
|
|
4602
|
+
}, Zt = Object.keys(Te), cc = (e) => (t, n) => {
|
|
4604
4603
|
switch (t.type) {
|
|
4605
4604
|
case "string":
|
|
4606
|
-
return
|
|
4605
|
+
return lc(t, n);
|
|
4607
4606
|
case "integer":
|
|
4608
4607
|
case "number":
|
|
4609
|
-
return
|
|
4608
|
+
return dc(t, n);
|
|
4610
4609
|
case "boolean":
|
|
4611
|
-
return
|
|
4610
|
+
return mc(t, n);
|
|
4612
4611
|
case "array":
|
|
4613
|
-
return
|
|
4612
|
+
return yc(t, n);
|
|
4614
4613
|
case "custom": {
|
|
4615
4614
|
if (!e)
|
|
4616
4615
|
throw new Error(
|
|
4617
4616
|
'Validator type "custom" requires a customValidators object, but it was not supplied.'
|
|
4618
4617
|
);
|
|
4619
|
-
return
|
|
4618
|
+
return fc(t, e);
|
|
4620
4619
|
}
|
|
4621
4620
|
default: {
|
|
4622
4621
|
const r = t;
|
|
@@ -4630,10 +4629,10 @@ function S(e, t) {
|
|
|
4630
4629
|
if (e !== void 0)
|
|
4631
4630
|
return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
|
|
4632
4631
|
}
|
|
4633
|
-
function
|
|
4632
|
+
function lc(e, t) {
|
|
4634
4633
|
return X(e, (n) => {
|
|
4635
4634
|
const r = S(n.messages?.invalid, t);
|
|
4636
|
-
let s = r ? /* @__PURE__ */
|
|
4635
|
+
let s = r ? /* @__PURE__ */ Ot(r) : /* @__PURE__ */ Ot();
|
|
4637
4636
|
if (n.required === !0) {
|
|
4638
4637
|
const i = S(n.messages?.required, t) ?? "This field is required";
|
|
4639
4638
|
s = s.check(/* @__PURE__ */ I((o) => o.length > 0, { error: i }));
|
|
@@ -4647,13 +4646,13 @@ function yc(e, t) {
|
|
|
4647
4646
|
if (typeof n.maxLength == "number") {
|
|
4648
4647
|
const i = S(n.messages?.maxLength, t), o = n.maxLength;
|
|
4649
4648
|
s = s.check(
|
|
4650
|
-
i ? /* @__PURE__ */ I((a) => a.length <= o, { error: i }) : /* @__PURE__ */
|
|
4649
|
+
i ? /* @__PURE__ */ I((a) => a.length <= o, { error: i }) : /* @__PURE__ */ ce(o)
|
|
4651
4650
|
);
|
|
4652
4651
|
}
|
|
4653
4652
|
if (typeof n.pattern == "string") {
|
|
4654
4653
|
const i = S(n.messages?.pattern, t), o = new RegExp(n.pattern);
|
|
4655
4654
|
s = s.check(
|
|
4656
|
-
i ? /* @__PURE__ */ I((a) => o.test(a), { error: i }) : /* @__PURE__ */
|
|
4655
|
+
i ? /* @__PURE__ */ I((a) => o.test(a), { error: i }) : /* @__PURE__ */ pn(o)
|
|
4657
4656
|
);
|
|
4658
4657
|
}
|
|
4659
4658
|
if (n.enum) {
|
|
@@ -4665,41 +4664,41 @@ function yc(e, t) {
|
|
|
4665
4664
|
s = s.check(/* @__PURE__ */ I((o) => o === n.const, i ? { error: i } : void 0));
|
|
4666
4665
|
}
|
|
4667
4666
|
if (n.format !== void 0)
|
|
4668
|
-
if (
|
|
4667
|
+
if (Zt.includes(n.format)) {
|
|
4669
4668
|
const i = S(n.messages?.format, t);
|
|
4670
4669
|
s = s.check(
|
|
4671
|
-
i ? /* @__PURE__ */
|
|
4672
|
-
const u =
|
|
4673
|
-
|
|
4670
|
+
i ? /* @__PURE__ */ bn((o, a) => {
|
|
4671
|
+
const u = xt(
|
|
4672
|
+
Te[n.format].schema,
|
|
4674
4673
|
o
|
|
4675
4674
|
);
|
|
4676
|
-
|
|
4677
|
-
}) :
|
|
4675
|
+
Wt(u) || a.addIssue({ code: "custom", path: [], message: i });
|
|
4676
|
+
}) : Te[n.format].schema
|
|
4678
4677
|
);
|
|
4679
4678
|
} else
|
|
4680
4679
|
throw new Error(
|
|
4681
|
-
`Unknown string validation format: ${JSON.stringify(n.format)}. The "format" property must be one of: ${
|
|
4680
|
+
`Unknown string validation format: ${JSON.stringify(n.format)}. The "format" property must be one of: ${Zt.map((i) => `"${i}"`).join(", ")}.`
|
|
4682
4681
|
);
|
|
4683
4682
|
return s;
|
|
4684
4683
|
});
|
|
4685
4684
|
}
|
|
4686
|
-
const
|
|
4685
|
+
const pc = (e, t) => {
|
|
4687
4686
|
if (t === 0)
|
|
4688
4687
|
return !1;
|
|
4689
4688
|
const n = e / t;
|
|
4690
4689
|
return Math.abs(n - Math.round(n)) < 1e-10;
|
|
4691
4690
|
};
|
|
4692
|
-
function
|
|
4691
|
+
function dc(e, t) {
|
|
4693
4692
|
return X(e, (n) => {
|
|
4694
4693
|
const r = S(n.messages?.invalid, t);
|
|
4695
|
-
let s = r ? /* @__PURE__ */
|
|
4696
|
-
if (n.type === "integer" && (s = s.check(/* @__PURE__ */
|
|
4694
|
+
let s = r ? /* @__PURE__ */ Rt(r) : /* @__PURE__ */ Rt();
|
|
4695
|
+
if (n.type === "integer" && (s = s.check(/* @__PURE__ */ nc())), n.minimum !== void 0) {
|
|
4697
4696
|
const i = S(n.messages?.minimum, t), o = n.minimum;
|
|
4698
|
-
s = s.check(i ? /* @__PURE__ */ I((a) => a >= o, { error: i }) : /* @__PURE__ */
|
|
4697
|
+
s = s.check(i ? /* @__PURE__ */ I((a) => a >= o, { error: i }) : /* @__PURE__ */ ba(o));
|
|
4699
4698
|
}
|
|
4700
4699
|
if (n.maximum !== void 0) {
|
|
4701
4700
|
const i = S(n.messages?.maximum, t), o = n.maximum;
|
|
4702
|
-
s = s.check(i ? /* @__PURE__ */ I((a) => a <= o, { error: i }) : /* @__PURE__ */
|
|
4701
|
+
s = s.check(i ? /* @__PURE__ */ I((a) => a <= o, { error: i }) : /* @__PURE__ */ _a(o));
|
|
4703
4702
|
}
|
|
4704
4703
|
if (n.exclusiveMinimum !== void 0) {
|
|
4705
4704
|
const i = S(n.messages?.exclusiveMinimum, t), o = n.exclusiveMinimum;
|
|
@@ -4712,7 +4711,7 @@ function gc(e, t) {
|
|
|
4712
4711
|
if (n.multipleOf !== void 0) {
|
|
4713
4712
|
const i = S(n.messages?.multipleOf, t), o = n.multipleOf;
|
|
4714
4713
|
s = s.check(
|
|
4715
|
-
/* @__PURE__ */ I((a) =>
|
|
4714
|
+
/* @__PURE__ */ I((a) => pc(a, o), i ? { error: i } : void 0)
|
|
4716
4715
|
);
|
|
4717
4716
|
}
|
|
4718
4717
|
if (n.enum) {
|
|
@@ -4726,10 +4725,10 @@ function gc(e, t) {
|
|
|
4726
4725
|
return s;
|
|
4727
4726
|
});
|
|
4728
4727
|
}
|
|
4729
|
-
function
|
|
4728
|
+
function mc(e, t) {
|
|
4730
4729
|
return X(e, (n) => {
|
|
4731
4730
|
const r = S(n.messages?.invalid, t);
|
|
4732
|
-
let s = r ? /* @__PURE__ */
|
|
4731
|
+
let s = r ? /* @__PURE__ */ Ct(r) : /* @__PURE__ */ Ct();
|
|
4733
4732
|
if (n.const !== void 0) {
|
|
4734
4733
|
const i = S(n.messages?.const, t);
|
|
4735
4734
|
s = s.check(/* @__PURE__ */ I((o) => o === n.const, i ? { error: i } : void 0));
|
|
@@ -4737,10 +4736,10 @@ function hc(e, t) {
|
|
|
4737
4736
|
return s;
|
|
4738
4737
|
});
|
|
4739
4738
|
}
|
|
4740
|
-
function
|
|
4739
|
+
function yc(e, t) {
|
|
4741
4740
|
return X(e, (n) => {
|
|
4742
4741
|
const r = S(n.messages?.invalid, t);
|
|
4743
|
-
let s = r ? /* @__PURE__ */
|
|
4742
|
+
let s = r ? /* @__PURE__ */ Lt(/* @__PURE__ */ he(), r) : /* @__PURE__ */ Lt(/* @__PURE__ */ he());
|
|
4744
4743
|
if (n.required === !0) {
|
|
4745
4744
|
const i = S(n.messages?.required, t) ?? "This field is required";
|
|
4746
4745
|
s = s.check(/* @__PURE__ */ I((o) => o.length > 0, { error: i }));
|
|
@@ -4754,16 +4753,16 @@ function Tc(e, t) {
|
|
|
4754
4753
|
if (typeof n.maxItems == "number") {
|
|
4755
4754
|
const i = S(n.messages?.maxItems, t), o = n.maxItems;
|
|
4756
4755
|
s = s.check(
|
|
4757
|
-
i ? /* @__PURE__ */ I((a) => a.length <= o, { error: i }) : /* @__PURE__ */
|
|
4756
|
+
i ? /* @__PURE__ */ I((a) => a.length <= o, { error: i }) : /* @__PURE__ */ ce(o)
|
|
4758
4757
|
);
|
|
4759
4758
|
}
|
|
4760
4759
|
return s;
|
|
4761
4760
|
});
|
|
4762
4761
|
}
|
|
4763
|
-
function
|
|
4762
|
+
function fc(e, t) {
|
|
4764
4763
|
return X(e, (n) => {
|
|
4765
|
-
let r = /* @__PURE__ */
|
|
4766
|
-
return
|
|
4764
|
+
let r = /* @__PURE__ */ he();
|
|
4765
|
+
return vn(
|
|
4767
4766
|
Object.keys(n),
|
|
4768
4767
|
// filter non-custom validator keys
|
|
4769
4768
|
(s) => s !== "type" && s !== "required",
|
|
@@ -4777,12 +4776,12 @@ function _c(e, t) {
|
|
|
4777
4776
|
}
|
|
4778
4777
|
const a = o(i);
|
|
4779
4778
|
r = r.check(
|
|
4780
|
-
/* @__PURE__ */
|
|
4781
|
-
const p =
|
|
4779
|
+
/* @__PURE__ */ bn((u, c) => {
|
|
4780
|
+
const p = xt(
|
|
4782
4781
|
a,
|
|
4783
4782
|
u
|
|
4784
4783
|
);
|
|
4785
|
-
if (!
|
|
4784
|
+
if (!Wt(p)) {
|
|
4786
4785
|
const d = p.issues[0];
|
|
4787
4786
|
c.addIssue({
|
|
4788
4787
|
code: "custom",
|
|
@@ -4798,43 +4797,43 @@ function _c(e, t) {
|
|
|
4798
4797
|
}
|
|
4799
4798
|
function X(e, t) {
|
|
4800
4799
|
const n = t(e);
|
|
4801
|
-
return e.required ? n : /* @__PURE__ */
|
|
4800
|
+
return e.required ? n : /* @__PURE__ */ ac(n);
|
|
4802
4801
|
}
|
|
4803
|
-
const
|
|
4802
|
+
const gc = {
|
|
4804
4803
|
// ACTION
|
|
4805
4804
|
button: async () => (await import("./button.element-CJay43iR.js")).ButtonElement,
|
|
4806
4805
|
// INPUTS
|
|
4807
|
-
calendar: async () => (await import("./calendar.element-
|
|
4808
|
-
dateTimeCalendar: async () => (await import("./date-time-calendar.element-
|
|
4809
|
-
rangeCalendar: async () => (await import("./range-calendar.element-
|
|
4810
|
-
rangeDateInput: async () => (await import("./range-date-input.element-
|
|
4811
|
-
rangeTimeInput: async () => (await import("./range-time-input.element-
|
|
4812
|
-
rangeDateTimeInput: async () => (await import("./range-date-time-input.element-
|
|
4813
|
-
rangeDateTimeCalendar: async () => (await import("./range-date-time-calendar.element-
|
|
4814
|
-
rangeDateTimePicker: async () => (await import("./range-date-time-picker.element-
|
|
4815
|
-
rangeDatePicker: async () => (await import("./range-date-picker.element-
|
|
4816
|
-
rangeTimePicker: async () => (await import("./range-time-picker.element-
|
|
4817
|
-
currency: async () => (await import("./currency.element-
|
|
4818
|
-
dateInput: async () => (await import("./date.element-
|
|
4819
|
-
datePicker: async () => (await import("./date-picker.element-
|
|
4820
|
-
dateTimePicker: async () => (await import("./date-time-picker.element-
|
|
4821
|
-
dropdown: async () => (await import("./dropdown.element-
|
|
4822
|
-
list: async () => (await import("./list.element-
|
|
4823
|
-
markdown: async () => (await import("./markdown.element-
|
|
4824
|
-
password: async () => (await import("./password.element-
|
|
4825
|
-
textinput: async () => (await import("./textinput.element-
|
|
4826
|
-
timeInput: async () => (await import("./time.element-
|
|
4827
|
-
timePicker: async () => (await import("./time-picker.element-
|
|
4828
|
-
dateTimeInput: async () => (await import("./date-time.element-
|
|
4829
|
-
textarea: async () => (await import("./textarea.element-
|
|
4830
|
-
toggle: async () => (await import("./toggle.element-
|
|
4831
|
-
checkbox: async () => (await import("./checkbox.element-
|
|
4832
|
-
number: async () => (await import("./number.element-
|
|
4833
|
-
radiogroup: async () => (await import("./radiogroup.element-
|
|
4834
|
-
select: async () => (await import("./select.element-
|
|
4835
|
-
tags: async () => (await import("./tags.element-
|
|
4806
|
+
calendar: async () => (await import("./calendar.element-Cv3RBphf.js")).CalendarElement,
|
|
4807
|
+
dateTimeCalendar: async () => (await import("./date-time-calendar.element-DlbWZjoe.js")).DateTimeCalendarElement,
|
|
4808
|
+
rangeCalendar: async () => (await import("./range-calendar.element-D5eb2f7p.js")).RangeCalendarElement,
|
|
4809
|
+
rangeDateInput: async () => (await import("./range-date-input.element-C35grlYo.js")).RangeDateInputElement,
|
|
4810
|
+
rangeTimeInput: async () => (await import("./range-time-input.element-BOHLUO8z.js")).RangeTimeInputElement,
|
|
4811
|
+
rangeDateTimeInput: async () => (await import("./range-date-time-input.element-CzgRbR9F.js")).RangeDateTimeInputElement,
|
|
4812
|
+
rangeDateTimeCalendar: async () => (await import("./range-date-time-calendar.element-BV0J96Gu.js")).RangeDateTimeCalendarElement,
|
|
4813
|
+
rangeDateTimePicker: async () => (await import("./range-date-time-picker.element-hi5KdopZ.js")).RangeDateTimePickerElement,
|
|
4814
|
+
rangeDatePicker: async () => (await import("./range-date-picker.element-Do5YsL5V.js")).RangeDatePickerElement,
|
|
4815
|
+
rangeTimePicker: async () => (await import("./range-time-picker.element-DDNQMA_u.js")).RangeTimePickerElement,
|
|
4816
|
+
currency: async () => (await import("./currency.element-Cezgzbbs.js")).CurrencyElement,
|
|
4817
|
+
dateInput: async () => (await import("./date.element-B8ZHK9KJ.js")).DateElement,
|
|
4818
|
+
datePicker: async () => (await import("./date-picker.element-ByZefznr.js")).DatePickerElement,
|
|
4819
|
+
dateTimePicker: async () => (await import("./date-time-picker.element-CYwmumfq.js")).DateTimePickerElement,
|
|
4820
|
+
dropdown: async () => (await import("./dropdown.element-DMZ7oL5n.js")).DropdownElement,
|
|
4821
|
+
list: async () => (await import("./list.element-ADtUK2na.js")).ListElement,
|
|
4822
|
+
markdown: async () => (await import("./markdown.element-D5zcxAUS.js")).MarkdownElement,
|
|
4823
|
+
password: async () => (await import("./password.element-C1aQh_iz.js")).PasswordElement,
|
|
4824
|
+
textinput: async () => (await import("./textinput.element-BnIoDRmY.js")).TextinputElement,
|
|
4825
|
+
timeInput: async () => (await import("./time.element-X286nthD.js")).TimeElement,
|
|
4826
|
+
timePicker: async () => (await import("./time-picker.element-C3oR0EkQ.js")).TimePickerElement,
|
|
4827
|
+
dateTimeInput: async () => (await import("./date-time.element-CLLxM2nV.js")).DateTimeElement,
|
|
4828
|
+
textarea: async () => (await import("./textarea.element-Dx7eYEnl.js")).TextareaElement,
|
|
4829
|
+
toggle: async () => (await import("./toggle.element-Dokdat_o.js")).ToggleElement,
|
|
4830
|
+
checkbox: async () => (await import("./checkbox.element-CpmrzdH0.js")).CheckboxElement,
|
|
4831
|
+
number: async () => (await import("./number.element-DEY5tR_y.js")).NumberElement,
|
|
4832
|
+
radiogroup: async () => (await import("./radiogroup.element-B2G-XyGx.js")).RadiogroupElement,
|
|
4833
|
+
select: async () => (await import("./select.element-SDxBhGjz.js")).SelectElement,
|
|
4834
|
+
tags: async () => (await import("./tags.element-Bnhfevp3.js")).TagsElement,
|
|
4836
4835
|
// REPEATER
|
|
4837
|
-
repeater: async () => (await import("./repeater.element-
|
|
4836
|
+
repeater: async () => (await import("./repeater.element-Da8YN1Vy.js")).RepeaterElement,
|
|
4838
4837
|
// LAYOUTS
|
|
4839
4838
|
flex: async () => (await import("./flex.element-DG4Uaj_X.js")).FlexElement,
|
|
4840
4839
|
grid: async () => (await import("./grid.element-DCZsh-3J.js")).GridElement,
|
|
@@ -4845,74 +4844,21 @@ const bc = {
|
|
|
4845
4844
|
markdownText: async () => (await import("./markdown-text.element-B8TfVLIO.js")).MarkdownTextElement,
|
|
4846
4845
|
renderer: async () => (await import("./renderer.element-CNyMn2Lu.js")).RendererElement
|
|
4847
4846
|
};
|
|
4848
|
-
var
|
|
4849
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4850
|
-
(o = e[i]) && (s =
|
|
4851
|
-
return
|
|
4847
|
+
var hc = Object.getOwnPropertyDescriptor, Tc = (e, t, n, r) => {
|
|
4848
|
+
for (var s = r > 1 ? void 0 : r ? hc(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
4849
|
+
(o = e[i]) && (s = o(s) || s);
|
|
4850
|
+
return s;
|
|
4852
4851
|
};
|
|
4853
|
-
let
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
this.coreForm?.setData(e);
|
|
4859
|
-
}
|
|
4860
|
-
setMeta(e) {
|
|
4861
|
-
this.coreForm?.setMeta(e);
|
|
4862
|
-
}
|
|
4863
|
-
createRenderRoot() {
|
|
4864
|
-
return this;
|
|
4865
|
-
}
|
|
4866
|
-
render() {
|
|
4867
|
-
const e = this.config, t = ji(e.formDef, e.formSelectors, e.formConfig), n = {
|
|
4868
|
-
formDef: t.formDef,
|
|
4869
|
-
widgetLoaders: {
|
|
4870
|
-
...bc,
|
|
4871
|
-
...t.widgetLoaders,
|
|
4872
|
-
...e.customWidgetLoaders ?? {}
|
|
4873
|
-
},
|
|
4874
|
-
dependencies: { ...t.dependencies ?? {}, ...e.dependencies ?? {} },
|
|
4875
|
-
functions: { ...t.functions ?? {}, ...e.functions ?? {} },
|
|
4876
|
-
validateOn: e.validateOn ?? t.validateOn ?? "eager",
|
|
4877
|
-
itemRenderers: {
|
|
4878
|
-
...t.itemRenderers ?? {},
|
|
4879
|
-
...e.itemRenderers ?? {}
|
|
4880
|
-
},
|
|
4881
|
-
localization: e.localization,
|
|
4882
|
-
middlewares: e.middlewares ?? [],
|
|
4883
|
-
data: e.data,
|
|
4884
|
-
meta: e.meta,
|
|
4885
|
-
formName: e.formName
|
|
4886
|
-
}, r = mc({
|
|
4887
|
-
...e.customValidators ?? {}
|
|
4888
|
-
}), s = t.formEvent, i = s ? (o) => s(o.detail) : void 0;
|
|
4889
|
-
return An`
|
|
4890
|
-
<gui-core-form
|
|
4891
|
-
.config=${n}
|
|
4892
|
-
.validators=${r}
|
|
4893
|
-
.autocomplete=${this.autocomplete}
|
|
4894
|
-
.formHealthBoundary=${this.formHealthBoundary}
|
|
4895
|
-
@formEvent=${i}
|
|
4896
|
-
></gui-core-form>
|
|
4897
|
-
`;
|
|
4898
|
-
}
|
|
4852
|
+
let Bt = class extends In({
|
|
4853
|
+
widgetLoaders: gc,
|
|
4854
|
+
validators: cc,
|
|
4855
|
+
resolveFormInput: Bi
|
|
4856
|
+
}) {
|
|
4899
4857
|
};
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
],
|
|
4903
|
-
Q([
|
|
4904
|
-
ke({ type: String })
|
|
4905
|
-
], G.prototype, "autocomplete", 2);
|
|
4906
|
-
Q([
|
|
4907
|
-
ke({ attribute: !1 })
|
|
4908
|
-
], G.prototype, "formHealthBoundary", 2);
|
|
4909
|
-
Q([
|
|
4910
|
-
Pn("gui-core-form")
|
|
4911
|
-
], G.prototype, "coreForm", 2);
|
|
4912
|
-
G = Q([
|
|
4913
|
-
zn("gui-form")
|
|
4914
|
-
], G);
|
|
4858
|
+
Bt = Tc([
|
|
4859
|
+
En("gui-form")
|
|
4860
|
+
], Bt);
|
|
4915
4861
|
export {
|
|
4916
|
-
|
|
4917
|
-
|
|
4862
|
+
Bt as FormElement,
|
|
4863
|
+
gc as widgetLoaders
|
|
4918
4864
|
};
|